]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
5648eca3a14623b6490db4312660166b16dbb680
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 enable_default_ssp
682 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 host_noncanonical
826 target_os
827 target_vendor
828 target_cpu
829 target
830 host_os
831 host_vendor
832 host_cpu
833 host
834 build_os
835 build_vendor
836 build_cpu
837 build
838 target_alias
839 host_alias
840 build_alias
841 LIBS
842 ECHO_T
843 ECHO_N
844 ECHO_C
845 DEFS
846 mandir
847 localedir
848 libdir
849 psdir
850 pdfdir
851 dvidir
852 htmldir
853 infodir
854 docdir
855 oldincludedir
856 includedir
857 localstatedir
858 sharedstatedir
859 sysconfdir
860 datadir
861 datarootdir
862 libexecdir
863 sbindir
864 bindir
865 program_transform_name
866 prefix
867 exec_prefix
868 PACKAGE_URL
869 PACKAGE_BUGREPORT
870 PACKAGE_STRING
871 PACKAGE_VERSION
872 PACKAGE_TARNAME
873 PACKAGE_NAME
874 PATH_SEPARATOR
875 SHELL'
876 ac_subst_files='option_includes
877 language_hooks'
878 ac_user_opts='
879 enable_option_checking
880 with_build_libsubdir
881 with_local_prefix
882 with_native_system_header_dir
883 with_build_sysroot
884 with_sysroot
885 with_gxx_include_dir
886 with_cpp_install_dir
887 enable_generated_files_in_srcdir
888 with_gnu_ld
889 with_ld
890 with_demangler_in_ld
891 with_gnu_as
892 with_as
893 enable_largefile
894 enable_build_format_warnings
895 enable_werror_always
896 enable_checking
897 enable_coverage
898 enable_gather_detailed_mem_stats
899 enable_valgrind_annotations
900 with_stabs
901 enable_multilib
902 enable_multiarch
903 enable___cxa_atexit
904 enable_decimal_float
905 enable_fixed_point
906 enable_threads
907 enable_tls
908 enable_vtable_verify
909 enable_objc_gc
910 with_dwarf2
911 enable_shared
912 with_specs
913 with_pkgversion
914 with_bugurl
915 enable_languages
916 with_multilib_list
917 enable_rpath
918 with_libiconv_prefix
919 enable_sjlj_exceptions
920 enable_secureplt
921 enable_leading_mingw64_underscores
922 enable_cld
923 enable_frame_pointer
924 enable_win32_registry
925 enable_static
926 with_pic
927 enable_fast_install
928 enable_libtool_lock
929 enable_ld
930 enable_gold
931 with_plugin_ld
932 enable_gnu_indirect_function
933 enable_initfini_array
934 enable_comdat
935 enable_fix_cortex_a53_835769
936 enable_fix_cortex_a53_843419
937 with_glibc_version
938 enable_gnu_unique_object
939 enable_linker_build_id
940 enable_default_ssp
941 with_long_double_128
942 with_gc
943 with_system_zlib
944 enable_maintainer_mode
945 enable_link_mutex
946 enable_version_specific_runtime_libs
947 enable_plugin
948 enable_host_shared
949 enable_libquadmath_support
950 with_linker_hash_style
951 with_diagnostics_color
952 enable_default_pie
953 '
954 ac_precious_vars='build_alias
955 host_alias
956 target_alias
957 CC
958 CFLAGS
959 LDFLAGS
960 LIBS
961 CPPFLAGS
962 CXX
963 CXXFLAGS
964 CCC
965 CXXCPP
966 CPP
967 GMPLIBS
968 GMPINC
969 ISLLIBS
970 ISLINC'
971
972
973 # Initialize some variables set by options.
974 ac_init_help=
975 ac_init_version=false
976 ac_unrecognized_opts=
977 ac_unrecognized_sep=
978 # The variables have the same names as the options, with
979 # dashes changed to underlines.
980 cache_file=/dev/null
981 exec_prefix=NONE
982 no_create=
983 no_recursion=
984 prefix=NONE
985 program_prefix=NONE
986 program_suffix=NONE
987 program_transform_name=s,x,x,
988 silent=
989 site=
990 srcdir=
991 verbose=
992 x_includes=NONE
993 x_libraries=NONE
994
995 # Installation directory options.
996 # These are left unexpanded so users can "make install exec_prefix=/foo"
997 # and all the variables that are supposed to be based on exec_prefix
998 # by default will actually change.
999 # Use braces instead of parens because sh, perl, etc. also accept them.
1000 # (The list follows the same order as the GNU Coding Standards.)
1001 bindir='${exec_prefix}/bin'
1002 sbindir='${exec_prefix}/sbin'
1003 libexecdir='${exec_prefix}/libexec'
1004 datarootdir='${prefix}/share'
1005 datadir='${datarootdir}'
1006 sysconfdir='${prefix}/etc'
1007 sharedstatedir='${prefix}/com'
1008 localstatedir='${prefix}/var'
1009 includedir='${prefix}/include'
1010 oldincludedir='/usr/include'
1011 docdir='${datarootdir}/doc/${PACKAGE}'
1012 infodir='${datarootdir}/info'
1013 htmldir='${docdir}'
1014 dvidir='${docdir}'
1015 pdfdir='${docdir}'
1016 psdir='${docdir}'
1017 libdir='${exec_prefix}/lib'
1018 localedir='${datarootdir}/locale'
1019 mandir='${datarootdir}/man'
1020
1021 ac_prev=
1022 ac_dashdash=
1023 for ac_option
1024 do
1025 # If the previous option needs an argument, assign it.
1026 if test -n "$ac_prev"; then
1027 eval $ac_prev=\$ac_option
1028 ac_prev=
1029 continue
1030 fi
1031
1032 case $ac_option in
1033 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 *) ac_optarg=yes ;;
1035 esac
1036
1037 # Accept the important Cygnus configure options, so we can diagnose typos.
1038
1039 case $ac_dashdash$ac_option in
1040 --)
1041 ac_dashdash=yes ;;
1042
1043 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044 ac_prev=bindir ;;
1045 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046 bindir=$ac_optarg ;;
1047
1048 -build | --build | --buil | --bui | --bu)
1049 ac_prev=build_alias ;;
1050 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051 build_alias=$ac_optarg ;;
1052
1053 -cache-file | --cache-file | --cache-fil | --cache-fi \
1054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055 ac_prev=cache_file ;;
1056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058 cache_file=$ac_optarg ;;
1059
1060 --config-cache | -C)
1061 cache_file=config.cache ;;
1062
1063 -datadir | --datadir | --datadi | --datad)
1064 ac_prev=datadir ;;
1065 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1066 datadir=$ac_optarg ;;
1067
1068 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069 | --dataroo | --dataro | --datar)
1070 ac_prev=datarootdir ;;
1071 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073 datarootdir=$ac_optarg ;;
1074
1075 -disable-* | --disable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1083 *"
1084 "enable_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=no ;;
1090
1091 -docdir | --docdir | --docdi | --doc | --do)
1092 ac_prev=docdir ;;
1093 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1094 docdir=$ac_optarg ;;
1095
1096 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1097 ac_prev=dvidir ;;
1098 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1099 dvidir=$ac_optarg ;;
1100
1101 -enable-* | --enable-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error "invalid feature name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110 "enable_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval enable_$ac_useropt=\$ac_optarg ;;
1116
1117 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1118 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1119 | --exec | --exe | --ex)
1120 ac_prev=exec_prefix ;;
1121 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1122 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1123 | --exec=* | --exe=* | --ex=*)
1124 exec_prefix=$ac_optarg ;;
1125
1126 -gas | --gas | --ga | --g)
1127 # Obsolete; use --with-gas.
1128 with_gas=yes ;;
1129
1130 -help | --help | --hel | --he | -h)
1131 ac_init_help=long ;;
1132 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1133 ac_init_help=recursive ;;
1134 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1135 ac_init_help=short ;;
1136
1137 -host | --host | --hos | --ho)
1138 ac_prev=host_alias ;;
1139 -host=* | --host=* | --hos=* | --ho=*)
1140 host_alias=$ac_optarg ;;
1141
1142 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1143 ac_prev=htmldir ;;
1144 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1145 | --ht=*)
1146 htmldir=$ac_optarg ;;
1147
1148 -includedir | --includedir | --includedi | --included | --include \
1149 | --includ | --inclu | --incl | --inc)
1150 ac_prev=includedir ;;
1151 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1152 | --includ=* | --inclu=* | --incl=* | --inc=*)
1153 includedir=$ac_optarg ;;
1154
1155 -infodir | --infodir | --infodi | --infod | --info | --inf)
1156 ac_prev=infodir ;;
1157 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1158 infodir=$ac_optarg ;;
1159
1160 -libdir | --libdir | --libdi | --libd)
1161 ac_prev=libdir ;;
1162 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1163 libdir=$ac_optarg ;;
1164
1165 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1166 | --libexe | --libex | --libe)
1167 ac_prev=libexecdir ;;
1168 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1169 | --libexe=* | --libex=* | --libe=*)
1170 libexecdir=$ac_optarg ;;
1171
1172 -localedir | --localedir | --localedi | --localed | --locale)
1173 ac_prev=localedir ;;
1174 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1175 localedir=$ac_optarg ;;
1176
1177 -localstatedir | --localstatedir | --localstatedi | --localstated \
1178 | --localstate | --localstat | --localsta | --localst | --locals)
1179 ac_prev=localstatedir ;;
1180 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1181 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1182 localstatedir=$ac_optarg ;;
1183
1184 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1185 ac_prev=mandir ;;
1186 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1187 mandir=$ac_optarg ;;
1188
1189 -nfp | --nfp | --nf)
1190 # Obsolete; use --without-fp.
1191 with_fp=no ;;
1192
1193 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1194 | --no-cr | --no-c | -n)
1195 no_create=yes ;;
1196
1197 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1198 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1199 no_recursion=yes ;;
1200
1201 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1202 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1203 | --oldin | --oldi | --old | --ol | --o)
1204 ac_prev=oldincludedir ;;
1205 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1206 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1207 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1208 oldincludedir=$ac_optarg ;;
1209
1210 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1211 ac_prev=prefix ;;
1212 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1213 prefix=$ac_optarg ;;
1214
1215 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1216 | --program-pre | --program-pr | --program-p)
1217 ac_prev=program_prefix ;;
1218 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1219 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1220 program_prefix=$ac_optarg ;;
1221
1222 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1223 | --program-suf | --program-su | --program-s)
1224 ac_prev=program_suffix ;;
1225 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1226 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1227 program_suffix=$ac_optarg ;;
1228
1229 -program-transform-name | --program-transform-name \
1230 | --program-transform-nam | --program-transform-na \
1231 | --program-transform-n | --program-transform- \
1232 | --program-transform | --program-transfor \
1233 | --program-transfo | --program-transf \
1234 | --program-trans | --program-tran \
1235 | --progr-tra | --program-tr | --program-t)
1236 ac_prev=program_transform_name ;;
1237 -program-transform-name=* | --program-transform-name=* \
1238 | --program-transform-nam=* | --program-transform-na=* \
1239 | --program-transform-n=* | --program-transform-=* \
1240 | --program-transform=* | --program-transfor=* \
1241 | --program-transfo=* | --program-transf=* \
1242 | --program-trans=* | --program-tran=* \
1243 | --progr-tra=* | --program-tr=* | --program-t=*)
1244 program_transform_name=$ac_optarg ;;
1245
1246 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1247 ac_prev=pdfdir ;;
1248 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1249 pdfdir=$ac_optarg ;;
1250
1251 -psdir | --psdir | --psdi | --psd | --ps)
1252 ac_prev=psdir ;;
1253 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1254 psdir=$ac_optarg ;;
1255
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1258 silent=yes ;;
1259
1260 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1261 ac_prev=sbindir ;;
1262 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1263 | --sbi=* | --sb=*)
1264 sbindir=$ac_optarg ;;
1265
1266 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1267 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1268 | --sharedst | --shareds | --shared | --share | --shar \
1269 | --sha | --sh)
1270 ac_prev=sharedstatedir ;;
1271 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1272 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1273 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1274 | --sha=* | --sh=*)
1275 sharedstatedir=$ac_optarg ;;
1276
1277 -site | --site | --sit)
1278 ac_prev=site ;;
1279 -site=* | --site=* | --sit=*)
1280 site=$ac_optarg ;;
1281
1282 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1283 ac_prev=srcdir ;;
1284 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1285 srcdir=$ac_optarg ;;
1286
1287 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1288 | --syscon | --sysco | --sysc | --sys | --sy)
1289 ac_prev=sysconfdir ;;
1290 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1291 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1292 sysconfdir=$ac_optarg ;;
1293
1294 -target | --target | --targe | --targ | --tar | --ta | --t)
1295 ac_prev=target_alias ;;
1296 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1297 target_alias=$ac_optarg ;;
1298
1299 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1300 verbose=yes ;;
1301
1302 -version | --version | --versio | --versi | --vers | -V)
1303 ac_init_version=: ;;
1304
1305 -with-* | --with-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error "invalid package name: $ac_useropt"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1313 *"
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=\$ac_optarg ;;
1320
1321 -without-* | --without-*)
1322 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325 as_fn_error "invalid package name: $ac_useropt"
1326 ac_useropt_orig=$ac_useropt
1327 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328 case $ac_user_opts in
1329 *"
1330 "with_$ac_useropt"
1331 "*) ;;
1332 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333 ac_unrecognized_sep=', ';;
1334 esac
1335 eval with_$ac_useropt=no ;;
1336
1337 --x)
1338 # Obsolete; use --with-x.
1339 with_x=yes ;;
1340
1341 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1342 | --x-incl | --x-inc | --x-in | --x-i)
1343 ac_prev=x_includes ;;
1344 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1345 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1346 x_includes=$ac_optarg ;;
1347
1348 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1349 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1350 ac_prev=x_libraries ;;
1351 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1352 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1353 x_libraries=$ac_optarg ;;
1354
1355 -*) as_fn_error "unrecognized option: \`$ac_option'
1356 Try \`$0 --help' for more information."
1357 ;;
1358
1359 *=*)
1360 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1361 # Reject names that are not valid shell variable names.
1362 case $ac_envvar in #(
1363 '' | [0-9]* | *[!_$as_cr_alnum]* )
1364 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1365 esac
1366 eval $ac_envvar=\$ac_optarg
1367 export $ac_envvar ;;
1368
1369 *)
1370 # FIXME: should be removed in autoconf 3.0.
1371 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1375 ;;
1376
1377 esac
1378 done
1379
1380 if test -n "$ac_prev"; then
1381 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1382 as_fn_error "missing argument to $ac_option"
1383 fi
1384
1385 if test -n "$ac_unrecognized_opts"; then
1386 case $enable_option_checking in
1387 no) ;;
1388 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1389 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1390 esac
1391 fi
1392
1393 # Check all directory arguments for consistency.
1394 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1395 datadir sysconfdir sharedstatedir localstatedir includedir \
1396 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1397 libdir localedir mandir
1398 do
1399 eval ac_val=\$$ac_var
1400 # Remove trailing slashes.
1401 case $ac_val in
1402 */ )
1403 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1404 eval $ac_var=\$ac_val;;
1405 esac
1406 # Be sure to have absolute directory names.
1407 case $ac_val in
1408 [\\/$]* | ?:[\\/]* ) continue;;
1409 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1410 esac
1411 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1412 done
1413
1414 # There might be people who depend on the old broken behavior: `$host'
1415 # used to hold the argument of --host etc.
1416 # FIXME: To remove some day.
1417 build=$build_alias
1418 host=$host_alias
1419 target=$target_alias
1420
1421 # FIXME: To remove some day.
1422 if test "x$host_alias" != x; then
1423 if test "x$build_alias" = x; then
1424 cross_compiling=maybe
1425 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1426 If a cross compiler is detected then cross compile mode will be used." >&2
1427 elif test "x$build_alias" != "x$host_alias"; then
1428 cross_compiling=yes
1429 fi
1430 fi
1431
1432 ac_tool_prefix=
1433 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1434
1435 test "$silent" = yes && exec 6>/dev/null
1436
1437
1438 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1439 ac_ls_di=`ls -di .` &&
1440 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1441 as_fn_error "working directory cannot be determined"
1442 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443 as_fn_error "pwd does not report name of working directory"
1444
1445
1446 # Find the source files, if location was not specified.
1447 if test -z "$srcdir"; then
1448 ac_srcdir_defaulted=yes
1449 # Try the directory containing this script, then the parent directory.
1450 ac_confdir=`$as_dirname -- "$as_myself" ||
1451 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452 X"$as_myself" : 'X\(//\)[^/]' \| \
1453 X"$as_myself" : 'X\(//\)$' \| \
1454 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455 $as_echo X"$as_myself" |
1456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1457 s//\1/
1458 q
1459 }
1460 /^X\(\/\/\)[^/].*/{
1461 s//\1/
1462 q
1463 }
1464 /^X\(\/\/\)$/{
1465 s//\1/
1466 q
1467 }
1468 /^X\(\/\).*/{
1469 s//\1/
1470 q
1471 }
1472 s/.*/./; q'`
1473 srcdir=$ac_confdir
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 srcdir=..
1476 fi
1477 else
1478 ac_srcdir_defaulted=no
1479 fi
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1482 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1483 fi
1484 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1485 ac_abs_confdir=`(
1486 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1487 pwd)`
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490 srcdir=.
1491 fi
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1495 case $srcdir in
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497 esac
1498 for ac_var in $ac_precious_vars; do
1499 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_env_${ac_var}_value=\$${ac_var}
1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503 done
1504
1505 #
1506 # Report the --help message.
1507 #
1508 if test "$ac_init_help" = "long"; then
1509 # Omit some internal or obsolete options to make the list less imposing.
1510 # This message is too long to be a string in the A/UX 3.1 sh.
1511 cat <<_ACEOF
1512 \`configure' configures this package to adapt to many kinds of systems.
1513
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1515
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE. See below for descriptions of some of the useful variables.
1518
1519 Defaults for the options are specified in brackets.
1520
1521 Configuration:
1522 -h, --help display this help and exit
1523 --help=short display options specific to this package
1524 --help=recursive display the short help of all the included packages
1525 -V, --version display version information and exit
1526 -q, --quiet, --silent do not print \`checking...' messages
1527 --cache-file=FILE cache test results in FILE [disabled]
1528 -C, --config-cache alias for \`--cache-file=config.cache'
1529 -n, --no-create do not create output files
1530 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1531
1532 Installation directories:
1533 --prefix=PREFIX install architecture-independent files in PREFIX
1534 [$ac_default_prefix]
1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1536 [PREFIX]
1537
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1542
1543 For better control, use the options below.
1544
1545 Fine tuning of the installation directories:
1546 --bindir=DIR user executables [EPREFIX/bin]
1547 --sbindir=DIR system admin executables [EPREFIX/sbin]
1548 --libexecdir=DIR program executables [EPREFIX/libexec]
1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1552 --libdir=DIR object code libraries [EPREFIX/lib]
1553 --includedir=DIR C header files [PREFIX/include]
1554 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1557 --infodir=DIR info documentation [DATAROOTDIR/info]
1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1559 --mandir=DIR man documentation [DATAROOTDIR/man]
1560 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1561 --htmldir=DIR html documentation [DOCDIR]
1562 --dvidir=DIR dvi documentation [DOCDIR]
1563 --pdfdir=DIR pdf documentation [DOCDIR]
1564 --psdir=DIR ps documentation [DOCDIR]
1565 _ACEOF
1566
1567 cat <<\_ACEOF
1568
1569 Program names:
1570 --program-prefix=PREFIX prepend PREFIX to installed program names
1571 --program-suffix=SUFFIX append SUFFIX to installed program names
1572 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1573
1574 System types:
1575 --build=BUILD configure for building on BUILD [guessed]
1576 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1577 --target=TARGET configure for building compilers for TARGET [HOST]
1578 _ACEOF
1579 fi
1580
1581 if test -n "$ac_init_help"; then
1582
1583 cat <<\_ACEOF
1584
1585 Optional Features:
1586 --disable-option-checking ignore unrecognized --enable/--with options
1587 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1588 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1589 --enable-generated-files-in-srcdir
1590 put copies of generated files in source dir intended
1591 for creating source tarballs for users without
1592 texinfo bison or flex
1593 --disable-largefile omit support for large files
1594 --disable-build-format-warnings
1595 don't use -Wformat while building GCC
1596 --enable-werror-always enable -Werror despite compiler version
1597 --enable-checking[=LIST]
1598 enable expensive run-time checks. With LIST, enable
1599 only specific categories of checks. Categories are:
1600 yes,no,all,none,release. Flags are:
1601 assert,df,extra,fold,gc,gcac,gimple,misc,
1602 rtlflag,rtl,runtime,tree,valgrind,types
1603 --enable-coverage[=LEVEL]
1604 enable compiler's code coverage collection. Use to
1605 measure compiler performance and locate unused parts
1606 of the compiler. With LEVEL, specify optimization.
1607 Values are opt, noopt, default is noopt
1608 --enable-gather-detailed-mem-stats
1609 enable detailed memory allocation stats gathering
1610 --enable-valgrind-annotations
1611 enable valgrind runtime interaction
1612 --enable-multilib enable library support for multiple ABIs
1613 --enable-multiarch enable support for multiarch paths
1614 --enable-__cxa_atexit enable __cxa_atexit for C++
1615 --enable-decimal-float={no,yes,bid,dpd}
1616 enable decimal float extension to C. Selecting 'bid'
1617 or 'dpd' choses which decimal floating point format
1618 to use
1619 --enable-fixed-point enable fixed-point arithmetic extension to C
1620 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1621 package
1622 --enable-tls enable or disable generation of tls code overriding
1623 the assembler check for tls support
1624 --enable-vtable-verify enable vtable verification feature
1625 --enable-objc-gc enable the use of Boehm's garbage collector with the
1626 GNU Objective-C runtime
1627 --disable-shared don't provide a shared libgcc
1628 --enable-languages=LIST specify which front-ends to build
1629 --disable-rpath do not hardcode runtime library paths
1630 --enable-sjlj-exceptions
1631 arrange to use setjmp/longjmp exception handling
1632 --enable-secureplt enable -msecure-plt by default for PowerPC
1633 --enable-leading-mingw64-underscores
1634 enable leading underscores on 64 bit mingw targets
1635 --enable-cld enable -mcld by default for 32bit x86
1636 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1637 x86
1638 --disable-win32-registry
1639 disable lookup of installation paths in the Registry
1640 on Windows hosts
1641 --enable-win32-registry enable registry lookup (default)
1642 --enable-win32-registry=KEY
1643 use KEY instead of GCC version as the last portion
1644 of the registry key
1645 --enable-shared[=PKGS] build shared libraries [default=yes]
1646 --enable-static[=PKGS] build static libraries [default=yes]
1647 --enable-fast-install[=PKGS]
1648 optimize for fast installation [default=yes]
1649 --disable-libtool-lock avoid locking (might break parallel builds)
1650 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1651 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1652 --enable-gnu-indirect-function
1653 enable the use of the @gnu_indirect_function to
1654 glibc systems
1655 --enable-initfini-array use .init_array/.fini_array sections
1656 --enable-comdat enable COMDAT group support
1657
1658 --enable-fix-cortex-a53-835769
1659 enable workaround for AArch64 Cortex-A53 erratum
1660 835769 by default
1661 --disable-fix-cortex-a53-835769
1662 disable workaround for AArch64 Cortex-A53 erratum
1663 835769 by default
1664
1665
1666 --enable-fix-cortex-a53-843419
1667 enable workaround for AArch64 Cortex-A53 erratum
1668 843419 by default
1669 --disable-fix-cortex-a53-843419
1670 disable workaround for AArch64 Cortex-A53 erratum
1671 843419 by default
1672
1673 --enable-gnu-unique-object
1674 enable the use of the @gnu_unique_object ELF
1675 extension on glibc systems
1676 --enable-linker-build-id
1677 compiler will always pass --build-id to linker
1678 --enable-default-ssp enable Stack Smashing Protection as default
1679 --enable-maintainer-mode
1680 enable make rules and dependencies not useful (and
1681 sometimes confusing) to the casual installer
1682 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1683 thrashing on the build machine
1684 --enable-version-specific-runtime-libs
1685 specify that runtime libraries should be installed
1686 in a compiler-specific directory
1687 --enable-plugin enable plugin support
1688 --enable-host-shared build host code as shared libraries
1689 --disable-libquadmath-support
1690 disable libquadmath support for Fortran
1691 --enable-default-pie enable Position Independent Executable as default
1692
1693 Optional Packages:
1694 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1695 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1696 --with-build-libsubdir=DIR Directory where to find libraries for build system
1697 --with-local-prefix=DIR specifies directory to put local include
1698 --with-native-system-header-dir=dir
1699 use dir as the directory to look for standard
1700 system header files in. Defaults to /usr/include.
1701 --with-build-sysroot=sysroot
1702 use sysroot as the system root during the build
1703 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1704 --with-gxx-include-dir=DIR
1705 specifies directory to put g++ header files
1706 --with-cpp-install-dir=DIR
1707 install the user visible C preprocessor in DIR
1708 (relative to PREFIX) as well as PREFIX/bin
1709 --with-gnu-ld arrange to work with GNU ld
1710 --with-ld arrange to use the specified ld (full pathname)
1711 --with-demangler-in-ld try to use demangler in GNU ld
1712 --with-gnu-as arrange to work with GNU as
1713 --with-as arrange to use the specified as (full pathname)
1714 --with-stabs arrange to use stabs instead of host debug format
1715 --with-dwarf2 force the default debug format to be DWARF 2
1716 --with-specs=SPECS add SPECS to driver command-line processing
1717 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1718 --with-bugurl=URL Direct users to URL to report a bug
1719 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1720 --with-gnu-ld assume the C compiler uses GNU ld default=no
1721 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1722 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1723 --with-pic try to use only PIC/non-PIC objects [default=use
1724 both]
1725 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1726 --with-plugin-ld=[ARG] specify the plugin linker
1727 --with-glibc-version=M.N
1728 assume GCC used with glibc version M.N or later
1729 --with-long-double-128 use 128-bit long double by default
1730 --with-gc={page,zone} this option is not supported anymore. It used to
1731 choose the garbage collection mechanism to use with
1732 the compiler
1733 --with-system-zlib use installed libz
1734 --with-linker-hash-style={sysv,gnu,both}
1735 specify the linker hash style
1736 --with-diagnostics-color={never,auto,auto-if-env,always}
1737 specify the default of -fdiagnostics-color option
1738 auto-if-env stands for -fdiagnostics-color=auto if
1739 GCC_COLOR environment variable is present and
1740 -fdiagnostics-color=never otherwise
1741
1742 Some influential environment variables:
1743 CC C compiler command
1744 CFLAGS C compiler flags
1745 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1746 nonstandard directory <lib dir>
1747 LIBS libraries to pass to the linker, e.g. -l<library>
1748 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1749 you have headers in a nonstandard directory <include dir>
1750 CXX C++ compiler command
1751 CXXFLAGS C++ compiler flags
1752 CXXCPP C++ preprocessor
1753 CPP C preprocessor
1754 GMPLIBS How to link GMP
1755 GMPINC How to find GMP include files
1756 ISLLIBS How to link isl
1757 ISLINC How to find isl include files
1758
1759 Use these variables to override the choices made by `configure' or to help
1760 it to find libraries and programs with nonstandard names/locations.
1761
1762 Report bugs to the package provider.
1763 _ACEOF
1764 ac_status=$?
1765 fi
1766
1767 if test "$ac_init_help" = "recursive"; then
1768 # If there are subdirs, report their specific --help.
1769 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1770 test -d "$ac_dir" ||
1771 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1772 continue
1773 ac_builddir=.
1774
1775 case "$ac_dir" in
1776 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1777 *)
1778 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1779 # A ".." for each directory in $ac_dir_suffix.
1780 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1781 case $ac_top_builddir_sub in
1782 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1783 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1784 esac ;;
1785 esac
1786 ac_abs_top_builddir=$ac_pwd
1787 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1788 # for backward compatibility:
1789 ac_top_builddir=$ac_top_build_prefix
1790
1791 case $srcdir in
1792 .) # We are building in place.
1793 ac_srcdir=.
1794 ac_top_srcdir=$ac_top_builddir_sub
1795 ac_abs_top_srcdir=$ac_pwd ;;
1796 [\\/]* | ?:[\\/]* ) # Absolute name.
1797 ac_srcdir=$srcdir$ac_dir_suffix;
1798 ac_top_srcdir=$srcdir
1799 ac_abs_top_srcdir=$srcdir ;;
1800 *) # Relative name.
1801 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1802 ac_top_srcdir=$ac_top_build_prefix$srcdir
1803 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1804 esac
1805 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1806
1807 cd "$ac_dir" || { ac_status=$?; continue; }
1808 # Check for guested configure.
1809 if test -f "$ac_srcdir/configure.gnu"; then
1810 echo &&
1811 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1812 elif test -f "$ac_srcdir/configure"; then
1813 echo &&
1814 $SHELL "$ac_srcdir/configure" --help=recursive
1815 else
1816 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1817 fi || ac_status=$?
1818 cd "$ac_pwd" || { ac_status=$?; break; }
1819 done
1820 fi
1821
1822 test -n "$ac_init_help" && exit $ac_status
1823 if $ac_init_version; then
1824 cat <<\_ACEOF
1825 configure
1826 generated by GNU Autoconf 2.64
1827
1828 Copyright (C) 2009 Free Software Foundation, Inc.
1829 This configure script is free software; the Free Software Foundation
1830 gives unlimited permission to copy, distribute and modify it.
1831 _ACEOF
1832 exit
1833 fi
1834
1835 ## ------------------------ ##
1836 ## Autoconf initialization. ##
1837 ## ------------------------ ##
1838
1839 # ac_fn_c_try_compile LINENO
1840 # --------------------------
1841 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_c_try_compile ()
1843 {
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext
1846 if { { ac_try="$ac_compile"
1847 case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_compile") 2>conftest.err
1854 ac_status=$?
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1859 fi
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest.$ac_objext; then :
1865 ac_retval=0
1866 else
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870 ac_retval=1
1871 fi
1872 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873 return $ac_retval
1874
1875 } # ac_fn_c_try_compile
1876
1877 # ac_fn_cxx_try_compile LINENO
1878 # ----------------------------
1879 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1880 ac_fn_cxx_try_compile ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 rm -f conftest.$ac_objext
1884 if { { ac_try="$ac_compile"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_compile") 2>conftest.err
1892 ac_status=$?
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1897 fi
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && {
1900 test -z "$ac_cxx_werror_flag" ||
1901 test ! -s conftest.err
1902 } && test -s conftest.$ac_objext; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1907
1908 ac_retval=1
1909 fi
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 return $ac_retval
1912
1913 } # ac_fn_cxx_try_compile
1914
1915 # ac_fn_cxx_try_cpp LINENO
1916 # ------------------------
1917 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1918 ac_fn_cxx_try_cpp ()
1919 {
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 if { { ac_try="$ac_cpp conftest.$ac_ext"
1922 case "(($ac_try" in
1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1925 esac
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1929 ac_status=$?
1930 if test -s conftest.err; then
1931 grep -v '^ *+' conftest.err >conftest.er1
1932 cat conftest.er1 >&5
1933 mv -f conftest.er1 conftest.err
1934 fi
1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; } >/dev/null && {
1937 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1938 test ! -s conftest.err
1939 }; then :
1940 ac_retval=0
1941 else
1942 $as_echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1944
1945 ac_retval=1
1946 fi
1947 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948 return $ac_retval
1949
1950 } # ac_fn_cxx_try_cpp
1951
1952 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1953 # ---------------------------------------------------------
1954 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1955 # the include files in INCLUDES and setting the cache variable VAR
1956 # accordingly.
1957 ac_fn_cxx_check_header_mongrel ()
1958 {
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1965 fi
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 else
1970 # Is the header compilable?
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1972 $as_echo_n "checking $2 usability... " >&6; }
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 $4
1976 #include <$2>
1977 _ACEOF
1978 if ac_fn_cxx_try_compile "$LINENO"; then :
1979 ac_header_compiler=yes
1980 else
1981 ac_header_compiler=no
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1985 $as_echo "$ac_header_compiler" >&6; }
1986
1987 # Is the header present?
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1989 $as_echo_n "checking $2 presence... " >&6; }
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 #include <$2>
1993 _ACEOF
1994 if ac_fn_cxx_try_cpp "$LINENO"; then :
1995 ac_header_preproc=yes
1996 else
1997 ac_header_preproc=no
1998 fi
1999 rm -f conftest.err conftest.$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2001 $as_echo "$ac_header_preproc" >&6; }
2002
2003 # So? What about this header?
2004 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2005 yes:no: )
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2007 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2010 ;;
2011 no:yes:* )
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2013 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2015 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2017 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2019 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2022 ;;
2023 esac
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025 $as_echo_n "checking for $2... " >&6; }
2026 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2027 $as_echo_n "(cached) " >&6
2028 else
2029 eval "$3=\$ac_header_compiler"
2030 fi
2031 eval ac_res=\$$3
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034 fi
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036
2037 } # ac_fn_cxx_check_header_mongrel
2038
2039 # ac_fn_cxx_try_run LINENO
2040 # ------------------------
2041 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2042 # that executables *can* be run.
2043 ac_fn_cxx_try_run ()
2044 {
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 if { { ac_try="$ac_link"
2047 case "(($ac_try" in
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2050 esac
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_link") 2>&5
2054 ac_status=$?
2055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2057 { { case "(($ac_try" in
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2060 esac
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_try") 2>&5
2064 ac_status=$?
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; }; }; then :
2067 ac_retval=0
2068 else
2069 $as_echo "$as_me: program exited with status $ac_status" >&5
2070 $as_echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2072
2073 ac_retval=$ac_status
2074 fi
2075 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077 return $ac_retval
2078
2079 } # ac_fn_cxx_try_run
2080
2081 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2082 # ---------------------------------------------------------
2083 # Tests whether HEADER exists and can be compiled using the include files in
2084 # INCLUDES, setting the cache variable VAR accordingly.
2085 ac_fn_cxx_check_header_compile ()
2086 {
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2091 $as_echo_n "(cached) " >&6
2092 else
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2095 $4
2096 #include <$2>
2097 _ACEOF
2098 if ac_fn_cxx_try_compile "$LINENO"; then :
2099 eval "$3=yes"
2100 else
2101 eval "$3=no"
2102 fi
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 fi
2105 eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2109
2110 } # ac_fn_cxx_check_header_compile
2111
2112 # ac_fn_c_try_cpp LINENO
2113 # ----------------------
2114 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2115 ac_fn_c_try_cpp ()
2116 {
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 if { { ac_try="$ac_cpp conftest.$ac_ext"
2119 case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122 esac
2123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124 $as_echo "$ac_try_echo"; } >&5
2125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2126 ac_status=$?
2127 if test -s conftest.err; then
2128 grep -v '^ *+' conftest.err >conftest.er1
2129 cat conftest.er1 >&5
2130 mv -f conftest.er1 conftest.err
2131 fi
2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2133 test $ac_status = 0; } >/dev/null && {
2134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2135 test ! -s conftest.err
2136 }; then :
2137 ac_retval=0
2138 else
2139 $as_echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2141
2142 ac_retval=1
2143 fi
2144 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2145 return $ac_retval
2146
2147 } # ac_fn_c_try_cpp
2148
2149 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2150 # ----------------------------------------------
2151 # Tries to find the compile-time value of EXPR in a program that includes
2152 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2153 # computed
2154 ac_fn_cxx_compute_int ()
2155 {
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 if test "$cross_compiling" = yes; then
2158 # Depending upon the size, compute the lo and hi bounds.
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2161 $4
2162 int
2163 main ()
2164 {
2165 static int test_array [1 - 2 * !(($2) >= 0)];
2166 test_array [0] = 0
2167
2168 ;
2169 return 0;
2170 }
2171 _ACEOF
2172 if ac_fn_cxx_try_compile "$LINENO"; then :
2173 ac_lo=0 ac_mid=0
2174 while :; do
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2177 $4
2178 int
2179 main ()
2180 {
2181 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2182 test_array [0] = 0
2183
2184 ;
2185 return 0;
2186 }
2187 _ACEOF
2188 if ac_fn_cxx_try_compile "$LINENO"; then :
2189 ac_hi=$ac_mid; break
2190 else
2191 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2192 if test $ac_lo -le $ac_mid; then
2193 ac_lo= ac_hi=
2194 break
2195 fi
2196 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2197 fi
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 done
2200 else
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2203 $4
2204 int
2205 main ()
2206 {
2207 static int test_array [1 - 2 * !(($2) < 0)];
2208 test_array [0] = 0
2209
2210 ;
2211 return 0;
2212 }
2213 _ACEOF
2214 if ac_fn_cxx_try_compile "$LINENO"; then :
2215 ac_hi=-1 ac_mid=-1
2216 while :; do
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2219 $4
2220 int
2221 main ()
2222 {
2223 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2224 test_array [0] = 0
2225
2226 ;
2227 return 0;
2228 }
2229 _ACEOF
2230 if ac_fn_cxx_try_compile "$LINENO"; then :
2231 ac_lo=$ac_mid; break
2232 else
2233 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2234 if test $ac_mid -le $ac_hi; then
2235 ac_lo= ac_hi=
2236 break
2237 fi
2238 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2239 fi
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 done
2242 else
2243 ac_lo= ac_hi=
2244 fi
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 fi
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 # Binary search between lo and hi bounds.
2249 while test "x$ac_lo" != "x$ac_hi"; do
2250 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2253 $4
2254 int
2255 main ()
2256 {
2257 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2258 test_array [0] = 0
2259
2260 ;
2261 return 0;
2262 }
2263 _ACEOF
2264 if ac_fn_cxx_try_compile "$LINENO"; then :
2265 ac_hi=$ac_mid
2266 else
2267 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 done
2271 case $ac_lo in #((
2272 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2273 '') ac_retval=1 ;;
2274 esac
2275 else
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2278 $4
2279 static long int longval () { return $2; }
2280 static unsigned long int ulongval () { return $2; }
2281 #include <stdio.h>
2282 #include <stdlib.h>
2283 int
2284 main ()
2285 {
2286
2287 FILE *f = fopen ("conftest.val", "w");
2288 if (! f)
2289 return 1;
2290 if (($2) < 0)
2291 {
2292 long int i = longval ();
2293 if (i != ($2))
2294 return 1;
2295 fprintf (f, "%ld", i);
2296 }
2297 else
2298 {
2299 unsigned long int i = ulongval ();
2300 if (i != ($2))
2301 return 1;
2302 fprintf (f, "%lu", i);
2303 }
2304 /* Do not output a trailing newline, as this causes \r\n confusion
2305 on some platforms. */
2306 return ferror (f) || fclose (f) != 0;
2307
2308 ;
2309 return 0;
2310 }
2311 _ACEOF
2312 if ac_fn_cxx_try_run "$LINENO"; then :
2313 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2314 else
2315 ac_retval=1
2316 fi
2317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2318 conftest.$ac_objext conftest.beam conftest.$ac_ext
2319 rm -f conftest.val
2320
2321 fi
2322 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2323 return $ac_retval
2324
2325 } # ac_fn_cxx_compute_int
2326
2327 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2328 # ---------------------------------------------
2329 # Tests whether TYPE exists after having included INCLUDES, setting cache
2330 # variable VAR accordingly.
2331 ac_fn_cxx_check_type ()
2332 {
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2335 $as_echo_n "checking for $2... " >&6; }
2336 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2337 $as_echo_n "(cached) " >&6
2338 else
2339 eval "$3=no"
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2342 $4
2343 int
2344 main ()
2345 {
2346 if (sizeof ($2))
2347 return 0;
2348 ;
2349 return 0;
2350 }
2351 _ACEOF
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2355 $4
2356 int
2357 main ()
2358 {
2359 if (sizeof (($2)))
2360 return 0;
2361 ;
2362 return 0;
2363 }
2364 _ACEOF
2365 if ac_fn_cxx_try_compile "$LINENO"; then :
2366
2367 else
2368 eval "$3=yes"
2369 fi
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 fi
2372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 fi
2374 eval ac_res=\$$3
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2376 $as_echo "$ac_res" >&6; }
2377 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2378
2379 } # ac_fn_cxx_check_type
2380
2381 # ac_fn_c_find_intX_t LINENO BITS VAR
2382 # -----------------------------------
2383 # Finds a signed integer type with width BITS, setting cache variable VAR
2384 # accordingly.
2385 ac_fn_c_find_intX_t ()
2386 {
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2389 $as_echo_n "checking for int$2_t... " >&6; }
2390 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2391 $as_echo_n "(cached) " >&6
2392 else
2393 eval "$3=no"
2394 for ac_type in int$2_t 'int' 'long int' \
2395 'long long int' 'short int' 'signed char'; do
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2398 $ac_includes_default
2399 int
2400 main ()
2401 {
2402 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2403 test_array [0] = 0
2404
2405 ;
2406 return 0;
2407 }
2408 _ACEOF
2409 if ac_fn_cxx_try_compile "$LINENO"; then :
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2412 $ac_includes_default
2413 int
2414 main ()
2415 {
2416 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2417 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2418 test_array [0] = 0
2419
2420 ;
2421 return 0;
2422 }
2423 _ACEOF
2424 if ac_fn_cxx_try_compile "$LINENO"; then :
2425
2426 else
2427 case $ac_type in #(
2428 int$2_t) :
2429 eval "$3=yes" ;; #(
2430 *) :
2431 eval "$3=\$ac_type" ;;
2432 esac
2433 fi
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 fi
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 eval as_val=\$$3
2438 if test "x$as_val" = x""no; then :
2439
2440 else
2441 break
2442 fi
2443 done
2444 fi
2445 eval ac_res=\$$3
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2447 $as_echo "$ac_res" >&6; }
2448 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2449
2450 } # ac_fn_c_find_intX_t
2451
2452 # ac_fn_cxx_try_link LINENO
2453 # -------------------------
2454 # Try to link conftest.$ac_ext, and return whether this succeeded.
2455 ac_fn_cxx_try_link ()
2456 {
2457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2458 rm -f conftest.$ac_objext conftest$ac_exeext
2459 if { { ac_try="$ac_link"
2460 case "(($ac_try" in
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2463 esac
2464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2465 $as_echo "$ac_try_echo"; } >&5
2466 (eval "$ac_link") 2>conftest.err
2467 ac_status=$?
2468 if test -s conftest.err; then
2469 grep -v '^ *+' conftest.err >conftest.er1
2470 cat conftest.er1 >&5
2471 mv -f conftest.er1 conftest.err
2472 fi
2473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2474 test $ac_status = 0; } && {
2475 test -z "$ac_cxx_werror_flag" ||
2476 test ! -s conftest.err
2477 } && test -s conftest$ac_exeext && {
2478 test "$cross_compiling" = yes ||
2479 $as_test_x conftest$ac_exeext
2480 }; then :
2481 ac_retval=0
2482 else
2483 $as_echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2485
2486 ac_retval=1
2487 fi
2488 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2489 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2490 # interfere with the next link command; also delete a directory that is
2491 # left behind by Apple's compiler. We do this before executing the actions.
2492 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2493 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2494 return $ac_retval
2495
2496 } # ac_fn_cxx_try_link
2497
2498 # ac_fn_c_find_uintX_t LINENO BITS VAR
2499 # ------------------------------------
2500 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2501 # accordingly.
2502 ac_fn_c_find_uintX_t ()
2503 {
2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2506 $as_echo_n "checking for uint$2_t... " >&6; }
2507 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 eval "$3=no"
2511 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2512 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2515 $ac_includes_default
2516 int
2517 main ()
2518 {
2519 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2520 test_array [0] = 0
2521
2522 ;
2523 return 0;
2524 }
2525 _ACEOF
2526 if ac_fn_cxx_try_compile "$LINENO"; then :
2527 case $ac_type in #(
2528 uint$2_t) :
2529 eval "$3=yes" ;; #(
2530 *) :
2531 eval "$3=\$ac_type" ;;
2532 esac
2533 fi
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535 eval as_val=\$$3
2536 if test "x$as_val" = x""no; then :
2537
2538 else
2539 break
2540 fi
2541 done
2542 fi
2543 eval ac_res=\$$3
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2545 $as_echo "$ac_res" >&6; }
2546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2547
2548 } # ac_fn_c_find_uintX_t
2549
2550 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2551 # ------------------------------------------------
2552 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2553 ac_fn_cxx_check_header_preproc ()
2554 {
2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2557 $as_echo_n "checking for $2... " >&6; }
2558 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2559 $as_echo_n "(cached) " >&6
2560 else
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2563 #include <$2>
2564 _ACEOF
2565 if ac_fn_cxx_try_cpp "$LINENO"; then :
2566 eval "$3=yes"
2567 else
2568 eval "$3=no"
2569 fi
2570 rm -f conftest.err conftest.$ac_ext
2571 fi
2572 eval ac_res=\$$3
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574 $as_echo "$ac_res" >&6; }
2575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2576
2577 } # ac_fn_cxx_check_header_preproc
2578
2579 # ac_fn_cxx_check_func LINENO FUNC VAR
2580 # ------------------------------------
2581 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2582 ac_fn_cxx_check_func ()
2583 {
2584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2586 $as_echo_n "checking for $2... " >&6; }
2587 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2588 $as_echo_n "(cached) " >&6
2589 else
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2592 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2594 #define $2 innocuous_$2
2595
2596 /* System header to define __stub macros and hopefully few prototypes,
2597 which can conflict with char $2 (); below.
2598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2599 <limits.h> exists even on freestanding compilers. */
2600
2601 #ifdef __STDC__
2602 # include <limits.h>
2603 #else
2604 # include <assert.h>
2605 #endif
2606
2607 #undef $2
2608
2609 /* Override any GCC internal prototype to avoid an error.
2610 Use char because int might match the return type of a GCC
2611 builtin and then its argument prototype would still apply. */
2612 #ifdef __cplusplus
2613 extern "C"
2614 #endif
2615 char $2 ();
2616 /* The GNU C library defines this for functions which it implements
2617 to always fail with ENOSYS. Some functions are actually named
2618 something starting with __ and the normal name is an alias. */
2619 #if defined __stub_$2 || defined __stub___$2
2620 choke me
2621 #endif
2622
2623 int
2624 main ()
2625 {
2626 return $2 ();
2627 ;
2628 return 0;
2629 }
2630 _ACEOF
2631 if ac_fn_cxx_try_link "$LINENO"; then :
2632 eval "$3=yes"
2633 else
2634 eval "$3=no"
2635 fi
2636 rm -f core conftest.err conftest.$ac_objext \
2637 conftest$ac_exeext conftest.$ac_ext
2638 fi
2639 eval ac_res=\$$3
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2641 $as_echo "$ac_res" >&6; }
2642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2643
2644 } # ac_fn_cxx_check_func
2645
2646 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2647 # --------------------------------------
2648 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2649 ac_fn_cxx_check_decl ()
2650 {
2651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2652 as_decl_name=`echo $2|sed 's/ *(.*//'`
2653 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2655 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2656 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660 /* end confdefs.h. */
2661 $4
2662 int
2663 main ()
2664 {
2665 #ifndef $as_decl_name
2666 #ifdef __cplusplus
2667 (void) $as_decl_use;
2668 #else
2669 (void) $as_decl_name;
2670 #endif
2671 #endif
2672
2673 ;
2674 return 0;
2675 }
2676 _ACEOF
2677 if ac_fn_cxx_try_compile "$LINENO"; then :
2678 eval "$3=yes"
2679 else
2680 eval "$3=no"
2681 fi
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 fi
2684 eval ac_res=\$$3
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2686 $as_echo "$ac_res" >&6; }
2687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2688
2689 } # ac_fn_cxx_check_decl
2690
2691 # ac_fn_c_try_link LINENO
2692 # -----------------------
2693 # Try to link conftest.$ac_ext, and return whether this succeeded.
2694 ac_fn_c_try_link ()
2695 {
2696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2697 rm -f conftest.$ac_objext conftest$ac_exeext
2698 if { { ac_try="$ac_link"
2699 case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702 esac
2703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2704 $as_echo "$ac_try_echo"; } >&5
2705 (eval "$ac_link") 2>conftest.err
2706 ac_status=$?
2707 if test -s conftest.err; then
2708 grep -v '^ *+' conftest.err >conftest.er1
2709 cat conftest.er1 >&5
2710 mv -f conftest.er1 conftest.err
2711 fi
2712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2713 test $ac_status = 0; } && {
2714 test -z "$ac_c_werror_flag" ||
2715 test ! -s conftest.err
2716 } && test -s conftest$ac_exeext && {
2717 test "$cross_compiling" = yes ||
2718 $as_test_x conftest$ac_exeext
2719 }; then :
2720 ac_retval=0
2721 else
2722 $as_echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2724
2725 ac_retval=1
2726 fi
2727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2729 # interfere with the next link command; also delete a directory that is
2730 # left behind by Apple's compiler. We do this before executing the actions.
2731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2733 return $ac_retval
2734
2735 } # ac_fn_c_try_link
2736
2737 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2738 # ----------------------------------------------
2739 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2740 ac_fn_c_check_header_preproc ()
2741 {
2742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2744 $as_echo_n "checking for $2... " >&6; }
2745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2750 #include <$2>
2751 _ACEOF
2752 if ac_fn_c_try_cpp "$LINENO"; then :
2753 eval "$3=yes"
2754 else
2755 eval "$3=no"
2756 fi
2757 rm -f conftest.err conftest.$ac_ext
2758 fi
2759 eval ac_res=\$$3
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2761 $as_echo "$ac_res" >&6; }
2762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2763
2764 } # ac_fn_c_check_header_preproc
2765
2766 # ac_fn_c_check_func LINENO FUNC VAR
2767 # ----------------------------------
2768 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2769 ac_fn_c_check_func ()
2770 {
2771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2773 $as_echo_n "checking for $2... " >&6; }
2774 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2775 $as_echo_n "(cached) " >&6
2776 else
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778 /* end confdefs.h. */
2779 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2781 #define $2 innocuous_$2
2782
2783 /* System header to define __stub macros and hopefully few prototypes,
2784 which can conflict with char $2 (); below.
2785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2786 <limits.h> exists even on freestanding compilers. */
2787
2788 #ifdef __STDC__
2789 # include <limits.h>
2790 #else
2791 # include <assert.h>
2792 #endif
2793
2794 #undef $2
2795
2796 /* Override any GCC internal prototype to avoid an error.
2797 Use char because int might match the return type of a GCC
2798 builtin and then its argument prototype would still apply. */
2799 #ifdef __cplusplus
2800 extern "C"
2801 #endif
2802 char $2 ();
2803 /* The GNU C library defines this for functions which it implements
2804 to always fail with ENOSYS. Some functions are actually named
2805 something starting with __ and the normal name is an alias. */
2806 #if defined __stub_$2 || defined __stub___$2
2807 choke me
2808 #endif
2809
2810 int
2811 main ()
2812 {
2813 return $2 ();
2814 ;
2815 return 0;
2816 }
2817 _ACEOF
2818 if ac_fn_c_try_link "$LINENO"; then :
2819 eval "$3=yes"
2820 else
2821 eval "$3=no"
2822 fi
2823 rm -f core conftest.err conftest.$ac_objext \
2824 conftest$ac_exeext conftest.$ac_ext
2825 fi
2826 eval ac_res=\$$3
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2828 $as_echo "$ac_res" >&6; }
2829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2830
2831 } # ac_fn_c_check_func
2832 cat >config.log <<_ACEOF
2833 This file contains any messages produced by compilers while
2834 running configure, to aid debugging if configure makes a mistake.
2835
2836 It was created by $as_me, which was
2837 generated by GNU Autoconf 2.64. Invocation command line was
2838
2839 $ $0 $@
2840
2841 _ACEOF
2842 exec 5>>config.log
2843 {
2844 cat <<_ASUNAME
2845 ## --------- ##
2846 ## Platform. ##
2847 ## --------- ##
2848
2849 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2850 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2851 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2852 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2853 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2854
2855 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2856 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2857
2858 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2859 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2860 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2861 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2862 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2863 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2864 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2865
2866 _ASUNAME
2867
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 $as_echo "PATH: $as_dir"
2874 done
2875 IFS=$as_save_IFS
2876
2877 } >&5
2878
2879 cat >&5 <<_ACEOF
2880
2881
2882 ## ----------- ##
2883 ## Core tests. ##
2884 ## ----------- ##
2885
2886 _ACEOF
2887
2888
2889 # Keep a trace of the command line.
2890 # Strip out --no-create and --no-recursion so they do not pile up.
2891 # Strip out --silent because we don't want to record it for future runs.
2892 # Also quote any args containing shell meta-characters.
2893 # Make two passes to allow for proper duplicate-argument suppression.
2894 ac_configure_args=
2895 ac_configure_args0=
2896 ac_configure_args1=
2897 ac_must_keep_next=false
2898 for ac_pass in 1 2
2899 do
2900 for ac_arg
2901 do
2902 case $ac_arg in
2903 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2904 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2905 | -silent | --silent | --silen | --sile | --sil)
2906 continue ;;
2907 *\'*)
2908 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2909 esac
2910 case $ac_pass in
2911 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2912 2)
2913 as_fn_append ac_configure_args1 " '$ac_arg'"
2914 if test $ac_must_keep_next = true; then
2915 ac_must_keep_next=false # Got value, back to normal.
2916 else
2917 case $ac_arg in
2918 *=* | --config-cache | -C | -disable-* | --disable-* \
2919 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2920 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2921 | -with-* | --with-* | -without-* | --without-* | --x)
2922 case "$ac_configure_args0 " in
2923 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2924 esac
2925 ;;
2926 -* ) ac_must_keep_next=true ;;
2927 esac
2928 fi
2929 as_fn_append ac_configure_args " '$ac_arg'"
2930 ;;
2931 esac
2932 done
2933 done
2934 { ac_configure_args0=; unset ac_configure_args0;}
2935 { ac_configure_args1=; unset ac_configure_args1;}
2936
2937 # When interrupted or exit'd, cleanup temporary files, and complete
2938 # config.log. We remove comments because anyway the quotes in there
2939 # would cause problems or look ugly.
2940 # WARNING: Use '\'' to represent an apostrophe within the trap.
2941 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2942 trap 'exit_status=$?
2943 # Save into config.log some information that might help in debugging.
2944 {
2945 echo
2946
2947 cat <<\_ASBOX
2948 ## ---------------- ##
2949 ## Cache variables. ##
2950 ## ---------------- ##
2951 _ASBOX
2952 echo
2953 # The following way of writing the cache mishandles newlines in values,
2954 (
2955 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2956 eval ac_val=\$$ac_var
2957 case $ac_val in #(
2958 *${as_nl}*)
2959 case $ac_var in #(
2960 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2961 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2962 esac
2963 case $ac_var in #(
2964 _ | IFS | as_nl) ;; #(
2965 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2966 *) { eval $ac_var=; unset $ac_var;} ;;
2967 esac ;;
2968 esac
2969 done
2970 (set) 2>&1 |
2971 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2972 *${as_nl}ac_space=\ *)
2973 sed -n \
2974 "s/'\''/'\''\\\\'\'''\''/g;
2975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2976 ;; #(
2977 *)
2978 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2979 ;;
2980 esac |
2981 sort
2982 )
2983 echo
2984
2985 cat <<\_ASBOX
2986 ## ----------------- ##
2987 ## Output variables. ##
2988 ## ----------------- ##
2989 _ASBOX
2990 echo
2991 for ac_var in $ac_subst_vars
2992 do
2993 eval ac_val=\$$ac_var
2994 case $ac_val in
2995 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2996 esac
2997 $as_echo "$ac_var='\''$ac_val'\''"
2998 done | sort
2999 echo
3000
3001 if test -n "$ac_subst_files"; then
3002 cat <<\_ASBOX
3003 ## ------------------- ##
3004 ## File substitutions. ##
3005 ## ------------------- ##
3006 _ASBOX
3007 echo
3008 for ac_var in $ac_subst_files
3009 do
3010 eval ac_val=\$$ac_var
3011 case $ac_val in
3012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3013 esac
3014 $as_echo "$ac_var='\''$ac_val'\''"
3015 done | sort
3016 echo
3017 fi
3018
3019 if test -s confdefs.h; then
3020 cat <<\_ASBOX
3021 ## ----------- ##
3022 ## confdefs.h. ##
3023 ## ----------- ##
3024 _ASBOX
3025 echo
3026 cat confdefs.h
3027 echo
3028 fi
3029 test "$ac_signal" != 0 &&
3030 $as_echo "$as_me: caught signal $ac_signal"
3031 $as_echo "$as_me: exit $exit_status"
3032 } >&5
3033 rm -f core *.core core.conftest.* &&
3034 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3035 exit $exit_status
3036 ' 0
3037 for ac_signal in 1 2 13 15; do
3038 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3039 done
3040 ac_signal=0
3041
3042 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3043 rm -f -r conftest* confdefs.h
3044
3045 $as_echo "/* confdefs.h */" > confdefs.h
3046
3047 # Predefined preprocessor variables.
3048
3049 cat >>confdefs.h <<_ACEOF
3050 #define PACKAGE_NAME "$PACKAGE_NAME"
3051 _ACEOF
3052
3053 cat >>confdefs.h <<_ACEOF
3054 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3055 _ACEOF
3056
3057 cat >>confdefs.h <<_ACEOF
3058 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3059 _ACEOF
3060
3061 cat >>confdefs.h <<_ACEOF
3062 #define PACKAGE_STRING "$PACKAGE_STRING"
3063 _ACEOF
3064
3065 cat >>confdefs.h <<_ACEOF
3066 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3067 _ACEOF
3068
3069 cat >>confdefs.h <<_ACEOF
3070 #define PACKAGE_URL "$PACKAGE_URL"
3071 _ACEOF
3072
3073
3074 # Let the site file select an alternate cache file if it wants to.
3075 # Prefer an explicitly selected file to automatically selected ones.
3076 ac_site_file1=NONE
3077 ac_site_file2=NONE
3078 if test -n "$CONFIG_SITE"; then
3079 ac_site_file1=$CONFIG_SITE
3080 elif test "x$prefix" != xNONE; then
3081 ac_site_file1=$prefix/share/config.site
3082 ac_site_file2=$prefix/etc/config.site
3083 else
3084 ac_site_file1=$ac_default_prefix/share/config.site
3085 ac_site_file2=$ac_default_prefix/etc/config.site
3086 fi
3087 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3088 do
3089 test "x$ac_site_file" = xNONE && continue
3090 if test -r "$ac_site_file"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3092 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3093 sed 's/^/| /' "$ac_site_file" >&5
3094 . "$ac_site_file"
3095 fi
3096 done
3097
3098 if test -r "$cache_file"; then
3099 # Some versions of bash will fail to source /dev/null (special
3100 # files actually), so we avoid doing that.
3101 if test -f "$cache_file"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3103 $as_echo "$as_me: loading cache $cache_file" >&6;}
3104 case $cache_file in
3105 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3106 *) . "./$cache_file";;
3107 esac
3108 fi
3109 else
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3111 $as_echo "$as_me: creating cache $cache_file" >&6;}
3112 >$cache_file
3113 fi
3114
3115 # Check that the precious variables saved in the cache have kept the same
3116 # value.
3117 ac_cache_corrupted=false
3118 for ac_var in $ac_precious_vars; do
3119 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3120 eval ac_new_set=\$ac_env_${ac_var}_set
3121 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3122 eval ac_new_val=\$ac_env_${ac_var}_value
3123 case $ac_old_set,$ac_new_set in
3124 set,)
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3126 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3127 ac_cache_corrupted=: ;;
3128 ,set)
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3130 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3131 ac_cache_corrupted=: ;;
3132 ,);;
3133 *)
3134 if test "x$ac_old_val" != "x$ac_new_val"; then
3135 # differences in whitespace do not lead to failure.
3136 ac_old_val_w=`echo x $ac_old_val`
3137 ac_new_val_w=`echo x $ac_new_val`
3138 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3140 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3141 ac_cache_corrupted=:
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3144 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3145 eval $ac_var=\$ac_old_val
3146 fi
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3148 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3150 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3151 fi;;
3152 esac
3153 # Pass precious variables to config.status.
3154 if test "$ac_new_set" = set; then
3155 case $ac_new_val in
3156 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3157 *) ac_arg=$ac_var=$ac_new_val ;;
3158 esac
3159 case " $ac_configure_args " in
3160 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3161 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3162 esac
3163 fi
3164 done
3165 if $ac_cache_corrupted; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3169 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3170 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3171 fi
3172 ## -------------------- ##
3173 ## Main body of script. ##
3174 ## -------------------- ##
3175
3176 ac_ext=c
3177 ac_cpp='$CPP $CPPFLAGS'
3178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181
3182
3183
3184
3185
3186
3187 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3188
3189
3190 gcc_version=`cat $srcdir/BASE-VER`
3191
3192 # Determine the host, build, and target systems
3193 ac_aux_dir=
3194 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3195 for ac_t in install-sh install.sh shtool; do
3196 if test -f "$ac_dir/$ac_t"; then
3197 ac_aux_dir=$ac_dir
3198 ac_install_sh="$ac_aux_dir/$ac_t -c"
3199 break 2
3200 fi
3201 done
3202 done
3203 if test -z "$ac_aux_dir"; then
3204 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3205 fi
3206
3207 # These three variables are undocumented and unsupported,
3208 # and are intended to be withdrawn in a future Autoconf release.
3209 # They can cause serious problems if a builder's source tree is in a directory
3210 # whose full name contains unusual characters.
3211 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3212 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3213 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3214
3215
3216 # Make sure we can run config.sub.
3217 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3218 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3219
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3221 $as_echo_n "checking build system type... " >&6; }
3222 if test "${ac_cv_build+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 ac_build_alias=$build_alias
3226 test "x$ac_build_alias" = x &&
3227 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3228 test "x$ac_build_alias" = x &&
3229 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3230 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3231 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3232
3233 fi
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3235 $as_echo "$ac_cv_build" >&6; }
3236 case $ac_cv_build in
3237 *-*-*) ;;
3238 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3239 esac
3240 build=$ac_cv_build
3241 ac_save_IFS=$IFS; IFS='-'
3242 set x $ac_cv_build
3243 shift
3244 build_cpu=$1
3245 build_vendor=$2
3246 shift; shift
3247 # Remember, the first character of IFS is used to create $*,
3248 # except with old shells:
3249 build_os=$*
3250 IFS=$ac_save_IFS
3251 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3252
3253
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3255 $as_echo_n "checking host system type... " >&6; }
3256 if test "${ac_cv_host+set}" = set; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 if test "x$host_alias" = x; then
3260 ac_cv_host=$ac_cv_build
3261 else
3262 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3263 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3264 fi
3265
3266 fi
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3268 $as_echo "$ac_cv_host" >&6; }
3269 case $ac_cv_host in
3270 *-*-*) ;;
3271 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3272 esac
3273 host=$ac_cv_host
3274 ac_save_IFS=$IFS; IFS='-'
3275 set x $ac_cv_host
3276 shift
3277 host_cpu=$1
3278 host_vendor=$2
3279 shift; shift
3280 # Remember, the first character of IFS is used to create $*,
3281 # except with old shells:
3282 host_os=$*
3283 IFS=$ac_save_IFS
3284 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3285
3286
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3288 $as_echo_n "checking target system type... " >&6; }
3289 if test "${ac_cv_target+set}" = set; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 if test "x$target_alias" = x; then
3293 ac_cv_target=$ac_cv_host
3294 else
3295 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3296 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3297 fi
3298
3299 fi
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3301 $as_echo "$ac_cv_target" >&6; }
3302 case $ac_cv_target in
3303 *-*-*) ;;
3304 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3305 esac
3306 target=$ac_cv_target
3307 ac_save_IFS=$IFS; IFS='-'
3308 set x $ac_cv_target
3309 shift
3310 target_cpu=$1
3311 target_vendor=$2
3312 shift; shift
3313 # Remember, the first character of IFS is used to create $*,
3314 # except with old shells:
3315 target_os=$*
3316 IFS=$ac_save_IFS
3317 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3318
3319
3320 # The aliases save the names the user supplied, while $host etc.
3321 # will get canonicalized.
3322 test -n "$target_alias" &&
3323 test "$program_prefix$program_suffix$program_transform_name" = \
3324 NONENONEs,x,x, &&
3325 program_prefix=${target_alias}-
3326
3327 # Determine the noncanonical host name, for Ada.
3328 case ${build_alias} in
3329 "") build_noncanonical=${build} ;;
3330 *) build_noncanonical=${build_alias} ;;
3331 esac
3332
3333 case ${host_alias} in
3334 "") host_noncanonical=${build_noncanonical} ;;
3335 *) host_noncanonical=${host_alias} ;;
3336 esac
3337
3338
3339
3340
3341 # Determine the noncanonical target name, for directory use.
3342 case ${target_alias} in
3343 "") target_noncanonical=${host_noncanonical} ;;
3344 *) target_noncanonical=${target_alias} ;;
3345 esac
3346
3347
3348
3349
3350 # Used for constructing correct paths for offload compilers.
3351 real_target_noncanonical=${target_noncanonical}
3352 accel_dir_suffix=
3353
3354 # Determine the target- and build-specific subdirectories
3355
3356 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3357 # have matching libraries, they should use host libraries: Makefile.tpl
3358 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3359 # However, they still use the build modules, because the corresponding
3360 # host modules (e.g. bison) are only built for the host when bootstrap
3361 # finishes. So:
3362 # - build_subdir is where we find build modules, and never changes.
3363 # - build_libsubdir is where we find build libraries, and can be overridden.
3364
3365 # Prefix 'build-' so this never conflicts with target_subdir.
3366 build_subdir="build-${build_noncanonical}"
3367
3368 # Check whether --with-build-libsubdir was given.
3369 if test "${with_build_libsubdir+set}" = set; then :
3370 withval=$with_build_libsubdir; build_libsubdir="$withval"
3371 else
3372 build_libsubdir="$build_subdir"
3373 fi
3374
3375 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3376 if ( test $srcdir = . && test -d gcc ) \
3377 || test -d $srcdir/../host-${host_noncanonical}; then
3378 host_subdir="host-${host_noncanonical}"
3379 else
3380 host_subdir=.
3381 fi
3382 # No prefix.
3383 target_subdir=${target_noncanonical}
3384
3385
3386 # Set program_transform_name
3387 test "$program_prefix" != NONE &&
3388 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3389 # Use a double $ so make ignores it.
3390 test "$program_suffix" != NONE &&
3391 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3392 # Double any \ or $.
3393 # By default was `s,x,x', remove it if useless.
3394 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3395 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3396
3397
3398 # Check for bogus environment variables.
3399 # Test if LIBRARY_PATH contains the notation for the current directory
3400 # since this would lead to problems installing/building glibc.
3401 # LIBRARY_PATH contains the current directory if one of the following
3402 # is true:
3403 # - one of the terminals (":" and ";") is the first or last sign
3404 # - two terminals occur directly after each other
3405 # - the path contains an element with a dot in it
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3407 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3408 case ${LIBRARY_PATH} in
3409 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3410 library_path_setting="contains current directory"
3411 ;;
3412 *)
3413 library_path_setting="ok"
3414 ;;
3415 esac
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3417 $as_echo "$library_path_setting" >&6; }
3418 if test "$library_path_setting" != "ok"; then
3419 as_fn_error "
3420 *** LIBRARY_PATH shouldn't contain the current directory when
3421 *** building gcc. Please change the environment variable
3422 *** and run configure again." "$LINENO" 5
3423 fi
3424
3425 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3426 # since this would lead to problems installing/building glibc.
3427 # GCC_EXEC_PREFIX contains the current directory if one of the following
3428 # is true:
3429 # - one of the terminals (":" and ";") is the first or last sign
3430 # - two terminals occur directly after each other
3431 # - the path contains an element with a dot in it
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3433 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3434 case ${GCC_EXEC_PREFIX} in
3435 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3436 gcc_exec_prefix_setting="contains current directory"
3437 ;;
3438 *)
3439 gcc_exec_prefix_setting="ok"
3440 ;;
3441 esac
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3443 $as_echo "$gcc_exec_prefix_setting" >&6; }
3444 if test "$gcc_exec_prefix_setting" != "ok"; then
3445 as_fn_error "
3446 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3447 *** building gcc. Please change the environment variable
3448 *** and run configure again." "$LINENO" 5
3449 fi
3450
3451 # -----------
3452 # Directories
3453 # -----------
3454
3455 # Specify the local prefix
3456 local_prefix=
3457
3458 # Check whether --with-local-prefix was given.
3459 if test "${with_local_prefix+set}" = set; then :
3460 withval=$with_local_prefix; case "${withval}" in
3461 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3462 no) ;;
3463 *) local_prefix=$with_local_prefix ;;
3464 esac
3465 fi
3466
3467
3468 # Default local prefix if it is empty
3469 if test x$local_prefix = x; then
3470 local_prefix=/usr/local
3471 fi
3472
3473
3474 # Check whether --with-native-system-header-dir was given.
3475 if test "${with_native_system_header_dir+set}" = set; then :
3476 withval=$with_native_system_header_dir;
3477 case ${with_native_system_header_dir} in
3478 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3479 /* | [A-Za-z]:[\\/]*) ;;
3480 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3481 esac
3482 configured_native_system_header_dir="${withval}"
3483
3484 else
3485 configured_native_system_header_dir=
3486 fi
3487
3488
3489
3490 # Check whether --with-build-sysroot was given.
3491 if test "${with_build_sysroot+set}" = set; then :
3492 withval=$with_build_sysroot; if test x"$withval" != x ; then
3493 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3494 fi
3495 else
3496 SYSROOT_CFLAGS_FOR_TARGET=
3497 fi
3498
3499
3500
3501 if test "x$prefix" = xNONE; then
3502 test_prefix=/usr/local
3503 else
3504 test_prefix=$prefix
3505 fi
3506 if test "x$exec_prefix" = xNONE; then
3507 test_exec_prefix=$test_prefix
3508 else
3509 test_exec_prefix=$exec_prefix
3510 fi
3511
3512
3513 # Check whether --with-sysroot was given.
3514 if test "${with_sysroot+set}" = set; then :
3515 withval=$with_sysroot;
3516 case ${with_sysroot} in
3517 /) ;;
3518 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3519 esac
3520 case ${with_sysroot} in
3521 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3522 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3523 esac
3524
3525 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3526 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3527
3528 case ${TARGET_SYSTEM_ROOT} in
3529 "${test_prefix}"|"${test_prefix}/"*|\
3530 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3531 '${prefix}'|'${prefix}/'*|\
3532 '${exec_prefix}'|'${exec_prefix}/'*)
3533 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3534 TARGET_SYSTEM_ROOT_DEFINE="$t"
3535 ;;
3536 esac
3537
3538 else
3539
3540 TARGET_SYSTEM_ROOT=
3541 TARGET_SYSTEM_ROOT_DEFINE=
3542 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3543
3544 fi
3545
3546
3547
3548
3549
3550 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3551 # passed in by the toplevel make and thus we'd get different behavior
3552 # depending on where we built the sources.
3553 gcc_gxx_include_dir=
3554 # Specify the g++ header file directory
3555
3556 # Check whether --with-gxx-include-dir was given.
3557 if test "${with_gxx_include_dir+set}" = set; then :
3558 withval=$with_gxx_include_dir; case "${withval}" in
3559 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3560 no) ;;
3561 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3562 esac
3563 fi
3564
3565
3566 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3567 if test x${gcc_gxx_include_dir} = x; then
3568 if test x${enable_version_specific_runtime_libs} = xyes; then
3569 gcc_gxx_include_dir='${libsubdir}/include/c++'
3570 else
3571 libstdcxx_incdir='include/c++/$(version)'
3572 if test x$host != x$target; then
3573 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3574 fi
3575 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3576 fi
3577 fi
3578
3579 gcc_gxx_include_dir_add_sysroot=0
3580 if test "${with_sysroot+set}" = set; then
3581 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3582 if test "${gcc_gxx_without_sysroot}"; then
3583 if test x${with_sysroot} != x/; then
3584 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3585 fi
3586 gcc_gxx_include_dir_add_sysroot=1
3587 fi
3588 fi
3589
3590
3591 # Check whether --with-cpp_install_dir was given.
3592 if test "${with_cpp_install_dir+set}" = set; then :
3593 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3594 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3595 elif test x$withval != xno; then
3596 cpp_install_dir=$withval
3597 fi
3598 fi
3599
3600
3601 # We would like to our source tree to be readonly. However when releases or
3602 # pre-releases are generated, the flex/bison generated files as well as the
3603 # various formats of manuals need to be included along with the rest of the
3604 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3605 # just that.
3606
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3608 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3609 # Check whether --enable-generated-files-in-srcdir was given.
3610 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3611 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3612 else
3613 generated_files_in_srcdir=no
3614 fi
3615
3616
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3618 $as_echo "$generated_files_in_srcdir" >&6; }
3619
3620 if test "$generated_files_in_srcdir" = "yes"; then
3621 GENINSRC=''
3622 else
3623 GENINSRC='#'
3624 fi
3625
3626
3627 # -------------------
3628 # Find default linker
3629 # -------------------
3630
3631 # With GNU ld
3632
3633 # Check whether --with-gnu-ld was given.
3634 if test "${with_gnu_ld+set}" = set; then :
3635 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3636 else
3637 gnu_ld_flag=no
3638 fi
3639
3640
3641 # With pre-defined ld
3642
3643 # Check whether --with-ld was given.
3644 if test "${with_ld+set}" = set; then :
3645 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3646 fi
3647
3648 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3649 if test ! -x "$DEFAULT_LINKER"; then
3650 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3651 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3652 gnu_ld_flag=yes
3653 fi
3654
3655 cat >>confdefs.h <<_ACEOF
3656 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3657 _ACEOF
3658
3659 fi
3660
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3662 $as_echo_n "checking whether a default linker was specified... " >&6; }
3663 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3664 if test x"$gnu_ld_flag" = x"no"; then
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3666 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3667 else
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3669 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3670 fi
3671 else
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3674 fi
3675
3676 # With demangler in GNU ld
3677
3678 # Check whether --with-demangler-in-ld was given.
3679 if test "${with_demangler_in_ld+set}" = set; then :
3680 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3681 else
3682 demangler_in_ld=yes
3683 fi
3684
3685
3686 # ----------------------
3687 # Find default assembler
3688 # ----------------------
3689
3690 # With GNU as
3691
3692 # Check whether --with-gnu-as was given.
3693 if test "${with_gnu_as+set}" = set; then :
3694 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3695 else
3696 gas_flag=no
3697 fi
3698
3699
3700
3701 # Check whether --with-as was given.
3702 if test "${with_as+set}" = set; then :
3703 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3704 fi
3705
3706 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3707 if test ! -x "$DEFAULT_ASSEMBLER"; then
3708 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3709 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3710 gas_flag=yes
3711 fi
3712
3713 cat >>confdefs.h <<_ACEOF
3714 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3715 _ACEOF
3716
3717 fi
3718
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3720 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3721 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3722 if test x"$gas_flag" = x"no"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3724 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3727 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3728 fi
3729 else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3732 fi
3733
3734 # ---------------
3735 # Find C compiler
3736 # ---------------
3737
3738 # If a non-executable a.out is present (e.g. created by GNU as above even if
3739 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3740 # file, even when creating an executable, so an execution test fails.
3741 # Remove possible default executable files to avoid this.
3742 #
3743 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3744 # Autoconf includes it.
3745 rm -f a.out a.exe b.out
3746
3747 # Find the native compiler
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_CC+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 if test -n "$CC"; then
3762 ac_cv_prog_CC="$CC" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3766 do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3774 fi
3775 done
3776 done
3777 IFS=$as_save_IFS
3778
3779 fi
3780 fi
3781 CC=$ac_cv_prog_CC
3782 if test -n "$CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3784 $as_echo "$CC" >&6; }
3785 else
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3788 fi
3789
3790
3791 fi
3792 if test -z "$ac_cv_prog_CC"; then
3793 ac_ct_CC=$CC
3794 # Extract the first word of "gcc", so it can be a program name with args.
3795 set dummy gcc; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 if test -n "$ac_ct_CC"; then
3802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3806 do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3811 ac_cv_prog_ac_ct_CC="gcc"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815 done
3816 done
3817 IFS=$as_save_IFS
3818
3819 fi
3820 fi
3821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3822 if test -n "$ac_ct_CC"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3824 $as_echo "$ac_ct_CC" >&6; }
3825 else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3828 fi
3829
3830 if test "x$ac_ct_CC" = x; then
3831 CC=""
3832 else
3833 case $cross_compiling:$ac_tool_warned in
3834 yes:)
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837 ac_tool_warned=yes ;;
3838 esac
3839 CC=$ac_ct_CC
3840 fi
3841 else
3842 CC="$ac_cv_prog_CC"
3843 fi
3844
3845 if test -z "$CC"; then
3846 if test -n "$ac_tool_prefix"; then
3847 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3848 set dummy ${ac_tool_prefix}cc; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if test "${ac_cv_prog_CC+set}" = set; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 if test -n "$CC"; then
3855 ac_cv_prog_CC="$CC" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864 ac_cv_prog_CC="${ac_tool_prefix}cc"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3867 fi
3868 done
3869 done
3870 IFS=$as_save_IFS
3871
3872 fi
3873 fi
3874 CC=$ac_cv_prog_CC
3875 if test -n "$CC"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3877 $as_echo "$CC" >&6; }
3878 else
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3881 fi
3882
3883
3884 fi
3885 fi
3886 if test -z "$CC"; then
3887 # Extract the first word of "cc", so it can be a program name with args.
3888 set dummy cc; ac_word=$2
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890 $as_echo_n "checking for $ac_word... " >&6; }
3891 if test "${ac_cv_prog_CC+set}" = set; then :
3892 $as_echo_n "(cached) " >&6
3893 else
3894 if test -n "$CC"; then
3895 ac_cv_prog_CC="$CC" # Let the user override the test.
3896 else
3897 ac_prog_rejected=no
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3900 do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3906 ac_prog_rejected=yes
3907 continue
3908 fi
3909 ac_cv_prog_CC="cc"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3912 fi
3913 done
3914 done
3915 IFS=$as_save_IFS
3916
3917 if test $ac_prog_rejected = yes; then
3918 # We found a bogon in the path, so make sure we never use it.
3919 set dummy $ac_cv_prog_CC
3920 shift
3921 if test $# != 0; then
3922 # We chose a different compiler from the bogus one.
3923 # However, it has the same basename, so the bogon will be chosen
3924 # first if we set CC to just the basename; use the full file name.
3925 shift
3926 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3927 fi
3928 fi
3929 fi
3930 fi
3931 CC=$ac_cv_prog_CC
3932 if test -n "$CC"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3934 $as_echo "$CC" >&6; }
3935 else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3938 fi
3939
3940
3941 fi
3942 if test -z "$CC"; then
3943 if test -n "$ac_tool_prefix"; then
3944 for ac_prog in cl.exe
3945 do
3946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if test "${ac_cv_prog_CC+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 if test -n "$CC"; then
3954 ac_cv_prog_CC="$CC" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3958 do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3966 fi
3967 done
3968 done
3969 IFS=$as_save_IFS
3970
3971 fi
3972 fi
3973 CC=$ac_cv_prog_CC
3974 if test -n "$CC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976 $as_echo "$CC" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3980 fi
3981
3982
3983 test -n "$CC" && break
3984 done
3985 fi
3986 if test -z "$CC"; then
3987 ac_ct_CC=$CC
3988 for ac_prog in cl.exe
3989 do
3990 # Extract the first word of "$ac_prog", so it can be a program name with args.
3991 set dummy $ac_prog; ac_word=$2
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 if test -n "$ac_ct_CC"; then
3998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4002 do
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007 ac_cv_prog_ac_ct_CC="$ac_prog"
4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4010 fi
4011 done
4012 done
4013 IFS=$as_save_IFS
4014
4015 fi
4016 fi
4017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4018 if test -n "$ac_ct_CC"; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4020 $as_echo "$ac_ct_CC" >&6; }
4021 else
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4024 fi
4025
4026
4027 test -n "$ac_ct_CC" && break
4028 done
4029
4030 if test "x$ac_ct_CC" = x; then
4031 CC=""
4032 else
4033 case $cross_compiling:$ac_tool_warned in
4034 yes:)
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4037 ac_tool_warned=yes ;;
4038 esac
4039 CC=$ac_ct_CC
4040 fi
4041 fi
4042
4043 fi
4044
4045
4046 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4048 as_fn_error "no acceptable C compiler found in \$PATH
4049 See \`config.log' for more details." "$LINENO" 5; }
4050
4051 # Provide some information about the compiler.
4052 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4053 set X $ac_compile
4054 ac_compiler=$2
4055 for ac_option in --version -v -V -qversion; do
4056 { { ac_try="$ac_compiler $ac_option >&5"
4057 case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060 esac
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 $as_echo "$ac_try_echo"; } >&5
4063 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4064 ac_status=$?
4065 if test -s conftest.err; then
4066 sed '10a\
4067 ... rest of stderr output deleted ...
4068 10q' conftest.err >conftest.er1
4069 cat conftest.er1 >&5
4070 rm -f conftest.er1 conftest.err
4071 fi
4072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073 test $ac_status = 0; }
4074 done
4075
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4078
4079 int
4080 main ()
4081 {
4082
4083 ;
4084 return 0;
4085 }
4086 _ACEOF
4087 ac_clean_files_save=$ac_clean_files
4088 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4089 # Try to create an executable without -o first, disregard a.out.
4090 # It will help us diagnose broken compilers, and finding out an intuition
4091 # of exeext.
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4093 $as_echo_n "checking for C compiler default output file name... " >&6; }
4094 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4095
4096 # The possible output files:
4097 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4098
4099 ac_rmfiles=
4100 for ac_file in $ac_files
4101 do
4102 case $ac_file in
4103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4104 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4105 esac
4106 done
4107 rm -f $ac_rmfiles
4108
4109 if { { ac_try="$ac_link_default"
4110 case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113 esac
4114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4115 $as_echo "$ac_try_echo"; } >&5
4116 (eval "$ac_link_default") 2>&5
4117 ac_status=$?
4118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4119 test $ac_status = 0; }; then :
4120 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4121 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4122 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4123 # so that the user can short-circuit this test for compilers unknown to
4124 # Autoconf.
4125 for ac_file in $ac_files ''
4126 do
4127 test -f "$ac_file" || continue
4128 case $ac_file in
4129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4130 ;;
4131 [ab].out )
4132 # We found the default executable, but exeext='' is most
4133 # certainly right.
4134 break;;
4135 *.* )
4136 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4137 then :; else
4138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4139 fi
4140 # We set ac_cv_exeext here because the later test for it is not
4141 # safe: cross compilers may not add the suffix if given an `-o'
4142 # argument, so we may need to know it at that point already.
4143 # Even if this section looks crufty: it has the advantage of
4144 # actually working.
4145 break;;
4146 * )
4147 break;;
4148 esac
4149 done
4150 test "$ac_cv_exeext" = no && ac_cv_exeext=
4151
4152 else
4153 ac_file=''
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4156 $as_echo "$ac_file" >&6; }
4157 if test -z "$ac_file"; then :
4158 $as_echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4160
4161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4163 { as_fn_set_status 77
4164 as_fn_error "C compiler cannot create executables
4165 See \`config.log' for more details." "$LINENO" 5; }; }
4166 fi
4167 ac_exeext=$ac_cv_exeext
4168
4169 # Check that the compiler produces executables we can run. If not, either
4170 # the compiler is broken, or we cross compile.
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4172 $as_echo_n "checking whether the C compiler works... " >&6; }
4173 # If not cross compiling, check that we can run a simple program.
4174 if test "$cross_compiling" != yes; then
4175 if { ac_try='./$ac_file'
4176 { { case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179 esac
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 $as_echo "$ac_try_echo"; } >&5
4182 (eval "$ac_try") 2>&5
4183 ac_status=$?
4184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; }; }; then
4186 cross_compiling=no
4187 else
4188 if test "$cross_compiling" = maybe; then
4189 cross_compiling=yes
4190 else
4191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4193 as_fn_error "cannot run C compiled programs.
4194 If you meant to cross compile, use \`--host'.
4195 See \`config.log' for more details." "$LINENO" 5; }
4196 fi
4197 fi
4198 fi
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4200 $as_echo "yes" >&6; }
4201
4202 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4203 ac_clean_files=$ac_clean_files_save
4204 # Check that the compiler produces executables we can run. If not, either
4205 # the compiler is broken, or we cross compile.
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4207 $as_echo_n "checking whether we are cross compiling... " >&6; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4209 $as_echo "$cross_compiling" >&6; }
4210
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4212 $as_echo_n "checking for suffix of executables... " >&6; }
4213 if { { ac_try="$ac_link"
4214 case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 $as_echo "$ac_try_echo"; } >&5
4220 (eval "$ac_link") 2>&5
4221 ac_status=$?
4222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }; then :
4224 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4225 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4226 # work properly (i.e., refer to `conftest.exe'), while it won't with
4227 # `rm'.
4228 for ac_file in conftest.exe conftest conftest.*; do
4229 test -f "$ac_file" || continue
4230 case $ac_file in
4231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4232 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4233 break;;
4234 * ) break;;
4235 esac
4236 done
4237 else
4238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4240 as_fn_error "cannot compute suffix of executables: cannot compile and link
4241 See \`config.log' for more details." "$LINENO" 5; }
4242 fi
4243 rm -f conftest$ac_cv_exeext
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4245 $as_echo "$ac_cv_exeext" >&6; }
4246
4247 rm -f conftest.$ac_ext
4248 EXEEXT=$ac_cv_exeext
4249 ac_exeext=$EXEEXT
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4251 $as_echo_n "checking for suffix of object files... " >&6; }
4252 if test "${ac_cv_objext+set}" = set; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257
4258 int
4259 main ()
4260 {
4261
4262 ;
4263 return 0;
4264 }
4265 _ACEOF
4266 rm -f conftest.o conftest.obj
4267 if { { ac_try="$ac_compile"
4268 case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_compile") 2>&5
4275 ac_status=$?
4276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4277 test $ac_status = 0; }; then :
4278 for ac_file in conftest.o conftest.obj conftest.*; do
4279 test -f "$ac_file" || continue;
4280 case $ac_file in
4281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4282 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4283 break;;
4284 esac
4285 done
4286 else
4287 $as_echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4289
4290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error "cannot compute suffix of object files: cannot compile
4293 See \`config.log' for more details." "$LINENO" 5; }
4294 fi
4295 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4296 fi
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4298 $as_echo "$ac_cv_objext" >&6; }
4299 OBJEXT=$ac_cv_objext
4300 ac_objext=$OBJEXT
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4302 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4303 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308
4309 int
4310 main ()
4311 {
4312 #ifndef __GNUC__
4313 choke me
4314 #endif
4315
4316 ;
4317 return 0;
4318 }
4319 _ACEOF
4320 if ac_fn_c_try_compile "$LINENO"; then :
4321 ac_compiler_gnu=yes
4322 else
4323 ac_compiler_gnu=no
4324 fi
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4327
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4330 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4331 if test $ac_compiler_gnu = yes; then
4332 GCC=yes
4333 else
4334 GCC=
4335 fi
4336 ac_test_CFLAGS=${CFLAGS+set}
4337 ac_save_CFLAGS=$CFLAGS
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4339 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4340 if test "${ac_cv_prog_cc_g+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 ac_save_c_werror_flag=$ac_c_werror_flag
4344 ac_c_werror_flag=yes
4345 ac_cv_prog_cc_g=no
4346 CFLAGS="-g"
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4349
4350 int
4351 main ()
4352 {
4353
4354 ;
4355 return 0;
4356 }
4357 _ACEOF
4358 if ac_fn_c_try_compile "$LINENO"; then :
4359 ac_cv_prog_cc_g=yes
4360 else
4361 CFLAGS=""
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4364
4365 int
4366 main ()
4367 {
4368
4369 ;
4370 return 0;
4371 }
4372 _ACEOF
4373 if ac_fn_c_try_compile "$LINENO"; then :
4374
4375 else
4376 ac_c_werror_flag=$ac_save_c_werror_flag
4377 CFLAGS="-g"
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380
4381 int
4382 main ()
4383 {
4384
4385 ;
4386 return 0;
4387 }
4388 _ACEOF
4389 if ac_fn_c_try_compile "$LINENO"; then :
4390 ac_cv_prog_cc_g=yes
4391 fi
4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 fi
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 fi
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 ac_c_werror_flag=$ac_save_c_werror_flag
4398 fi
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4400 $as_echo "$ac_cv_prog_cc_g" >&6; }
4401 if test "$ac_test_CFLAGS" = set; then
4402 CFLAGS=$ac_save_CFLAGS
4403 elif test $ac_cv_prog_cc_g = yes; then
4404 if test "$GCC" = yes; then
4405 CFLAGS="-g -O2"
4406 else
4407 CFLAGS="-g"
4408 fi
4409 else
4410 if test "$GCC" = yes; then
4411 CFLAGS="-O2"
4412 else
4413 CFLAGS=
4414 fi
4415 fi
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4417 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4418 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 ac_cv_prog_cc_c89=no
4422 ac_save_CC=$CC
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4425 #include <stdarg.h>
4426 #include <stdio.h>
4427 #include <sys/types.h>
4428 #include <sys/stat.h>
4429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4430 struct buf { int x; };
4431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4432 static char *e (p, i)
4433 char **p;
4434 int i;
4435 {
4436 return p[i];
4437 }
4438 static char *f (char * (*g) (char **, int), char **p, ...)
4439 {
4440 char *s;
4441 va_list v;
4442 va_start (v,p);
4443 s = g (p, va_arg (v,int));
4444 va_end (v);
4445 return s;
4446 }
4447
4448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4449 function prototypes and stuff, but not '\xHH' hex character constants.
4450 These don't provoke an error unfortunately, instead are silently treated
4451 as 'x'. The following induces an error, until -std is added to get
4452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4453 array size at least. It's necessary to write '\x00'==0 to get something
4454 that's true only with -std. */
4455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4456
4457 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4458 inside strings and character constants. */
4459 #define FOO(x) 'x'
4460 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4461
4462 int test (int i, double x);
4463 struct s1 {int (*f) (int a);};
4464 struct s2 {int (*f) (double a);};
4465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4466 int argc;
4467 char **argv;
4468 int
4469 main ()
4470 {
4471 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4472 ;
4473 return 0;
4474 }
4475 _ACEOF
4476 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4477 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4478 do
4479 CC="$ac_save_CC $ac_arg"
4480 if ac_fn_c_try_compile "$LINENO"; then :
4481 ac_cv_prog_cc_c89=$ac_arg
4482 fi
4483 rm -f core conftest.err conftest.$ac_objext
4484 test "x$ac_cv_prog_cc_c89" != "xno" && break
4485 done
4486 rm -f conftest.$ac_ext
4487 CC=$ac_save_CC
4488
4489 fi
4490 # AC_CACHE_VAL
4491 case "x$ac_cv_prog_cc_c89" in
4492 x)
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4494 $as_echo "none needed" >&6; } ;;
4495 xno)
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4497 $as_echo "unsupported" >&6; } ;;
4498 *)
4499 CC="$CC $ac_cv_prog_cc_c89"
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4501 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4502 esac
4503 if test "x$ac_cv_prog_cc_c89" != xno; then :
4504
4505 fi
4506
4507 ac_ext=c
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4512
4513 ac_ext=cpp
4514 ac_cpp='$CXXCPP $CPPFLAGS'
4515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4518 if test -z "$CXX"; then
4519 if test -n "$CCC"; then
4520 CXX=$CCC
4521 else
4522 if test -n "$ac_tool_prefix"; then
4523 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4524 do
4525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if test "${ac_cv_prog_CXX+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 if test -n "$CXX"; then
4533 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4537 do
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4545 fi
4546 done
4547 done
4548 IFS=$as_save_IFS
4549
4550 fi
4551 fi
4552 CXX=$ac_cv_prog_CXX
4553 if test -n "$CXX"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4555 $as_echo "$CXX" >&6; }
4556 else
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4559 fi
4560
4561
4562 test -n "$CXX" && break
4563 done
4564 fi
4565 if test -z "$CXX"; then
4566 ac_ct_CXX=$CXX
4567 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4568 do
4569 # Extract the first word of "$ac_prog", so it can be a program name with args.
4570 set dummy $ac_prog; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 if test -n "$ac_ct_CXX"; then
4577 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_prog_ac_ct_CXX="$ac_prog"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4589 fi
4590 done
4591 done
4592 IFS=$as_save_IFS
4593
4594 fi
4595 fi
4596 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4597 if test -n "$ac_ct_CXX"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4599 $as_echo "$ac_ct_CXX" >&6; }
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4603 fi
4604
4605
4606 test -n "$ac_ct_CXX" && break
4607 done
4608
4609 if test "x$ac_ct_CXX" = x; then
4610 CXX="g++"
4611 else
4612 case $cross_compiling:$ac_tool_warned in
4613 yes:)
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4616 ac_tool_warned=yes ;;
4617 esac
4618 CXX=$ac_ct_CXX
4619 fi
4620 fi
4621
4622 fi
4623 fi
4624 # Provide some information about the compiler.
4625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4626 set X $ac_compile
4627 ac_compiler=$2
4628 for ac_option in --version -v -V -qversion; do
4629 { { ac_try="$ac_compiler $ac_option >&5"
4630 case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633 esac
4634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4635 $as_echo "$ac_try_echo"; } >&5
4636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4637 ac_status=$?
4638 if test -s conftest.err; then
4639 sed '10a\
4640 ... rest of stderr output deleted ...
4641 10q' conftest.err >conftest.er1
4642 cat conftest.er1 >&5
4643 rm -f conftest.er1 conftest.err
4644 fi
4645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4646 test $ac_status = 0; }
4647 done
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4650 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4651 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656
4657 int
4658 main ()
4659 {
4660 #ifndef __GNUC__
4661 choke me
4662 #endif
4663
4664 ;
4665 return 0;
4666 }
4667 _ACEOF
4668 if ac_fn_cxx_try_compile "$LINENO"; then :
4669 ac_compiler_gnu=yes
4670 else
4671 ac_compiler_gnu=no
4672 fi
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4675
4676 fi
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4678 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4679 if test $ac_compiler_gnu = yes; then
4680 GXX=yes
4681 else
4682 GXX=
4683 fi
4684 ac_test_CXXFLAGS=${CXXFLAGS+set}
4685 ac_save_CXXFLAGS=$CXXFLAGS
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4687 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4688 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4692 ac_cxx_werror_flag=yes
4693 ac_cv_prog_cxx_g=no
4694 CXXFLAGS="-g"
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697
4698 int
4699 main ()
4700 {
4701
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 if ac_fn_cxx_try_compile "$LINENO"; then :
4707 ac_cv_prog_cxx_g=yes
4708 else
4709 CXXFLAGS=""
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712
4713 int
4714 main ()
4715 {
4716
4717 ;
4718 return 0;
4719 }
4720 _ACEOF
4721 if ac_fn_cxx_try_compile "$LINENO"; then :
4722
4723 else
4724 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4725 CXXFLAGS="-g"
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4728
4729 int
4730 main ()
4731 {
4732
4733 ;
4734 return 0;
4735 }
4736 _ACEOF
4737 if ac_fn_cxx_try_compile "$LINENO"; then :
4738 ac_cv_prog_cxx_g=yes
4739 fi
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741 fi
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 fi
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4748 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4749 if test "$ac_test_CXXFLAGS" = set; then
4750 CXXFLAGS=$ac_save_CXXFLAGS
4751 elif test $ac_cv_prog_cxx_g = yes; then
4752 if test "$GXX" = yes; then
4753 CXXFLAGS="-g -O2"
4754 else
4755 CXXFLAGS="-g"
4756 fi
4757 else
4758 if test "$GXX" = yes; then
4759 CXXFLAGS="-O2"
4760 else
4761 CXXFLAGS=
4762 fi
4763 fi
4764 ac_ext=c
4765 ac_cpp='$CPP $CPPFLAGS'
4766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4769
4770
4771
4772
4773 if test -n "$ac_tool_prefix"; then
4774 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4775 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if test -n "$GNATBIND"; then
4782 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4794 fi
4795 done
4796 done
4797 IFS=$as_save_IFS
4798
4799 fi
4800 fi
4801 GNATBIND=$ac_cv_prog_GNATBIND
4802 if test -n "$GNATBIND"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4804 $as_echo "$GNATBIND" >&6; }
4805 else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809
4810
4811 fi
4812 if test -z "$ac_cv_prog_GNATBIND"; then
4813 ac_ct_GNATBIND=$GNATBIND
4814 # Extract the first word of "gnatbind", so it can be a program name with args.
4815 set dummy gnatbind; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$ac_ct_GNATBIND"; then
4822 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4834 fi
4835 done
4836 done
4837 IFS=$as_save_IFS
4838
4839 fi
4840 fi
4841 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4842 if test -n "$ac_ct_GNATBIND"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4844 $as_echo "$ac_ct_GNATBIND" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848 fi
4849
4850 if test "x$ac_ct_GNATBIND" = x; then
4851 GNATBIND="no"
4852 else
4853 case $cross_compiling:$ac_tool_warned in
4854 yes:)
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4857 ac_tool_warned=yes ;;
4858 esac
4859 GNATBIND=$ac_ct_GNATBIND
4860 fi
4861 else
4862 GNATBIND="$ac_cv_prog_GNATBIND"
4863 fi
4864
4865 if test -n "$ac_tool_prefix"; then
4866 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4867 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 if test -n "$GNATMAKE"; then
4874 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4886 fi
4887 done
4888 done
4889 IFS=$as_save_IFS
4890
4891 fi
4892 fi
4893 GNATMAKE=$ac_cv_prog_GNATMAKE
4894 if test -n "$GNATMAKE"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4896 $as_echo "$GNATMAKE" >&6; }
4897 else
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4900 fi
4901
4902
4903 fi
4904 if test -z "$ac_cv_prog_GNATMAKE"; then
4905 ac_ct_GNATMAKE=$GNATMAKE
4906 # Extract the first word of "gnatmake", so it can be a program name with args.
4907 set dummy gnatmake; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 if test -n "$ac_ct_GNATMAKE"; then
4914 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4918 do
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4926 fi
4927 done
4928 done
4929 IFS=$as_save_IFS
4930
4931 fi
4932 fi
4933 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4934 if test -n "$ac_ct_GNATMAKE"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4936 $as_echo "$ac_ct_GNATMAKE" >&6; }
4937 else
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4940 fi
4941
4942 if test "x$ac_ct_GNATMAKE" = x; then
4943 GNATMAKE="no"
4944 else
4945 case $cross_compiling:$ac_tool_warned in
4946 yes:)
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4949 ac_tool_warned=yes ;;
4950 esac
4951 GNATMAKE=$ac_ct_GNATMAKE
4952 fi
4953 else
4954 GNATMAKE="$ac_cv_prog_GNATMAKE"
4955 fi
4956
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4958 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4959 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 cat >conftest.adb <<EOF
4963 procedure conftest is begin null; end conftest;
4964 EOF
4965 acx_cv_cc_gcc_supports_ada=no
4966 # There is a bug in old released versions of GCC which causes the
4967 # driver to exit successfully when the appropriate language module
4968 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4969 # Therefore we must check for the error message as well as an
4970 # unsuccessful exit.
4971 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4972 # given a .adb file, but produce no object file. So we must check
4973 # if an object file was really produced to guard against this.
4974 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4975 if test x"$errors" = x && test -f conftest.$ac_objext; then
4976 acx_cv_cc_gcc_supports_ada=yes
4977 fi
4978 rm -f conftest.*
4979 fi
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4981 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4982
4983 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4984 have_gnat=yes
4985 else
4986 have_gnat=no
4987 fi
4988
4989
4990 # Do configure tests with the C++ compiler, since that's what we build with.
4991 ac_ext=cpp
4992 ac_cpp='$CXXCPP $CPPFLAGS'
4993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4996
4997
4998 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4999 # optimizations to be activated explicitly by the toplevel.
5000 case "$CC" in
5001 */prev-gcc/xgcc*) ;;
5002 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5003 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5004 esac
5005
5006
5007
5008 # Determine PICFLAG for target gnatlib.
5009
5010
5011
5012
5013 case "${target}" in
5014 # PIC is the default on some targets or must not be used.
5015 *-*-darwin*)
5016 # For darwin, common symbols are not allowed in MH_DYLIB files
5017 case "${CFLAGS}" in
5018 # If we are using a compiler supporting mdynamic-no-pic
5019 # and the option has been tested as safe to add, then cancel
5020 # it here, since the code generated is incompatible with shared
5021 # libs.
5022 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5023 *) PICFLAG_FOR_TARGET=-fno-common ;;
5024 esac
5025 ;;
5026 alpha*-dec-osf5*)
5027 # PIC is the default.
5028 ;;
5029 hppa*64*-*-hpux*)
5030 # PIC is the default for 64-bit PA HP-UX.
5031 ;;
5032 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5033 ;;
5034 i[34567]86-*-mingw* | x86_64-*-mingw*)
5035 ;;
5036 i[34567]86-*-interix[3-9]*)
5037 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5038 # Instead, we relocate shared libraries at runtime.
5039 ;;
5040 i[34567]86-*-nto-qnx*)
5041 # QNX uses GNU C++, but need to define -shared option too, otherwise
5042 # it will coredump.
5043 PICFLAG_FOR_TARGET='-fPIC -shared'
5044 ;;
5045 i[34567]86-pc-msdosdjgpp*)
5046 # DJGPP does not support shared libraries at all.
5047 ;;
5048 ia64*-*-hpux*)
5049 # On IA64 HP-UX, PIC is the default but the pic flag
5050 # sets the default TLS model and affects inlining.
5051 PICFLAG_FOR_TARGET=-fPIC
5052 ;;
5053 mips-sgi-irix6*)
5054 # PIC is the default.
5055 ;;
5056 rs6000-ibm-aix* | powerpc-ibm-aix*)
5057 # All AIX code is PIC.
5058 ;;
5059
5060 # Some targets support both -fPIC and -fpic, but prefer the latter.
5061 # FIXME: Why?
5062 i[34567]86-*-* | x86_64-*-*)
5063 PICFLAG_FOR_TARGET=-fpic
5064 ;;
5065 # FIXME: Override -fPIC default in libgcc only?
5066 sh-*-linux* | sh[2346lbe]*-*-linux*)
5067 PICFLAG_FOR_TARGET=-fpic
5068 ;;
5069 # FIXME: Simplify to sh*-*-netbsd*?
5070 sh-*-netbsdelf* | shl*-*-netbsdelf*)
5071 PICFLAG_FOR_TARGET=-fpic
5072 ;;
5073 # Default to -fPIC unless specified otherwise.
5074 *)
5075 PICFLAG_FOR_TARGET=-fPIC
5076 ;;
5077 esac
5078
5079 # If the user explicitly uses -fpic/-fPIC, keep that.
5080 case "${CFLAGS_FOR_TARGET}" in
5081 *-fpic*)
5082 PICFLAG_FOR_TARGET=-fpic
5083 ;;
5084 *-fPIC*)
5085 PICFLAG_FOR_TARGET=-fPIC
5086 ;;
5087 esac
5088
5089
5090
5091 # -------------------------
5092 # Check C compiler features
5093 # -------------------------
5094
5095
5096 ac_ext=cpp
5097 ac_cpp='$CXXCPP $CPPFLAGS'
5098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5102 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5103 if test -z "$CXXCPP"; then
5104 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 # Double quotes because CXXCPP needs to be expanded
5108 for CXXCPP in "$CXX -E" "/lib/cpp"
5109 do
5110 ac_preproc_ok=false
5111 for ac_cxx_preproc_warn_flag in '' yes
5112 do
5113 # Use a header file that comes with gcc, so configuring glibc
5114 # with a fresh cross-compiler works.
5115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5116 # <limits.h> exists even on freestanding compilers.
5117 # On the NeXT, cc -E runs the code through the compiler's parser,
5118 # not just through cpp. "Syntax error" is here to catch this case.
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5121 #ifdef __STDC__
5122 # include <limits.h>
5123 #else
5124 # include <assert.h>
5125 #endif
5126 Syntax error
5127 _ACEOF
5128 if ac_fn_cxx_try_cpp "$LINENO"; then :
5129
5130 else
5131 # Broken: fails on valid input.
5132 continue
5133 fi
5134 rm -f conftest.err conftest.$ac_ext
5135
5136 # OK, works on sane cases. Now check whether nonexistent headers
5137 # can be detected and how.
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 #include <ac_nonexistent.h>
5141 _ACEOF
5142 if ac_fn_cxx_try_cpp "$LINENO"; then :
5143 # Broken: success on invalid input.
5144 continue
5145 else
5146 # Passes both tests.
5147 ac_preproc_ok=:
5148 break
5149 fi
5150 rm -f conftest.err conftest.$ac_ext
5151
5152 done
5153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5154 rm -f conftest.err conftest.$ac_ext
5155 if $ac_preproc_ok; then :
5156 break
5157 fi
5158
5159 done
5160 ac_cv_prog_CXXCPP=$CXXCPP
5161
5162 fi
5163 CXXCPP=$ac_cv_prog_CXXCPP
5164 else
5165 ac_cv_prog_CXXCPP=$CXXCPP
5166 fi
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5168 $as_echo "$CXXCPP" >&6; }
5169 ac_preproc_ok=false
5170 for ac_cxx_preproc_warn_flag in '' yes
5171 do
5172 # Use a header file that comes with gcc, so configuring glibc
5173 # with a fresh cross-compiler works.
5174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5175 # <limits.h> exists even on freestanding compilers.
5176 # On the NeXT, cc -E runs the code through the compiler's parser,
5177 # not just through cpp. "Syntax error" is here to catch this case.
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 #ifdef __STDC__
5181 # include <limits.h>
5182 #else
5183 # include <assert.h>
5184 #endif
5185 Syntax error
5186 _ACEOF
5187 if ac_fn_cxx_try_cpp "$LINENO"; then :
5188
5189 else
5190 # Broken: fails on valid input.
5191 continue
5192 fi
5193 rm -f conftest.err conftest.$ac_ext
5194
5195 # OK, works on sane cases. Now check whether nonexistent headers
5196 # can be detected and how.
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199 #include <ac_nonexistent.h>
5200 _ACEOF
5201 if ac_fn_cxx_try_cpp "$LINENO"; then :
5202 # Broken: success on invalid input.
5203 continue
5204 else
5205 # Passes both tests.
5206 ac_preproc_ok=:
5207 break
5208 fi
5209 rm -f conftest.err conftest.$ac_ext
5210
5211 done
5212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5213 rm -f conftest.err conftest.$ac_ext
5214 if $ac_preproc_ok; then :
5215
5216 else
5217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5219 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5220 See \`config.log' for more details." "$LINENO" 5; }
5221 fi
5222
5223 ac_ext=cpp
5224 ac_cpp='$CXXCPP $CPPFLAGS'
5225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5228
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5231 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5232 if test "${ac_cv_path_GREP+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 if test -z "$GREP"; then
5236 ac_path_GREP_found=false
5237 # Loop through the user's path and test for each of PROGNAME-LIST
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5240 do
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_prog in grep ggrep; do
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5246 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5247 # Check for GNU ac_path_GREP and select it if it is found.
5248 # Check for GNU $ac_path_GREP
5249 case `"$ac_path_GREP" --version 2>&1` in
5250 *GNU*)
5251 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5252 *)
5253 ac_count=0
5254 $as_echo_n 0123456789 >"conftest.in"
5255 while :
5256 do
5257 cat "conftest.in" "conftest.in" >"conftest.tmp"
5258 mv "conftest.tmp" "conftest.in"
5259 cp "conftest.in" "conftest.nl"
5260 $as_echo 'GREP' >> "conftest.nl"
5261 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5263 as_fn_arith $ac_count + 1 && ac_count=$as_val
5264 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5265 # Best one so far, save it but keep looking for a better one
5266 ac_cv_path_GREP="$ac_path_GREP"
5267 ac_path_GREP_max=$ac_count
5268 fi
5269 # 10*(2^10) chars as input seems more than enough
5270 test $ac_count -gt 10 && break
5271 done
5272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5273 esac
5274
5275 $ac_path_GREP_found && break 3
5276 done
5277 done
5278 done
5279 IFS=$as_save_IFS
5280 if test -z "$ac_cv_path_GREP"; then
5281 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5282 fi
5283 else
5284 ac_cv_path_GREP=$GREP
5285 fi
5286
5287 fi
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5289 $as_echo "$ac_cv_path_GREP" >&6; }
5290 GREP="$ac_cv_path_GREP"
5291
5292
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5294 $as_echo_n "checking for egrep... " >&6; }
5295 if test "${ac_cv_path_EGREP+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5299 then ac_cv_path_EGREP="$GREP -E"
5300 else
5301 if test -z "$EGREP"; then
5302 ac_path_EGREP_found=false
5303 # Loop through the user's path and test for each of PROGNAME-LIST
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5306 do
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_prog in egrep; do
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5312 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5313 # Check for GNU ac_path_EGREP and select it if it is found.
5314 # Check for GNU $ac_path_EGREP
5315 case `"$ac_path_EGREP" --version 2>&1` in
5316 *GNU*)
5317 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5318 *)
5319 ac_count=0
5320 $as_echo_n 0123456789 >"conftest.in"
5321 while :
5322 do
5323 cat "conftest.in" "conftest.in" >"conftest.tmp"
5324 mv "conftest.tmp" "conftest.in"
5325 cp "conftest.in" "conftest.nl"
5326 $as_echo 'EGREP' >> "conftest.nl"
5327 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5329 as_fn_arith $ac_count + 1 && ac_count=$as_val
5330 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5331 # Best one so far, save it but keep looking for a better one
5332 ac_cv_path_EGREP="$ac_path_EGREP"
5333 ac_path_EGREP_max=$ac_count
5334 fi
5335 # 10*(2^10) chars as input seems more than enough
5336 test $ac_count -gt 10 && break
5337 done
5338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5339 esac
5340
5341 $ac_path_EGREP_found && break 3
5342 done
5343 done
5344 done
5345 IFS=$as_save_IFS
5346 if test -z "$ac_cv_path_EGREP"; then
5347 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5348 fi
5349 else
5350 ac_cv_path_EGREP=$EGREP
5351 fi
5352
5353 fi
5354 fi
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5356 $as_echo "$ac_cv_path_EGREP" >&6; }
5357 EGREP="$ac_cv_path_EGREP"
5358
5359
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5361 $as_echo_n "checking for ANSI C header files... " >&6; }
5362 if test "${ac_cv_header_stdc+set}" = set; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5367 #include <stdlib.h>
5368 #include <stdarg.h>
5369 #include <string.h>
5370 #include <float.h>
5371
5372 int
5373 main ()
5374 {
5375
5376 ;
5377 return 0;
5378 }
5379 _ACEOF
5380 if ac_fn_cxx_try_compile "$LINENO"; then :
5381 ac_cv_header_stdc=yes
5382 else
5383 ac_cv_header_stdc=no
5384 fi
5385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386
5387 if test $ac_cv_header_stdc = yes; then
5388 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391 #include <string.h>
5392
5393 _ACEOF
5394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5395 $EGREP "memchr" >/dev/null 2>&1; then :
5396
5397 else
5398 ac_cv_header_stdc=no
5399 fi
5400 rm -f conftest*
5401
5402 fi
5403
5404 if test $ac_cv_header_stdc = yes; then
5405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408 #include <stdlib.h>
5409
5410 _ACEOF
5411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5412 $EGREP "free" >/dev/null 2>&1; then :
5413
5414 else
5415 ac_cv_header_stdc=no
5416 fi
5417 rm -f conftest*
5418
5419 fi
5420
5421 if test $ac_cv_header_stdc = yes; then
5422 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5423 if test "$cross_compiling" = yes; then :
5424 :
5425 else
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428 #include <ctype.h>
5429 #include <stdlib.h>
5430 #if ((' ' & 0x0FF) == 0x020)
5431 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5432 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5433 #else
5434 # define ISLOWER(c) \
5435 (('a' <= (c) && (c) <= 'i') \
5436 || ('j' <= (c) && (c) <= 'r') \
5437 || ('s' <= (c) && (c) <= 'z'))
5438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5439 #endif
5440
5441 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5442 int
5443 main ()
5444 {
5445 int i;
5446 for (i = 0; i < 256; i++)
5447 if (XOR (islower (i), ISLOWER (i))
5448 || toupper (i) != TOUPPER (i))
5449 return 2;
5450 return 0;
5451 }
5452 _ACEOF
5453 if ac_fn_cxx_try_run "$LINENO"; then :
5454
5455 else
5456 ac_cv_header_stdc=no
5457 fi
5458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5459 conftest.$ac_objext conftest.beam conftest.$ac_ext
5460 fi
5461
5462 fi
5463 fi
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5465 $as_echo "$ac_cv_header_stdc" >&6; }
5466 if test $ac_cv_header_stdc = yes; then
5467
5468 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5469
5470 fi
5471
5472 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5473 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5474 inttypes.h stdint.h unistd.h
5475 do :
5476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5477 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5478 "
5479 eval as_val=\$$as_ac_Header
5480 if test "x$as_val" = x""yes; then :
5481 cat >>confdefs.h <<_ACEOF
5482 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5483 _ACEOF
5484
5485 fi
5486
5487 done
5488
5489
5490
5491 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5492 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5493 MINIX=yes
5494 else
5495 MINIX=
5496 fi
5497
5498
5499 if test "$MINIX" = yes; then
5500
5501 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5502
5503
5504 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5505
5506
5507 $as_echo "#define _MINIX 1" >>confdefs.h
5508
5509 fi
5510
5511
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5513 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5514 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5519
5520 # define __EXTENSIONS__ 1
5521 $ac_includes_default
5522 int
5523 main ()
5524 {
5525
5526 ;
5527 return 0;
5528 }
5529 _ACEOF
5530 if ac_fn_cxx_try_compile "$LINENO"; then :
5531 ac_cv_safe_to_define___extensions__=yes
5532 else
5533 ac_cv_safe_to_define___extensions__=no
5534 fi
5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 fi
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5538 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5539 test $ac_cv_safe_to_define___extensions__ = yes &&
5540 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5541
5542 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5543
5544 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5545
5546 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5547
5548 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5549
5550
5551 ac_ext=c
5552 ac_cpp='$CPP $CPPFLAGS'
5553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5557 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5558 # On Suns, sometimes $CPP names a directory.
5559 if test -n "$CPP" && test -d "$CPP"; then
5560 CPP=
5561 fi
5562 if test -z "$CPP"; then
5563 if test "${ac_cv_prog_CPP+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 # Double quotes because CPP needs to be expanded
5567 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5568 do
5569 ac_preproc_ok=false
5570 for ac_c_preproc_warn_flag in '' yes
5571 do
5572 # Use a header file that comes with gcc, so configuring glibc
5573 # with a fresh cross-compiler works.
5574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5575 # <limits.h> exists even on freestanding compilers.
5576 # On the NeXT, cc -E runs the code through the compiler's parser,
5577 # not just through cpp. "Syntax error" is here to catch this case.
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5580 #ifdef __STDC__
5581 # include <limits.h>
5582 #else
5583 # include <assert.h>
5584 #endif
5585 Syntax error
5586 _ACEOF
5587 if ac_fn_c_try_cpp "$LINENO"; then :
5588
5589 else
5590 # Broken: fails on valid input.
5591 continue
5592 fi
5593 rm -f conftest.err conftest.$ac_ext
5594
5595 # OK, works on sane cases. Now check whether nonexistent headers
5596 # can be detected and how.
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 #include <ac_nonexistent.h>
5600 _ACEOF
5601 if ac_fn_c_try_cpp "$LINENO"; then :
5602 # Broken: success on invalid input.
5603 continue
5604 else
5605 # Passes both tests.
5606 ac_preproc_ok=:
5607 break
5608 fi
5609 rm -f conftest.err conftest.$ac_ext
5610
5611 done
5612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5613 rm -f conftest.err conftest.$ac_ext
5614 if $ac_preproc_ok; then :
5615 break
5616 fi
5617
5618 done
5619 ac_cv_prog_CPP=$CPP
5620
5621 fi
5622 CPP=$ac_cv_prog_CPP
5623 else
5624 ac_cv_prog_CPP=$CPP
5625 fi
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5627 $as_echo "$CPP" >&6; }
5628 ac_preproc_ok=false
5629 for ac_c_preproc_warn_flag in '' yes
5630 do
5631 # Use a header file that comes with gcc, so configuring glibc
5632 # with a fresh cross-compiler works.
5633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5634 # <limits.h> exists even on freestanding compilers.
5635 # On the NeXT, cc -E runs the code through the compiler's parser,
5636 # not just through cpp. "Syntax error" is here to catch this case.
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639 #ifdef __STDC__
5640 # include <limits.h>
5641 #else
5642 # include <assert.h>
5643 #endif
5644 Syntax error
5645 _ACEOF
5646 if ac_fn_c_try_cpp "$LINENO"; then :
5647
5648 else
5649 # Broken: fails on valid input.
5650 continue
5651 fi
5652 rm -f conftest.err conftest.$ac_ext
5653
5654 # OK, works on sane cases. Now check whether nonexistent headers
5655 # can be detected and how.
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658 #include <ac_nonexistent.h>
5659 _ACEOF
5660 if ac_fn_c_try_cpp "$LINENO"; then :
5661 # Broken: success on invalid input.
5662 continue
5663 else
5664 # Passes both tests.
5665 ac_preproc_ok=:
5666 break
5667 fi
5668 rm -f conftest.err conftest.$ac_ext
5669
5670 done
5671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5672 rm -f conftest.err conftest.$ac_ext
5673 if $ac_preproc_ok; then :
5674
5675 else
5676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5678 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5679 See \`config.log' for more details." "$LINENO" 5; }
5680 fi
5681
5682 ac_ext=cpp
5683 ac_cpp='$CXXCPP $CPPFLAGS'
5684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5687
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5689 $as_echo_n "checking for inline... " >&6; }
5690 if test "${ac_cv_c_inline+set}" = set; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 ac_cv_c_inline=no
5694 for ac_kw in inline __inline__ __inline; do
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #ifndef __cplusplus
5698 typedef int foo_t;
5699 static $ac_kw foo_t static_foo () {return 0; }
5700 $ac_kw foo_t foo () {return 0; }
5701 #endif
5702
5703 _ACEOF
5704 if ac_fn_cxx_try_compile "$LINENO"; then :
5705 ac_cv_c_inline=$ac_kw
5706 fi
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 test "$ac_cv_c_inline" != no && break
5709 done
5710
5711 fi
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5713 $as_echo "$ac_cv_c_inline" >&6; }
5714
5715 case $ac_cv_c_inline in
5716 inline | yes) ;;
5717 *)
5718 case $ac_cv_c_inline in
5719 no) ac_val=;;
5720 *) ac_val=$ac_cv_c_inline;;
5721 esac
5722 cat >>confdefs.h <<_ACEOF
5723 #ifndef __cplusplus
5724 #define inline $ac_val
5725 #endif
5726 _ACEOF
5727 ;;
5728 esac
5729
5730
5731 # Check whether --enable-largefile was given.
5732 if test "${enable_largefile+set}" = set; then :
5733 enableval=$enable_largefile;
5734 fi
5735
5736 if test "$enable_largefile" != no; then
5737
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5739 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5740 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 ac_cv_sys_largefile_CC=no
5744 if test "$GCC" != yes; then
5745 ac_save_CC=$CC
5746 while :; do
5747 # IRIX 6.2 and later do not support large files by default,
5748 # so use the C compiler's -n32 option if that helps.
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 #include <sys/types.h>
5752 /* Check that off_t can represent 2**63 - 1 correctly.
5753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5754 since some C++ compilers masquerading as C compilers
5755 incorrectly reject 9223372036854775807. */
5756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5758 && LARGE_OFF_T % 2147483647 == 1)
5759 ? 1 : -1];
5760 int
5761 main ()
5762 {
5763
5764 ;
5765 return 0;
5766 }
5767 _ACEOF
5768 if ac_fn_cxx_try_compile "$LINENO"; then :
5769 break
5770 fi
5771 rm -f core conftest.err conftest.$ac_objext
5772 CC="$CC -n32"
5773 if ac_fn_cxx_try_compile "$LINENO"; then :
5774 ac_cv_sys_largefile_CC=' -n32'; break
5775 fi
5776 rm -f core conftest.err conftest.$ac_objext
5777 break
5778 done
5779 CC=$ac_save_CC
5780 rm -f conftest.$ac_ext
5781 fi
5782 fi
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5784 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5785 if test "$ac_cv_sys_largefile_CC" != no; then
5786 CC=$CC$ac_cv_sys_largefile_CC
5787 fi
5788
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5790 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5791 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 while :; do
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797 #include <sys/types.h>
5798 /* Check that off_t can represent 2**63 - 1 correctly.
5799 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5800 since some C++ compilers masquerading as C compilers
5801 incorrectly reject 9223372036854775807. */
5802 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5803 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5804 && LARGE_OFF_T % 2147483647 == 1)
5805 ? 1 : -1];
5806 int
5807 main ()
5808 {
5809
5810 ;
5811 return 0;
5812 }
5813 _ACEOF
5814 if ac_fn_cxx_try_compile "$LINENO"; then :
5815 ac_cv_sys_file_offset_bits=no; break
5816 fi
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5820 #define _FILE_OFFSET_BITS 64
5821 #include <sys/types.h>
5822 /* Check that off_t can represent 2**63 - 1 correctly.
5823 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5824 since some C++ compilers masquerading as C compilers
5825 incorrectly reject 9223372036854775807. */
5826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5828 && LARGE_OFF_T % 2147483647 == 1)
5829 ? 1 : -1];
5830 int
5831 main ()
5832 {
5833
5834 ;
5835 return 0;
5836 }
5837 _ACEOF
5838 if ac_fn_cxx_try_compile "$LINENO"; then :
5839 ac_cv_sys_file_offset_bits=64; break
5840 fi
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 ac_cv_sys_file_offset_bits=unknown
5843 break
5844 done
5845 fi
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5847 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5848 case $ac_cv_sys_file_offset_bits in #(
5849 no | unknown) ;;
5850 *)
5851 cat >>confdefs.h <<_ACEOF
5852 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5853 _ACEOF
5854 ;;
5855 esac
5856 rm -rf conftest*
5857 if test $ac_cv_sys_file_offset_bits = unknown; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5859 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5860 if test "${ac_cv_sys_large_files+set}" = set; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 while :; do
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5866 #include <sys/types.h>
5867 /* Check that off_t can represent 2**63 - 1 correctly.
5868 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5869 since some C++ compilers masquerading as C compilers
5870 incorrectly reject 9223372036854775807. */
5871 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5872 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5873 && LARGE_OFF_T % 2147483647 == 1)
5874 ? 1 : -1];
5875 int
5876 main ()
5877 {
5878
5879 ;
5880 return 0;
5881 }
5882 _ACEOF
5883 if ac_fn_cxx_try_compile "$LINENO"; then :
5884 ac_cv_sys_large_files=no; break
5885 fi
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889 #define _LARGE_FILES 1
5890 #include <sys/types.h>
5891 /* Check that off_t can represent 2**63 - 1 correctly.
5892 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5893 since some C++ compilers masquerading as C compilers
5894 incorrectly reject 9223372036854775807. */
5895 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5896 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5897 && LARGE_OFF_T % 2147483647 == 1)
5898 ? 1 : -1];
5899 int
5900 main ()
5901 {
5902
5903 ;
5904 return 0;
5905 }
5906 _ACEOF
5907 if ac_fn_cxx_try_compile "$LINENO"; then :
5908 ac_cv_sys_large_files=1; break
5909 fi
5910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911 ac_cv_sys_large_files=unknown
5912 break
5913 done
5914 fi
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5916 $as_echo "$ac_cv_sys_large_files" >&6; }
5917 case $ac_cv_sys_large_files in #(
5918 no | unknown) ;;
5919 *)
5920 cat >>confdefs.h <<_ACEOF
5921 #define _LARGE_FILES $ac_cv_sys_large_files
5922 _ACEOF
5923 ;;
5924 esac
5925 rm -rf conftest*
5926 fi
5927 fi
5928
5929
5930 # sizeof(char) is 1 by definition.
5931 # The cast to long int works around a bug in the HP C Compiler
5932 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5933 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5934 # This bug is HP SR number 8606223364.
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5936 $as_echo_n "checking size of void *... " >&6; }
5937 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5941
5942 else
5943 if test "$ac_cv_type_void_p" = yes; then
5944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5946 { as_fn_set_status 77
5947 as_fn_error "cannot compute sizeof (void *)
5948 See \`config.log' for more details." "$LINENO" 5; }; }
5949 else
5950 ac_cv_sizeof_void_p=0
5951 fi
5952 fi
5953
5954 fi
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5956 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5957
5958
5959
5960 cat >>confdefs.h <<_ACEOF
5961 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5962 _ACEOF
5963
5964
5965 # The cast to long int works around a bug in the HP C Compiler
5966 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5967 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5968 # This bug is HP SR number 8606223364.
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5970 $as_echo_n "checking size of short... " >&6; }
5971 if test "${ac_cv_sizeof_short+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5975
5976 else
5977 if test "$ac_cv_type_short" = yes; then
5978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5980 { as_fn_set_status 77
5981 as_fn_error "cannot compute sizeof (short)
5982 See \`config.log' for more details." "$LINENO" 5; }; }
5983 else
5984 ac_cv_sizeof_short=0
5985 fi
5986 fi
5987
5988 fi
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5990 $as_echo "$ac_cv_sizeof_short" >&6; }
5991
5992
5993
5994 cat >>confdefs.h <<_ACEOF
5995 #define SIZEOF_SHORT $ac_cv_sizeof_short
5996 _ACEOF
5997
5998
5999 # The cast to long int works around a bug in the HP C Compiler
6000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6002 # This bug is HP SR number 8606223364.
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6004 $as_echo_n "checking size of int... " >&6; }
6005 if test "${ac_cv_sizeof_int+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6009
6010 else
6011 if test "$ac_cv_type_int" = yes; then
6012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6014 { as_fn_set_status 77
6015 as_fn_error "cannot compute sizeof (int)
6016 See \`config.log' for more details." "$LINENO" 5; }; }
6017 else
6018 ac_cv_sizeof_int=0
6019 fi
6020 fi
6021
6022 fi
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6024 $as_echo "$ac_cv_sizeof_int" >&6; }
6025
6026
6027
6028 cat >>confdefs.h <<_ACEOF
6029 #define SIZEOF_INT $ac_cv_sizeof_int
6030 _ACEOF
6031
6032
6033 # The cast to long int works around a bug in the HP C Compiler
6034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6036 # This bug is HP SR number 8606223364.
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6038 $as_echo_n "checking size of long... " >&6; }
6039 if test "${ac_cv_sizeof_long+set}" = set; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6043
6044 else
6045 if test "$ac_cv_type_long" = yes; then
6046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6048 { as_fn_set_status 77
6049 as_fn_error "cannot compute sizeof (long)
6050 See \`config.log' for more details." "$LINENO" 5; }; }
6051 else
6052 ac_cv_sizeof_long=0
6053 fi
6054 fi
6055
6056 fi
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6058 $as_echo "$ac_cv_sizeof_long" >&6; }
6059
6060
6061
6062 cat >>confdefs.h <<_ACEOF
6063 #define SIZEOF_LONG $ac_cv_sizeof_long
6064 _ACEOF
6065
6066
6067 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6068 if test "x$ac_cv_type_long_long" = x""yes; then :
6069
6070 cat >>confdefs.h <<_ACEOF
6071 #define HAVE_LONG_LONG 1
6072 _ACEOF
6073
6074 # The cast to long int works around a bug in the HP C Compiler
6075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6077 # This bug is HP SR number 8606223364.
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6079 $as_echo_n "checking size of long long... " >&6; }
6080 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6084
6085 else
6086 if test "$ac_cv_type_long_long" = yes; then
6087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6089 { as_fn_set_status 77
6090 as_fn_error "cannot compute sizeof (long long)
6091 See \`config.log' for more details." "$LINENO" 5; }; }
6092 else
6093 ac_cv_sizeof_long_long=0
6094 fi
6095 fi
6096
6097 fi
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6099 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6100
6101
6102
6103 cat >>confdefs.h <<_ACEOF
6104 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6105 _ACEOF
6106
6107
6108 fi
6109
6110 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6111 case $ac_cv_c_int8_t in #(
6112 no|yes) ;; #(
6113 *)
6114
6115 cat >>confdefs.h <<_ACEOF
6116 #define int8_t $ac_cv_c_int8_t
6117 _ACEOF
6118 ;;
6119 esac
6120
6121 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6122 case $ac_cv_c_int16_t in #(
6123 no|yes) ;; #(
6124 *)
6125
6126 cat >>confdefs.h <<_ACEOF
6127 #define int16_t $ac_cv_c_int16_t
6128 _ACEOF
6129 ;;
6130 esac
6131
6132 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6133 case $ac_cv_c_int32_t in #(
6134 no|yes) ;; #(
6135 *)
6136
6137 cat >>confdefs.h <<_ACEOF
6138 #define int32_t $ac_cv_c_int32_t
6139 _ACEOF
6140 ;;
6141 esac
6142
6143 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6144 case $ac_cv_c_int64_t in #(
6145 no|yes) ;; #(
6146 *)
6147
6148 cat >>confdefs.h <<_ACEOF
6149 #define int64_t $ac_cv_c_int64_t
6150 _ACEOF
6151 ;;
6152 esac
6153
6154
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6156 $as_echo_n "checking for long long int... " >&6; }
6157 if test "${ac_cv_type_long_long_int+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6162
6163 /* For now, do not test the preprocessor; as of 2007 there are too many
6164 implementations with broken preprocessors. Perhaps this can
6165 be revisited in 2012. In the meantime, code should not expect
6166 #if to work with literals wider than 32 bits. */
6167 /* Test literals. */
6168 long long int ll = 9223372036854775807ll;
6169 long long int nll = -9223372036854775807LL;
6170 unsigned long long int ull = 18446744073709551615ULL;
6171 /* Test constant expressions. */
6172 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6173 ? 1 : -1)];
6174 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6175 ? 1 : -1)];
6176 int i = 63;
6177 int
6178 main ()
6179 {
6180 /* Test availability of runtime routines for shift and division. */
6181 long long int llmax = 9223372036854775807ll;
6182 unsigned long long int ullmax = 18446744073709551615ull;
6183 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6184 | (llmax / ll) | (llmax % ll)
6185 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6186 | (ullmax / ull) | (ullmax % ull));
6187 ;
6188 return 0;
6189 }
6190
6191 _ACEOF
6192 if ac_fn_cxx_try_link "$LINENO"; then :
6193 if test "$cross_compiling" = yes; then :
6194 ac_cv_type_long_long_int=yes
6195 else
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198 #include <limits.h>
6199 #ifndef LLONG_MAX
6200 # define HALF \
6201 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6202 # define LLONG_MAX (HALF - 1 + HALF)
6203 #endif
6204 int
6205 main ()
6206 {
6207 long long int n = 1;
6208 int i;
6209 for (i = 0; ; i++)
6210 {
6211 long long int m = n << i;
6212 if (m >> i != n)
6213 return 1;
6214 if (LLONG_MAX / 2 < m)
6215 break;
6216 }
6217 return 0;
6218 ;
6219 return 0;
6220 }
6221 _ACEOF
6222 if ac_fn_cxx_try_run "$LINENO"; then :
6223 ac_cv_type_long_long_int=yes
6224 else
6225 ac_cv_type_long_long_int=no
6226 fi
6227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6228 conftest.$ac_objext conftest.beam conftest.$ac_ext
6229 fi
6230
6231 else
6232 ac_cv_type_long_long_int=no
6233 fi
6234 rm -f core conftest.err conftest.$ac_objext \
6235 conftest$ac_exeext conftest.$ac_ext
6236 fi
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6238 $as_echo "$ac_cv_type_long_long_int" >&6; }
6239 if test $ac_cv_type_long_long_int = yes; then
6240
6241 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6242
6243 fi
6244
6245
6246
6247 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6248 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6249
6250 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6251
6252 else
6253 test $ac_cv_type_long_long_int = yes \
6254 && ac_type='long long int' \
6255 || ac_type='long int'
6256
6257 cat >>confdefs.h <<_ACEOF
6258 #define intmax_t $ac_type
6259 _ACEOF
6260
6261 fi
6262
6263
6264
6265 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6266 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6267
6268 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6269
6270 else
6271 for ac_type in 'int' 'long int' 'long long int'; do
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 $ac_includes_default
6275 int
6276 main ()
6277 {
6278 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6279 test_array [0] = 0
6280
6281 ;
6282 return 0;
6283 }
6284 _ACEOF
6285 if ac_fn_cxx_try_compile "$LINENO"; then :
6286
6287 cat >>confdefs.h <<_ACEOF
6288 #define intptr_t $ac_type
6289 _ACEOF
6290
6291 ac_type=
6292 fi
6293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294 test -z "$ac_type" && break
6295 done
6296 fi
6297
6298
6299 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6300 case $ac_cv_c_uint8_t in #(
6301 no|yes) ;; #(
6302 *)
6303
6304 $as_echo "#define _UINT8_T 1" >>confdefs.h
6305
6306
6307 cat >>confdefs.h <<_ACEOF
6308 #define uint8_t $ac_cv_c_uint8_t
6309 _ACEOF
6310 ;;
6311 esac
6312
6313 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6314 case $ac_cv_c_uint16_t in #(
6315 no|yes) ;; #(
6316 *)
6317
6318
6319 cat >>confdefs.h <<_ACEOF
6320 #define uint16_t $ac_cv_c_uint16_t
6321 _ACEOF
6322 ;;
6323 esac
6324
6325 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6326 case $ac_cv_c_uint32_t in #(
6327 no|yes) ;; #(
6328 *)
6329
6330 $as_echo "#define _UINT32_T 1" >>confdefs.h
6331
6332
6333 cat >>confdefs.h <<_ACEOF
6334 #define uint32_t $ac_cv_c_uint32_t
6335 _ACEOF
6336 ;;
6337 esac
6338
6339 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6340 case $ac_cv_c_uint64_t in #(
6341 no|yes) ;; #(
6342 *)
6343
6344 $as_echo "#define _UINT64_T 1" >>confdefs.h
6345
6346
6347 cat >>confdefs.h <<_ACEOF
6348 #define uint64_t $ac_cv_c_uint64_t
6349 _ACEOF
6350 ;;
6351 esac
6352
6353
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6355 $as_echo_n "checking for unsigned long long int... " >&6; }
6356 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6361
6362 /* For now, do not test the preprocessor; as of 2007 there are too many
6363 implementations with broken preprocessors. Perhaps this can
6364 be revisited in 2012. In the meantime, code should not expect
6365 #if to work with literals wider than 32 bits. */
6366 /* Test literals. */
6367 long long int ll = 9223372036854775807ll;
6368 long long int nll = -9223372036854775807LL;
6369 unsigned long long int ull = 18446744073709551615ULL;
6370 /* Test constant expressions. */
6371 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6372 ? 1 : -1)];
6373 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6374 ? 1 : -1)];
6375 int i = 63;
6376 int
6377 main ()
6378 {
6379 /* Test availability of runtime routines for shift and division. */
6380 long long int llmax = 9223372036854775807ll;
6381 unsigned long long int ullmax = 18446744073709551615ull;
6382 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6383 | (llmax / ll) | (llmax % ll)
6384 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6385 | (ullmax / ull) | (ullmax % ull));
6386 ;
6387 return 0;
6388 }
6389
6390 _ACEOF
6391 if ac_fn_cxx_try_link "$LINENO"; then :
6392 ac_cv_type_unsigned_long_long_int=yes
6393 else
6394 ac_cv_type_unsigned_long_long_int=no
6395 fi
6396 rm -f core conftest.err conftest.$ac_objext \
6397 conftest$ac_exeext conftest.$ac_ext
6398 fi
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6400 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6401 if test $ac_cv_type_unsigned_long_long_int = yes; then
6402
6403 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6404
6405 fi
6406
6407
6408
6409 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6410 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6411
6412 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6413
6414 else
6415 test $ac_cv_type_unsigned_long_long_int = yes \
6416 && ac_type='unsigned long long int' \
6417 || ac_type='unsigned long int'
6418
6419 cat >>confdefs.h <<_ACEOF
6420 #define uintmax_t $ac_type
6421 _ACEOF
6422
6423 fi
6424
6425
6426
6427 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6428 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6429
6430 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6431
6432 else
6433 for ac_type in 'unsigned int' 'unsigned long int' \
6434 'unsigned long long int'; do
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6437 $ac_includes_default
6438 int
6439 main ()
6440 {
6441 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6442 test_array [0] = 0
6443
6444 ;
6445 return 0;
6446 }
6447 _ACEOF
6448 if ac_fn_cxx_try_compile "$LINENO"; then :
6449
6450 cat >>confdefs.h <<_ACEOF
6451 #define uintptr_t $ac_type
6452 _ACEOF
6453
6454 ac_type=
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 test -z "$ac_type" && break
6458 done
6459 fi
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6475 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6476 fi
6477
6478 # check what underlying integer type int64_t uses
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6480 $as_echo_n "checking for int64_t underlying type... " >&6; }
6481 if test "${ac_cv_int64_t_type+set}" = set; then :
6482 $as_echo_n "(cached) " >&6
6483 else
6484
6485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486 /* end confdefs.h. */
6487
6488 #ifdef HAVE_STDINT_H
6489 #include <stdint.h>
6490 #endif
6491 template <typename T> struct X { };
6492 template <>
6493 struct X<long> { typedef long t; };
6494
6495 int
6496 main ()
6497 {
6498 X<int64_t>::t x;
6499 ;
6500 return 0;
6501 }
6502 _ACEOF
6503 if ac_fn_cxx_try_compile "$LINENO"; then :
6504 ac_cv_int64_t_type=long
6505 else
6506 ac_cv_int64_t_type="long long"
6507 fi
6508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509 fi
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6511 $as_echo "$ac_cv_int64_t_type" >&6; }
6512 if test "$ac_cv_int64_t_type" = "long"; then
6513
6514 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6515
6516 else
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6519
6520 #ifdef HAVE_STDINT_H
6521 #include <stdint.h>
6522 #endif
6523 template <typename T> struct X { };
6524 template <>
6525 struct X<long long> { typedef long long t; };
6526
6527 int
6528 main ()
6529 {
6530 X<int64_t>::t x;
6531 ;
6532 return 0;
6533 }
6534 _ACEOF
6535 if ac_fn_cxx_try_compile "$LINENO"; then :
6536
6537 else
6538 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6539 fi
6540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541 fi
6542
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6544 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6545 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6546 $as_echo_n "(cached) " >&6
6547 else
6548
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551
6552 #include <utility>
6553
6554 int
6555 main ()
6556 {
6557 int a, b; std::swap(a,b);
6558 ;
6559 return 0;
6560 }
6561 _ACEOF
6562 if ac_fn_cxx_try_compile "$LINENO"; then :
6563 ac_cv_std_swap_in_utility=yes
6564 else
6565 ac_cv_std_swap_in_utility=no
6566 fi
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568 fi
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6570 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6571 if test $ac_cv_std_swap_in_utility = yes; then
6572
6573 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6574
6575 fi
6576
6577 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6578 # If the host compiler is affected by the bug, and we build with optimization
6579 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6580 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6581 # Since there is no reliable feature check for the presence of this bug,
6582 # we simply use a GCC version number check. (This should never trigger for
6583 # stages 2 or 3 of a native bootstrap.)
6584 aliasing_flags=
6585 if test "$GCC" = yes; then
6586 saved_CXXFLAGS="$CXXFLAGS"
6587
6588 # The following test compilation will succeed if and only if $CXX accepts
6589 # -fno-strict-aliasing *and* is older than GCC 4.3.
6590 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6592 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6595
6596 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6597 #error compiler not affected by placement new aliasing bug
6598 #endif
6599
6600 _ACEOF
6601 if ac_fn_cxx_try_compile "$LINENO"; then :
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6603 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6604 else
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6607 fi
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609
6610 CXXFLAGS="$saved_CXXFLAGS"
6611 fi
6612
6613
6614
6615
6616 # ---------------------
6617 # Warnings and checking
6618 # ---------------------
6619
6620 # Check $CC warning features (if it's GCC).
6621 # We want to use -pedantic, but we don't want warnings about
6622 # * 'long long'
6623 # * variadic macros
6624 # * overlong strings
6625 # * C++11 narrowing conversions in { }
6626 # So, we only use -pedantic if we can disable those warnings.
6627
6628 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6629 # Check whether --enable-build-format-warnings was given.
6630 if test "${enable_build_format_warnings+set}" = set; then :
6631 enableval=$enable_build_format_warnings;
6632 else
6633 enable_build_format_warnings=yes
6634 fi
6635
6636 if test $enable_build_format_warnings = no; then :
6637 wf_opt=-Wno-format
6638 else
6639 wf_opt=
6640 fi
6641 ac_ext=cpp
6642 ac_cpp='$CXXCPP $CPPFLAGS'
6643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6646
6647 loose_warn=
6648 save_CXXFLAGS="$CXXFLAGS"
6649 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6650 # Do the check with the no- prefix removed since gcc silently
6651 # accepts any -Wno-* option on purpose
6652 case $real_option in
6653 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6654 *) option=$real_option ;;
6655 esac
6656 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6657
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6659 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6660 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 CXXFLAGS="$option"
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666
6667 int
6668 main ()
6669 {
6670
6671 ;
6672 return 0;
6673 }
6674 _ACEOF
6675 if ac_fn_cxx_try_compile "$LINENO"; then :
6676 eval "$as_acx_Woption=yes"
6677 else
6678 eval "$as_acx_Woption=no"
6679 fi
6680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681
6682 fi
6683 eval ac_res=\$$as_acx_Woption
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6685 $as_echo "$ac_res" >&6; }
6686 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6687 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6688 fi
6689 done
6690 CXXFLAGS="$save_CXXFLAGS"
6691 ac_ext=cpp
6692 ac_cpp='$CXXCPP $CPPFLAGS'
6693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6696
6697
6698
6699 ac_ext=c
6700 ac_cpp='$CPP $CPPFLAGS'
6701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6704
6705 c_loose_warn=
6706 save_CFLAGS="$CFLAGS"
6707 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6708 # Do the check with the no- prefix removed since gcc silently
6709 # accepts any -Wno-* option on purpose
6710 case $real_option in
6711 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6712 *) option=$real_option ;;
6713 esac
6714 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6715
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6717 $as_echo_n "checking whether $CC supports $option... " >&6; }
6718 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 CFLAGS="$option"
6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h. */
6724
6725 int
6726 main ()
6727 {
6728
6729 ;
6730 return 0;
6731 }
6732 _ACEOF
6733 if ac_fn_c_try_compile "$LINENO"; then :
6734 eval "$as_acx_Woption=yes"
6735 else
6736 eval "$as_acx_Woption=no"
6737 fi
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739
6740 fi
6741 eval ac_res=\$$as_acx_Woption
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6743 $as_echo "$ac_res" >&6; }
6744 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6745 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6746 fi
6747 done
6748 CFLAGS="$save_CFLAGS"
6749 ac_ext=cpp
6750 ac_cpp='$CXXCPP $CPPFLAGS'
6751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6754
6755
6756 ac_ext=cpp
6757 ac_cpp='$CXXCPP $CPPFLAGS'
6758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6761
6762 strict_warn=
6763 save_CXXFLAGS="$CXXFLAGS"
6764 for real_option in -Wmissing-format-attribute; do
6765 # Do the check with the no- prefix removed since gcc silently
6766 # accepts any -Wno-* option on purpose
6767 case $real_option in
6768 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6769 *) option=$real_option ;;
6770 esac
6771 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6772
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6774 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6775 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6776 $as_echo_n "(cached) " >&6
6777 else
6778 CXXFLAGS="$option"
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781
6782 int
6783 main ()
6784 {
6785
6786 ;
6787 return 0;
6788 }
6789 _ACEOF
6790 if ac_fn_cxx_try_compile "$LINENO"; then :
6791 eval "$as_acx_Woption=yes"
6792 else
6793 eval "$as_acx_Woption=no"
6794 fi
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796
6797 fi
6798 eval ac_res=\$$as_acx_Woption
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6800 $as_echo "$ac_res" >&6; }
6801 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6802 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6803 fi
6804 done
6805 CXXFLAGS="$save_CXXFLAGS"
6806 ac_ext=cpp
6807 ac_cpp='$CXXCPP $CPPFLAGS'
6808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6811
6812
6813 ac_ext=cpp
6814 ac_cpp='$CXXCPP $CPPFLAGS'
6815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6818
6819 save_CXXFLAGS="$CXXFLAGS"
6820 for real_option in -Woverloaded-virtual; do
6821 # Do the check with the no- prefix removed since gcc silently
6822 # accepts any -Wno-* option on purpose
6823 case $real_option in
6824 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6825 *) option=$real_option ;;
6826 esac
6827 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6828
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6830 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6831 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 CXXFLAGS="$option"
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6837
6838 int
6839 main ()
6840 {
6841
6842 ;
6843 return 0;
6844 }
6845 _ACEOF
6846 if ac_fn_cxx_try_compile "$LINENO"; then :
6847 eval "$as_acx_Woption=yes"
6848 else
6849 eval "$as_acx_Woption=no"
6850 fi
6851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6852
6853 fi
6854 eval ac_res=\$$as_acx_Woption
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6856 $as_echo "$ac_res" >&6; }
6857 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6858 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6859 fi
6860 done
6861 CXXFLAGS="$save_CXXFLAGS"
6862 ac_ext=cpp
6863 ac_cpp='$CXXCPP $CPPFLAGS'
6864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6867
6868
6869 ac_ext=c
6870 ac_cpp='$CPP $CPPFLAGS'
6871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6874
6875 c_strict_warn=
6876 save_CFLAGS="$CFLAGS"
6877 for real_option in -Wold-style-definition -Wc++-compat; do
6878 # Do the check with the no- prefix removed since gcc silently
6879 # accepts any -Wno-* option on purpose
6880 case $real_option in
6881 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6882 *) option=$real_option ;;
6883 esac
6884 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6885
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6887 $as_echo_n "checking whether $CC supports $option... " >&6; }
6888 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 CFLAGS="$option"
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894
6895 int
6896 main ()
6897 {
6898
6899 ;
6900 return 0;
6901 }
6902 _ACEOF
6903 if ac_fn_c_try_compile "$LINENO"; then :
6904 eval "$as_acx_Woption=yes"
6905 else
6906 eval "$as_acx_Woption=no"
6907 fi
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909
6910 fi
6911 eval ac_res=\$$as_acx_Woption
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6913 $as_echo "$ac_res" >&6; }
6914 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6915 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6916 fi
6917 done
6918 CFLAGS="$save_CFLAGS"
6919 ac_ext=cpp
6920 ac_cpp='$CXXCPP $CPPFLAGS'
6921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6924
6925
6926 ac_ext=cpp
6927 ac_cpp='$CXXCPP $CPPFLAGS'
6928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6931
6932 # Do the check with the no- prefix removed from the warning options
6933 # since gcc silently accepts any -Wno-* option on purpose
6934 if test "$GXX" = yes; then :
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6936 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6937 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 save_CXXFLAGS="$CXXFLAGS"
6941 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6944
6945 int
6946 main ()
6947 {
6948
6949 ;
6950 return 0;
6951 }
6952 _ACEOF
6953 if ac_fn_cxx_try_compile "$LINENO"; then :
6954 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6955 else
6956 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6957 fi
6958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6959 CXXFLAGS="$save_CXXFLAGS"
6960 fi
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6962 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6963 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6964 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6965 fi
6966
6967 fi
6968 ac_ext=cpp
6969 ac_cpp='$CXXCPP $CPPFLAGS'
6970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6973
6974
6975 ac_ext=cpp
6976 ac_cpp='$CXXCPP $CPPFLAGS'
6977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6980
6981 # Check whether --enable-werror-always was given.
6982 if test "${enable_werror_always+set}" = set; then :
6983 enableval=$enable_werror_always;
6984 else
6985 enable_werror_always=no
6986 fi
6987
6988 if test $enable_werror_always = yes; then :
6989 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6990 fi
6991
6992 ac_ext=cpp
6993 ac_cpp='$CXXCPP $CPPFLAGS'
6994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6997
6998
6999
7000 # The above macros do nothing if the compiler is not GCC. However, the
7001 # Makefile has more goo to add other flags, so these variables are used
7002 # to enable warnings only for GCC.
7003 warn_cflags=
7004 warn_cxxflags=
7005 if test "x$GCC" = "xyes"; then
7006 warn_cflags='$(GCC_WARN_CFLAGS)'
7007 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7008 fi
7009
7010
7011
7012 # Disable exceptions and RTTI if building with g++
7013 ac_ext=c
7014 ac_cpp='$CPP $CPPFLAGS'
7015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7018
7019 noexception_flags=
7020 save_CFLAGS="$CFLAGS"
7021 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7022 # Do the check with the no- prefix removed since gcc silently
7023 # accepts any -Wno-* option on purpose
7024 case $real_option in
7025 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7026 *) option=$real_option ;;
7027 esac
7028 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7029
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7031 $as_echo_n "checking whether $CC supports $option... " >&6; }
7032 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 CFLAGS="$option"
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7038
7039 int
7040 main ()
7041 {
7042
7043 ;
7044 return 0;
7045 }
7046 _ACEOF
7047 if ac_fn_c_try_compile "$LINENO"; then :
7048 eval "$as_acx_Woption=yes"
7049 else
7050 eval "$as_acx_Woption=no"
7051 fi
7052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7053
7054 fi
7055 eval ac_res=\$$as_acx_Woption
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7057 $as_echo "$ac_res" >&6; }
7058 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7059 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7060 fi
7061 done
7062 CFLAGS="$save_CFLAGS"
7063 ac_ext=cpp
7064 ac_cpp='$CXXCPP $CPPFLAGS'
7065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7068
7069
7070
7071 # Enable expensive internal checks
7072 is_release=
7073 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7074 is_release=yes
7075 fi
7076
7077 # Check whether --enable-checking was given.
7078 if test "${enable_checking+set}" = set; then :
7079 enableval=$enable_checking; ac_checking_flags="${enableval}"
7080 else
7081
7082 # Determine the default checks.
7083 if test x$is_release = x ; then
7084 ac_checking_flags=yes,extra
7085 else
7086 ac_checking_flags=release
7087 fi
7088 fi
7089
7090 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7091 for check in release $ac_checking_flags
7092 do
7093 case $check in
7094 # these set all the flags to specific states
7095 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7096 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7097 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7098 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7099 ac_tree_checking=1 ; ac_valgrind_checking= ;
7100 ac_types_checking=1 ;;
7101 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7102 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7103 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7104 ac_rtlflag_checking= ; ac_runtime_checking= ;
7105 ac_tree_checking= ; ac_valgrind_checking= ;
7106 ac_types_checking= ;;
7107 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7108 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7109 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7110 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7111 ac_tree_checking=1 ; ac_valgrind_checking= ;
7112 ac_types_checking=1 ;;
7113 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7114 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7115 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7116 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7117 ac_tree_checking= ; ac_valgrind_checking= ;
7118 ac_types_checking= ;;
7119 # these enable particular checks
7120 assert) ac_assert_checking=1 ;;
7121 df) ac_df_checking=1 ;;
7122 extra) ac_extra_checking=1 ;;
7123 fold) ac_fold_checking=1 ;;
7124 gc) ac_gc_checking=1 ;;
7125 gcac) ac_gc_always_collect=1 ;;
7126 gimple) ac_gimple_checking=1 ;;
7127 misc) ac_checking=1 ;;
7128 rtl) ac_rtl_checking=1 ;;
7129 rtlflag) ac_rtlflag_checking=1 ;;
7130 runtime) ac_runtime_checking=1 ;;
7131 tree) ac_tree_checking=1 ;;
7132 types) ac_types_checking=1 ;;
7133 valgrind) ac_valgrind_checking=1 ;;
7134 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7135 esac
7136 done
7137 IFS="$ac_save_IFS"
7138
7139 nocommon_flag=""
7140 if test x$ac_checking != x ; then
7141 if test x$ac_extra_checking != x ; then
7142 ac_checking=2
7143 fi
7144
7145 cat >>confdefs.h <<_ACEOF
7146 #define CHECKING_P $ac_checking
7147 _ACEOF
7148
7149 nocommon_flag=-fno-common
7150 else
7151 $as_echo "#define CHECKING_P 0" >>confdefs.h
7152
7153 fi
7154
7155 if test x$ac_df_checking != x ; then
7156
7157 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7158
7159 fi
7160 if test x$ac_assert_checking != x ; then
7161
7162 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7163
7164 fi
7165 if test x$ac_gimple_checking != x ; then
7166
7167 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7168
7169 fi
7170
7171 if test x$ac_runtime_checking != x ; then
7172
7173 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7174
7175 fi
7176 if test x$ac_tree_checking != x ; then
7177
7178 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7179
7180 TREECHECKING=yes
7181 fi
7182 if test x$ac_types_checking != x ; then
7183
7184 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7185
7186 fi
7187
7188 if test x$ac_rtl_checking != x ; then
7189
7190 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7191
7192 fi
7193 if test x$ac_rtlflag_checking != x ; then
7194
7195 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7196
7197 fi
7198 if test x$ac_gc_checking != x ; then
7199
7200 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7201
7202 fi
7203 if test x$ac_gc_always_collect != x ; then
7204
7205 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7206
7207 fi
7208 if test x$ac_fold_checking != x ; then
7209
7210 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7211
7212 fi
7213 valgrind_path_defines=
7214 valgrind_command=
7215
7216 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7217 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7218 have_valgrind_h=yes
7219 else
7220 have_valgrind_h=no
7221 fi
7222
7223
7224
7225 # It is certainly possible that there's valgrind but no valgrind.h.
7226 # GCC relies on making annotations so we must have both.
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7228 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7231 #include <valgrind/memcheck.h>
7232 #ifndef VALGRIND_DISCARD
7233 #error VALGRIND_DISCARD not defined
7234 #endif
7235 _ACEOF
7236 if ac_fn_cxx_try_cpp "$LINENO"; then :
7237 gcc_cv_header_valgrind_memcheck_h=yes
7238 else
7239 gcc_cv_header_valgrind_memcheck_h=no
7240 fi
7241 rm -f conftest.err conftest.$ac_ext
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7243 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7245 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 #include <memcheck.h>
7249 #ifndef VALGRIND_DISCARD
7250 #error VALGRIND_DISCARD not defined
7251 #endif
7252 _ACEOF
7253 if ac_fn_cxx_try_cpp "$LINENO"; then :
7254 gcc_cv_header_memcheck_h=yes
7255 else
7256 gcc_cv_header_memcheck_h=no
7257 fi
7258 rm -f conftest.err conftest.$ac_ext
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7260 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7261 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7262
7263 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7264
7265 fi
7266 if test $gcc_cv_header_memcheck_h = yes; then
7267
7268 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7269
7270 fi
7271
7272 if test x$ac_valgrind_checking != x ; then
7273
7274 # Prepare PATH_SEPARATOR.
7275 # The user is always right.
7276 if test "${PATH_SEPARATOR+set}" != set; then
7277 echo "#! /bin/sh" >conf$$.sh
7278 echo "exit 0" >>conf$$.sh
7279 chmod +x conf$$.sh
7280 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7281 PATH_SEPARATOR=';'
7282 else
7283 PATH_SEPARATOR=:
7284 fi
7285 rm -f conf$$.sh
7286 fi
7287
7288 # Find out how to test for executable files. Don't use a zero-byte file,
7289 # as systems may use methods other than mode bits to determine executability.
7290 cat >conf$$.file <<_ASEOF
7291 #! /bin/sh
7292 exit 0
7293 _ASEOF
7294 chmod +x conf$$.file
7295 if test -x conf$$.file >/dev/null 2>&1; then
7296 ac_executable_p="test -x"
7297 else
7298 ac_executable_p="test -f"
7299 fi
7300 rm -f conf$$.file
7301
7302 # Extract the first word of "valgrind", so it can be a program name with args.
7303 set dummy valgrind; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 case "$valgrind_path" in
7310 [\\/]* | ?:[\\/]*)
7311 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7312 ;;
7313 *)
7314 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7315 for ac_dir in $PATH; do
7316 IFS="$ac_save_IFS"
7317 test -z "$ac_dir" && ac_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7320 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7321 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7322 break 2
7323 fi
7324 fi
7325 done
7326 done
7327 IFS="$ac_save_IFS"
7328 ;;
7329 esac
7330 fi
7331 valgrind_path="$ac_cv_path_valgrind_path"
7332 if test -n "$valgrind_path"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7334 $as_echo "$valgrind_path" >&6; }
7335 else
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 $as_echo "no" >&6; }
7338 fi
7339
7340 if test "x$valgrind_path" = "x" \
7341 || (test $have_valgrind_h = no \
7342 && test $gcc_cv_header_memcheck_h = no \
7343 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7344 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7345 fi
7346 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7347 valgrind_command="$valgrind_path -q"
7348
7349 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7350
7351 fi
7352
7353
7354
7355 # Enable code coverage collection
7356 # Check whether --enable-coverage was given.
7357 if test "${enable_coverage+set}" = set; then :
7358 enableval=$enable_coverage; case "${enableval}" in
7359 yes|noopt)
7360 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7361 ;;
7362 opt)
7363 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7364 ;;
7365 no)
7366 # a.k.a. --disable-coverage
7367 coverage_flags=""
7368 ;;
7369 *)
7370 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7371 ;;
7372 esac
7373 else
7374 coverage_flags=""
7375 fi
7376
7377
7378
7379 # Check whether --enable-gather-detailed-mem-stats was given.
7380 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7381 enableval=$enable_gather_detailed_mem_stats;
7382 else
7383 enable_gather_detailed_mem_stats=no
7384 fi
7385
7386 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7387
7388 cat >>confdefs.h <<_ACEOF
7389 #define GATHER_STATISTICS $gather_stats
7390 _ACEOF
7391
7392
7393 # Check whether --enable-valgrind-annotations was given.
7394 if test "${enable_valgrind_annotations+set}" = set; then :
7395 enableval=$enable_valgrind_annotations;
7396 else
7397 enable_valgrind_annotations=no
7398 fi
7399
7400 if test x$enable_valgrind_annotations != xno \
7401 || test x$ac_valgrind_checking != x; then
7402 if (test $have_valgrind_h = no \
7403 && test $gcc_cv_header_memcheck_h = no \
7404 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7405 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7406 fi
7407
7408 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7409
7410 fi
7411
7412 # -------------------------------
7413 # Miscenalleous configure options
7414 # -------------------------------
7415
7416 # With stabs
7417
7418 # Check whether --with-stabs was given.
7419 if test "${with_stabs+set}" = set; then :
7420 withval=$with_stabs; stabs="$with_stabs"
7421 else
7422 stabs=no
7423 fi
7424
7425
7426 # Determine whether or not multilibs are enabled.
7427 # Check whether --enable-multilib was given.
7428 if test "${enable_multilib+set}" = set; then :
7429 enableval=$enable_multilib;
7430 else
7431 enable_multilib=yes
7432 fi
7433
7434
7435
7436 # Determine whether or not multiarch is enabled.
7437 # Check whether --enable-multiarch was given.
7438 if test "${enable_multiarch+set}" = set; then :
7439 enableval=$enable_multiarch; case "${enableval}" in
7440 yes|no|auto) enable_multiarch=$enableval;;
7441 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7442 esac
7443 else
7444 enable_multiarch=auto
7445 fi
7446
7447 if test x${enable_multiarch} = xauto; then
7448 if test x${with_native_system_header_dir} != x; then
7449 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7450 enable_multiarch=no
7451 fi
7452 if test x$host != x$target && test "x$with_sysroot" = x; then
7453 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7454 enable_multiarch=no
7455 fi
7456 fi
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7458 $as_echo_n "checking for multiarch configuration... " >&6; }
7459
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7461 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7462
7463 # needed for setting the multiarch name for soft-float/hard-float ABIs
7464
7465
7466
7467 # Enable __cxa_atexit for C++.
7468 # Check whether --enable-__cxa_atexit was given.
7469 if test "${enable___cxa_atexit+set}" = set; then :
7470 enableval=$enable___cxa_atexit;
7471 fi
7472
7473
7474 # Enable C extension for decimal float if target supports it.
7475
7476 # Check whether --enable-decimal-float was given.
7477 if test "${enable_decimal_float+set}" = set; then :
7478 enableval=$enable_decimal_float;
7479 case $enable_decimal_float in
7480 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7481 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7482 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7483 esac
7484
7485 else
7486
7487 case $target in
7488 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7489 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7490 i?86*-*-mingw* | x86_64*-*-mingw* | \
7491 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7492 enable_decimal_float=yes
7493 ;;
7494 *)
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7496 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7497 enable_decimal_float=no
7498 ;;
7499 esac
7500
7501 fi
7502
7503
7504 # x86's use BID format instead of DPD
7505 case x$enable_decimal_float in
7506 xyes)
7507 case $target in
7508 i?86*-*-* | x86_64*-*-*)
7509 enable_decimal_float=bid
7510 ;;
7511 *)
7512 enable_decimal_float=dpd
7513 ;;
7514 esac
7515 default_decimal_float=$enable_decimal_float
7516 ;;
7517 xno)
7518 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7519 # dependency on libdecnumber.
7520 default_decimal_float=dpd
7521 ;;
7522 esac
7523
7524
7525
7526
7527 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7528
7529 cat >>confdefs.h <<_ACEOF
7530 #define ENABLE_DECIMAL_FLOAT $dfp
7531 _ACEOF
7532
7533
7534 # Use default_decimal_float for dependency.
7535 enable_decimal_float=$default_decimal_float
7536
7537 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7538
7539 cat >>confdefs.h <<_ACEOF
7540 #define ENABLE_DECIMAL_BID_FORMAT $bid
7541 _ACEOF
7542
7543
7544 # Enable C extension for fixed-point arithmetic.
7545 # Check whether --enable-fixed-point was given.
7546 if test "${enable_fixed_point+set}" = set; then :
7547 enableval=$enable_fixed_point;
7548 else
7549
7550 case $target in
7551 arm*)
7552 enable_fixed_point=yes
7553 ;;
7554
7555 mips*-*-*)
7556 enable_fixed_point=yes
7557 ;;
7558 *)
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7560 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7561 enable_fixed_point=no
7562 ;;
7563 esac
7564
7565 fi
7566
7567
7568
7569 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7570
7571 cat >>confdefs.h <<_ACEOF
7572 #define ENABLE_FIXED_POINT $fixedpoint
7573 _ACEOF
7574
7575
7576 # Enable threads
7577 # Pass with no value to take the default
7578 # Pass with a value to specify a thread package
7579 # Check whether --enable-threads was given.
7580 if test "${enable_threads+set}" = set; then :
7581 enableval=$enable_threads;
7582 else
7583 enable_threads=''
7584 fi
7585
7586
7587 # Check whether --enable-tls was given.
7588 if test "${enable_tls+set}" = set; then :
7589 enableval=$enable_tls;
7590 case $enable_tls in
7591 yes | no) ;;
7592 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7593 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7594 esac
7595
7596 else
7597 enable_tls=''
7598 fi
7599
7600
7601 # Check whether --enable-vtable-verify was given.
7602 if test "${enable_vtable_verify+set}" = set; then :
7603 enableval=$enable_vtable_verify;
7604 else
7605 enable_vtable_verify=no
7606 fi
7607
7608 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7609
7610 cat >>confdefs.h <<_ACEOF
7611 #define ENABLE_VTABLE_VERIFY $vtable_verify
7612 _ACEOF
7613
7614
7615 # Check whether --enable-objc-gc was given.
7616 if test "${enable_objc_gc+set}" = set; then :
7617 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7618 objc_boehm_gc=''
7619 else
7620 objc_boehm_gc=1
7621 fi
7622 else
7623 objc_boehm_gc=''
7624 fi
7625
7626
7627
7628 # Check whether --with-dwarf2 was given.
7629 if test "${with_dwarf2+set}" = set; then :
7630 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7631 else
7632 dwarf2=no
7633 fi
7634
7635
7636 # Check whether --enable-shared was given.
7637 if test "${enable_shared+set}" = set; then :
7638 enableval=$enable_shared;
7639 case $enable_shared in
7640 yes | no) ;;
7641 *)
7642 enable_shared=no
7643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7644 for pkg in $enableval; do
7645 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7646 enable_shared=yes
7647 fi
7648 done
7649 IFS="$ac_save_ifs"
7650 ;;
7651 esac
7652
7653 else
7654 enable_shared=yes
7655 fi
7656
7657
7658
7659
7660 # Check whether --with-specs was given.
7661 if test "${with_specs+set}" = set; then :
7662 withval=$with_specs; CONFIGURE_SPECS=$withval
7663 else
7664 CONFIGURE_SPECS=
7665
7666 fi
7667
7668
7669
7670
7671
7672 # Check whether --with-pkgversion was given.
7673 if test "${with_pkgversion+set}" = set; then :
7674 withval=$with_pkgversion; case "$withval" in
7675 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7676 no) PKGVERSION= ;;
7677 *) PKGVERSION="($withval) " ;;
7678 esac
7679 else
7680 PKGVERSION="(GCC) "
7681
7682 fi
7683
7684
7685
7686
7687
7688 # Check whether --with-bugurl was given.
7689 if test "${with_bugurl+set}" = set; then :
7690 withval=$with_bugurl; case "$withval" in
7691 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7692 no) BUGURL=
7693 ;;
7694 *) BUGURL="$withval"
7695 ;;
7696 esac
7697 else
7698 BUGURL="http://gcc.gnu.org/bugs.html"
7699
7700 fi
7701
7702 case ${BUGURL} in
7703 "")
7704 REPORT_BUGS_TO=
7705 REPORT_BUGS_TEXI=
7706 ;;
7707 *)
7708 REPORT_BUGS_TO="<$BUGURL>"
7709 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7710 ;;
7711 esac;
7712
7713
7714
7715
7716 # Sanity check enable_languages in case someone does not run the toplevel
7717 # configure # script.
7718 # Check whether --enable-languages was given.
7719 if test "${enable_languages+set}" = set; then :
7720 enableval=$enable_languages; case ,${enable_languages}, in
7721 ,,|,yes,)
7722 # go safe -- we cannot be much sure without the toplevel
7723 # configure's
7724 # analysis of which target libs are present and usable
7725 enable_languages=c
7726 ;;
7727 *,all,*)
7728 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7729 ;;
7730 *,c,*)
7731 ;;
7732 *)
7733 enable_languages=c,${enable_languages}
7734 ;;
7735 esac
7736 else
7737 enable_languages=c
7738 fi
7739
7740
7741 if test x"$enable_as_accelerator_for" != x; then
7742
7743 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7744
7745 enable_as_accelerator=yes
7746 case "${target}" in
7747 *-intelmicemul-*)
7748 # In this case we expect offload compiler to be built as native, so we
7749 # need to rename the driver to avoid clashes with host's drivers.
7750 program_transform_name="s&^&${target}-&" ;;
7751 esac
7752 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7753 program_transform_name=`echo $program_transform_name | sed $sedscript`
7754 accel_dir_suffix=/accel/${target_noncanonical}
7755 real_target_noncanonical=${enable_as_accelerator_for}
7756 fi
7757
7758
7759
7760
7761 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7762 tgt=`echo $tgt | sed 's/=.*//'`
7763
7764 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7765 enable_hsa=1
7766 else
7767 enable_offloading=1
7768 fi
7769
7770 if test x"$offload_targets" = x; then
7771 offload_targets=$tgt
7772 else
7773 offload_targets="$offload_targets,$tgt"
7774 fi
7775 done
7776
7777 cat >>confdefs.h <<_ACEOF
7778 #define OFFLOAD_TARGETS "$offload_targets"
7779 _ACEOF
7780
7781 if test x"$enable_offloading" != x; then
7782
7783 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7784
7785 else
7786
7787 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7788
7789 fi
7790
7791 if test x"$enable_hsa" = x1 ; then
7792
7793 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7794
7795 fi
7796
7797
7798 # Check whether --with-multilib-list was given.
7799 if test "${with_multilib_list+set}" = set; then :
7800 withval=$with_multilib_list; :
7801 else
7802 with_multilib_list=default
7803 fi
7804
7805
7806 # -------------------------
7807 # Checks for other programs
7808 # -------------------------
7809
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7811 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7812 set x ${MAKE-make}
7813 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7814 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 cat >conftest.make <<\_ACEOF
7818 SHELL = /bin/sh
7819 all:
7820 @echo '@@@%%%=$(MAKE)=@@@%%%'
7821 _ACEOF
7822 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7823 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7824 *@@@%%%=?*=@@@%%%*)
7825 eval ac_cv_prog_make_${ac_make}_set=yes;;
7826 *)
7827 eval ac_cv_prog_make_${ac_make}_set=no;;
7828 esac
7829 rm -f conftest.make
7830 fi
7831 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833 $as_echo "yes" >&6; }
7834 SET_MAKE=
7835 else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7838 SET_MAKE="MAKE=${MAKE-make}"
7839 fi
7840
7841
7842 # Find some useful tools
7843 for ac_prog in gawk mawk nawk awk
7844 do
7845 # Extract the first word of "$ac_prog", so it can be a program name with args.
7846 set dummy $ac_prog; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if test "${ac_cv_prog_AWK+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 if test -n "$AWK"; then
7853 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7854 else
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7857 do
7858 IFS=$as_save_IFS
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7862 ac_cv_prog_AWK="$ac_prog"
7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 break 2
7865 fi
7866 done
7867 done
7868 IFS=$as_save_IFS
7869
7870 fi
7871 fi
7872 AWK=$ac_cv_prog_AWK
7873 if test -n "$AWK"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7875 $as_echo "$AWK" >&6; }
7876 else
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7879 fi
7880
7881
7882 test -n "$AWK" && break
7883 done
7884
7885 # We need awk to create options.c and options.h.
7886 # Bail out if it's missing.
7887 case ${AWK} in
7888 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7889 esac
7890
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7892 $as_echo_n "checking whether ln -s works... " >&6; }
7893 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 rm -f conftestdata_t
7897 echo >conftestdata_f
7898 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7899 then
7900 gcc_cv_prog_LN_S="ln -s"
7901 else
7902 if ln conftestdata_f conftestdata_t 2>/dev/null
7903 then
7904 gcc_cv_prog_LN_S=ln
7905 else
7906 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7907 then
7908 gcc_cv_prog_LN_S="cp -p"
7909 else
7910 gcc_cv_prog_LN_S=cp
7911 fi
7912 fi
7913 fi
7914 rm -f conftestdata_f conftestdata_t
7915
7916 fi
7917 LN_S="$gcc_cv_prog_LN_S"
7918 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7920 $as_echo "yes" >&6; }
7921 else
7922 if test "$gcc_cv_prog_LN_S" = "ln"; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7924 $as_echo "no, using ln" >&6; }
7925 else
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7927 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7928 fi
7929 fi
7930
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7932 $as_echo_n "checking whether ln works... " >&6; }
7933 if test "${acx_cv_prog_LN+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
7935 else
7936 rm -f conftestdata_t
7937 echo >conftestdata_f
7938 if ln conftestdata_f conftestdata_t 2>/dev/null
7939 then
7940 acx_cv_prog_LN=ln
7941 else
7942 acx_cv_prog_LN=no
7943 fi
7944 rm -f conftestdata_f conftestdata_t
7945
7946 fi
7947 if test $acx_cv_prog_LN = no; then
7948 LN="$LN_S"
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7950 $as_echo "no, using $LN" >&6; }
7951 else
7952 LN="$acx_cv_prog_LN"
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7954 $as_echo "yes" >&6; }
7955 fi
7956
7957 if test -n "$ac_tool_prefix"; then
7958 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7959 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 if test -n "$RANLIB"; then
7966 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7967 else
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7970 do
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7975 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7978 fi
7979 done
7980 done
7981 IFS=$as_save_IFS
7982
7983 fi
7984 fi
7985 RANLIB=$ac_cv_prog_RANLIB
7986 if test -n "$RANLIB"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7988 $as_echo "$RANLIB" >&6; }
7989 else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7992 fi
7993
7994
7995 fi
7996 if test -z "$ac_cv_prog_RANLIB"; then
7997 ac_ct_RANLIB=$RANLIB
7998 # Extract the first word of "ranlib", so it can be a program name with args.
7999 set dummy ranlib; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 if test -n "$ac_ct_RANLIB"; then
8006 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8010 do
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8015 ac_cv_prog_ac_ct_RANLIB="ranlib"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 break 2
8018 fi
8019 done
8020 done
8021 IFS=$as_save_IFS
8022
8023 fi
8024 fi
8025 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8026 if test -n "$ac_ct_RANLIB"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8028 $as_echo "$ac_ct_RANLIB" >&6; }
8029 else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032 fi
8033
8034 if test "x$ac_ct_RANLIB" = x; then
8035 RANLIB=":"
8036 else
8037 case $cross_compiling:$ac_tool_warned in
8038 yes:)
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8041 ac_tool_warned=yes ;;
8042 esac
8043 RANLIB=$ac_ct_RANLIB
8044 fi
8045 else
8046 RANLIB="$ac_cv_prog_RANLIB"
8047 fi
8048
8049 ranlib_flags=""
8050
8051
8052 # Find a good install program. We prefer a C program (faster),
8053 # so one script is as good as another. But avoid the broken or
8054 # incompatible versions:
8055 # SysV /etc/install, /usr/sbin/install
8056 # SunOS /usr/etc/install
8057 # IRIX /sbin/install
8058 # AIX /bin/install
8059 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8060 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8061 # ./install, which can be erroneously created by make from ./install.sh.
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8063 $as_echo_n "checking for a BSD compatible install... " >&6; }
8064 if test -z "$INSTALL"; then
8065 if test "${ac_cv_path_install+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8067 else
8068 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8069 for ac_dir in $PATH; do
8070 # Account for people who put trailing slashes in PATH elements.
8071 case "$ac_dir/" in
8072 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8073 *)
8074 # OSF1 and SCO ODT 3.0 have their own names for install.
8075 for ac_prog in ginstall scoinst install; do
8076 if test -f $ac_dir/$ac_prog; then
8077 if test $ac_prog = install &&
8078 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8079 # AIX install. It has an incompatible calling convention.
8080 # OSF/1 installbsd also uses dspmsg, but is usable.
8081 :
8082 else
8083 ac_cv_path_install="$ac_dir/$ac_prog -c"
8084 break 2
8085 fi
8086 fi
8087 done
8088 ;;
8089 esac
8090 done
8091 IFS="$ac_save_IFS"
8092
8093 fi
8094 if test "${ac_cv_path_install+set}" = set; then
8095 INSTALL="$ac_cv_path_install"
8096 else
8097 # As a last resort, use the slow shell script. We don't cache a
8098 # path for INSTALL within a source directory, because that will
8099 # break other packages using the cache if that directory is
8100 # removed, or if the path is relative.
8101 INSTALL="$ac_install_sh"
8102 fi
8103 fi
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8105 $as_echo "$INSTALL" >&6; }
8106
8107 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8108 # It thinks the first close brace ends the variable substitution.
8109 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8110
8111 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8112
8113
8114 # See if cmp has --ignore-initial.
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8116 $as_echo_n "checking for cmp's capabilities... " >&6; }
8117 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8118 $as_echo_n "(cached) " >&6
8119 else
8120 echo abfoo >t1
8121 echo cdfoo >t2
8122 gcc_cv_prog_cmp_skip=slowcompare
8123 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8124 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8125 :
8126 else
8127 gcc_cv_prog_cmp_skip=gnucompare
8128 fi
8129 fi
8130 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8131 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8132 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8133 :
8134 else
8135 gcc_cv_prog_cmp_skip=fastcompare
8136 fi
8137 fi
8138 fi
8139 rm t1 t2
8140
8141 fi
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8143 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8144 make_compare_target=$gcc_cv_prog_cmp_skip
8145
8146
8147
8148 # See if we have the mktemp command.
8149 # Extract the first word of "mktemp", so it can be a program name with args.
8150 set dummy mktemp; ac_word=$2
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 $as_echo_n "checking for $ac_word... " >&6; }
8153 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8154 $as_echo_n "(cached) " >&6
8155 else
8156 if test -n "$have_mktemp_command"; then
8157 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8158 else
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8161 do
8162 IFS=$as_save_IFS
8163 test -z "$as_dir" && as_dir=.
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8166 ac_cv_prog_have_mktemp_command="yes"
8167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8168 break 2
8169 fi
8170 done
8171 done
8172 IFS=$as_save_IFS
8173
8174 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8175 fi
8176 fi
8177 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8178 if test -n "$have_mktemp_command"; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8180 $as_echo "$have_mktemp_command" >&6; }
8181 else
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183 $as_echo "no" >&6; }
8184 fi
8185
8186
8187
8188 # See if makeinfo has been installed and is modern enough
8189 # that we can use it.
8190
8191 # Extract the first word of "makeinfo", so it can be a program name with args.
8192 set dummy makeinfo; ac_word=$2
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194 $as_echo_n "checking for $ac_word... " >&6; }
8195 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 if test -n "$MAKEINFO"; then
8199 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8200 else
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in $PATH
8203 do
8204 IFS=$as_save_IFS
8205 test -z "$as_dir" && as_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
8207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8208 ac_cv_prog_MAKEINFO="makeinfo"
8209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8210 break 2
8211 fi
8212 done
8213 done
8214 IFS=$as_save_IFS
8215
8216 fi
8217 fi
8218 MAKEINFO=$ac_cv_prog_MAKEINFO
8219 if test -n "$MAKEINFO"; then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8221 $as_echo "$MAKEINFO" >&6; }
8222 else
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 $as_echo "no" >&6; }
8225 fi
8226
8227
8228 if test -n "$MAKEINFO"; then
8229 # Found it, now check the version.
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8231 $as_echo_n "checking for modern makeinfo... " >&6; }
8232 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8236 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8237
8238 case $ac_prog_version in
8239 '') gcc_cv_prog_makeinfo_modern=no;;
8240 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8241 *) gcc_cv_prog_makeinfo_modern=no;;
8242 esac
8243
8244 fi
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8246 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8247 else
8248 gcc_cv_prog_makeinfo_modern=no
8249 fi
8250 if test $gcc_cv_prog_makeinfo_modern = no; then
8251 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8252 fi
8253
8254 if test $gcc_cv_prog_makeinfo_modern = no; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8256 *** Makeinfo is missing or too old.
8257 *** Info documentation will not be built." >&5
8258 $as_echo "$as_me: WARNING:
8259 *** Makeinfo is missing or too old.
8260 *** Info documentation will not be built." >&2;}
8261 BUILD_INFO=
8262 else
8263 BUILD_INFO=info
8264 fi
8265
8266
8267 # Is pod2man recent enough to regenerate manpages?
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8269 $as_echo_n "checking for recent Pod::Man... " >&6; }
8270 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8272 $as_echo "yes" >&6; }
8273 GENERATED_MANPAGES=generated-manpages
8274 else
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276 $as_echo "no" >&6; }
8277 GENERATED_MANPAGES=
8278 fi
8279
8280
8281 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8282
8283 # How about lex?
8284 for ac_prog in flex
8285 do
8286 # Extract the first word of "$ac_prog", so it can be a program name with args.
8287 set dummy $ac_prog; ac_word=$2
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if test "${ac_cv_prog_FLEX+set}" = set; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 if test -n "$FLEX"; then
8294 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8295 else
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 for as_dir in $PATH
8298 do
8299 IFS=$as_save_IFS
8300 test -z "$as_dir" && as_dir=.
8301 for ac_exec_ext in '' $ac_executable_extensions; do
8302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303 ac_cv_prog_FLEX="$ac_prog"
8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8305 break 2
8306 fi
8307 done
8308 done
8309 IFS=$as_save_IFS
8310
8311 fi
8312 fi
8313 FLEX=$ac_cv_prog_FLEX
8314 if test -n "$FLEX"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8316 $as_echo "$FLEX" >&6; }
8317 else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8320 fi
8321
8322
8323 test -n "$FLEX" && break
8324 done
8325 test -n "$FLEX" || FLEX="$MISSING flex"
8326
8327
8328 # Bison?
8329 for ac_prog in bison
8330 do
8331 # Extract the first word of "$ac_prog", so it can be a program name with args.
8332 set dummy $ac_prog; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if test "${ac_cv_prog_BISON+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 if test -n "$BISON"; then
8339 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8340 else
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 for as_dir in $PATH
8343 do
8344 IFS=$as_save_IFS
8345 test -z "$as_dir" && as_dir=.
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348 ac_cv_prog_BISON="$ac_prog"
8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350 break 2
8351 fi
8352 done
8353 done
8354 IFS=$as_save_IFS
8355
8356 fi
8357 fi
8358 BISON=$ac_cv_prog_BISON
8359 if test -n "$BISON"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8361 $as_echo "$BISON" >&6; }
8362 else
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8365 fi
8366
8367
8368 test -n "$BISON" && break
8369 done
8370 test -n "$BISON" || BISON="$MISSING bison"
8371
8372
8373 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8374 # check for build == host before using them.
8375
8376 # NM
8377 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8378 && test -d ../binutils ; then
8379 NM='${objdir}/../binutils/nm-new'
8380 else
8381 # Extract the first word of "nm", so it can be a program name with args.
8382 set dummy nm; ac_word=$2
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8384 $as_echo_n "checking for $ac_word... " >&6; }
8385 if test "${ac_cv_prog_NM+set}" = set; then :
8386 $as_echo_n "(cached) " >&6
8387 else
8388 if test -n "$NM"; then
8389 ac_cv_prog_NM="$NM" # Let the user override the test.
8390 else
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 for as_dir in $PATH
8393 do
8394 IFS=$as_save_IFS
8395 test -z "$as_dir" && as_dir=.
8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8398 ac_cv_prog_NM="nm"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 break 2
8401 fi
8402 done
8403 done
8404 IFS=$as_save_IFS
8405
8406 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8407 fi
8408 fi
8409 NM=$ac_cv_prog_NM
8410 if test -n "$NM"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8412 $as_echo "$NM" >&6; }
8413 else
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8416 fi
8417
8418
8419 fi
8420
8421 # AR
8422 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8423 && test -d ../binutils ; then
8424 AR='${objdir}/../binutils/ar'
8425 else
8426 # Extract the first word of "ar", so it can be a program name with args.
8427 set dummy ar; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if test "${ac_cv_prog_AR+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 if test -n "$AR"; then
8434 ac_cv_prog_AR="$AR" # Let the user override the test.
8435 else
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in $PATH
8438 do
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8443 ac_cv_prog_AR="ar"
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 break 2
8446 fi
8447 done
8448 done
8449 IFS=$as_save_IFS
8450
8451 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8452 fi
8453 fi
8454 AR=$ac_cv_prog_AR
8455 if test -n "$AR"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8457 $as_echo "$AR" >&6; }
8458 else
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8461 fi
8462
8463
8464 fi
8465
8466 # The jit documentation looks better if built with sphinx, but can be
8467 # built with texinfo if sphinx is not available.
8468 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8469 # Extract the first word of "sphinx-build", so it can be a program name with args.
8470 set dummy sphinx-build; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 if test -n "$doc_build_sys"; then
8477 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8481 do
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_prog_doc_build_sys="sphinx"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 break 2
8489 fi
8490 done
8491 done
8492 IFS=$as_save_IFS
8493
8494 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8495 fi
8496 fi
8497 doc_build_sys=$ac_cv_prog_doc_build_sys
8498 if test -n "$doc_build_sys"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8500 $as_echo "$doc_build_sys" >&6; }
8501 else
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 $as_echo "no" >&6; }
8504 fi
8505
8506
8507
8508 # --------------------
8509 # Checks for C headers
8510 # --------------------
8511
8512 # Need to reject headers which give warnings, so that the -Werror bootstrap
8513 # works later. *sigh* This needs to come before all header checks.
8514
8515 ac_c_preproc_warn_flag=yes
8516
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8518 $as_echo_n "checking for ANSI C header files... " >&6; }
8519 if test "${ac_cv_header_stdc+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 #include <stdlib.h>
8525 #include <stdarg.h>
8526 #include <string.h>
8527 #include <float.h>
8528
8529 int
8530 main ()
8531 {
8532
8533 ;
8534 return 0;
8535 }
8536 _ACEOF
8537 if ac_fn_cxx_try_compile "$LINENO"; then :
8538 ac_cv_header_stdc=yes
8539 else
8540 ac_cv_header_stdc=no
8541 fi
8542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543
8544 if test $ac_cv_header_stdc = yes; then
8545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8548 #include <string.h>
8549
8550 _ACEOF
8551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8552 $EGREP "memchr" >/dev/null 2>&1; then :
8553
8554 else
8555 ac_cv_header_stdc=no
8556 fi
8557 rm -f conftest*
8558
8559 fi
8560
8561 if test $ac_cv_header_stdc = yes; then
8562 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8565 #include <stdlib.h>
8566
8567 _ACEOF
8568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8569 $EGREP "free" >/dev/null 2>&1; then :
8570
8571 else
8572 ac_cv_header_stdc=no
8573 fi
8574 rm -f conftest*
8575
8576 fi
8577
8578 if test $ac_cv_header_stdc = yes; then
8579 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8580 if test "$cross_compiling" = yes; then :
8581 :
8582 else
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8585 #include <ctype.h>
8586 #include <stdlib.h>
8587 #if ((' ' & 0x0FF) == 0x020)
8588 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8589 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8590 #else
8591 # define ISLOWER(c) \
8592 (('a' <= (c) && (c) <= 'i') \
8593 || ('j' <= (c) && (c) <= 'r') \
8594 || ('s' <= (c) && (c) <= 'z'))
8595 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8596 #endif
8597
8598 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8599 int
8600 main ()
8601 {
8602 int i;
8603 for (i = 0; i < 256; i++)
8604 if (XOR (islower (i), ISLOWER (i))
8605 || toupper (i) != TOUPPER (i))
8606 return 2;
8607 return 0;
8608 }
8609 _ACEOF
8610 if ac_fn_cxx_try_run "$LINENO"; then :
8611
8612 else
8613 ac_cv_header_stdc=no
8614 fi
8615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8616 conftest.$ac_objext conftest.beam conftest.$ac_ext
8617 fi
8618
8619 fi
8620 fi
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8622 $as_echo "$ac_cv_header_stdc" >&6; }
8623 if test $ac_cv_header_stdc = yes; then
8624
8625 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8626
8627 fi
8628
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8630 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8631 if test "${ac_cv_header_time+set}" = set; then :
8632 $as_echo_n "(cached) " >&6
8633 else
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8636 #include <sys/types.h>
8637 #include <sys/time.h>
8638 #include <time.h>
8639
8640 int
8641 main ()
8642 {
8643 if ((struct tm *) 0)
8644 return 0;
8645 ;
8646 return 0;
8647 }
8648 _ACEOF
8649 if ac_fn_cxx_try_compile "$LINENO"; then :
8650 ac_cv_header_time=yes
8651 else
8652 ac_cv_header_time=no
8653 fi
8654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8655 fi
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8657 $as_echo "$ac_cv_header_time" >&6; }
8658 if test $ac_cv_header_time = yes; then
8659
8660 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8661
8662 fi
8663
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8665 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8666 if test "${gcc_cv_header_string+set}" = set; then :
8667 $as_echo_n "(cached) " >&6
8668 else
8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670 /* end confdefs.h. */
8671 #include <string.h>
8672 #include <strings.h>
8673 int
8674 main ()
8675 {
8676
8677 ;
8678 return 0;
8679 }
8680 _ACEOF
8681 if ac_fn_cxx_try_compile "$LINENO"; then :
8682 gcc_cv_header_string=yes
8683 else
8684 gcc_cv_header_string=no
8685 fi
8686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687 fi
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8689 $as_echo "$gcc_cv_header_string" >&6; }
8690 if test $gcc_cv_header_string = yes; then
8691
8692 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8693
8694 fi
8695
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8697 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8698 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8703 #include <sys/types.h>
8704 #include <sys/wait.h>
8705 #ifndef WEXITSTATUS
8706 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8707 #endif
8708 #ifndef WIFEXITED
8709 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8710 #endif
8711
8712 int
8713 main ()
8714 {
8715 int s;
8716 wait (&s);
8717 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8718 ;
8719 return 0;
8720 }
8721 _ACEOF
8722 if ac_fn_cxx_try_compile "$LINENO"; then :
8723 ac_cv_header_sys_wait_h=yes
8724 else
8725 ac_cv_header_sys_wait_h=no
8726 fi
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728 fi
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8730 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8731 if test $ac_cv_header_sys_wait_h = yes; then
8732
8733 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8734
8735 fi
8736
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8738 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8739 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8744 #include <sys/types.h>
8745 #include <termios.h>
8746 #ifdef TIOCGWINSZ
8747 yes
8748 #endif
8749
8750 _ACEOF
8751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8752 $EGREP "yes" >/dev/null 2>&1; then :
8753 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8754 else
8755 ac_cv_sys_tiocgwinsz_in_termios_h=no
8756 fi
8757 rm -f conftest*
8758
8759 fi
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8761 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8762
8763 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8765 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8766 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 #include <sys/types.h>
8772 #include <sys/ioctl.h>
8773 #ifdef TIOCGWINSZ
8774 yes
8775 #endif
8776
8777 _ACEOF
8778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8779 $EGREP "yes" >/dev/null 2>&1; then :
8780 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8781 else
8782 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8783 fi
8784 rm -f conftest*
8785
8786 fi
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8788 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8789
8790 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8791
8792 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8793
8794 fi
8795 fi
8796
8797 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8798 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8799 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8800 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8801 do :
8802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8803 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8804 eval as_val=\$$as_ac_Header
8805 if test "x$as_val" = x""yes; then :
8806 cat >>confdefs.h <<_ACEOF
8807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8808 _ACEOF
8809
8810 fi
8811 done
8812
8813
8814 # Check for thread headers.
8815 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8816 if test "x$ac_cv_header_thread_h" = x""yes; then :
8817 have_thread_h=yes
8818 else
8819 have_thread_h=
8820 fi
8821
8822 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8823 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8824 have_pthread_h=yes
8825 else
8826 have_pthread_h=
8827 fi
8828
8829
8830 # These tests can't be done till we know if we have limits.h.
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8832 $as_echo_n "checking for CHAR_BIT... " >&6; }
8833 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8834 $as_echo_n "(cached) " >&6
8835 else
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8838 #ifdef HAVE_LIMITS_H
8839 #include <limits.h>
8840 #endif
8841 #ifdef CHAR_BIT
8842 found
8843 #endif
8844 _ACEOF
8845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8846 $EGREP "found" >/dev/null 2>&1; then :
8847 gcc_cv_decl_char_bit=yes
8848 else
8849 gcc_cv_decl_char_bit=no
8850 fi
8851 rm -f conftest*
8852
8853
8854 fi
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8856 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8857 if test $gcc_cv_decl_char_bit = no; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8859 $as_echo_n "checking number of bits in a byte... " >&6; }
8860 if test "${gcc_cv_c_nbby+set}" = set; then :
8861 $as_echo_n "(cached) " >&6
8862 else
8863 i=8
8864 gcc_cv_c_nbby=
8865 while test $i -lt 65; do
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8868
8869 int
8870 main ()
8871 {
8872 switch(0) {
8873 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8874 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8875 ; }
8876 ;
8877 return 0;
8878 }
8879 _ACEOF
8880 if ac_fn_cxx_try_compile "$LINENO"; then :
8881 gcc_cv_c_nbby=$i; break
8882 fi
8883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884 i=`expr $i + 1`
8885 done
8886 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8887
8888 fi
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8890 $as_echo "$gcc_cv_c_nbby" >&6; }
8891 if test $gcc_cv_c_nbby = failed; then
8892 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8893 else
8894
8895 cat >>confdefs.h <<_ACEOF
8896 #define CHAR_BIT $gcc_cv_c_nbby
8897 _ACEOF
8898
8899 fi
8900 fi
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8902 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8903 if test "${ac_cv_c_bigendian+set}" = set; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 ac_cv_c_bigendian=unknown
8907 # See if we're dealing with a universal compiler.
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8910 #ifndef __APPLE_CC__
8911 not a universal capable compiler
8912 #endif
8913 typedef int dummy;
8914
8915 _ACEOF
8916 if ac_fn_cxx_try_compile "$LINENO"; then :
8917
8918 # Check for potential -arch flags. It is not universal unless
8919 # there are at least two -arch flags with different values.
8920 ac_arch=
8921 ac_prev=
8922 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8923 if test -n "$ac_prev"; then
8924 case $ac_word in
8925 i?86 | x86_64 | ppc | ppc64)
8926 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8927 ac_arch=$ac_word
8928 else
8929 ac_cv_c_bigendian=universal
8930 break
8931 fi
8932 ;;
8933 esac
8934 ac_prev=
8935 elif test "x$ac_word" = "x-arch"; then
8936 ac_prev=arch
8937 fi
8938 done
8939 fi
8940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8941 if test $ac_cv_c_bigendian = unknown; then
8942 # See if sys/param.h defines the BYTE_ORDER macro.
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945 #include <sys/types.h>
8946 #include <sys/param.h>
8947
8948 int
8949 main ()
8950 {
8951 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8952 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8953 && LITTLE_ENDIAN)
8954 bogus endian macros
8955 #endif
8956
8957 ;
8958 return 0;
8959 }
8960 _ACEOF
8961 if ac_fn_cxx_try_compile "$LINENO"; then :
8962 # It does; now see whether it defined to BIG_ENDIAN or not.
8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8965 #include <sys/types.h>
8966 #include <sys/param.h>
8967
8968 int
8969 main ()
8970 {
8971 #if BYTE_ORDER != BIG_ENDIAN
8972 not big endian
8973 #endif
8974
8975 ;
8976 return 0;
8977 }
8978 _ACEOF
8979 if ac_fn_cxx_try_compile "$LINENO"; then :
8980 ac_cv_c_bigendian=yes
8981 else
8982 ac_cv_c_bigendian=no
8983 fi
8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 fi
8986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8987 fi
8988 if test $ac_cv_c_bigendian = unknown; then
8989 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
8992 #include <limits.h>
8993
8994 int
8995 main ()
8996 {
8997 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8998 bogus endian macros
8999 #endif
9000
9001 ;
9002 return 0;
9003 }
9004 _ACEOF
9005 if ac_fn_cxx_try_compile "$LINENO"; then :
9006 # It does; now see whether it defined to _BIG_ENDIAN or not.
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9009 #include <limits.h>
9010
9011 int
9012 main ()
9013 {
9014 #ifndef _BIG_ENDIAN
9015 not big endian
9016 #endif
9017
9018 ;
9019 return 0;
9020 }
9021 _ACEOF
9022 if ac_fn_cxx_try_compile "$LINENO"; then :
9023 ac_cv_c_bigendian=yes
9024 else
9025 ac_cv_c_bigendian=no
9026 fi
9027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9028 fi
9029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9030 fi
9031 if test $ac_cv_c_bigendian = unknown; then
9032 # Compile a test program.
9033 if test "$cross_compiling" = yes; then :
9034 # Try to guess by grepping values from an object file.
9035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036 /* end confdefs.h. */
9037 short int ascii_mm[] =
9038 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9039 short int ascii_ii[] =
9040 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9041 int use_ascii (int i) {
9042 return ascii_mm[i] + ascii_ii[i];
9043 }
9044 short int ebcdic_ii[] =
9045 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9046 short int ebcdic_mm[] =
9047 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9048 int use_ebcdic (int i) {
9049 return ebcdic_mm[i] + ebcdic_ii[i];
9050 }
9051 extern int foo;
9052
9053 int
9054 main ()
9055 {
9056 return use_ascii (foo) == use_ebcdic (foo);
9057 ;
9058 return 0;
9059 }
9060 _ACEOF
9061 if ac_fn_cxx_try_compile "$LINENO"; then :
9062 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9063 ac_cv_c_bigendian=yes
9064 fi
9065 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9066 if test "$ac_cv_c_bigendian" = unknown; then
9067 ac_cv_c_bigendian=no
9068 else
9069 # finding both strings is unlikely to happen, but who knows?
9070 ac_cv_c_bigendian=unknown
9071 fi
9072 fi
9073 fi
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9075 else
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078 $ac_includes_default
9079 int
9080 main ()
9081 {
9082
9083 /* Are we little or big endian? From Harbison&Steele. */
9084 union
9085 {
9086 long int l;
9087 char c[sizeof (long int)];
9088 } u;
9089 u.l = 1;
9090 return u.c[sizeof (long int) - 1] == 1;
9091
9092 ;
9093 return 0;
9094 }
9095 _ACEOF
9096 if ac_fn_cxx_try_run "$LINENO"; then :
9097 ac_cv_c_bigendian=no
9098 else
9099 ac_cv_c_bigendian=yes
9100 fi
9101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9102 conftest.$ac_objext conftest.beam conftest.$ac_ext
9103 fi
9104
9105 fi
9106 fi
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9108 $as_echo "$ac_cv_c_bigendian" >&6; }
9109 case $ac_cv_c_bigendian in #(
9110 yes)
9111 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9112 ;; #(
9113 no)
9114 ;; #(
9115 universal)
9116
9117 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9118
9119 ;; #(
9120 *)
9121 as_fn_error "unknown endianness
9122 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9123 esac
9124
9125
9126 # ----------------------
9127 # Checks for C++ headers
9128 # ----------------------
9129
9130 ac_ext=cpp
9131 ac_cpp='$CXXCPP $CPPFLAGS'
9132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9136 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9137 if test -z "$CXXCPP"; then
9138 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 # Double quotes because CXXCPP needs to be expanded
9142 for CXXCPP in "$CXX -E" "/lib/cpp"
9143 do
9144 ac_preproc_ok=false
9145 for ac_cxx_preproc_warn_flag in '' yes
9146 do
9147 # Use a header file that comes with gcc, so configuring glibc
9148 # with a fresh cross-compiler works.
9149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9150 # <limits.h> exists even on freestanding compilers.
9151 # On the NeXT, cc -E runs the code through the compiler's parser,
9152 # not just through cpp. "Syntax error" is here to catch this case.
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 #ifdef __STDC__
9156 # include <limits.h>
9157 #else
9158 # include <assert.h>
9159 #endif
9160 Syntax error
9161 _ACEOF
9162 if ac_fn_cxx_try_cpp "$LINENO"; then :
9163
9164 else
9165 # Broken: fails on valid input.
9166 continue
9167 fi
9168 rm -f conftest.err conftest.$ac_ext
9169
9170 # OK, works on sane cases. Now check whether nonexistent headers
9171 # can be detected and how.
9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174 #include <ac_nonexistent.h>
9175 _ACEOF
9176 if ac_fn_cxx_try_cpp "$LINENO"; then :
9177 # Broken: success on invalid input.
9178 continue
9179 else
9180 # Passes both tests.
9181 ac_preproc_ok=:
9182 break
9183 fi
9184 rm -f conftest.err conftest.$ac_ext
9185
9186 done
9187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9188 rm -f conftest.err conftest.$ac_ext
9189 if $ac_preproc_ok; then :
9190 break
9191 fi
9192
9193 done
9194 ac_cv_prog_CXXCPP=$CXXCPP
9195
9196 fi
9197 CXXCPP=$ac_cv_prog_CXXCPP
9198 else
9199 ac_cv_prog_CXXCPP=$CXXCPP
9200 fi
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9202 $as_echo "$CXXCPP" >&6; }
9203 ac_preproc_ok=false
9204 for ac_cxx_preproc_warn_flag in '' yes
9205 do
9206 # Use a header file that comes with gcc, so configuring glibc
9207 # with a fresh cross-compiler works.
9208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9209 # <limits.h> exists even on freestanding compilers.
9210 # On the NeXT, cc -E runs the code through the compiler's parser,
9211 # not just through cpp. "Syntax error" is here to catch this case.
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214 #ifdef __STDC__
9215 # include <limits.h>
9216 #else
9217 # include <assert.h>
9218 #endif
9219 Syntax error
9220 _ACEOF
9221 if ac_fn_cxx_try_cpp "$LINENO"; then :
9222
9223 else
9224 # Broken: fails on valid input.
9225 continue
9226 fi
9227 rm -f conftest.err conftest.$ac_ext
9228
9229 # OK, works on sane cases. Now check whether nonexistent headers
9230 # can be detected and how.
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #include <ac_nonexistent.h>
9234 _ACEOF
9235 if ac_fn_cxx_try_cpp "$LINENO"; then :
9236 # Broken: success on invalid input.
9237 continue
9238 else
9239 # Passes both tests.
9240 ac_preproc_ok=:
9241 break
9242 fi
9243 rm -f conftest.err conftest.$ac_ext
9244
9245 done
9246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9247 rm -f conftest.err conftest.$ac_ext
9248 if $ac_preproc_ok; then :
9249
9250 else
9251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9254 See \`config.log' for more details." >&5
9255 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9256 See \`config.log' for more details." >&2;}; }
9257 fi
9258
9259 ac_ext=cpp
9260 ac_cpp='$CXXCPP $CPPFLAGS'
9261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9264
9265
9266 for ac_header in unordered_map
9267 do :
9268 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9269 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9270 cat >>confdefs.h <<_ACEOF
9271 #define HAVE_UNORDERED_MAP 1
9272 _ACEOF
9273
9274 fi
9275 done
9276
9277 for ac_header in tr1/unordered_map
9278 do :
9279 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9280 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9281 cat >>confdefs.h <<_ACEOF
9282 #define HAVE_TR1_UNORDERED_MAP 1
9283 _ACEOF
9284
9285 fi
9286 done
9287
9288 for ac_header in ext/hash_map
9289 do :
9290 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9291 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9292 cat >>confdefs.h <<_ACEOF
9293 #define HAVE_EXT_HASH_MAP 1
9294 _ACEOF
9295
9296 fi
9297 done
9298
9299
9300 # --------
9301 # Dependency checking.
9302 # --------
9303
9304 rm -rf .tst 2>/dev/null
9305 mkdir .tst 2>/dev/null
9306 if test -d .tst; then
9307 am__leading_dot=.
9308 else
9309 am__leading_dot=_
9310 fi
9311 rmdir .tst 2>/dev/null
9312
9313 DEPDIR="${am__leading_dot}deps"
9314
9315 ac_config_commands="$ac_config_commands depdir"
9316
9317
9318 ac_config_commands="$ac_config_commands gccdepdir"
9319
9320
9321 depcc="$CXX" am_compiler_list=
9322
9323 am_depcomp=$ac_aux_dir/depcomp
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9325 $as_echo_n "checking dependency style of $depcc... " >&6; }
9326 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9327 $as_echo_n "(cached) " >&6
9328 else
9329 if test -f "$am_depcomp"; then
9330 # We make a subdir and do the tests there. Otherwise we can end up
9331 # making bogus files that we don't know about and never remove. For
9332 # instance it was reported that on HP-UX the gcc test will end up
9333 # making a dummy file named `D' -- because `-MD' means `put the output
9334 # in D'.
9335 mkdir conftest.dir
9336 # Copy depcomp to subdir because otherwise we won't find it if we're
9337 # using a relative directory.
9338 cp "$am_depcomp" conftest.dir
9339 cd conftest.dir
9340 # We will build objects and dependencies in a subdirectory because
9341 # it helps to detect inapplicable dependency modes. For instance
9342 # both Tru64's cc and ICC support -MD to output dependencies as a
9343 # side effect of compilation, but ICC will put the dependencies in
9344 # the current directory while Tru64 will put them in the object
9345 # directory.
9346 mkdir sub
9347
9348 am_cv_CXX_dependencies_compiler_type=none
9349 if test "$am_compiler_list" = ""; then
9350 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9351 fi
9352 for depmode in $am_compiler_list; do
9353 if test $depmode = none; then break; fi
9354
9355 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9356 # Setup a source with many dependencies, because some compilers
9357 # like to wrap large dependency lists on column 80 (with \), and
9358 # we should not choose a depcomp mode which is confused by this.
9359 #
9360 # We need to recreate these files for each test, as the compiler may
9361 # overwrite some of them when testing with obscure command lines.
9362 # This happens at least with the AIX C compiler.
9363 : > sub/conftest.c
9364 for i in 1 2 3 4 5 6; do
9365 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9366 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9367 # Solaris 8's {/usr,}/bin/sh.
9368 touch sub/conftst$i.h
9369 done
9370 echo "include sub/conftest.Po" > confmf
9371
9372 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9373 # mode. It turns out that the SunPro C++ compiler does not properly
9374 # handle `-M -o', and we need to detect this.
9375 depcmd="depmode=$depmode \
9376 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9377 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9378 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9379 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9380 if env $depcmd > conftest.err 2>&1 &&
9381 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9382 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9383 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9384 # icc doesn't choke on unknown options, it will just issue warnings
9385 # or remarks (even with -Werror). So we grep stderr for any message
9386 # that says an option was ignored or not supported.
9387 # When given -MP, icc 7.0 and 7.1 complain thusly:
9388 # icc: Command line warning: ignoring option '-M'; no argument required
9389 # The diagnosis changed in icc 8.0:
9390 # icc: Command line remark: option '-MP' not supported
9391 if (grep 'ignoring option' conftest.err ||
9392 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9393 am_cv_CXX_dependencies_compiler_type=$depmode
9394 $as_echo "$as_me:$LINENO: success" >&5
9395 break
9396 fi
9397 fi
9398 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9399 sed -e 's/^/| /' < conftest.err >&5
9400 done
9401
9402 cd ..
9403 rm -rf conftest.dir
9404 else
9405 am_cv_CXX_dependencies_compiler_type=none
9406 fi
9407
9408 fi
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9410 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9411 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9412 then as_fn_error "no usable dependency style found" "$LINENO" 5
9413 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9414
9415 fi
9416
9417
9418 # --------
9419 # UNSORTED
9420 # --------
9421
9422
9423 # These libraries may be used by collect2.
9424 # We may need a special search path to get them linked.
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9426 $as_echo_n "checking for collect2 libraries... " >&6; }
9427 if test "${gcc_cv_collect2_libs+set}" = set; then :
9428 $as_echo_n "(cached) " >&6
9429 else
9430 save_LIBS="$LIBS"
9431 for libs in '' -lld -lmld \
9432 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9433 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9434 do
9435 LIBS="$libs"
9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9438
9439 /* Override any GCC internal prototype to avoid an error.
9440 Use char because int might match the return type of a GCC
9441 builtin and then its argument prototype would still apply. */
9442 #ifdef __cplusplus
9443 extern "C"
9444 #endif
9445 char ldopen ();
9446 int
9447 main ()
9448 {
9449 return ldopen ();
9450 ;
9451 return 0;
9452 }
9453 _ACEOF
9454 if ac_fn_cxx_try_link "$LINENO"; then :
9455 gcc_cv_collect2_libs="$libs"; break
9456 fi
9457 rm -f core conftest.err conftest.$ac_objext \
9458 conftest$ac_exeext conftest.$ac_ext
9459 done
9460 LIBS="$save_LIBS"
9461 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9462 fi
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9464 $as_echo "$gcc_cv_collect2_libs" >&6; }
9465 case $gcc_cv_collect2_libs in
9466 "none required") ;;
9467 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9468 esac
9469
9470
9471 # When building Ada code on Alpha, we need exc_resume which is usually in
9472 # -lexc. So test for it.
9473 save_LIBS="$LIBS"
9474 LIBS=
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9476 $as_echo_n "checking for library containing exc_resume... " >&6; }
9477 if test "${ac_cv_search_exc_resume+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 ac_func_search_save_LIBS=$LIBS
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9483
9484 /* Override any GCC internal prototype to avoid an error.
9485 Use char because int might match the return type of a GCC
9486 builtin and then its argument prototype would still apply. */
9487 #ifdef __cplusplus
9488 extern "C"
9489 #endif
9490 char exc_resume ();
9491 int
9492 main ()
9493 {
9494 return exc_resume ();
9495 ;
9496 return 0;
9497 }
9498 _ACEOF
9499 for ac_lib in '' exc; do
9500 if test -z "$ac_lib"; then
9501 ac_res="none required"
9502 else
9503 ac_res=-l$ac_lib
9504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9505 fi
9506 if ac_fn_cxx_try_link "$LINENO"; then :
9507 ac_cv_search_exc_resume=$ac_res
9508 fi
9509 rm -f core conftest.err conftest.$ac_objext \
9510 conftest$ac_exeext
9511 if test "${ac_cv_search_exc_resume+set}" = set; then :
9512 break
9513 fi
9514 done
9515 if test "${ac_cv_search_exc_resume+set}" = set; then :
9516
9517 else
9518 ac_cv_search_exc_resume=no
9519 fi
9520 rm conftest.$ac_ext
9521 LIBS=$ac_func_search_save_LIBS
9522 fi
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9524 $as_echo "$ac_cv_search_exc_resume" >&6; }
9525 ac_res=$ac_cv_search_exc_resume
9526 if test "$ac_res" != no; then :
9527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9528
9529 fi
9530
9531 GNAT_LIBEXC="$LIBS"
9532 LIBS="$save_LIBS"
9533
9534
9535 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9536 save_LIBS="$LIBS"
9537 LIBS=
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9539 $as_echo_n "checking for library containing kstat_open... " >&6; }
9540 if test "${ac_cv_search_kstat_open+set}" = set; then :
9541 $as_echo_n "(cached) " >&6
9542 else
9543 ac_func_search_save_LIBS=$LIBS
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9546
9547 /* Override any GCC internal prototype to avoid an error.
9548 Use char because int might match the return type of a GCC
9549 builtin and then its argument prototype would still apply. */
9550 #ifdef __cplusplus
9551 extern "C"
9552 #endif
9553 char kstat_open ();
9554 int
9555 main ()
9556 {
9557 return kstat_open ();
9558 ;
9559 return 0;
9560 }
9561 _ACEOF
9562 for ac_lib in '' kstat; do
9563 if test -z "$ac_lib"; then
9564 ac_res="none required"
9565 else
9566 ac_res=-l$ac_lib
9567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9568 fi
9569 if ac_fn_cxx_try_link "$LINENO"; then :
9570 ac_cv_search_kstat_open=$ac_res
9571 fi
9572 rm -f core conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext
9574 if test "${ac_cv_search_kstat_open+set}" = set; then :
9575 break
9576 fi
9577 done
9578 if test "${ac_cv_search_kstat_open+set}" = set; then :
9579
9580 else
9581 ac_cv_search_kstat_open=no
9582 fi
9583 rm conftest.$ac_ext
9584 LIBS=$ac_func_search_save_LIBS
9585 fi
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9587 $as_echo "$ac_cv_search_kstat_open" >&6; }
9588 ac_res=$ac_cv_search_kstat_open
9589 if test "$ac_res" != no; then :
9590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9591
9592 fi
9593
9594 EXTRA_GCC_LIBS="$LIBS"
9595 LIBS="$save_LIBS"
9596
9597
9598 # Some systems put ldexp and frexp in libm instead of libc; assume
9599 # they're both in the same place. jcf-dump needs them.
9600 save_LIBS="$LIBS"
9601 LIBS=
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9603 $as_echo_n "checking for library containing ldexp... " >&6; }
9604 if test "${ac_cv_search_ldexp+set}" = set; then :
9605 $as_echo_n "(cached) " >&6
9606 else
9607 ac_func_search_save_LIBS=$LIBS
9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h. */
9610
9611 /* Override any GCC internal prototype to avoid an error.
9612 Use char because int might match the return type of a GCC
9613 builtin and then its argument prototype would still apply. */
9614 #ifdef __cplusplus
9615 extern "C"
9616 #endif
9617 char ldexp ();
9618 int
9619 main ()
9620 {
9621 return ldexp ();
9622 ;
9623 return 0;
9624 }
9625 _ACEOF
9626 for ac_lib in '' m; do
9627 if test -z "$ac_lib"; then
9628 ac_res="none required"
9629 else
9630 ac_res=-l$ac_lib
9631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9632 fi
9633 if ac_fn_cxx_try_link "$LINENO"; then :
9634 ac_cv_search_ldexp=$ac_res
9635 fi
9636 rm -f core conftest.err conftest.$ac_objext \
9637 conftest$ac_exeext
9638 if test "${ac_cv_search_ldexp+set}" = set; then :
9639 break
9640 fi
9641 done
9642 if test "${ac_cv_search_ldexp+set}" = set; then :
9643
9644 else
9645 ac_cv_search_ldexp=no
9646 fi
9647 rm conftest.$ac_ext
9648 LIBS=$ac_func_search_save_LIBS
9649 fi
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9651 $as_echo "$ac_cv_search_ldexp" >&6; }
9652 ac_res=$ac_cv_search_ldexp
9653 if test "$ac_res" != no; then :
9654 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9655
9656 fi
9657
9658 LDEXP_LIB="$LIBS"
9659 LIBS="$save_LIBS"
9660
9661
9662 # Use <inttypes.h> only if it exists,
9663 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9664 # PRId64
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9666 $as_echo_n "checking for inttypes.h... " >&6; }
9667 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9672 #define __STDC_FORMAT_MACROS
9673 #include <sys/types.h>
9674 #include <inttypes.h>
9675 int
9676 main ()
9677 {
9678 intmax_t i = -1;
9679 #ifndef PRId64
9680 choke me
9681 #endif
9682 ;
9683 return 0;
9684 }
9685 _ACEOF
9686 if ac_fn_cxx_try_compile "$LINENO"; then :
9687 gcc_cv_header_inttypes_h=yes
9688 else
9689 gcc_cv_header_inttypes_h=no
9690 fi
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9692 fi
9693
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9695 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9696 if test $gcc_cv_header_inttypes_h = yes; then
9697
9698 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9699
9700 fi
9701
9702
9703
9704 for ac_func in times clock kill getrlimit setrlimit atoq \
9705 popen sysconf strsignal getrusage nl_langinfo \
9706 gettimeofday mbstowcs wcswidth mmap setlocale \
9707 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
9708 do :
9709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9710 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9711 eval as_val=\$$as_ac_var
9712 if test "x$as_val" = x""yes; then :
9713 cat >>confdefs.h <<_ACEOF
9714 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9715 _ACEOF
9716
9717 fi
9718 done
9719
9720
9721 if test x$ac_cv_func_mbstowcs = xyes; then
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9723 $as_echo_n "checking whether mbstowcs works... " >&6; }
9724 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9725 $as_echo_n "(cached) " >&6
9726 else
9727 if test "$cross_compiling" = yes; then :
9728 gcc_cv_func_mbstowcs_works=yes
9729 else
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9732 #include <stdlib.h>
9733 int main()
9734 {
9735 mbstowcs(0, "", 0);
9736 return 0;
9737 }
9738 _ACEOF
9739 if ac_fn_cxx_try_run "$LINENO"; then :
9740 gcc_cv_func_mbstowcs_works=yes
9741 else
9742 gcc_cv_func_mbstowcs_works=no
9743 fi
9744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9745 conftest.$ac_objext conftest.beam conftest.$ac_ext
9746 fi
9747
9748 fi
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9750 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9751 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9752
9753 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9754
9755 fi
9756 fi
9757
9758 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9759 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9760
9761 else
9762
9763 cat >>confdefs.h <<_ACEOF
9764 #define ssize_t int
9765 _ACEOF
9766
9767 fi
9768
9769 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9770 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9771
9772 else
9773
9774 cat >>confdefs.h <<_ACEOF
9775 #define caddr_t char *
9776 _ACEOF
9777
9778 fi
9779
9780
9781
9782 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9783 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9784 gcc_header_sys_mman_h=yes
9785 else
9786 gcc_header_sys_mman_h=no
9787 fi
9788
9789 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9790 if test "x$ac_cv_func_mmap" = x""yes; then :
9791 gcc_func_mmap=yes
9792 else
9793 gcc_func_mmap=no
9794 fi
9795
9796 if test "$gcc_header_sys_mman_h" != yes \
9797 || test "$gcc_func_mmap" != yes; then
9798 gcc_cv_func_mmap_file=no
9799 gcc_cv_func_mmap_dev_zero=no
9800 gcc_cv_func_mmap_anon=no
9801 else
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9803 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9804 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9805 $as_echo_n "(cached) " >&6
9806 else
9807 # Add a system to this blacklist if
9808 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9809 # memory area containing the same data that you'd get if you applied
9810 # read() to the same fd. The only system known to have a problem here
9811 # is VMS, where text files have record structure.
9812 case "$host_os" in
9813 *vms* | ultrix*)
9814 gcc_cv_func_mmap_file=no ;;
9815 *)
9816 gcc_cv_func_mmap_file=yes;;
9817 esac
9818 fi
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9820 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9822 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9823 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 # Add a system to this blacklist if it has mmap() but /dev/zero
9827 # does not exist, or if mmapping /dev/zero does not give anonymous
9828 # zeroed pages with both the following properties:
9829 # 1. If you map N consecutive pages in with one call, and then
9830 # unmap any subset of those pages, the pages that were not
9831 # explicitly unmapped remain accessible.
9832 # 2. If you map two adjacent blocks of memory and then unmap them
9833 # both at once, they must both go away.
9834 # Systems known to be in this category are Windows (all variants),
9835 # VMS, and Darwin.
9836 case "$host_os" in
9837 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9838 gcc_cv_func_mmap_dev_zero=no ;;
9839 *)
9840 gcc_cv_func_mmap_dev_zero=yes;;
9841 esac
9842 fi
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9844 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9845
9846 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9848 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9849 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9850 $as_echo_n "(cached) " >&6
9851 else
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9854 #include <sys/types.h>
9855 #include <sys/mman.h>
9856 #include <unistd.h>
9857
9858 #ifndef MAP_ANONYMOUS
9859 #define MAP_ANONYMOUS MAP_ANON
9860 #endif
9861
9862 int
9863 main ()
9864 {
9865 int n = MAP_ANONYMOUS;
9866 ;
9867 return 0;
9868 }
9869 _ACEOF
9870 if ac_fn_cxx_try_compile "$LINENO"; then :
9871 gcc_cv_decl_map_anon=yes
9872 else
9873 gcc_cv_decl_map_anon=no
9874 fi
9875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9876 fi
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9878 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9879
9880 if test $gcc_cv_decl_map_anon = no; then
9881 gcc_cv_func_mmap_anon=no
9882 else
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9884 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9885 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9889 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9890 # doesn't give anonymous zeroed pages with the same properties listed
9891 # above for use of /dev/zero.
9892 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9893 case "$host_os" in
9894 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9895 gcc_cv_func_mmap_anon=no ;;
9896 *)
9897 gcc_cv_func_mmap_anon=yes;;
9898 esac
9899 fi
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9901 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9902 fi
9903 fi
9904
9905 if test $gcc_cv_func_mmap_file = yes; then
9906
9907 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9908
9909 fi
9910 if test $gcc_cv_func_mmap_dev_zero = yes; then
9911
9912 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9913
9914 fi
9915 if test $gcc_cv_func_mmap_anon = yes; then
9916
9917 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9918
9919 fi
9920
9921
9922 case "${host}" in
9923 *-*-*vms*)
9924 # Under VMS, vfork works very differently than on Unix. The standard test
9925 # won't work, and it isn't easily adaptable. It makes more sense to
9926 # just force it.
9927 ac_cv_func_vfork_works=yes
9928 ;;
9929 esac
9930 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9931 if test "x$ac_cv_type_pid_t" = x""yes; then :
9932
9933 else
9934
9935 cat >>confdefs.h <<_ACEOF
9936 #define pid_t int
9937 _ACEOF
9938
9939 fi
9940
9941 for ac_header in vfork.h
9942 do :
9943 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9944 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9945 cat >>confdefs.h <<_ACEOF
9946 #define HAVE_VFORK_H 1
9947 _ACEOF
9948
9949 fi
9950 done
9951
9952 for ac_func in fork vfork
9953 do :
9954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9955 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9956 eval as_val=\$$as_ac_var
9957 if test "x$as_val" = x""yes; then :
9958 cat >>confdefs.h <<_ACEOF
9959 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9960 _ACEOF
9961
9962 fi
9963 done
9964
9965 if test "x$ac_cv_func_fork" = xyes; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9967 $as_echo_n "checking for working fork... " >&6; }
9968 if test "${ac_cv_func_fork_works+set}" = set; then :
9969 $as_echo_n "(cached) " >&6
9970 else
9971 if test "$cross_compiling" = yes; then :
9972 ac_cv_func_fork_works=cross
9973 else
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976 $ac_includes_default
9977 int
9978 main ()
9979 {
9980
9981 /* By Ruediger Kuhlmann. */
9982 return fork () < 0;
9983
9984 ;
9985 return 0;
9986 }
9987 _ACEOF
9988 if ac_fn_cxx_try_run "$LINENO"; then :
9989 ac_cv_func_fork_works=yes
9990 else
9991 ac_cv_func_fork_works=no
9992 fi
9993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9994 conftest.$ac_objext conftest.beam conftest.$ac_ext
9995 fi
9996
9997 fi
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9999 $as_echo "$ac_cv_func_fork_works" >&6; }
10000
10001 else
10002 ac_cv_func_fork_works=$ac_cv_func_fork
10003 fi
10004 if test "x$ac_cv_func_fork_works" = xcross; then
10005 case $host in
10006 *-*-amigaos* | *-*-msdosdjgpp*)
10007 # Override, as these systems have only a dummy fork() stub
10008 ac_cv_func_fork_works=no
10009 ;;
10010 *)
10011 ac_cv_func_fork_works=yes
10012 ;;
10013 esac
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10015 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10016 fi
10017 ac_cv_func_vfork_works=$ac_cv_func_vfork
10018 if test "x$ac_cv_func_vfork" = xyes; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10020 $as_echo_n "checking for working vfork... " >&6; }
10021 if test "${ac_cv_func_vfork_works+set}" = set; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 if test "$cross_compiling" = yes; then :
10025 ac_cv_func_vfork_works=cross
10026 else
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10029 /* Thanks to Paul Eggert for this test. */
10030 $ac_includes_default
10031 #include <sys/wait.h>
10032 #ifdef HAVE_VFORK_H
10033 # include <vfork.h>
10034 #endif
10035 /* On some sparc systems, changes by the child to local and incoming
10036 argument registers are propagated back to the parent. The compiler
10037 is told about this with #include <vfork.h>, but some compilers
10038 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10039 static variable whose address is put into a register that is
10040 clobbered by the vfork. */
10041 static void
10042 #ifdef __cplusplus
10043 sparc_address_test (int arg)
10044 # else
10045 sparc_address_test (arg) int arg;
10046 #endif
10047 {
10048 static pid_t child;
10049 if (!child) {
10050 child = vfork ();
10051 if (child < 0) {
10052 perror ("vfork");
10053 _exit(2);
10054 }
10055 if (!child) {
10056 arg = getpid();
10057 write(-1, "", 0);
10058 _exit (arg);
10059 }
10060 }
10061 }
10062
10063 int
10064 main ()
10065 {
10066 pid_t parent = getpid ();
10067 pid_t child;
10068
10069 sparc_address_test (0);
10070
10071 child = vfork ();
10072
10073 if (child == 0) {
10074 /* Here is another test for sparc vfork register problems. This
10075 test uses lots of local variables, at least as many local
10076 variables as main has allocated so far including compiler
10077 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10078 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10079 reuse the register of parent for one of the local variables,
10080 since it will think that parent can't possibly be used any more
10081 in this routine. Assigning to the local variable will thus
10082 munge parent in the parent process. */
10083 pid_t
10084 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10085 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10086 /* Convince the compiler that p..p7 are live; otherwise, it might
10087 use the same hardware register for all 8 local variables. */
10088 if (p != p1 || p != p2 || p != p3 || p != p4
10089 || p != p5 || p != p6 || p != p7)
10090 _exit(1);
10091
10092 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10093 from child file descriptors. If the child closes a descriptor
10094 before it execs or exits, this munges the parent's descriptor
10095 as well. Test for this by closing stdout in the child. */
10096 _exit(close(fileno(stdout)) != 0);
10097 } else {
10098 int status;
10099 struct stat st;
10100
10101 while (wait(&status) != child)
10102 ;
10103 return (
10104 /* Was there some problem with vforking? */
10105 child < 0
10106
10107 /* Did the child fail? (This shouldn't happen.) */
10108 || status
10109
10110 /* Did the vfork/compiler bug occur? */
10111 || parent != getpid()
10112
10113 /* Did the file descriptor bug occur? */
10114 || fstat(fileno(stdout), &st) != 0
10115 );
10116 }
10117 }
10118 _ACEOF
10119 if ac_fn_cxx_try_run "$LINENO"; then :
10120 ac_cv_func_vfork_works=yes
10121 else
10122 ac_cv_func_vfork_works=no
10123 fi
10124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10125 conftest.$ac_objext conftest.beam conftest.$ac_ext
10126 fi
10127
10128 fi
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10130 $as_echo "$ac_cv_func_vfork_works" >&6; }
10131
10132 fi;
10133 if test "x$ac_cv_func_fork_works" = xcross; then
10134 ac_cv_func_vfork_works=$ac_cv_func_vfork
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10136 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10137 fi
10138
10139 if test "x$ac_cv_func_vfork_works" = xyes; then
10140
10141 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10142
10143 else
10144
10145 $as_echo "#define vfork fork" >>confdefs.h
10146
10147 fi
10148 if test "x$ac_cv_func_fork_works" = xyes; then
10149
10150 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10151
10152 fi
10153
10154
10155
10156 if test "X$prefix" = "XNONE"; then
10157 acl_final_prefix="$ac_default_prefix"
10158 else
10159 acl_final_prefix="$prefix"
10160 fi
10161 if test "X$exec_prefix" = "XNONE"; then
10162 acl_final_exec_prefix='${prefix}'
10163 else
10164 acl_final_exec_prefix="$exec_prefix"
10165 fi
10166 acl_save_prefix="$prefix"
10167 prefix="$acl_final_prefix"
10168 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10169 prefix="$acl_save_prefix"
10170
10171
10172 # Check whether --with-gnu-ld was given.
10173 if test "${with_gnu_ld+set}" = set; then :
10174 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10175 else
10176 with_gnu_ld=no
10177 fi
10178
10179 # Prepare PATH_SEPARATOR.
10180 # The user is always right.
10181 if test "${PATH_SEPARATOR+set}" != set; then
10182 echo "#! /bin/sh" >conf$$.sh
10183 echo "exit 0" >>conf$$.sh
10184 chmod +x conf$$.sh
10185 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10186 PATH_SEPARATOR=';'
10187 else
10188 PATH_SEPARATOR=:
10189 fi
10190 rm -f conf$$.sh
10191 fi
10192 ac_prog=ld
10193 if test "$GCC" = yes; then
10194 # Check if gcc -print-prog-name=ld gives a path.
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10196 $as_echo_n "checking for ld used by GCC... " >&6; }
10197 case $host in
10198 *-*-mingw*)
10199 # gcc leaves a trailing carriage return which upsets mingw
10200 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10201 *)
10202 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10203 esac
10204 case $ac_prog in
10205 # Accept absolute paths.
10206 [\\/]* | [A-Za-z]:[\\/]*)
10207 re_direlt='/[^/][^/]*/\.\./'
10208 # Canonicalize the path of ld
10209 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10210 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10211 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10212 done
10213 test -z "$LD" && LD="$ac_prog"
10214 ;;
10215 "")
10216 # If it fails, then pretend we aren't using GCC.
10217 ac_prog=ld
10218 ;;
10219 *)
10220 # If it is relative, then search for the first ld in PATH.
10221 with_gnu_ld=unknown
10222 ;;
10223 esac
10224 elif test "$with_gnu_ld" = yes; then
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10226 $as_echo_n "checking for GNU ld... " >&6; }
10227 else
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10229 $as_echo_n "checking for non-GNU ld... " >&6; }
10230 fi
10231 if test "${acl_cv_path_LD+set}" = set; then :
10232 $as_echo_n "(cached) " >&6
10233 else
10234 if test -z "$LD"; then
10235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10236 for ac_dir in $PATH; do
10237 test -z "$ac_dir" && ac_dir=.
10238 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10239 acl_cv_path_LD="$ac_dir/$ac_prog"
10240 # Check to see if the program is GNU ld. I'd rather use --version,
10241 # but apparently some GNU ld's only accept -v.
10242 # Break only if it was the GNU/non-GNU ld that we prefer.
10243 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10244 test "$with_gnu_ld" != no && break
10245 else
10246 test "$with_gnu_ld" != yes && break
10247 fi
10248 fi
10249 done
10250 IFS="$ac_save_ifs"
10251 else
10252 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10253 fi
10254 fi
10255
10256 LD="$acl_cv_path_LD"
10257 if test -n "$LD"; then
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10259 $as_echo "$LD" >&6; }
10260 else
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10262 $as_echo "no" >&6; }
10263 fi
10264 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10266 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10267 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10268 $as_echo_n "(cached) " >&6
10269 else
10270 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10271 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10272 acl_cv_prog_gnu_ld=yes
10273 else
10274 acl_cv_prog_gnu_ld=no
10275 fi
10276 fi
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10278 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10279 with_gnu_ld=$acl_cv_prog_gnu_ld
10280
10281
10282
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10284 $as_echo_n "checking for shared library run path origin... " >&6; }
10285 if test "${acl_cv_rpath+set}" = set; then :
10286 $as_echo_n "(cached) " >&6
10287 else
10288
10289 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10290 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10291 . ./conftest.sh
10292 rm -f ./conftest.sh
10293 acl_cv_rpath=done
10294
10295 fi
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10297 $as_echo "$acl_cv_rpath" >&6; }
10298 wl="$acl_cv_wl"
10299 libext="$acl_cv_libext"
10300 shlibext="$acl_cv_shlibext"
10301 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10302 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10303 hardcode_direct="$acl_cv_hardcode_direct"
10304 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10305 # Check whether --enable-rpath was given.
10306 if test "${enable_rpath+set}" = set; then :
10307 enableval=$enable_rpath; :
10308 else
10309 enable_rpath=yes
10310 fi
10311
10312
10313
10314
10315
10316
10317
10318
10319 use_additional=yes
10320
10321 acl_save_prefix="$prefix"
10322 prefix="$acl_final_prefix"
10323 acl_save_exec_prefix="$exec_prefix"
10324 exec_prefix="$acl_final_exec_prefix"
10325
10326 eval additional_includedir=\"$includedir\"
10327 eval additional_libdir=\"$libdir\"
10328
10329 exec_prefix="$acl_save_exec_prefix"
10330 prefix="$acl_save_prefix"
10331
10332
10333 # Check whether --with-libiconv-prefix was given.
10334 if test "${with_libiconv_prefix+set}" = set; then :
10335 withval=$with_libiconv_prefix;
10336 if test "X$withval" = "Xno"; then
10337 use_additional=no
10338 else
10339 if test "X$withval" = "X"; then
10340
10341 acl_save_prefix="$prefix"
10342 prefix="$acl_final_prefix"
10343 acl_save_exec_prefix="$exec_prefix"
10344 exec_prefix="$acl_final_exec_prefix"
10345
10346 eval additional_includedir=\"$includedir\"
10347 eval additional_libdir=\"$libdir\"
10348
10349 exec_prefix="$acl_save_exec_prefix"
10350 prefix="$acl_save_prefix"
10351
10352 else
10353 additional_includedir="$withval/include"
10354 additional_libdir="$withval/lib"
10355 fi
10356 fi
10357
10358 fi
10359
10360 LIBICONV=
10361 LTLIBICONV=
10362 INCICONV=
10363 rpathdirs=
10364 ltrpathdirs=
10365 names_already_handled=
10366 names_next_round='iconv '
10367 while test -n "$names_next_round"; do
10368 names_this_round="$names_next_round"
10369 names_next_round=
10370 for name in $names_this_round; do
10371 already_handled=
10372 for n in $names_already_handled; do
10373 if test "$n" = "$name"; then
10374 already_handled=yes
10375 break
10376 fi
10377 done
10378 if test -z "$already_handled"; then
10379 names_already_handled="$names_already_handled $name"
10380 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10381 eval value=\"\$HAVE_LIB$uppername\"
10382 if test -n "$value"; then
10383 if test "$value" = yes; then
10384 eval value=\"\$LIB$uppername\"
10385 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10386 eval value=\"\$LTLIB$uppername\"
10387 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10388 else
10389 :
10390 fi
10391 else
10392 found_dir=
10393 found_la=
10394 found_so=
10395 found_a=
10396 if test $use_additional = yes; then
10397 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10398 found_dir="$additional_libdir"
10399 found_so="$additional_libdir/lib$name.$shlibext"
10400 if test -f "$additional_libdir/lib$name.la"; then
10401 found_la="$additional_libdir/lib$name.la"
10402 fi
10403 else
10404 if test -f "$additional_libdir/lib$name.$libext"; then
10405 found_dir="$additional_libdir"
10406 found_a="$additional_libdir/lib$name.$libext"
10407 if test -f "$additional_libdir/lib$name.la"; then
10408 found_la="$additional_libdir/lib$name.la"
10409 fi
10410 fi
10411 fi
10412 fi
10413 if test "X$found_dir" = "X"; then
10414 for x in $LDFLAGS $LTLIBICONV; do
10415
10416 acl_save_prefix="$prefix"
10417 prefix="$acl_final_prefix"
10418 acl_save_exec_prefix="$exec_prefix"
10419 exec_prefix="$acl_final_exec_prefix"
10420 eval x=\"$x\"
10421 exec_prefix="$acl_save_exec_prefix"
10422 prefix="$acl_save_prefix"
10423
10424 case "$x" in
10425 -L*)
10426 dir=`echo "X$x" | sed -e 's/^X-L//'`
10427 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10428 found_dir="$dir"
10429 found_so="$dir/lib$name.$shlibext"
10430 if test -f "$dir/lib$name.la"; then
10431 found_la="$dir/lib$name.la"
10432 fi
10433 else
10434 if test -f "$dir/lib$name.$libext"; then
10435 found_dir="$dir"
10436 found_a="$dir/lib$name.$libext"
10437 if test -f "$dir/lib$name.la"; then
10438 found_la="$dir/lib$name.la"
10439 fi
10440 fi
10441 fi
10442 ;;
10443 esac
10444 if test "X$found_dir" != "X"; then
10445 break
10446 fi
10447 done
10448 fi
10449 if test "X$found_dir" != "X"; then
10450 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10451 if test "X$found_so" != "X"; then
10452 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10453 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10454 else
10455 haveit=
10456 for x in $ltrpathdirs; do
10457 if test "X$x" = "X$found_dir"; then
10458 haveit=yes
10459 break
10460 fi
10461 done
10462 if test -z "$haveit"; then
10463 ltrpathdirs="$ltrpathdirs $found_dir"
10464 fi
10465 if test "$hardcode_direct" = yes; then
10466 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10467 else
10468 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10469 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10470 haveit=
10471 for x in $rpathdirs; do
10472 if test "X$x" = "X$found_dir"; then
10473 haveit=yes
10474 break
10475 fi
10476 done
10477 if test -z "$haveit"; then
10478 rpathdirs="$rpathdirs $found_dir"
10479 fi
10480 else
10481 haveit=
10482 for x in $LDFLAGS $LIBICONV; do
10483
10484 acl_save_prefix="$prefix"
10485 prefix="$acl_final_prefix"
10486 acl_save_exec_prefix="$exec_prefix"
10487 exec_prefix="$acl_final_exec_prefix"
10488 eval x=\"$x\"
10489 exec_prefix="$acl_save_exec_prefix"
10490 prefix="$acl_save_prefix"
10491
10492 if test "X$x" = "X-L$found_dir"; then
10493 haveit=yes
10494 break
10495 fi
10496 done
10497 if test -z "$haveit"; then
10498 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10499 fi
10500 if test "$hardcode_minus_L" != no; then
10501 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10502 else
10503 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10504 fi
10505 fi
10506 fi
10507 fi
10508 else
10509 if test "X$found_a" != "X"; then
10510 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10511 else
10512 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10513 fi
10514 fi
10515 additional_includedir=
10516 case "$found_dir" in
10517 */lib | */lib/)
10518 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10519 additional_includedir="$basedir/include"
10520 ;;
10521 esac
10522 if test "X$additional_includedir" != "X"; then
10523 if test "X$additional_includedir" != "X/usr/include"; then
10524 haveit=
10525 if test "X$additional_includedir" = "X/usr/local/include"; then
10526 if test -n "$GCC"; then
10527 case $host_os in
10528 linux*) haveit=yes;;
10529 esac
10530 fi
10531 fi
10532 if test -z "$haveit"; then
10533 for x in $CPPFLAGS $INCICONV; do
10534
10535 acl_save_prefix="$prefix"
10536 prefix="$acl_final_prefix"
10537 acl_save_exec_prefix="$exec_prefix"
10538 exec_prefix="$acl_final_exec_prefix"
10539 eval x=\"$x\"
10540 exec_prefix="$acl_save_exec_prefix"
10541 prefix="$acl_save_prefix"
10542
10543 if test "X$x" = "X-I$additional_includedir"; then
10544 haveit=yes
10545 break
10546 fi
10547 done
10548 if test -z "$haveit"; then
10549 if test -d "$additional_includedir"; then
10550 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10551 fi
10552 fi
10553 fi
10554 fi
10555 fi
10556 if test -n "$found_la"; then
10557 save_libdir="$libdir"
10558 case "$found_la" in
10559 */* | *\\*) . "$found_la" ;;
10560 *) . "./$found_la" ;;
10561 esac
10562 libdir="$save_libdir"
10563 for dep in $dependency_libs; do
10564 case "$dep" in
10565 -L*)
10566 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10567 if test "X$additional_libdir" != "X/usr/lib"; then
10568 haveit=
10569 if test "X$additional_libdir" = "X/usr/local/lib"; then
10570 if test -n "$GCC"; then
10571 case $host_os in
10572 linux*) haveit=yes;;
10573 esac
10574 fi
10575 fi
10576 if test -z "$haveit"; then
10577 haveit=
10578 for x in $LDFLAGS $LIBICONV; do
10579
10580 acl_save_prefix="$prefix"
10581 prefix="$acl_final_prefix"
10582 acl_save_exec_prefix="$exec_prefix"
10583 exec_prefix="$acl_final_exec_prefix"
10584 eval x=\"$x\"
10585 exec_prefix="$acl_save_exec_prefix"
10586 prefix="$acl_save_prefix"
10587
10588 if test "X$x" = "X-L$additional_libdir"; then
10589 haveit=yes
10590 break
10591 fi
10592 done
10593 if test -z "$haveit"; then
10594 if test -d "$additional_libdir"; then
10595 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10596 fi
10597 fi
10598 haveit=
10599 for x in $LDFLAGS $LTLIBICONV; do
10600
10601 acl_save_prefix="$prefix"
10602 prefix="$acl_final_prefix"
10603 acl_save_exec_prefix="$exec_prefix"
10604 exec_prefix="$acl_final_exec_prefix"
10605 eval x=\"$x\"
10606 exec_prefix="$acl_save_exec_prefix"
10607 prefix="$acl_save_prefix"
10608
10609 if test "X$x" = "X-L$additional_libdir"; then
10610 haveit=yes
10611 break
10612 fi
10613 done
10614 if test -z "$haveit"; then
10615 if test -d "$additional_libdir"; then
10616 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10617 fi
10618 fi
10619 fi
10620 fi
10621 ;;
10622 -R*)
10623 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10624 if test "$enable_rpath" != no; then
10625 haveit=
10626 for x in $rpathdirs; do
10627 if test "X$x" = "X$dir"; then
10628 haveit=yes
10629 break
10630 fi
10631 done
10632 if test -z "$haveit"; then
10633 rpathdirs="$rpathdirs $dir"
10634 fi
10635 haveit=
10636 for x in $ltrpathdirs; do
10637 if test "X$x" = "X$dir"; then
10638 haveit=yes
10639 break
10640 fi
10641 done
10642 if test -z "$haveit"; then
10643 ltrpathdirs="$ltrpathdirs $dir"
10644 fi
10645 fi
10646 ;;
10647 -l*)
10648 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10649 ;;
10650 *.la)
10651 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10652 ;;
10653 *)
10654 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10655 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10656 ;;
10657 esac
10658 done
10659 fi
10660 else
10661 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10662 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10663 fi
10664 fi
10665 fi
10666 done
10667 done
10668 if test "X$rpathdirs" != "X"; then
10669 if test -n "$hardcode_libdir_separator"; then
10670 alldirs=
10671 for found_dir in $rpathdirs; do
10672 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10673 done
10674 acl_save_libdir="$libdir"
10675 libdir="$alldirs"
10676 eval flag=\"$hardcode_libdir_flag_spec\"
10677 libdir="$acl_save_libdir"
10678 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10679 else
10680 for found_dir in $rpathdirs; do
10681 acl_save_libdir="$libdir"
10682 libdir="$found_dir"
10683 eval flag=\"$hardcode_libdir_flag_spec\"
10684 libdir="$acl_save_libdir"
10685 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10686 done
10687 fi
10688 fi
10689 if test "X$ltrpathdirs" != "X"; then
10690 for found_dir in $ltrpathdirs; do
10691 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10692 done
10693 fi
10694
10695
10696
10697
10698
10699
10700
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10702 $as_echo_n "checking for iconv... " >&6; }
10703 if test "${am_cv_func_iconv+set}" = set; then :
10704 $as_echo_n "(cached) " >&6
10705 else
10706
10707 am_cv_func_iconv="no, consider installing GNU libiconv"
10708 am_cv_lib_iconv=no
10709 am_save_CPPFLAGS="$CPPFLAGS"
10710 CPPFLAGS="$CPPFLAGS $INCICONV"
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10713 #include <stdlib.h>
10714 #include <iconv.h>
10715 int
10716 main ()
10717 {
10718 iconv_t cd = iconv_open("","");
10719 iconv(cd,NULL,NULL,NULL,NULL);
10720 iconv_close(cd);
10721 ;
10722 return 0;
10723 }
10724 _ACEOF
10725 if ac_fn_cxx_try_link "$LINENO"; then :
10726 am_cv_func_iconv=yes
10727 fi
10728 rm -f core conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10730 CPPFLAGS="$am_save_CPPFLAGS"
10731
10732 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10733 for _libs in .libs _libs; do
10734 am_save_CPPFLAGS="$CPPFLAGS"
10735 am_save_LIBS="$LIBS"
10736 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10737 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10740 #include <stdlib.h>
10741 #include <iconv.h>
10742 int
10743 main ()
10744 {
10745 iconv_t cd = iconv_open("","");
10746 iconv(cd,NULL,NULL,NULL,NULL);
10747 iconv_close(cd);
10748 ;
10749 return 0;
10750 }
10751 _ACEOF
10752 if ac_fn_cxx_try_link "$LINENO"; then :
10753 INCICONV="-I../libiconv/include"
10754 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10755 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10756 am_cv_lib_iconv=yes
10757 am_cv_func_iconv=yes
10758 fi
10759 rm -f core conftest.err conftest.$ac_objext \
10760 conftest$ac_exeext conftest.$ac_ext
10761 CPPFLAGS="$am_save_CPPFLAGS"
10762 LIBS="$am_save_LIBS"
10763 if test "$am_cv_func_iconv" = "yes"; then
10764 break
10765 fi
10766 done
10767 fi
10768
10769 if test "$am_cv_func_iconv" != yes; then
10770 am_save_CPPFLAGS="$CPPFLAGS"
10771 am_save_LIBS="$LIBS"
10772 CPPFLAGS="$LIBS $INCICONV"
10773 LIBS="$LIBS $LIBICONV"
10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10776 #include <stdlib.h>
10777 #include <iconv.h>
10778 int
10779 main ()
10780 {
10781 iconv_t cd = iconv_open("","");
10782 iconv(cd,NULL,NULL,NULL,NULL);
10783 iconv_close(cd);
10784 ;
10785 return 0;
10786 }
10787 _ACEOF
10788 if ac_fn_cxx_try_link "$LINENO"; then :
10789 am_cv_lib_iconv=yes
10790 am_cv_func_iconv=yes
10791 fi
10792 rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10794 CPPFLAGS="$am_save_CPPFLAGS"
10795 LIBS="$am_save_LIBS"
10796 fi
10797
10798 fi
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10800 $as_echo "$am_cv_func_iconv" >&6; }
10801 if test "$am_cv_func_iconv" = yes; then
10802
10803 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10804
10805 fi
10806 if test "$am_cv_lib_iconv" = yes; then
10807
10808 for element in $INCICONV; do
10809 haveit=
10810 for x in $CPPFLAGS; do
10811
10812 acl_save_prefix="$prefix"
10813 prefix="$acl_final_prefix"
10814 acl_save_exec_prefix="$exec_prefix"
10815 exec_prefix="$acl_final_exec_prefix"
10816 eval x=\"$x\"
10817 exec_prefix="$acl_save_exec_prefix"
10818 prefix="$acl_save_prefix"
10819
10820 if test "X$x" = "X$element"; then
10821 haveit=yes
10822 break
10823 fi
10824 done
10825 if test -z "$haveit"; then
10826 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10827 fi
10828 done
10829
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10831 $as_echo_n "checking how to link with libiconv... " >&6; }
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10833 $as_echo "$LIBICONV" >&6; }
10834 else
10835 LIBICONV=
10836 LTLIBICONV=
10837 fi
10838
10839
10840
10841 if test "$am_cv_func_iconv" = yes; then
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10843 $as_echo_n "checking for iconv declaration... " >&6; }
10844 if test "${am_cv_proto_iconv+set}" = set; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10850
10851 #include <stdlib.h>
10852 #include <iconv.h>
10853 extern
10854 #ifdef __cplusplus
10855 "C"
10856 #endif
10857 #if defined(__STDC__) || defined(__cplusplus)
10858 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10859 #else
10860 size_t iconv();
10861 #endif
10862
10863 int
10864 main ()
10865 {
10866
10867 ;
10868 return 0;
10869 }
10870 _ACEOF
10871 if ac_fn_cxx_try_compile "$LINENO"; then :
10872 am_cv_proto_iconv_arg1=""
10873 else
10874 am_cv_proto_iconv_arg1="const"
10875 fi
10876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10877 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);"
10878 fi
10879
10880 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10882 }$am_cv_proto_iconv" >&5
10883 $as_echo "${ac_t:-
10884 }$am_cv_proto_iconv" >&6; }
10885
10886 cat >>confdefs.h <<_ACEOF
10887 #define ICONV_CONST $am_cv_proto_iconv_arg1
10888 _ACEOF
10889
10890 fi
10891
10892
10893 # Until we have in-tree GNU iconv:
10894 LIBICONV_DEP=
10895 if test -f "$LTLIBICONV"; then
10896 LIBICONV_DEP=$LTLIBICONV
10897 fi
10898
10899
10900
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10902 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10903 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10904 $as_echo_n "(cached) " >&6
10905 else
10906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10908 #include <locale.h>
10909 int
10910 main ()
10911 {
10912 return LC_MESSAGES
10913 ;
10914 return 0;
10915 }
10916 _ACEOF
10917 if ac_fn_cxx_try_link "$LINENO"; then :
10918 am_cv_val_LC_MESSAGES=yes
10919 else
10920 am_cv_val_LC_MESSAGES=no
10921 fi
10922 rm -f core conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10924 fi
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10926 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10927 if test $am_cv_val_LC_MESSAGES = yes; then
10928
10929 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10930
10931 fi
10932
10933
10934
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10936 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10937 if test "${am_cv_langinfo_codeset+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10942 #include <langinfo.h>
10943 int
10944 main ()
10945 {
10946 char* cs = nl_langinfo(CODESET);
10947 ;
10948 return 0;
10949 }
10950 _ACEOF
10951 if ac_fn_cxx_try_link "$LINENO"; then :
10952 am_cv_langinfo_codeset=yes
10953 else
10954 am_cv_langinfo_codeset=no
10955 fi
10956 rm -f core conftest.err conftest.$ac_objext \
10957 conftest$ac_exeext conftest.$ac_ext
10958
10959 fi
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10961 $as_echo "$am_cv_langinfo_codeset" >&6; }
10962 if test $am_cv_langinfo_codeset = yes; then
10963
10964 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10965
10966 fi
10967
10968
10969 # We will need to find libiberty.h and ansidecl.h
10970 saved_CFLAGS="$CFLAGS"
10971 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10972 saved_CXXFLAGS="$CXXFLAGS"
10973 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10974
10975 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10976 # normal autoconf function for these. But force definition of
10977 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10978 # basename handling in libiberty.h.
10979 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10980 #undef HAVE_DECL_BASENAME
10981 #define HAVE_DECL_BASENAME 1
10982 #include \"ansidecl.h\"
10983 #include \"system.h\"
10984 "
10985 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10986 ac_have_decl=1
10987 else
10988 ac_have_decl=0
10989 fi
10990
10991 cat >>confdefs.h <<_ACEOF
10992 #define HAVE_DECL_BASENAME $ac_have_decl
10993 _ACEOF
10994 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10995 #undef HAVE_DECL_BASENAME
10996 #define HAVE_DECL_BASENAME 1
10997 #include \"ansidecl.h\"
10998 #include \"system.h\"
10999 "
11000 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
11001 ac_have_decl=1
11002 else
11003 ac_have_decl=0
11004 fi
11005
11006 cat >>confdefs.h <<_ACEOF
11007 #define HAVE_DECL_STRSTR $ac_have_decl
11008 _ACEOF
11009
11010
11011 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11012 madvise stpcpy strnlen strsignal strverscmp \
11013 strtol strtoul strtoll strtoull setenv unsetenv \
11014 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11015 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
11016 do
11017 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11019 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11020 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11025 #undef $ac_tr_decl
11026 #define $ac_tr_decl 1
11027
11028 #include "ansidecl.h"
11029 #include "system.h"
11030
11031 int
11032 main ()
11033 {
11034 #ifndef $ac_func
11035 char *(*pfn) = (char *(*)) $ac_func ;
11036 #endif
11037 ;
11038 return 0;
11039 }
11040 _ACEOF
11041 if ac_fn_cxx_try_compile "$LINENO"; then :
11042 eval "gcc_cv_have_decl_$ac_func=yes"
11043 else
11044 eval "gcc_cv_have_decl_$ac_func=no"
11045 fi
11046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11047 fi
11048
11049 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11051 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11052 #define $ac_tr_decl 1
11053 _ACEOF
11054
11055 else
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11058 #define $ac_tr_decl 0
11059 _ACEOF
11060
11061 fi
11062
11063 done
11064
11065
11066 for ac_func in getrlimit setrlimit getrusage
11067 do
11068 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11070 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11071 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11072 $as_echo_n "(cached) " >&6
11073 else
11074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h. */
11076 #undef $ac_tr_decl
11077 #define $ac_tr_decl 1
11078
11079 #include "ansidecl.h"
11080 #include "system.h"
11081 #ifdef HAVE_SYS_RESOURCE_H
11082 #include <sys/resource.h>
11083 #endif
11084
11085
11086 int
11087 main ()
11088 {
11089 #ifndef $ac_func
11090 char *(*pfn) = (char *(*)) $ac_func ;
11091 #endif
11092 ;
11093 return 0;
11094 }
11095 _ACEOF
11096 if ac_fn_cxx_try_compile "$LINENO"; then :
11097 eval "gcc_cv_have_decl_$ac_func=yes"
11098 else
11099 eval "gcc_cv_have_decl_$ac_func=no"
11100 fi
11101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11102 fi
11103
11104 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11106 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11107 #define $ac_tr_decl 1
11108 _ACEOF
11109
11110 else
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11112 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11113 #define $ac_tr_decl 0
11114 _ACEOF
11115
11116 fi
11117
11118 done
11119
11120
11121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11122 /* end confdefs.h. */
11123
11124 #include "ansidecl.h"
11125 #include "system.h"
11126 #ifdef HAVE_SYS_RESOURCE_H
11127 #include <sys/resource.h>
11128 #endif
11129
11130 int
11131 main ()
11132 {
11133 rlim_t l = 0;
11134 ;
11135 return 0;
11136 }
11137 _ACEOF
11138 if ac_fn_cxx_try_compile "$LINENO"; then :
11139
11140 else
11141
11142 $as_echo "#define rlim_t long" >>confdefs.h
11143
11144 fi
11145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11146
11147 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11148 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11149 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11150 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11151 for ac_func in ldgetname
11152 do
11153 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11155 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11156 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11157 $as_echo_n "(cached) " >&6
11158 else
11159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160 /* end confdefs.h. */
11161 #undef $ac_tr_decl
11162 #define $ac_tr_decl 1
11163
11164 #include "ansidecl.h"
11165 #include "system.h"
11166 #ifdef HAVE_LDFCN_H
11167 #undef FREAD
11168 #undef FWRITE
11169 #include <ldfcn.h>
11170 #endif
11171
11172
11173 int
11174 main ()
11175 {
11176 #ifndef $ac_func
11177 char *(*pfn) = (char *(*)) $ac_func ;
11178 #endif
11179 ;
11180 return 0;
11181 }
11182 _ACEOF
11183 if ac_fn_cxx_try_compile "$LINENO"; then :
11184 eval "gcc_cv_have_decl_$ac_func=yes"
11185 else
11186 eval "gcc_cv_have_decl_$ac_func=no"
11187 fi
11188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11189 fi
11190
11191 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11193 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11194 #define $ac_tr_decl 1
11195 _ACEOF
11196
11197 else
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11200 #define $ac_tr_decl 0
11201 _ACEOF
11202
11203 fi
11204
11205 done
11206
11207
11208 for ac_func in times
11209 do
11210 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11212 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11213 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11214 $as_echo_n "(cached) " >&6
11215 else
11216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217 /* end confdefs.h. */
11218 #undef $ac_tr_decl
11219 #define $ac_tr_decl 1
11220
11221 #include "ansidecl.h"
11222 #include "system.h"
11223 #ifdef HAVE_SYS_TIMES_H
11224 #include <sys/times.h>
11225 #endif
11226
11227
11228 int
11229 main ()
11230 {
11231 #ifndef $ac_func
11232 char *(*pfn) = (char *(*)) $ac_func ;
11233 #endif
11234 ;
11235 return 0;
11236 }
11237 _ACEOF
11238 if ac_fn_cxx_try_compile "$LINENO"; then :
11239 eval "gcc_cv_have_decl_$ac_func=yes"
11240 else
11241 eval "gcc_cv_have_decl_$ac_func=no"
11242 fi
11243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11244 fi
11245
11246 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11248 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11249 #define $ac_tr_decl 1
11250 _ACEOF
11251
11252 else
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11255 #define $ac_tr_decl 0
11256 _ACEOF
11257
11258 fi
11259
11260 done
11261
11262
11263 for ac_func in sigaltstack
11264 do
11265 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11267 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11268 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11269 $as_echo_n "(cached) " >&6
11270 else
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11273 #undef $ac_tr_decl
11274 #define $ac_tr_decl 1
11275
11276 #include "ansidecl.h"
11277 #include "system.h"
11278 #include <signal.h>
11279
11280
11281 int
11282 main ()
11283 {
11284 #ifndef $ac_func
11285 char *(*pfn) = (char *(*)) $ac_func ;
11286 #endif
11287 ;
11288 return 0;
11289 }
11290 _ACEOF
11291 if ac_fn_cxx_try_compile "$LINENO"; then :
11292 eval "gcc_cv_have_decl_$ac_func=yes"
11293 else
11294 eval "gcc_cv_have_decl_$ac_func=no"
11295 fi
11296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297 fi
11298
11299 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11301 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11302 #define $ac_tr_decl 1
11303 _ACEOF
11304
11305 else
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11308 #define $ac_tr_decl 0
11309 _ACEOF
11310
11311 fi
11312
11313 done
11314
11315
11316 # More time-related stuff.
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11318 $as_echo_n "checking for struct tms... " >&6; }
11319 if test "${ac_cv_struct_tms+set}" = set; then :
11320 $as_echo_n "(cached) " >&6
11321 else
11322
11323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h. */
11325
11326 #include "ansidecl.h"
11327 #include "system.h"
11328 #ifdef HAVE_SYS_TIMES_H
11329 #include <sys/times.h>
11330 #endif
11331
11332 int
11333 main ()
11334 {
11335 struct tms tms;
11336 ;
11337 return 0;
11338 }
11339 _ACEOF
11340 if ac_fn_cxx_try_compile "$LINENO"; then :
11341 ac_cv_struct_tms=yes
11342 else
11343 ac_cv_struct_tms=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_struct_tms" >&5
11348 $as_echo "$ac_cv_struct_tms" >&6; }
11349 if test $ac_cv_struct_tms = yes; then
11350
11351 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11352
11353 fi
11354
11355 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11356 # revisit after autoconf 2.50.
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11358 $as_echo_n "checking for clock_t... " >&6; }
11359 if test "${gcc_cv_type_clock_t+set}" = set; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11362
11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11365
11366 #include "ansidecl.h"
11367 #include "system.h"
11368
11369 int
11370 main ()
11371 {
11372 clock_t x;
11373 ;
11374 return 0;
11375 }
11376 _ACEOF
11377 if ac_fn_cxx_try_compile "$LINENO"; then :
11378 gcc_cv_type_clock_t=yes
11379 else
11380 gcc_cv_type_clock_t=no
11381 fi
11382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11383 fi
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11385 $as_echo "$gcc_cv_type_clock_t" >&6; }
11386 if test $gcc_cv_type_clock_t = yes; then
11387
11388 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11389
11390 fi
11391
11392 # Check if F_SETLKW is supported by fcntl.
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11394 $as_echo_n "checking for F_SETLKW... " >&6; }
11395 if test "${ac_cv_f_setlkw+set}" = set; then :
11396 $as_echo_n "(cached) " >&6
11397 else
11398
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11401
11402 #include <fcntl.h>
11403 int
11404 main ()
11405 {
11406
11407 struct flock fl;
11408 fl.l_whence = 0;
11409 fl.l_start = 0;
11410 fl.l_len = 0;
11411 fl.l_pid = 0;
11412 return fcntl (1, F_SETLKW, &fl);
11413 ;
11414 return 0;
11415 }
11416 _ACEOF
11417 if ac_fn_cxx_try_compile "$LINENO"; then :
11418 ac_cv_f_setlkw=yes
11419 else
11420 ac_cv_f_setlkw=no
11421 fi
11422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11423 fi
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11425 $as_echo "$ac_cv_f_setlkw" >&6; }
11426 if test $ac_cv_f_setlkw = yes; then
11427
11428 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11429
11430 fi
11431
11432 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11433 CFLAGS="$saved_CFLAGS"
11434 CXXFLAGS="$saved_CXXFLAGS"
11435
11436 # mkdir takes a single argument on some systems.
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11438 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11439 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11444
11445 #include <sys/types.h>
11446 #ifdef HAVE_SYS_STAT_H
11447 # include <sys/stat.h>
11448 #endif
11449 #ifdef HAVE_UNISTD_H
11450 # include <unistd.h>
11451 #endif
11452 #ifdef HAVE_DIRECT_H
11453 # include <direct.h>
11454 #endif
11455 int
11456 main ()
11457 {
11458 mkdir ("foo", 0);
11459 ;
11460 return 0;
11461 }
11462 _ACEOF
11463 if ac_fn_cxx_try_compile "$LINENO"; then :
11464 gcc_cv_mkdir_takes_one_arg=no
11465 else
11466 gcc_cv_mkdir_takes_one_arg=yes
11467 fi
11468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11469 fi
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11471 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11472 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11473
11474 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11475
11476 fi
11477
11478
11479 # File extensions
11480 manext='.1'
11481 objext='.o'
11482
11483
11484
11485 # With Setjmp/Longjmp based exception handling.
11486 # Check whether --enable-sjlj-exceptions was given.
11487 if test "${enable_sjlj_exceptions+set}" = set; then :
11488 enableval=$enable_sjlj_exceptions; case $target in
11489 *-*-hpux10*)
11490 if test $enableval != yes; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11492 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11493 enableval=yes
11494 fi
11495 ;;
11496 esac
11497 force_sjlj_exceptions=yes
11498 else
11499 case $target in
11500 *-*-hpux10*)
11501 force_sjlj_exceptions=yes
11502 enableval=yes
11503 ;;
11504 lm32*-*-*)
11505 force_sjlj_exceptions=yes
11506 enableval=yes
11507 ;;
11508 *)
11509 force_sjlj_exceptions=no
11510 ;;
11511 esac
11512 fi
11513
11514 if test $force_sjlj_exceptions = yes; then
11515 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11516
11517 cat >>confdefs.h <<_ACEOF
11518 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11519 _ACEOF
11520
11521 fi
11522
11523 # --------------------------------------------------------
11524 # Build, host, and target specific configuration fragments
11525 # --------------------------------------------------------
11526
11527 # Collect build-machine-specific information.
11528 . ${srcdir}/config.build
11529
11530 # Collect host-machine-specific information.
11531 . ${srcdir}/config.host
11532
11533 target_gtfiles=
11534
11535 # Collect target-machine-specific information.
11536 . ${srcdir}/config.gcc
11537
11538 extra_objs="${host_extra_objs} ${extra_objs}"
11539 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11540
11541 # Default the target-machine variables that were not explicitly set.
11542 if test x"$tm_file" = x
11543 then tm_file=$cpu_type/$cpu_type.h; fi
11544
11545 if test x"$extra_headers" = x
11546 then extra_headers=; fi
11547
11548 if test x$md_file = x
11549 then md_file=$cpu_type/$cpu_type.md; fi
11550
11551 if test x$out_file = x
11552 then out_file=$cpu_type/$cpu_type.c; fi
11553
11554 if test x"$tmake_file" = x
11555 then tmake_file=$cpu_type/t-$cpu_type
11556 fi
11557
11558 # Support --enable-initfini-array.
11559 if test x$enable_initfini_array != xno; then
11560 tm_file="${tm_file} initfini-array.h"
11561 fi
11562
11563 if test x"$dwarf2" = xyes
11564 then tm_file="$tm_file tm-dwarf2.h"
11565 fi
11566
11567 # Say what files are being used for the output code and MD file.
11568 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11569 echo "Using \`$srcdir/config/$md_file' as machine description file."
11570
11571 # If any of the xm_file variables contain nonexistent files, warn
11572 # about them and drop them.
11573
11574 bx=
11575 for x in $build_xm_file; do
11576 if test -f $srcdir/config/$x
11577 then bx="$bx $x"
11578 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11579 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11580 fi
11581 done
11582 build_xm_file="$bx"
11583
11584 hx=
11585 for x in $host_xm_file; do
11586 if test -f $srcdir/config/$x
11587 then hx="$hx $x"
11588 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11589 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11590 fi
11591 done
11592 host_xm_file="$hx"
11593
11594 tx=
11595 for x in $xm_file; do
11596 if test -f $srcdir/config/$x
11597 then tx="$tx $x"
11598 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11599 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11600 fi
11601 done
11602 xm_file="$tx"
11603
11604 count=a
11605 for f in $tm_file; do
11606 count=${count}x
11607 done
11608 if test $count = ax; then
11609 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11610 else
11611 echo "Using the following target machine macro files:"
11612 for f in $tm_file; do
11613 echo " $srcdir/config/$f"
11614 done
11615 fi
11616
11617 if test x$use_long_long_for_widest_fast_int = xyes; then
11618
11619 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11620
11621 fi
11622
11623 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11624
11625 cat >>confdefs.h <<_ACEOF
11626 #define HAVE_GNU_LD $gnu_ld_bool
11627 _ACEOF
11628
11629
11630 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11631
11632 cat >>confdefs.h <<_ACEOF
11633 #define HAVE_GNU_AS $gnu_as_bool
11634 _ACEOF
11635
11636
11637 count=a
11638 for f in $host_xm_file; do
11639 count=${count}x
11640 done
11641 if test $count = a; then
11642 :
11643 elif test $count = ax; then
11644 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11645 else
11646 echo "Using the following host machine macro files:"
11647 for f in $host_xm_file; do
11648 echo " $srcdir/config/$f"
11649 done
11650 fi
11651 echo "Using ${out_host_hook_obj} for host machine hooks."
11652
11653 if test "$host_xm_file" != "$build_xm_file"; then
11654 count=a
11655 for f in $build_xm_file; do
11656 count=${count}x
11657 done
11658 if test $count = a; then
11659 :
11660 elif test $count = ax; then
11661 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11662 else
11663 echo "Using the following build machine macro files:"
11664 for f in $build_xm_file; do
11665 echo " $srcdir/config/$f"
11666 done
11667 fi
11668 fi
11669
11670 if test -n "$configured_native_system_header_dir"; then
11671 native_system_header_dir=$configured_native_system_header_dir
11672 fi
11673 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11674
11675
11676 case ${host} in
11677 powerpc*-*-darwin*)
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11679 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11680 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11681 $as_echo_n "(cached) " >&6
11682 else
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11685
11686 #include <sys/cdefs.h>
11687 #include <sys/signal.h>
11688 #include <ucontext.h>
11689 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11690
11691 _ACEOF
11692 if ac_fn_cxx_try_compile "$LINENO"; then :
11693 gcc_cv_mcontext_underscores=no
11694 else
11695 gcc_cv_mcontext_underscores=yes
11696 fi
11697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11698 fi
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11700 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11701 if test $gcc_cv_mcontext_underscores = yes; then
11702
11703 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11704
11705 fi
11706 ;;
11707 esac
11708
11709 # ---------
11710 # Threading
11711 # ---------
11712
11713 # Check if a valid thread package
11714 case ${enable_threads} in
11715 "" | no)
11716 # No threads
11717 target_thread_file='single'
11718 ;;
11719 yes)
11720 # default
11721 target_thread_file='single'
11722 ;;
11723 aix | dce | lynx | mipssde | posix | rtems | \
11724 single | tpf | vxworks | win32)
11725 target_thread_file=${enable_threads}
11726 ;;
11727 *)
11728 echo "${enable_threads} is an unknown thread package" 1>&2
11729 exit 1
11730 ;;
11731 esac
11732
11733 if test x${thread_file} = x; then
11734 # No thread file set by target-specific clauses in config.gcc,
11735 # so use file chosen by default logic above
11736 thread_file=${target_thread_file}
11737 fi
11738
11739 # --------
11740 # UNSORTED
11741 # --------
11742
11743 use_cxa_atexit=no
11744 if test x$enable___cxa_atexit = xyes || \
11745 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11746 if test x$host = x$target; then
11747 case $host in
11748 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11749 # keyed to flag_use_cxa_atexit
11750 *-*-mingw32*)
11751 use_cxa_atexit=yes
11752 ;;
11753 powerpc-ibm-aix*)
11754 use_cxa_atexit=yes
11755 ;;
11756 *)
11757 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11758 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11759 use_cxa_atexit=yes
11760 else
11761 echo "__cxa_atexit can't be enabled on this target"
11762 fi
11763
11764 ;;
11765 esac
11766 else
11767 # We can't check for __cxa_atexit when building a cross, so assume
11768 # it is available
11769 use_cxa_atexit=yes
11770 fi
11771 if test x$use_cxa_atexit = xyes; then
11772
11773 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11774
11775 fi
11776 fi
11777
11778 # Look for a file containing extra machine modes.
11779 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11780 extra_modes_file='$(srcdir)'/config/${extra_modes}
11781
11782
11783 cat >>confdefs.h <<_ACEOF
11784 #define EXTRA_MODES_FILE "config/$extra_modes"
11785 _ACEOF
11786
11787 fi
11788
11789 # Convert extra_options into a form suitable for Makefile use.
11790 extra_opt_files=
11791 all_opt_files=
11792 for f in $extra_options; do
11793 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11794 all_opt_files="$all_opt_files $srcdir/config/$f"
11795 done
11796
11797
11798 # auto-host.h is the file containing items generated by autoconf and is
11799 # the first file included by config.h.
11800 # If host=build, it is correct to have bconfig include auto-host.h
11801 # as well. If host!=build, we are in error and need to do more
11802 # work to find out the build config parameters.
11803 if test x$host = x$build
11804 then
11805 build_auto=auto-host.h
11806 else
11807 # We create a subdir, then run autoconf in the subdir.
11808 # To prevent recursion we set host and build for the new
11809 # invocation of configure to the build for this invocation
11810 # of configure.
11811 tempdir=build.$$
11812 rm -rf $tempdir
11813 mkdir $tempdir
11814 cd $tempdir
11815 case ${srcdir} in
11816 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11817 *) realsrcdir=../${srcdir};;
11818 esac
11819 # Clearing GMPINC is necessary to prevent host headers being
11820 # used by the build compiler. Defining GENERATOR_FILE stops
11821 # system.h from including gmp.h.
11822 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11823 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11824 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11825 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11826 ${realsrcdir}/configure \
11827 --enable-languages=${enable_languages-all} \
11828 --target=$target_alias --host=$build_alias --build=$build_alias
11829
11830 # We just finished tests for the build machine, so rename
11831 # the file auto-build.h in the gcc directory.
11832 mv auto-host.h ../auto-build.h
11833 cd ..
11834 rm -rf $tempdir
11835 build_auto=auto-build.h
11836 fi
11837
11838
11839 tm_file="${tm_file} defaults.h"
11840 tm_p_file="${tm_p_file} tm-preds.h"
11841 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11842 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11843 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11844 # put this back in temporarily.
11845 xm_file="auto-host.h ansidecl.h ${xm_file}"
11846
11847 # --------
11848 # UNSORTED
11849 # --------
11850
11851 # Compile in configure arguments.
11852 if test -f configargs.h ; then
11853 # Being re-configured.
11854 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11855 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11856 else
11857 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11858 fi
11859
11860 # Double all backslashes and backslash all quotes to turn
11861 # gcc_config_arguments into a C string.
11862 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11863 $gcc_config_arguments
11864 EOF
11865 gcc_config_arguments_str=`cat conftest.out`
11866 rm -f conftest.out
11867
11868 cat > configargs.h <<EOF
11869 /* Generated automatically. */
11870 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11871 static const char thread_model[] = "$thread_file";
11872
11873 static const struct {
11874 const char *name, *value;
11875 } configure_default_options[] = $configure_default_options;
11876 EOF
11877
11878 gcc_BASEVER=`cat $srcdir/BASE-VER`
11879 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11880 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11881 if test -f $srcdir/REVISION ; then
11882 gcc_REVISION=`cat $srcdir/REVISION`
11883 else
11884 gcc_REVISION=""
11885 fi
11886 cat > plugin-version.h <<EOF
11887 #include "configargs.h"
11888
11889 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11890 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11891 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11892 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11893
11894 static char basever[] = "$gcc_BASEVER";
11895 static char datestamp[] = "$gcc_DATESTAMP";
11896 static char devphase[] = "$gcc_DEVPHASE";
11897 static char revision[] = "$gcc_REVISION";
11898
11899 /* FIXME plugins: We should make the version information more precise.
11900 One way to do is to add a checksum. */
11901
11902 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11903 devphase, revision,
11904 configuration_arguments};
11905 EOF
11906
11907 # Internationalization
11908 # If we haven't got the data from the intl directory,
11909 # assume NLS is disabled.
11910 USE_NLS=no
11911 LIBINTL=
11912 LIBINTL_DEP=
11913 INCINTL=
11914 XGETTEXT=
11915 GMSGFMT=
11916 POSUB=
11917
11918 if test -f ../intl/config.intl; then
11919 . ../intl/config.intl
11920 fi
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11922 $as_echo_n "checking whether NLS is requested... " >&6; }
11923 if test x"$USE_NLS" != xyes; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11928 $as_echo "yes" >&6; }
11929
11930 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11931
11932
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11934 $as_echo_n "checking for catalogs to be installed... " >&6; }
11935 # Look for .po and .gmo files in the source directory.
11936 CATALOGS=
11937 XLINGUAS=
11938 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11939 # If there aren't any .gmo files the shell will give us the
11940 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11941 # weeded out.
11942 case "$cat" in *\**)
11943 continue;;
11944 esac
11945 # The quadruple backslash is collapsed to a double backslash
11946 # by the backticks, then collapsed again by the double quotes,
11947 # leaving us with one backslash in the sed expression (right
11948 # before the dot that mustn't act as a wildcard).
11949 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11950 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11951 # The user is allowed to set LINGUAS to a list of languages to
11952 # install catalogs for. If it's empty that means "all of them."
11953 if test "x$LINGUAS" = x; then
11954 CATALOGS="$CATALOGS $cat"
11955 XLINGUAS="$XLINGUAS $lang"
11956 else
11957 case "$LINGUAS" in *$lang*)
11958 CATALOGS="$CATALOGS $cat"
11959 XLINGUAS="$XLINGUAS $lang"
11960 ;;
11961 esac
11962 fi
11963 done
11964 LINGUAS="$XLINGUAS"
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11966 $as_echo "$LINGUAS" >&6; }
11967
11968
11969 DATADIRNAME=share
11970
11971 INSTOBJEXT=.mo
11972
11973 GENCAT=gencat
11974
11975 CATOBJEXT=.gmo
11976
11977 fi
11978
11979 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11980 # -liconv on the link line twice.
11981 case "$LIBINTL" in *$LIBICONV*)
11982 LIBICONV= ;;
11983 esac
11984
11985 # Check whether --enable-secureplt was given.
11986 if test "${enable_secureplt+set}" = set; then :
11987 enableval=$enable_secureplt;
11988 fi
11989
11990
11991 # Check whether --enable-leading-mingw64-underscores was given.
11992 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11993 enableval=$enable_leading_mingw64_underscores;
11994 fi
11995
11996 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11997
11998 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11999
12000 fi
12001
12002 # Check whether --enable-cld was given.
12003 if test "${enable_cld+set}" = set; then :
12004 enableval=$enable_cld;
12005 else
12006 enable_cld=no
12007 fi
12008
12009
12010 # Check whether --enable-frame-pointer was given.
12011 if test "${enable_frame_pointer+set}" = set; then :
12012 enableval=$enable_frame_pointer;
12013 else
12014
12015 case $target_os in
12016 linux* | darwin[8912]*)
12017 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12018 # DWARF2.
12019 enable_frame_pointer=no
12020 ;;
12021 *)
12022 enable_frame_pointer=yes
12023 ;;
12024 esac
12025
12026 fi
12027
12028
12029 # Windows32 Registry support for specifying GCC installation paths.
12030 # Check whether --enable-win32-registry was given.
12031 if test "${enable_win32_registry+set}" = set; then :
12032 enableval=$enable_win32_registry;
12033 fi
12034
12035
12036 case $host_os in
12037 win32 | pe | cygwin* | mingw32*)
12038 if test "x$enable_win32_registry" != xno; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12040 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12041 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044 ac_func_search_save_LIBS=$LIBS
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12047
12048 /* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
12051 #ifdef __cplusplus
12052 extern "C"
12053 #endif
12054 char RegOpenKeyExA ();
12055 int
12056 main ()
12057 {
12058 return RegOpenKeyExA ();
12059 ;
12060 return 0;
12061 }
12062 _ACEOF
12063 for ac_lib in '' advapi32; do
12064 if test -z "$ac_lib"; then
12065 ac_res="none required"
12066 else
12067 ac_res=-l$ac_lib
12068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12069 fi
12070 if ac_fn_cxx_try_link "$LINENO"; then :
12071 ac_cv_search_RegOpenKeyExA=$ac_res
12072 fi
12073 rm -f core conftest.err conftest.$ac_objext \
12074 conftest$ac_exeext
12075 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12076 break
12077 fi
12078 done
12079 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12080
12081 else
12082 ac_cv_search_RegOpenKeyExA=no
12083 fi
12084 rm conftest.$ac_ext
12085 LIBS=$ac_func_search_save_LIBS
12086 fi
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12088 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12089 ac_res=$ac_cv_search_RegOpenKeyExA
12090 if test "$ac_res" != no; then :
12091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12092
12093 else
12094 enable_win32_registry=no
12095 fi
12096
12097 fi
12098
12099 if test "x$enable_win32_registry" != xno; then
12100
12101 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12102
12103
12104 if test "x$enable_win32_registry" != xyes \
12105 && test "x$enable_win32_registry" != x; then
12106
12107 cat >>confdefs.h <<_ACEOF
12108 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12109 _ACEOF
12110
12111 fi
12112 fi
12113 ;;
12114 esac
12115
12116 # Get an absolute path to the GCC top-level source directory
12117 holddir=`${PWDCMD-pwd}`
12118 cd $srcdir
12119 topdir=`${PWDCMD-pwd}`
12120 cd $holddir
12121
12122 # Conditionalize the makefile for this host machine.
12123 xmake_file=
12124 for f in ${host_xmake_file}
12125 do
12126 if test -f ${srcdir}/config/$f
12127 then
12128 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12129 fi
12130 done
12131
12132 # Conditionalize the makefile for this target machine.
12133 tmake_file_=
12134 for f in ${tmake_file}
12135 do
12136 if test -f ${srcdir}/config/$f
12137 then
12138 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12139 fi
12140 done
12141 tmake_file="${tmake_file_}"
12142
12143 out_object_file=`basename $out_file .c`.o
12144 common_out_object_file=`basename $common_out_file .c`.o
12145
12146 tm_file_list="options.h"
12147 tm_include_list="options.h insn-constants.h"
12148 for f in $tm_file; do
12149 case $f in
12150 ./* )
12151 f=`echo $f | sed 's/^..//'`
12152 tm_file_list="${tm_file_list} $f"
12153 tm_include_list="${tm_include_list} $f"
12154 ;;
12155 defaults.h )
12156 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12157 tm_include_list="${tm_include_list} $f"
12158 ;;
12159 * )
12160 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12161 tm_include_list="${tm_include_list} config/$f"
12162 ;;
12163 esac
12164 done
12165
12166 tm_p_file_list=
12167 tm_p_include_list=
12168 for f in $tm_p_file; do
12169 case $f in
12170 tm-preds.h )
12171 tm_p_file_list="${tm_p_file_list} $f"
12172 tm_p_include_list="${tm_p_include_list} $f"
12173 ;;
12174 * )
12175 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12176 tm_p_include_list="${tm_p_include_list} config/$f"
12177 esac
12178 done
12179
12180 xm_file_list=
12181 xm_include_list=
12182 for f in $xm_file; do
12183 case $f in
12184 ansidecl.h )
12185 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12186 xm_include_list="${xm_include_list} $f"
12187 ;;
12188 auto-host.h )
12189 xm_file_list="${xm_file_list} $f"
12190 xm_include_list="${xm_include_list} $f"
12191 ;;
12192 * )
12193 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12194 xm_include_list="${xm_include_list} config/$f"
12195 ;;
12196 esac
12197 done
12198
12199 host_xm_file_list=
12200 host_xm_include_list=
12201 for f in $host_xm_file; do
12202 case $f in
12203 ansidecl.h )
12204 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12205 host_xm_include_list="${host_xm_include_list} $f"
12206 ;;
12207 auto-host.h )
12208 host_xm_file_list="${host_xm_file_list} $f"
12209 host_xm_include_list="${host_xm_include_list} $f"
12210 ;;
12211 * )
12212 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12213 host_xm_include_list="${host_xm_include_list} config/$f"
12214 ;;
12215 esac
12216 done
12217
12218 build_xm_file_list=
12219 for f in $build_xm_file; do
12220 case $f in
12221 ansidecl.h )
12222 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12223 build_xm_include_list="${build_xm_include_list} $f"
12224 ;;
12225 auto-build.h | auto-host.h )
12226 build_xm_file_list="${build_xm_file_list} $f"
12227 build_xm_include_list="${build_xm_include_list} $f"
12228 ;;
12229 * )
12230 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12231 build_xm_include_list="${build_xm_include_list} config/$f"
12232 ;;
12233 esac
12234 done
12235
12236 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12237 # cross-compiler which does not use the native headers and libraries.
12238 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12239 CROSS=
12240 ALL=all.internal
12241 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12242
12243 if test "x$with_build_sysroot" != x; then
12244 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12245 else
12246 # This value is used, even on a native system, because
12247 # CROSS_SYSTEM_HEADER_DIR is just
12248 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12249 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12250 fi
12251
12252 if test x$host != x$target
12253 then
12254 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12255 ALL=all.cross
12256 SYSTEM_HEADER_DIR=$build_system_header_dir
12257 case "$host","$target" in
12258 # Darwin crosses can use the host system's libraries and headers,
12259 # because of the fat library support. Of course, it must be the
12260 # same version of Darwin on both sides. Allow the user to
12261 # just say --target=foo-darwin without a version number to mean
12262 # "the version on this system".
12263 *-*-darwin*,*-*-darwin*)
12264 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12265 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12266 if test $hostos = $targetos -o $targetos = darwin ; then
12267 CROSS=
12268 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12269 with_headers=yes
12270 fi
12271 ;;
12272
12273 i?86-*-*,x86_64-*-* \
12274 | powerpc*-*-*,powerpc64*-*-*)
12275 CROSS="$CROSS -DNATIVE_CROSS" ;;
12276 esac
12277
12278 case $target in
12279 *-*-mingw*)
12280 if test "x$with_headers" = x; then
12281 with_headers=yes
12282 fi
12283 ;;
12284 *)
12285 ;;
12286 esac
12287 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12288 SYSTEM_HEADER_DIR=$build_system_header_dir
12289 fi
12290
12291 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12292 if test "x$with_headers" != x && test "x$with_headers" != xyes; then
12293 target_header_dir=$with_headers
12294 elif test "x$with_sysroot" = x; then
12295 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12296 elif test "x$with_build_sysroot" != "x"; then
12297 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12298 elif test "x$with_sysroot" = xyes; then
12299 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12300 else
12301 target_header_dir="${with_sysroot}${native_system_header_dir}"
12302 fi
12303 else
12304 target_header_dir=${native_system_header_dir}
12305 fi
12306
12307 # If this is a cross-compiler that does not
12308 # have its own set of headers then define
12309 # inhibit_libc
12310
12311 # If this is using newlib, without having the headers available now,
12312 # then define inhibit_libc in LIBGCC2_CFLAGS.
12313 # This prevents libgcc2 from containing any code which requires libc
12314 # support.
12315 : ${inhibit_libc=false}
12316 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12317 test x$with_newlib = xyes ; } &&
12318 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12319 inhibit_libc=true
12320 fi
12321
12322
12323 # When building gcc with a cross-compiler, we need to adjust things so
12324 # that the generator programs are still built with the native compiler.
12325 # Also, we cannot run fixincludes.
12326
12327 # These are the normal (build=host) settings:
12328 CC_FOR_BUILD='$(CC)'
12329 CXX_FOR_BUILD='$(CXX)'
12330 BUILD_CFLAGS='$(ALL_CFLAGS)'
12331 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12332 BUILD_LDFLAGS='$(LDFLAGS)'
12333 STMP_FIXINC=stmp-fixinc
12334
12335 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12336 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12337
12338 # And these apply if build != host, or we are generating coverage data
12339 if test x$build != x$host || test "x$coverage_flags" != x
12340 then
12341 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12342 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12343 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12344
12345 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12346 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12347 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12348 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12349 fi
12350
12351
12352
12353 # Expand extra_headers to include complete path.
12354 # This substitutes for lots of t-* files.
12355 extra_headers_list=
12356 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12357 for file in ${extra_headers} ; do
12358 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12359 done
12360
12361 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12362 if test x"$use_gcc_tgmath" = xyes
12363 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12364 fi
12365
12366 # Define collect2 in Makefile.
12367 case $host_can_use_collect2 in
12368 no) collect2= ;;
12369 *) collect2='collect2$(exeext)' ;;
12370 esac
12371
12372
12373 # Add a definition of USE_COLLECT2 if system wants one.
12374 case $use_collect2 in
12375 no) use_collect2= ;;
12376 "") ;;
12377 *)
12378 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12379 xm_defines="${xm_defines} USE_COLLECT2"
12380 case $host_can_use_collect2 in
12381 no)
12382 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12383 ;;
12384 esac
12385 ;;
12386 esac
12387
12388
12389 cat >>confdefs.h <<_ACEOF
12390 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12391 _ACEOF
12392
12393
12394 # ---------------------------
12395 # Assembler & linker features
12396 # ---------------------------
12397
12398 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12399 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12400 # However when ld-new is first executed from the build tree, libtool will
12401 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12402 # to the build tree. While doing this we need to use the previous-stage
12403 # linker, or we have an infinite loop. The presence of a shell script as
12404 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12405 # the gcc/collect-ld script. So we need to know how libtool works, or
12406 # exec-tool will fail.
12407
12408
12409 case `pwd` in
12410 *\ * | *\ *)
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12412 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12413 esac
12414
12415
12416
12417 macro_version='2.2.7a'
12418 macro_revision='1.3134'
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432 ltmain="$ac_aux_dir/ltmain.sh"
12433
12434 # Backslashify metacharacters that are still active within
12435 # double-quoted strings.
12436 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12437
12438 # Same as above, but do not quote variable references.
12439 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12440
12441 # Sed substitution to delay expansion of an escaped shell variable in a
12442 # double_quote_subst'ed string.
12443 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12444
12445 # Sed substitution to delay expansion of an escaped single quote.
12446 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12447
12448 # Sed substitution to avoid accidental globbing in evaled expressions
12449 no_glob_subst='s/\*/\\\*/g'
12450
12451 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12452 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12453 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12454
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12456 $as_echo_n "checking how to print strings... " >&6; }
12457 # Test print first, because it will be a builtin if present.
12458 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12459 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12460 ECHO='print -r --'
12461 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12462 ECHO='printf %s\n'
12463 else
12464 # Use this function as a fallback that always works.
12465 func_fallback_echo ()
12466 {
12467 eval 'cat <<_LTECHO_EOF
12468 $1
12469 _LTECHO_EOF'
12470 }
12471 ECHO='func_fallback_echo'
12472 fi
12473
12474 # func_echo_all arg...
12475 # Invoke $ECHO with all args, space-separated.
12476 func_echo_all ()
12477 {
12478 $ECHO ""
12479 }
12480
12481 case "$ECHO" in
12482 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12483 $as_echo "printf" >&6; } ;;
12484 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12485 $as_echo "print -r" >&6; } ;;
12486 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12487 $as_echo "cat" >&6; } ;;
12488 esac
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12504 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12505 if test "${ac_cv_path_SED+set}" = set; then :
12506 $as_echo_n "(cached) " >&6
12507 else
12508 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12509 for ac_i in 1 2 3 4 5 6 7; do
12510 ac_script="$ac_script$as_nl$ac_script"
12511 done
12512 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12513 { ac_script=; unset ac_script;}
12514 if test -z "$SED"; then
12515 ac_path_SED_found=false
12516 # Loop through the user's path and test for each of PROGNAME-LIST
12517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518 for as_dir in $PATH
12519 do
12520 IFS=$as_save_IFS
12521 test -z "$as_dir" && as_dir=.
12522 for ac_prog in sed gsed; do
12523 for ac_exec_ext in '' $ac_executable_extensions; do
12524 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12525 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12526 # Check for GNU ac_path_SED and select it if it is found.
12527 # Check for GNU $ac_path_SED
12528 case `"$ac_path_SED" --version 2>&1` in
12529 *GNU*)
12530 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12531 *)
12532 ac_count=0
12533 $as_echo_n 0123456789 >"conftest.in"
12534 while :
12535 do
12536 cat "conftest.in" "conftest.in" >"conftest.tmp"
12537 mv "conftest.tmp" "conftest.in"
12538 cp "conftest.in" "conftest.nl"
12539 $as_echo '' >> "conftest.nl"
12540 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12542 as_fn_arith $ac_count + 1 && ac_count=$as_val
12543 if test $ac_count -gt ${ac_path_SED_max-0}; then
12544 # Best one so far, save it but keep looking for a better one
12545 ac_cv_path_SED="$ac_path_SED"
12546 ac_path_SED_max=$ac_count
12547 fi
12548 # 10*(2^10) chars as input seems more than enough
12549 test $ac_count -gt 10 && break
12550 done
12551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12552 esac
12553
12554 $ac_path_SED_found && break 3
12555 done
12556 done
12557 done
12558 IFS=$as_save_IFS
12559 if test -z "$ac_cv_path_SED"; then
12560 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12561 fi
12562 else
12563 ac_cv_path_SED=$SED
12564 fi
12565
12566 fi
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12568 $as_echo "$ac_cv_path_SED" >&6; }
12569 SED="$ac_cv_path_SED"
12570 rm -f conftest.sed
12571
12572 test -z "$SED" && SED=sed
12573 Xsed="$SED -e 1s/^X//"
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12586 $as_echo_n "checking for fgrep... " >&6; }
12587 if test "${ac_cv_path_FGREP+set}" = set; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12591 then ac_cv_path_FGREP="$GREP -F"
12592 else
12593 if test -z "$FGREP"; then
12594 ac_path_FGREP_found=false
12595 # Loop through the user's path and test for each of PROGNAME-LIST
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12598 do
12599 IFS=$as_save_IFS
12600 test -z "$as_dir" && as_dir=.
12601 for ac_prog in fgrep; do
12602 for ac_exec_ext in '' $ac_executable_extensions; do
12603 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12604 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12605 # Check for GNU ac_path_FGREP and select it if it is found.
12606 # Check for GNU $ac_path_FGREP
12607 case `"$ac_path_FGREP" --version 2>&1` in
12608 *GNU*)
12609 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12610 *)
12611 ac_count=0
12612 $as_echo_n 0123456789 >"conftest.in"
12613 while :
12614 do
12615 cat "conftest.in" "conftest.in" >"conftest.tmp"
12616 mv "conftest.tmp" "conftest.in"
12617 cp "conftest.in" "conftest.nl"
12618 $as_echo 'FGREP' >> "conftest.nl"
12619 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12621 as_fn_arith $ac_count + 1 && ac_count=$as_val
12622 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12623 # Best one so far, save it but keep looking for a better one
12624 ac_cv_path_FGREP="$ac_path_FGREP"
12625 ac_path_FGREP_max=$ac_count
12626 fi
12627 # 10*(2^10) chars as input seems more than enough
12628 test $ac_count -gt 10 && break
12629 done
12630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12631 esac
12632
12633 $ac_path_FGREP_found && break 3
12634 done
12635 done
12636 done
12637 IFS=$as_save_IFS
12638 if test -z "$ac_cv_path_FGREP"; then
12639 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12640 fi
12641 else
12642 ac_cv_path_FGREP=$FGREP
12643 fi
12644
12645 fi
12646 fi
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12648 $as_echo "$ac_cv_path_FGREP" >&6; }
12649 FGREP="$ac_cv_path_FGREP"
12650
12651
12652 test -z "$GREP" && GREP=grep
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672 # Check whether --with-gnu-ld was given.
12673 if test "${with_gnu_ld+set}" = set; then :
12674 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12675 else
12676 with_gnu_ld=no
12677 fi
12678
12679 ac_prog=ld
12680 if test "$GCC" = yes; then
12681 # Check if gcc -print-prog-name=ld gives a path.
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12683 $as_echo_n "checking for ld used by $CC... " >&6; }
12684 case $host in
12685 *-*-mingw*)
12686 # gcc leaves a trailing carriage return which upsets mingw
12687 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12688 *)
12689 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12690 esac
12691 case $ac_prog in
12692 # Accept absolute paths.
12693 [\\/]* | ?:[\\/]*)
12694 re_direlt='/[^/][^/]*/\.\./'
12695 # Canonicalize the pathname of ld
12696 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12697 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12698 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12699 done
12700 test -z "$LD" && LD="$ac_prog"
12701 ;;
12702 "")
12703 # If it fails, then pretend we aren't using GCC.
12704 ac_prog=ld
12705 ;;
12706 *)
12707 # If it is relative, then search for the first ld in PATH.
12708 with_gnu_ld=unknown
12709 ;;
12710 esac
12711 elif test "$with_gnu_ld" = yes; then
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12713 $as_echo_n "checking for GNU ld... " >&6; }
12714 else
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12716 $as_echo_n "checking for non-GNU ld... " >&6; }
12717 fi
12718 if test "${lt_cv_path_LD+set}" = set; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 if test -z "$LD"; then
12722 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12723 for ac_dir in $PATH; do
12724 IFS="$lt_save_ifs"
12725 test -z "$ac_dir" && ac_dir=.
12726 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12727 lt_cv_path_LD="$ac_dir/$ac_prog"
12728 # Check to see if the program is GNU ld. I'd rather use --version,
12729 # but apparently some variants of GNU ld only accept -v.
12730 # Break only if it was the GNU/non-GNU ld that we prefer.
12731 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12732 *GNU* | *'with BFD'*)
12733 test "$with_gnu_ld" != no && break
12734 ;;
12735 *)
12736 test "$with_gnu_ld" != yes && break
12737 ;;
12738 esac
12739 fi
12740 done
12741 IFS="$lt_save_ifs"
12742 else
12743 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12744 fi
12745 fi
12746
12747 LD="$lt_cv_path_LD"
12748 if test -n "$LD"; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12750 $as_echo "$LD" >&6; }
12751 else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12754 fi
12755 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12757 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12758 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12759 $as_echo_n "(cached) " >&6
12760 else
12761 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12762 case `$LD -v 2>&1 </dev/null` in
12763 *GNU* | *'with BFD'*)
12764 lt_cv_prog_gnu_ld=yes
12765 ;;
12766 *)
12767 lt_cv_prog_gnu_ld=no
12768 ;;
12769 esac
12770 fi
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12772 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12773 with_gnu_ld=$lt_cv_prog_gnu_ld
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12784 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12785 if test "${lt_cv_path_NM+set}" = set; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 if test -n "$NM"; then
12789 # Let the user override the test.
12790 lt_cv_path_NM="$NM"
12791 else
12792 lt_nm_to_check="${ac_tool_prefix}nm"
12793 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12794 lt_nm_to_check="$lt_nm_to_check nm"
12795 fi
12796 for lt_tmp_nm in $lt_nm_to_check; do
12797 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12798 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12799 IFS="$lt_save_ifs"
12800 test -z "$ac_dir" && ac_dir=.
12801 tmp_nm="$ac_dir/$lt_tmp_nm"
12802 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12803 # Check to see if the nm accepts a BSD-compat flag.
12804 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12805 # nm: unknown option "B" ignored
12806 # Tru64's nm complains that /dev/null is an invalid object file
12807 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12808 */dev/null* | *'Invalid file or object type'*)
12809 lt_cv_path_NM="$tmp_nm -B"
12810 break
12811 ;;
12812 *)
12813 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12814 */dev/null*)
12815 lt_cv_path_NM="$tmp_nm -p"
12816 break
12817 ;;
12818 *)
12819 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12820 continue # so that we can try to find one that supports BSD flags
12821 ;;
12822 esac
12823 ;;
12824 esac
12825 fi
12826 done
12827 IFS="$lt_save_ifs"
12828 done
12829 : ${lt_cv_path_NM=no}
12830 fi
12831 fi
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12833 $as_echo "$lt_cv_path_NM" >&6; }
12834 if test "$lt_cv_path_NM" != "no"; then
12835 NM="$lt_cv_path_NM"
12836 else
12837 # Didn't find any BSD compatible name lister, look for dumpbin.
12838 if test -n "$DUMPBIN"; then :
12839 # Let the user override the test.
12840 else
12841 if test -n "$ac_tool_prefix"; then
12842 for ac_prog in dumpbin "link -dump"
12843 do
12844 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12845 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847 $as_echo_n "checking for $ac_word... " >&6; }
12848 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12849 $as_echo_n "(cached) " >&6
12850 else
12851 if test -n "$DUMPBIN"; then
12852 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12853 else
12854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855 for as_dir in $PATH
12856 do
12857 IFS=$as_save_IFS
12858 test -z "$as_dir" && as_dir=.
12859 for ac_exec_ext in '' $ac_executable_extensions; do
12860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12861 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12863 break 2
12864 fi
12865 done
12866 done
12867 IFS=$as_save_IFS
12868
12869 fi
12870 fi
12871 DUMPBIN=$ac_cv_prog_DUMPBIN
12872 if test -n "$DUMPBIN"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12874 $as_echo "$DUMPBIN" >&6; }
12875 else
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877 $as_echo "no" >&6; }
12878 fi
12879
12880
12881 test -n "$DUMPBIN" && break
12882 done
12883 fi
12884 if test -z "$DUMPBIN"; then
12885 ac_ct_DUMPBIN=$DUMPBIN
12886 for ac_prog in dumpbin "link -dump"
12887 do
12888 # Extract the first word of "$ac_prog", so it can be a program name with args.
12889 set dummy $ac_prog; ac_word=$2
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12891 $as_echo_n "checking for $ac_word... " >&6; }
12892 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12893 $as_echo_n "(cached) " >&6
12894 else
12895 if test -n "$ac_ct_DUMPBIN"; then
12896 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12897 else
12898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899 for as_dir in $PATH
12900 do
12901 IFS=$as_save_IFS
12902 test -z "$as_dir" && as_dir=.
12903 for ac_exec_ext in '' $ac_executable_extensions; do
12904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12905 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12907 break 2
12908 fi
12909 done
12910 done
12911 IFS=$as_save_IFS
12912
12913 fi
12914 fi
12915 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12916 if test -n "$ac_ct_DUMPBIN"; then
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12918 $as_echo "$ac_ct_DUMPBIN" >&6; }
12919 else
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921 $as_echo "no" >&6; }
12922 fi
12923
12924
12925 test -n "$ac_ct_DUMPBIN" && break
12926 done
12927
12928 if test "x$ac_ct_DUMPBIN" = x; then
12929 DUMPBIN=":"
12930 else
12931 case $cross_compiling:$ac_tool_warned in
12932 yes:)
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12935 ac_tool_warned=yes ;;
12936 esac
12937 DUMPBIN=$ac_ct_DUMPBIN
12938 fi
12939 fi
12940
12941 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12942 *COFF*)
12943 DUMPBIN="$DUMPBIN -symbols"
12944 ;;
12945 *)
12946 DUMPBIN=:
12947 ;;
12948 esac
12949 fi
12950
12951 if test "$DUMPBIN" != ":"; then
12952 NM="$DUMPBIN"
12953 fi
12954 fi
12955 test -z "$NM" && NM=nm
12956
12957
12958
12959
12960
12961
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12963 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12964 if test "${lt_cv_nm_interface+set}" = set; then :
12965 $as_echo_n "(cached) " >&6
12966 else
12967 lt_cv_nm_interface="BSD nm"
12968 echo "int some_variable = 0;" > conftest.$ac_ext
12969 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12970 (eval "$ac_compile" 2>conftest.err)
12971 cat conftest.err >&5
12972 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12973 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12974 cat conftest.err >&5
12975 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12976 cat conftest.out >&5
12977 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12978 lt_cv_nm_interface="MS dumpbin"
12979 fi
12980 rm -f conftest*
12981 fi
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12983 $as_echo "$lt_cv_nm_interface" >&6; }
12984
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12986 $as_echo_n "checking whether ln -s works... " >&6; }
12987 LN_S=$as_ln_s
12988 if test "$LN_S" = "ln -s"; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12990 $as_echo "yes" >&6; }
12991 else
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12993 $as_echo "no, using $LN_S" >&6; }
12994 fi
12995
12996 # find the maximum length of command line arguments
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12998 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12999 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
13001 else
13002 i=0
13003 teststring="ABCD"
13004
13005 case $build_os in
13006 msdosdjgpp*)
13007 # On DJGPP, this test can blow up pretty badly due to problems in libc
13008 # (any single argument exceeding 2000 bytes causes a buffer overrun
13009 # during glob expansion). Even if it were fixed, the result of this
13010 # check would be larger than it should be.
13011 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13012 ;;
13013
13014 gnu*)
13015 # Under GNU Hurd, this test is not required because there is
13016 # no limit to the length of command line arguments.
13017 # Libtool will interpret -1 as no limit whatsoever
13018 lt_cv_sys_max_cmd_len=-1;
13019 ;;
13020
13021 cygwin* | mingw* | cegcc*)
13022 # On Win9x/ME, this test blows up -- it succeeds, but takes
13023 # about 5 minutes as the teststring grows exponentially.
13024 # Worse, since 9x/ME are not pre-emptively multitasking,
13025 # you end up with a "frozen" computer, even though with patience
13026 # the test eventually succeeds (with a max line length of 256k).
13027 # Instead, let's just punt: use the minimum linelength reported by
13028 # all of the supported platforms: 8192 (on NT/2K/XP).
13029 lt_cv_sys_max_cmd_len=8192;
13030 ;;
13031
13032 mint*)
13033 # On MiNT this can take a long time and run out of memory.
13034 lt_cv_sys_max_cmd_len=8192;
13035 ;;
13036
13037 amigaos*)
13038 # On AmigaOS with pdksh, this test takes hours, literally.
13039 # So we just punt and use a minimum line length of 8192.
13040 lt_cv_sys_max_cmd_len=8192;
13041 ;;
13042
13043 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13044 # This has been around since 386BSD, at least. Likely further.
13045 if test -x /sbin/sysctl; then
13046 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13047 elif test -x /usr/sbin/sysctl; then
13048 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13049 else
13050 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13051 fi
13052 # And add a safety zone
13053 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13055 ;;
13056
13057 interix*)
13058 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13059 lt_cv_sys_max_cmd_len=196608
13060 ;;
13061
13062 osf*)
13063 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13064 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13065 # nice to cause kernel panics so lets avoid the loop below.
13066 # First set a reasonable default.
13067 lt_cv_sys_max_cmd_len=16384
13068 #
13069 if test -x /sbin/sysconfig; then
13070 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13071 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13072 esac
13073 fi
13074 ;;
13075 sco3.2v5*)
13076 lt_cv_sys_max_cmd_len=102400
13077 ;;
13078 sysv5* | sco5v6* | sysv4.2uw2*)
13079 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13080 if test -n "$kargmax"; then
13081 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13082 else
13083 lt_cv_sys_max_cmd_len=32768
13084 fi
13085 ;;
13086 *)
13087 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13088 if test -n "$lt_cv_sys_max_cmd_len"; then
13089 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13091 else
13092 # Make teststring a little bigger before we do anything with it.
13093 # a 1K string should be a reasonable start.
13094 for i in 1 2 3 4 5 6 7 8 ; do
13095 teststring=$teststring$teststring
13096 done
13097 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13098 # If test is not a shell built-in, we'll probably end up computing a
13099 # maximum length that is only half of the actual maximum length, but
13100 # we can't tell.
13101 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13102 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13103 test $i != 17 # 1/2 MB should be enough
13104 do
13105 i=`expr $i + 1`
13106 teststring=$teststring$teststring
13107 done
13108 # Only check the string length outside the loop.
13109 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13110 teststring=
13111 # Add a significant safety factor because C++ compilers can tack on
13112 # massive amounts of additional arguments before passing them to the
13113 # linker. It appears as though 1/2 is a usable value.
13114 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13115 fi
13116 ;;
13117 esac
13118
13119 fi
13120
13121 if test -n $lt_cv_sys_max_cmd_len ; then
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13123 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13124 else
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13126 $as_echo "none" >&6; }
13127 fi
13128 max_cmd_len=$lt_cv_sys_max_cmd_len
13129
13130
13131
13132
13133
13134
13135 : ${CP="cp -f"}
13136 : ${MV="mv -f"}
13137 : ${RM="rm -f"}
13138
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13140 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13141 # Try some XSI features
13142 xsi_shell=no
13143 ( _lt_dummy="a/b/c"
13144 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13145 = c,a/b,, \
13146 && eval 'test $(( 1 + 1 )) -eq 2 \
13147 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13148 && xsi_shell=yes
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13150 $as_echo "$xsi_shell" >&6; }
13151
13152
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13154 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13155 lt_shell_append=no
13156 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13157 >/dev/null 2>&1 \
13158 && lt_shell_append=yes
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13160 $as_echo "$lt_shell_append" >&6; }
13161
13162
13163 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13164 lt_unset=unset
13165 else
13166 lt_unset=false
13167 fi
13168
13169
13170
13171
13172
13173 # test EBCDIC or ASCII
13174 case `echo X|tr X '\101'` in
13175 A) # ASCII based system
13176 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13177 lt_SP2NL='tr \040 \012'
13178 lt_NL2SP='tr \015\012 \040\040'
13179 ;;
13180 *) # EBCDIC based system
13181 lt_SP2NL='tr \100 \n'
13182 lt_NL2SP='tr \r\n \100\100'
13183 ;;
13184 esac
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13195 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13196 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 lt_cv_ld_reload_flag='-r'
13200 fi
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13202 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13203 reload_flag=$lt_cv_ld_reload_flag
13204 case $reload_flag in
13205 "" | " "*) ;;
13206 *) reload_flag=" $reload_flag" ;;
13207 esac
13208 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13209 case $host_os in
13210 darwin*)
13211 if test "$GCC" = yes; then
13212 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13213 else
13214 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13215 fi
13216 ;;
13217 esac
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227 if test -n "$ac_tool_prefix"; then
13228 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13229 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13231 $as_echo_n "checking for $ac_word... " >&6; }
13232 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 if test -n "$OBJDUMP"; then
13236 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13237 else
13238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239 for as_dir in $PATH
13240 do
13241 IFS=$as_save_IFS
13242 test -z "$as_dir" && as_dir=.
13243 for ac_exec_ext in '' $ac_executable_extensions; do
13244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13245 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13247 break 2
13248 fi
13249 done
13250 done
13251 IFS=$as_save_IFS
13252
13253 fi
13254 fi
13255 OBJDUMP=$ac_cv_prog_OBJDUMP
13256 if test -n "$OBJDUMP"; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13258 $as_echo "$OBJDUMP" >&6; }
13259 else
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261 $as_echo "no" >&6; }
13262 fi
13263
13264
13265 fi
13266 if test -z "$ac_cv_prog_OBJDUMP"; then
13267 ac_ct_OBJDUMP=$OBJDUMP
13268 # Extract the first word of "objdump", so it can be a program name with args.
13269 set dummy objdump; ac_word=$2
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13271 $as_echo_n "checking for $ac_word... " >&6; }
13272 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275 if test -n "$ac_ct_OBJDUMP"; then
13276 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13277 else
13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279 for as_dir in $PATH
13280 do
13281 IFS=$as_save_IFS
13282 test -z "$as_dir" && as_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
13284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13285 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13287 break 2
13288 fi
13289 done
13290 done
13291 IFS=$as_save_IFS
13292
13293 fi
13294 fi
13295 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13296 if test -n "$ac_ct_OBJDUMP"; then
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13298 $as_echo "$ac_ct_OBJDUMP" >&6; }
13299 else
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301 $as_echo "no" >&6; }
13302 fi
13303
13304 if test "x$ac_ct_OBJDUMP" = x; then
13305 OBJDUMP="false"
13306 else
13307 case $cross_compiling:$ac_tool_warned in
13308 yes:)
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13311 ac_tool_warned=yes ;;
13312 esac
13313 OBJDUMP=$ac_ct_OBJDUMP
13314 fi
13315 else
13316 OBJDUMP="$ac_cv_prog_OBJDUMP"
13317 fi
13318
13319 test -z "$OBJDUMP" && OBJDUMP=objdump
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13330 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13331 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13332 $as_echo_n "(cached) " >&6
13333 else
13334 lt_cv_file_magic_cmd='$MAGIC_CMD'
13335 lt_cv_file_magic_test_file=
13336 lt_cv_deplibs_check_method='unknown'
13337 # Need to set the preceding variable on all platforms that support
13338 # interlibrary dependencies.
13339 # 'none' -- dependencies not supported.
13340 # `unknown' -- same as none, but documents that we really don't know.
13341 # 'pass_all' -- all dependencies passed with no checks.
13342 # 'test_compile' -- check by making test program.
13343 # 'file_magic [[regex]]' -- check by looking for files in library path
13344 # which responds to the $file_magic_cmd with a given extended regex.
13345 # If you have `file' or equivalent on your system and you're not sure
13346 # whether `pass_all' will *always* work, you probably want this one.
13347
13348 case $host_os in
13349 aix[4-9]*)
13350 lt_cv_deplibs_check_method=pass_all
13351 ;;
13352
13353 beos*)
13354 lt_cv_deplibs_check_method=pass_all
13355 ;;
13356
13357 bsdi[45]*)
13358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13359 lt_cv_file_magic_cmd='/usr/bin/file -L'
13360 lt_cv_file_magic_test_file=/shlib/libc.so
13361 ;;
13362
13363 cygwin*)
13364 # func_win32_libid is a shell function defined in ltmain.sh
13365 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13366 lt_cv_file_magic_cmd='func_win32_libid'
13367 ;;
13368
13369 mingw* | pw32*)
13370 # Base MSYS/MinGW do not provide the 'file' command needed by
13371 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13372 # unless we find 'file', for example because we are cross-compiling.
13373 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13374 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13375 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13376 lt_cv_file_magic_cmd='func_win32_libid'
13377 else
13378 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13379 lt_cv_file_magic_cmd='$OBJDUMP -f'
13380 fi
13381 ;;
13382
13383 cegcc*)
13384 # use the weaker test based on 'objdump'. See mingw*.
13385 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13386 lt_cv_file_magic_cmd='$OBJDUMP -f'
13387 ;;
13388
13389 darwin* | rhapsody*)
13390 lt_cv_deplibs_check_method=pass_all
13391 ;;
13392
13393 freebsd* | dragonfly*)
13394 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13395 case $host_cpu in
13396 i*86 )
13397 # Not sure whether the presence of OpenBSD here was a mistake.
13398 # Let's accept both of them until this is cleared up.
13399 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13400 lt_cv_file_magic_cmd=/usr/bin/file
13401 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13402 ;;
13403 esac
13404 else
13405 lt_cv_deplibs_check_method=pass_all
13406 fi
13407 ;;
13408
13409 gnu*)
13410 lt_cv_deplibs_check_method=pass_all
13411 ;;
13412
13413 haiku*)
13414 lt_cv_deplibs_check_method=pass_all
13415 ;;
13416
13417 hpux10.20* | hpux11*)
13418 lt_cv_file_magic_cmd=/usr/bin/file
13419 case $host_cpu in
13420 ia64*)
13421 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13422 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13423 ;;
13424 hppa*64*)
13425 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]'
13426 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13427 ;;
13428 *)
13429 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13430 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13431 ;;
13432 esac
13433 ;;
13434
13435 interix[3-9]*)
13436 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13438 ;;
13439
13440 irix5* | irix6* | nonstopux*)
13441 case $LD in
13442 *-32|*"-32 ") libmagic=32-bit;;
13443 *-n32|*"-n32 ") libmagic=N32;;
13444 *-64|*"-64 ") libmagic=64-bit;;
13445 *) libmagic=never-match;;
13446 esac
13447 lt_cv_deplibs_check_method=pass_all
13448 ;;
13449
13450 # This must be Linux ELF.
13451 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13452 lt_cv_deplibs_check_method=pass_all
13453 ;;
13454
13455 netbsd*)
13456 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13458 else
13459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13460 fi
13461 ;;
13462
13463 newos6*)
13464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13465 lt_cv_file_magic_cmd=/usr/bin/file
13466 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13467 ;;
13468
13469 *nto* | *qnx*)
13470 lt_cv_deplibs_check_method=pass_all
13471 ;;
13472
13473 openbsd*)
13474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13476 else
13477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13478 fi
13479 ;;
13480
13481 osf3* | osf4* | osf5*)
13482 lt_cv_deplibs_check_method=pass_all
13483 ;;
13484
13485 rdos*)
13486 lt_cv_deplibs_check_method=pass_all
13487 ;;
13488
13489 solaris*)
13490 lt_cv_deplibs_check_method=pass_all
13491 ;;
13492
13493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13494 lt_cv_deplibs_check_method=pass_all
13495 ;;
13496
13497 sysv4 | sysv4.3*)
13498 case $host_vendor in
13499 motorola)
13500 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]'
13501 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13502 ;;
13503 ncr)
13504 lt_cv_deplibs_check_method=pass_all
13505 ;;
13506 sequent)
13507 lt_cv_file_magic_cmd='/bin/file'
13508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13509 ;;
13510 sni)
13511 lt_cv_file_magic_cmd='/bin/file'
13512 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13513 lt_cv_file_magic_test_file=/lib/libc.so
13514 ;;
13515 siemens)
13516 lt_cv_deplibs_check_method=pass_all
13517 ;;
13518 pc)
13519 lt_cv_deplibs_check_method=pass_all
13520 ;;
13521 esac
13522 ;;
13523
13524 tpf*)
13525 lt_cv_deplibs_check_method=pass_all
13526 ;;
13527 esac
13528
13529 fi
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13531 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13532 file_magic_cmd=$lt_cv_file_magic_cmd
13533 deplibs_check_method=$lt_cv_deplibs_check_method
13534 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547 if test -n "$ac_tool_prefix"; then
13548 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13549 set dummy ${ac_tool_prefix}ar; ac_word=$2
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13551 $as_echo_n "checking for $ac_word... " >&6; }
13552 if test "${ac_cv_prog_AR+set}" = set; then :
13553 $as_echo_n "(cached) " >&6
13554 else
13555 if test -n "$AR"; then
13556 ac_cv_prog_AR="$AR" # Let the user override the test.
13557 else
13558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13559 for as_dir in $PATH
13560 do
13561 IFS=$as_save_IFS
13562 test -z "$as_dir" && as_dir=.
13563 for ac_exec_ext in '' $ac_executable_extensions; do
13564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13565 ac_cv_prog_AR="${ac_tool_prefix}ar"
13566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13567 break 2
13568 fi
13569 done
13570 done
13571 IFS=$as_save_IFS
13572
13573 fi
13574 fi
13575 AR=$ac_cv_prog_AR
13576 if test -n "$AR"; then
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13578 $as_echo "$AR" >&6; }
13579 else
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581 $as_echo "no" >&6; }
13582 fi
13583
13584
13585 fi
13586 if test -z "$ac_cv_prog_AR"; then
13587 ac_ct_AR=$AR
13588 # Extract the first word of "ar", so it can be a program name with args.
13589 set dummy ar; ac_word=$2
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13591 $as_echo_n "checking for $ac_word... " >&6; }
13592 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13593 $as_echo_n "(cached) " >&6
13594 else
13595 if test -n "$ac_ct_AR"; then
13596 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13597 else
13598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13599 for as_dir in $PATH
13600 do
13601 IFS=$as_save_IFS
13602 test -z "$as_dir" && as_dir=.
13603 for ac_exec_ext in '' $ac_executable_extensions; do
13604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13605 ac_cv_prog_ac_ct_AR="ar"
13606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13607 break 2
13608 fi
13609 done
13610 done
13611 IFS=$as_save_IFS
13612
13613 fi
13614 fi
13615 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13616 if test -n "$ac_ct_AR"; then
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13618 $as_echo "$ac_ct_AR" >&6; }
13619 else
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13621 $as_echo "no" >&6; }
13622 fi
13623
13624 if test "x$ac_ct_AR" = x; then
13625 AR="false"
13626 else
13627 case $cross_compiling:$ac_tool_warned in
13628 yes:)
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13631 ac_tool_warned=yes ;;
13632 esac
13633 AR=$ac_ct_AR
13634 fi
13635 else
13636 AR="$ac_cv_prog_AR"
13637 fi
13638
13639 test -z "$AR" && AR=ar
13640 test -z "$AR_FLAGS" && AR_FLAGS=cru
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652 if test -n "$ac_tool_prefix"; then
13653 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13654 set dummy ${ac_tool_prefix}strip; ac_word=$2
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13656 $as_echo_n "checking for $ac_word... " >&6; }
13657 if test "${ac_cv_prog_STRIP+set}" = set; then :
13658 $as_echo_n "(cached) " >&6
13659 else
13660 if test -n "$STRIP"; then
13661 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13662 else
13663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13664 for as_dir in $PATH
13665 do
13666 IFS=$as_save_IFS
13667 test -z "$as_dir" && as_dir=.
13668 for ac_exec_ext in '' $ac_executable_extensions; do
13669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13670 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13672 break 2
13673 fi
13674 done
13675 done
13676 IFS=$as_save_IFS
13677
13678 fi
13679 fi
13680 STRIP=$ac_cv_prog_STRIP
13681 if test -n "$STRIP"; then
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13683 $as_echo "$STRIP" >&6; }
13684 else
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13686 $as_echo "no" >&6; }
13687 fi
13688
13689
13690 fi
13691 if test -z "$ac_cv_prog_STRIP"; then
13692 ac_ct_STRIP=$STRIP
13693 # Extract the first word of "strip", so it can be a program name with args.
13694 set dummy strip; ac_word=$2
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13696 $as_echo_n "checking for $ac_word... " >&6; }
13697 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13698 $as_echo_n "(cached) " >&6
13699 else
13700 if test -n "$ac_ct_STRIP"; then
13701 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13702 else
13703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13704 for as_dir in $PATH
13705 do
13706 IFS=$as_save_IFS
13707 test -z "$as_dir" && as_dir=.
13708 for ac_exec_ext in '' $ac_executable_extensions; do
13709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13710 ac_cv_prog_ac_ct_STRIP="strip"
13711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13712 break 2
13713 fi
13714 done
13715 done
13716 IFS=$as_save_IFS
13717
13718 fi
13719 fi
13720 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13721 if test -n "$ac_ct_STRIP"; then
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13723 $as_echo "$ac_ct_STRIP" >&6; }
13724 else
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13726 $as_echo "no" >&6; }
13727 fi
13728
13729 if test "x$ac_ct_STRIP" = x; then
13730 STRIP=":"
13731 else
13732 case $cross_compiling:$ac_tool_warned in
13733 yes:)
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13736 ac_tool_warned=yes ;;
13737 esac
13738 STRIP=$ac_ct_STRIP
13739 fi
13740 else
13741 STRIP="$ac_cv_prog_STRIP"
13742 fi
13743
13744 test -z "$STRIP" && STRIP=:
13745
13746
13747
13748
13749
13750
13751 if test -n "$ac_tool_prefix"; then
13752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13753 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13755 $as_echo_n "checking for $ac_word... " >&6; }
13756 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13757 $as_echo_n "(cached) " >&6
13758 else
13759 if test -n "$RANLIB"; then
13760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13761 else
13762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13763 for as_dir in $PATH
13764 do
13765 IFS=$as_save_IFS
13766 test -z "$as_dir" && as_dir=.
13767 for ac_exec_ext in '' $ac_executable_extensions; do
13768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13771 break 2
13772 fi
13773 done
13774 done
13775 IFS=$as_save_IFS
13776
13777 fi
13778 fi
13779 RANLIB=$ac_cv_prog_RANLIB
13780 if test -n "$RANLIB"; then
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13782 $as_echo "$RANLIB" >&6; }
13783 else
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13785 $as_echo "no" >&6; }
13786 fi
13787
13788
13789 fi
13790 if test -z "$ac_cv_prog_RANLIB"; then
13791 ac_ct_RANLIB=$RANLIB
13792 # Extract the first word of "ranlib", so it can be a program name with args.
13793 set dummy ranlib; ac_word=$2
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13795 $as_echo_n "checking for $ac_word... " >&6; }
13796 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13797 $as_echo_n "(cached) " >&6
13798 else
13799 if test -n "$ac_ct_RANLIB"; then
13800 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13801 else
13802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13803 for as_dir in $PATH
13804 do
13805 IFS=$as_save_IFS
13806 test -z "$as_dir" && as_dir=.
13807 for ac_exec_ext in '' $ac_executable_extensions; do
13808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13809 ac_cv_prog_ac_ct_RANLIB="ranlib"
13810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13811 break 2
13812 fi
13813 done
13814 done
13815 IFS=$as_save_IFS
13816
13817 fi
13818 fi
13819 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13820 if test -n "$ac_ct_RANLIB"; then
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13822 $as_echo "$ac_ct_RANLIB" >&6; }
13823 else
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13825 $as_echo "no" >&6; }
13826 fi
13827
13828 if test "x$ac_ct_RANLIB" = x; then
13829 RANLIB=":"
13830 else
13831 case $cross_compiling:$ac_tool_warned in
13832 yes:)
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13835 ac_tool_warned=yes ;;
13836 esac
13837 RANLIB=$ac_ct_RANLIB
13838 fi
13839 else
13840 RANLIB="$ac_cv_prog_RANLIB"
13841 fi
13842
13843 test -z "$RANLIB" && RANLIB=:
13844
13845
13846
13847
13848
13849
13850 # Determine commands to create old-style static archives.
13851 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13852 old_postinstall_cmds='chmod 644 $oldlib'
13853 old_postuninstall_cmds=
13854
13855 if test -n "$RANLIB"; then
13856 case $host_os in
13857 openbsd*)
13858 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13859 ;;
13860 *)
13861 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13862 ;;
13863 esac
13864 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13865 fi
13866
13867 case $host_os in
13868 darwin*)
13869 lock_old_archive_extraction=yes ;;
13870 *)
13871 lock_old_archive_extraction=no ;;
13872 esac
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912 # If no C compiler was specified, use CC.
13913 LTCC=${LTCC-"$CC"}
13914
13915 # If no C compiler flags were specified, use CFLAGS.
13916 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13917
13918 # Allow CC to be a program name with arguments.
13919 compiler=$CC
13920
13921
13922 # Check for command to grab the raw symbol name followed by C symbol from nm.
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13924 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13925 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13926 $as_echo_n "(cached) " >&6
13927 else
13928
13929 # These are sane defaults that work on at least a few old systems.
13930 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13931
13932 # Character class describing NM global symbol codes.
13933 symcode='[BCDEGRST]'
13934
13935 # Regexp to match symbols that can be accessed directly from C.
13936 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13937
13938 # Define system-specific variables.
13939 case $host_os in
13940 aix*)
13941 symcode='[BCDT]'
13942 ;;
13943 cygwin* | mingw* | pw32* | cegcc*)
13944 symcode='[ABCDGISTW]'
13945 ;;
13946 hpux*)
13947 if test "$host_cpu" = ia64; then
13948 symcode='[ABCDEGRST]'
13949 fi
13950 ;;
13951 irix* | nonstopux*)
13952 symcode='[BCDEGRST]'
13953 ;;
13954 osf*)
13955 symcode='[BCDEGQRST]'
13956 ;;
13957 solaris*)
13958 symcode='[BDRT]'
13959 ;;
13960 sco3.2v5*)
13961 symcode='[DT]'
13962 ;;
13963 sysv4.2uw2*)
13964 symcode='[DT]'
13965 ;;
13966 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13967 symcode='[ABDT]'
13968 ;;
13969 sysv4)
13970 symcode='[DFNSTU]'
13971 ;;
13972 esac
13973
13974 # If we're using GNU nm, then use its standard symbol codes.
13975 case `$NM -V 2>&1` in
13976 *GNU* | *'with BFD'*)
13977 symcode='[ABCDGIRSTW]' ;;
13978 esac
13979
13980 # Transform an extracted symbol line into a proper C declaration.
13981 # Some systems (esp. on ia64) link data and code symbols differently,
13982 # so use this general approach.
13983 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13984
13985 # Transform an extracted symbol line into symbol name and symbol address
13986 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13987 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'"
13988
13989 # Handle CRLF in mingw tool chain
13990 opt_cr=
13991 case $build_os in
13992 mingw*)
13993 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13994 ;;
13995 esac
13996
13997 # Try without a prefix underscore, then with it.
13998 for ac_symprfx in "" "_"; do
13999
14000 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14001 symxfrm="\\1 $ac_symprfx\\2 \\2"
14002
14003 # Write the raw and C identifiers.
14004 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14005 # Fake it for dumpbin and say T for any non-static function
14006 # and D for any global variable.
14007 # Also find C++ and __fastcall symbols from MSVC++,
14008 # which start with @ or ?.
14009 lt_cv_sys_global_symbol_pipe="$AWK '"\
14010 " {last_section=section; section=\$ 3};"\
14011 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14012 " \$ 0!~/External *\|/{next};"\
14013 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14014 " {if(hide[section]) next};"\
14015 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14016 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14017 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14018 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14019 " ' prfx=^$ac_symprfx"
14020 else
14021 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14022 fi
14023
14024 # Check to see that the pipe works correctly.
14025 pipe_works=no
14026
14027 rm -f conftest*
14028 cat > conftest.$ac_ext <<_LT_EOF
14029 #ifdef __cplusplus
14030 extern "C" {
14031 #endif
14032 char nm_test_var;
14033 void nm_test_func(void);
14034 void nm_test_func(void){}
14035 #ifdef __cplusplus
14036 }
14037 #endif
14038 int main(){nm_test_var='a';nm_test_func();return(0);}
14039 _LT_EOF
14040
14041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14042 (eval $ac_compile) 2>&5
14043 ac_status=$?
14044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14045 test $ac_status = 0; }; then
14046 # Now try to grab the symbols.
14047 nlist=conftest.nm
14048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14049 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14050 ac_status=$?
14051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14052 test $ac_status = 0; } && test -s "$nlist"; then
14053 # Try sorting and uniquifying the output.
14054 if sort "$nlist" | uniq > "$nlist"T; then
14055 mv -f "$nlist"T "$nlist"
14056 else
14057 rm -f "$nlist"T
14058 fi
14059
14060 # Make sure that we snagged all the symbols we need.
14061 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14062 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14063 cat <<_LT_EOF > conftest.$ac_ext
14064 #ifdef __cplusplus
14065 extern "C" {
14066 #endif
14067
14068 _LT_EOF
14069 # Now generate the symbol file.
14070 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14071
14072 cat <<_LT_EOF >> conftest.$ac_ext
14073
14074 /* The mapping between symbol names and symbols. */
14075 const struct {
14076 const char *name;
14077 void *address;
14078 }
14079 lt__PROGRAM__LTX_preloaded_symbols[] =
14080 {
14081 { "@PROGRAM@", (void *) 0 },
14082 _LT_EOF
14083 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14084 cat <<\_LT_EOF >> conftest.$ac_ext
14085 {0, (void *) 0}
14086 };
14087
14088 /* This works around a problem in FreeBSD linker */
14089 #ifdef FREEBSD_WORKAROUND
14090 static const void *lt_preloaded_setup() {
14091 return lt__PROGRAM__LTX_preloaded_symbols;
14092 }
14093 #endif
14094
14095 #ifdef __cplusplus
14096 }
14097 #endif
14098 _LT_EOF
14099 # Now try linking the two files.
14100 mv conftest.$ac_objext conftstm.$ac_objext
14101 lt_save_LIBS="$LIBS"
14102 lt_save_CFLAGS="$CFLAGS"
14103 LIBS="conftstm.$ac_objext"
14104 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14106 (eval $ac_link) 2>&5
14107 ac_status=$?
14108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14109 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14110 pipe_works=yes
14111 fi
14112 LIBS="$lt_save_LIBS"
14113 CFLAGS="$lt_save_CFLAGS"
14114 else
14115 echo "cannot find nm_test_func in $nlist" >&5
14116 fi
14117 else
14118 echo "cannot find nm_test_var in $nlist" >&5
14119 fi
14120 else
14121 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14122 fi
14123 else
14124 echo "$progname: failed program was:" >&5
14125 cat conftest.$ac_ext >&5
14126 fi
14127 rm -rf conftest* conftst*
14128
14129 # Do not use the global_symbol_pipe unless it works.
14130 if test "$pipe_works" = yes; then
14131 break
14132 else
14133 lt_cv_sys_global_symbol_pipe=
14134 fi
14135 done
14136
14137 fi
14138
14139 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14140 lt_cv_sys_global_symbol_to_cdecl=
14141 fi
14142 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14144 $as_echo "failed" >&6; }
14145 else
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14147 $as_echo "ok" >&6; }
14148 fi
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171 # Check whether --enable-libtool-lock was given.
14172 if test "${enable_libtool_lock+set}" = set; then :
14173 enableval=$enable_libtool_lock;
14174 fi
14175
14176 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14177
14178 # Some flags need to be propagated to the compiler or linker for good
14179 # libtool support.
14180 case $host in
14181 ia64-*-hpux*)
14182 # Find out which ABI we are using.
14183 echo 'int i;' > conftest.$ac_ext
14184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14185 (eval $ac_compile) 2>&5
14186 ac_status=$?
14187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14188 test $ac_status = 0; }; then
14189 case `/usr/bin/file conftest.$ac_objext` in
14190 *ELF-32*)
14191 HPUX_IA64_MODE="32"
14192 ;;
14193 *ELF-64*)
14194 HPUX_IA64_MODE="64"
14195 ;;
14196 esac
14197 fi
14198 rm -rf conftest*
14199 ;;
14200 *-*-irix6*)
14201 # Find out which ABI we are using.
14202 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14204 (eval $ac_compile) 2>&5
14205 ac_status=$?
14206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14207 test $ac_status = 0; }; then
14208 if test "$lt_cv_prog_gnu_ld" = yes; then
14209 case `/usr/bin/file conftest.$ac_objext` in
14210 *32-bit*)
14211 LD="${LD-ld} -melf32bsmip"
14212 ;;
14213 *N32*)
14214 LD="${LD-ld} -melf32bmipn32"
14215 ;;
14216 *64-bit*)
14217 LD="${LD-ld} -melf64bmip"
14218 ;;
14219 esac
14220 else
14221 case `/usr/bin/file conftest.$ac_objext` in
14222 *32-bit*)
14223 LD="${LD-ld} -32"
14224 ;;
14225 *N32*)
14226 LD="${LD-ld} -n32"
14227 ;;
14228 *64-bit*)
14229 LD="${LD-ld} -64"
14230 ;;
14231 esac
14232 fi
14233 fi
14234 rm -rf conftest*
14235 ;;
14236
14237 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14238 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14239 # Find out which ABI we are using.
14240 echo 'int i;' > conftest.$ac_ext
14241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14242 (eval $ac_compile) 2>&5
14243 ac_status=$?
14244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14245 test $ac_status = 0; }; then
14246 case `/usr/bin/file conftest.o` in
14247 *32-bit*)
14248 case $host in
14249 x86_64-*kfreebsd*-gnu)
14250 LD="${LD-ld} -m elf_i386_fbsd"
14251 ;;
14252 x86_64-*linux*)
14253 case `/usr/bin/file conftest.o` in
14254 *x86-64*)
14255 LD="${LD-ld} -m elf32_x86_64"
14256 ;;
14257 *)
14258 LD="${LD-ld} -m elf_i386"
14259 ;;
14260 esac
14261 ;;
14262 powerpc64le-*linux*)
14263 LD="${LD-ld} -m elf32lppclinux"
14264 ;;
14265 powerpc64-*linux*)
14266 LD="${LD-ld} -m elf32ppclinux"
14267 ;;
14268 s390x-*linux*)
14269 LD="${LD-ld} -m elf_s390"
14270 ;;
14271 sparc64-*linux*)
14272 LD="${LD-ld} -m elf32_sparc"
14273 ;;
14274 esac
14275 ;;
14276 *64-bit*)
14277 case $host in
14278 x86_64-*kfreebsd*-gnu)
14279 LD="${LD-ld} -m elf_x86_64_fbsd"
14280 ;;
14281 x86_64-*linux*)
14282 LD="${LD-ld} -m elf_x86_64"
14283 ;;
14284 powerpcle-*linux*)
14285 LD="${LD-ld} -m elf64lppc"
14286 ;;
14287 powerpc-*linux*)
14288 LD="${LD-ld} -m elf64ppc"
14289 ;;
14290 s390*-*linux*|s390*-*tpf*)
14291 LD="${LD-ld} -m elf64_s390"
14292 ;;
14293 sparc*-*linux*)
14294 LD="${LD-ld} -m elf64_sparc"
14295 ;;
14296 esac
14297 ;;
14298 esac
14299 fi
14300 rm -rf conftest*
14301 ;;
14302
14303 *-*-sco3.2v5*)
14304 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14305 SAVE_CFLAGS="$CFLAGS"
14306 CFLAGS="$CFLAGS -belf"
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14308 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14309 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14310 $as_echo_n "(cached) " >&6
14311 else
14312 ac_ext=c
14313 ac_cpp='$CPP $CPPFLAGS'
14314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14317
14318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319 /* end confdefs.h. */
14320
14321 int
14322 main ()
14323 {
14324
14325 ;
14326 return 0;
14327 }
14328 _ACEOF
14329 if ac_fn_c_try_link "$LINENO"; then :
14330 lt_cv_cc_needs_belf=yes
14331 else
14332 lt_cv_cc_needs_belf=no
14333 fi
14334 rm -f core conftest.err conftest.$ac_objext \
14335 conftest$ac_exeext conftest.$ac_ext
14336 ac_ext=c
14337 ac_cpp='$CPP $CPPFLAGS'
14338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14341
14342 fi
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14344 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14345 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14346 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14347 CFLAGS="$SAVE_CFLAGS"
14348 fi
14349 ;;
14350 sparc*-*solaris*)
14351 # Find out which ABI we are using.
14352 echo 'int i;' > conftest.$ac_ext
14353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14354 (eval $ac_compile) 2>&5
14355 ac_status=$?
14356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14357 test $ac_status = 0; }; then
14358 case `/usr/bin/file conftest.o` in
14359 *64-bit*)
14360 case $lt_cv_prog_gnu_ld in
14361 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14362 *)
14363 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14364 LD="${LD-ld} -64"
14365 fi
14366 ;;
14367 esac
14368 ;;
14369 esac
14370 fi
14371 rm -rf conftest*
14372 ;;
14373 esac
14374
14375 need_locks="$enable_libtool_lock"
14376
14377
14378 case $host_os in
14379 rhapsody* | darwin*)
14380 if test -n "$ac_tool_prefix"; then
14381 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14382 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14384 $as_echo_n "checking for $ac_word... " >&6; }
14385 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14386 $as_echo_n "(cached) " >&6
14387 else
14388 if test -n "$DSYMUTIL"; then
14389 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14390 else
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $PATH
14393 do
14394 IFS=$as_save_IFS
14395 test -z "$as_dir" && as_dir=.
14396 for ac_exec_ext in '' $ac_executable_extensions; do
14397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14398 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14400 break 2
14401 fi
14402 done
14403 done
14404 IFS=$as_save_IFS
14405
14406 fi
14407 fi
14408 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14409 if test -n "$DSYMUTIL"; then
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14411 $as_echo "$DSYMUTIL" >&6; }
14412 else
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14414 $as_echo "no" >&6; }
14415 fi
14416
14417
14418 fi
14419 if test -z "$ac_cv_prog_DSYMUTIL"; then
14420 ac_ct_DSYMUTIL=$DSYMUTIL
14421 # Extract the first word of "dsymutil", so it can be a program name with args.
14422 set dummy dsymutil; ac_word=$2
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14424 $as_echo_n "checking for $ac_word... " >&6; }
14425 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14426 $as_echo_n "(cached) " >&6
14427 else
14428 if test -n "$ac_ct_DSYMUTIL"; then
14429 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14430 else
14431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14432 for as_dir in $PATH
14433 do
14434 IFS=$as_save_IFS
14435 test -z "$as_dir" && as_dir=.
14436 for ac_exec_ext in '' $ac_executable_extensions; do
14437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14438 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14440 break 2
14441 fi
14442 done
14443 done
14444 IFS=$as_save_IFS
14445
14446 fi
14447 fi
14448 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14449 if test -n "$ac_ct_DSYMUTIL"; then
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14451 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14452 else
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14454 $as_echo "no" >&6; }
14455 fi
14456
14457 if test "x$ac_ct_DSYMUTIL" = x; then
14458 DSYMUTIL=":"
14459 else
14460 case $cross_compiling:$ac_tool_warned in
14461 yes:)
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14464 ac_tool_warned=yes ;;
14465 esac
14466 DSYMUTIL=$ac_ct_DSYMUTIL
14467 fi
14468 else
14469 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14470 fi
14471
14472 if test -n "$ac_tool_prefix"; then
14473 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14474 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14476 $as_echo_n "checking for $ac_word... " >&6; }
14477 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14478 $as_echo_n "(cached) " >&6
14479 else
14480 if test -n "$NMEDIT"; then
14481 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14482 else
14483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484 for as_dir in $PATH
14485 do
14486 IFS=$as_save_IFS
14487 test -z "$as_dir" && as_dir=.
14488 for ac_exec_ext in '' $ac_executable_extensions; do
14489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14490 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14492 break 2
14493 fi
14494 done
14495 done
14496 IFS=$as_save_IFS
14497
14498 fi
14499 fi
14500 NMEDIT=$ac_cv_prog_NMEDIT
14501 if test -n "$NMEDIT"; then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14503 $as_echo "$NMEDIT" >&6; }
14504 else
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14506 $as_echo "no" >&6; }
14507 fi
14508
14509
14510 fi
14511 if test -z "$ac_cv_prog_NMEDIT"; then
14512 ac_ct_NMEDIT=$NMEDIT
14513 # Extract the first word of "nmedit", so it can be a program name with args.
14514 set dummy nmedit; ac_word=$2
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14516 $as_echo_n "checking for $ac_word... " >&6; }
14517 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14518 $as_echo_n "(cached) " >&6
14519 else
14520 if test -n "$ac_ct_NMEDIT"; then
14521 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14522 else
14523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14524 for as_dir in $PATH
14525 do
14526 IFS=$as_save_IFS
14527 test -z "$as_dir" && as_dir=.
14528 for ac_exec_ext in '' $ac_executable_extensions; do
14529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14530 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14532 break 2
14533 fi
14534 done
14535 done
14536 IFS=$as_save_IFS
14537
14538 fi
14539 fi
14540 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14541 if test -n "$ac_ct_NMEDIT"; then
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14543 $as_echo "$ac_ct_NMEDIT" >&6; }
14544 else
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14546 $as_echo "no" >&6; }
14547 fi
14548
14549 if test "x$ac_ct_NMEDIT" = x; then
14550 NMEDIT=":"
14551 else
14552 case $cross_compiling:$ac_tool_warned in
14553 yes:)
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14556 ac_tool_warned=yes ;;
14557 esac
14558 NMEDIT=$ac_ct_NMEDIT
14559 fi
14560 else
14561 NMEDIT="$ac_cv_prog_NMEDIT"
14562 fi
14563
14564 if test -n "$ac_tool_prefix"; then
14565 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14566 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14568 $as_echo_n "checking for $ac_word... " >&6; }
14569 if test "${ac_cv_prog_LIPO+set}" = set; then :
14570 $as_echo_n "(cached) " >&6
14571 else
14572 if test -n "$LIPO"; then
14573 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14574 else
14575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14576 for as_dir in $PATH
14577 do
14578 IFS=$as_save_IFS
14579 test -z "$as_dir" && as_dir=.
14580 for ac_exec_ext in '' $ac_executable_extensions; do
14581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14582 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14584 break 2
14585 fi
14586 done
14587 done
14588 IFS=$as_save_IFS
14589
14590 fi
14591 fi
14592 LIPO=$ac_cv_prog_LIPO
14593 if test -n "$LIPO"; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14595 $as_echo "$LIPO" >&6; }
14596 else
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14598 $as_echo "no" >&6; }
14599 fi
14600
14601
14602 fi
14603 if test -z "$ac_cv_prog_LIPO"; then
14604 ac_ct_LIPO=$LIPO
14605 # Extract the first word of "lipo", so it can be a program name with args.
14606 set dummy lipo; ac_word=$2
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14608 $as_echo_n "checking for $ac_word... " >&6; }
14609 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14610 $as_echo_n "(cached) " >&6
14611 else
14612 if test -n "$ac_ct_LIPO"; then
14613 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14614 else
14615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14616 for as_dir in $PATH
14617 do
14618 IFS=$as_save_IFS
14619 test -z "$as_dir" && as_dir=.
14620 for ac_exec_ext in '' $ac_executable_extensions; do
14621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14622 ac_cv_prog_ac_ct_LIPO="lipo"
14623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14624 break 2
14625 fi
14626 done
14627 done
14628 IFS=$as_save_IFS
14629
14630 fi
14631 fi
14632 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14633 if test -n "$ac_ct_LIPO"; then
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14635 $as_echo "$ac_ct_LIPO" >&6; }
14636 else
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14638 $as_echo "no" >&6; }
14639 fi
14640
14641 if test "x$ac_ct_LIPO" = x; then
14642 LIPO=":"
14643 else
14644 case $cross_compiling:$ac_tool_warned in
14645 yes:)
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14648 ac_tool_warned=yes ;;
14649 esac
14650 LIPO=$ac_ct_LIPO
14651 fi
14652 else
14653 LIPO="$ac_cv_prog_LIPO"
14654 fi
14655
14656 if test -n "$ac_tool_prefix"; then
14657 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14658 set dummy ${ac_tool_prefix}otool; ac_word=$2
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14660 $as_echo_n "checking for $ac_word... " >&6; }
14661 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14662 $as_echo_n "(cached) " >&6
14663 else
14664 if test -n "$OTOOL"; then
14665 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14666 else
14667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14668 for as_dir in $PATH
14669 do
14670 IFS=$as_save_IFS
14671 test -z "$as_dir" && as_dir=.
14672 for ac_exec_ext in '' $ac_executable_extensions; do
14673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14674 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14676 break 2
14677 fi
14678 done
14679 done
14680 IFS=$as_save_IFS
14681
14682 fi
14683 fi
14684 OTOOL=$ac_cv_prog_OTOOL
14685 if test -n "$OTOOL"; then
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14687 $as_echo "$OTOOL" >&6; }
14688 else
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14690 $as_echo "no" >&6; }
14691 fi
14692
14693
14694 fi
14695 if test -z "$ac_cv_prog_OTOOL"; then
14696 ac_ct_OTOOL=$OTOOL
14697 # Extract the first word of "otool", so it can be a program name with args.
14698 set dummy otool; ac_word=$2
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14700 $as_echo_n "checking for $ac_word... " >&6; }
14701 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14702 $as_echo_n "(cached) " >&6
14703 else
14704 if test -n "$ac_ct_OTOOL"; then
14705 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14706 else
14707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14708 for as_dir in $PATH
14709 do
14710 IFS=$as_save_IFS
14711 test -z "$as_dir" && as_dir=.
14712 for ac_exec_ext in '' $ac_executable_extensions; do
14713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14714 ac_cv_prog_ac_ct_OTOOL="otool"
14715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14716 break 2
14717 fi
14718 done
14719 done
14720 IFS=$as_save_IFS
14721
14722 fi
14723 fi
14724 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14725 if test -n "$ac_ct_OTOOL"; then
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14727 $as_echo "$ac_ct_OTOOL" >&6; }
14728 else
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14730 $as_echo "no" >&6; }
14731 fi
14732
14733 if test "x$ac_ct_OTOOL" = x; then
14734 OTOOL=":"
14735 else
14736 case $cross_compiling:$ac_tool_warned in
14737 yes:)
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14740 ac_tool_warned=yes ;;
14741 esac
14742 OTOOL=$ac_ct_OTOOL
14743 fi
14744 else
14745 OTOOL="$ac_cv_prog_OTOOL"
14746 fi
14747
14748 if test -n "$ac_tool_prefix"; then
14749 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14750 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14752 $as_echo_n "checking for $ac_word... " >&6; }
14753 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14754 $as_echo_n "(cached) " >&6
14755 else
14756 if test -n "$OTOOL64"; then
14757 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14758 else
14759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14760 for as_dir in $PATH
14761 do
14762 IFS=$as_save_IFS
14763 test -z "$as_dir" && as_dir=.
14764 for ac_exec_ext in '' $ac_executable_extensions; do
14765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14766 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14768 break 2
14769 fi
14770 done
14771 done
14772 IFS=$as_save_IFS
14773
14774 fi
14775 fi
14776 OTOOL64=$ac_cv_prog_OTOOL64
14777 if test -n "$OTOOL64"; then
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14779 $as_echo "$OTOOL64" >&6; }
14780 else
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14782 $as_echo "no" >&6; }
14783 fi
14784
14785
14786 fi
14787 if test -z "$ac_cv_prog_OTOOL64"; then
14788 ac_ct_OTOOL64=$OTOOL64
14789 # Extract the first word of "otool64", so it can be a program name with args.
14790 set dummy otool64; ac_word=$2
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14792 $as_echo_n "checking for $ac_word... " >&6; }
14793 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14794 $as_echo_n "(cached) " >&6
14795 else
14796 if test -n "$ac_ct_OTOOL64"; then
14797 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14798 else
14799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14800 for as_dir in $PATH
14801 do
14802 IFS=$as_save_IFS
14803 test -z "$as_dir" && as_dir=.
14804 for ac_exec_ext in '' $ac_executable_extensions; do
14805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14806 ac_cv_prog_ac_ct_OTOOL64="otool64"
14807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14808 break 2
14809 fi
14810 done
14811 done
14812 IFS=$as_save_IFS
14813
14814 fi
14815 fi
14816 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14817 if test -n "$ac_ct_OTOOL64"; then
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14819 $as_echo "$ac_ct_OTOOL64" >&6; }
14820 else
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14822 $as_echo "no" >&6; }
14823 fi
14824
14825 if test "x$ac_ct_OTOOL64" = x; then
14826 OTOOL64=":"
14827 else
14828 case $cross_compiling:$ac_tool_warned in
14829 yes:)
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14832 ac_tool_warned=yes ;;
14833 esac
14834 OTOOL64=$ac_ct_OTOOL64
14835 fi
14836 else
14837 OTOOL64="$ac_cv_prog_OTOOL64"
14838 fi
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14867 $as_echo_n "checking for -single_module linker flag... " >&6; }
14868 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14869 $as_echo_n "(cached) " >&6
14870 else
14871 lt_cv_apple_cc_single_mod=no
14872 if test -z "${LT_MULTI_MODULE}"; then
14873 # By default we will add the -single_module flag. You can override
14874 # by either setting the environment variable LT_MULTI_MODULE
14875 # non-empty at configure time, or by adding -multi_module to the
14876 # link flags.
14877 rm -rf libconftest.dylib*
14878 echo "int foo(void){return 1;}" > conftest.c
14879 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14880 -dynamiclib -Wl,-single_module conftest.c" >&5
14881 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14882 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14883 _lt_result=$?
14884 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14885 lt_cv_apple_cc_single_mod=yes
14886 else
14887 cat conftest.err >&5
14888 fi
14889 rm -rf libconftest.dylib*
14890 rm -f conftest.*
14891 fi
14892 fi
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14894 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14896 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14897 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14898 $as_echo_n "(cached) " >&6
14899 else
14900 lt_cv_ld_exported_symbols_list=no
14901 save_LDFLAGS=$LDFLAGS
14902 echo "_main" > conftest.sym
14903 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14906
14907 int
14908 main ()
14909 {
14910
14911 ;
14912 return 0;
14913 }
14914 _ACEOF
14915 if ac_fn_c_try_link "$LINENO"; then :
14916 lt_cv_ld_exported_symbols_list=yes
14917 else
14918 lt_cv_ld_exported_symbols_list=no
14919 fi
14920 rm -f core conftest.err conftest.$ac_objext \
14921 conftest$ac_exeext conftest.$ac_ext
14922 LDFLAGS="$save_LDFLAGS"
14923
14924 fi
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14926 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14928 $as_echo_n "checking for -force_load linker flag... " >&6; }
14929 if test "${lt_cv_ld_force_load+set}" = set; then :
14930 $as_echo_n "(cached) " >&6
14931 else
14932 lt_cv_ld_force_load=no
14933 cat > conftest.c << _LT_EOF
14934 int forced_loaded() { return 2;}
14935 _LT_EOF
14936 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14937 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14938 echo "$AR cru libconftest.a conftest.o" >&5
14939 $AR cru libconftest.a conftest.o 2>&5
14940 cat > conftest.c << _LT_EOF
14941 int main() { return 0;}
14942 _LT_EOF
14943 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14944 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14945 _lt_result=$?
14946 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14947 lt_cv_ld_force_load=yes
14948 else
14949 cat conftest.err >&5
14950 fi
14951 rm -f conftest.err libconftest.a conftest conftest.c
14952 rm -rf conftest.dSYM
14953
14954 fi
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14956 $as_echo "$lt_cv_ld_force_load" >&6; }
14957 case $host_os in
14958 rhapsody* | darwin1.[012])
14959 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14960 darwin1.*)
14961 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14962 darwin*) # darwin 5.x on
14963 # if running on 10.5 or later, the deployment target defaults
14964 # to the OS version, if on x86, and 10.4, the deployment
14965 # target defaults to 10.4. Don't you love it?
14966 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14967 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14968 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14969 10.[012][,.]*)
14970 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14971 10.*)
14972 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14973 esac
14974 ;;
14975 esac
14976 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14977 _lt_dar_single_mod='$single_module'
14978 fi
14979 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14980 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14981 else
14982 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14983 fi
14984 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14985 _lt_dsymutil='~$DSYMUTIL $lib || :'
14986 else
14987 _lt_dsymutil=
14988 fi
14989 ;;
14990 esac
14991
14992
14993 for ac_header in dlfcn.h
14994 do :
14995 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14996 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14997 cat >>confdefs.h <<_ACEOF
14998 #define HAVE_DLFCN_H 1
14999 _ACEOF
15000
15001 fi
15002 done
15003
15004
15005
15006
15007
15008 # Set options
15009
15010
15011
15012 enable_dlopen=no
15013
15014
15015 enable_win32_dll=no
15016
15017
15018 # Check whether --enable-shared was given.
15019 if test "${enable_shared+set}" = set; then :
15020 enableval=$enable_shared; p=${PACKAGE-default}
15021 case $enableval in
15022 yes) enable_shared=yes ;;
15023 no) enable_shared=no ;;
15024 *)
15025 enable_shared=no
15026 # Look at the argument we got. We use all the common list separators.
15027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15028 for pkg in $enableval; do
15029 IFS="$lt_save_ifs"
15030 if test "X$pkg" = "X$p"; then
15031 enable_shared=yes
15032 fi
15033 done
15034 IFS="$lt_save_ifs"
15035 ;;
15036 esac
15037 else
15038 enable_shared=yes
15039 fi
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049 # Check whether --enable-static was given.
15050 if test "${enable_static+set}" = set; then :
15051 enableval=$enable_static; p=${PACKAGE-default}
15052 case $enableval in
15053 yes) enable_static=yes ;;
15054 no) enable_static=no ;;
15055 *)
15056 enable_static=no
15057 # Look at the argument we got. We use all the common list separators.
15058 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15059 for pkg in $enableval; do
15060 IFS="$lt_save_ifs"
15061 if test "X$pkg" = "X$p"; then
15062 enable_static=yes
15063 fi
15064 done
15065 IFS="$lt_save_ifs"
15066 ;;
15067 esac
15068 else
15069 enable_static=yes
15070 fi
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081 # Check whether --with-pic was given.
15082 if test "${with_pic+set}" = set; then :
15083 withval=$with_pic; pic_mode="$withval"
15084 else
15085 pic_mode=default
15086 fi
15087
15088
15089 test -z "$pic_mode" && pic_mode=default
15090
15091
15092
15093
15094
15095
15096
15097 # Check whether --enable-fast-install was given.
15098 if test "${enable_fast_install+set}" = set; then :
15099 enableval=$enable_fast_install; p=${PACKAGE-default}
15100 case $enableval in
15101 yes) enable_fast_install=yes ;;
15102 no) enable_fast_install=no ;;
15103 *)
15104 enable_fast_install=no
15105 # Look at the argument we got. We use all the common list separators.
15106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15107 for pkg in $enableval; do
15108 IFS="$lt_save_ifs"
15109 if test "X$pkg" = "X$p"; then
15110 enable_fast_install=yes
15111 fi
15112 done
15113 IFS="$lt_save_ifs"
15114 ;;
15115 esac
15116 else
15117 enable_fast_install=yes
15118 fi
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130 # This can be used to rebuild libtool when needed
15131 LIBTOOL_DEPS="$ltmain"
15132
15133 # Always use our own libtool.
15134 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161 test -z "$LN_S" && LN_S="ln -s"
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176 if test -n "${ZSH_VERSION+set}" ; then
15177 setopt NO_GLOB_SUBST
15178 fi
15179
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15181 $as_echo_n "checking for objdir... " >&6; }
15182 if test "${lt_cv_objdir+set}" = set; then :
15183 $as_echo_n "(cached) " >&6
15184 else
15185 rm -f .libs 2>/dev/null
15186 mkdir .libs 2>/dev/null
15187 if test -d .libs; then
15188 lt_cv_objdir=.libs
15189 else
15190 # MS-DOS does not allow filenames that begin with a dot.
15191 lt_cv_objdir=_libs
15192 fi
15193 rmdir .libs 2>/dev/null
15194 fi
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15196 $as_echo "$lt_cv_objdir" >&6; }
15197 objdir=$lt_cv_objdir
15198
15199
15200
15201
15202
15203 cat >>confdefs.h <<_ACEOF
15204 #define LT_OBJDIR "$lt_cv_objdir/"
15205 _ACEOF
15206
15207
15208
15209
15210 case $host_os in
15211 aix3*)
15212 # AIX sometimes has problems with the GCC collect2 program. For some
15213 # reason, if we set the COLLECT_NAMES environment variable, the problems
15214 # vanish in a puff of smoke.
15215 if test "X${COLLECT_NAMES+set}" != Xset; then
15216 COLLECT_NAMES=
15217 export COLLECT_NAMES
15218 fi
15219 ;;
15220 esac
15221
15222 # Global variables:
15223 ofile=libtool
15224 can_build_shared=yes
15225
15226 # All known linkers require a `.a' archive for static linking (except MSVC,
15227 # which needs '.lib').
15228 libext=a
15229
15230 with_gnu_ld="$lt_cv_prog_gnu_ld"
15231
15232 old_CC="$CC"
15233 old_CFLAGS="$CFLAGS"
15234
15235 # Set sane defaults for various variables
15236 test -z "$CC" && CC=cc
15237 test -z "$LTCC" && LTCC=$CC
15238 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15239 test -z "$LD" && LD=ld
15240 test -z "$ac_objext" && ac_objext=o
15241
15242 for cc_temp in $compiler""; do
15243 case $cc_temp in
15244 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15245 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15246 \-*) ;;
15247 *) break;;
15248 esac
15249 done
15250 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15251
15252
15253 # Only perform the check for file, if the check method requires it
15254 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15255 case $deplibs_check_method in
15256 file_magic*)
15257 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15259 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15260 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15261 $as_echo_n "(cached) " >&6
15262 else
15263 case $MAGIC_CMD in
15264 [\\/*] | ?:[\\/]*)
15265 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15266 ;;
15267 *)
15268 lt_save_MAGIC_CMD="$MAGIC_CMD"
15269 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15270 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15271 for ac_dir in $ac_dummy; do
15272 IFS="$lt_save_ifs"
15273 test -z "$ac_dir" && ac_dir=.
15274 if test -f $ac_dir/${ac_tool_prefix}file; then
15275 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15276 if test -n "$file_magic_test_file"; then
15277 case $deplibs_check_method in
15278 "file_magic "*)
15279 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15281 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15282 $EGREP "$file_magic_regex" > /dev/null; then
15283 :
15284 else
15285 cat <<_LT_EOF 1>&2
15286
15287 *** Warning: the command libtool uses to detect shared libraries,
15288 *** $file_magic_cmd, produces output that libtool cannot recognize.
15289 *** The result is that libtool may fail to recognize shared libraries
15290 *** as such. This will affect the creation of libtool libraries that
15291 *** depend on shared libraries, but programs linked with such libtool
15292 *** libraries will work regardless of this problem. Nevertheless, you
15293 *** may want to report the problem to your system manager and/or to
15294 *** bug-libtool@gnu.org
15295
15296 _LT_EOF
15297 fi ;;
15298 esac
15299 fi
15300 break
15301 fi
15302 done
15303 IFS="$lt_save_ifs"
15304 MAGIC_CMD="$lt_save_MAGIC_CMD"
15305 ;;
15306 esac
15307 fi
15308
15309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15310 if test -n "$MAGIC_CMD"; then
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15312 $as_echo "$MAGIC_CMD" >&6; }
15313 else
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15315 $as_echo "no" >&6; }
15316 fi
15317
15318
15319
15320
15321
15322 if test -z "$lt_cv_path_MAGIC_CMD"; then
15323 if test -n "$ac_tool_prefix"; then
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15325 $as_echo_n "checking for file... " >&6; }
15326 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15327 $as_echo_n "(cached) " >&6
15328 else
15329 case $MAGIC_CMD in
15330 [\\/*] | ?:[\\/]*)
15331 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15332 ;;
15333 *)
15334 lt_save_MAGIC_CMD="$MAGIC_CMD"
15335 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15336 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15337 for ac_dir in $ac_dummy; do
15338 IFS="$lt_save_ifs"
15339 test -z "$ac_dir" && ac_dir=.
15340 if test -f $ac_dir/file; then
15341 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15342 if test -n "$file_magic_test_file"; then
15343 case $deplibs_check_method in
15344 "file_magic "*)
15345 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15346 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15347 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15348 $EGREP "$file_magic_regex" > /dev/null; then
15349 :
15350 else
15351 cat <<_LT_EOF 1>&2
15352
15353 *** Warning: the command libtool uses to detect shared libraries,
15354 *** $file_magic_cmd, produces output that libtool cannot recognize.
15355 *** The result is that libtool may fail to recognize shared libraries
15356 *** as such. This will affect the creation of libtool libraries that
15357 *** depend on shared libraries, but programs linked with such libtool
15358 *** libraries will work regardless of this problem. Nevertheless, you
15359 *** may want to report the problem to your system manager and/or to
15360 *** bug-libtool@gnu.org
15361
15362 _LT_EOF
15363 fi ;;
15364 esac
15365 fi
15366 break
15367 fi
15368 done
15369 IFS="$lt_save_ifs"
15370 MAGIC_CMD="$lt_save_MAGIC_CMD"
15371 ;;
15372 esac
15373 fi
15374
15375 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15376 if test -n "$MAGIC_CMD"; then
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15378 $as_echo "$MAGIC_CMD" >&6; }
15379 else
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15381 $as_echo "no" >&6; }
15382 fi
15383
15384
15385 else
15386 MAGIC_CMD=:
15387 fi
15388 fi
15389
15390 fi
15391 ;;
15392 esac
15393
15394 # Use C for the default configuration in the libtool script
15395
15396 lt_save_CC="$CC"
15397 ac_ext=c
15398 ac_cpp='$CPP $CPPFLAGS'
15399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15402
15403
15404 # Source file extension for C test sources.
15405 ac_ext=c
15406
15407 # Object file extension for compiled C test sources.
15408 objext=o
15409 objext=$objext
15410
15411 # Code to be used in simple compile tests
15412 lt_simple_compile_test_code="int some_variable = 0;"
15413
15414 # Code to be used in simple link tests
15415 lt_simple_link_test_code='int main(){return(0);}'
15416
15417
15418
15419
15420
15421
15422
15423 # If no C compiler was specified, use CC.
15424 LTCC=${LTCC-"$CC"}
15425
15426 # If no C compiler flags were specified, use CFLAGS.
15427 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15428
15429 # Allow CC to be a program name with arguments.
15430 compiler=$CC
15431
15432 # Save the default compiler, since it gets overwritten when the other
15433 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15434 compiler_DEFAULT=$CC
15435
15436 # save warnings/boilerplate of simple test code
15437 ac_outfile=conftest.$ac_objext
15438 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15439 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15440 _lt_compiler_boilerplate=`cat conftest.err`
15441 $RM conftest*
15442
15443 ac_outfile=conftest.$ac_objext
15444 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15445 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15446 _lt_linker_boilerplate=`cat conftest.err`
15447 $RM -r conftest*
15448
15449
15450 ## CAVEAT EMPTOR:
15451 ## There is no encapsulation within the following macros, do not change
15452 ## the running order or otherwise move them around unless you know exactly
15453 ## what you are doing...
15454 if test -n "$compiler"; then
15455
15456 lt_prog_compiler_no_builtin_flag=
15457
15458 if test "$GCC" = yes; then
15459 case $cc_basename in
15460 nvcc*)
15461 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15462 *)
15463 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15464 esac
15465
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15467 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15468 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15469 $as_echo_n "(cached) " >&6
15470 else
15471 lt_cv_prog_compiler_rtti_exceptions=no
15472 ac_outfile=conftest.$ac_objext
15473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15474 lt_compiler_flag="-fno-rtti -fno-exceptions"
15475 # Insert the option either (1) after the last *FLAGS variable, or
15476 # (2) before a word containing "conftest.", or (3) at the end.
15477 # Note that $ac_compile itself does not contain backslashes and begins
15478 # with a dollar sign (not a hyphen), so the echo should work correctly.
15479 # The option is referenced via a variable to avoid confusing sed.
15480 lt_compile=`echo "$ac_compile" | $SED \
15481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15483 -e 's:$: $lt_compiler_flag:'`
15484 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15485 (eval "$lt_compile" 2>conftest.err)
15486 ac_status=$?
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 if (exit $ac_status) && test -s "$ac_outfile"; then
15490 # The compiler can only warn and ignore the option if not recognized
15491 # So say no if there are warnings other than the usual output.
15492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15494 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15495 lt_cv_prog_compiler_rtti_exceptions=yes
15496 fi
15497 fi
15498 $RM conftest*
15499
15500 fi
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15502 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15503
15504 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15505 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15506 else
15507 :
15508 fi
15509
15510 fi
15511
15512
15513
15514
15515
15516
15517 lt_prog_compiler_wl=
15518 lt_prog_compiler_pic=
15519 lt_prog_compiler_static=
15520
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15522 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15523
15524 if test "$GCC" = yes; then
15525 lt_prog_compiler_wl='-Wl,'
15526 lt_prog_compiler_static='-static'
15527
15528 case $host_os in
15529 aix*)
15530 # All AIX code is PIC.
15531 if test "$host_cpu" = ia64; then
15532 # AIX 5 now supports IA64 processor
15533 lt_prog_compiler_static='-Bstatic'
15534 fi
15535 lt_prog_compiler_pic='-fPIC'
15536 ;;
15537
15538 amigaos*)
15539 case $host_cpu in
15540 powerpc)
15541 # see comment about AmigaOS4 .so support
15542 lt_prog_compiler_pic='-fPIC'
15543 ;;
15544 m68k)
15545 # FIXME: we need at least 68020 code to build shared libraries, but
15546 # adding the `-m68020' flag to GCC prevents building anything better,
15547 # like `-m68040'.
15548 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15549 ;;
15550 esac
15551 ;;
15552
15553 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15554 # PIC is the default for these OSes.
15555 ;;
15556
15557 mingw* | cygwin* | pw32* | os2* | cegcc*)
15558 # This hack is so that the source file can tell whether it is being
15559 # built for inclusion in a dll (and should export symbols for example).
15560 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15561 # (--disable-auto-import) libraries
15562 lt_prog_compiler_pic='-DDLL_EXPORT'
15563 ;;
15564
15565 darwin* | rhapsody*)
15566 # PIC is the default on this platform
15567 # Common symbols not allowed in MH_DYLIB files
15568 lt_prog_compiler_pic='-fno-common'
15569 ;;
15570
15571 haiku*)
15572 # PIC is the default for Haiku.
15573 # The "-static" flag exists, but is broken.
15574 lt_prog_compiler_static=
15575 ;;
15576
15577 hpux*)
15578 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15579 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15580 # sets the default TLS model and affects inlining.
15581 case $host_cpu in
15582 hppa*64*)
15583 # +Z the default
15584 ;;
15585 *)
15586 lt_prog_compiler_pic='-fPIC'
15587 ;;
15588 esac
15589 ;;
15590
15591 interix[3-9]*)
15592 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15593 # Instead, we relocate shared libraries at runtime.
15594 ;;
15595
15596 msdosdjgpp*)
15597 # Just because we use GCC doesn't mean we suddenly get shared libraries
15598 # on systems that don't support them.
15599 lt_prog_compiler_can_build_shared=no
15600 enable_shared=no
15601 ;;
15602
15603 *nto* | *qnx*)
15604 # QNX uses GNU C++, but need to define -shared option too, otherwise
15605 # it will coredump.
15606 lt_prog_compiler_pic='-fPIC -shared'
15607 ;;
15608
15609 sysv4*MP*)
15610 if test -d /usr/nec; then
15611 lt_prog_compiler_pic=-Kconform_pic
15612 fi
15613 ;;
15614
15615 *)
15616 lt_prog_compiler_pic='-fPIC'
15617 ;;
15618 esac
15619
15620 case $cc_basename in
15621 nvcc*) # Cuda Compiler Driver 2.2
15622 lt_prog_compiler_wl='-Xlinker '
15623 lt_prog_compiler_pic='-Xcompiler -fPIC'
15624 ;;
15625 esac
15626 else
15627 # PORTME Check for flag to pass linker flags through the system compiler.
15628 case $host_os in
15629 aix*)
15630 lt_prog_compiler_wl='-Wl,'
15631 if test "$host_cpu" = ia64; then
15632 # AIX 5 now supports IA64 processor
15633 lt_prog_compiler_static='-Bstatic'
15634 else
15635 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15636 fi
15637 ;;
15638
15639 mingw* | cygwin* | pw32* | os2* | cegcc*)
15640 # This hack is so that the source file can tell whether it is being
15641 # built for inclusion in a dll (and should export symbols for example).
15642 lt_prog_compiler_pic='-DDLL_EXPORT'
15643 ;;
15644
15645 hpux9* | hpux10* | hpux11*)
15646 lt_prog_compiler_wl='-Wl,'
15647 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15648 # not for PA HP-UX.
15649 case $host_cpu in
15650 hppa*64*|ia64*)
15651 # +Z the default
15652 ;;
15653 *)
15654 lt_prog_compiler_pic='+Z'
15655 ;;
15656 esac
15657 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15658 lt_prog_compiler_static='${wl}-a ${wl}archive'
15659 ;;
15660
15661 irix5* | irix6* | nonstopux*)
15662 lt_prog_compiler_wl='-Wl,'
15663 # PIC (with -KPIC) is the default.
15664 lt_prog_compiler_static='-non_shared'
15665 ;;
15666
15667 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15668 case $cc_basename in
15669 # old Intel for x86_64 which still supported -KPIC.
15670 ecc*)
15671 lt_prog_compiler_wl='-Wl,'
15672 lt_prog_compiler_pic='-KPIC'
15673 lt_prog_compiler_static='-static'
15674 ;;
15675 # icc used to be incompatible with GCC.
15676 # ICC 10 doesn't accept -KPIC any more.
15677 icc* | ifort*)
15678 lt_prog_compiler_wl='-Wl,'
15679 lt_prog_compiler_pic='-fPIC'
15680 lt_prog_compiler_static='-static'
15681 ;;
15682 # Lahey Fortran 8.1.
15683 lf95*)
15684 lt_prog_compiler_wl='-Wl,'
15685 lt_prog_compiler_pic='--shared'
15686 lt_prog_compiler_static='--static'
15687 ;;
15688 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15689 # Portland Group compilers (*not* the Pentium gcc compiler,
15690 # which looks to be a dead project)
15691 lt_prog_compiler_wl='-Wl,'
15692 lt_prog_compiler_pic='-fpic'
15693 lt_prog_compiler_static='-Bstatic'
15694 ;;
15695 ccc*)
15696 lt_prog_compiler_wl='-Wl,'
15697 # All Alpha code is PIC.
15698 lt_prog_compiler_static='-non_shared'
15699 ;;
15700 xl* | bgxl* | bgf* | mpixl*)
15701 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15702 lt_prog_compiler_wl='-Wl,'
15703 lt_prog_compiler_pic='-qpic'
15704 lt_prog_compiler_static='-qstaticlink'
15705 ;;
15706 *)
15707 case `$CC -V 2>&1 | sed 5q` in
15708 *Sun\ F* | *Sun*Fortran*)
15709 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15710 lt_prog_compiler_pic='-KPIC'
15711 lt_prog_compiler_static='-Bstatic'
15712 lt_prog_compiler_wl=''
15713 ;;
15714 *Sun\ C*)
15715 # Sun C 5.9
15716 lt_prog_compiler_pic='-KPIC'
15717 lt_prog_compiler_static='-Bstatic'
15718 lt_prog_compiler_wl='-Wl,'
15719 ;;
15720 esac
15721 ;;
15722 esac
15723 ;;
15724
15725 newsos6)
15726 lt_prog_compiler_pic='-KPIC'
15727 lt_prog_compiler_static='-Bstatic'
15728 ;;
15729
15730 *nto* | *qnx*)
15731 # QNX uses GNU C++, but need to define -shared option too, otherwise
15732 # it will coredump.
15733 lt_prog_compiler_pic='-fPIC -shared'
15734 ;;
15735
15736 osf3* | osf4* | osf5*)
15737 lt_prog_compiler_wl='-Wl,'
15738 # All OSF/1 code is PIC.
15739 lt_prog_compiler_static='-non_shared'
15740 ;;
15741
15742 rdos*)
15743 lt_prog_compiler_static='-non_shared'
15744 ;;
15745
15746 solaris*)
15747 lt_prog_compiler_pic='-KPIC'
15748 lt_prog_compiler_static='-Bstatic'
15749 case $cc_basename in
15750 f77* | f90* | f95*)
15751 lt_prog_compiler_wl='-Qoption ld ';;
15752 *)
15753 lt_prog_compiler_wl='-Wl,';;
15754 esac
15755 ;;
15756
15757 sunos4*)
15758 lt_prog_compiler_wl='-Qoption ld '
15759 lt_prog_compiler_pic='-PIC'
15760 lt_prog_compiler_static='-Bstatic'
15761 ;;
15762
15763 sysv4 | sysv4.2uw2* | sysv4.3*)
15764 lt_prog_compiler_wl='-Wl,'
15765 lt_prog_compiler_pic='-KPIC'
15766 lt_prog_compiler_static='-Bstatic'
15767 ;;
15768
15769 sysv4*MP*)
15770 if test -d /usr/nec ;then
15771 lt_prog_compiler_pic='-Kconform_pic'
15772 lt_prog_compiler_static='-Bstatic'
15773 fi
15774 ;;
15775
15776 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15777 lt_prog_compiler_wl='-Wl,'
15778 lt_prog_compiler_pic='-KPIC'
15779 lt_prog_compiler_static='-Bstatic'
15780 ;;
15781
15782 unicos*)
15783 lt_prog_compiler_wl='-Wl,'
15784 lt_prog_compiler_can_build_shared=no
15785 ;;
15786
15787 uts4*)
15788 lt_prog_compiler_pic='-pic'
15789 lt_prog_compiler_static='-Bstatic'
15790 ;;
15791
15792 *)
15793 lt_prog_compiler_can_build_shared=no
15794 ;;
15795 esac
15796 fi
15797
15798 case $host_os in
15799 # For platforms which do not support PIC, -DPIC is meaningless:
15800 *djgpp*)
15801 lt_prog_compiler_pic=
15802 ;;
15803 *)
15804 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15805 ;;
15806 esac
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15808 $as_echo "$lt_prog_compiler_pic" >&6; }
15809
15810
15811
15812
15813
15814
15815 #
15816 # Check to make sure the PIC flag actually works.
15817 #
15818 if test -n "$lt_prog_compiler_pic"; then
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15820 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15821 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15822 $as_echo_n "(cached) " >&6
15823 else
15824 lt_cv_prog_compiler_pic_works=no
15825 ac_outfile=conftest.$ac_objext
15826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15827 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15828 # Insert the option either (1) after the last *FLAGS variable, or
15829 # (2) before a word containing "conftest.", or (3) at the end.
15830 # Note that $ac_compile itself does not contain backslashes and begins
15831 # with a dollar sign (not a hyphen), so the echo should work correctly.
15832 # The option is referenced via a variable to avoid confusing sed.
15833 lt_compile=`echo "$ac_compile" | $SED \
15834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15836 -e 's:$: $lt_compiler_flag:'`
15837 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15838 (eval "$lt_compile" 2>conftest.err)
15839 ac_status=$?
15840 cat conftest.err >&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 if (exit $ac_status) && test -s "$ac_outfile"; then
15843 # The compiler can only warn and ignore the option if not recognized
15844 # So say no if there are warnings other than the usual output.
15845 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15848 lt_cv_prog_compiler_pic_works=yes
15849 fi
15850 fi
15851 $RM conftest*
15852
15853 fi
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15855 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15856
15857 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15858 case $lt_prog_compiler_pic in
15859 "" | " "*) ;;
15860 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15861 esac
15862 else
15863 lt_prog_compiler_pic=
15864 lt_prog_compiler_can_build_shared=no
15865 fi
15866
15867 fi
15868
15869
15870
15871
15872
15873
15874 #
15875 # Check to make sure the static flag actually works.
15876 #
15877 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15879 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15880 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15881 $as_echo_n "(cached) " >&6
15882 else
15883 lt_cv_prog_compiler_static_works=no
15884 save_LDFLAGS="$LDFLAGS"
15885 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15886 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15887 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15888 # The linker can only warn and ignore the option if not recognized
15889 # So say no if there are warnings
15890 if test -s conftest.err; then
15891 # Append any errors to the config.log.
15892 cat conftest.err 1>&5
15893 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15895 if diff conftest.exp conftest.er2 >/dev/null; then
15896 lt_cv_prog_compiler_static_works=yes
15897 fi
15898 else
15899 lt_cv_prog_compiler_static_works=yes
15900 fi
15901 fi
15902 $RM -r conftest*
15903 LDFLAGS="$save_LDFLAGS"
15904
15905 fi
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15907 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15908
15909 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15910 :
15911 else
15912 lt_prog_compiler_static=
15913 fi
15914
15915
15916
15917
15918
15919
15920
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15922 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15923 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15924 $as_echo_n "(cached) " >&6
15925 else
15926 lt_cv_prog_compiler_c_o=no
15927 $RM -r conftest 2>/dev/null
15928 mkdir conftest
15929 cd conftest
15930 mkdir out
15931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15932
15933 lt_compiler_flag="-o out/conftest2.$ac_objext"
15934 # Insert the option either (1) after the last *FLAGS variable, or
15935 # (2) before a word containing "conftest.", or (3) at the end.
15936 # Note that $ac_compile itself does not contain backslashes and begins
15937 # with a dollar sign (not a hyphen), so the echo should work correctly.
15938 lt_compile=`echo "$ac_compile" | $SED \
15939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15941 -e 's:$: $lt_compiler_flag:'`
15942 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15943 (eval "$lt_compile" 2>out/conftest.err)
15944 ac_status=$?
15945 cat out/conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15948 then
15949 # The compiler can only warn and ignore the option if not recognized
15950 # So say no if there are warnings
15951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15952 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15953 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15954 lt_cv_prog_compiler_c_o=yes
15955 fi
15956 fi
15957 chmod u+w . 2>&5
15958 $RM conftest*
15959 # SGI C++ compiler will create directory out/ii_files/ for
15960 # template instantiation
15961 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15962 $RM out/* && rmdir out
15963 cd ..
15964 $RM -r conftest
15965 $RM conftest*
15966
15967 fi
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15969 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15970
15971
15972
15973
15974
15975
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15977 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15978 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15979 $as_echo_n "(cached) " >&6
15980 else
15981 lt_cv_prog_compiler_c_o=no
15982 $RM -r conftest 2>/dev/null
15983 mkdir conftest
15984 cd conftest
15985 mkdir out
15986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15987
15988 lt_compiler_flag="-o out/conftest2.$ac_objext"
15989 # Insert the option either (1) after the last *FLAGS variable, or
15990 # (2) before a word containing "conftest.", or (3) at the end.
15991 # Note that $ac_compile itself does not contain backslashes and begins
15992 # with a dollar sign (not a hyphen), so the echo should work correctly.
15993 lt_compile=`echo "$ac_compile" | $SED \
15994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15996 -e 's:$: $lt_compiler_flag:'`
15997 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15998 (eval "$lt_compile" 2>out/conftest.err)
15999 ac_status=$?
16000 cat out/conftest.err >&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16003 then
16004 # The compiler can only warn and ignore the option if not recognized
16005 # So say no if there are warnings
16006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16007 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16008 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16009 lt_cv_prog_compiler_c_o=yes
16010 fi
16011 fi
16012 chmod u+w . 2>&5
16013 $RM conftest*
16014 # SGI C++ compiler will create directory out/ii_files/ for
16015 # template instantiation
16016 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16017 $RM out/* && rmdir out
16018 cd ..
16019 $RM -r conftest
16020 $RM conftest*
16021
16022 fi
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16024 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16025
16026
16027
16028
16029 hard_links="nottested"
16030 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16031 # do not overwrite the value of need_locks provided by the user
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16033 $as_echo_n "checking if we can lock with hard links... " >&6; }
16034 hard_links=yes
16035 $RM conftest*
16036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16037 touch conftest.a
16038 ln conftest.a conftest.b 2>&5 || hard_links=no
16039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16041 $as_echo "$hard_links" >&6; }
16042 if test "$hard_links" = no; then
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16044 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16045 need_locks=warn
16046 fi
16047 else
16048 need_locks=no
16049 fi
16050
16051
16052
16053
16054
16055
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16057 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16058
16059 runpath_var=
16060 allow_undefined_flag=
16061 always_export_symbols=no
16062 archive_cmds=
16063 archive_expsym_cmds=
16064 compiler_needs_object=no
16065 enable_shared_with_static_runtimes=no
16066 export_dynamic_flag_spec=
16067 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16068 hardcode_automatic=no
16069 hardcode_direct=no
16070 hardcode_direct_absolute=no
16071 hardcode_libdir_flag_spec=
16072 hardcode_libdir_flag_spec_ld=
16073 hardcode_libdir_separator=
16074 hardcode_minus_L=no
16075 hardcode_shlibpath_var=unsupported
16076 inherit_rpath=no
16077 link_all_deplibs=unknown
16078 module_cmds=
16079 module_expsym_cmds=
16080 old_archive_from_new_cmds=
16081 old_archive_from_expsyms_cmds=
16082 thread_safe_flag_spec=
16083 whole_archive_flag_spec=
16084 # include_expsyms should be a list of space-separated symbols to be *always*
16085 # included in the symbol list
16086 include_expsyms=
16087 # exclude_expsyms can be an extended regexp of symbols to exclude
16088 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16089 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16090 # as well as any symbol that contains `d'.
16091 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16092 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16093 # platforms (ab)use it in PIC code, but their linkers get confused if
16094 # the symbol is explicitly referenced. Since portable code cannot
16095 # rely on this symbol name, it's probably fine to never include it in
16096 # preloaded symbol tables.
16097 # Exclude shared library initialization/finalization symbols.
16098 extract_expsyms_cmds=
16099
16100 case $host_os in
16101 cygwin* | mingw* | pw32* | cegcc*)
16102 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16103 # When not using gcc, we currently assume that we are using
16104 # Microsoft Visual C++.
16105 if test "$GCC" != yes; then
16106 with_gnu_ld=no
16107 fi
16108 ;;
16109 interix*)
16110 # we just hope/assume this is gcc and not c89 (= MSVC++)
16111 with_gnu_ld=yes
16112 ;;
16113 openbsd*)
16114 with_gnu_ld=no
16115 ;;
16116 esac
16117
16118 ld_shlibs=yes
16119
16120 # On some targets, GNU ld is compatible enough with the native linker
16121 # that we're better off using the native interface for both.
16122 lt_use_gnu_ld_interface=no
16123 if test "$with_gnu_ld" = yes; then
16124 case $host_os in
16125 aix*)
16126 # The AIX port of GNU ld has always aspired to compatibility
16127 # with the native linker. However, as the warning in the GNU ld
16128 # block says, versions before 2.19.5* couldn't really create working
16129 # shared libraries, regardless of the interface used.
16130 case `$LD -v 2>&1` in
16131 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16132 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16133 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16134 *)
16135 lt_use_gnu_ld_interface=yes
16136 ;;
16137 esac
16138 ;;
16139 *)
16140 lt_use_gnu_ld_interface=yes
16141 ;;
16142 esac
16143 fi
16144
16145 if test "$lt_use_gnu_ld_interface" = yes; then
16146 # If archive_cmds runs LD, not CC, wlarc should be empty
16147 wlarc='${wl}'
16148
16149 # Set some defaults for GNU ld with shared library support. These
16150 # are reset later if shared libraries are not supported. Putting them
16151 # here allows them to be overridden if necessary.
16152 runpath_var=LD_RUN_PATH
16153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16154 export_dynamic_flag_spec='${wl}--export-dynamic'
16155 # ancient GNU ld didn't support --whole-archive et. al.
16156 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16157 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16158 else
16159 whole_archive_flag_spec=
16160 fi
16161 supports_anon_versioning=no
16162 case `$LD -v 2>&1` in
16163 *GNU\ gold*) supports_anon_versioning=yes ;;
16164 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16165 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16166 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16167 *\ 2.11.*) ;; # other 2.11 versions
16168 *) supports_anon_versioning=yes ;;
16169 esac
16170
16171 # See if GNU ld supports shared libraries.
16172 case $host_os in
16173 aix[3-9]*)
16174 # On AIX/PPC, the GNU linker is very broken
16175 if test "$host_cpu" != ia64; then
16176 ld_shlibs=no
16177 cat <<_LT_EOF 1>&2
16178
16179 *** Warning: the GNU linker, at least up to release 2.19, is reported
16180 *** to be unable to reliably create shared libraries on AIX.
16181 *** Therefore, libtool is disabling shared libraries support. If you
16182 *** really care for shared libraries, you may want to install binutils
16183 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16184 *** You will then need to restart the configuration process.
16185
16186 _LT_EOF
16187 fi
16188 ;;
16189
16190 amigaos*)
16191 case $host_cpu in
16192 powerpc)
16193 # see comment about AmigaOS4 .so support
16194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16195 archive_expsym_cmds=''
16196 ;;
16197 m68k)
16198 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)'
16199 hardcode_libdir_flag_spec='-L$libdir'
16200 hardcode_minus_L=yes
16201 ;;
16202 esac
16203 ;;
16204
16205 beos*)
16206 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16207 allow_undefined_flag=unsupported
16208 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16209 # support --undefined. This deserves some investigation. FIXME
16210 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16211 else
16212 ld_shlibs=no
16213 fi
16214 ;;
16215
16216 cygwin* | mingw* | pw32* | cegcc*)
16217 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16218 # as there is no search path for DLLs.
16219 hardcode_libdir_flag_spec='-L$libdir'
16220 export_dynamic_flag_spec='${wl}--export-all-symbols'
16221 allow_undefined_flag=unsupported
16222 always_export_symbols=no
16223 enable_shared_with_static_runtimes=yes
16224 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16225
16226 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16228 # If the export-symbols file already is a .def file (1st line
16229 # is EXPORTS), use it as is; otherwise, prepend...
16230 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16231 cp $export_symbols $output_objdir/$soname.def;
16232 else
16233 echo EXPORTS > $output_objdir/$soname.def;
16234 cat $export_symbols >> $output_objdir/$soname.def;
16235 fi~
16236 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16237 else
16238 ld_shlibs=no
16239 fi
16240 ;;
16241
16242 haiku*)
16243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16244 link_all_deplibs=yes
16245 ;;
16246
16247 interix[3-9]*)
16248 hardcode_direct=no
16249 hardcode_shlibpath_var=no
16250 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16251 export_dynamic_flag_spec='${wl}-E'
16252 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16253 # Instead, shared libraries are loaded at an image base (0x10000000 by
16254 # default) and relocated if they conflict, which is a slow very memory
16255 # consuming and fragmenting process. To avoid this, we pick a random,
16256 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16257 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16258 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16259 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'
16260 ;;
16261
16262 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16263 tmp_diet=no
16264 if test "$host_os" = linux-dietlibc; then
16265 case $cc_basename in
16266 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16267 esac
16268 fi
16269 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16270 && test "$tmp_diet" = no
16271 then
16272 tmp_addflag=' $pic_flag'
16273 tmp_sharedflag='-shared'
16274 case $cc_basename,$host_cpu in
16275 pgcc*) # Portland Group C compiler
16276 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'
16277 tmp_addflag=' $pic_flag'
16278 ;;
16279 pgf77* | pgf90* | pgf95* | pgfortran*)
16280 # Portland Group f77 and f90 compilers
16281 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'
16282 tmp_addflag=' $pic_flag -Mnomain' ;;
16283 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16284 tmp_addflag=' -i_dynamic' ;;
16285 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16286 tmp_addflag=' -i_dynamic -nofor_main' ;;
16287 ifc* | ifort*) # Intel Fortran compiler
16288 tmp_addflag=' -nofor_main' ;;
16289 lf95*) # Lahey Fortran 8.1
16290 whole_archive_flag_spec=
16291 tmp_sharedflag='--shared' ;;
16292 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16293 tmp_sharedflag='-qmkshrobj'
16294 tmp_addflag= ;;
16295 nvcc*) # Cuda Compiler Driver 2.2
16296 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'
16297 compiler_needs_object=yes
16298 ;;
16299 esac
16300 case `$CC -V 2>&1 | sed 5q` in
16301 *Sun\ C*) # Sun C 5.9
16302 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'
16303 compiler_needs_object=yes
16304 tmp_sharedflag='-G' ;;
16305 *Sun\ F*) # Sun Fortran 8.3
16306 tmp_sharedflag='-G' ;;
16307 esac
16308 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16309
16310 if test "x$supports_anon_versioning" = xyes; then
16311 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16312 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16313 echo "local: *; };" >> $output_objdir/$libname.ver~
16314 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16315 fi
16316
16317 case $cc_basename in
16318 xlf* | bgf* | bgxlf* | mpixlf*)
16319 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16320 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16321 hardcode_libdir_flag_spec=
16322 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16323 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16324 if test "x$supports_anon_versioning" = xyes; then
16325 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16326 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16327 echo "local: *; };" >> $output_objdir/$libname.ver~
16328 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16329 fi
16330 ;;
16331 esac
16332 else
16333 ld_shlibs=no
16334 fi
16335 ;;
16336
16337 netbsd*)
16338 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16339 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16340 wlarc=
16341 else
16342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16344 fi
16345 ;;
16346
16347 solaris*)
16348 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16349 ld_shlibs=no
16350 cat <<_LT_EOF 1>&2
16351
16352 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16353 *** create shared libraries on Solaris systems. Therefore, libtool
16354 *** is disabling shared libraries support. We urge you to upgrade GNU
16355 *** binutils to release 2.9.1 or newer. Another option is to modify
16356 *** your PATH or compiler configuration so that the native linker is
16357 *** used, and then restart.
16358
16359 _LT_EOF
16360 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16362 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16363 else
16364 ld_shlibs=no
16365 fi
16366 ;;
16367
16368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16369 case `$LD -v 2>&1` in
16370 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16371 ld_shlibs=no
16372 cat <<_LT_EOF 1>&2
16373
16374 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16375 *** reliably create shared libraries on SCO systems. Therefore, libtool
16376 *** is disabling shared libraries support. We urge you to upgrade GNU
16377 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16378 *** your PATH or compiler configuration so that the native linker is
16379 *** used, and then restart.
16380
16381 _LT_EOF
16382 ;;
16383 *)
16384 # For security reasons, it is highly recommended that you always
16385 # use absolute paths for naming shared libraries, and exclude the
16386 # DT_RUNPATH tag from executables and libraries. But doing so
16387 # requires that you compile everything twice, which is a pain.
16388 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16389 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16391 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16392 else
16393 ld_shlibs=no
16394 fi
16395 ;;
16396 esac
16397 ;;
16398
16399 sunos4*)
16400 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16401 wlarc=
16402 hardcode_direct=yes
16403 hardcode_shlibpath_var=no
16404 ;;
16405
16406 *)
16407 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16410 else
16411 ld_shlibs=no
16412 fi
16413 ;;
16414 esac
16415
16416 if test "$ld_shlibs" = no; then
16417 runpath_var=
16418 hardcode_libdir_flag_spec=
16419 export_dynamic_flag_spec=
16420 whole_archive_flag_spec=
16421 fi
16422 else
16423 # PORTME fill in a description of your system's linker (not GNU ld)
16424 case $host_os in
16425 aix3*)
16426 allow_undefined_flag=unsupported
16427 always_export_symbols=yes
16428 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'
16429 # Note: this linker hardcodes the directories in LIBPATH if there
16430 # are no directories specified by -L.
16431 hardcode_minus_L=yes
16432 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16433 # Neither direct hardcoding nor static linking is supported with a
16434 # broken collect2.
16435 hardcode_direct=unsupported
16436 fi
16437 ;;
16438
16439 aix[4-9]*)
16440 if test "$host_cpu" = ia64; then
16441 # On IA64, the linker does run time linking by default, so we don't
16442 # have to do anything special.
16443 aix_use_runtimelinking=no
16444 exp_sym_flag='-Bexport'
16445 no_entry_flag=""
16446 else
16447 # If we're using GNU nm, then we don't want the "-C" option.
16448 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16449 # Also, AIX nm treats weak defined symbols like other global
16450 # defined symbols, whereas GNU nm marks them as "W".
16451 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16452 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'
16453 else
16454 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16455 fi
16456 aix_use_runtimelinking=no
16457
16458 # Test if we are trying to use run time linking or normal
16459 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16460 # need to do runtime linking.
16461 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16462 for ld_flag in $LDFLAGS; do
16463 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16464 aix_use_runtimelinking=yes
16465 break
16466 fi
16467 done
16468 ;;
16469 esac
16470
16471 exp_sym_flag='-bexport'
16472 no_entry_flag='-bnoentry'
16473 fi
16474
16475 # When large executables or shared objects are built, AIX ld can
16476 # have problems creating the table of contents. If linking a library
16477 # or program results in "error TOC overflow" add -mminimal-toc to
16478 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16479 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16480
16481 archive_cmds=''
16482 hardcode_direct=yes
16483 hardcode_direct_absolute=yes
16484 hardcode_libdir_separator=':'
16485 link_all_deplibs=yes
16486 file_list_spec='${wl}-f,'
16487
16488 if test "$GCC" = yes; then
16489 case $host_os in aix4.[012]|aix4.[012].*)
16490 # We only want to do this on AIX 4.2 and lower, the check
16491 # below for broken collect2 doesn't work under 4.3+
16492 collect2name=`${CC} -print-prog-name=collect2`
16493 if test -f "$collect2name" &&
16494 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16495 then
16496 # We have reworked collect2
16497 :
16498 else
16499 # We have old collect2
16500 hardcode_direct=unsupported
16501 # It fails to find uninstalled libraries when the uninstalled
16502 # path is not listed in the libpath. Setting hardcode_minus_L
16503 # to unsupported forces relinking
16504 hardcode_minus_L=yes
16505 hardcode_libdir_flag_spec='-L$libdir'
16506 hardcode_libdir_separator=
16507 fi
16508 ;;
16509 esac
16510 shared_flag='-shared'
16511 if test "$aix_use_runtimelinking" = yes; then
16512 shared_flag="$shared_flag "'${wl}-G'
16513 fi
16514 else
16515 # not using gcc
16516 if test "$host_cpu" = ia64; then
16517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16518 # chokes on -Wl,-G. The following line is correct:
16519 shared_flag='-G'
16520 else
16521 if test "$aix_use_runtimelinking" = yes; then
16522 shared_flag='${wl}-G'
16523 else
16524 shared_flag='${wl}-bM:SRE'
16525 fi
16526 fi
16527 fi
16528
16529 export_dynamic_flag_spec='${wl}-bexpall'
16530 # It seems that -bexpall does not export symbols beginning with
16531 # underscore (_), so it is better to generate a list of symbols to export.
16532 always_export_symbols=yes
16533 if test "$aix_use_runtimelinking" = yes; then
16534 # Warning - without using the other runtime loading flags (-brtl),
16535 # -berok will link without error, but may produce a broken library.
16536 allow_undefined_flag='-berok'
16537 # Determine the default libpath from the value encoded in an
16538 # empty executable.
16539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16540 /* end confdefs.h. */
16541
16542 int
16543 main ()
16544 {
16545
16546 ;
16547 return 0;
16548 }
16549 _ACEOF
16550 if ac_fn_c_try_link "$LINENO"; then :
16551
16552 lt_aix_libpath_sed='
16553 /Import File Strings/,/^$/ {
16554 /^0/ {
16555 s/^0 *\(.*\)$/\1/
16556 p
16557 }
16558 }'
16559 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16560 # Check for a 64-bit object if we didn't find anything.
16561 if test -z "$aix_libpath"; then
16562 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16563 fi
16564 fi
16565 rm -f core conftest.err conftest.$ac_objext \
16566 conftest$ac_exeext conftest.$ac_ext
16567 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16568
16569 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16570 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"
16571 else
16572 if test "$host_cpu" = ia64; then
16573 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16574 allow_undefined_flag="-z nodefs"
16575 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"
16576 else
16577 # Determine the default libpath from the value encoded in an
16578 # empty executable.
16579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580 /* end confdefs.h. */
16581
16582 int
16583 main ()
16584 {
16585
16586 ;
16587 return 0;
16588 }
16589 _ACEOF
16590 if ac_fn_c_try_link "$LINENO"; then :
16591
16592 lt_aix_libpath_sed='
16593 /Import File Strings/,/^$/ {
16594 /^0/ {
16595 s/^0 *\(.*\)$/\1/
16596 p
16597 }
16598 }'
16599 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16600 # Check for a 64-bit object if we didn't find anything.
16601 if test -z "$aix_libpath"; then
16602 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16603 fi
16604 fi
16605 rm -f core conftest.err conftest.$ac_objext \
16606 conftest$ac_exeext conftest.$ac_ext
16607 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16608
16609 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16610 # Warning - without using the other run time loading flags,
16611 # -berok will link without error, but may produce a broken library.
16612 no_undefined_flag=' ${wl}-bernotok'
16613 allow_undefined_flag=' ${wl}-berok'
16614 if test "$with_gnu_ld" = yes; then
16615 # We only use this code for GNU lds that support --whole-archive.
16616 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16617 else
16618 # Exported symbols can be pulled into shared objects from archives
16619 whole_archive_flag_spec='$convenience'
16620 fi
16621 archive_cmds_need_lc=yes
16622 # This is similar to how AIX traditionally builds its shared libraries.
16623 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'
16624 fi
16625 fi
16626 ;;
16627
16628 amigaos*)
16629 case $host_cpu in
16630 powerpc)
16631 # see comment about AmigaOS4 .so support
16632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16633 archive_expsym_cmds=''
16634 ;;
16635 m68k)
16636 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)'
16637 hardcode_libdir_flag_spec='-L$libdir'
16638 hardcode_minus_L=yes
16639 ;;
16640 esac
16641 ;;
16642
16643 bsdi[45]*)
16644 export_dynamic_flag_spec=-rdynamic
16645 ;;
16646
16647 cygwin* | mingw* | pw32* | cegcc*)
16648 # When not using gcc, we currently assume that we are using
16649 # Microsoft Visual C++.
16650 # hardcode_libdir_flag_spec is actually meaningless, as there is
16651 # no search path for DLLs.
16652 hardcode_libdir_flag_spec=' '
16653 allow_undefined_flag=unsupported
16654 # Tell ltmain to make .lib files, not .a files.
16655 libext=lib
16656 # Tell ltmain to make .dll files, not .so files.
16657 shrext_cmds=".dll"
16658 # FIXME: Setting linknames here is a bad hack.
16659 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16660 # The linker will automatically build a .lib file if we build a DLL.
16661 old_archive_from_new_cmds='true'
16662 # FIXME: Should let the user specify the lib program.
16663 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16664 fix_srcfile_path='`cygpath -w "$srcfile"`'
16665 enable_shared_with_static_runtimes=yes
16666 ;;
16667
16668 darwin* | rhapsody*)
16669
16670
16671 archive_cmds_need_lc=no
16672 hardcode_direct=no
16673 hardcode_automatic=yes
16674 hardcode_shlibpath_var=unsupported
16675 if test "$lt_cv_ld_force_load" = "yes"; then
16676 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\"`'
16677 else
16678 whole_archive_flag_spec=''
16679 fi
16680 link_all_deplibs=yes
16681 allow_undefined_flag="$_lt_dar_allow_undefined"
16682 case $cc_basename in
16683 ifort*) _lt_dar_can_shared=yes ;;
16684 *) _lt_dar_can_shared=$GCC ;;
16685 esac
16686 if test "$_lt_dar_can_shared" = "yes"; then
16687 output_verbose_link_cmd=func_echo_all
16688 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16689 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16690 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}"
16691 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}"
16692
16693 else
16694 ld_shlibs=no
16695 fi
16696
16697 ;;
16698
16699 dgux*)
16700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16701 hardcode_libdir_flag_spec='-L$libdir'
16702 hardcode_shlibpath_var=no
16703 ;;
16704
16705 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16706 # support. Future versions do this automatically, but an explicit c++rt0.o
16707 # does not break anything, and helps significantly (at the cost of a little
16708 # extra space).
16709 freebsd2.2*)
16710 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16711 hardcode_libdir_flag_spec='-R$libdir'
16712 hardcode_direct=yes
16713 hardcode_shlibpath_var=no
16714 ;;
16715
16716 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16717 freebsd2.*)
16718 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16719 hardcode_direct=yes
16720 hardcode_minus_L=yes
16721 hardcode_shlibpath_var=no
16722 ;;
16723
16724 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16725 freebsd* | dragonfly*)
16726 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16727 hardcode_libdir_flag_spec='-R$libdir'
16728 hardcode_direct=yes
16729 hardcode_shlibpath_var=no
16730 ;;
16731
16732 hpux9*)
16733 if test "$GCC" = yes; then
16734 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'
16735 else
16736 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'
16737 fi
16738 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16739 hardcode_libdir_separator=:
16740 hardcode_direct=yes
16741
16742 # hardcode_minus_L: Not really in the search PATH,
16743 # but as the default location of the library.
16744 hardcode_minus_L=yes
16745 export_dynamic_flag_spec='${wl}-E'
16746 ;;
16747
16748 hpux10*)
16749 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16750 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16751 else
16752 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16753 fi
16754 if test "$with_gnu_ld" = no; then
16755 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16756 hardcode_libdir_flag_spec_ld='+b $libdir'
16757 hardcode_libdir_separator=:
16758 hardcode_direct=yes
16759 hardcode_direct_absolute=yes
16760 export_dynamic_flag_spec='${wl}-E'
16761 # hardcode_minus_L: Not really in the search PATH,
16762 # but as the default location of the library.
16763 hardcode_minus_L=yes
16764 fi
16765 ;;
16766
16767 hpux11*)
16768 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16769 case $host_cpu in
16770 hppa*64*)
16771 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16772 ;;
16773 ia64*)
16774 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16775 ;;
16776 *)
16777 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16778 ;;
16779 esac
16780 else
16781 case $host_cpu in
16782 hppa*64*)
16783 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16784 ;;
16785 ia64*)
16786 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16787 ;;
16788 *)
16789
16790 # Older versions of the 11.00 compiler do not understand -b yet
16791 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16793 $as_echo_n "checking if $CC understands -b... " >&6; }
16794 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16795 $as_echo_n "(cached) " >&6
16796 else
16797 lt_cv_prog_compiler__b=no
16798 save_LDFLAGS="$LDFLAGS"
16799 LDFLAGS="$LDFLAGS -b"
16800 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16801 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16802 # The linker can only warn and ignore the option if not recognized
16803 # So say no if there are warnings
16804 if test -s conftest.err; then
16805 # Append any errors to the config.log.
16806 cat conftest.err 1>&5
16807 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16809 if diff conftest.exp conftest.er2 >/dev/null; then
16810 lt_cv_prog_compiler__b=yes
16811 fi
16812 else
16813 lt_cv_prog_compiler__b=yes
16814 fi
16815 fi
16816 $RM -r conftest*
16817 LDFLAGS="$save_LDFLAGS"
16818
16819 fi
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16821 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16822
16823 if test x"$lt_cv_prog_compiler__b" = xyes; then
16824 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16825 else
16826 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16827 fi
16828
16829 ;;
16830 esac
16831 fi
16832 if test "$with_gnu_ld" = no; then
16833 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16834 hardcode_libdir_separator=:
16835
16836 case $host_cpu in
16837 hppa*64*|ia64*)
16838 hardcode_direct=no
16839 hardcode_shlibpath_var=no
16840 ;;
16841 *)
16842 hardcode_direct=yes
16843 hardcode_direct_absolute=yes
16844 export_dynamic_flag_spec='${wl}-E'
16845
16846 # hardcode_minus_L: Not really in the search PATH,
16847 # but as the default location of the library.
16848 hardcode_minus_L=yes
16849 ;;
16850 esac
16851 fi
16852 ;;
16853
16854 irix5* | irix6* | nonstopux*)
16855 if test "$GCC" = yes; then
16856 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'
16857 # Try to use the -exported_symbol ld option, if it does not
16858 # work, assume that -exports_file does not work either and
16859 # implicitly export all symbols.
16860 save_LDFLAGS="$LDFLAGS"
16861 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h. */
16864 int foo(void) {}
16865 _ACEOF
16866 if ac_fn_c_try_link "$LINENO"; then :
16867 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'
16868
16869 fi
16870 rm -f core conftest.err conftest.$ac_objext \
16871 conftest$ac_exeext conftest.$ac_ext
16872 LDFLAGS="$save_LDFLAGS"
16873 else
16874 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'
16875 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'
16876 fi
16877 archive_cmds_need_lc='no'
16878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16879 hardcode_libdir_separator=:
16880 inherit_rpath=yes
16881 link_all_deplibs=yes
16882 ;;
16883
16884 netbsd*)
16885 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16887 else
16888 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16889 fi
16890 hardcode_libdir_flag_spec='-R$libdir'
16891 hardcode_direct=yes
16892 hardcode_shlibpath_var=no
16893 ;;
16894
16895 newsos6)
16896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16897 hardcode_direct=yes
16898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16899 hardcode_libdir_separator=:
16900 hardcode_shlibpath_var=no
16901 ;;
16902
16903 *nto* | *qnx*)
16904 ;;
16905
16906 openbsd*)
16907 if test -f /usr/libexec/ld.so; then
16908 hardcode_direct=yes
16909 hardcode_shlibpath_var=no
16910 hardcode_direct_absolute=yes
16911 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16912 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16913 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16914 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16915 export_dynamic_flag_spec='${wl}-E'
16916 else
16917 case $host_os in
16918 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16919 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16920 hardcode_libdir_flag_spec='-R$libdir'
16921 ;;
16922 *)
16923 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16924 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16925 ;;
16926 esac
16927 fi
16928 else
16929 ld_shlibs=no
16930 fi
16931 ;;
16932
16933 os2*)
16934 hardcode_libdir_flag_spec='-L$libdir'
16935 hardcode_minus_L=yes
16936 allow_undefined_flag=unsupported
16937 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'
16938 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16939 ;;
16940
16941 osf3*)
16942 if test "$GCC" = yes; then
16943 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16944 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'
16945 else
16946 allow_undefined_flag=' -expect_unresolved \*'
16947 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'
16948 fi
16949 archive_cmds_need_lc='no'
16950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16951 hardcode_libdir_separator=:
16952 ;;
16953
16954 osf4* | osf5*) # as osf3* with the addition of -msym flag
16955 if test "$GCC" = yes; then
16956 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16957 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'
16958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16959 else
16960 allow_undefined_flag=' -expect_unresolved \*'
16961 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'
16962 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~
16963 $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'
16964
16965 # Both c and cxx compiler support -rpath directly
16966 hardcode_libdir_flag_spec='-rpath $libdir'
16967 fi
16968 archive_cmds_need_lc='no'
16969 hardcode_libdir_separator=:
16970 ;;
16971
16972 solaris*)
16973 no_undefined_flag=' -z defs'
16974 if test "$GCC" = yes; then
16975 wlarc='${wl}'
16976 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16977 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16978 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16979 else
16980 case `$CC -V 2>&1` in
16981 *"Compilers 5.0"*)
16982 wlarc=''
16983 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16984 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16985 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16986 ;;
16987 *)
16988 wlarc='${wl}'
16989 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16990 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16991 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16992 ;;
16993 esac
16994 fi
16995 hardcode_libdir_flag_spec='-R$libdir'
16996 hardcode_shlibpath_var=no
16997 case $host_os in
16998 solaris2.[0-5] | solaris2.[0-5].*) ;;
16999 *)
17000 # The compiler driver will combine and reorder linker options,
17001 # but understands `-z linker_flag'. GCC discards it without `$wl',
17002 # but is careful enough not to reorder.
17003 # Supported since Solaris 2.6 (maybe 2.5.1?)
17004 if test "$GCC" = yes; then
17005 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17006 else
17007 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17008 fi
17009 ;;
17010 esac
17011 link_all_deplibs=yes
17012 ;;
17013
17014 sunos4*)
17015 if test "x$host_vendor" = xsequent; then
17016 # Use $CC to link under sequent, because it throws in some extra .o
17017 # files that make .init and .fini sections work.
17018 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17019 else
17020 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17021 fi
17022 hardcode_libdir_flag_spec='-L$libdir'
17023 hardcode_direct=yes
17024 hardcode_minus_L=yes
17025 hardcode_shlibpath_var=no
17026 ;;
17027
17028 sysv4)
17029 case $host_vendor in
17030 sni)
17031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17032 hardcode_direct=yes # is this really true???
17033 ;;
17034 siemens)
17035 ## LD is ld it makes a PLAMLIB
17036 ## CC just makes a GrossModule.
17037 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17038 reload_cmds='$CC -r -o $output$reload_objs'
17039 hardcode_direct=no
17040 ;;
17041 motorola)
17042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17043 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17044 ;;
17045 esac
17046 runpath_var='LD_RUN_PATH'
17047 hardcode_shlibpath_var=no
17048 ;;
17049
17050 sysv4.3*)
17051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17052 hardcode_shlibpath_var=no
17053 export_dynamic_flag_spec='-Bexport'
17054 ;;
17055
17056 sysv4*MP*)
17057 if test -d /usr/nec; then
17058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17059 hardcode_shlibpath_var=no
17060 runpath_var=LD_RUN_PATH
17061 hardcode_runpath_var=yes
17062 ld_shlibs=yes
17063 fi
17064 ;;
17065
17066 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17067 no_undefined_flag='${wl}-z,text'
17068 archive_cmds_need_lc=no
17069 hardcode_shlibpath_var=no
17070 runpath_var='LD_RUN_PATH'
17071
17072 if test "$GCC" = yes; then
17073 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17074 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17075 else
17076 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17077 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17078 fi
17079 ;;
17080
17081 sysv5* | sco3.2v5* | sco5v6*)
17082 # Note: We can NOT use -z defs as we might desire, because we do not
17083 # link with -lc, and that would cause any symbols used from libc to
17084 # always be unresolved, which means just about no library would
17085 # ever link correctly. If we're not using GNU ld we use -z text
17086 # though, which does catch some bad symbols but isn't as heavy-handed
17087 # as -z defs.
17088 no_undefined_flag='${wl}-z,text'
17089 allow_undefined_flag='${wl}-z,nodefs'
17090 archive_cmds_need_lc=no
17091 hardcode_shlibpath_var=no
17092 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17093 hardcode_libdir_separator=':'
17094 link_all_deplibs=yes
17095 export_dynamic_flag_spec='${wl}-Bexport'
17096 runpath_var='LD_RUN_PATH'
17097
17098 if test "$GCC" = yes; then
17099 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17100 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17101 else
17102 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17103 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17104 fi
17105 ;;
17106
17107 uts4*)
17108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17109 hardcode_libdir_flag_spec='-L$libdir'
17110 hardcode_shlibpath_var=no
17111 ;;
17112
17113 *)
17114 ld_shlibs=no
17115 ;;
17116 esac
17117
17118 if test x$host_vendor = xsni; then
17119 case $host in
17120 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17121 export_dynamic_flag_spec='${wl}-Blargedynsym'
17122 ;;
17123 esac
17124 fi
17125 fi
17126
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17128 $as_echo "$ld_shlibs" >&6; }
17129 test "$ld_shlibs" = no && can_build_shared=no
17130
17131 with_gnu_ld=$with_gnu_ld
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147 #
17148 # Do we need to explicitly link libc?
17149 #
17150 case "x$archive_cmds_need_lc" in
17151 x|xyes)
17152 # Assume -lc should be added
17153 archive_cmds_need_lc=yes
17154
17155 if test "$enable_shared" = yes && test "$GCC" = yes; then
17156 case $archive_cmds in
17157 *'~'*)
17158 # FIXME: we may have to deal with multi-command sequences.
17159 ;;
17160 '$CC '*)
17161 # Test whether the compiler implicitly links with -lc since on some
17162 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17163 # to ld, don't add -lc before -lgcc.
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17165 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17166 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17167 $as_echo_n "(cached) " >&6
17168 else
17169 $RM conftest*
17170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17171
17172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17173 (eval $ac_compile) 2>&5
17174 ac_status=$?
17175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17176 test $ac_status = 0; } 2>conftest.err; then
17177 soname=conftest
17178 lib=conftest
17179 libobjs=conftest.$ac_objext
17180 deplibs=
17181 wl=$lt_prog_compiler_wl
17182 pic_flag=$lt_prog_compiler_pic
17183 compiler_flags=-v
17184 linker_flags=-v
17185 verstring=
17186 output_objdir=.
17187 libname=conftest
17188 lt_save_allow_undefined_flag=$allow_undefined_flag
17189 allow_undefined_flag=
17190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17191 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17192 ac_status=$?
17193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17194 test $ac_status = 0; }
17195 then
17196 lt_cv_archive_cmds_need_lc=no
17197 else
17198 lt_cv_archive_cmds_need_lc=yes
17199 fi
17200 allow_undefined_flag=$lt_save_allow_undefined_flag
17201 else
17202 cat conftest.err 1>&5
17203 fi
17204 $RM conftest*
17205
17206 fi
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17208 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17209 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17210 ;;
17211 esac
17212 fi
17213 ;;
17214 esac
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17373 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17374
17375 if test "$GCC" = yes; then
17376 case $host_os in
17377 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17378 *) lt_awk_arg="/^libraries:/" ;;
17379 esac
17380 case $host_os in
17381 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17382 *) lt_sed_strip_eq="s,=/,/,g" ;;
17383 esac
17384 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17385 case $lt_search_path_spec in
17386 *\;*)
17387 # if the path contains ";" then we assume it to be the separator
17388 # otherwise default to the standard path separator (i.e. ":") - it is
17389 # assumed that no part of a normal pathname contains ";" but that should
17390 # okay in the real world where ";" in dirpaths is itself problematic.
17391 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17392 ;;
17393 *)
17394 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17395 ;;
17396 esac
17397 # Ok, now we have the path, separated by spaces, we can step through it
17398 # and add multilib dir if necessary.
17399 lt_tmp_lt_search_path_spec=
17400 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17401 for lt_sys_path in $lt_search_path_spec; do
17402 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17403 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17404 else
17405 test -d "$lt_sys_path" && \
17406 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17407 fi
17408 done
17409 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17410 BEGIN {RS=" "; FS="/|\n";} {
17411 lt_foo="";
17412 lt_count=0;
17413 for (lt_i = NF; lt_i > 0; lt_i--) {
17414 if ($lt_i != "" && $lt_i != ".") {
17415 if ($lt_i == "..") {
17416 lt_count++;
17417 } else {
17418 if (lt_count == 0) {
17419 lt_foo="/" $lt_i lt_foo;
17420 } else {
17421 lt_count--;
17422 }
17423 }
17424 }
17425 }
17426 if (lt_foo != "") { lt_freq[lt_foo]++; }
17427 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17428 }'`
17429 # AWK program above erroneously prepends '/' to C:/dos/paths
17430 # for these hosts.
17431 case $host_os in
17432 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17433 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17434 esac
17435 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17436 else
17437 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17438 fi
17439 library_names_spec=
17440 libname_spec='lib$name'
17441 soname_spec=
17442 shrext_cmds=".so"
17443 postinstall_cmds=
17444 postuninstall_cmds=
17445 finish_cmds=
17446 finish_eval=
17447 shlibpath_var=
17448 shlibpath_overrides_runpath=unknown
17449 version_type=none
17450 dynamic_linker="$host_os ld.so"
17451 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17452 need_lib_prefix=unknown
17453 hardcode_into_libs=no
17454
17455 # when you set need_version to no, make sure it does not cause -set_version
17456 # flags to be left without arguments
17457 need_version=unknown
17458
17459 case $host_os in
17460 aix3*)
17461 version_type=linux
17462 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17463 shlibpath_var=LIBPATH
17464
17465 # AIX 3 has no versioning support, so we append a major version to the name.
17466 soname_spec='${libname}${release}${shared_ext}$major'
17467 ;;
17468
17469 aix[4-9]*)
17470 version_type=linux
17471 need_lib_prefix=no
17472 need_version=no
17473 hardcode_into_libs=yes
17474 if test "$host_cpu" = ia64; then
17475 # AIX 5 supports IA64
17476 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17477 shlibpath_var=LD_LIBRARY_PATH
17478 else
17479 # With GCC up to 2.95.x, collect2 would create an import file
17480 # for dependence libraries. The import file would start with
17481 # the line `#! .'. This would cause the generated library to
17482 # depend on `.', always an invalid library. This was fixed in
17483 # development snapshots of GCC prior to 3.0.
17484 case $host_os in
17485 aix4 | aix4.[01] | aix4.[01].*)
17486 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17487 echo ' yes '
17488 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17489 :
17490 else
17491 can_build_shared=no
17492 fi
17493 ;;
17494 esac
17495 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17496 # soname into executable. Probably we can add versioning support to
17497 # collect2, so additional links can be useful in future.
17498 if test "$aix_use_runtimelinking" = yes; then
17499 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17500 # instead of lib<name>.a to let people know that these are not
17501 # typical AIX shared libraries.
17502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17503 else
17504 # We preserve .a as extension for shared libraries through AIX4.2
17505 # and later when we are not doing run time linking.
17506 library_names_spec='${libname}${release}.a $libname.a'
17507 soname_spec='${libname}${release}${shared_ext}$major'
17508 fi
17509 shlibpath_var=LIBPATH
17510 fi
17511 ;;
17512
17513 amigaos*)
17514 case $host_cpu in
17515 powerpc)
17516 # Since July 2007 AmigaOS4 officially supports .so libraries.
17517 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17519 ;;
17520 m68k)
17521 library_names_spec='$libname.ixlibrary $libname.a'
17522 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17523 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'
17524 ;;
17525 esac
17526 ;;
17527
17528 beos*)
17529 library_names_spec='${libname}${shared_ext}'
17530 dynamic_linker="$host_os ld.so"
17531 shlibpath_var=LIBRARY_PATH
17532 ;;
17533
17534 bsdi[45]*)
17535 version_type=linux
17536 need_version=no
17537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17538 soname_spec='${libname}${release}${shared_ext}$major'
17539 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17540 shlibpath_var=LD_LIBRARY_PATH
17541 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17542 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17543 # the default ld.so.conf also contains /usr/contrib/lib and
17544 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17545 # libtool to hard-code these into programs
17546 ;;
17547
17548 cygwin* | mingw* | pw32* | cegcc*)
17549 version_type=windows
17550 shrext_cmds=".dll"
17551 need_version=no
17552 need_lib_prefix=no
17553
17554 case $GCC,$host_os in
17555 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17556 library_names_spec='$libname.dll.a'
17557 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17558 postinstall_cmds='base_file=`basename \${file}`~
17559 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17560 dldir=$destdir/`dirname \$dlpath`~
17561 test -d \$dldir || mkdir -p \$dldir~
17562 $install_prog $dir/$dlname \$dldir/$dlname~
17563 chmod a+x \$dldir/$dlname~
17564 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17565 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17566 fi'
17567 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17568 dlpath=$dir/\$dldll~
17569 $RM \$dlpath'
17570 shlibpath_overrides_runpath=yes
17571
17572 case $host_os in
17573 cygwin*)
17574 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17575 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17576
17577 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17578 ;;
17579 mingw* | cegcc*)
17580 # MinGW DLLs use traditional 'lib' prefix
17581 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17582 ;;
17583 pw32*)
17584 # pw32 DLLs use 'pw' prefix rather than 'lib'
17585 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17586 ;;
17587 esac
17588 ;;
17589
17590 *)
17591 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17592 ;;
17593 esac
17594 dynamic_linker='Win32 ld.exe'
17595 # FIXME: first we should search . and the directory the executable is in
17596 shlibpath_var=PATH
17597 ;;
17598
17599 darwin* | rhapsody*)
17600 dynamic_linker="$host_os dyld"
17601 version_type=darwin
17602 need_lib_prefix=no
17603 need_version=no
17604 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17605 soname_spec='${libname}${release}${major}$shared_ext'
17606 shlibpath_overrides_runpath=yes
17607 shlibpath_var=DYLD_LIBRARY_PATH
17608 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17609
17610 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17611 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17612 ;;
17613
17614 dgux*)
17615 version_type=linux
17616 need_lib_prefix=no
17617 need_version=no
17618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17619 soname_spec='${libname}${release}${shared_ext}$major'
17620 shlibpath_var=LD_LIBRARY_PATH
17621 ;;
17622
17623 freebsd* | dragonfly*)
17624 # DragonFly does not have aout. When/if they implement a new
17625 # versioning mechanism, adjust this.
17626 if test -x /usr/bin/objformat; then
17627 objformat=`/usr/bin/objformat`
17628 else
17629 case $host_os in
17630 freebsd[23].*) objformat=aout ;;
17631 *) objformat=elf ;;
17632 esac
17633 fi
17634 version_type=freebsd-$objformat
17635 case $version_type in
17636 freebsd-elf*)
17637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17638 need_version=no
17639 need_lib_prefix=no
17640 ;;
17641 freebsd-*)
17642 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17643 need_version=yes
17644 ;;
17645 esac
17646 shlibpath_var=LD_LIBRARY_PATH
17647 case $host_os in
17648 freebsd2.*)
17649 shlibpath_overrides_runpath=yes
17650 ;;
17651 freebsd3.[01]* | freebsdelf3.[01]*)
17652 shlibpath_overrides_runpath=yes
17653 hardcode_into_libs=yes
17654 ;;
17655 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17656 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17657 shlibpath_overrides_runpath=no
17658 hardcode_into_libs=yes
17659 ;;
17660 *) # from 4.6 on, and DragonFly
17661 shlibpath_overrides_runpath=yes
17662 hardcode_into_libs=yes
17663 ;;
17664 esac
17665 ;;
17666
17667 gnu*)
17668 version_type=linux
17669 need_lib_prefix=no
17670 need_version=no
17671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17672 soname_spec='${libname}${release}${shared_ext}$major'
17673 shlibpath_var=LD_LIBRARY_PATH
17674 hardcode_into_libs=yes
17675 ;;
17676
17677 haiku*)
17678 version_type=linux
17679 need_lib_prefix=no
17680 need_version=no
17681 dynamic_linker="$host_os runtime_loader"
17682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17683 soname_spec='${libname}${release}${shared_ext}$major'
17684 shlibpath_var=LIBRARY_PATH
17685 shlibpath_overrides_runpath=yes
17686 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17687 hardcode_into_libs=yes
17688 ;;
17689
17690 hpux9* | hpux10* | hpux11*)
17691 # Give a soname corresponding to the major version so that dld.sl refuses to
17692 # link against other versions.
17693 version_type=sunos
17694 need_lib_prefix=no
17695 need_version=no
17696 case $host_cpu in
17697 ia64*)
17698 shrext_cmds='.so'
17699 hardcode_into_libs=yes
17700 dynamic_linker="$host_os dld.so"
17701 shlibpath_var=LD_LIBRARY_PATH
17702 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17704 soname_spec='${libname}${release}${shared_ext}$major'
17705 if test "X$HPUX_IA64_MODE" = X32; then
17706 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17707 else
17708 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17709 fi
17710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17711 ;;
17712 hppa*64*)
17713 shrext_cmds='.sl'
17714 hardcode_into_libs=yes
17715 dynamic_linker="$host_os dld.sl"
17716 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17719 soname_spec='${libname}${release}${shared_ext}$major'
17720 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17722 ;;
17723 *)
17724 shrext_cmds='.sl'
17725 dynamic_linker="$host_os dld.sl"
17726 shlibpath_var=SHLIB_PATH
17727 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17729 soname_spec='${libname}${release}${shared_ext}$major'
17730 ;;
17731 esac
17732 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17733 postinstall_cmds='chmod 555 $lib'
17734 # or fails outright, so override atomically:
17735 install_override_mode=555
17736 ;;
17737
17738 interix[3-9]*)
17739 version_type=linux
17740 need_lib_prefix=no
17741 need_version=no
17742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17743 soname_spec='${libname}${release}${shared_ext}$major'
17744 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17745 shlibpath_var=LD_LIBRARY_PATH
17746 shlibpath_overrides_runpath=no
17747 hardcode_into_libs=yes
17748 ;;
17749
17750 irix5* | irix6* | nonstopux*)
17751 case $host_os in
17752 nonstopux*) version_type=nonstopux ;;
17753 *)
17754 if test "$lt_cv_prog_gnu_ld" = yes; then
17755 version_type=linux
17756 else
17757 version_type=irix
17758 fi ;;
17759 esac
17760 need_lib_prefix=no
17761 need_version=no
17762 soname_spec='${libname}${release}${shared_ext}$major'
17763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17764 case $host_os in
17765 irix5* | nonstopux*)
17766 libsuff= shlibsuff=
17767 ;;
17768 *)
17769 case $LD in # libtool.m4 will add one of these switches to LD
17770 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17771 libsuff= shlibsuff= libmagic=32-bit;;
17772 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17773 libsuff=32 shlibsuff=N32 libmagic=N32;;
17774 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17775 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17776 *) libsuff= shlibsuff= libmagic=never-match;;
17777 esac
17778 ;;
17779 esac
17780 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17781 shlibpath_overrides_runpath=no
17782 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17783 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17784 hardcode_into_libs=yes
17785 ;;
17786
17787 # No shared lib support for Linux oldld, aout, or coff.
17788 linux*oldld* | linux*aout* | linux*coff*)
17789 dynamic_linker=no
17790 ;;
17791
17792 # This must be Linux ELF.
17793 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17794 version_type=linux
17795 need_lib_prefix=no
17796 need_version=no
17797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17798 soname_spec='${libname}${release}${shared_ext}$major'
17799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17800 shlibpath_var=LD_LIBRARY_PATH
17801 shlibpath_overrides_runpath=no
17802
17803 # Some binutils ld are patched to set DT_RUNPATH
17804 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17805 $as_echo_n "(cached) " >&6
17806 else
17807 lt_cv_shlibpath_overrides_runpath=no
17808 save_LDFLAGS=$LDFLAGS
17809 save_libdir=$libdir
17810 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17811 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h. */
17814
17815 int
17816 main ()
17817 {
17818
17819 ;
17820 return 0;
17821 }
17822 _ACEOF
17823 if ac_fn_c_try_link "$LINENO"; then :
17824 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17825 lt_cv_shlibpath_overrides_runpath=yes
17826 fi
17827 fi
17828 rm -f core conftest.err conftest.$ac_objext \
17829 conftest$ac_exeext conftest.$ac_ext
17830 LDFLAGS=$save_LDFLAGS
17831 libdir=$save_libdir
17832
17833 fi
17834
17835 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17836
17837 # This implies no fast_install, which is unacceptable.
17838 # Some rework will be needed to allow for fast_install
17839 # before this can be enabled.
17840 hardcode_into_libs=yes
17841
17842 # Append ld.so.conf contents to the search path
17843 if test -f /etc/ld.so.conf; then
17844 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' ' '`
17845 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17846 fi
17847
17848 # We used to test for /lib/ld.so.1 and disable shared libraries on
17849 # powerpc, because MkLinux only supported shared libraries with the
17850 # GNU dynamic linker. Since this was broken with cross compilers,
17851 # most powerpc-linux boxes support dynamic linking these days and
17852 # people can always --disable-shared, the test was removed, and we
17853 # assume the GNU/Linux dynamic linker is in use.
17854 dynamic_linker='GNU/Linux ld.so'
17855 ;;
17856
17857 netbsd*)
17858 version_type=sunos
17859 need_lib_prefix=no
17860 need_version=no
17861 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17864 dynamic_linker='NetBSD (a.out) ld.so'
17865 else
17866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17867 soname_spec='${libname}${release}${shared_ext}$major'
17868 dynamic_linker='NetBSD ld.elf_so'
17869 fi
17870 shlibpath_var=LD_LIBRARY_PATH
17871 shlibpath_overrides_runpath=yes
17872 hardcode_into_libs=yes
17873 ;;
17874
17875 newsos6)
17876 version_type=linux
17877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17878 shlibpath_var=LD_LIBRARY_PATH
17879 shlibpath_overrides_runpath=yes
17880 ;;
17881
17882 *nto* | *qnx*)
17883 version_type=qnx
17884 need_lib_prefix=no
17885 need_version=no
17886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17887 soname_spec='${libname}${release}${shared_ext}$major'
17888 shlibpath_var=LD_LIBRARY_PATH
17889 shlibpath_overrides_runpath=no
17890 hardcode_into_libs=yes
17891 dynamic_linker='ldqnx.so'
17892 ;;
17893
17894 openbsd*)
17895 version_type=sunos
17896 sys_lib_dlsearch_path_spec="/usr/lib"
17897 need_lib_prefix=no
17898 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17899 case $host_os in
17900 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17901 *) need_version=no ;;
17902 esac
17903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17905 shlibpath_var=LD_LIBRARY_PATH
17906 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17907 case $host_os in
17908 openbsd2.[89] | openbsd2.[89].*)
17909 shlibpath_overrides_runpath=no
17910 ;;
17911 *)
17912 shlibpath_overrides_runpath=yes
17913 ;;
17914 esac
17915 else
17916 shlibpath_overrides_runpath=yes
17917 fi
17918 ;;
17919
17920 os2*)
17921 libname_spec='$name'
17922 shrext_cmds=".dll"
17923 need_lib_prefix=no
17924 library_names_spec='$libname${shared_ext} $libname.a'
17925 dynamic_linker='OS/2 ld.exe'
17926 shlibpath_var=LIBPATH
17927 ;;
17928
17929 osf3* | osf4* | osf5*)
17930 version_type=osf
17931 need_lib_prefix=no
17932 need_version=no
17933 soname_spec='${libname}${release}${shared_ext}$major'
17934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17935 shlibpath_var=LD_LIBRARY_PATH
17936 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17937 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17938 ;;
17939
17940 rdos*)
17941 dynamic_linker=no
17942 ;;
17943
17944 solaris*)
17945 version_type=linux
17946 need_lib_prefix=no
17947 need_version=no
17948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17949 soname_spec='${libname}${release}${shared_ext}$major'
17950 shlibpath_var=LD_LIBRARY_PATH
17951 shlibpath_overrides_runpath=yes
17952 hardcode_into_libs=yes
17953 # ldd complains unless libraries are executable
17954 postinstall_cmds='chmod +x $lib'
17955 ;;
17956
17957 sunos4*)
17958 version_type=sunos
17959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17960 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17961 shlibpath_var=LD_LIBRARY_PATH
17962 shlibpath_overrides_runpath=yes
17963 if test "$with_gnu_ld" = yes; then
17964 need_lib_prefix=no
17965 fi
17966 need_version=yes
17967 ;;
17968
17969 sysv4 | sysv4.3*)
17970 version_type=linux
17971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17972 soname_spec='${libname}${release}${shared_ext}$major'
17973 shlibpath_var=LD_LIBRARY_PATH
17974 case $host_vendor in
17975 sni)
17976 shlibpath_overrides_runpath=no
17977 need_lib_prefix=no
17978 runpath_var=LD_RUN_PATH
17979 ;;
17980 siemens)
17981 need_lib_prefix=no
17982 ;;
17983 motorola)
17984 need_lib_prefix=no
17985 need_version=no
17986 shlibpath_overrides_runpath=no
17987 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17988 ;;
17989 esac
17990 ;;
17991
17992 sysv4*MP*)
17993 if test -d /usr/nec ;then
17994 version_type=linux
17995 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17996 soname_spec='$libname${shared_ext}.$major'
17997 shlibpath_var=LD_LIBRARY_PATH
17998 fi
17999 ;;
18000
18001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18002 version_type=freebsd-elf
18003 need_lib_prefix=no
18004 need_version=no
18005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18006 soname_spec='${libname}${release}${shared_ext}$major'
18007 shlibpath_var=LD_LIBRARY_PATH
18008 shlibpath_overrides_runpath=yes
18009 hardcode_into_libs=yes
18010 if test "$with_gnu_ld" = yes; then
18011 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18012 else
18013 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18014 case $host_os in
18015 sco3.2v5*)
18016 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18017 ;;
18018 esac
18019 fi
18020 sys_lib_dlsearch_path_spec='/usr/lib'
18021 ;;
18022
18023 tpf*)
18024 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18025 version_type=linux
18026 need_lib_prefix=no
18027 need_version=no
18028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18029 shlibpath_var=LD_LIBRARY_PATH
18030 shlibpath_overrides_runpath=no
18031 hardcode_into_libs=yes
18032 ;;
18033
18034 uts4*)
18035 version_type=linux
18036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18037 soname_spec='${libname}${release}${shared_ext}$major'
18038 shlibpath_var=LD_LIBRARY_PATH
18039 ;;
18040
18041 *)
18042 dynamic_linker=no
18043 ;;
18044 esac
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18046 $as_echo "$dynamic_linker" >&6; }
18047 test "$dynamic_linker" = no && can_build_shared=no
18048
18049 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18050 if test "$GCC" = yes; then
18051 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18052 fi
18053
18054 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18055 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18056 fi
18057 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18058 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18059 fi
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18153 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18154 hardcode_action=
18155 if test -n "$hardcode_libdir_flag_spec" ||
18156 test -n "$runpath_var" ||
18157 test "X$hardcode_automatic" = "Xyes" ; then
18158
18159 # We can hardcode non-existent directories.
18160 if test "$hardcode_direct" != no &&
18161 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18162 # have to relink, otherwise we might link with an installed library
18163 # when we should be linking with a yet-to-be-installed one
18164 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18165 test "$hardcode_minus_L" != no; then
18166 # Linking always hardcodes the temporary library directory.
18167 hardcode_action=relink
18168 else
18169 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18170 hardcode_action=immediate
18171 fi
18172 else
18173 # We cannot hardcode anything, or else we can only hardcode existing
18174 # directories.
18175 hardcode_action=unsupported
18176 fi
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18178 $as_echo "$hardcode_action" >&6; }
18179
18180 if test "$hardcode_action" = relink ||
18181 test "$inherit_rpath" = yes; then
18182 # Fast installation is not supported
18183 enable_fast_install=no
18184 elif test "$shlibpath_overrides_runpath" = yes ||
18185 test "$enable_shared" = no; then
18186 # Fast installation is not necessary
18187 enable_fast_install=needless
18188 fi
18189
18190
18191
18192
18193
18194
18195 if test "x$enable_dlopen" != xyes; then
18196 enable_dlopen=unknown
18197 enable_dlopen_self=unknown
18198 enable_dlopen_self_static=unknown
18199 else
18200 lt_cv_dlopen=no
18201 lt_cv_dlopen_libs=
18202
18203 case $host_os in
18204 beos*)
18205 lt_cv_dlopen="load_add_on"
18206 lt_cv_dlopen_libs=
18207 lt_cv_dlopen_self=yes
18208 ;;
18209
18210 mingw* | pw32* | cegcc*)
18211 lt_cv_dlopen="LoadLibrary"
18212 lt_cv_dlopen_libs=
18213 ;;
18214
18215 cygwin*)
18216 lt_cv_dlopen="dlopen"
18217 lt_cv_dlopen_libs=
18218 ;;
18219
18220 darwin*)
18221 # if libdl is installed we need to link against it
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18223 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18224 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18225 $as_echo_n "(cached) " >&6
18226 else
18227 ac_check_lib_save_LIBS=$LIBS
18228 LIBS="-ldl $LIBS"
18229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230 /* end confdefs.h. */
18231
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18235 #ifdef __cplusplus
18236 extern "C"
18237 #endif
18238 char dlopen ();
18239 int
18240 main ()
18241 {
18242 return dlopen ();
18243 ;
18244 return 0;
18245 }
18246 _ACEOF
18247 if ac_fn_c_try_link "$LINENO"; then :
18248 ac_cv_lib_dl_dlopen=yes
18249 else
18250 ac_cv_lib_dl_dlopen=no
18251 fi
18252 rm -f core conftest.err conftest.$ac_objext \
18253 conftest$ac_exeext conftest.$ac_ext
18254 LIBS=$ac_check_lib_save_LIBS
18255 fi
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18257 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18258 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18259 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18260 else
18261
18262 lt_cv_dlopen="dyld"
18263 lt_cv_dlopen_libs=
18264 lt_cv_dlopen_self=yes
18265
18266 fi
18267
18268 ;;
18269
18270 *)
18271 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18272 if test "x$ac_cv_func_shl_load" = x""yes; then :
18273 lt_cv_dlopen="shl_load"
18274 else
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18276 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18277 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18278 $as_echo_n "(cached) " >&6
18279 else
18280 ac_check_lib_save_LIBS=$LIBS
18281 LIBS="-ldld $LIBS"
18282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18283 /* end confdefs.h. */
18284
18285 /* Override any GCC internal prototype to avoid an error.
18286 Use char because int might match the return type of a GCC
18287 builtin and then its argument prototype would still apply. */
18288 #ifdef __cplusplus
18289 extern "C"
18290 #endif
18291 char shl_load ();
18292 int
18293 main ()
18294 {
18295 return shl_load ();
18296 ;
18297 return 0;
18298 }
18299 _ACEOF
18300 if ac_fn_c_try_link "$LINENO"; then :
18301 ac_cv_lib_dld_shl_load=yes
18302 else
18303 ac_cv_lib_dld_shl_load=no
18304 fi
18305 rm -f core conftest.err conftest.$ac_objext \
18306 conftest$ac_exeext conftest.$ac_ext
18307 LIBS=$ac_check_lib_save_LIBS
18308 fi
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18310 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18311 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18312 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18313 else
18314 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18315 if test "x$ac_cv_func_dlopen" = x""yes; then :
18316 lt_cv_dlopen="dlopen"
18317 else
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18319 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18320 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18321 $as_echo_n "(cached) " >&6
18322 else
18323 ac_check_lib_save_LIBS=$LIBS
18324 LIBS="-ldl $LIBS"
18325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18326 /* end confdefs.h. */
18327
18328 /* Override any GCC internal prototype to avoid an error.
18329 Use char because int might match the return type of a GCC
18330 builtin and then its argument prototype would still apply. */
18331 #ifdef __cplusplus
18332 extern "C"
18333 #endif
18334 char dlopen ();
18335 int
18336 main ()
18337 {
18338 return dlopen ();
18339 ;
18340 return 0;
18341 }
18342 _ACEOF
18343 if ac_fn_c_try_link "$LINENO"; then :
18344 ac_cv_lib_dl_dlopen=yes
18345 else
18346 ac_cv_lib_dl_dlopen=no
18347 fi
18348 rm -f core conftest.err conftest.$ac_objext \
18349 conftest$ac_exeext conftest.$ac_ext
18350 LIBS=$ac_check_lib_save_LIBS
18351 fi
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18353 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18354 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18355 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18356 else
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18358 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18359 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18360 $as_echo_n "(cached) " >&6
18361 else
18362 ac_check_lib_save_LIBS=$LIBS
18363 LIBS="-lsvld $LIBS"
18364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18365 /* end confdefs.h. */
18366
18367 /* Override any GCC internal prototype to avoid an error.
18368 Use char because int might match the return type of a GCC
18369 builtin and then its argument prototype would still apply. */
18370 #ifdef __cplusplus
18371 extern "C"
18372 #endif
18373 char dlopen ();
18374 int
18375 main ()
18376 {
18377 return dlopen ();
18378 ;
18379 return 0;
18380 }
18381 _ACEOF
18382 if ac_fn_c_try_link "$LINENO"; then :
18383 ac_cv_lib_svld_dlopen=yes
18384 else
18385 ac_cv_lib_svld_dlopen=no
18386 fi
18387 rm -f core conftest.err conftest.$ac_objext \
18388 conftest$ac_exeext conftest.$ac_ext
18389 LIBS=$ac_check_lib_save_LIBS
18390 fi
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18392 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18393 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18394 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18395 else
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18397 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18398 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18399 $as_echo_n "(cached) " >&6
18400 else
18401 ac_check_lib_save_LIBS=$LIBS
18402 LIBS="-ldld $LIBS"
18403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18404 /* end confdefs.h. */
18405
18406 /* Override any GCC internal prototype to avoid an error.
18407 Use char because int might match the return type of a GCC
18408 builtin and then its argument prototype would still apply. */
18409 #ifdef __cplusplus
18410 extern "C"
18411 #endif
18412 char dld_link ();
18413 int
18414 main ()
18415 {
18416 return dld_link ();
18417 ;
18418 return 0;
18419 }
18420 _ACEOF
18421 if ac_fn_c_try_link "$LINENO"; then :
18422 ac_cv_lib_dld_dld_link=yes
18423 else
18424 ac_cv_lib_dld_dld_link=no
18425 fi
18426 rm -f core conftest.err conftest.$ac_objext \
18427 conftest$ac_exeext conftest.$ac_ext
18428 LIBS=$ac_check_lib_save_LIBS
18429 fi
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18431 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18432 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18433 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18434 fi
18435
18436
18437 fi
18438
18439
18440 fi
18441
18442
18443 fi
18444
18445
18446 fi
18447
18448
18449 fi
18450
18451 ;;
18452 esac
18453
18454 if test "x$lt_cv_dlopen" != xno; then
18455 enable_dlopen=yes
18456 else
18457 enable_dlopen=no
18458 fi
18459
18460 case $lt_cv_dlopen in
18461 dlopen)
18462 save_CPPFLAGS="$CPPFLAGS"
18463 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18464
18465 save_LDFLAGS="$LDFLAGS"
18466 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18467
18468 save_LIBS="$LIBS"
18469 LIBS="$lt_cv_dlopen_libs $LIBS"
18470
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18472 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18473 if test "${lt_cv_dlopen_self+set}" = set; then :
18474 $as_echo_n "(cached) " >&6
18475 else
18476 if test "$cross_compiling" = yes; then :
18477 lt_cv_dlopen_self=cross
18478 else
18479 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18480 lt_status=$lt_dlunknown
18481 cat > conftest.$ac_ext <<_LT_EOF
18482 #line 18482 "configure"
18483 #include "confdefs.h"
18484
18485 #if HAVE_DLFCN_H
18486 #include <dlfcn.h>
18487 #endif
18488
18489 #include <stdio.h>
18490
18491 #ifdef RTLD_GLOBAL
18492 # define LT_DLGLOBAL RTLD_GLOBAL
18493 #else
18494 # ifdef DL_GLOBAL
18495 # define LT_DLGLOBAL DL_GLOBAL
18496 # else
18497 # define LT_DLGLOBAL 0
18498 # endif
18499 #endif
18500
18501 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18502 find out it does not work in some platform. */
18503 #ifndef LT_DLLAZY_OR_NOW
18504 # ifdef RTLD_LAZY
18505 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18506 # else
18507 # ifdef DL_LAZY
18508 # define LT_DLLAZY_OR_NOW DL_LAZY
18509 # else
18510 # ifdef RTLD_NOW
18511 # define LT_DLLAZY_OR_NOW RTLD_NOW
18512 # else
18513 # ifdef DL_NOW
18514 # define LT_DLLAZY_OR_NOW DL_NOW
18515 # else
18516 # define LT_DLLAZY_OR_NOW 0
18517 # endif
18518 # endif
18519 # endif
18520 # endif
18521 #endif
18522
18523 /* When -fvisbility=hidden is used, assume the code has been annotated
18524 correspondingly for the symbols needed. */
18525 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18526 void fnord () __attribute__((visibility("default")));
18527 #endif
18528
18529 void fnord () { int i=42; }
18530 int main ()
18531 {
18532 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18533 int status = $lt_dlunknown;
18534
18535 if (self)
18536 {
18537 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18538 else
18539 {
18540 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18541 else puts (dlerror ());
18542 }
18543 /* dlclose (self); */
18544 }
18545 else
18546 puts (dlerror ());
18547
18548 return status;
18549 }
18550 _LT_EOF
18551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18552 (eval $ac_link) 2>&5
18553 ac_status=$?
18554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18555 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18556 (./conftest; exit; ) >&5 2>/dev/null
18557 lt_status=$?
18558 case x$lt_status in
18559 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18560 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18561 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18562 esac
18563 else :
18564 # compilation failed
18565 lt_cv_dlopen_self=no
18566 fi
18567 fi
18568 rm -fr conftest*
18569
18570
18571 fi
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18573 $as_echo "$lt_cv_dlopen_self" >&6; }
18574
18575 if test "x$lt_cv_dlopen_self" = xyes; then
18576 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18578 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18579 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18580 $as_echo_n "(cached) " >&6
18581 else
18582 if test "$cross_compiling" = yes; then :
18583 lt_cv_dlopen_self_static=cross
18584 else
18585 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18586 lt_status=$lt_dlunknown
18587 cat > conftest.$ac_ext <<_LT_EOF
18588 #line 18588 "configure"
18589 #include "confdefs.h"
18590
18591 #if HAVE_DLFCN_H
18592 #include <dlfcn.h>
18593 #endif
18594
18595 #include <stdio.h>
18596
18597 #ifdef RTLD_GLOBAL
18598 # define LT_DLGLOBAL RTLD_GLOBAL
18599 #else
18600 # ifdef DL_GLOBAL
18601 # define LT_DLGLOBAL DL_GLOBAL
18602 # else
18603 # define LT_DLGLOBAL 0
18604 # endif
18605 #endif
18606
18607 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18608 find out it does not work in some platform. */
18609 #ifndef LT_DLLAZY_OR_NOW
18610 # ifdef RTLD_LAZY
18611 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18612 # else
18613 # ifdef DL_LAZY
18614 # define LT_DLLAZY_OR_NOW DL_LAZY
18615 # else
18616 # ifdef RTLD_NOW
18617 # define LT_DLLAZY_OR_NOW RTLD_NOW
18618 # else
18619 # ifdef DL_NOW
18620 # define LT_DLLAZY_OR_NOW DL_NOW
18621 # else
18622 # define LT_DLLAZY_OR_NOW 0
18623 # endif
18624 # endif
18625 # endif
18626 # endif
18627 #endif
18628
18629 /* When -fvisbility=hidden is used, assume the code has been annotated
18630 correspondingly for the symbols needed. */
18631 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18632 void fnord () __attribute__((visibility("default")));
18633 #endif
18634
18635 void fnord () { int i=42; }
18636 int main ()
18637 {
18638 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18639 int status = $lt_dlunknown;
18640
18641 if (self)
18642 {
18643 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18644 else
18645 {
18646 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18647 else puts (dlerror ());
18648 }
18649 /* dlclose (self); */
18650 }
18651 else
18652 puts (dlerror ());
18653
18654 return status;
18655 }
18656 _LT_EOF
18657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18658 (eval $ac_link) 2>&5
18659 ac_status=$?
18660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18661 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18662 (./conftest; exit; ) >&5 2>/dev/null
18663 lt_status=$?
18664 case x$lt_status in
18665 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18666 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18667 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18668 esac
18669 else :
18670 # compilation failed
18671 lt_cv_dlopen_self_static=no
18672 fi
18673 fi
18674 rm -fr conftest*
18675
18676
18677 fi
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18679 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18680 fi
18681
18682 CPPFLAGS="$save_CPPFLAGS"
18683 LDFLAGS="$save_LDFLAGS"
18684 LIBS="$save_LIBS"
18685 ;;
18686 esac
18687
18688 case $lt_cv_dlopen_self in
18689 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18690 *) enable_dlopen_self=unknown ;;
18691 esac
18692
18693 case $lt_cv_dlopen_self_static in
18694 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18695 *) enable_dlopen_self_static=unknown ;;
18696 esac
18697 fi
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715 striplib=
18716 old_striplib=
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18718 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18719 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18720 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18721 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18723 $as_echo "yes" >&6; }
18724 else
18725 # FIXME - insert some real tests, host_os isn't really good enough
18726 case $host_os in
18727 darwin*)
18728 if test -n "$STRIP" ; then
18729 striplib="$STRIP -x"
18730 old_striplib="$STRIP -S"
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18732 $as_echo "yes" >&6; }
18733 else
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18735 $as_echo "no" >&6; }
18736 fi
18737 ;;
18738 *)
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18740 $as_echo "no" >&6; }
18741 ;;
18742 esac
18743 fi
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756 # Report which library types will actually be built
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18758 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18760 $as_echo "$can_build_shared" >&6; }
18761
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18763 $as_echo_n "checking whether to build shared libraries... " >&6; }
18764 test "$can_build_shared" = "no" && enable_shared=no
18765
18766 # On AIX, shared libraries and static libraries use the same namespace, and
18767 # are all built from PIC.
18768 case $host_os in
18769 aix3*)
18770 test "$enable_shared" = yes && enable_static=no
18771 if test -n "$RANLIB"; then
18772 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18773 postinstall_cmds='$RANLIB $lib'
18774 fi
18775 ;;
18776
18777 aix[4-9]*)
18778 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18779 test "$enable_shared" = yes && enable_static=no
18780 fi
18781 ;;
18782 esac
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18784 $as_echo "$enable_shared" >&6; }
18785
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18787 $as_echo_n "checking whether to build static libraries... " >&6; }
18788 # Make sure either enable_shared or enable_static is yes.
18789 test "$enable_shared" = yes || enable_static=yes
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18791 $as_echo "$enable_static" >&6; }
18792
18793
18794
18795
18796 fi
18797 ac_ext=cpp
18798 ac_cpp='$CXXCPP $CPPFLAGS'
18799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18802
18803 CC="$lt_save_CC"
18804
18805 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18806 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18807 (test "X$CXX" != "Xg++"))) ; then
18808 ac_ext=cpp
18809 ac_cpp='$CXXCPP $CPPFLAGS'
18810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18814 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18815 if test -z "$CXXCPP"; then
18816 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18817 $as_echo_n "(cached) " >&6
18818 else
18819 # Double quotes because CXXCPP needs to be expanded
18820 for CXXCPP in "$CXX -E" "/lib/cpp"
18821 do
18822 ac_preproc_ok=false
18823 for ac_cxx_preproc_warn_flag in '' yes
18824 do
18825 # Use a header file that comes with gcc, so configuring glibc
18826 # with a fresh cross-compiler works.
18827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18828 # <limits.h> exists even on freestanding compilers.
18829 # On the NeXT, cc -E runs the code through the compiler's parser,
18830 # not just through cpp. "Syntax error" is here to catch this case.
18831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18832 /* end confdefs.h. */
18833 #ifdef __STDC__
18834 # include <limits.h>
18835 #else
18836 # include <assert.h>
18837 #endif
18838 Syntax error
18839 _ACEOF
18840 if ac_fn_cxx_try_cpp "$LINENO"; then :
18841
18842 else
18843 # Broken: fails on valid input.
18844 continue
18845 fi
18846 rm -f conftest.err conftest.$ac_ext
18847
18848 # OK, works on sane cases. Now check whether nonexistent headers
18849 # can be detected and how.
18850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18851 /* end confdefs.h. */
18852 #include <ac_nonexistent.h>
18853 _ACEOF
18854 if ac_fn_cxx_try_cpp "$LINENO"; then :
18855 # Broken: success on invalid input.
18856 continue
18857 else
18858 # Passes both tests.
18859 ac_preproc_ok=:
18860 break
18861 fi
18862 rm -f conftest.err conftest.$ac_ext
18863
18864 done
18865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18866 rm -f conftest.err conftest.$ac_ext
18867 if $ac_preproc_ok; then :
18868 break
18869 fi
18870
18871 done
18872 ac_cv_prog_CXXCPP=$CXXCPP
18873
18874 fi
18875 CXXCPP=$ac_cv_prog_CXXCPP
18876 else
18877 ac_cv_prog_CXXCPP=$CXXCPP
18878 fi
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18880 $as_echo "$CXXCPP" >&6; }
18881 ac_preproc_ok=false
18882 for ac_cxx_preproc_warn_flag in '' yes
18883 do
18884 # Use a header file that comes with gcc, so configuring glibc
18885 # with a fresh cross-compiler works.
18886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18887 # <limits.h> exists even on freestanding compilers.
18888 # On the NeXT, cc -E runs the code through the compiler's parser,
18889 # not just through cpp. "Syntax error" is here to catch this case.
18890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h. */
18892 #ifdef __STDC__
18893 # include <limits.h>
18894 #else
18895 # include <assert.h>
18896 #endif
18897 Syntax error
18898 _ACEOF
18899 if ac_fn_cxx_try_cpp "$LINENO"; then :
18900
18901 else
18902 # Broken: fails on valid input.
18903 continue
18904 fi
18905 rm -f conftest.err conftest.$ac_ext
18906
18907 # OK, works on sane cases. Now check whether nonexistent headers
18908 # can be detected and how.
18909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18910 /* end confdefs.h. */
18911 #include <ac_nonexistent.h>
18912 _ACEOF
18913 if ac_fn_cxx_try_cpp "$LINENO"; then :
18914 # Broken: success on invalid input.
18915 continue
18916 else
18917 # Passes both tests.
18918 ac_preproc_ok=:
18919 break
18920 fi
18921 rm -f conftest.err conftest.$ac_ext
18922
18923 done
18924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18925 rm -f conftest.err conftest.$ac_ext
18926 if $ac_preproc_ok; then :
18927
18928 else
18929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18931 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18932 See \`config.log' for more details." "$LINENO" 5; }
18933 fi
18934
18935 ac_ext=cpp
18936 ac_cpp='$CXXCPP $CPPFLAGS'
18937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18940
18941 else
18942 _lt_caught_CXX_error=yes
18943 fi
18944
18945 ac_ext=cpp
18946 ac_cpp='$CXXCPP $CPPFLAGS'
18947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18950
18951 archive_cmds_need_lc_CXX=no
18952 allow_undefined_flag_CXX=
18953 always_export_symbols_CXX=no
18954 archive_expsym_cmds_CXX=
18955 compiler_needs_object_CXX=no
18956 export_dynamic_flag_spec_CXX=
18957 hardcode_direct_CXX=no
18958 hardcode_direct_absolute_CXX=no
18959 hardcode_libdir_flag_spec_CXX=
18960 hardcode_libdir_flag_spec_ld_CXX=
18961 hardcode_libdir_separator_CXX=
18962 hardcode_minus_L_CXX=no
18963 hardcode_shlibpath_var_CXX=unsupported
18964 hardcode_automatic_CXX=no
18965 inherit_rpath_CXX=no
18966 module_cmds_CXX=
18967 module_expsym_cmds_CXX=
18968 link_all_deplibs_CXX=unknown
18969 old_archive_cmds_CXX=$old_archive_cmds
18970 reload_flag_CXX=$reload_flag
18971 reload_cmds_CXX=$reload_cmds
18972 no_undefined_flag_CXX=
18973 whole_archive_flag_spec_CXX=
18974 enable_shared_with_static_runtimes_CXX=no
18975
18976 # Source file extension for C++ test sources.
18977 ac_ext=cpp
18978
18979 # Object file extension for compiled C++ test sources.
18980 objext=o
18981 objext_CXX=$objext
18982
18983 # No sense in running all these tests if we already determined that
18984 # the CXX compiler isn't working. Some variables (like enable_shared)
18985 # are currently assumed to apply to all compilers on this platform,
18986 # and will be corrupted by setting them based on a non-working compiler.
18987 if test "$_lt_caught_CXX_error" != yes; then
18988 # Code to be used in simple compile tests
18989 lt_simple_compile_test_code="int some_variable = 0;"
18990
18991 # Code to be used in simple link tests
18992 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18993
18994 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18995
18996
18997
18998
18999
19000
19001 # If no C compiler was specified, use CC.
19002 LTCC=${LTCC-"$CC"}
19003
19004 # If no C compiler flags were specified, use CFLAGS.
19005 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19006
19007 # Allow CC to be a program name with arguments.
19008 compiler=$CC
19009
19010
19011 # save warnings/boilerplate of simple test code
19012 ac_outfile=conftest.$ac_objext
19013 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19014 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19015 _lt_compiler_boilerplate=`cat conftest.err`
19016 $RM conftest*
19017
19018 ac_outfile=conftest.$ac_objext
19019 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19020 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19021 _lt_linker_boilerplate=`cat conftest.err`
19022 $RM -r conftest*
19023
19024
19025 # Allow CC to be a program name with arguments.
19026 lt_save_CC=$CC
19027 lt_save_LD=$LD
19028 lt_save_GCC=$GCC
19029 GCC=$GXX
19030 lt_save_with_gnu_ld=$with_gnu_ld
19031 lt_save_path_LD=$lt_cv_path_LD
19032 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19033 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19034 else
19035 $as_unset lt_cv_prog_gnu_ld
19036 fi
19037 if test -n "${lt_cv_path_LDCXX+set}"; then
19038 lt_cv_path_LD=$lt_cv_path_LDCXX
19039 else
19040 $as_unset lt_cv_path_LD
19041 fi
19042 test -z "${LDCXX+set}" || LD=$LDCXX
19043 CC=${CXX-"c++"}
19044 compiler=$CC
19045 compiler_CXX=$CC
19046 for cc_temp in $compiler""; do
19047 case $cc_temp in
19048 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19049 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19050 \-*) ;;
19051 *) break;;
19052 esac
19053 done
19054 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19055
19056
19057 if test -n "$compiler"; then
19058 # We don't want -fno-exception when compiling C++ code, so set the
19059 # no_builtin_flag separately
19060 if test "$GXX" = yes; then
19061 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19062 else
19063 lt_prog_compiler_no_builtin_flag_CXX=
19064 fi
19065
19066 if test "$GXX" = yes; then
19067 # Set up default GNU C++ configuration
19068
19069
19070
19071 # Check whether --with-gnu-ld was given.
19072 if test "${with_gnu_ld+set}" = set; then :
19073 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19074 else
19075 with_gnu_ld=no
19076 fi
19077
19078 ac_prog=ld
19079 if test "$GCC" = yes; then
19080 # Check if gcc -print-prog-name=ld gives a path.
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19082 $as_echo_n "checking for ld used by $CC... " >&6; }
19083 case $host in
19084 *-*-mingw*)
19085 # gcc leaves a trailing carriage return which upsets mingw
19086 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19087 *)
19088 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19089 esac
19090 case $ac_prog in
19091 # Accept absolute paths.
19092 [\\/]* | ?:[\\/]*)
19093 re_direlt='/[^/][^/]*/\.\./'
19094 # Canonicalize the pathname of ld
19095 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19096 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19097 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19098 done
19099 test -z "$LD" && LD="$ac_prog"
19100 ;;
19101 "")
19102 # If it fails, then pretend we aren't using GCC.
19103 ac_prog=ld
19104 ;;
19105 *)
19106 # If it is relative, then search for the first ld in PATH.
19107 with_gnu_ld=unknown
19108 ;;
19109 esac
19110 elif test "$with_gnu_ld" = yes; then
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19112 $as_echo_n "checking for GNU ld... " >&6; }
19113 else
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19115 $as_echo_n "checking for non-GNU ld... " >&6; }
19116 fi
19117 if test "${lt_cv_path_LD+set}" = set; then :
19118 $as_echo_n "(cached) " >&6
19119 else
19120 if test -z "$LD"; then
19121 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19122 for ac_dir in $PATH; do
19123 IFS="$lt_save_ifs"
19124 test -z "$ac_dir" && ac_dir=.
19125 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19126 lt_cv_path_LD="$ac_dir/$ac_prog"
19127 # Check to see if the program is GNU ld. I'd rather use --version,
19128 # but apparently some variants of GNU ld only accept -v.
19129 # Break only if it was the GNU/non-GNU ld that we prefer.
19130 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19131 *GNU* | *'with BFD'*)
19132 test "$with_gnu_ld" != no && break
19133 ;;
19134 *)
19135 test "$with_gnu_ld" != yes && break
19136 ;;
19137 esac
19138 fi
19139 done
19140 IFS="$lt_save_ifs"
19141 else
19142 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19143 fi
19144 fi
19145
19146 LD="$lt_cv_path_LD"
19147 if test -n "$LD"; then
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19149 $as_echo "$LD" >&6; }
19150 else
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19152 $as_echo "no" >&6; }
19153 fi
19154 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19156 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19157 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19158 $as_echo_n "(cached) " >&6
19159 else
19160 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19161 case `$LD -v 2>&1 </dev/null` in
19162 *GNU* | *'with BFD'*)
19163 lt_cv_prog_gnu_ld=yes
19164 ;;
19165 *)
19166 lt_cv_prog_gnu_ld=no
19167 ;;
19168 esac
19169 fi
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19171 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19172 with_gnu_ld=$lt_cv_prog_gnu_ld
19173
19174
19175
19176
19177
19178
19179
19180 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19181 # archiving commands below assume that GNU ld is being used.
19182 if test "$with_gnu_ld" = yes; then
19183 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19184 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'
19185
19186 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19187 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19188
19189 # If archive_cmds runs LD, not CC, wlarc should be empty
19190 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19191 # investigate it a little bit more. (MM)
19192 wlarc='${wl}'
19193
19194 # ancient GNU ld didn't support --whole-archive et. al.
19195 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19196 $GREP 'no-whole-archive' > /dev/null; then
19197 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19198 else
19199 whole_archive_flag_spec_CXX=
19200 fi
19201 else
19202 with_gnu_ld=no
19203 wlarc=
19204
19205 # A generic and very simple default shared library creation
19206 # command for GNU C++ for the case where it uses the native
19207 # linker, instead of GNU ld. If possible, this setting should
19208 # overridden to take advantage of the native linker features on
19209 # the platform it is being used on.
19210 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19211 fi
19212
19213 # Commands to make compiler produce verbose output that lists
19214 # what "hidden" libraries, object files and flags are used when
19215 # linking a shared library.
19216 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19217
19218 else
19219 GXX=no
19220 with_gnu_ld=no
19221 wlarc=
19222 fi
19223
19224 # PORTME: fill in a description of your system's C++ link characteristics
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19226 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19227 ld_shlibs_CXX=yes
19228 case $host_os in
19229 aix3*)
19230 # FIXME: insert proper C++ library support
19231 ld_shlibs_CXX=no
19232 ;;
19233 aix[4-9]*)
19234 if test "$host_cpu" = ia64; then
19235 # On IA64, the linker does run time linking by default, so we don't
19236 # have to do anything special.
19237 aix_use_runtimelinking=no
19238 exp_sym_flag='-Bexport'
19239 no_entry_flag=""
19240 else
19241 aix_use_runtimelinking=no
19242
19243 # Test if we are trying to use run time linking or normal
19244 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19245 # need to do runtime linking.
19246 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19247 for ld_flag in $LDFLAGS; do
19248 case $ld_flag in
19249 *-brtl*)
19250 aix_use_runtimelinking=yes
19251 break
19252 ;;
19253 esac
19254 done
19255 ;;
19256 esac
19257
19258 exp_sym_flag='-bexport'
19259 no_entry_flag='-bnoentry'
19260 fi
19261
19262 # When large executables or shared objects are built, AIX ld can
19263 # have problems creating the table of contents. If linking a library
19264 # or program results in "error TOC overflow" add -mminimal-toc to
19265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19267
19268 archive_cmds_CXX=''
19269 hardcode_direct_CXX=yes
19270 hardcode_direct_absolute_CXX=yes
19271 hardcode_libdir_separator_CXX=':'
19272 link_all_deplibs_CXX=yes
19273 file_list_spec_CXX='${wl}-f,'
19274
19275 if test "$GXX" = yes; then
19276 case $host_os in aix4.[012]|aix4.[012].*)
19277 # We only want to do this on AIX 4.2 and lower, the check
19278 # below for broken collect2 doesn't work under 4.3+
19279 collect2name=`${CC} -print-prog-name=collect2`
19280 if test -f "$collect2name" &&
19281 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19282 then
19283 # We have reworked collect2
19284 :
19285 else
19286 # We have old collect2
19287 hardcode_direct_CXX=unsupported
19288 # It fails to find uninstalled libraries when the uninstalled
19289 # path is not listed in the libpath. Setting hardcode_minus_L
19290 # to unsupported forces relinking
19291 hardcode_minus_L_CXX=yes
19292 hardcode_libdir_flag_spec_CXX='-L$libdir'
19293 hardcode_libdir_separator_CXX=
19294 fi
19295 esac
19296 shared_flag='-shared'
19297 if test "$aix_use_runtimelinking" = yes; then
19298 shared_flag="$shared_flag "'${wl}-G'
19299 fi
19300 else
19301 # not using gcc
19302 if test "$host_cpu" = ia64; then
19303 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19304 # chokes on -Wl,-G. The following line is correct:
19305 shared_flag='-G'
19306 else
19307 if test "$aix_use_runtimelinking" = yes; then
19308 shared_flag='${wl}-G'
19309 else
19310 shared_flag='${wl}-bM:SRE'
19311 fi
19312 fi
19313 fi
19314
19315 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19316 # It seems that -bexpall does not export symbols beginning with
19317 # underscore (_), so it is better to generate a list of symbols to
19318 # export.
19319 always_export_symbols_CXX=yes
19320 if test "$aix_use_runtimelinking" = yes; then
19321 # Warning - without using the other runtime loading flags (-brtl),
19322 # -berok will link without error, but may produce a broken library.
19323 allow_undefined_flag_CXX='-berok'
19324 # Determine the default libpath from the value encoded in an empty
19325 # executable.
19326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19327 /* end confdefs.h. */
19328
19329 int
19330 main ()
19331 {
19332
19333 ;
19334 return 0;
19335 }
19336 _ACEOF
19337 if ac_fn_cxx_try_link "$LINENO"; then :
19338
19339 lt_aix_libpath_sed='
19340 /Import File Strings/,/^$/ {
19341 /^0/ {
19342 s/^0 *\(.*\)$/\1/
19343 p
19344 }
19345 }'
19346 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19347 # Check for a 64-bit object if we didn't find anything.
19348 if test -z "$aix_libpath"; then
19349 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19350 fi
19351 fi
19352 rm -f core conftest.err conftest.$ac_objext \
19353 conftest$ac_exeext conftest.$ac_ext
19354 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19355
19356 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19357
19358 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"
19359 else
19360 if test "$host_cpu" = ia64; then
19361 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19362 allow_undefined_flag_CXX="-z nodefs"
19363 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"
19364 else
19365 # Determine the default libpath from the value encoded in an
19366 # empty executable.
19367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19368 /* end confdefs.h. */
19369
19370 int
19371 main ()
19372 {
19373
19374 ;
19375 return 0;
19376 }
19377 _ACEOF
19378 if ac_fn_cxx_try_link "$LINENO"; then :
19379
19380 lt_aix_libpath_sed='
19381 /Import File Strings/,/^$/ {
19382 /^0/ {
19383 s/^0 *\(.*\)$/\1/
19384 p
19385 }
19386 }'
19387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19388 # Check for a 64-bit object if we didn't find anything.
19389 if test -z "$aix_libpath"; then
19390 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19391 fi
19392 fi
19393 rm -f core conftest.err conftest.$ac_objext \
19394 conftest$ac_exeext conftest.$ac_ext
19395 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19396
19397 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19398 # Warning - without using the other run time loading flags,
19399 # -berok will link without error, but may produce a broken library.
19400 no_undefined_flag_CXX=' ${wl}-bernotok'
19401 allow_undefined_flag_CXX=' ${wl}-berok'
19402 if test "$with_gnu_ld" = yes; then
19403 # We only use this code for GNU lds that support --whole-archive.
19404 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19405 else
19406 # Exported symbols can be pulled into shared objects from archives
19407 whole_archive_flag_spec_CXX='$convenience'
19408 fi
19409 archive_cmds_need_lc_CXX=yes
19410 # This is similar to how AIX traditionally builds its shared
19411 # libraries.
19412 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'
19413 fi
19414 fi
19415 ;;
19416
19417 beos*)
19418 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19419 allow_undefined_flag_CXX=unsupported
19420 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19421 # support --undefined. This deserves some investigation. FIXME
19422 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19423 else
19424 ld_shlibs_CXX=no
19425 fi
19426 ;;
19427
19428 chorus*)
19429 case $cc_basename in
19430 *)
19431 # FIXME: insert proper C++ library support
19432 ld_shlibs_CXX=no
19433 ;;
19434 esac
19435 ;;
19436
19437 cygwin* | mingw* | pw32* | cegcc*)
19438 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19439 # as there is no search path for DLLs.
19440 hardcode_libdir_flag_spec_CXX='-L$libdir'
19441 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19442 allow_undefined_flag_CXX=unsupported
19443 always_export_symbols_CXX=no
19444 enable_shared_with_static_runtimes_CXX=yes
19445
19446 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19447 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'
19448 # If the export-symbols file already is a .def file (1st line
19449 # is EXPORTS), use it as is; otherwise, prepend...
19450 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19451 cp $export_symbols $output_objdir/$soname.def;
19452 else
19453 echo EXPORTS > $output_objdir/$soname.def;
19454 cat $export_symbols >> $output_objdir/$soname.def;
19455 fi~
19456 $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'
19457 else
19458 ld_shlibs_CXX=no
19459 fi
19460 ;;
19461 darwin* | rhapsody*)
19462
19463
19464 archive_cmds_need_lc_CXX=no
19465 hardcode_direct_CXX=no
19466 hardcode_automatic_CXX=yes
19467 hardcode_shlibpath_var_CXX=unsupported
19468 if test "$lt_cv_ld_force_load" = "yes"; then
19469 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\"`'
19470 else
19471 whole_archive_flag_spec_CXX=''
19472 fi
19473 link_all_deplibs_CXX=yes
19474 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19475 case $cc_basename in
19476 ifort*) _lt_dar_can_shared=yes ;;
19477 *) _lt_dar_can_shared=$GCC ;;
19478 esac
19479 if test "$_lt_dar_can_shared" = "yes"; then
19480 output_verbose_link_cmd=func_echo_all
19481 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}"
19482 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19483 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}"
19484 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}"
19485 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19486 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}"
19487 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}"
19488 fi
19489
19490 else
19491 ld_shlibs_CXX=no
19492 fi
19493
19494 ;;
19495
19496 dgux*)
19497 case $cc_basename in
19498 ec++*)
19499 # FIXME: insert proper C++ library support
19500 ld_shlibs_CXX=no
19501 ;;
19502 ghcx*)
19503 # Green Hills C++ Compiler
19504 # FIXME: insert proper C++ library support
19505 ld_shlibs_CXX=no
19506 ;;
19507 *)
19508 # FIXME: insert proper C++ library support
19509 ld_shlibs_CXX=no
19510 ;;
19511 esac
19512 ;;
19513
19514 freebsd2.*)
19515 # C++ shared libraries reported to be fairly broken before
19516 # switch to ELF
19517 ld_shlibs_CXX=no
19518 ;;
19519
19520 freebsd-elf*)
19521 archive_cmds_need_lc_CXX=no
19522 ;;
19523
19524 freebsd* | dragonfly*)
19525 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19526 # conventions
19527 ld_shlibs_CXX=yes
19528 ;;
19529
19530 gnu*)
19531 ;;
19532
19533 haiku*)
19534 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19535 link_all_deplibs_CXX=yes
19536 ;;
19537
19538 hpux9*)
19539 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19540 hardcode_libdir_separator_CXX=:
19541 export_dynamic_flag_spec_CXX='${wl}-E'
19542 hardcode_direct_CXX=yes
19543 hardcode_minus_L_CXX=yes # Not in the search PATH,
19544 # but as the default
19545 # location of the library.
19546
19547 case $cc_basename in
19548 CC*)
19549 # FIXME: insert proper C++ library support
19550 ld_shlibs_CXX=no
19551 ;;
19552 aCC*)
19553 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'
19554 # Commands to make compiler produce verbose output that lists
19555 # what "hidden" libraries, object files and flags are used when
19556 # linking a shared library.
19557 #
19558 # There doesn't appear to be a way to prevent this compiler from
19559 # explicitly linking system object files so we need to strip them
19560 # from the output so that they don't get included in the library
19561 # dependencies.
19562 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"'
19563 ;;
19564 *)
19565 if test "$GXX" = yes; then
19566 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'
19567 else
19568 # FIXME: insert proper C++ library support
19569 ld_shlibs_CXX=no
19570 fi
19571 ;;
19572 esac
19573 ;;
19574
19575 hpux10*|hpux11*)
19576 if test $with_gnu_ld = no; then
19577 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19578 hardcode_libdir_separator_CXX=:
19579
19580 case $host_cpu in
19581 hppa*64*|ia64*)
19582 ;;
19583 *)
19584 export_dynamic_flag_spec_CXX='${wl}-E'
19585 ;;
19586 esac
19587 fi
19588 case $host_cpu in
19589 hppa*64*|ia64*)
19590 hardcode_direct_CXX=no
19591 hardcode_shlibpath_var_CXX=no
19592 ;;
19593 *)
19594 hardcode_direct_CXX=yes
19595 hardcode_direct_absolute_CXX=yes
19596 hardcode_minus_L_CXX=yes # Not in the search PATH,
19597 # but as the default
19598 # location of the library.
19599 ;;
19600 esac
19601
19602 case $cc_basename in
19603 CC*)
19604 # FIXME: insert proper C++ library support
19605 ld_shlibs_CXX=no
19606 ;;
19607 aCC*)
19608 case $host_cpu in
19609 hppa*64*)
19610 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19611 ;;
19612 ia64*)
19613 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19614 ;;
19615 *)
19616 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19617 ;;
19618 esac
19619 # Commands to make compiler produce verbose output that lists
19620 # what "hidden" libraries, object files and flags are used when
19621 # linking a shared library.
19622 #
19623 # There doesn't appear to be a way to prevent this compiler from
19624 # explicitly linking system object files so we need to strip them
19625 # from the output so that they don't get included in the library
19626 # dependencies.
19627 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"'
19628 ;;
19629 *)
19630 if test "$GXX" = yes; then
19631 if test $with_gnu_ld = no; then
19632 case $host_cpu in
19633 hppa*64*)
19634 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19635 ;;
19636 ia64*)
19637 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19638 ;;
19639 *)
19640 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'
19641 ;;
19642 esac
19643 fi
19644 else
19645 # FIXME: insert proper C++ library support
19646 ld_shlibs_CXX=no
19647 fi
19648 ;;
19649 esac
19650 ;;
19651
19652 interix[3-9]*)
19653 hardcode_direct_CXX=no
19654 hardcode_shlibpath_var_CXX=no
19655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19656 export_dynamic_flag_spec_CXX='${wl}-E'
19657 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19658 # Instead, shared libraries are loaded at an image base (0x10000000 by
19659 # default) and relocated if they conflict, which is a slow very memory
19660 # consuming and fragmenting process. To avoid this, we pick a random,
19661 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19662 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19663 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'
19664 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'
19665 ;;
19666 irix5* | irix6*)
19667 case $cc_basename in
19668 CC*)
19669 # SGI C++
19670 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'
19671
19672 # Archives containing C++ object files must be created using
19673 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19674 # necessary to make sure instantiated templates are included
19675 # in the archive.
19676 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19677 ;;
19678 *)
19679 if test "$GXX" = yes; then
19680 if test "$with_gnu_ld" = no; then
19681 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'
19682 else
19683 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'
19684 fi
19685 fi
19686 link_all_deplibs_CXX=yes
19687 ;;
19688 esac
19689 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19690 hardcode_libdir_separator_CXX=:
19691 inherit_rpath_CXX=yes
19692 ;;
19693
19694 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19695 case $cc_basename in
19696 KCC*)
19697 # Kuck and Associates, Inc. (KAI) C++ Compiler
19698
19699 # KCC will only create a shared library if the output file
19700 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19701 # to its proper name (with version) after linking.
19702 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'
19703 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'
19704 # Commands to make compiler produce verbose output that lists
19705 # what "hidden" libraries, object files and flags are used when
19706 # linking a shared library.
19707 #
19708 # There doesn't appear to be a way to prevent this compiler from
19709 # explicitly linking system object files so we need to strip them
19710 # from the output so that they don't get included in the library
19711 # dependencies.
19712 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"'
19713
19714 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19715 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19716
19717 # Archives containing C++ object files must be created using
19718 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19719 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19720 ;;
19721 icpc* | ecpc* )
19722 # Intel C++
19723 with_gnu_ld=yes
19724 # version 8.0 and above of icpc choke on multiply defined symbols
19725 # if we add $predep_objects and $postdep_objects, however 7.1 and
19726 # earlier do not add the objects themselves.
19727 case `$CC -V 2>&1` in
19728 *"Version 7."*)
19729 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19730 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'
19731 ;;
19732 *) # Version 8.0 or newer
19733 tmp_idyn=
19734 case $host_cpu in
19735 ia64*) tmp_idyn=' -i_dynamic';;
19736 esac
19737 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19738 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'
19739 ;;
19740 esac
19741 archive_cmds_need_lc_CXX=no
19742 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19743 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19744 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19745 ;;
19746 pgCC* | pgcpp*)
19747 # Portland Group C++ compiler
19748 case `$CC -V` in
19749 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19750 prelink_cmds_CXX='tpldir=Template.dir~
19751 rm -rf $tpldir~
19752 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19753 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19754 old_archive_cmds_CXX='tpldir=Template.dir~
19755 rm -rf $tpldir~
19756 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19757 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19758 $RANLIB $oldlib'
19759 archive_cmds_CXX='tpldir=Template.dir~
19760 rm -rf $tpldir~
19761 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19762 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19763 archive_expsym_cmds_CXX='tpldir=Template.dir~
19764 rm -rf $tpldir~
19765 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19766 $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'
19767 ;;
19768 *) # Version 6 and above use weak symbols
19769 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19770 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'
19771 ;;
19772 esac
19773
19774 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19775 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19776 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'
19777 ;;
19778 cxx*)
19779 # Compaq C++
19780 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19781 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'
19782
19783 runpath_var=LD_RUN_PATH
19784 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19785 hardcode_libdir_separator_CXX=:
19786
19787 # Commands to make compiler produce verbose output that lists
19788 # what "hidden" libraries, object files and flags are used when
19789 # linking a shared library.
19790 #
19791 # There doesn't appear to be a way to prevent this compiler from
19792 # explicitly linking system object files so we need to strip them
19793 # from the output so that they don't get included in the library
19794 # dependencies.
19795 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'
19796 ;;
19797 xl* | mpixl* | bgxl*)
19798 # IBM XL 8.0 on PPC, with GNU ld
19799 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19800 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19801 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19802 if test "x$supports_anon_versioning" = xyes; then
19803 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19804 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19805 echo "local: *; };" >> $output_objdir/$libname.ver~
19806 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19807 fi
19808 ;;
19809 *)
19810 case `$CC -V 2>&1 | sed 5q` in
19811 *Sun\ C*)
19812 # Sun C++ 5.9
19813 no_undefined_flag_CXX=' -zdefs'
19814 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19815 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'
19816 hardcode_libdir_flag_spec_CXX='-R$libdir'
19817 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'
19818 compiler_needs_object_CXX=yes
19819
19820 # Not sure whether something based on
19821 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19822 # would be better.
19823 output_verbose_link_cmd='func_echo_all'
19824
19825 # Archives containing C++ object files must be created using
19826 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19827 # necessary to make sure instantiated templates are included
19828 # in the archive.
19829 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19830 ;;
19831 esac
19832 ;;
19833 esac
19834 ;;
19835
19836 lynxos*)
19837 # FIXME: insert proper C++ library support
19838 ld_shlibs_CXX=no
19839 ;;
19840
19841 m88k*)
19842 # FIXME: insert proper C++ library support
19843 ld_shlibs_CXX=no
19844 ;;
19845
19846 mvs*)
19847 case $cc_basename in
19848 cxx*)
19849 # FIXME: insert proper C++ library support
19850 ld_shlibs_CXX=no
19851 ;;
19852 *)
19853 # FIXME: insert proper C++ library support
19854 ld_shlibs_CXX=no
19855 ;;
19856 esac
19857 ;;
19858
19859 netbsd*)
19860 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19861 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19862 wlarc=
19863 hardcode_libdir_flag_spec_CXX='-R$libdir'
19864 hardcode_direct_CXX=yes
19865 hardcode_shlibpath_var_CXX=no
19866 fi
19867 # Workaround some broken pre-1.5 toolchains
19868 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19869 ;;
19870
19871 *nto* | *qnx*)
19872 ld_shlibs_CXX=yes
19873 ;;
19874
19875 openbsd2*)
19876 # C++ shared libraries are fairly broken
19877 ld_shlibs_CXX=no
19878 ;;
19879
19880 openbsd*)
19881 if test -f /usr/libexec/ld.so; then
19882 hardcode_direct_CXX=yes
19883 hardcode_shlibpath_var_CXX=no
19884 hardcode_direct_absolute_CXX=yes
19885 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19887 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19888 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19889 export_dynamic_flag_spec_CXX='${wl}-E'
19890 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19891 fi
19892 output_verbose_link_cmd=func_echo_all
19893 else
19894 ld_shlibs_CXX=no
19895 fi
19896 ;;
19897
19898 osf3* | osf4* | osf5*)
19899 case $cc_basename in
19900 KCC*)
19901 # Kuck and Associates, Inc. (KAI) C++ Compiler
19902
19903 # KCC will only create a shared library if the output file
19904 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19905 # to its proper name (with version) after linking.
19906 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'
19907
19908 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19909 hardcode_libdir_separator_CXX=:
19910
19911 # Archives containing C++ object files must be created using
19912 # the KAI C++ compiler.
19913 case $host in
19914 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19915 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19916 esac
19917 ;;
19918 RCC*)
19919 # Rational C++ 2.4.1
19920 # FIXME: insert proper C++ library support
19921 ld_shlibs_CXX=no
19922 ;;
19923 cxx*)
19924 case $host in
19925 osf3*)
19926 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19927 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'
19928 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19929 ;;
19930 *)
19931 allow_undefined_flag_CXX=' -expect_unresolved \*'
19932 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'
19933 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19934 echo "-hidden">> $lib.exp~
19935 $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~
19936 $RM $lib.exp'
19937 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19938 ;;
19939 esac
19940
19941 hardcode_libdir_separator_CXX=:
19942
19943 # Commands to make compiler produce verbose output that lists
19944 # what "hidden" libraries, object files and flags are used when
19945 # linking a shared library.
19946 #
19947 # There doesn't appear to be a way to prevent this compiler from
19948 # explicitly linking system object files so we need to strip them
19949 # from the output so that they don't get included in the library
19950 # dependencies.
19951 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"'
19952 ;;
19953 *)
19954 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19955 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19956 case $host in
19957 osf3*)
19958 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'
19959 ;;
19960 *)
19961 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'
19962 ;;
19963 esac
19964
19965 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19966 hardcode_libdir_separator_CXX=:
19967
19968 # Commands to make compiler produce verbose output that lists
19969 # what "hidden" libraries, object files and flags are used when
19970 # linking a shared library.
19971 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19972
19973 else
19974 # FIXME: insert proper C++ library support
19975 ld_shlibs_CXX=no
19976 fi
19977 ;;
19978 esac
19979 ;;
19980
19981 psos*)
19982 # FIXME: insert proper C++ library support
19983 ld_shlibs_CXX=no
19984 ;;
19985
19986 sunos4*)
19987 case $cc_basename in
19988 CC*)
19989 # Sun C++ 4.x
19990 # FIXME: insert proper C++ library support
19991 ld_shlibs_CXX=no
19992 ;;
19993 lcc*)
19994 # Lucid
19995 # FIXME: insert proper C++ library support
19996 ld_shlibs_CXX=no
19997 ;;
19998 *)
19999 # FIXME: insert proper C++ library support
20000 ld_shlibs_CXX=no
20001 ;;
20002 esac
20003 ;;
20004
20005 solaris*)
20006 case $cc_basename in
20007 CC*)
20008 # Sun C++ 4.2, 5.x and Centerline C++
20009 archive_cmds_need_lc_CXX=yes
20010 no_undefined_flag_CXX=' -zdefs'
20011 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20012 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20013 $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'
20014
20015 hardcode_libdir_flag_spec_CXX='-R$libdir'
20016 hardcode_shlibpath_var_CXX=no
20017 case $host_os in
20018 solaris2.[0-5] | solaris2.[0-5].*) ;;
20019 *)
20020 # The compiler driver will combine and reorder linker options,
20021 # but understands `-z linker_flag'.
20022 # Supported since Solaris 2.6 (maybe 2.5.1?)
20023 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20024 ;;
20025 esac
20026 link_all_deplibs_CXX=yes
20027
20028 output_verbose_link_cmd='func_echo_all'
20029
20030 # Archives containing C++ object files must be created using
20031 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20032 # necessary to make sure instantiated templates are included
20033 # in the archive.
20034 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20035 ;;
20036 gcx*)
20037 # Green Hills C++ Compiler
20038 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20039
20040 # The C++ compiler must be used to create the archive.
20041 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20042 ;;
20043 *)
20044 # GNU C++ compiler with Solaris linker
20045 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20046 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20047 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20048 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20049 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20050 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20051
20052 # Commands to make compiler produce verbose output that lists
20053 # what "hidden" libraries, object files and flags are used when
20054 # linking a shared library.
20055 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20056 else
20057 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20058 # platform.
20059 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20060 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20061 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20062
20063 # Commands to make compiler produce verbose output that lists
20064 # what "hidden" libraries, object files and flags are used when
20065 # linking a shared library.
20066 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20067 fi
20068
20069 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20070 case $host_os in
20071 solaris2.[0-5] | solaris2.[0-5].*) ;;
20072 *)
20073 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20074 ;;
20075 esac
20076 fi
20077 ;;
20078 esac
20079 ;;
20080
20081 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20082 no_undefined_flag_CXX='${wl}-z,text'
20083 archive_cmds_need_lc_CXX=no
20084 hardcode_shlibpath_var_CXX=no
20085 runpath_var='LD_RUN_PATH'
20086
20087 case $cc_basename in
20088 CC*)
20089 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20090 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20091 ;;
20092 *)
20093 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20094 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20095 ;;
20096 esac
20097 ;;
20098
20099 sysv5* | sco3.2v5* | sco5v6*)
20100 # Note: We can NOT use -z defs as we might desire, because we do not
20101 # link with -lc, and that would cause any symbols used from libc to
20102 # always be unresolved, which means just about no library would
20103 # ever link correctly. If we're not using GNU ld we use -z text
20104 # though, which does catch some bad symbols but isn't as heavy-handed
20105 # as -z defs.
20106 no_undefined_flag_CXX='${wl}-z,text'
20107 allow_undefined_flag_CXX='${wl}-z,nodefs'
20108 archive_cmds_need_lc_CXX=no
20109 hardcode_shlibpath_var_CXX=no
20110 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20111 hardcode_libdir_separator_CXX=':'
20112 link_all_deplibs_CXX=yes
20113 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20114 runpath_var='LD_RUN_PATH'
20115
20116 case $cc_basename in
20117 CC*)
20118 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20119 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20120 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20121 '"$old_archive_cmds_CXX"
20122 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20123 '"$reload_cmds_CXX"
20124 ;;
20125 *)
20126 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20127 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20128 ;;
20129 esac
20130 ;;
20131
20132 tandem*)
20133 case $cc_basename in
20134 NCC*)
20135 # NonStop-UX NCC 3.20
20136 # FIXME: insert proper C++ library support
20137 ld_shlibs_CXX=no
20138 ;;
20139 *)
20140 # FIXME: insert proper C++ library support
20141 ld_shlibs_CXX=no
20142 ;;
20143 esac
20144 ;;
20145
20146 vxworks*)
20147 # FIXME: insert proper C++ library support
20148 ld_shlibs_CXX=no
20149 ;;
20150
20151 *)
20152 # FIXME: insert proper C++ library support
20153 ld_shlibs_CXX=no
20154 ;;
20155 esac
20156
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20158 $as_echo "$ld_shlibs_CXX" >&6; }
20159 test "$ld_shlibs_CXX" = no && can_build_shared=no
20160
20161 GCC_CXX="$GXX"
20162 LD_CXX="$LD"
20163
20164 ## CAVEAT EMPTOR:
20165 ## There is no encapsulation within the following macros, do not change
20166 ## the running order or otherwise move them around unless you know exactly
20167 ## what you are doing...
20168 # Dependencies to place before and after the object being linked:
20169 predep_objects_CXX=
20170 postdep_objects_CXX=
20171 predeps_CXX=
20172 postdeps_CXX=
20173 compiler_lib_search_path_CXX=
20174
20175 cat > conftest.$ac_ext <<_LT_EOF
20176 class Foo
20177 {
20178 public:
20179 Foo (void) { a = 0; }
20180 private:
20181 int a;
20182 };
20183 _LT_EOF
20184
20185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20186 (eval $ac_compile) 2>&5
20187 ac_status=$?
20188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20189 test $ac_status = 0; }; then
20190 # Parse the compiler output and extract the necessary
20191 # objects, libraries and library flags.
20192
20193 # Sentinel used to keep track of whether or not we are before
20194 # the conftest object file.
20195 pre_test_object_deps_done=no
20196
20197 for p in `eval "$output_verbose_link_cmd"`; do
20198 case $p in
20199
20200 -L* | -R* | -l*)
20201 # Some compilers place space between "-{L,R}" and the path.
20202 # Remove the space.
20203 if test $p = "-L" ||
20204 test $p = "-R"; then
20205 prev=$p
20206 continue
20207 else
20208 prev=
20209 fi
20210
20211 if test "$pre_test_object_deps_done" = no; then
20212 case $p in
20213 -L* | -R*)
20214 # Internal compiler library paths should come after those
20215 # provided the user. The postdeps already come after the
20216 # user supplied libs so there is no need to process them.
20217 if test -z "$compiler_lib_search_path_CXX"; then
20218 compiler_lib_search_path_CXX="${prev}${p}"
20219 else
20220 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20221 fi
20222 ;;
20223 # The "-l" case would never come before the object being
20224 # linked, so don't bother handling this case.
20225 esac
20226 else
20227 if test -z "$postdeps_CXX"; then
20228 postdeps_CXX="${prev}${p}"
20229 else
20230 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20231 fi
20232 fi
20233 ;;
20234
20235 *.$objext)
20236 # This assumes that the test object file only shows up
20237 # once in the compiler output.
20238 if test "$p" = "conftest.$objext"; then
20239 pre_test_object_deps_done=yes
20240 continue
20241 fi
20242
20243 if test "$pre_test_object_deps_done" = no; then
20244 if test -z "$predep_objects_CXX"; then
20245 predep_objects_CXX="$p"
20246 else
20247 predep_objects_CXX="$predep_objects_CXX $p"
20248 fi
20249 else
20250 if test -z "$postdep_objects_CXX"; then
20251 postdep_objects_CXX="$p"
20252 else
20253 postdep_objects_CXX="$postdep_objects_CXX $p"
20254 fi
20255 fi
20256 ;;
20257
20258 *) ;; # Ignore the rest.
20259
20260 esac
20261 done
20262
20263 # Clean up.
20264 rm -f a.out a.exe
20265 else
20266 echo "libtool.m4: error: problem compiling CXX test program"
20267 fi
20268
20269 $RM -f confest.$objext
20270
20271 # PORTME: override above test on systems where it is broken
20272 case $host_os in
20273 interix[3-9]*)
20274 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20275 # hack all around it, let's just trust "g++" to DTRT.
20276 predep_objects_CXX=
20277 postdep_objects_CXX=
20278 postdeps_CXX=
20279 ;;
20280
20281 linux*)
20282 case `$CC -V 2>&1 | sed 5q` in
20283 *Sun\ C*)
20284 # Sun C++ 5.9
20285
20286 # The more standards-conforming stlport4 library is
20287 # incompatible with the Cstd library. Avoid specifying
20288 # it if it's in CXXFLAGS. Ignore libCrun as
20289 # -library=stlport4 depends on it.
20290 case " $CXX $CXXFLAGS " in
20291 *" -library=stlport4 "*)
20292 solaris_use_stlport4=yes
20293 ;;
20294 esac
20295
20296 if test "$solaris_use_stlport4" != yes; then
20297 postdeps_CXX='-library=Cstd -library=Crun'
20298 fi
20299 ;;
20300 esac
20301 ;;
20302
20303 solaris*)
20304 case $cc_basename in
20305 CC*)
20306 # The more standards-conforming stlport4 library is
20307 # incompatible with the Cstd library. Avoid specifying
20308 # it if it's in CXXFLAGS. Ignore libCrun as
20309 # -library=stlport4 depends on it.
20310 case " $CXX $CXXFLAGS " in
20311 *" -library=stlport4 "*)
20312 solaris_use_stlport4=yes
20313 ;;
20314 esac
20315
20316 # Adding this requires a known-good setup of shared libraries for
20317 # Sun compiler versions before 5.6, else PIC objects from an old
20318 # archive will be linked into the output, leading to subtle bugs.
20319 if test "$solaris_use_stlport4" != yes; then
20320 postdeps_CXX='-library=Cstd -library=Crun'
20321 fi
20322 ;;
20323 esac
20324 ;;
20325 esac
20326
20327
20328 case " $postdeps_CXX " in
20329 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20330 esac
20331 compiler_lib_search_dirs_CXX=
20332 if test -n "${compiler_lib_search_path_CXX}"; then
20333 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20334 fi
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366 lt_prog_compiler_wl_CXX=
20367 lt_prog_compiler_pic_CXX=
20368 lt_prog_compiler_static_CXX=
20369
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20371 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20372
20373 # C++ specific cases for pic, static, wl, etc.
20374 if test "$GXX" = yes; then
20375 lt_prog_compiler_wl_CXX='-Wl,'
20376 lt_prog_compiler_static_CXX='-static'
20377
20378 case $host_os in
20379 aix*)
20380 # All AIX code is PIC.
20381 if test "$host_cpu" = ia64; then
20382 # AIX 5 now supports IA64 processor
20383 lt_prog_compiler_static_CXX='-Bstatic'
20384 fi
20385 lt_prog_compiler_pic_CXX='-fPIC'
20386 ;;
20387
20388 amigaos*)
20389 case $host_cpu in
20390 powerpc)
20391 # see comment about AmigaOS4 .so support
20392 lt_prog_compiler_pic_CXX='-fPIC'
20393 ;;
20394 m68k)
20395 # FIXME: we need at least 68020 code to build shared libraries, but
20396 # adding the `-m68020' flag to GCC prevents building anything better,
20397 # like `-m68040'.
20398 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20399 ;;
20400 esac
20401 ;;
20402
20403 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20404 # PIC is the default for these OSes.
20405 ;;
20406 mingw* | cygwin* | os2* | pw32* | cegcc*)
20407 # This hack is so that the source file can tell whether it is being
20408 # built for inclusion in a dll (and should export symbols for example).
20409 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20410 # (--disable-auto-import) libraries
20411 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20412 ;;
20413 darwin* | rhapsody*)
20414 # PIC is the default on this platform
20415 # Common symbols not allowed in MH_DYLIB files
20416 lt_prog_compiler_pic_CXX='-fno-common'
20417 ;;
20418 *djgpp*)
20419 # DJGPP does not support shared libraries at all
20420 lt_prog_compiler_pic_CXX=
20421 ;;
20422 haiku*)
20423 # PIC is the default for Haiku.
20424 # The "-static" flag exists, but is broken.
20425 lt_prog_compiler_static_CXX=
20426 ;;
20427 interix[3-9]*)
20428 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20429 # Instead, we relocate shared libraries at runtime.
20430 ;;
20431 sysv4*MP*)
20432 if test -d /usr/nec; then
20433 lt_prog_compiler_pic_CXX=-Kconform_pic
20434 fi
20435 ;;
20436 hpux*)
20437 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20438 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20439 # sets the default TLS model and affects inlining.
20440 case $host_cpu in
20441 hppa*64*)
20442 ;;
20443 *)
20444 lt_prog_compiler_pic_CXX='-fPIC'
20445 ;;
20446 esac
20447 ;;
20448 *qnx* | *nto*)
20449 # QNX uses GNU C++, but need to define -shared option too, otherwise
20450 # it will coredump.
20451 lt_prog_compiler_pic_CXX='-fPIC -shared'
20452 ;;
20453 *)
20454 lt_prog_compiler_pic_CXX='-fPIC'
20455 ;;
20456 esac
20457 else
20458 case $host_os in
20459 aix[4-9]*)
20460 # All AIX code is PIC.
20461 if test "$host_cpu" = ia64; then
20462 # AIX 5 now supports IA64 processor
20463 lt_prog_compiler_static_CXX='-Bstatic'
20464 else
20465 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20466 fi
20467 ;;
20468 chorus*)
20469 case $cc_basename in
20470 cxch68*)
20471 # Green Hills C++ Compiler
20472 # _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"
20473 ;;
20474 esac
20475 ;;
20476 dgux*)
20477 case $cc_basename in
20478 ec++*)
20479 lt_prog_compiler_pic_CXX='-KPIC'
20480 ;;
20481 ghcx*)
20482 # Green Hills C++ Compiler
20483 lt_prog_compiler_pic_CXX='-pic'
20484 ;;
20485 *)
20486 ;;
20487 esac
20488 ;;
20489 freebsd* | dragonfly*)
20490 # FreeBSD uses GNU C++
20491 ;;
20492 hpux9* | hpux10* | hpux11*)
20493 case $cc_basename in
20494 CC*)
20495 lt_prog_compiler_wl_CXX='-Wl,'
20496 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20497 if test "$host_cpu" != ia64; then
20498 lt_prog_compiler_pic_CXX='+Z'
20499 fi
20500 ;;
20501 aCC*)
20502 lt_prog_compiler_wl_CXX='-Wl,'
20503 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20504 case $host_cpu in
20505 hppa*64*|ia64*)
20506 # +Z the default
20507 ;;
20508 *)
20509 lt_prog_compiler_pic_CXX='+Z'
20510 ;;
20511 esac
20512 ;;
20513 *)
20514 ;;
20515 esac
20516 ;;
20517 interix*)
20518 # This is c89, which is MS Visual C++ (no shared libs)
20519 # Anyone wants to do a port?
20520 ;;
20521 irix5* | irix6* | nonstopux*)
20522 case $cc_basename in
20523 CC*)
20524 lt_prog_compiler_wl_CXX='-Wl,'
20525 lt_prog_compiler_static_CXX='-non_shared'
20526 # CC pic flag -KPIC is the default.
20527 ;;
20528 *)
20529 ;;
20530 esac
20531 ;;
20532 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20533 case $cc_basename in
20534 KCC*)
20535 # KAI C++ Compiler
20536 lt_prog_compiler_wl_CXX='--backend -Wl,'
20537 lt_prog_compiler_pic_CXX='-fPIC'
20538 ;;
20539 ecpc* )
20540 # old Intel C++ for x86_64 which still supported -KPIC.
20541 lt_prog_compiler_wl_CXX='-Wl,'
20542 lt_prog_compiler_pic_CXX='-KPIC'
20543 lt_prog_compiler_static_CXX='-static'
20544 ;;
20545 icpc* )
20546 # Intel C++, used to be incompatible with GCC.
20547 # ICC 10 doesn't accept -KPIC any more.
20548 lt_prog_compiler_wl_CXX='-Wl,'
20549 lt_prog_compiler_pic_CXX='-fPIC'
20550 lt_prog_compiler_static_CXX='-static'
20551 ;;
20552 pgCC* | pgcpp*)
20553 # Portland Group C++ compiler
20554 lt_prog_compiler_wl_CXX='-Wl,'
20555 lt_prog_compiler_pic_CXX='-fpic'
20556 lt_prog_compiler_static_CXX='-Bstatic'
20557 ;;
20558 cxx*)
20559 # Compaq C++
20560 # Make sure the PIC flag is empty. It appears that all Alpha
20561 # Linux and Compaq Tru64 Unix objects are PIC.
20562 lt_prog_compiler_pic_CXX=
20563 lt_prog_compiler_static_CXX='-non_shared'
20564 ;;
20565 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20566 # IBM XL 8.0, 9.0 on PPC and BlueGene
20567 lt_prog_compiler_wl_CXX='-Wl,'
20568 lt_prog_compiler_pic_CXX='-qpic'
20569 lt_prog_compiler_static_CXX='-qstaticlink'
20570 ;;
20571 *)
20572 case `$CC -V 2>&1 | sed 5q` in
20573 *Sun\ C*)
20574 # Sun C++ 5.9
20575 lt_prog_compiler_pic_CXX='-KPIC'
20576 lt_prog_compiler_static_CXX='-Bstatic'
20577 lt_prog_compiler_wl_CXX='-Qoption ld '
20578 ;;
20579 esac
20580 ;;
20581 esac
20582 ;;
20583 lynxos*)
20584 ;;
20585 m88k*)
20586 ;;
20587 mvs*)
20588 case $cc_basename in
20589 cxx*)
20590 lt_prog_compiler_pic_CXX='-W c,exportall'
20591 ;;
20592 *)
20593 ;;
20594 esac
20595 ;;
20596 netbsd*)
20597 ;;
20598 *qnx* | *nto*)
20599 # QNX uses GNU C++, but need to define -shared option too, otherwise
20600 # it will coredump.
20601 lt_prog_compiler_pic_CXX='-fPIC -shared'
20602 ;;
20603 osf3* | osf4* | osf5*)
20604 case $cc_basename in
20605 KCC*)
20606 lt_prog_compiler_wl_CXX='--backend -Wl,'
20607 ;;
20608 RCC*)
20609 # Rational C++ 2.4.1
20610 lt_prog_compiler_pic_CXX='-pic'
20611 ;;
20612 cxx*)
20613 # Digital/Compaq C++
20614 lt_prog_compiler_wl_CXX='-Wl,'
20615 # Make sure the PIC flag is empty. It appears that all Alpha
20616 # Linux and Compaq Tru64 Unix objects are PIC.
20617 lt_prog_compiler_pic_CXX=
20618 lt_prog_compiler_static_CXX='-non_shared'
20619 ;;
20620 *)
20621 ;;
20622 esac
20623 ;;
20624 psos*)
20625 ;;
20626 solaris*)
20627 case $cc_basename in
20628 CC*)
20629 # Sun C++ 4.2, 5.x and Centerline C++
20630 lt_prog_compiler_pic_CXX='-KPIC'
20631 lt_prog_compiler_static_CXX='-Bstatic'
20632 lt_prog_compiler_wl_CXX='-Qoption ld '
20633 ;;
20634 gcx*)
20635 # Green Hills C++ Compiler
20636 lt_prog_compiler_pic_CXX='-PIC'
20637 ;;
20638 *)
20639 ;;
20640 esac
20641 ;;
20642 sunos4*)
20643 case $cc_basename in
20644 CC*)
20645 # Sun C++ 4.x
20646 lt_prog_compiler_pic_CXX='-pic'
20647 lt_prog_compiler_static_CXX='-Bstatic'
20648 ;;
20649 lcc*)
20650 # Lucid
20651 lt_prog_compiler_pic_CXX='-pic'
20652 ;;
20653 *)
20654 ;;
20655 esac
20656 ;;
20657 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20658 case $cc_basename in
20659 CC*)
20660 lt_prog_compiler_wl_CXX='-Wl,'
20661 lt_prog_compiler_pic_CXX='-KPIC'
20662 lt_prog_compiler_static_CXX='-Bstatic'
20663 ;;
20664 esac
20665 ;;
20666 tandem*)
20667 case $cc_basename in
20668 NCC*)
20669 # NonStop-UX NCC 3.20
20670 lt_prog_compiler_pic_CXX='-KPIC'
20671 ;;
20672 *)
20673 ;;
20674 esac
20675 ;;
20676 vxworks*)
20677 ;;
20678 *)
20679 lt_prog_compiler_can_build_shared_CXX=no
20680 ;;
20681 esac
20682 fi
20683
20684 case $host_os in
20685 # For platforms which do not support PIC, -DPIC is meaningless:
20686 *djgpp*)
20687 lt_prog_compiler_pic_CXX=
20688 ;;
20689 *)
20690 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20691 ;;
20692 esac
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20694 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20695
20696
20697
20698 #
20699 # Check to make sure the PIC flag actually works.
20700 #
20701 if test -n "$lt_prog_compiler_pic_CXX"; then
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20703 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20704 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20705 $as_echo_n "(cached) " >&6
20706 else
20707 lt_cv_prog_compiler_pic_works_CXX=no
20708 ac_outfile=conftest.$ac_objext
20709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20710 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20711 # Insert the option either (1) after the last *FLAGS variable, or
20712 # (2) before a word containing "conftest.", or (3) at the end.
20713 # Note that $ac_compile itself does not contain backslashes and begins
20714 # with a dollar sign (not a hyphen), so the echo should work correctly.
20715 # The option is referenced via a variable to avoid confusing sed.
20716 lt_compile=`echo "$ac_compile" | $SED \
20717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20719 -e 's:$: $lt_compiler_flag:'`
20720 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20721 (eval "$lt_compile" 2>conftest.err)
20722 ac_status=$?
20723 cat conftest.err >&5
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 if (exit $ac_status) && test -s "$ac_outfile"; then
20726 # The compiler can only warn and ignore the option if not recognized
20727 # So say no if there are warnings other than the usual output.
20728 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20730 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20731 lt_cv_prog_compiler_pic_works_CXX=yes
20732 fi
20733 fi
20734 $RM conftest*
20735
20736 fi
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20738 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20739
20740 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20741 case $lt_prog_compiler_pic_CXX in
20742 "" | " "*) ;;
20743 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20744 esac
20745 else
20746 lt_prog_compiler_pic_CXX=
20747 lt_prog_compiler_can_build_shared_CXX=no
20748 fi
20749
20750 fi
20751
20752
20753
20754 #
20755 # Check to make sure the static flag actually works.
20756 #
20757 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20759 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20760 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20761 $as_echo_n "(cached) " >&6
20762 else
20763 lt_cv_prog_compiler_static_works_CXX=no
20764 save_LDFLAGS="$LDFLAGS"
20765 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20766 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20767 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20768 # The linker can only warn and ignore the option if not recognized
20769 # So say no if there are warnings
20770 if test -s conftest.err; then
20771 # Append any errors to the config.log.
20772 cat conftest.err 1>&5
20773 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20775 if diff conftest.exp conftest.er2 >/dev/null; then
20776 lt_cv_prog_compiler_static_works_CXX=yes
20777 fi
20778 else
20779 lt_cv_prog_compiler_static_works_CXX=yes
20780 fi
20781 fi
20782 $RM -r conftest*
20783 LDFLAGS="$save_LDFLAGS"
20784
20785 fi
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20787 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20788
20789 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20790 :
20791 else
20792 lt_prog_compiler_static_CXX=
20793 fi
20794
20795
20796
20797
20798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20799 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20800 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20801 $as_echo_n "(cached) " >&6
20802 else
20803 lt_cv_prog_compiler_c_o_CXX=no
20804 $RM -r conftest 2>/dev/null
20805 mkdir conftest
20806 cd conftest
20807 mkdir out
20808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20809
20810 lt_compiler_flag="-o out/conftest2.$ac_objext"
20811 # Insert the option either (1) after the last *FLAGS variable, or
20812 # (2) before a word containing "conftest.", or (3) at the end.
20813 # Note that $ac_compile itself does not contain backslashes and begins
20814 # with a dollar sign (not a hyphen), so the echo should work correctly.
20815 lt_compile=`echo "$ac_compile" | $SED \
20816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20818 -e 's:$: $lt_compiler_flag:'`
20819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20820 (eval "$lt_compile" 2>out/conftest.err)
20821 ac_status=$?
20822 cat out/conftest.err >&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20825 then
20826 # The compiler can only warn and ignore the option if not recognized
20827 # So say no if there are warnings
20828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20829 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20830 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20831 lt_cv_prog_compiler_c_o_CXX=yes
20832 fi
20833 fi
20834 chmod u+w . 2>&5
20835 $RM conftest*
20836 # SGI C++ compiler will create directory out/ii_files/ for
20837 # template instantiation
20838 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20839 $RM out/* && rmdir out
20840 cd ..
20841 $RM -r conftest
20842 $RM conftest*
20843
20844 fi
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20846 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20847
20848
20849
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20851 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20852 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20853 $as_echo_n "(cached) " >&6
20854 else
20855 lt_cv_prog_compiler_c_o_CXX=no
20856 $RM -r conftest 2>/dev/null
20857 mkdir conftest
20858 cd conftest
20859 mkdir out
20860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20861
20862 lt_compiler_flag="-o out/conftest2.$ac_objext"
20863 # Insert the option either (1) after the last *FLAGS variable, or
20864 # (2) before a word containing "conftest.", or (3) at the end.
20865 # Note that $ac_compile itself does not contain backslashes and begins
20866 # with a dollar sign (not a hyphen), so the echo should work correctly.
20867 lt_compile=`echo "$ac_compile" | $SED \
20868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20870 -e 's:$: $lt_compiler_flag:'`
20871 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20872 (eval "$lt_compile" 2>out/conftest.err)
20873 ac_status=$?
20874 cat out/conftest.err >&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20877 then
20878 # The compiler can only warn and ignore the option if not recognized
20879 # So say no if there are warnings
20880 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20881 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20882 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20883 lt_cv_prog_compiler_c_o_CXX=yes
20884 fi
20885 fi
20886 chmod u+w . 2>&5
20887 $RM conftest*
20888 # SGI C++ compiler will create directory out/ii_files/ for
20889 # template instantiation
20890 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20891 $RM out/* && rmdir out
20892 cd ..
20893 $RM -r conftest
20894 $RM conftest*
20895
20896 fi
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20898 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20899
20900
20901
20902
20903 hard_links="nottested"
20904 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20905 # do not overwrite the value of need_locks provided by the user
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20907 $as_echo_n "checking if we can lock with hard links... " >&6; }
20908 hard_links=yes
20909 $RM conftest*
20910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20911 touch conftest.a
20912 ln conftest.a conftest.b 2>&5 || hard_links=no
20913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20915 $as_echo "$hard_links" >&6; }
20916 if test "$hard_links" = no; then
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20918 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20919 need_locks=warn
20920 fi
20921 else
20922 need_locks=no
20923 fi
20924
20925
20926
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20928 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20929
20930 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20931 case $host_os in
20932 aix[4-9]*)
20933 # If we're using GNU nm, then we don't want the "-C" option.
20934 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20935 # Also, AIX nm treats weak defined symbols like other global defined
20936 # symbols, whereas GNU nm marks them as "W".
20937 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20938 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'
20939 else
20940 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20941 fi
20942 ;;
20943 pw32*)
20944 export_symbols_cmds_CXX="$ltdll_cmds"
20945 ;;
20946 cygwin* | mingw* | cegcc*)
20947 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'
20948 ;;
20949 *)
20950 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20951 ;;
20952 esac
20953 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20954
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20956 $as_echo "$ld_shlibs_CXX" >&6; }
20957 test "$ld_shlibs_CXX" = no && can_build_shared=no
20958
20959 with_gnu_ld_CXX=$with_gnu_ld
20960
20961
20962
20963
20964
20965
20966 #
20967 # Do we need to explicitly link libc?
20968 #
20969 case "x$archive_cmds_need_lc_CXX" in
20970 x|xyes)
20971 # Assume -lc should be added
20972 archive_cmds_need_lc_CXX=yes
20973
20974 if test "$enable_shared" = yes && test "$GCC" = yes; then
20975 case $archive_cmds_CXX in
20976 *'~'*)
20977 # FIXME: we may have to deal with multi-command sequences.
20978 ;;
20979 '$CC '*)
20980 # Test whether the compiler implicitly links with -lc since on some
20981 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20982 # to ld, don't add -lc before -lgcc.
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20984 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20985 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20986 $as_echo_n "(cached) " >&6
20987 else
20988 $RM conftest*
20989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20990
20991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20992 (eval $ac_compile) 2>&5
20993 ac_status=$?
20994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20995 test $ac_status = 0; } 2>conftest.err; then
20996 soname=conftest
20997 lib=conftest
20998 libobjs=conftest.$ac_objext
20999 deplibs=
21000 wl=$lt_prog_compiler_wl_CXX
21001 pic_flag=$lt_prog_compiler_pic_CXX
21002 compiler_flags=-v
21003 linker_flags=-v
21004 verstring=
21005 output_objdir=.
21006 libname=conftest
21007 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21008 allow_undefined_flag_CXX=
21009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21010 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21011 ac_status=$?
21012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21013 test $ac_status = 0; }
21014 then
21015 lt_cv_archive_cmds_need_lc_CXX=no
21016 else
21017 lt_cv_archive_cmds_need_lc_CXX=yes
21018 fi
21019 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21020 else
21021 cat conftest.err 1>&5
21022 fi
21023 $RM conftest*
21024
21025 fi
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21027 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21028 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21029 ;;
21030 esac
21031 fi
21032 ;;
21033 esac
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21099 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21100
21101 library_names_spec=
21102 libname_spec='lib$name'
21103 soname_spec=
21104 shrext_cmds=".so"
21105 postinstall_cmds=
21106 postuninstall_cmds=
21107 finish_cmds=
21108 finish_eval=
21109 shlibpath_var=
21110 shlibpath_overrides_runpath=unknown
21111 version_type=none
21112 dynamic_linker="$host_os ld.so"
21113 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21114 need_lib_prefix=unknown
21115 hardcode_into_libs=no
21116
21117 # when you set need_version to no, make sure it does not cause -set_version
21118 # flags to be left without arguments
21119 need_version=unknown
21120
21121 case $host_os in
21122 aix3*)
21123 version_type=linux
21124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21125 shlibpath_var=LIBPATH
21126
21127 # AIX 3 has no versioning support, so we append a major version to the name.
21128 soname_spec='${libname}${release}${shared_ext}$major'
21129 ;;
21130
21131 aix[4-9]*)
21132 version_type=linux
21133 need_lib_prefix=no
21134 need_version=no
21135 hardcode_into_libs=yes
21136 if test "$host_cpu" = ia64; then
21137 # AIX 5 supports IA64
21138 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21139 shlibpath_var=LD_LIBRARY_PATH
21140 else
21141 # With GCC up to 2.95.x, collect2 would create an import file
21142 # for dependence libraries. The import file would start with
21143 # the line `#! .'. This would cause the generated library to
21144 # depend on `.', always an invalid library. This was fixed in
21145 # development snapshots of GCC prior to 3.0.
21146 case $host_os in
21147 aix4 | aix4.[01] | aix4.[01].*)
21148 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21149 echo ' yes '
21150 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21151 :
21152 else
21153 can_build_shared=no
21154 fi
21155 ;;
21156 esac
21157 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21158 # soname into executable. Probably we can add versioning support to
21159 # collect2, so additional links can be useful in future.
21160 if test "$aix_use_runtimelinking" = yes; then
21161 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21162 # instead of lib<name>.a to let people know that these are not
21163 # typical AIX shared libraries.
21164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21165 else
21166 # We preserve .a as extension for shared libraries through AIX4.2
21167 # and later when we are not doing run time linking.
21168 library_names_spec='${libname}${release}.a $libname.a'
21169 soname_spec='${libname}${release}${shared_ext}$major'
21170 fi
21171 shlibpath_var=LIBPATH
21172 fi
21173 ;;
21174
21175 amigaos*)
21176 case $host_cpu in
21177 powerpc)
21178 # Since July 2007 AmigaOS4 officially supports .so libraries.
21179 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21181 ;;
21182 m68k)
21183 library_names_spec='$libname.ixlibrary $libname.a'
21184 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21185 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'
21186 ;;
21187 esac
21188 ;;
21189
21190 beos*)
21191 library_names_spec='${libname}${shared_ext}'
21192 dynamic_linker="$host_os ld.so"
21193 shlibpath_var=LIBRARY_PATH
21194 ;;
21195
21196 bsdi[45]*)
21197 version_type=linux
21198 need_version=no
21199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21200 soname_spec='${libname}${release}${shared_ext}$major'
21201 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21202 shlibpath_var=LD_LIBRARY_PATH
21203 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21204 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21205 # the default ld.so.conf also contains /usr/contrib/lib and
21206 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21207 # libtool to hard-code these into programs
21208 ;;
21209
21210 cygwin* | mingw* | pw32* | cegcc*)
21211 version_type=windows
21212 shrext_cmds=".dll"
21213 need_version=no
21214 need_lib_prefix=no
21215
21216 case $GCC,$host_os in
21217 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21218 library_names_spec='$libname.dll.a'
21219 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21220 postinstall_cmds='base_file=`basename \${file}`~
21221 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21222 dldir=$destdir/`dirname \$dlpath`~
21223 test -d \$dldir || mkdir -p \$dldir~
21224 $install_prog $dir/$dlname \$dldir/$dlname~
21225 chmod a+x \$dldir/$dlname~
21226 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21227 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21228 fi'
21229 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21230 dlpath=$dir/\$dldll~
21231 $RM \$dlpath'
21232 shlibpath_overrides_runpath=yes
21233
21234 case $host_os in
21235 cygwin*)
21236 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21237 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21238
21239 ;;
21240 mingw* | cegcc*)
21241 # MinGW DLLs use traditional 'lib' prefix
21242 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21243 ;;
21244 pw32*)
21245 # pw32 DLLs use 'pw' prefix rather than 'lib'
21246 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21247 ;;
21248 esac
21249 ;;
21250
21251 *)
21252 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21253 ;;
21254 esac
21255 dynamic_linker='Win32 ld.exe'
21256 # FIXME: first we should search . and the directory the executable is in
21257 shlibpath_var=PATH
21258 ;;
21259
21260 darwin* | rhapsody*)
21261 dynamic_linker="$host_os dyld"
21262 version_type=darwin
21263 need_lib_prefix=no
21264 need_version=no
21265 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21266 soname_spec='${libname}${release}${major}$shared_ext'
21267 shlibpath_overrides_runpath=yes
21268 shlibpath_var=DYLD_LIBRARY_PATH
21269 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21270
21271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21272 ;;
21273
21274 dgux*)
21275 version_type=linux
21276 need_lib_prefix=no
21277 need_version=no
21278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21279 soname_spec='${libname}${release}${shared_ext}$major'
21280 shlibpath_var=LD_LIBRARY_PATH
21281 ;;
21282
21283 freebsd* | dragonfly*)
21284 # DragonFly does not have aout. When/if they implement a new
21285 # versioning mechanism, adjust this.
21286 if test -x /usr/bin/objformat; then
21287 objformat=`/usr/bin/objformat`
21288 else
21289 case $host_os in
21290 freebsd[23].*) objformat=aout ;;
21291 *) objformat=elf ;;
21292 esac
21293 fi
21294 version_type=freebsd-$objformat
21295 case $version_type in
21296 freebsd-elf*)
21297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21298 need_version=no
21299 need_lib_prefix=no
21300 ;;
21301 freebsd-*)
21302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21303 need_version=yes
21304 ;;
21305 esac
21306 shlibpath_var=LD_LIBRARY_PATH
21307 case $host_os in
21308 freebsd2.*)
21309 shlibpath_overrides_runpath=yes
21310 ;;
21311 freebsd3.[01]* | freebsdelf3.[01]*)
21312 shlibpath_overrides_runpath=yes
21313 hardcode_into_libs=yes
21314 ;;
21315 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21316 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21317 shlibpath_overrides_runpath=no
21318 hardcode_into_libs=yes
21319 ;;
21320 *) # from 4.6 on, and DragonFly
21321 shlibpath_overrides_runpath=yes
21322 hardcode_into_libs=yes
21323 ;;
21324 esac
21325 ;;
21326
21327 gnu*)
21328 version_type=linux
21329 need_lib_prefix=no
21330 need_version=no
21331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21332 soname_spec='${libname}${release}${shared_ext}$major'
21333 shlibpath_var=LD_LIBRARY_PATH
21334 hardcode_into_libs=yes
21335 ;;
21336
21337 haiku*)
21338 version_type=linux
21339 need_lib_prefix=no
21340 need_version=no
21341 dynamic_linker="$host_os runtime_loader"
21342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21343 soname_spec='${libname}${release}${shared_ext}$major'
21344 shlibpath_var=LIBRARY_PATH
21345 shlibpath_overrides_runpath=yes
21346 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21347 hardcode_into_libs=yes
21348 ;;
21349
21350 hpux9* | hpux10* | hpux11*)
21351 # Give a soname corresponding to the major version so that dld.sl refuses to
21352 # link against other versions.
21353 version_type=sunos
21354 need_lib_prefix=no
21355 need_version=no
21356 case $host_cpu in
21357 ia64*)
21358 shrext_cmds='.so'
21359 hardcode_into_libs=yes
21360 dynamic_linker="$host_os dld.so"
21361 shlibpath_var=LD_LIBRARY_PATH
21362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21364 soname_spec='${libname}${release}${shared_ext}$major'
21365 if test "X$HPUX_IA64_MODE" = X32; then
21366 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21367 else
21368 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21369 fi
21370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21371 ;;
21372 hppa*64*)
21373 shrext_cmds='.sl'
21374 hardcode_into_libs=yes
21375 dynamic_linker="$host_os dld.sl"
21376 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21379 soname_spec='${libname}${release}${shared_ext}$major'
21380 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21382 ;;
21383 *)
21384 shrext_cmds='.sl'
21385 dynamic_linker="$host_os dld.sl"
21386 shlibpath_var=SHLIB_PATH
21387 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21389 soname_spec='${libname}${release}${shared_ext}$major'
21390 ;;
21391 esac
21392 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21393 postinstall_cmds='chmod 555 $lib'
21394 # or fails outright, so override atomically:
21395 install_override_mode=555
21396 ;;
21397
21398 interix[3-9]*)
21399 version_type=linux
21400 need_lib_prefix=no
21401 need_version=no
21402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21403 soname_spec='${libname}${release}${shared_ext}$major'
21404 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21405 shlibpath_var=LD_LIBRARY_PATH
21406 shlibpath_overrides_runpath=no
21407 hardcode_into_libs=yes
21408 ;;
21409
21410 irix5* | irix6* | nonstopux*)
21411 case $host_os in
21412 nonstopux*) version_type=nonstopux ;;
21413 *)
21414 if test "$lt_cv_prog_gnu_ld" = yes; then
21415 version_type=linux
21416 else
21417 version_type=irix
21418 fi ;;
21419 esac
21420 need_lib_prefix=no
21421 need_version=no
21422 soname_spec='${libname}${release}${shared_ext}$major'
21423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21424 case $host_os in
21425 irix5* | nonstopux*)
21426 libsuff= shlibsuff=
21427 ;;
21428 *)
21429 case $LD in # libtool.m4 will add one of these switches to LD
21430 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21431 libsuff= shlibsuff= libmagic=32-bit;;
21432 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21433 libsuff=32 shlibsuff=N32 libmagic=N32;;
21434 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21435 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21436 *) libsuff= shlibsuff= libmagic=never-match;;
21437 esac
21438 ;;
21439 esac
21440 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21441 shlibpath_overrides_runpath=no
21442 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21443 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21444 hardcode_into_libs=yes
21445 ;;
21446
21447 # No shared lib support for Linux oldld, aout, or coff.
21448 linux*oldld* | linux*aout* | linux*coff*)
21449 dynamic_linker=no
21450 ;;
21451
21452 # This must be Linux ELF.
21453 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21454 version_type=linux
21455 need_lib_prefix=no
21456 need_version=no
21457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21458 soname_spec='${libname}${release}${shared_ext}$major'
21459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21460 shlibpath_var=LD_LIBRARY_PATH
21461 shlibpath_overrides_runpath=no
21462
21463 # Some binutils ld are patched to set DT_RUNPATH
21464 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21465 $as_echo_n "(cached) " >&6
21466 else
21467 lt_cv_shlibpath_overrides_runpath=no
21468 save_LDFLAGS=$LDFLAGS
21469 save_libdir=$libdir
21470 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21471 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21473 /* end confdefs.h. */
21474
21475 int
21476 main ()
21477 {
21478
21479 ;
21480 return 0;
21481 }
21482 _ACEOF
21483 if ac_fn_cxx_try_link "$LINENO"; then :
21484 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21485 lt_cv_shlibpath_overrides_runpath=yes
21486 fi
21487 fi
21488 rm -f core conftest.err conftest.$ac_objext \
21489 conftest$ac_exeext conftest.$ac_ext
21490 LDFLAGS=$save_LDFLAGS
21491 libdir=$save_libdir
21492
21493 fi
21494
21495 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21496
21497 # This implies no fast_install, which is unacceptable.
21498 # Some rework will be needed to allow for fast_install
21499 # before this can be enabled.
21500 hardcode_into_libs=yes
21501
21502 # Append ld.so.conf contents to the search path
21503 if test -f /etc/ld.so.conf; then
21504 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' ' '`
21505 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21506 fi
21507
21508 # We used to test for /lib/ld.so.1 and disable shared libraries on
21509 # powerpc, because MkLinux only supported shared libraries with the
21510 # GNU dynamic linker. Since this was broken with cross compilers,
21511 # most powerpc-linux boxes support dynamic linking these days and
21512 # people can always --disable-shared, the test was removed, and we
21513 # assume the GNU/Linux dynamic linker is in use.
21514 dynamic_linker='GNU/Linux ld.so'
21515 ;;
21516
21517 netbsd*)
21518 version_type=sunos
21519 need_lib_prefix=no
21520 need_version=no
21521 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21524 dynamic_linker='NetBSD (a.out) ld.so'
21525 else
21526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21527 soname_spec='${libname}${release}${shared_ext}$major'
21528 dynamic_linker='NetBSD ld.elf_so'
21529 fi
21530 shlibpath_var=LD_LIBRARY_PATH
21531 shlibpath_overrides_runpath=yes
21532 hardcode_into_libs=yes
21533 ;;
21534
21535 newsos6)
21536 version_type=linux
21537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21538 shlibpath_var=LD_LIBRARY_PATH
21539 shlibpath_overrides_runpath=yes
21540 ;;
21541
21542 *nto* | *qnx*)
21543 version_type=qnx
21544 need_lib_prefix=no
21545 need_version=no
21546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21547 soname_spec='${libname}${release}${shared_ext}$major'
21548 shlibpath_var=LD_LIBRARY_PATH
21549 shlibpath_overrides_runpath=no
21550 hardcode_into_libs=yes
21551 dynamic_linker='ldqnx.so'
21552 ;;
21553
21554 openbsd*)
21555 version_type=sunos
21556 sys_lib_dlsearch_path_spec="/usr/lib"
21557 need_lib_prefix=no
21558 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21559 case $host_os in
21560 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21561 *) need_version=no ;;
21562 esac
21563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21564 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21565 shlibpath_var=LD_LIBRARY_PATH
21566 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21567 case $host_os in
21568 openbsd2.[89] | openbsd2.[89].*)
21569 shlibpath_overrides_runpath=no
21570 ;;
21571 *)
21572 shlibpath_overrides_runpath=yes
21573 ;;
21574 esac
21575 else
21576 shlibpath_overrides_runpath=yes
21577 fi
21578 ;;
21579
21580 os2*)
21581 libname_spec='$name'
21582 shrext_cmds=".dll"
21583 need_lib_prefix=no
21584 library_names_spec='$libname${shared_ext} $libname.a'
21585 dynamic_linker='OS/2 ld.exe'
21586 shlibpath_var=LIBPATH
21587 ;;
21588
21589 osf3* | osf4* | osf5*)
21590 version_type=osf
21591 need_lib_prefix=no
21592 need_version=no
21593 soname_spec='${libname}${release}${shared_ext}$major'
21594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21595 shlibpath_var=LD_LIBRARY_PATH
21596 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21597 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21598 ;;
21599
21600 rdos*)
21601 dynamic_linker=no
21602 ;;
21603
21604 solaris*)
21605 version_type=linux
21606 need_lib_prefix=no
21607 need_version=no
21608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21609 soname_spec='${libname}${release}${shared_ext}$major'
21610 shlibpath_var=LD_LIBRARY_PATH
21611 shlibpath_overrides_runpath=yes
21612 hardcode_into_libs=yes
21613 # ldd complains unless libraries are executable
21614 postinstall_cmds='chmod +x $lib'
21615 ;;
21616
21617 sunos4*)
21618 version_type=sunos
21619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21620 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21621 shlibpath_var=LD_LIBRARY_PATH
21622 shlibpath_overrides_runpath=yes
21623 if test "$with_gnu_ld" = yes; then
21624 need_lib_prefix=no
21625 fi
21626 need_version=yes
21627 ;;
21628
21629 sysv4 | sysv4.3*)
21630 version_type=linux
21631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21632 soname_spec='${libname}${release}${shared_ext}$major'
21633 shlibpath_var=LD_LIBRARY_PATH
21634 case $host_vendor in
21635 sni)
21636 shlibpath_overrides_runpath=no
21637 need_lib_prefix=no
21638 runpath_var=LD_RUN_PATH
21639 ;;
21640 siemens)
21641 need_lib_prefix=no
21642 ;;
21643 motorola)
21644 need_lib_prefix=no
21645 need_version=no
21646 shlibpath_overrides_runpath=no
21647 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21648 ;;
21649 esac
21650 ;;
21651
21652 sysv4*MP*)
21653 if test -d /usr/nec ;then
21654 version_type=linux
21655 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21656 soname_spec='$libname${shared_ext}.$major'
21657 shlibpath_var=LD_LIBRARY_PATH
21658 fi
21659 ;;
21660
21661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21662 version_type=freebsd-elf
21663 need_lib_prefix=no
21664 need_version=no
21665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21666 soname_spec='${libname}${release}${shared_ext}$major'
21667 shlibpath_var=LD_LIBRARY_PATH
21668 shlibpath_overrides_runpath=yes
21669 hardcode_into_libs=yes
21670 if test "$with_gnu_ld" = yes; then
21671 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21672 else
21673 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21674 case $host_os in
21675 sco3.2v5*)
21676 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21677 ;;
21678 esac
21679 fi
21680 sys_lib_dlsearch_path_spec='/usr/lib'
21681 ;;
21682
21683 tpf*)
21684 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21685 version_type=linux
21686 need_lib_prefix=no
21687 need_version=no
21688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21689 shlibpath_var=LD_LIBRARY_PATH
21690 shlibpath_overrides_runpath=no
21691 hardcode_into_libs=yes
21692 ;;
21693
21694 uts4*)
21695 version_type=linux
21696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21697 soname_spec='${libname}${release}${shared_ext}$major'
21698 shlibpath_var=LD_LIBRARY_PATH
21699 ;;
21700
21701 *)
21702 dynamic_linker=no
21703 ;;
21704 esac
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21706 $as_echo "$dynamic_linker" >&6; }
21707 test "$dynamic_linker" = no && can_build_shared=no
21708
21709 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21710 if test "$GCC" = yes; then
21711 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21712 fi
21713
21714 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21715 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21716 fi
21717 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21718 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21719 fi
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21759 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21760 hardcode_action_CXX=
21761 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21762 test -n "$runpath_var_CXX" ||
21763 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21764
21765 # We can hardcode non-existent directories.
21766 if test "$hardcode_direct_CXX" != no &&
21767 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21768 # have to relink, otherwise we might link with an installed library
21769 # when we should be linking with a yet-to-be-installed one
21770 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21771 test "$hardcode_minus_L_CXX" != no; then
21772 # Linking always hardcodes the temporary library directory.
21773 hardcode_action_CXX=relink
21774 else
21775 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21776 hardcode_action_CXX=immediate
21777 fi
21778 else
21779 # We cannot hardcode anything, or else we can only hardcode existing
21780 # directories.
21781 hardcode_action_CXX=unsupported
21782 fi
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21784 $as_echo "$hardcode_action_CXX" >&6; }
21785
21786 if test "$hardcode_action_CXX" = relink ||
21787 test "$inherit_rpath_CXX" = yes; then
21788 # Fast installation is not supported
21789 enable_fast_install=no
21790 elif test "$shlibpath_overrides_runpath" = yes ||
21791 test "$enable_shared" = no; then
21792 # Fast installation is not necessary
21793 enable_fast_install=needless
21794 fi
21795
21796
21797
21798
21799
21800
21801
21802 fi # test -n "$compiler"
21803
21804 CC=$lt_save_CC
21805 LDCXX=$LD
21806 LD=$lt_save_LD
21807 GCC=$lt_save_GCC
21808 with_gnu_ld=$lt_save_with_gnu_ld
21809 lt_cv_path_LDCXX=$lt_cv_path_LD
21810 lt_cv_path_LD=$lt_save_path_LD
21811 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21812 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21813 fi # test "$_lt_caught_CXX_error" != yes
21814
21815 ac_ext=cpp
21816 ac_cpp='$CXXCPP $CPPFLAGS'
21817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836 # Only expand once:
21837
21838
21839
21840
21841
21842 # Identify the assembler which will work hand-in-glove with the newly
21843 # built GCC, so that we can examine its features. This is the assembler
21844 # which will be driven by the driver program.
21845 #
21846 # If build != host, and we aren't building gas in-tree, we identify a
21847 # build->target assembler and hope that it will have the same features
21848 # as the host->target assembler we'll be using.
21849 gcc_cv_gas_major_version=
21850 gcc_cv_gas_minor_version=
21851 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21852
21853 if test "${gcc_cv_as+set}" = set; then :
21854
21855 else
21856
21857 if test -x "$DEFAULT_ASSEMBLER"; then
21858 gcc_cv_as="$DEFAULT_ASSEMBLER"
21859 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21860 && test -f ../gas/Makefile \
21861 && test x$build = x$host; then
21862 gcc_cv_as=../gas/as-new$build_exeext
21863 elif test -x as$build_exeext; then
21864 # Build using assembler in the current directory.
21865 gcc_cv_as=./as$build_exeext
21866 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21867 gcc_cv_as="$AS_FOR_TARGET"
21868 else
21869 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21870 set dummy $AS_FOR_TARGET; ac_word=$2
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21872 $as_echo_n "checking for $ac_word... " >&6; }
21873 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21874 $as_echo_n "(cached) " >&6
21875 else
21876 case $gcc_cv_as in
21877 [\\/]* | ?:[\\/]*)
21878 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21879 ;;
21880 *)
21881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21882 for as_dir in $PATH
21883 do
21884 IFS=$as_save_IFS
21885 test -z "$as_dir" && as_dir=.
21886 for ac_exec_ext in '' $ac_executable_extensions; do
21887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21888 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21890 break 2
21891 fi
21892 done
21893 done
21894 IFS=$as_save_IFS
21895
21896 ;;
21897 esac
21898 fi
21899 gcc_cv_as=$ac_cv_path_gcc_cv_as
21900 if test -n "$gcc_cv_as"; then
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21902 $as_echo "$gcc_cv_as" >&6; }
21903 else
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21905 $as_echo "no" >&6; }
21906 fi
21907
21908
21909 fi
21910 fi
21911
21912 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21913
21914 case "$ORIGINAL_AS_FOR_TARGET" in
21915 ./as | ./as$build_exeext) ;;
21916 *) ac_config_files="$ac_config_files as:exec-tool.in"
21917 ;;
21918 esac
21919
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21921 $as_echo_n "checking what assembler to use... " >&6; }
21922 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21923 # Single tree build which includes gas. We want to prefer it
21924 # over whatever linker top-level may have detected, since
21925 # we'll use what we're building after installation anyway.
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21927 $as_echo "newly built gas" >&6; }
21928 in_tree_gas=yes
21929 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21930 for f in $gcc_cv_as_bfd_srcdir/configure \
21931 $gcc_cv_as_gas_srcdir/configure \
21932 $gcc_cv_as_gas_srcdir/configure.ac \
21933 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21934 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21935 if test x$gcc_cv_gas_version != x; then
21936 break
21937 fi
21938 done
21939 case $gcc_cv_gas_version in
21940 VERSION=[0-9]*) ;;
21941 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21942 esac
21943 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21944 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21945 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21946 case $gcc_cv_gas_patch_version in
21947 "") gcc_cv_gas_patch_version="0" ;;
21948 esac
21949 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21950 + $gcc_cv_gas_minor_version \) \* 1000 \
21951 + $gcc_cv_gas_patch_version`
21952
21953 in_tree_gas_is_elf=no
21954 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21955 || (grep 'obj_format = multi' ../gas/Makefile \
21956 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21957 then
21958 in_tree_gas_is_elf=yes
21959 fi
21960 else
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21962 $as_echo "$gcc_cv_as" >&6; }
21963 in_tree_gas=no
21964 fi
21965
21966 default_ld=
21967 # Check whether --enable-ld was given.
21968 if test "${enable_ld+set}" = set; then :
21969 enableval=$enable_ld; case "${enableval}" in
21970 no)
21971 default_ld=ld.gold
21972 ;;
21973 esac
21974 fi
21975
21976
21977 install_gold_as_default=no
21978 # Check whether --enable-gold was given.
21979 if test "${enable_gold+set}" = set; then :
21980 enableval=$enable_gold; case "${enableval}" in
21981 default)
21982 install_gold_as_default=yes
21983 ;;
21984 yes)
21985 if test x${default_ld} != x; then
21986 install_gold_as_default=yes
21987 fi
21988 ;;
21989 no)
21990 ;;
21991 *)
21992 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21993 ;;
21994 esac
21995 fi
21996
21997
21998 # Identify the linker which will work hand-in-glove with the newly
21999 # built GCC, so that we can examine its features. This is the linker
22000 # which will be driven by the driver program.
22001 #
22002 # If build != host, and we aren't building gas in-tree, we identify a
22003 # build->target linker and hope that it will have the same features
22004 # as the host->target linker we'll be using.
22005 gcc_cv_gld_major_version=
22006 gcc_cv_gld_minor_version=
22007 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22008 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22009 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22010
22011 if test "${gcc_cv_ld+set}" = set; then :
22012
22013 else
22014
22015 if test -x "$DEFAULT_LINKER"; then
22016 gcc_cv_ld="$DEFAULT_LINKER"
22017 elif test $install_gold_as_default = yes \
22018 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22019 && test -f ../gold/Makefile \
22020 && test x$build = x$host; then
22021 gcc_cv_ld=../gold/ld-new$build_exeext
22022 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22023 && test -f ../ld/Makefile \
22024 && test x$build = x$host; then
22025 gcc_cv_ld=../ld/ld-new$build_exeext
22026 elif test -x collect-ld$build_exeext; then
22027 # Build using linker in the current directory.
22028 gcc_cv_ld=./collect-ld$build_exeext
22029 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22030 gcc_cv_ld="$LD_FOR_TARGET"
22031 else
22032 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22033 set dummy $LD_FOR_TARGET; ac_word=$2
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22035 $as_echo_n "checking for $ac_word... " >&6; }
22036 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22037 $as_echo_n "(cached) " >&6
22038 else
22039 case $gcc_cv_ld in
22040 [\\/]* | ?:[\\/]*)
22041 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22042 ;;
22043 *)
22044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22045 for as_dir in $PATH
22046 do
22047 IFS=$as_save_IFS
22048 test -z "$as_dir" && as_dir=.
22049 for ac_exec_ext in '' $ac_executable_extensions; do
22050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22051 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22053 break 2
22054 fi
22055 done
22056 done
22057 IFS=$as_save_IFS
22058
22059 ;;
22060 esac
22061 fi
22062 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22063 if test -n "$gcc_cv_ld"; then
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22065 $as_echo "$gcc_cv_ld" >&6; }
22066 else
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22068 $as_echo "no" >&6; }
22069 fi
22070
22071
22072 fi
22073 fi
22074
22075 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22076 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22077 # if the PLUGIN_LD is set ld-new, just have it as ld
22078 # as that is the installed named.
22079 if test x$PLUGIN_LD_SUFFIX = xld-new \
22080 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22081 PLUGIN_LD_SUFFIX=ld
22082 fi
22083
22084 # Check whether --with-plugin-ld was given.
22085 if test "${with_plugin_ld+set}" = set; then :
22086 withval=$with_plugin_ld; if test x"$withval" != x; then
22087 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22088 PLUGIN_LD_SUFFIX="$withval"
22089 fi
22090 fi
22091
22092
22093
22094 cat >>confdefs.h <<_ACEOF
22095 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22096 _ACEOF
22097
22098
22099 # Check to see if we are using gold instead of ld
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22101 $as_echo_n "checking whether we are using gold... " >&6; }
22102 ld_is_gold=no
22103 if test x$gcc_cv_ld != x; then
22104 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22105 | grep "GNU gold" > /dev/null; then
22106 ld_is_gold=yes
22107 fi
22108 fi
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22110 $as_echo "$ld_is_gold" >&6; }
22111
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22113 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22114 # Check to see if default ld is not gold, but gold is
22115 # available and has support for split stack. If gcc was configured
22116 # with gold then no checking is done.
22117 #
22118 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22119
22120 # For platforms other than powerpc64*, enable as appropriate.
22121
22122 gold_non_default=no
22123 ld_gold=`which ${gcc_cv_ld}.gold`
22124 # Make sure this gold has minimal split stack support
22125 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22126 ld_vers=`$ld_gold --version | sed 1q`
22127 gold_vers=`echo $ld_vers | sed -n \
22128 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22129 case $target in
22130 # check that the gold version contains the complete split stack support
22131 # on powerpc64 big and little endian
22132 powerpc64*-*-*)
22133 case "$gold_vers" in
22134 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22135 ;;
22136 *) gold_non_default=no
22137 ;;
22138 esac
22139 ;;
22140 esac
22141 fi
22142 if test $gold_non_default = yes; then
22143
22144 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22145
22146 fi
22147 fi
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22149 $as_echo "$gold_non_default" >&6; }
22150
22151 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22152
22153 case "$ORIGINAL_LD_FOR_TARGET" in
22154 ./collect-ld | ./collect-ld$build_exeext) ;;
22155 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22156 ;;
22157 esac
22158
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22160 $as_echo_n "checking what linker to use... " >&6; }
22161 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22162 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22163 # Single tree build which includes ld. We want to prefer it
22164 # over whatever linker top-level may have detected, since
22165 # we'll use what we're building after installation anyway.
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22167 $as_echo "newly built ld" >&6; }
22168 in_tree_ld=yes
22169 in_tree_ld_is_elf=no
22170 if (grep 'EMUL = .*elf' ../ld/Makefile \
22171 || grep 'EMUL = .*linux' ../ld/Makefile \
22172 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22173 in_tree_ld_is_elf=yes
22174 elif test "$ld_is_gold" = yes; then
22175 in_tree_ld_is_elf=yes
22176 fi
22177 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
22178 do
22179 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22180 if test x$gcc_cv_gld_version != x; then
22181 break
22182 fi
22183 done
22184 case $gcc_cv_gld_version in
22185 VERSION=[0-9]*) ;;
22186 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22187 esac
22188 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22189 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22190 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22191 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22192 else
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22194 $as_echo "$gcc_cv_ld" >&6; }
22195 in_tree_ld=no
22196 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22197 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22198 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22199 fi
22200
22201
22202
22203
22204 # Figure out what nm we will be using.
22205 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22206 if test "${gcc_cv_nm+set}" = set; then :
22207
22208 else
22209
22210 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22211 && test -f ../binutils/Makefile \
22212 && test x$build = x$host; then
22213 gcc_cv_nm=../binutils/nm-new$build_exeext
22214 elif test -x nm$build_exeext; then
22215 gcc_cv_nm=./nm$build_exeext
22216 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22217 gcc_cv_nm="$NM_FOR_TARGET"
22218 else
22219 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22220 set dummy $NM_FOR_TARGET; ac_word=$2
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22222 $as_echo_n "checking for $ac_word... " >&6; }
22223 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22224 $as_echo_n "(cached) " >&6
22225 else
22226 case $gcc_cv_nm in
22227 [\\/]* | ?:[\\/]*)
22228 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22229 ;;
22230 *)
22231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22232 for as_dir in $PATH
22233 do
22234 IFS=$as_save_IFS
22235 test -z "$as_dir" && as_dir=.
22236 for ac_exec_ext in '' $ac_executable_extensions; do
22237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22238 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22240 break 2
22241 fi
22242 done
22243 done
22244 IFS=$as_save_IFS
22245
22246 ;;
22247 esac
22248 fi
22249 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22250 if test -n "$gcc_cv_nm"; then
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22252 $as_echo "$gcc_cv_nm" >&6; }
22253 else
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22255 $as_echo "no" >&6; }
22256 fi
22257
22258
22259 fi
22260 fi
22261
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22263 $as_echo_n "checking what nm to use... " >&6; }
22264 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22265 # Single tree build which includes binutils.
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22267 $as_echo "newly built nm" >&6; }
22268 in_tree_nm=yes
22269 else
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22271 $as_echo "$gcc_cv_nm" >&6; }
22272 in_tree_nm=no
22273 fi
22274
22275 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22276
22277 case "$ORIGINAL_NM_FOR_TARGET" in
22278 ./nm | ./nm$build_exeext) ;;
22279 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22280 ;;
22281 esac
22282
22283
22284 # Figure out what objdump we will be using.
22285 if test "${gcc_cv_objdump+set}" = set; then :
22286
22287 else
22288
22289 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22290 && test -f ../binutils/Makefile \
22291 && test x$build = x$host; then
22292 # Single tree build which includes binutils.
22293 gcc_cv_objdump=../binutils/objdump$build_exeext
22294 elif test -x objdump$build_exeext; then
22295 gcc_cv_objdump=./objdump$build_exeext
22296 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22297 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22298 else
22299 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22300 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22302 $as_echo_n "checking for $ac_word... " >&6; }
22303 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22304 $as_echo_n "(cached) " >&6
22305 else
22306 case $gcc_cv_objdump in
22307 [\\/]* | ?:[\\/]*)
22308 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22309 ;;
22310 *)
22311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22312 for as_dir in $PATH
22313 do
22314 IFS=$as_save_IFS
22315 test -z "$as_dir" && as_dir=.
22316 for ac_exec_ext in '' $ac_executable_extensions; do
22317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22318 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22320 break 2
22321 fi
22322 done
22323 done
22324 IFS=$as_save_IFS
22325
22326 ;;
22327 esac
22328 fi
22329 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22330 if test -n "$gcc_cv_objdump"; then
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22332 $as_echo "$gcc_cv_objdump" >&6; }
22333 else
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22335 $as_echo "no" >&6; }
22336 fi
22337
22338
22339 fi
22340 fi
22341
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22343 $as_echo_n "checking what objdump to use... " >&6; }
22344 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22345 # Single tree build which includes binutils.
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22347 $as_echo "newly built objdump" >&6; }
22348 elif test x$gcc_cv_objdump = x; then
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22350 $as_echo "not found" >&6; }
22351 else
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22353 $as_echo "$gcc_cv_objdump" >&6; }
22354 fi
22355
22356 # Figure out what readelf we will be using.
22357 if test "${gcc_cv_readelf+set}" = set; then :
22358
22359 else
22360
22361 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22362 && test -f ../binutils/Makefile \
22363 && test x$build = x$host; then
22364 # Single tree build which includes binutils.
22365 gcc_cv_readelf=../binutils/readelf$build_exeext
22366 elif test -x readelf$build_exeext; then
22367 gcc_cv_readelf=./readelf$build_exeext
22368 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22369 gcc_cv_readelf="$READELF_FOR_TARGET"
22370 else
22371 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22372 set dummy $READELF_FOR_TARGET; ac_word=$2
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22374 $as_echo_n "checking for $ac_word... " >&6; }
22375 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22376 $as_echo_n "(cached) " >&6
22377 else
22378 case $gcc_cv_readelf in
22379 [\\/]* | ?:[\\/]*)
22380 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22381 ;;
22382 *)
22383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22384 for as_dir in $PATH
22385 do
22386 IFS=$as_save_IFS
22387 test -z "$as_dir" && as_dir=.
22388 for ac_exec_ext in '' $ac_executable_extensions; do
22389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22390 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22392 break 2
22393 fi
22394 done
22395 done
22396 IFS=$as_save_IFS
22397
22398 ;;
22399 esac
22400 fi
22401 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22402 if test -n "$gcc_cv_readelf"; then
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22404 $as_echo "$gcc_cv_readelf" >&6; }
22405 else
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22407 $as_echo "no" >&6; }
22408 fi
22409
22410
22411 fi
22412 fi
22413
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22415 $as_echo_n "checking what readelf to use... " >&6; }
22416 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22417 # Single tree build which includes binutils.
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22419 $as_echo "newly built readelf" >&6; }
22420 elif test x$gcc_cv_readelf = x; then
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22422 $as_echo "not found" >&6; }
22423 else
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22425 $as_echo "$gcc_cv_readelf" >&6; }
22426 fi
22427
22428 # Figure out what assembler alignment features are present.
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22430 $as_echo_n "checking assembler flags... " >&6; }
22431 if test "${gcc_cv_as_flags+set}" = set; then :
22432 $as_echo_n "(cached) " >&6
22433 else
22434 case "$target" in
22435 i[34567]86-*-linux*)
22436 gcc_cv_as_flags=--32
22437 ;;
22438 x86_64-*-linux-gnux32)
22439 gcc_cv_as_flags=--x32
22440 ;;
22441 x86_64-*-linux*)
22442 gcc_cv_as_flags=--64
22443 ;;
22444 powerpc*-*-darwin*)
22445 gcc_cv_as_flags="-arch ppc"
22446 ;;
22447 *)
22448 gcc_cv_as_flags=" "
22449 ;;
22450 esac
22451 fi
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22453 $as_echo "$gcc_cv_as_flags" >&6; }
22454
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22456 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22457 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22458 $as_echo_n "(cached) " >&6
22459 else
22460 gcc_cv_as_balign_and_p2align=no
22461 if test $in_tree_gas = yes; then
22462 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22463 then gcc_cv_as_balign_and_p2align=yes
22464 fi
22465 elif test x$gcc_cv_as != x; then
22466 $as_echo '.balign 4
22467 .p2align 2' > conftest.s
22468 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22470 (eval $ac_try) 2>&5
22471 ac_status=$?
22472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22473 test $ac_status = 0; }; }
22474 then
22475 gcc_cv_as_balign_and_p2align=yes
22476 else
22477 echo "configure: failed program was" >&5
22478 cat conftest.s >&5
22479 fi
22480 rm -f conftest.o conftest.s
22481 fi
22482 fi
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22484 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22485 if test $gcc_cv_as_balign_and_p2align = yes; then
22486
22487 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22488
22489 fi
22490
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22492 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22493 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22494 $as_echo_n "(cached) " >&6
22495 else
22496 gcc_cv_as_max_skip_p2align=no
22497 if test $in_tree_gas = yes; then
22498 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22499 then gcc_cv_as_max_skip_p2align=yes
22500 fi
22501 elif test x$gcc_cv_as != x; then
22502 $as_echo '.p2align 4,,7' > conftest.s
22503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22505 (eval $ac_try) 2>&5
22506 ac_status=$?
22507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22508 test $ac_status = 0; }; }
22509 then
22510 gcc_cv_as_max_skip_p2align=yes
22511 else
22512 echo "configure: failed program was" >&5
22513 cat conftest.s >&5
22514 fi
22515 rm -f conftest.o conftest.s
22516 fi
22517 fi
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22519 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22520 if test $gcc_cv_as_max_skip_p2align = yes; then
22521
22522 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22523
22524 fi
22525
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22527 $as_echo_n "checking assembler for .literal16... " >&6; }
22528 if test "${gcc_cv_as_literal16+set}" = set; then :
22529 $as_echo_n "(cached) " >&6
22530 else
22531 gcc_cv_as_literal16=no
22532 if test $in_tree_gas = yes; then
22533 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22534 then gcc_cv_as_literal16=yes
22535 fi
22536 elif test x$gcc_cv_as != x; then
22537 $as_echo '.literal16' > conftest.s
22538 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22540 (eval $ac_try) 2>&5
22541 ac_status=$?
22542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22543 test $ac_status = 0; }; }
22544 then
22545 gcc_cv_as_literal16=yes
22546 else
22547 echo "configure: failed program was" >&5
22548 cat conftest.s >&5
22549 fi
22550 rm -f conftest.o conftest.s
22551 fi
22552 fi
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22554 $as_echo "$gcc_cv_as_literal16" >&6; }
22555 if test $gcc_cv_as_literal16 = yes; then
22556
22557 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22558
22559 fi
22560
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22562 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22563 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22564 $as_echo_n "(cached) " >&6
22565 else
22566 gcc_cv_as_subsection_m1=no
22567 if test $in_tree_gas = yes; then
22568 if test $in_tree_gas_is_elf = yes \
22569 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22570 then gcc_cv_as_subsection_m1=yes
22571 fi
22572 elif test x$gcc_cv_as != x; then
22573 $as_echo 'conftest_label1: .word 0
22574 .subsection -1
22575 conftest_label2: .word 0
22576 .previous' > conftest.s
22577 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22579 (eval $ac_try) 2>&5
22580 ac_status=$?
22581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22582 test $ac_status = 0; }; }
22583 then
22584 if test x$gcc_cv_nm != x; then
22585 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22586 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22587 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22588 then :
22589 else gcc_cv_as_subsection_m1=yes
22590 fi
22591 rm -f conftest.nm1 conftest.nm2
22592 fi
22593 else
22594 echo "configure: failed program was" >&5
22595 cat conftest.s >&5
22596 fi
22597 rm -f conftest.o conftest.s
22598 fi
22599 fi
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22601 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22602 if test $gcc_cv_as_subsection_m1 = yes; then
22603
22604 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22605
22606 fi
22607
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22609 $as_echo_n "checking assembler for .weak... " >&6; }
22610 if test "${gcc_cv_as_weak+set}" = set; then :
22611 $as_echo_n "(cached) " >&6
22612 else
22613 gcc_cv_as_weak=no
22614 if test $in_tree_gas = yes; then
22615 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22616 then gcc_cv_as_weak=yes
22617 fi
22618 elif test x$gcc_cv_as != x; then
22619 $as_echo ' .weak foobar' > conftest.s
22620 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22622 (eval $ac_try) 2>&5
22623 ac_status=$?
22624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22625 test $ac_status = 0; }; }
22626 then
22627 gcc_cv_as_weak=yes
22628 else
22629 echo "configure: failed program was" >&5
22630 cat conftest.s >&5
22631 fi
22632 rm -f conftest.o conftest.s
22633 fi
22634 fi
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22636 $as_echo "$gcc_cv_as_weak" >&6; }
22637 if test $gcc_cv_as_weak = yes; then
22638
22639 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22640
22641 fi
22642
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22644 $as_echo_n "checking assembler for .weakref... " >&6; }
22645 if test "${gcc_cv_as_weakref+set}" = set; then :
22646 $as_echo_n "(cached) " >&6
22647 else
22648 gcc_cv_as_weakref=no
22649 if test $in_tree_gas = yes; then
22650 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22651 then gcc_cv_as_weakref=yes
22652 fi
22653 elif test x$gcc_cv_as != x; then
22654 $as_echo ' .weakref foobar, barfnot' > conftest.s
22655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22657 (eval $ac_try) 2>&5
22658 ac_status=$?
22659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22660 test $ac_status = 0; }; }
22661 then
22662 gcc_cv_as_weakref=yes
22663 else
22664 echo "configure: failed program was" >&5
22665 cat conftest.s >&5
22666 fi
22667 rm -f conftest.o conftest.s
22668 fi
22669 fi
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22671 $as_echo "$gcc_cv_as_weakref" >&6; }
22672 if test $gcc_cv_as_weakref = yes; then
22673
22674 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22675
22676 fi
22677
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22679 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22680 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22681 $as_echo_n "(cached) " >&6
22682 else
22683 gcc_cv_as_nsubspa_comdat=no
22684 if test $in_tree_gas = yes; then
22685 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22686 then gcc_cv_as_nsubspa_comdat=yes
22687 fi
22688 elif test x$gcc_cv_as != x; then
22689 $as_echo ' .SPACE $TEXT$
22690 .NSUBSPA $CODE$,COMDAT' > conftest.s
22691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22693 (eval $ac_try) 2>&5
22694 ac_status=$?
22695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22696 test $ac_status = 0; }; }
22697 then
22698 gcc_cv_as_nsubspa_comdat=yes
22699 else
22700 echo "configure: failed program was" >&5
22701 cat conftest.s >&5
22702 fi
22703 rm -f conftest.o conftest.s
22704 fi
22705 fi
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22707 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22708 if test $gcc_cv_as_nsubspa_comdat = yes; then
22709
22710 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22711
22712 fi
22713
22714 # .hidden needs to be supported in both the assembler and the linker,
22715 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22716 # This is irritatingly difficult to feature test for; we have to check the
22717 # date string after the version number. If we've got an in-tree
22718 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22719 # to be safe.
22720 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22722 $as_echo_n "checking assembler for .hidden... " >&6; }
22723 if test "${gcc_cv_as_hidden+set}" = set; then :
22724 $as_echo_n "(cached) " >&6
22725 else
22726 gcc_cv_as_hidden=no
22727 if test $in_tree_gas = yes; then
22728 if test $in_tree_gas_is_elf = yes \
22729 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22730 then gcc_cv_as_hidden=yes
22731 fi
22732 elif test x$gcc_cv_as != x; then
22733 $as_echo ' .hidden foobar
22734 foobar:' > conftest.s
22735 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22737 (eval $ac_try) 2>&5
22738 ac_status=$?
22739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22740 test $ac_status = 0; }; }
22741 then
22742 gcc_cv_as_hidden=yes
22743 else
22744 echo "configure: failed program was" >&5
22745 cat conftest.s >&5
22746 fi
22747 rm -f conftest.o conftest.s
22748 fi
22749 fi
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22751 $as_echo "$gcc_cv_as_hidden" >&6; }
22752
22753 case "${target}" in
22754 *-*-darwin*)
22755 # Darwin as has some visibility support, though with a different syntax.
22756 gcc_cv_as_hidden=yes
22757 ;;
22758 esac
22759
22760 # gnu_indirect_function type is an extension proposed at
22761 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22762 # selection of function implementation
22763 # Check whether --enable-gnu-indirect-function was given.
22764 if test "${enable_gnu_indirect_function+set}" = set; then :
22765 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22766 yes | no) ;;
22767 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22768 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22769 esac
22770 else
22771 enable_gnu_indirect_function="$default_gnu_indirect_function"
22772 fi
22773
22774
22775 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22776
22777 cat >>confdefs.h <<_ACEOF
22778 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22779 _ACEOF
22780
22781
22782
22783 if test $in_tree_ld != yes ; then
22784 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22785 if echo "$ld_ver" | grep GNU > /dev/null; then
22786 if test x"$ld_is_gold" = xyes; then
22787 # GNU gold --version looks like this:
22788 #
22789 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22790 #
22791 # We extract the binutils version which is more familiar and specific
22792 # than the gold version.
22793 ld_vers=`echo $ld_ver | sed -n \
22794 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22795 else
22796 # GNU ld --version looks like this:
22797 #
22798 # GNU ld (GNU Binutils) 2.21.51.20110225
22799 ld_vers=`echo $ld_ver | sed -n \
22800 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22801 fi
22802 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'`
22803 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22804 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22805 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22806 else
22807 case "${target}" in
22808 *-*-solaris2*)
22809 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22810 # format.
22811 #
22812 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22813 # /usr/ccs/bin/ld has been configured.
22814 ld_ver=`$gcc_cv_ld -V 2>&1`
22815 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22816 ld_vers=`echo $ld_ver | sed -n \
22817 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22818 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22819 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22820 fi
22821 ;;
22822 esac
22823 fi
22824 fi
22825
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22827 $as_echo_n "checking linker for .hidden support... " >&6; }
22828 if test "${gcc_cv_ld_hidden+set}" = set; then :
22829 $as_echo_n "(cached) " >&6
22830 else
22831 if test $in_tree_ld = yes ; then
22832 gcc_cv_ld_hidden=no
22833 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 \
22834 && test $in_tree_ld_is_elf = yes; then
22835 gcc_cv_ld_hidden=yes
22836 fi
22837 else
22838 gcc_cv_ld_hidden=yes
22839 if test x"$ld_is_gold" = xyes; then
22840 :
22841 elif echo "$ld_ver" | grep GNU > /dev/null; then
22842 case "${target}" in
22843 mmix-knuth-mmixware)
22844 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22845 gcc_cv_ld_hidden=no
22846 ;;
22847 esac
22848 if test 0"$ld_date" -lt 20020404; then
22849 if test -n "$ld_date"; then
22850 # If there was date string, but was earlier than 2002-04-04, fail
22851 gcc_cv_ld_hidden=no
22852 elif test -z "$ld_vers"; then
22853 # If there was no date string nor ld version number, something is wrong
22854 gcc_cv_ld_hidden=no
22855 else
22856 test -z "$ld_vers_patch" && ld_vers_patch=0
22857 if test "$ld_vers_major" -lt 2; then
22858 gcc_cv_ld_hidden=no
22859 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22860 gcc_cv_ld_hidden="no"
22861 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22862 gcc_cv_ld_hidden=no
22863 fi
22864 fi
22865 fi
22866 else
22867 case "${target}" in
22868 *-*-darwin*)
22869 # Darwin ld has some visibility support.
22870 gcc_cv_ld_hidden=yes
22871 ;;
22872 hppa64*-*-hpux* | ia64*-*-hpux*)
22873 gcc_cv_ld_hidden=yes
22874 ;;
22875 *-*-solaris2.1[0-9]*)
22876 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22877 # .symbolic was only added in Solaris 9 12/02.
22878 gcc_cv_ld_hidden=yes
22879 ;;
22880 *)
22881 gcc_cv_ld_hidden=no
22882 ;;
22883 esac
22884 fi
22885 fi
22886 fi
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22888 $as_echo "$gcc_cv_ld_hidden" >&6; }
22889 libgcc_visibility=no
22890
22891
22892 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22893 libgcc_visibility=yes
22894
22895 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22896
22897 fi
22898
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22900 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22901 gcc_cv_ld_ro_rw_mix=unknown
22902 if test $in_tree_ld = yes ; then
22903 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 \
22904 && test $in_tree_ld_is_elf = yes; then
22905 gcc_cv_ld_ro_rw_mix=read-write
22906 fi
22907 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22908 echo '.section myfoosect, "a"' > conftest1.s
22909 echo '.section myfoosect, "aw"' > conftest2.s
22910 echo '.byte 1' >> conftest2.s
22911 echo '.section myfoosect, "a"' > conftest3.s
22912 echo '.byte 0' >> conftest3.s
22913 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22914 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22915 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22916 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22917 conftest2.o conftest3.o > /dev/null 2>&1; then
22918 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22919 | sed -e '/myfoosect/!d' -e N`
22920 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22921 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22922 gcc_cv_ld_ro_rw_mix=read-only
22923 else
22924 gcc_cv_ld_ro_rw_mix=read-write
22925 fi
22926 fi
22927 fi
22928 rm -f conftest.* conftest[123].*
22929 fi
22930 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22931
22932 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22933
22934 fi
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22936 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22937
22938 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22939 case "${target}" in
22940 *-*-solaris2*)
22941 #
22942 # Solaris 2 ld -V output looks like this for a regular version:
22943 #
22944 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22945 #
22946 # but test versions add stuff at the end:
22947 #
22948 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22949 #
22950 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22951 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22952 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22953 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22954 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22955 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22956 fi
22957 ;;
22958 esac
22959 fi
22960
22961 # Check whether --enable-initfini-array was given.
22962 if test "${enable_initfini_array+set}" = set; then :
22963 enableval=$enable_initfini_array;
22964 else
22965
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22967 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22968 if test "${gcc_cv_initfini_array+set}" = set; then :
22969 $as_echo_n "(cached) " >&6
22970 else
22971 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22972 case "${target}" in
22973 ia64-*)
22974 if test "$cross_compiling" = yes; then :
22975 gcc_cv_initfini_array=no
22976 else
22977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22978 /* end confdefs.h. */
22979
22980 #ifndef __ELF__
22981 #error Not an ELF OS
22982 #endif
22983 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22984 if it can be used. */
22985 static int x = -1;
22986 int main (void) { return x; }
22987 int foo (void) { x = 0; }
22988 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22989
22990 _ACEOF
22991 if ac_fn_cxx_try_run "$LINENO"; then :
22992 gcc_cv_initfini_array=yes
22993 else
22994 gcc_cv_initfini_array=no
22995 fi
22996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22997 conftest.$ac_objext conftest.beam conftest.$ac_ext
22998 fi
22999 ;;
23000 *)
23001 gcc_cv_initfini_array=no
23002 if test $in_tree_ld = yes ; then
23003 if test "$gcc_cv_gld_major_version" -eq 2 \
23004 -a "$gcc_cv_gld_minor_version" -ge 22 \
23005 -o "$gcc_cv_gld_major_version" -gt 2 \
23006 && test $in_tree_ld_is_elf = yes; then
23007 gcc_cv_initfini_array=yes
23008 fi
23009 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23010 case $target:$gas in
23011 *:yes)
23012 sh_flags='"a"'
23013 sh_type='%progbits'
23014 ;;
23015 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23016 sh_flags='"a"'
23017 sh_type='@progbits'
23018 ;;
23019 sparc*-*-solaris2*:no)
23020 sh_flags='#alloc'
23021 sh_type='#progbits'
23022 sh_quote='"'
23023 ;;
23024 esac
23025 case "$target:$gnu_ld" in
23026 *:yes)
23027 cat > conftest.s <<EOF
23028 .section .dtors,$sh_flags,$sh_type
23029 .balign 4
23030 .byte 'A', 'A', 'A', 'A'
23031 .section .ctors,$sh_flags,$sh_type
23032 .balign 4
23033 .byte 'B', 'B', 'B', 'B'
23034 .section .fini_array.65530,$sh_flags,$sh_type
23035 .balign 4
23036 .byte 'C', 'C', 'C', 'C'
23037 .section .init_array.65530,$sh_flags,$sh_type
23038 .balign 4
23039 .byte 'D', 'D', 'D', 'D'
23040 .section .dtors.64528,$sh_flags,$sh_type
23041 .balign 4
23042 .byte 'E', 'E', 'E', 'E'
23043 .section .ctors.64528,$sh_flags,$sh_type
23044 .balign 4
23045 .byte 'F', 'F', 'F', 'F'
23046 .section .fini_array.01005,$sh_flags,$sh_type
23047 .balign 4
23048 .byte 'G', 'G', 'G', 'G'
23049 .section .init_array.01005,$sh_flags,$sh_type
23050 .balign 4
23051 .byte 'H', 'H', 'H', 'H'
23052 .text
23053 .globl _start
23054 _start:
23055 EOF
23056 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23057 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23058 && $gcc_cv_objdump -s -j .init_array conftest \
23059 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23060 && $gcc_cv_objdump -s -j .fini_array conftest \
23061 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23062 gcc_cv_initfini_array=yes
23063 fi
23064 ;;
23065 *-*-solaris2*:no)
23066 # When Solaris ld added constructor priority support, it was
23067 # decided to only handle .init_array.N/.fini_array.N since
23068 # there was no need for backwards compatibility with
23069 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23070 # sections with correct execution order resp. to
23071 # .init_array/.fini_array, while gld merges them into
23072 # .init_array/.fini_array.
23073 cat > conftest.s <<EOF
23074 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23075 .align 4
23076 .byte 'C', 'C', 'C', 'C'
23077 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23078 .align 4
23079 .byte 'D', 'D', 'D', 'D'
23080 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23081 .align 4
23082 .byte 'G', 'G', 'G', 'G'
23083 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23084 .align 4
23085 .byte 'H', 'H', 'H', 'H'
23086 .text
23087 .globl _start
23088 _start:
23089 EOF
23090 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23091 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23092 && $gcc_cv_objdump -s -j .init_array conftest \
23093 | grep HHHHDDDD > /dev/null 2>&1 \
23094 && $gcc_cv_objdump -s -j .fini_array conftest \
23095 | grep GGGGCCCC > /dev/null 2>&1; then
23096 gcc_cv_initfini_array=yes
23097 fi
23098 ;;
23099 esac
23100 rm -f conftest conftest.*
23101 fi
23102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23103 /* end confdefs.h. */
23104
23105 #ifndef __ELF__
23106 # error Not an ELF OS
23107 #endif
23108 #include <stdlib.h>
23109 #if defined __GLIBC_PREREQ
23110 # if __GLIBC_PREREQ (2, 4)
23111 # else
23112 # error GLIBC 2.4 required
23113 # endif
23114 #else
23115 # if defined __sun__ && defined __svr4__
23116 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23117 # else
23118 # error The C library not known to support .init_array/.fini_array
23119 # endif
23120 #endif
23121
23122 _ACEOF
23123 if ac_fn_cxx_try_cpp "$LINENO"; then :
23124
23125 else
23126 gcc_cv_initfini_array=no
23127 fi
23128 rm -f conftest.err conftest.$ac_ext;;
23129 esac
23130 else
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23132 $as_echo_n "checking cross compile... guessing... " >&6; }
23133 gcc_cv_initfini_array=no
23134 fi
23135 fi
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23137 $as_echo "$gcc_cv_initfini_array" >&6; }
23138 enable_initfini_array=$gcc_cv_initfini_array
23139
23140 fi
23141
23142
23143 cat >>confdefs.h <<_ACEOF
23144 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23145 _ACEOF
23146
23147
23148
23149 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23151 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23152 if test "${gcc_cv_as_leb128+set}" = set; then :
23153 $as_echo_n "(cached) " >&6
23154 else
23155 gcc_cv_as_leb128=no
23156 if test $in_tree_gas = yes; then
23157 if test $in_tree_gas_is_elf = yes \
23158 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23159 then gcc_cv_as_leb128=yes
23160 fi
23161 elif test x$gcc_cv_as != x; then
23162 $as_echo ' .data
23163 .uleb128 L2 - L1
23164 L1:
23165 .uleb128 1280
23166 .sleb128 -1010
23167 L2:' > conftest.s
23168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23170 (eval $ac_try) 2>&5
23171 ac_status=$?
23172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23173 test $ac_status = 0; }; }
23174 then
23175 # GAS versions before 2.11 do not support uleb128,
23176 # despite appearing to.
23177 # ??? There exists an elf-specific test that will crash
23178 # the assembler. Perhaps it's better to figure out whether
23179 # arbitrary sections are supported and try the test.
23180 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23181 if echo "$as_ver" | grep GNU > /dev/null; then
23182 as_vers=`echo $as_ver | sed -n \
23183 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23184 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23185 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23186 if test $as_major -eq 2 && test $as_minor -lt 11
23187 then :
23188 else gcc_cv_as_leb128=yes
23189 fi
23190 fi
23191 else
23192 echo "configure: failed program was" >&5
23193 cat conftest.s >&5
23194 fi
23195 rm -f conftest.o conftest.s
23196 fi
23197 fi
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23199 $as_echo "$gcc_cv_as_leb128" >&6; }
23200 if test $gcc_cv_as_leb128 = yes; then
23201
23202 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23203
23204 fi
23205
23206 # Check if we have assembler support for unwind directives.
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23208 $as_echo_n "checking assembler for cfi directives... " >&6; }
23209 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23210 $as_echo_n "(cached) " >&6
23211 else
23212 gcc_cv_as_cfi_directive=no
23213 if test x$gcc_cv_as != x; then
23214 $as_echo ' .text
23215 .cfi_startproc
23216 .cfi_offset 0, 0
23217 .cfi_same_value 1
23218 .cfi_def_cfa 1, 2
23219 .cfi_escape 1, 2, 3, 4, 5
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 case "$target" in
23229 *-*-solaris*)
23230 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23231 # read-only and read-write sections, we need to make sure that the
23232 # assembler used emits read-write .eh_frame sections.
23233 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23234 if test "x$gcc_cv_objdump" != x; then
23235 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23236 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23237 gcc_cv_as_cfi_directive=no
23238 else
23239 case "$target" in
23240 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23241 # On Solaris/x86, make sure that GCC and assembler agree on using
23242 # read-only .eh_frame sections for 64-bit.
23243 if test x$gas = xyes; then
23244 as_ix86_64_opt="--64"
23245 else
23246 as_ix86_64_opt="-xarch=amd64"
23247 fi
23248 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23249 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23250 sed -e /.eh_frame/!d -e N | \
23251 grep READONLY > /dev/null; then
23252 gcc_cv_as_cfi_directive=yes
23253 else
23254 gcc_cv_as_cfi_directive=no
23255 fi
23256 ;;
23257 *)
23258 gcc_cv_as_cfi_directive=yes
23259 ;;
23260 esac
23261 fi
23262 else
23263 # no objdump, err on the side of caution
23264 gcc_cv_as_cfi_directive=no
23265 fi
23266 else
23267 gcc_cv_as_cfi_directive=yes
23268 fi
23269 ;;
23270 *-*-*)
23271 gcc_cv_as_cfi_directive=yes
23272 ;;
23273 esac
23274 else
23275 echo "configure: failed program was" >&5
23276 cat conftest.s >&5
23277 fi
23278 rm -f conftest.o conftest.s
23279 fi
23280 fi
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23282 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23283
23284 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23286 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23287 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23288 $as_echo_n "(cached) " >&6
23289 else
23290 gcc_cv_as_cfi_advance_working=no
23291 if test x$gcc_cv_as != x; then
23292 $as_echo ' .text
23293 .cfi_startproc
23294 .cfi_adjust_cfa_offset 64
23295 .skip 75040, 0
23296 .cfi_adjust_cfa_offset 128
23297 .cfi_endproc' > conftest.s
23298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23300 (eval $ac_try) 2>&5
23301 ac_status=$?
23302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23303 test $ac_status = 0; }; }
23304 then
23305
23306 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23307 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23308 gcc_cv_as_cfi_advance_working=yes
23309 fi
23310
23311 else
23312 echo "configure: failed program was" >&5
23313 cat conftest.s >&5
23314 fi
23315 rm -f conftest.o conftest.s
23316 fi
23317 fi
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23319 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23320
23321 else
23322 # no objdump, err on the side of caution
23323 gcc_cv_as_cfi_advance_working=no
23324 fi
23325
23326
23327 cat >>confdefs.h <<_ACEOF
23328 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23329 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23330 _ACEOF
23331
23332
23333
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23335 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23336 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23337 $as_echo_n "(cached) " >&6
23338 else
23339 gcc_cv_as_cfi_personality_directive=no
23340 if test x$gcc_cv_as != x; then
23341 $as_echo ' .text
23342 .cfi_startproc
23343 .cfi_personality 0, symbol
23344 .cfi_endproc' > conftest.s
23345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23347 (eval $ac_try) 2>&5
23348 ac_status=$?
23349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23350 test $ac_status = 0; }; }
23351 then
23352 gcc_cv_as_cfi_personality_directive=yes
23353 else
23354 echo "configure: failed program was" >&5
23355 cat conftest.s >&5
23356 fi
23357 rm -f conftest.o conftest.s
23358 fi
23359 fi
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23361 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23362
23363
23364 cat >>confdefs.h <<_ACEOF
23365 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23366 then echo 1; else echo 0; fi`
23367 _ACEOF
23368
23369
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23371 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23372 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23373 $as_echo_n "(cached) " >&6
23374 else
23375 gcc_cv_as_cfi_sections_directive=no
23376 if test x$gcc_cv_as != x; then
23377 $as_echo ' .text
23378 .cfi_sections .debug_frame, .eh_frame
23379 .cfi_startproc
23380 .cfi_endproc' > conftest.s
23381 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23383 (eval $ac_try) 2>&5
23384 ac_status=$?
23385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23386 test $ac_status = 0; }; }
23387 then
23388 case $target_os in
23389 win32 | pe | cygwin* | mingw32*)
23390 # Need to check that we generated the correct relocation for the
23391 # .debug_frame section. This was fixed for binutils 2.21.
23392 gcc_cv_as_cfi_sections_directive=no
23393 if test "x$gcc_cv_objdump" != x; then
23394 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23395 grep secrel > /dev/null; then
23396 gcc_cv_as_cfi_sections_directive=yes
23397 fi
23398 fi
23399 ;;
23400 *)
23401 gcc_cv_as_cfi_sections_directive=yes
23402 ;;
23403 esac
23404 else
23405 echo "configure: failed program was" >&5
23406 cat conftest.s >&5
23407 fi
23408 rm -f conftest.o conftest.s
23409 fi
23410 fi
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23412 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23413
23414
23415
23416 cat >>confdefs.h <<_ACEOF
23417 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23418 then echo 1; else echo 0; fi`
23419 _ACEOF
23420
23421
23422 # GAS versions up to and including 2.11.0 may mis-optimize
23423 # .eh_frame data.
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23425 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23426 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23427 $as_echo_n "(cached) " >&6
23428 else
23429 gcc_cv_as_eh_frame=no
23430 if test $in_tree_gas = yes; then
23431 if test $in_tree_gas_is_elf = yes \
23432 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23433 then gcc_cv_as_eh_frame=yes
23434 fi
23435 elif test x$gcc_cv_as != x; then
23436 $as_echo ' .text
23437 .LFB1:
23438 .4byte 0
23439 .L1:
23440 .4byte 0
23441 .LFE1:
23442 .section .eh_frame,"aw",@progbits
23443 __FRAME_BEGIN__:
23444 .4byte .LECIE1-.LSCIE1
23445 .LSCIE1:
23446 .4byte 0x0
23447 .byte 0x1
23448 .ascii "z\0"
23449 .byte 0x1
23450 .byte 0x78
23451 .byte 0x1a
23452 .byte 0x0
23453 .byte 0x4
23454 .4byte 1
23455 .p2align 1
23456 .LECIE1:
23457 .LSFDE1:
23458 .4byte .LEFDE1-.LASFDE1
23459 .LASFDE1:
23460 .4byte .LASFDE1-__FRAME_BEGIN__
23461 .4byte .LFB1
23462 .4byte .LFE1-.LFB1
23463 .byte 0x4
23464 .4byte .LFE1-.LFB1
23465 .byte 0x4
23466 .4byte .L1-.LFB1
23467 .LEFDE1:' > conftest.s
23468 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23470 (eval $ac_try) 2>&5
23471 ac_status=$?
23472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23473 test $ac_status = 0; }; }
23474 then
23475 cat > conftest.lit <<EOF
23476 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23477 0010 01000000 12000000 18000000 00000000 ................
23478 0020 08000000 04080000 0044 .........D
23479 EOF
23480 cat > conftest.big <<EOF
23481 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23482 0010 00000001 00000012 00000018 00000000 ................
23483 0020 00000008 04000000 0844 .........D
23484 EOF
23485 # If the assembler didn't choke, and we can objdump,
23486 # and we got the correct data, then succeed.
23487 # The text in the here-document typically retains its unix-style line
23488 # endings, while the output of objdump will use host line endings.
23489 # Therefore, use diff -b for the comparisons.
23490 if test x$gcc_cv_objdump != x \
23491 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23492 | tail -3 > conftest.got \
23493 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23494 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23495 then
23496 gcc_cv_as_eh_frame=yes
23497 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23499 (eval $ac_try) 2>&5
23500 ac_status=$?
23501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23502 test $ac_status = 0; }; }; then
23503 gcc_cv_as_eh_frame=buggy
23504 else
23505 # Uh oh, what do we do now?
23506 gcc_cv_as_eh_frame=no
23507 fi
23508 else
23509 echo "configure: failed program was" >&5
23510 cat conftest.s >&5
23511 fi
23512 rm -f conftest.o conftest.s
23513 fi
23514 fi
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23516 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23517
23518
23519 if test $gcc_cv_as_eh_frame = buggy; then
23520
23521 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23522
23523 fi
23524
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23526 $as_echo_n "checking assembler for section merging support... " >&6; }
23527 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23528 $as_echo_n "(cached) " >&6
23529 else
23530 gcc_cv_as_shf_merge=no
23531 if test $in_tree_gas = yes; then
23532 if test $in_tree_gas_is_elf = yes \
23533 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23534 then gcc_cv_as_shf_merge=yes
23535 fi
23536 elif test x$gcc_cv_as != x; then
23537 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23538 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23540 (eval $ac_try) 2>&5
23541 ac_status=$?
23542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23543 test $ac_status = 0; }; }
23544 then
23545 gcc_cv_as_shf_merge=yes
23546 else
23547 echo "configure: failed program was" >&5
23548 cat conftest.s >&5
23549 fi
23550 rm -f conftest.o conftest.s
23551 fi
23552 fi
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23554 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23555
23556 if test $gcc_cv_as_shf_merge = no; then
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23558 $as_echo_n "checking assembler for section merging support... " >&6; }
23559 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23560 $as_echo_n "(cached) " >&6
23561 else
23562 gcc_cv_as_shf_merge=no
23563 if test $in_tree_gas = yes; then
23564 if test $in_tree_gas_is_elf = yes \
23565 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23566 then gcc_cv_as_shf_merge=yes
23567 fi
23568 elif test x$gcc_cv_as != x; then
23569 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23572 (eval $ac_try) 2>&5
23573 ac_status=$?
23574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23575 test $ac_status = 0; }; }
23576 then
23577 gcc_cv_as_shf_merge=yes
23578 else
23579 echo "configure: failed program was" >&5
23580 cat conftest.s >&5
23581 fi
23582 rm -f conftest.o conftest.s
23583 fi
23584 fi
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23586 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23587
23588 fi
23589
23590 cat >>confdefs.h <<_ACEOF
23591 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23592 _ACEOF
23593
23594
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23596 $as_echo_n "checking assembler for stabs directive... " >&6; }
23597 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23598 $as_echo_n "(cached) " >&6
23599 else
23600 gcc_cv_as_stabs_directive=no
23601 if test x$gcc_cv_as != x; then
23602 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23605 (eval $ac_try) 2>&5
23606 ac_status=$?
23607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23608 test $ac_status = 0; }; }
23609 then
23610 gcc_cv_as_stabs_directive=yes
23611 else
23612 echo "configure: failed program was" >&5
23613 cat conftest.s >&5
23614 fi
23615 rm -f conftest.o conftest.s
23616 fi
23617 fi
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23619 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23620 if test $gcc_cv_as_stabs_directive = yes; then
23621
23622 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23623
23624 fi
23625
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23627 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23628 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23629 $as_echo_n "(cached) " >&6
23630 else
23631 gcc_cv_as_comdat_group=no
23632 if test $in_tree_gas = yes; then
23633 if test $in_tree_gas_is_elf = yes \
23634 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23635 then gcc_cv_as_comdat_group=yes
23636 fi
23637 elif test x$gcc_cv_as != x; then
23638 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23639 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23641 (eval $ac_try) 2>&5
23642 ac_status=$?
23643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23644 test $ac_status = 0; }; }
23645 then
23646 gcc_cv_as_comdat_group=yes
23647 else
23648 echo "configure: failed program was" >&5
23649 cat conftest.s >&5
23650 fi
23651 rm -f conftest.o conftest.s
23652 fi
23653 fi
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23655 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23656
23657 if test $gcc_cv_as_comdat_group = yes; then
23658 gcc_cv_as_comdat_group_percent=no
23659 gcc_cv_as_comdat_group_group=no
23660 else
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23662 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23663 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23664 $as_echo_n "(cached) " >&6
23665 else
23666 gcc_cv_as_comdat_group_percent=no
23667 if test $in_tree_gas = yes; then
23668 if test $in_tree_gas_is_elf = yes \
23669 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23670 then gcc_cv_as_comdat_group_percent=yes
23671 fi
23672 elif test x$gcc_cv_as != x; then
23673 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23674 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23676 (eval $ac_try) 2>&5
23677 ac_status=$?
23678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23679 test $ac_status = 0; }; }
23680 then
23681 gcc_cv_as_comdat_group_percent=yes
23682 else
23683 echo "configure: failed program was" >&5
23684 cat conftest.s >&5
23685 fi
23686 rm -f conftest.o conftest.s
23687 fi
23688 fi
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23690 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23691
23692 if test $gcc_cv_as_comdat_group_percent = yes; then
23693 gcc_cv_as_comdat_group_group=no
23694 else
23695 case "${target}" in
23696 # Sun as uses a completely different syntax.
23697 *-*-solaris2*)
23698 case "${target}" in
23699 sparc*-*-solaris2*)
23700 conftest_s='
23701 .group foo,".text%foo",#comdat
23702 .section ".text%foo", #alloc,#execinstr,#progbits
23703 .globl foo
23704 foo:
23705 '
23706 ;;
23707 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23708 conftest_s='
23709 .group foo,.text%foo,#comdat
23710 .section .text%foo, "ax", @progbits
23711 .globl foo
23712 foo:
23713 '
23714 ;;
23715 esac
23716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23717 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23718 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23719 $as_echo_n "(cached) " >&6
23720 else
23721 gcc_cv_as_comdat_group_group=no
23722 if test x$gcc_cv_as != x; then
23723 $as_echo "$conftest_s" > conftest.s
23724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23726 (eval $ac_try) 2>&5
23727 ac_status=$?
23728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23729 test $ac_status = 0; }; }
23730 then
23731 gcc_cv_as_comdat_group_group=yes
23732 else
23733 echo "configure: failed program was" >&5
23734 cat conftest.s >&5
23735 fi
23736 rm -f conftest.o conftest.s
23737 fi
23738 fi
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23740 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23741
23742 ;;
23743 esac
23744 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23745 gcc_cv_as_comdat_group_group=no
23746 fi
23747 fi
23748 fi
23749 if test x"$ld_is_gold" = xyes; then
23750 comdat_group=yes
23751 elif test $in_tree_ld = yes ; then
23752 comdat_group=no
23753 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 \
23754 && test $in_tree_ld_is_elf = yes; then
23755 comdat_group=yes
23756 fi
23757 elif echo "$ld_ver" | grep GNU > /dev/null; then
23758 comdat_group=yes
23759 if test 0"$ld_date" -lt 20050308; then
23760 if test -n "$ld_date"; then
23761 # If there was date string, but was earlier than 2005-03-08, fail
23762 comdat_group=no
23763 elif test "$ld_vers_major" -lt 2; then
23764 comdat_group=no
23765 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23766 comdat_group=no
23767 fi
23768 fi
23769 else
23770 case "${target}" in
23771 *-*-solaris2.1[1-9]*)
23772 comdat_group=no
23773 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23774 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23775 # version 1.688.
23776 #
23777 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23778 # least ld version 1.2267.
23779 if test "$ld_vers_major" -gt 1; then
23780 comdat_group=yes
23781 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23782 comdat_group=yes
23783 elif test "$ld_vers_minor" -ge 2267; then
23784 comdat_group=yes
23785 fi
23786 ;;
23787 *)
23788 # Assume linkers other than GNU ld don't support COMDAT group.
23789 comdat_group=no
23790 ;;
23791 esac
23792 fi
23793 # Allow overriding the automatic COMDAT group tests above.
23794 # Check whether --enable-comdat was given.
23795 if test "${enable_comdat+set}" = set; then :
23796 enableval=$enable_comdat; comdat_group="$enable_comdat"
23797 fi
23798
23799 if test $comdat_group = no; then
23800 gcc_cv_as_comdat_group=no
23801 gcc_cv_as_comdat_group_percent=no
23802 gcc_cv_as_comdat_group_group=no
23803 fi
23804
23805 cat >>confdefs.h <<_ACEOF
23806 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23807 || test $gcc_cv_as_comdat_group_percent = yes \
23808 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23809 _ACEOF
23810
23811
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23813 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23814 if test "${gcc_cv_as_discriminator+set}" = set; then :
23815 $as_echo_n "(cached) " >&6
23816 else
23817 gcc_cv_as_discriminator=no
23818 if test $in_tree_gas = yes; then
23819 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23820 then gcc_cv_as_discriminator=yes
23821 fi
23822 elif test x$gcc_cv_as != x; then
23823 $as_echo ' .text
23824 .file 1 "conf.c"
23825 .loc 1 1 0 discriminator 1' > conftest.s
23826 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23828 (eval $ac_try) 2>&5
23829 ac_status=$?
23830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23831 test $ac_status = 0; }; }
23832 then
23833 gcc_cv_as_discriminator=yes
23834 else
23835 echo "configure: failed program was" >&5
23836 cat conftest.s >&5
23837 fi
23838 rm -f conftest.o conftest.s
23839 fi
23840 fi
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23842 $as_echo "$gcc_cv_as_discriminator" >&6; }
23843 if test $gcc_cv_as_discriminator = yes; then
23844
23845 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23846
23847 fi
23848
23849 # Thread-local storage - the check is heavily parameterized.
23850 conftest_s=
23851 tls_first_major=
23852 tls_first_minor=
23853 tls_as_opt=
23854 case "$target" in
23855 alpha*-*-*)
23856 conftest_s='
23857 .section ".tdata","awT",@progbits
23858 foo: .long 25
23859 .text
23860 ldq $27,__tls_get_addr($29) !literal!1
23861 lda $16,foo($29) !tlsgd!1
23862 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23863 ldq $27,__tls_get_addr($29) !literal!2
23864 lda $16,foo($29) !tlsldm!2
23865 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23866 ldq $1,foo($29) !gotdtprel
23867 ldah $2,foo($29) !dtprelhi
23868 lda $3,foo($2) !dtprello
23869 lda $4,foo($29) !dtprel
23870 ldq $1,foo($29) !gottprel
23871 ldah $2,foo($29) !tprelhi
23872 lda $3,foo($2) !tprello
23873 lda $4,foo($29) !tprel'
23874 tls_first_major=2
23875 tls_first_minor=13
23876 tls_as_opt=--fatal-warnings
23877 ;;
23878 arc*-*-*)
23879 conftest_s='
23880 add_s r0,r0, @foo@tpoff'
23881 tls_first_major=2
23882 tls_first_minor=23
23883 ;;
23884 cris-*-*|crisv32-*-*)
23885 conftest_s='
23886 .section ".tdata","awT",@progbits
23887 x: .long 25
23888 .text
23889 move.d x:IE,$r10
23890 nop'
23891 tls_first_major=2
23892 tls_first_minor=20
23893 tls_as_opt=--fatal-warnings
23894 ;;
23895 frv*-*-*)
23896 conftest_s='
23897 .section ".tdata","awT",@progbits
23898 x: .long 25
23899 .text
23900 call #gettlsoff(x)'
23901 tls_first_major=2
23902 tls_first_minor=14
23903 ;;
23904 hppa*-*-linux*)
23905 conftest_s='
23906 t1: .reg %r20
23907 t2: .reg %r21
23908 gp: .reg %r19
23909 .section ".tdata","awT",@progbits
23910 foo: .long 25
23911 .text
23912 .align 4
23913 addil LT%foo-$tls_gdidx$,gp
23914 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23915 b __tls_get_addr
23916 nop
23917 addil LT%foo-$tls_ldidx$,gp
23918 b __tls_get_addr
23919 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23920 addil LR%foo-$tls_dtpoff$,%ret0
23921 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23922 mfctl %cr27,%t1
23923 addil LT%foo-$tls_ieoff$,gp
23924 ldw RT%foo-$tls_ieoff$(%r1),%t2
23925 add %t1,%t2,%t3
23926 mfctl %cr27,%t1
23927 addil LR%foo-$tls_leoff$,%t1
23928 ldo RR%foo-$tls_leoff$(%r1),%t2'
23929 tls_first_major=2
23930 tls_first_minor=15
23931 tls_as_opt=--fatal-warnings
23932 ;;
23933 arm*-*-*)
23934 conftest_s='
23935 .section ".tdata","awT",%progbits
23936 foo: .long 25
23937 .text
23938 .word foo(gottpoff)
23939 .word foo(tpoff)
23940 .word foo(tlsgd)
23941 .word foo(tlsldm)
23942 .word foo(tlsldo)'
23943 tls_first_major=2
23944 tls_first_minor=17
23945 ;;
23946 i[34567]86-*-* | x86_64-*-*)
23947 case "$target" in
23948 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23949 on_solaris=yes
23950 ;;
23951 *)
23952 on_solaris=no
23953 ;;
23954 esac
23955 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23956 conftest_s='
23957 .section .tdata,"awt",@progbits'
23958 tls_first_major=0
23959 tls_first_minor=0
23960 tls_section_flag=t
23961
23962 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23963
23964 else
23965 conftest_s='
23966 .section ".tdata","awT",@progbits'
23967 tls_first_major=2
23968 tls_first_minor=14
23969 tls_section_flag=T
23970 tls_as_opt="--fatal-warnings"
23971 fi
23972 case "$target" in
23973 i[34567]86-*-*)
23974 conftest_s="$conftest_s
23975 foo: .long 25
23976 .text
23977 movl %gs:0, %eax
23978 leal foo@tlsgd(,%ebx,1), %eax
23979 leal foo@tlsldm(%ebx), %eax
23980 leal foo@dtpoff(%eax), %edx
23981 movl foo@gottpoff(%ebx), %eax
23982 subl foo@gottpoff(%ebx), %eax
23983 addl foo@gotntpoff(%ebx), %eax
23984 movl foo@indntpoff, %eax
23985 movl \$foo@tpoff, %eax
23986 subl \$foo@tpoff, %eax
23987 leal foo@ntpoff(%ecx), %eax"
23988 ;;
23989 x86_64-*-*)
23990 if test x$on_solaris = xyes; then
23991 case $gas_flag in
23992 yes) tls_as_opt="$tls_as_opt --64" ;;
23993 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23994 esac
23995 fi
23996 conftest_s="$conftest_s
23997 foo: .long 25
23998 .text
23999 movq %fs:0, %rax
24000 leaq foo@tlsgd(%rip), %rdi
24001 leaq foo@tlsld(%rip), %rdi
24002 leaq foo@dtpoff(%rax), %rdx
24003 movq foo@gottpoff(%rip), %rax
24004 movq \$foo@tpoff, %rax"
24005 ;;
24006 esac
24007 ;;
24008 ia64-*-*)
24009 conftest_s='
24010 .section ".tdata","awT",@progbits
24011 foo: data8 25
24012 .text
24013 addl r16 = @ltoff(@dtpmod(foo#)), gp
24014 addl r17 = @ltoff(@dtprel(foo#)), gp
24015 addl r18 = @ltoff(@tprel(foo#)), gp
24016 addl r19 = @dtprel(foo#), gp
24017 adds r21 = @dtprel(foo#), r13
24018 movl r23 = @dtprel(foo#)
24019 addl r20 = @tprel(foo#), gp
24020 adds r22 = @tprel(foo#), r13
24021 movl r24 = @tprel(foo#)'
24022 tls_first_major=2
24023 tls_first_minor=13
24024 tls_as_opt=--fatal-warnings
24025 ;;
24026 microblaze*-*-*)
24027 conftest_s='
24028 .section .tdata,"awT",@progbits
24029 x:
24030 .word 2
24031 .text
24032 addik r5,r20,x@TLSGD
24033 addik r5,r20,x@TLSLDM'
24034 tls_first_major=2
24035 tls_first_minor=20
24036 tls_as_opt='--fatal-warnings'
24037 ;;
24038 mips*-*-*)
24039 conftest_s='
24040 .section .tdata,"awT",@progbits
24041 x:
24042 .word 2
24043 .text
24044 addiu $4, $28, %tlsgd(x)
24045 addiu $4, $28, %tlsldm(x)
24046 lui $4, %dtprel_hi(x)
24047 addiu $4, $4, %dtprel_lo(x)
24048 lw $4, %gottprel(x)($28)
24049 lui $4, %tprel_hi(x)
24050 addiu $4, $4, %tprel_lo(x)'
24051 tls_first_major=2
24052 tls_first_minor=16
24053 tls_as_opt='-32 --fatal-warnings'
24054 ;;
24055 m68k-*-*)
24056 conftest_s='
24057 .section .tdata,"awT",@progbits
24058 x:
24059 .word 2
24060 .text
24061 foo:
24062 move.l x@TLSGD(%a5),%a0
24063 move.l x@TLSLDM(%a5),%a0
24064 move.l x@TLSLDO(%a5),%a0
24065 move.l x@TLSIE(%a5),%a0
24066 move.l x@TLSLE(%a5),%a0'
24067 tls_first_major=2
24068 tls_first_minor=19
24069 tls_as_opt='--fatal-warnings'
24070 ;;
24071 nios2-*-*)
24072 conftest_s='
24073 .section ".tdata","awT",@progbits'
24074 tls_first_major=2
24075 tls_first_minor=23
24076 tls_as_opt="--fatal-warnings"
24077 ;;
24078 aarch64*-*-*)
24079 conftest_s='
24080 .section ".tdata","awT",%progbits
24081 foo: .long 25
24082 .text
24083 adrp x0, :tlsgd:x
24084 add x0, x0, #:tlsgd_lo12:x
24085 bl __tls_get_addr
24086 nop'
24087 tls_first_major=2
24088 tls_first_minor=20
24089 tls_as_opt='--fatal-warnings'
24090 ;;
24091 powerpc-ibm-aix*)
24092 conftest_s='
24093 .extern __get_tpointer
24094 .toc
24095 LC..1:
24096 .tc a[TC],a[TL]@le
24097 .csect .text[PR]
24098 .tlstest:
24099 lwz 9,LC..1(2)
24100 bla __get_tpointer
24101 lwzx 3,9,3
24102 .globl a
24103 .csect a[TL],4
24104 a:
24105 .space 4'
24106 tls_first_major=0
24107 tls_first_minor=0
24108 ;;
24109 powerpc64*-*-*)
24110 conftest_s='
24111 .section ".tdata","awT",@progbits
24112 .align 3
24113 ld0: .space 8
24114 ld1: .space 8
24115 x1: .space 8
24116 x2: .space 8
24117 x3: .space 8
24118 .text
24119 addi 3,2,ld0@got@tlsgd
24120 bl .__tls_get_addr
24121 nop
24122 addi 3,2,ld1@toc
24123 bl .__tls_get_addr
24124 nop
24125 addi 3,2,x1@got@tlsld
24126 bl .__tls_get_addr
24127 nop
24128 addi 9,3,x1@dtprel
24129 bl .__tls_get_addr
24130 nop
24131 addis 9,3,x2@dtprel@ha
24132 addi 9,9,x2@dtprel@l
24133 bl .__tls_get_addr
24134 nop
24135 ld 9,x3@got@dtprel(2)
24136 add 9,9,3
24137 bl .__tls_get_addr
24138 nop'
24139 tls_first_major=2
24140 tls_first_minor=14
24141 tls_as_opt="-a64 --fatal-warnings"
24142 ;;
24143 powerpc*-*-*)
24144 conftest_s='
24145 .section ".tdata","awT",@progbits
24146 .align 2
24147 ld0: .space 4
24148 ld1: .space 4
24149 x1: .space 4
24150 x2: .space 4
24151 x3: .space 4
24152 .text
24153 addi 3,31,ld0@got@tlsgd
24154 bl __tls_get_addr
24155 addi 3,31,x1@got@tlsld
24156 bl __tls_get_addr
24157 addi 9,3,x1@dtprel
24158 addis 9,3,x2@dtprel@ha
24159 addi 9,9,x2@dtprel@l
24160 lwz 9,x3@got@tprel(31)
24161 add 9,9,x@tls
24162 addi 9,2,x1@tprel
24163 addis 9,2,x2@tprel@ha
24164 addi 9,9,x2@tprel@l'
24165 tls_first_major=2
24166 tls_first_minor=14
24167 tls_as_opt="-a32 --fatal-warnings"
24168 ;;
24169 s390-*-*)
24170 conftest_s='
24171 .section ".tdata","awT",@progbits
24172 foo: .long 25
24173 .text
24174 .long foo@TLSGD
24175 .long foo@TLSLDM
24176 .long foo@DTPOFF
24177 .long foo@NTPOFF
24178 .long foo@GOTNTPOFF
24179 .long foo@INDNTPOFF
24180 l %r1,foo@GOTNTPOFF(%r12)
24181 l %r1,0(%r1):tls_load:foo
24182 bas %r14,0(%r1,%r13):tls_gdcall:foo
24183 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24184 tls_first_major=2
24185 tls_first_minor=14
24186 tls_as_opt="-m31 --fatal-warnings"
24187 ;;
24188 s390x-*-*)
24189 conftest_s='
24190 .section ".tdata","awT",@progbits
24191 foo: .long 25
24192 .text
24193 .quad foo@TLSGD
24194 .quad foo@TLSLDM
24195 .quad foo@DTPOFF
24196 .quad foo@NTPOFF
24197 .quad foo@GOTNTPOFF
24198 lg %r1,foo@GOTNTPOFF(%r12)
24199 larl %r1,foo@INDNTPOFF
24200 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24201 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24202 tls_first_major=2
24203 tls_first_minor=14
24204 tls_as_opt="-m64 -Aesame --fatal-warnings"
24205 ;;
24206 sh-*-* | sh[123456789lbe]*-*-*)
24207 conftest_s='
24208 .section ".tdata","awT",@progbits
24209 foo: .long 25
24210 .text
24211 .long foo@TLSGD
24212 .long foo@TLSLDM
24213 .long foo@DTPOFF
24214 .long foo@GOTTPOFF
24215 .long foo@TPOFF'
24216 tls_first_major=2
24217 tls_first_minor=13
24218 tls_as_opt=--fatal-warnings
24219 ;;
24220 sparc*-*-*)
24221 case "$target" in
24222 sparc*-sun-solaris2.*)
24223 on_solaris=yes
24224 ;;
24225 *)
24226 on_solaris=no
24227 ;;
24228 esac
24229 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24230 conftest_s='
24231 .section ".tdata",#alloc,#write,#tls'
24232 tls_first_major=0
24233 tls_first_minor=0
24234 else
24235 conftest_s='
24236 .section ".tdata","awT",@progbits'
24237 tls_first_major=2
24238 tls_first_minor=14
24239 tls_as_opt="-32 --fatal-warnings"
24240 fi
24241 conftest_s="$conftest_s
24242 foo: .long 25
24243 .text
24244 sethi %tgd_hi22(foo), %o0
24245 add %o0, %tgd_lo10(foo), %o1
24246 add %l7, %o1, %o0, %tgd_add(foo)
24247 call __tls_get_addr, %tgd_call(foo)
24248 sethi %tldm_hi22(foo), %l1
24249 add %l1, %tldm_lo10(foo), %l2
24250 add %l7, %l2, %o0, %tldm_add(foo)
24251 call __tls_get_addr, %tldm_call(foo)
24252 sethi %tldo_hix22(foo), %l3
24253 xor %l3, %tldo_lox10(foo), %l4
24254 add %o0, %l4, %l5, %tldo_add(foo)
24255 sethi %tie_hi22(foo), %o3
24256 add %o3, %tie_lo10(foo), %o3
24257 ld [%l7 + %o3], %o2, %tie_ld(foo)
24258 add %g7, %o2, %o4, %tie_add(foo)
24259 sethi %tle_hix22(foo), %l1
24260 xor %l1, %tle_lox10(foo), %o5
24261 ld [%g7 + %o5], %o1"
24262 ;;
24263 tilepro*-*-*)
24264 conftest_s='
24265 .section ".tdata","awT",@progbits
24266 foo: .long 25
24267 .text
24268 addli r0, zero, tls_gd(foo)
24269 auli r0, zero, tls_gd_ha16(foo)
24270 addli r0, r0, tls_gd_lo16(foo)
24271 jal __tls_get_addr
24272 addli r0, zero, tls_ie(foo)
24273 auli r0, r0, tls_ie_ha16(foo)
24274 addli r0, r0, tls_ie_lo16(foo)'
24275 tls_first_major=2
24276 tls_first_minor=22
24277 tls_as_opt="--fatal-warnings"
24278 ;;
24279 tilegx*-*-*)
24280 conftest_s='
24281 .section ".tdata","awT",@progbits
24282 foo: .long 25
24283 .text
24284 shl16insli r0, zero, hw0_last_tls_gd(foo)
24285 shl16insli r0, zero, hw1_last_tls_gd(foo)
24286 shl16insli r0, r0, hw0_tls_gd(foo)
24287 jal __tls_get_addr
24288 shl16insli r0, zero, hw1_last_tls_ie(foo)
24289 shl16insli r0, r0, hw0_tls_ie(foo)'
24290 tls_first_major=2
24291 tls_first_minor=22
24292 tls_as_opt="--fatal-warnings"
24293 ;;
24294 xtensa*-*-*)
24295 conftest_s='
24296 .section ".tdata","awT",@progbits
24297 foo: .long 25
24298 .text
24299 movi a8, foo@TLSFUNC
24300 movi a10, foo@TLSARG
24301 callx8.tls a8, foo@TLSCALL'
24302 tls_first_major=2
24303 tls_first_minor=19
24304 ;;
24305 esac
24306 set_have_as_tls=no
24307 if test "x$enable_tls" = xno ; then
24308 : # TLS explicitly disabled.
24309 elif test "x$enable_tls" = xyes ; then
24310 set_have_as_tls=yes # TLS explicitly enabled.
24311 elif test -z "$tls_first_major"; then
24312 : # If we don't have a check, assume no support.
24313 else
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24315 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24316 if test "${gcc_cv_as_tls+set}" = set; then :
24317 $as_echo_n "(cached) " >&6
24318 else
24319 gcc_cv_as_tls=no
24320 if test $in_tree_gas = yes; then
24321 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24322 then gcc_cv_as_tls=yes
24323 fi
24324 elif test x$gcc_cv_as != x; then
24325 $as_echo "$conftest_s" > conftest.s
24326 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24328 (eval $ac_try) 2>&5
24329 ac_status=$?
24330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24331 test $ac_status = 0; }; }
24332 then
24333 gcc_cv_as_tls=yes
24334 else
24335 echo "configure: failed program was" >&5
24336 cat conftest.s >&5
24337 fi
24338 rm -f conftest.o conftest.s
24339 fi
24340 fi
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24342 $as_echo "$gcc_cv_as_tls" >&6; }
24343 if test $gcc_cv_as_tls = yes; then
24344 set_have_as_tls=yes
24345 fi
24346 fi
24347 if test $set_have_as_tls = yes ; then
24348
24349 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24350
24351 fi
24352
24353 # Target-specific assembler checks.
24354
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24356 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24357 gcc_cv_ld_static_dynamic=no
24358 gcc_cv_ld_static_option='-Bstatic'
24359 gcc_cv_ld_dynamic_option='-Bdynamic'
24360 if test $in_tree_ld = yes ; then
24361 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
24362 gcc_cv_ld_static_dynamic=yes
24363 fi
24364 elif test x$gcc_cv_ld != x; then
24365 # Check if linker supports -Bstatic/-Bdynamic option
24366 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24367 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24368 gcc_cv_ld_static_dynamic=yes
24369 else
24370 case "$target" in
24371 # AIX ld uses -b flags
24372 *-*-aix4.[23]* | *-*-aix[5-9]*)
24373 gcc_cv_ld_static_dynamic=yes
24374 gcc_cv_ld_static_option="-bstatic"
24375 gcc_cv_ld_dynamic_option="-bdynamic"
24376 ;;
24377 # HP-UX ld uses -a flags to select between shared and archive.
24378 *-*-hpux*)
24379 if test x"$gnu_ld" = xno; then
24380 gcc_cv_ld_static_dynamic=yes
24381 gcc_cv_ld_static_option="-aarchive_shared"
24382 gcc_cv_ld_dynamic_option="-adefault"
24383 fi
24384 ;;
24385 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24386 *-*-solaris2*)
24387 gcc_cv_ld_static_dynamic=yes
24388 ;;
24389 esac
24390 fi
24391 fi
24392 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24393
24394 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24395
24396
24397 cat >>confdefs.h <<_ACEOF
24398 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24399 _ACEOF
24400
24401
24402 cat >>confdefs.h <<_ACEOF
24403 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24404 _ACEOF
24405
24406 fi
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24408 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24409
24410 if test x"$demangler_in_ld" = xyes; then
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24412 $as_echo_n "checking linker --demangle support... " >&6; }
24413 gcc_cv_ld_demangle=no
24414 if test $in_tree_ld = yes; then
24415 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 \
24416 gcc_cv_ld_demangle=yes
24417 fi
24418 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24419 # Check if the GNU linker supports --demangle option
24420 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24421 gcc_cv_ld_demangle=yes
24422 fi
24423 fi
24424 if test x"$gcc_cv_ld_demangle" = xyes; then
24425
24426 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24427
24428 fi
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24430 $as_echo "$gcc_cv_ld_demangle" >&6; }
24431 fi
24432
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24434 $as_echo_n "checking linker plugin support... " >&6; }
24435 gcc_cv_lto_plugin=0
24436 if test -f liblto_plugin.la; then
24437 save_ld_ver="$ld_ver"
24438 save_ld_vers_major="$ld_vers_major"
24439 save_ld_vers_minor="$ld_vers_minor"
24440 save_ld_is_gold="$ld_is_gold"
24441
24442 ld_is_gold=no
24443
24444 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24445 ld_ver="GNU ld"
24446 # FIXME: ld_is_gold?
24447 ld_vers_major="$gcc_cv_gld_major_version"
24448 ld_vers_minor="$gcc_cv_gld_minor_version"
24449 else
24450 # Determine plugin linker version.
24451 # FIXME: Partial duplicate from above, generalize.
24452 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24453 if echo "$ld_ver" | grep GNU > /dev/null; then
24454 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24455 ld_is_gold=yes
24456 ld_vers=`echo $ld_ver | sed -n \
24457 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24458 else
24459 ld_vers=`echo $ld_ver | sed -n \
24460 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24461 fi
24462 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24463 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24464 fi
24465 fi
24466
24467 # Determine plugin support.
24468 if echo "$ld_ver" | grep GNU > /dev/null; then
24469 # Require GNU ld or gold 2.21+ for plugin support by default.
24470 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24471 gcc_cv_lto_plugin=2
24472 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24473 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24474 gcc_cv_lto_plugin=1
24475 fi
24476 fi
24477
24478 ld_ver="$save_ld_ver"
24479 ld_vers_major="$save_ld_vers_major"
24480 ld_vers_minor="$save_ld_vers_minor"
24481 ld_is_gold="$save_ld_is_gold"
24482 fi
24483
24484 cat >>confdefs.h <<_ACEOF
24485 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24486 _ACEOF
24487
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24489 $as_echo "$gcc_cv_lto_plugin" >&6; }
24490
24491 case "$target" in
24492 aarch64*-*-*)
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24494 $as_echo_n "checking assembler for -mabi option... " >&6; }
24495 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24496 $as_echo_n "(cached) " >&6
24497 else
24498 gcc_cv_as_aarch64_mabi=no
24499 if test x$gcc_cv_as != x; then
24500 $as_echo '.text' > conftest.s
24501 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24503 (eval $ac_try) 2>&5
24504 ac_status=$?
24505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24506 test $ac_status = 0; }; }
24507 then
24508 gcc_cv_as_aarch64_mabi=yes
24509 else
24510 echo "configure: failed program was" >&5
24511 cat conftest.s >&5
24512 fi
24513 rm -f conftest.o conftest.s
24514 fi
24515 fi
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24517 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24518
24519 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24520
24521 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24522
24523 else
24524 if test x$with_abi = xilp32; then
24525 as_fn_error "Assembler does not support -mabi=ilp32.\
24526 Upgrade the Assembler." "$LINENO" 5
24527 fi
24528 if test x"$with_multilib_list" = xdefault; then
24529 TM_MULTILIB_CONFIG=lp64
24530 else
24531 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24532 for aarch64_multilib in ${aarch64_multilibs}; do
24533 case ${aarch64_multilib} in
24534 ilp32)
24535 as_fn_error "Assembler does not support -mabi=ilp32.\
24536 Upgrade the Assembler." "$LINENO" 5
24537 ;;
24538 *)
24539 ;;
24540 esac
24541 done
24542 fi
24543 fi
24544 # Check if we have binutils support for relocations types needed by -fpic
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24546 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24547 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24548 $as_echo_n "(cached) " >&6
24549 else
24550 gcc_cv_as_aarch64_picreloc=no
24551 if test x$gcc_cv_as != x; then
24552 $as_echo '
24553 .text
24554 ldr x0, [x2, #:gotpage_lo15:globalsym]
24555 ' > conftest.s
24556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24558 (eval $ac_try) 2>&5
24559 ac_status=$?
24560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24561 test $ac_status = 0; }; }
24562 then
24563 gcc_cv_as_aarch64_picreloc=yes
24564 else
24565 echo "configure: failed program was" >&5
24566 cat conftest.s >&5
24567 fi
24568 rm -f conftest.o conftest.s
24569 fi
24570 fi
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24572 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24573 if test $gcc_cv_as_aarch64_picreloc = yes; then
24574
24575 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24576
24577 fi
24578 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24579 # Check whether --enable-fix-cortex-a53-835769 was given.
24580 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24581 enableval=$enable_fix_cortex_a53_835769;
24582 case $enableval in
24583 yes)
24584 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24585 ;;
24586 no)
24587 ;;
24588 *)
24589 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24590 Valid choices are 'yes' and 'no'." "$LINENO" 5
24591 ;;
24592
24593 esac
24594
24595 fi
24596
24597 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24598 # Check whether --enable-fix-cortex-a53-843419 was given.
24599 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24600 enableval=$enable_fix_cortex_a53_843419;
24601 case $enableval in
24602 yes)
24603 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24604 ;;
24605 no)
24606 ;;
24607 *)
24608 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24609 Valid choices are 'yes' and 'no'." "$LINENO" 5
24610 ;;
24611
24612 esac
24613
24614 fi
24615
24616 ;;
24617
24618 # All TARGET_ABI_OSF targets.
24619 alpha*-*-linux* | alpha*-*-*bsd*)
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24621 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24622 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24623 $as_echo_n "(cached) " >&6
24624 else
24625 gcc_cv_as_alpha_explicit_relocs=no
24626 if test $in_tree_gas = yes; then
24627 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24628 then gcc_cv_as_alpha_explicit_relocs=yes
24629 fi
24630 elif test x$gcc_cv_as != x; then
24631 $as_echo ' .set nomacro
24632 .text
24633 extbl $3, $2, $3 !lituse_bytoff!1
24634 ldq $2, a($29) !literal!1
24635 ldq $4, b($29) !literal!2
24636 ldq_u $3, 0($2) !lituse_base!1
24637 ldq $27, f($29) !literal!5
24638 jsr $26, ($27), f !lituse_jsr!5
24639 ldah $29, 0($26) !gpdisp!3
24640 lda $0, c($29) !gprel
24641 ldah $1, d($29) !gprelhigh
24642 lda $1, d($1) !gprellow
24643 lda $29, 0($29) !gpdisp!3' > conftest.s
24644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24646 (eval $ac_try) 2>&5
24647 ac_status=$?
24648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24649 test $ac_status = 0; }; }
24650 then
24651 gcc_cv_as_alpha_explicit_relocs=yes
24652 else
24653 echo "configure: failed program was" >&5
24654 cat conftest.s >&5
24655 fi
24656 rm -f conftest.o conftest.s
24657 fi
24658 fi
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24660 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24661 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24662
24663 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24664
24665 fi
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24667 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24668 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24669 $as_echo_n "(cached) " >&6
24670 else
24671 gcc_cv_as_alpha_jsrdirect_relocs=no
24672 if test $in_tree_gas = yes; then
24673 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24674 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24675 fi
24676 elif test x$gcc_cv_as != x; then
24677 $as_echo ' .set nomacro
24678 .text
24679 ldq $27, a($29) !literal!1
24680 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24681 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24683 (eval $ac_try) 2>&5
24684 ac_status=$?
24685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24686 test $ac_status = 0; }; }
24687 then
24688 gcc_cv_as_alpha_jsrdirect_relocs=yes
24689 else
24690 echo "configure: failed program was" >&5
24691 cat conftest.s >&5
24692 fi
24693 rm -f conftest.o conftest.s
24694 fi
24695 fi
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24697 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24698 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24699
24700 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24701
24702 fi
24703 ;;
24704
24705 avr-*-*)
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24707 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24708 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24709 $as_echo_n "(cached) " >&6
24710 else
24711 gcc_cv_as_avr_mlink_relax=no
24712 if test x$gcc_cv_as != x; then
24713 $as_echo '.text' > conftest.s
24714 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24716 (eval $ac_try) 2>&5
24717 ac_status=$?
24718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24719 test $ac_status = 0; }; }
24720 then
24721 gcc_cv_as_avr_mlink_relax=yes
24722 else
24723 echo "configure: failed program was" >&5
24724 cat conftest.s >&5
24725 fi
24726 rm -f conftest.o conftest.s
24727 fi
24728 fi
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24730 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24731 if test $gcc_cv_as_avr_mlink_relax = yes; then
24732
24733 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24734
24735 fi
24736
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24738 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24739 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24740 $as_echo_n "(cached) " >&6
24741 else
24742 gcc_cv_as_avr_mrmw=no
24743 if test x$gcc_cv_as != x; then
24744 $as_echo '.text' > conftest.s
24745 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24747 (eval $ac_try) 2>&5
24748 ac_status=$?
24749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24750 test $ac_status = 0; }; }
24751 then
24752 gcc_cv_as_avr_mrmw=yes
24753 else
24754 echo "configure: failed program was" >&5
24755 cat conftest.s >&5
24756 fi
24757 rm -f conftest.o conftest.s
24758 fi
24759 fi
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24761 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24762 if test $gcc_cv_as_avr_mrmw = yes; then
24763
24764 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24765
24766 fi
24767 ;;
24768
24769 cris-*-*)
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24771 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24772 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24773 $as_echo_n "(cached) " >&6
24774 else
24775 gcc_cv_as_cris_no_mul_bug=no
24776 if test $in_tree_gas = yes; then
24777 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24778 then gcc_cv_as_cris_no_mul_bug=yes
24779 fi
24780 elif test x$gcc_cv_as != x; then
24781 $as_echo '.text' > conftest.s
24782 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24784 (eval $ac_try) 2>&5
24785 ac_status=$?
24786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24787 test $ac_status = 0; }; }
24788 then
24789 gcc_cv_as_cris_no_mul_bug=yes
24790 else
24791 echo "configure: failed program was" >&5
24792 cat conftest.s >&5
24793 fi
24794 rm -f conftest.o conftest.s
24795 fi
24796 fi
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24798 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24799 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24800
24801 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24802
24803 fi
24804 ;;
24805
24806 sparc*-*-*)
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24808 $as_echo_n "checking assembler for .register... " >&6; }
24809 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24810 $as_echo_n "(cached) " >&6
24811 else
24812 gcc_cv_as_sparc_register_op=no
24813 if test x$gcc_cv_as != x; then
24814 $as_echo '.register %g2, #scratch' > conftest.s
24815 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24817 (eval $ac_try) 2>&5
24818 ac_status=$?
24819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24820 test $ac_status = 0; }; }
24821 then
24822 gcc_cv_as_sparc_register_op=yes
24823 else
24824 echo "configure: failed program was" >&5
24825 cat conftest.s >&5
24826 fi
24827 rm -f conftest.o conftest.s
24828 fi
24829 fi
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24831 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24832 if test $gcc_cv_as_sparc_register_op = yes; then
24833
24834 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24835
24836 fi
24837
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24839 $as_echo_n "checking assembler for -relax option... " >&6; }
24840 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24841 $as_echo_n "(cached) " >&6
24842 else
24843 gcc_cv_as_sparc_relax=no
24844 if test x$gcc_cv_as != x; then
24845 $as_echo '.text' > conftest.s
24846 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24848 (eval $ac_try) 2>&5
24849 ac_status=$?
24850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24851 test $ac_status = 0; }; }
24852 then
24853 gcc_cv_as_sparc_relax=yes
24854 else
24855 echo "configure: failed program was" >&5
24856 cat conftest.s >&5
24857 fi
24858 rm -f conftest.o conftest.s
24859 fi
24860 fi
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24862 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24863 if test $gcc_cv_as_sparc_relax = yes; then
24864
24865 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24866
24867 fi
24868
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24870 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24871 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24872 $as_echo_n "(cached) " >&6
24873 else
24874 gcc_cv_as_sparc_gotdata_op=no
24875 if test x$gcc_cv_as != x; then
24876 $as_echo '.text
24877 .align 4
24878 foo:
24879 nop
24880 bar:
24881 sethi %gdop_hix22(foo), %g1
24882 xor %g1, %gdop_lox10(foo), %g1
24883 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24886 (eval $ac_try) 2>&5
24887 ac_status=$?
24888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24889 test $ac_status = 0; }; }
24890 then
24891 if test x$gcc_cv_ld != x \
24892 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24893 if test x$gcc_cv_objdump != x; then
24894 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24895 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24896 gcc_cv_as_sparc_gotdata_op=no
24897 else
24898 gcc_cv_as_sparc_gotdata_op=yes
24899 fi
24900 fi
24901 fi
24902 rm -f conftest
24903 else
24904 echo "configure: failed program was" >&5
24905 cat conftest.s >&5
24906 fi
24907 rm -f conftest.o conftest.s
24908 fi
24909 fi
24910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24911 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24912 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24913
24914 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24915
24916 fi
24917
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24919 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24920 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24921 $as_echo_n "(cached) " >&6
24922 else
24923 gcc_cv_as_sparc_ua_pcrel=no
24924 if test x$gcc_cv_as != x; then
24925 $as_echo '.text
24926 foo:
24927 nop
24928 .data
24929 .align 4
24930 .byte 0
24931 .uaword %r_disp32(foo)' > conftest.s
24932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24934 (eval $ac_try) 2>&5
24935 ac_status=$?
24936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24937 test $ac_status = 0; }; }
24938 then
24939 if test x$gcc_cv_ld != x \
24940 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24941 gcc_cv_as_sparc_ua_pcrel=yes
24942 fi
24943 rm -f conftest
24944 else
24945 echo "configure: failed program was" >&5
24946 cat conftest.s >&5
24947 fi
24948 rm -f conftest.o conftest.s
24949 fi
24950 fi
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24952 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24953 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24954
24955 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24956
24957
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24959 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24960 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24961 $as_echo_n "(cached) " >&6
24962 else
24963 gcc_cv_as_sparc_ua_pcrel_hidden=no
24964 if test x$gcc_cv_as != x; then
24965 $as_echo '.data
24966 .align 4
24967 .byte 0x31
24968 .uaword %r_disp32(foo)
24969 .byte 0x32, 0x33, 0x34
24970 .global foo
24971 .hidden foo
24972 foo:
24973 .skip 4' > conftest.s
24974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24976 (eval $ac_try) 2>&5
24977 ac_status=$?
24978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24979 test $ac_status = 0; }; }
24980 then
24981 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24982 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24983 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24984 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24985 if $gcc_cv_objdump -R conftest 2> /dev/null \
24986 | grep 'DISP32' > /dev/null 2>&1; then
24987 :
24988 else
24989 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24990 fi
24991 fi
24992 rm -f conftest
24993 else
24994 echo "configure: failed program was" >&5
24995 cat conftest.s >&5
24996 fi
24997 rm -f conftest.o conftest.s
24998 fi
24999 fi
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25001 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25002 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25003
25004 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25005
25006 fi
25007
25008 fi # unaligned pcrel relocs
25009
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25011 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25012 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25013 $as_echo_n "(cached) " >&6
25014 else
25015 gcc_cv_as_sparc_offsetable_lo10=no
25016 if test x$gcc_cv_as != x; then
25017 $as_echo '.text
25018 or %g1, %lo(ab) + 12, %g1
25019 or %g1, %lo(ab + 12), %g1' > conftest.s
25020 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25022 (eval $ac_try) 2>&5
25023 ac_status=$?
25024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25025 test $ac_status = 0; }; }
25026 then
25027 if test x$gcc_cv_objdump != x \
25028 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25029 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25030 gcc_cv_as_sparc_offsetable_lo10=yes
25031 fi
25032 else
25033 echo "configure: failed program was" >&5
25034 cat conftest.s >&5
25035 fi
25036 rm -f conftest.o conftest.s
25037 fi
25038 fi
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25040 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25041 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25042
25043 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25044
25045 fi
25046
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25048 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25049 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25050 $as_echo_n "(cached) " >&6
25051 else
25052 gcc_cv_as_sparc_fmaf=no
25053 if test x$gcc_cv_as != x; then
25054 $as_echo '.text
25055 .register %g2, #scratch
25056 .register %g3, #scratch
25057 .align 4
25058 fmaddd %f0, %f2, %f4, %f6
25059 addxccc %g1, %g2, %g3
25060 fsrl32 %f2, %f4, %f8
25061 fnaddd %f10, %f12, %f14' > conftest.s
25062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25064 (eval $ac_try) 2>&5
25065 ac_status=$?
25066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25067 test $ac_status = 0; }; }
25068 then
25069 gcc_cv_as_sparc_fmaf=yes
25070 else
25071 echo "configure: failed program was" >&5
25072 cat conftest.s >&5
25073 fi
25074 rm -f conftest.o conftest.s
25075 fi
25076 fi
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25078 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25079 if test $gcc_cv_as_sparc_fmaf = yes; then
25080
25081 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25082
25083 fi
25084
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25086 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25087 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25088 $as_echo_n "(cached) " >&6
25089 else
25090 gcc_cv_as_sparc_sparc4=no
25091 if test x$gcc_cv_as != x; then
25092 $as_echo '.text
25093 .register %g2, #scratch
25094 .register %g3, #scratch
25095 .align 4
25096 cxbe %g2, %g3, 1f
25097 1: cwbneg %g2, %g3, 1f
25098 1: sha1
25099 md5
25100 aes_kexpand0 %f4, %f6, %f8
25101 des_round %f38, %f40, %f42, %f44
25102 camellia_f %f54, %f56, %f58, %f60
25103 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25106 (eval $ac_try) 2>&5
25107 ac_status=$?
25108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25109 test $ac_status = 0; }; }
25110 then
25111 gcc_cv_as_sparc_sparc4=yes
25112 else
25113 echo "configure: failed program was" >&5
25114 cat conftest.s >&5
25115 fi
25116 rm -f conftest.o conftest.s
25117 fi
25118 fi
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25120 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25121 if test $gcc_cv_as_sparc_sparc4 = yes; then
25122
25123 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25124
25125 fi
25126
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25128 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25129 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25130 $as_echo_n "(cached) " >&6
25131 else
25132 gcc_cv_as_sparc_sparc5=no
25133 if test x$gcc_cv_as != x; then
25134 $as_echo '.text
25135 .register %g2, #scratch
25136 .register %g3, #scratch
25137 .align 4
25138 subxc %g1, %g2, %g3
25139 fpadd8 %f0, %f2, %f4' > conftest.s
25140 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25142 (eval $ac_try) 2>&5
25143 ac_status=$?
25144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25145 test $ac_status = 0; }; }
25146 then
25147 gcc_cv_as_sparc_sparc5=yes
25148 else
25149 echo "configure: failed program was" >&5
25150 cat conftest.s >&5
25151 fi
25152 rm -f conftest.o conftest.s
25153 fi
25154 fi
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25156 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25157 if test $gcc_cv_as_sparc_sparc5 = yes; then
25158
25159 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25160
25161 fi
25162
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25164 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25165 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25166 $as_echo_n "(cached) " >&6
25167 else
25168 gcc_cv_as_sparc_leon=no
25169 if test x$gcc_cv_as != x; then
25170 $as_echo '.text
25171 .register %g2, #scratch
25172 .register %g3, #scratch
25173 .align 4
25174 smac %g2, %g3, %g1
25175 umac %g2, %g3, %g1
25176 casa [%g2] 0xb, %g3, %g1' > conftest.s
25177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25179 (eval $ac_try) 2>&5
25180 ac_status=$?
25181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25182 test $ac_status = 0; }; }
25183 then
25184 gcc_cv_as_sparc_leon=yes
25185 else
25186 echo "configure: failed program was" >&5
25187 cat conftest.s >&5
25188 fi
25189 rm -f conftest.o conftest.s
25190 fi
25191 fi
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25193 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25194 if test $gcc_cv_as_sparc_leon = yes; then
25195
25196 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25197
25198 fi
25199 ;;
25200
25201 i[34567]86-*-* | x86_64-*-*)
25202 case $target_os in
25203 cygwin*)
25204 # Full C++ conformance when using a shared libstdc++-v3 requires some
25205 # support from the Cygwin DLL, which in more recent versions exports
25206 # wrappers to aid in interposing and redirecting operators new, delete,
25207 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25208 # are configuring for a version of Cygwin that exports the wrappers.
25209 if test x$host = x$target && test x$host_cpu = xi686; then
25210 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25211 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25212 gcc_ac_cygwin_dll_wrappers=yes
25213 else
25214 gcc_ac_cygwin_dll_wrappers=no
25215 fi
25216
25217 else
25218 # Can't check presence of libc functions during cross-compile, so
25219 # we just have to assume we're building for an up-to-date target.
25220 gcc_ac_cygwin_dll_wrappers=yes
25221 fi
25222
25223 cat >>confdefs.h <<_ACEOF
25224 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25225 _ACEOF
25226
25227 esac
25228 case $target_os in
25229 cygwin* | pe | mingw32*)
25230 # Recent binutils allows the three-operand form of ".comm" on PE. This
25231 # definition is used unconditionally to initialise the default state of
25232 # the target option variable that governs usage of the feature.
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25234 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25235 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25236 $as_echo_n "(cached) " >&6
25237 else
25238 gcc_cv_as_comm_has_align=no
25239 if test $in_tree_gas = yes; then
25240 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25241 then gcc_cv_as_comm_has_align=yes
25242 fi
25243 elif test x$gcc_cv_as != x; then
25244 $as_echo '.comm foo,1,32' > conftest.s
25245 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25247 (eval $ac_try) 2>&5
25248 ac_status=$?
25249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25250 test $ac_status = 0; }; }
25251 then
25252 gcc_cv_as_comm_has_align=yes
25253 else
25254 echo "configure: failed program was" >&5
25255 cat conftest.s >&5
25256 fi
25257 rm -f conftest.o conftest.s
25258 fi
25259 fi
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25261 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25262
25263
25264 cat >>confdefs.h <<_ACEOF
25265 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25266 _ACEOF
25267
25268 # Used for DWARF 2 in PE
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25270 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25271 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25272 $as_echo_n "(cached) " >&6
25273 else
25274 gcc_cv_as_ix86_pe_secrel32=no
25275 if test $in_tree_gas = yes; then
25276 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25277 then gcc_cv_as_ix86_pe_secrel32=yes
25278 fi
25279 elif test x$gcc_cv_as != x; then
25280 $as_echo '.text
25281 foo: nop
25282 .data
25283 .secrel32 foo' > conftest.s
25284 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25286 (eval $ac_try) 2>&5
25287 ac_status=$?
25288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25289 test $ac_status = 0; }; }
25290 then
25291 if test x$gcc_cv_ld != x \
25292 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25293 gcc_cv_as_ix86_pe_secrel32=yes
25294 fi
25295 rm -f conftest
25296 else
25297 echo "configure: failed program was" >&5
25298 cat conftest.s >&5
25299 fi
25300 rm -f conftest.o conftest.s
25301 fi
25302 fi
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25304 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25305 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25306
25307 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25308
25309 fi
25310 # Test if the assembler supports the extended form of the .section
25311 # directive that specifies section alignment. LTO support uses this,
25312 # but normally only after installation, so we warn but don't fail the
25313 # configure if LTO is enabled but the assembler does not support it.
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25315 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25316 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25317 $as_echo_n "(cached) " >&6
25318 else
25319 gcc_cv_as_section_has_align=no
25320 if test $in_tree_gas = yes; then
25321 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25322 then gcc_cv_as_section_has_align=yes
25323 fi
25324 elif test x$gcc_cv_as != x; then
25325 $as_echo '.section lto_test,"dr0"' > conftest.s
25326 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25328 (eval $ac_try) 2>&5
25329 ac_status=$?
25330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25331 test $ac_status = 0; }; }
25332 then
25333 gcc_cv_as_section_has_align=yes
25334 else
25335 echo "configure: failed program was" >&5
25336 cat conftest.s >&5
25337 fi
25338 rm -f conftest.o conftest.s
25339 fi
25340 fi
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25342 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25343
25344 if test x$gcc_cv_as_section_has_align != xyes; then
25345 case ",$enable_languages," in
25346 *,lto,*)
25347 { $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
25348 $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;}
25349 ;;
25350 esac
25351 fi
25352 ;;
25353 esac
25354
25355 # Test if the assembler supports the section flag 'e' for specifying
25356 # an excluded section.
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25358 $as_echo_n "checking assembler for .section with e... " >&6; }
25359 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25360 $as_echo_n "(cached) " >&6
25361 else
25362 gcc_cv_as_section_has_e=no
25363 if test $in_tree_gas = yes; then
25364 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25365 then gcc_cv_as_section_has_e=yes
25366 fi
25367 elif test x$gcc_cv_as != x; then
25368 $as_echo '.section foo1,"e"
25369 .byte 0,0,0,0' > conftest.s
25370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25372 (eval $ac_try) 2>&5
25373 ac_status=$?
25374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25375 test $ac_status = 0; }; }
25376 then
25377 gcc_cv_as_section_has_e=yes
25378 else
25379 echo "configure: failed program was" >&5
25380 cat conftest.s >&5
25381 fi
25382 rm -f conftest.o conftest.s
25383 fi
25384 fi
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25386 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25387
25388
25389 cat >>confdefs.h <<_ACEOF
25390 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25391 _ACEOF
25392
25393
25394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25395 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25396 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25397 $as_echo_n "(cached) " >&6
25398 else
25399 gcc_cv_as_ix86_filds=no
25400 if test x$gcc_cv_as != x; then
25401 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25402 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25404 (eval $ac_try) 2>&5
25405 ac_status=$?
25406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25407 test $ac_status = 0; }; }
25408 then
25409 gcc_cv_as_ix86_filds=yes
25410 else
25411 echo "configure: failed program was" >&5
25412 cat conftest.s >&5
25413 fi
25414 rm -f conftest.o conftest.s
25415 fi
25416 fi
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25418 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25419 if test $gcc_cv_as_ix86_filds = yes; then
25420
25421 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25422
25423 fi
25424
25425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25426 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25427 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25428 $as_echo_n "(cached) " >&6
25429 else
25430 gcc_cv_as_ix86_fildq=no
25431 if test x$gcc_cv_as != x; then
25432 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25433 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25435 (eval $ac_try) 2>&5
25436 ac_status=$?
25437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25438 test $ac_status = 0; }; }
25439 then
25440 gcc_cv_as_ix86_fildq=yes
25441 else
25442 echo "configure: failed program was" >&5
25443 cat conftest.s >&5
25444 fi
25445 rm -f conftest.o conftest.s
25446 fi
25447 fi
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25449 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25450 if test $gcc_cv_as_ix86_fildq = yes; then
25451
25452 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25453
25454 fi
25455
25456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25457 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25458 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25459 $as_echo_n "(cached) " >&6
25460 else
25461 gcc_cv_as_ix86_cmov_sun_syntax=no
25462 if test x$gcc_cv_as != x; then
25463 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25466 (eval $ac_try) 2>&5
25467 ac_status=$?
25468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25469 test $ac_status = 0; }; }
25470 then
25471 gcc_cv_as_ix86_cmov_sun_syntax=yes
25472 else
25473 echo "configure: failed program was" >&5
25474 cat conftest.s >&5
25475 fi
25476 rm -f conftest.o conftest.s
25477 fi
25478 fi
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25480 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25481 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25482
25483 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25484
25485 fi
25486
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25488 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25489 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25490 $as_echo_n "(cached) " >&6
25491 else
25492 gcc_cv_as_ix86_ffreep=no
25493 if test x$gcc_cv_as != x; then
25494 $as_echo 'ffreep %st(1)' > conftest.s
25495 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25497 (eval $ac_try) 2>&5
25498 ac_status=$?
25499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25500 test $ac_status = 0; }; }
25501 then
25502 gcc_cv_as_ix86_ffreep=yes
25503 else
25504 echo "configure: failed program was" >&5
25505 cat conftest.s >&5
25506 fi
25507 rm -f conftest.o conftest.s
25508 fi
25509 fi
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25511 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25512 if test $gcc_cv_as_ix86_ffreep = yes; then
25513
25514 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25515
25516 fi
25517
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25519 $as_echo_n "checking assembler for .quad directive... " >&6; }
25520 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25521 $as_echo_n "(cached) " >&6
25522 else
25523 gcc_cv_as_ix86_quad=no
25524 if test x$gcc_cv_as != x; then
25525 $as_echo '.quad 0' > conftest.s
25526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25528 (eval $ac_try) 2>&5
25529 ac_status=$?
25530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25531 test $ac_status = 0; }; }
25532 then
25533 gcc_cv_as_ix86_quad=yes
25534 else
25535 echo "configure: failed program was" >&5
25536 cat conftest.s >&5
25537 fi
25538 rm -f conftest.o conftest.s
25539 fi
25540 fi
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25542 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25543 if test $gcc_cv_as_ix86_quad = yes; then
25544
25545 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25546
25547 fi
25548
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25550 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25551 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25552 $as_echo_n "(cached) " >&6
25553 else
25554 gcc_cv_as_ix86_sahf=no
25555 if test x$gcc_cv_as != x; then
25556 $as_echo '.code64
25557 sahf' > conftest.s
25558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25560 (eval $ac_try) 2>&5
25561 ac_status=$?
25562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25563 test $ac_status = 0; }; }
25564 then
25565 gcc_cv_as_ix86_sahf=yes
25566 else
25567 echo "configure: failed program was" >&5
25568 cat conftest.s >&5
25569 fi
25570 rm -f conftest.o conftest.s
25571 fi
25572 fi
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25574 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25575 if test $gcc_cv_as_ix86_sahf = yes; then
25576
25577 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25578
25579 fi
25580
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25582 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25583 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25584 $as_echo_n "(cached) " >&6
25585 else
25586 gcc_cv_as_ix86_interunit_movq=no
25587 if test x$gcc_cv_as != x; then
25588 $as_echo '.code64
25589 movq %mm0, %rax
25590 movq %rax, %xmm0' > conftest.s
25591 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25593 (eval $ac_try) 2>&5
25594 ac_status=$?
25595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25596 test $ac_status = 0; }; }
25597 then
25598 gcc_cv_as_ix86_interunit_movq=yes
25599 else
25600 echo "configure: failed program was" >&5
25601 cat conftest.s >&5
25602 fi
25603 rm -f conftest.o conftest.s
25604 fi
25605 fi
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25607 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25608
25609
25610 cat >>confdefs.h <<_ACEOF
25611 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25612 _ACEOF
25613
25614
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25616 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25617 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25618 $as_echo_n "(cached) " >&6
25619 else
25620 gcc_cv_as_ix86_hle=no
25621 if test x$gcc_cv_as != x; then
25622 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25625 (eval $ac_try) 2>&5
25626 ac_status=$?
25627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25628 test $ac_status = 0; }; }
25629 then
25630 gcc_cv_as_ix86_hle=yes
25631 else
25632 echo "configure: failed program was" >&5
25633 cat conftest.s >&5
25634 fi
25635 rm -f conftest.o conftest.s
25636 fi
25637 fi
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25639 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25640 if test $gcc_cv_as_ix86_hle = yes; then
25641
25642 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25643
25644 fi
25645
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25647 $as_echo_n "checking assembler for swap suffix... " >&6; }
25648 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25649 $as_echo_n "(cached) " >&6
25650 else
25651 gcc_cv_as_ix86_swap=no
25652 if test x$gcc_cv_as != x; then
25653 $as_echo 'movl.s %esp, %ebp' > conftest.s
25654 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25656 (eval $ac_try) 2>&5
25657 ac_status=$?
25658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25659 test $ac_status = 0; }; }
25660 then
25661 gcc_cv_as_ix86_swap=yes
25662 else
25663 echo "configure: failed program was" >&5
25664 cat conftest.s >&5
25665 fi
25666 rm -f conftest.o conftest.s
25667 fi
25668 fi
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25670 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25671 if test $gcc_cv_as_ix86_swap = yes; then
25672
25673 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25674
25675 fi
25676
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25678 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25679 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25680 $as_echo_n "(cached) " >&6
25681 else
25682 gcc_cv_as_ix86_diff_sect_delta=no
25683 if test x$gcc_cv_as != x; then
25684 $as_echo '.section .rodata
25685 .L1:
25686 .long .L2-.L1
25687 .long .L3-.L1
25688 .text
25689 .L3: nop
25690 .L2: nop' > conftest.s
25691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25693 (eval $ac_try) 2>&5
25694 ac_status=$?
25695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25696 test $ac_status = 0; }; }
25697 then
25698 gcc_cv_as_ix86_diff_sect_delta=yes
25699 else
25700 echo "configure: failed program was" >&5
25701 cat conftest.s >&5
25702 fi
25703 rm -f conftest.o conftest.s
25704 fi
25705 fi
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25707 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25708 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25709
25710 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25711
25712 fi
25713
25714 # These two are used unconditionally by i386.[ch]; it is to be defined
25715 # to 1 if the feature is present, 0 otherwise.
25716 as_ix86_gotoff_in_data_opt=
25717 if test x$gas = xyes; then
25718 as_ix86_gotoff_in_data_opt="--32"
25719 fi
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25721 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25722 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25723 $as_echo_n "(cached) " >&6
25724 else
25725 gcc_cv_as_ix86_gotoff_in_data=no
25726 if test $in_tree_gas = yes; then
25727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25728 then gcc_cv_as_ix86_gotoff_in_data=yes
25729 fi
25730 elif test x$gcc_cv_as != x; then
25731 $as_echo ' .text
25732 .L0:
25733 nop
25734 .data
25735 .long .L0@GOTOFF' > conftest.s
25736 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25738 (eval $ac_try) 2>&5
25739 ac_status=$?
25740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25741 test $ac_status = 0; }; }
25742 then
25743 gcc_cv_as_ix86_gotoff_in_data=yes
25744 else
25745 echo "configure: failed program was" >&5
25746 cat conftest.s >&5
25747 fi
25748 rm -f conftest.o conftest.s
25749 fi
25750 fi
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25752 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25753
25754
25755 cat >>confdefs.h <<_ACEOF
25756 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25757 _ACEOF
25758
25759
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25761 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25762 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25763 $as_echo_n "(cached) " >&6
25764 else
25765 gcc_cv_as_ix86_rep_lock_prefix=no
25766 if test x$gcc_cv_as != x; then
25767 $as_echo 'rep movsl
25768 rep ret
25769 rep nop
25770 rep bsf %ecx, %eax
25771 rep bsr %ecx, %eax
25772 lock addl %edi, (%eax,%esi)
25773 lock orl $0, (%esp)' > conftest.s
25774 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25776 (eval $ac_try) 2>&5
25777 ac_status=$?
25778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25779 test $ac_status = 0; }; }
25780 then
25781 gcc_cv_as_ix86_rep_lock_prefix=yes
25782 else
25783 echo "configure: failed program was" >&5
25784 cat conftest.s >&5
25785 fi
25786 rm -f conftest.o conftest.s
25787 fi
25788 fi
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25790 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25791 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25792
25793 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25794
25795 fi
25796
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25798 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25799 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25800 $as_echo_n "(cached) " >&6
25801 else
25802 gcc_cv_as_ix86_ud2=no
25803 if test x$gcc_cv_as != x; then
25804 $as_echo 'ud2' > conftest.s
25805 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25807 (eval $ac_try) 2>&5
25808 ac_status=$?
25809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25810 test $ac_status = 0; }; }
25811 then
25812 gcc_cv_as_ix86_ud2=yes
25813 else
25814 echo "configure: failed program was" >&5
25815 cat conftest.s >&5
25816 fi
25817 rm -f conftest.o conftest.s
25818 fi
25819 fi
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25821 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25822 if test $gcc_cv_as_ix86_ud2 = yes; then
25823
25824 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25825
25826 fi
25827
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25829 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25830 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25831 $as_echo_n "(cached) " >&6
25832 else
25833 gcc_cv_as_ix86_tlsgdplt=no
25834 if test x$gcc_cv_as != x; then
25835 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25836 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25838 (eval $ac_try) 2>&5
25839 ac_status=$?
25840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25841 test $ac_status = 0; }; }
25842 then
25843 if test x$gcc_cv_ld != x \
25844 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25845 gcc_cv_as_ix86_tlsgdplt=yes
25846 fi
25847 rm -f conftest
25848 else
25849 echo "configure: failed program was" >&5
25850 cat conftest.s >&5
25851 fi
25852 rm -f conftest.o conftest.s
25853 fi
25854 fi
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25856 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25857 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25858
25859 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25860
25861 fi
25862
25863 conftest_s='
25864 .section .tdata,"aw'$tls_section_flag'",@progbits
25865 tls_ld:
25866 .section .text,"ax",@progbits
25867 call tls_ld@tlsldmplt'
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25869 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25870 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25871 $as_echo_n "(cached) " >&6
25872 else
25873 gcc_cv_as_ix86_tlsldmplt=no
25874 if test x$gcc_cv_as != x; then
25875 $as_echo "$conftest_s" > conftest.s
25876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25878 (eval $ac_try) 2>&5
25879 ac_status=$?
25880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25881 test $ac_status = 0; }; }
25882 then
25883 if test x$gcc_cv_ld != x \
25884 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25885 gcc_cv_as_ix86_tlsldmplt=yes
25886 fi
25887 rm -f conftest
25888 else
25889 echo "configure: failed program was" >&5
25890 cat conftest.s >&5
25891 fi
25892 rm -f conftest.o conftest.s
25893 fi
25894 fi
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25896 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25897
25898
25899 cat >>confdefs.h <<_ACEOF
25900 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25901 _ACEOF
25902
25903
25904 # Enforce 32-bit output with gas and gld.
25905 if test x$gas = xyes; then
25906 as_ix86_tls_ldm_opt="--32"
25907 fi
25908 if echo "$ld_ver" | grep GNU > /dev/null; then
25909 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25910 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25911 else
25912 ld_ix86_tls_ldm_opt="-melf_i386"
25913 fi
25914 fi
25915 conftest_s='
25916 .section .text,"ax",@progbits
25917 .globl _start
25918 .type _start, @function
25919 _start:
25920 leal value@tlsldm(%ebx), %eax
25921 call ___tls_get_addr@plt
25922
25923 .section .tdata,"aw'$tls_section_flag'",@progbits
25924 .type value, @object
25925 value:'
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25927 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25928 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25929 $as_echo_n "(cached) " >&6
25930 else
25931 gcc_cv_as_ix86_tlsldm=no
25932 if test x$gcc_cv_as != x; then
25933 $as_echo "$conftest_s" > conftest.s
25934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25936 (eval $ac_try) 2>&5
25937 ac_status=$?
25938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25939 test $ac_status = 0; }; }
25940 then
25941 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25942 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25943 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25944 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25945 gcc_cv_as_ix86_tlsldm=yes
25946 fi
25947 fi
25948 rm -f conftest
25949 else
25950 echo "configure: failed program was" >&5
25951 cat conftest.s >&5
25952 fi
25953 rm -f conftest.o conftest.s
25954 fi
25955 fi
25956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25957 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25958
25959
25960 cat >>confdefs.h <<_ACEOF
25961 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25962 _ACEOF
25963
25964
25965 ;;
25966
25967 ia64*-*-*)
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25969 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25970 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25971 $as_echo_n "(cached) " >&6
25972 else
25973 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25974 if test $in_tree_gas = yes; then
25975 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25976 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25977 fi
25978 elif test x$gcc_cv_as != x; then
25979 $as_echo ' .text
25980 addl r15 = @ltoffx(x#), gp
25981 ;;
25982 ld8.mov r16 = [r15], x#' > conftest.s
25983 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25985 (eval $ac_try) 2>&5
25986 ac_status=$?
25987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25988 test $ac_status = 0; }; }
25989 then
25990 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25991 else
25992 echo "configure: failed program was" >&5
25993 cat conftest.s >&5
25994 fi
25995 rm -f conftest.o conftest.s
25996 fi
25997 fi
25998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25999 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26000 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26001
26002 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26003
26004 fi
26005
26006 ;;
26007
26008 powerpc*-*-*)
26009
26010 case $target in
26011 *-*-darwin*)
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26013 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26014 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26015 $as_echo_n "(cached) " >&6
26016 else
26017 gcc_cv_as_machine_directive=no
26018 if test x$gcc_cv_as != x; then
26019 $as_echo ' .machine ppc7400' > conftest.s
26020 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26022 (eval $ac_try) 2>&5
26023 ac_status=$?
26024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26025 test $ac_status = 0; }; }
26026 then
26027 gcc_cv_as_machine_directive=yes
26028 else
26029 echo "configure: failed program was" >&5
26030 cat conftest.s >&5
26031 fi
26032 rm -f conftest.o conftest.s
26033 fi
26034 fi
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26036 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26037
26038 if test x$gcc_cv_as_machine_directive != xyes; then
26039 echo "*** This target requires an assembler supporting \".machine\"" >&2
26040 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26041 test x$build = x$target && exit 1
26042 fi
26043 ;;
26044 esac
26045
26046 case $target in
26047 *-*-aix*) conftest_s=' .machine "pwr5"
26048 .csect .text[PR]
26049 mfcr 3,128';;
26050 *-*-darwin*) conftest_s=' .text
26051 mfcr r3,128';;
26052 *) conftest_s=' .machine power4
26053 .text
26054 mfcr 3,128';;
26055 esac
26056
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26058 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26059 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26060 $as_echo_n "(cached) " >&6
26061 else
26062 gcc_cv_as_powerpc_mfcrf=no
26063 if test $in_tree_gas = yes; then
26064 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26065 then gcc_cv_as_powerpc_mfcrf=yes
26066 fi
26067 elif test x$gcc_cv_as != x; then
26068 $as_echo "$conftest_s" > conftest.s
26069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26071 (eval $ac_try) 2>&5
26072 ac_status=$?
26073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26074 test $ac_status = 0; }; }
26075 then
26076 gcc_cv_as_powerpc_mfcrf=yes
26077 else
26078 echo "configure: failed program was" >&5
26079 cat conftest.s >&5
26080 fi
26081 rm -f conftest.o conftest.s
26082 fi
26083 fi
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26085 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26086 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26087
26088 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26089
26090 fi
26091
26092 case $target in
26093 *-*-aix*) conftest_s=' .machine "pwr5"
26094 .csect .text[PR]
26095 popcntb 3,3';;
26096 *) conftest_s=' .machine power5
26097 .text
26098 popcntb 3,3';;
26099 esac
26100
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26102 $as_echo_n "checking assembler for popcntb support... " >&6; }
26103 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26104 $as_echo_n "(cached) " >&6
26105 else
26106 gcc_cv_as_powerpc_popcntb=no
26107 if test $in_tree_gas = yes; then
26108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26109 then gcc_cv_as_powerpc_popcntb=yes
26110 fi
26111 elif test x$gcc_cv_as != x; then
26112 $as_echo "$conftest_s" > conftest.s
26113 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26115 (eval $ac_try) 2>&5
26116 ac_status=$?
26117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26118 test $ac_status = 0; }; }
26119 then
26120 gcc_cv_as_powerpc_popcntb=yes
26121 else
26122 echo "configure: failed program was" >&5
26123 cat conftest.s >&5
26124 fi
26125 rm -f conftest.o conftest.s
26126 fi
26127 fi
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26129 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26130 if test $gcc_cv_as_powerpc_popcntb = yes; then
26131
26132 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26133
26134 fi
26135
26136 case $target in
26137 *-*-aix*) conftest_s=' .machine "pwr5x"
26138 .csect .text[PR]
26139 frin 1,1';;
26140 *) conftest_s=' .machine power5
26141 .text
26142 frin 1,1';;
26143 esac
26144
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26146 $as_echo_n "checking assembler for fp round support... " >&6; }
26147 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26148 $as_echo_n "(cached) " >&6
26149 else
26150 gcc_cv_as_powerpc_fprnd=no
26151 if test $in_tree_gas = yes; then
26152 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26153 then gcc_cv_as_powerpc_fprnd=yes
26154 fi
26155 elif test x$gcc_cv_as != x; then
26156 $as_echo "$conftest_s" > conftest.s
26157 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26159 (eval $ac_try) 2>&5
26160 ac_status=$?
26161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26162 test $ac_status = 0; }; }
26163 then
26164 gcc_cv_as_powerpc_fprnd=yes
26165 else
26166 echo "configure: failed program was" >&5
26167 cat conftest.s >&5
26168 fi
26169 rm -f conftest.o conftest.s
26170 fi
26171 fi
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26173 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26174 if test $gcc_cv_as_powerpc_fprnd = yes; then
26175
26176 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26177
26178 fi
26179
26180 case $target in
26181 *-*-aix*) conftest_s=' .machine "pwr6"
26182 .csect .text[PR]
26183 mffgpr 1,3';;
26184 *) conftest_s=' .machine power6
26185 .text
26186 mffgpr 1,3';;
26187 esac
26188
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26190 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26191 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26192 $as_echo_n "(cached) " >&6
26193 else
26194 gcc_cv_as_powerpc_mfpgpr=no
26195 if test $in_tree_gas = yes; then
26196 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26197 then gcc_cv_as_powerpc_mfpgpr=yes
26198 fi
26199 elif test x$gcc_cv_as != x; then
26200 $as_echo "$conftest_s" > conftest.s
26201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26203 (eval $ac_try) 2>&5
26204 ac_status=$?
26205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26206 test $ac_status = 0; }; }
26207 then
26208 gcc_cv_as_powerpc_mfpgpr=yes
26209 else
26210 echo "configure: failed program was" >&5
26211 cat conftest.s >&5
26212 fi
26213 rm -f conftest.o conftest.s
26214 fi
26215 fi
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26217 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26218 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26219
26220 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26221
26222 fi
26223
26224 case $target in
26225 *-*-aix*) conftest_s=' .csect .text[PR]
26226 LCF..0:
26227 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26228 *-*-darwin*)
26229 conftest_s=' .text
26230 LCF0:
26231 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26232 *) conftest_s=' .text
26233 .LCF0:
26234 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26235 esac
26236
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26238 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26239 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26240 $as_echo_n "(cached) " >&6
26241 else
26242 gcc_cv_as_powerpc_rel16=no
26243 if test $in_tree_gas = yes; then
26244 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26245 then gcc_cv_as_powerpc_rel16=yes
26246 fi
26247 elif test x$gcc_cv_as != x; then
26248 $as_echo "$conftest_s" > conftest.s
26249 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26251 (eval $ac_try) 2>&5
26252 ac_status=$?
26253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26254 test $ac_status = 0; }; }
26255 then
26256 gcc_cv_as_powerpc_rel16=yes
26257 else
26258 echo "configure: failed program was" >&5
26259 cat conftest.s >&5
26260 fi
26261 rm -f conftest.o conftest.s
26262 fi
26263 fi
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26265 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26266 if test $gcc_cv_as_powerpc_rel16 = yes; then
26267
26268 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26269
26270 fi
26271
26272 case $target in
26273 *-*-aix*) conftest_s=' .machine "pwr6"
26274 .csect .text[PR]
26275 cmpb 3,4,5';;
26276 *) conftest_s=' .machine power6
26277 .text
26278 cmpb 3,4,5';;
26279 esac
26280
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26282 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26283 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26284 $as_echo_n "(cached) " >&6
26285 else
26286 gcc_cv_as_powerpc_cmpb=no
26287 if test $in_tree_gas = yes; then
26288 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26289 then gcc_cv_as_powerpc_cmpb=yes
26290 fi
26291 elif test x$gcc_cv_as != x; then
26292 $as_echo "$conftest_s" > conftest.s
26293 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26295 (eval $ac_try) 2>&5
26296 ac_status=$?
26297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26298 test $ac_status = 0; }; }
26299 then
26300 gcc_cv_as_powerpc_cmpb=yes
26301 else
26302 echo "configure: failed program was" >&5
26303 cat conftest.s >&5
26304 fi
26305 rm -f conftest.o conftest.s
26306 fi
26307 fi
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26309 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26310 if test $gcc_cv_as_powerpc_cmpb = yes; then
26311
26312 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26313
26314 fi
26315
26316 case $target in
26317 *-*-aix*) conftest_s=' .machine "pwr6"
26318 .csect .text[PR]
26319 dadd 1,2,3';;
26320 *) conftest_s=' .machine power6
26321 .text
26322 dadd 1,2,3';;
26323 esac
26324
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26326 $as_echo_n "checking assembler for decimal float support... " >&6; }
26327 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26328 $as_echo_n "(cached) " >&6
26329 else
26330 gcc_cv_as_powerpc_dfp=no
26331 if test $in_tree_gas = yes; then
26332 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26333 then gcc_cv_as_powerpc_dfp=yes
26334 fi
26335 elif test x$gcc_cv_as != x; then
26336 $as_echo "$conftest_s" > conftest.s
26337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26339 (eval $ac_try) 2>&5
26340 ac_status=$?
26341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26342 test $ac_status = 0; }; }
26343 then
26344 gcc_cv_as_powerpc_dfp=yes
26345 else
26346 echo "configure: failed program was" >&5
26347 cat conftest.s >&5
26348 fi
26349 rm -f conftest.o conftest.s
26350 fi
26351 fi
26352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26353 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26354 if test $gcc_cv_as_powerpc_dfp = yes; then
26355
26356 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26357
26358 fi
26359
26360 case $target in
26361 *-*-aix*) conftest_s=' .machine "pwr7"
26362 .csect .text[PR]
26363 lxvd2x 1,2,3';;
26364 *) conftest_s=' .machine power7
26365 .text
26366 lxvd2x 1,2,3';;
26367 esac
26368
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26370 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26371 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26372 $as_echo_n "(cached) " >&6
26373 else
26374 gcc_cv_as_powerpc_vsx=no
26375 if test $in_tree_gas = yes; then
26376 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26377 then gcc_cv_as_powerpc_vsx=yes
26378 fi
26379 elif test x$gcc_cv_as != x; then
26380 $as_echo "$conftest_s" > conftest.s
26381 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26383 (eval $ac_try) 2>&5
26384 ac_status=$?
26385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26386 test $ac_status = 0; }; }
26387 then
26388 gcc_cv_as_powerpc_vsx=yes
26389 else
26390 echo "configure: failed program was" >&5
26391 cat conftest.s >&5
26392 fi
26393 rm -f conftest.o conftest.s
26394 fi
26395 fi
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26397 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26398 if test $gcc_cv_as_powerpc_vsx = yes; then
26399
26400 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26401
26402 fi
26403
26404 case $target in
26405 *-*-aix*) conftest_s=' .machine "pwr7"
26406 .csect .text[PR]
26407 popcntd 3,3';;
26408 *) conftest_s=' .machine power7
26409 .text
26410 popcntd 3,3';;
26411 esac
26412
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26414 $as_echo_n "checking assembler for popcntd support... " >&6; }
26415 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26416 $as_echo_n "(cached) " >&6
26417 else
26418 gcc_cv_as_powerpc_popcntd=no
26419 if test $in_tree_gas = yes; then
26420 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26421 then gcc_cv_as_powerpc_popcntd=yes
26422 fi
26423 elif test x$gcc_cv_as != x; then
26424 $as_echo "$conftest_s" > conftest.s
26425 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26427 (eval $ac_try) 2>&5
26428 ac_status=$?
26429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26430 test $ac_status = 0; }; }
26431 then
26432 gcc_cv_as_powerpc_popcntd=yes
26433 else
26434 echo "configure: failed program was" >&5
26435 cat conftest.s >&5
26436 fi
26437 rm -f conftest.o conftest.s
26438 fi
26439 fi
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26441 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26442 if test $gcc_cv_as_powerpc_popcntd = yes; then
26443
26444 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26445
26446 fi
26447
26448 case $target in
26449 *-*-aix*) conftest_s=' .machine "pwr8"
26450 .csect .text[PR]';;
26451 *) conftest_s=' .machine power8
26452 .text';;
26453 esac
26454
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26456 $as_echo_n "checking assembler for power8 support... " >&6; }
26457 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26458 $as_echo_n "(cached) " >&6
26459 else
26460 gcc_cv_as_powerpc_power8=no
26461 if test $in_tree_gas = yes; then
26462 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26463 then gcc_cv_as_powerpc_power8=yes
26464 fi
26465 elif test x$gcc_cv_as != x; then
26466 $as_echo "$conftest_s" > conftest.s
26467 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26469 (eval $ac_try) 2>&5
26470 ac_status=$?
26471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26472 test $ac_status = 0; }; }
26473 then
26474 gcc_cv_as_powerpc_power8=yes
26475 else
26476 echo "configure: failed program was" >&5
26477 cat conftest.s >&5
26478 fi
26479 rm -f conftest.o conftest.s
26480 fi
26481 fi
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26483 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26484 if test $gcc_cv_as_powerpc_power8 = yes; then
26485
26486 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26487
26488 fi
26489
26490 case $target in
26491 *-*-aix*) conftest_s=' .machine "pwr9"
26492 .csect .text[PR]';;
26493 *) conftest_s=' .machine power9
26494 .text';;
26495 esac
26496
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26498 $as_echo_n "checking assembler for power9 support... " >&6; }
26499 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26500 $as_echo_n "(cached) " >&6
26501 else
26502 gcc_cv_as_powerpc_power9=no
26503 if test $in_tree_gas = yes; then
26504 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26505 then gcc_cv_as_powerpc_power9=yes
26506 fi
26507 elif test x$gcc_cv_as != x; then
26508 $as_echo "$conftest_s" > conftest.s
26509 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26511 (eval $ac_try) 2>&5
26512 ac_status=$?
26513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26514 test $ac_status = 0; }; }
26515 then
26516 gcc_cv_as_powerpc_power9=yes
26517 else
26518 echo "configure: failed program was" >&5
26519 cat conftest.s >&5
26520 fi
26521 rm -f conftest.o conftest.s
26522 fi
26523 fi
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26525 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26526 if test $gcc_cv_as_powerpc_power9 = yes; then
26527
26528 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26529
26530 fi
26531
26532 case $target in
26533 *-*-aix*) conftest_s=' .csect .text[PR]
26534 lwsync';;
26535 *) conftest_s=' .text
26536 lwsync';;
26537 esac
26538
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26540 $as_echo_n "checking assembler for lwsync support... " >&6; }
26541 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26542 $as_echo_n "(cached) " >&6
26543 else
26544 gcc_cv_as_powerpc_lwsync=no
26545 if test $in_tree_gas = yes; then
26546 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26547 then gcc_cv_as_powerpc_lwsync=yes
26548 fi
26549 elif test x$gcc_cv_as != x; then
26550 $as_echo "$conftest_s" > conftest.s
26551 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26553 (eval $ac_try) 2>&5
26554 ac_status=$?
26555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26556 test $ac_status = 0; }; }
26557 then
26558 gcc_cv_as_powerpc_lwsync=yes
26559 else
26560 echo "configure: failed program was" >&5
26561 cat conftest.s >&5
26562 fi
26563 rm -f conftest.o conftest.s
26564 fi
26565 fi
26566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26567 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26568 if test $gcc_cv_as_powerpc_lwsync = yes; then
26569
26570 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26571
26572 fi
26573
26574 case $target in
26575 *-*-aix*) conftest_s=' .machine "476"
26576 .csect .text[PR]
26577 dci 0';;
26578 *) conftest_s=' .machine "476"
26579 .text
26580 dci 0';;
26581 esac
26582
26583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26584 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26585 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26586 $as_echo_n "(cached) " >&6
26587 else
26588 gcc_cv_as_powerpc_dci=no
26589 if test $in_tree_gas = yes; then
26590 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26591 then gcc_cv_as_powerpc_dci=yes
26592 fi
26593 elif test x$gcc_cv_as != x; then
26594 $as_echo "$conftest_s" > conftest.s
26595 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26597 (eval $ac_try) 2>&5
26598 ac_status=$?
26599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26600 test $ac_status = 0; }; }
26601 then
26602 gcc_cv_as_powerpc_dci=yes
26603 else
26604 echo "configure: failed program was" >&5
26605 cat conftest.s >&5
26606 fi
26607 rm -f conftest.o conftest.s
26608 fi
26609 fi
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26611 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26612 if test $gcc_cv_as_powerpc_dci = yes; then
26613
26614 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26615
26616 fi
26617
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26619 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26620 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26621 $as_echo_n "(cached) " >&6
26622 else
26623 gcc_cv_as_powerpc_gnu_attribute=no
26624 if test $in_tree_gas = yes; then
26625 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26626 then gcc_cv_as_powerpc_gnu_attribute=yes
26627 fi
26628 elif test x$gcc_cv_as != x; then
26629 $as_echo '.gnu_attribute 4,1' > conftest.s
26630 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26632 (eval $ac_try) 2>&5
26633 ac_status=$?
26634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26635 test $ac_status = 0; }; }
26636 then
26637 gcc_cv_as_powerpc_gnu_attribute=yes
26638 else
26639 echo "configure: failed program was" >&5
26640 cat conftest.s >&5
26641 fi
26642 rm -f conftest.o conftest.s
26643 fi
26644 fi
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26646 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26647 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26648
26649 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26650
26651 fi
26652
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26654 $as_echo_n "checking assembler for tls marker support... " >&6; }
26655 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26656 $as_echo_n "(cached) " >&6
26657 else
26658 gcc_cv_as_powerpc_tls_markers=no
26659 if test $in_tree_gas = yes; then
26660 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26661 then gcc_cv_as_powerpc_tls_markers=yes
26662 fi
26663 elif test x$gcc_cv_as != x; then
26664 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26665 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26667 (eval $ac_try) 2>&5
26668 ac_status=$?
26669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26670 test $ac_status = 0; }; }
26671 then
26672 gcc_cv_as_powerpc_tls_markers=yes
26673 else
26674 echo "configure: failed program was" >&5
26675 cat conftest.s >&5
26676 fi
26677 rm -f conftest.o conftest.s
26678 fi
26679 fi
26680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26681 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26682 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26683
26684 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26685
26686 fi
26687
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26689 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26690 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26691 $as_echo_n "(cached) " >&6
26692 else
26693 gcc_cv_as_powerpc_entry_markers=no
26694 if test $in_tree_gas = yes; then
26695 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26696 then gcc_cv_as_powerpc_entry_markers=yes
26697 fi
26698 elif test x$gcc_cv_as != x; then
26699 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26700 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26702 (eval $ac_try) 2>&5
26703 ac_status=$?
26704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26705 test $ac_status = 0; }; }
26706 then
26707 gcc_cv_as_powerpc_entry_markers=yes
26708 else
26709 echo "configure: failed program was" >&5
26710 cat conftest.s >&5
26711 fi
26712 rm -f conftest.o conftest.s
26713 fi
26714 fi
26715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26716 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26717 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26718
26719 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26720
26721 fi
26722
26723 case $target in
26724 *-*-aix*)
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26726 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26727 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26728 $as_echo_n "(cached) " >&6
26729 else
26730 gcc_cv_as_aix_ref=no
26731 if test $in_tree_gas = yes; then
26732 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26733 then gcc_cv_as_aix_ref=yes
26734 fi
26735 elif test x$gcc_cv_as != x; then
26736 $as_echo ' .csect stuff[rw]
26737 stuff:
26738 .long 1
26739 .extern sym
26740 .ref sym
26741 ' > conftest.s
26742 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26744 (eval $ac_try) 2>&5
26745 ac_status=$?
26746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26747 test $ac_status = 0; }; }
26748 then
26749 gcc_cv_as_aix_ref=yes
26750 else
26751 echo "configure: failed program was" >&5
26752 cat conftest.s >&5
26753 fi
26754 rm -f conftest.o conftest.s
26755 fi
26756 fi
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26758 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26759 if test $gcc_cv_as_aix_ref = yes; then
26760
26761 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26762
26763 fi
26764
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26766 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26767 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26768 $as_echo_n "(cached) " >&6
26769 else
26770 gcc_cv_as_aix_dwloc=no
26771 if test $in_tree_gas = yes; then
26772 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26773 then gcc_cv_as_aix_dwloc=yes
26774 fi
26775 elif test x$gcc_cv_as != x; then
26776 $as_echo ' .dwsect 0xA0000
26777 Lframe..0:
26778 .vbyte 4,Lframe..0:
26779 ' > conftest.s
26780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26782 (eval $ac_try) 2>&5
26783 ac_status=$?
26784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26785 test $ac_status = 0; }; }
26786 then
26787 gcc_cv_as_aix_dwloc=yes
26788 else
26789 echo "configure: failed program was" >&5
26790 cat conftest.s >&5
26791 fi
26792 rm -f conftest.o conftest.s
26793 fi
26794 fi
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26796 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26797 if test $gcc_cv_as_aix_dwloc = yes; then
26798
26799 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26800
26801 fi
26802 ;;
26803 esac
26804 ;;
26805
26806 mips*-*-*)
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26808 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26809 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26810 $as_echo_n "(cached) " >&6
26811 else
26812 gcc_cv_as_mips_explicit_relocs=no
26813 if test $in_tree_gas = yes; then
26814 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26815 then gcc_cv_as_mips_explicit_relocs=yes
26816 fi
26817 elif test x$gcc_cv_as != x; then
26818 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26821 (eval $ac_try) 2>&5
26822 ac_status=$?
26823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26824 test $ac_status = 0; }; }
26825 then
26826 gcc_cv_as_mips_explicit_relocs=yes
26827 else
26828 echo "configure: failed program was" >&5
26829 cat conftest.s >&5
26830 fi
26831 rm -f conftest.o conftest.s
26832 fi
26833 fi
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26835 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26836 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26837 if test x$target_cpu_default = x
26838 then target_cpu_default=MASK_EXPLICIT_RELOCS
26839 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26840 fi
26841 fi
26842
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26844 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26845 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26846 $as_echo_n "(cached) " >&6
26847 else
26848 gcc_cv_as_mips_no_shared=no
26849 if test $in_tree_gas = yes; then
26850 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26851 then gcc_cv_as_mips_no_shared=yes
26852 fi
26853 elif test x$gcc_cv_as != x; then
26854 $as_echo 'nop' > conftest.s
26855 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26857 (eval $ac_try) 2>&5
26858 ac_status=$?
26859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26860 test $ac_status = 0; }; }
26861 then
26862 gcc_cv_as_mips_no_shared=yes
26863 else
26864 echo "configure: failed program was" >&5
26865 cat conftest.s >&5
26866 fi
26867 rm -f conftest.o conftest.s
26868 fi
26869 fi
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26871 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26872 if test $gcc_cv_as_mips_no_shared = yes; then
26873
26874 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26875
26876 fi
26877
26878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26879 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26880 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26881 $as_echo_n "(cached) " >&6
26882 else
26883 gcc_cv_as_mips_gnu_attribute=no
26884 if test $in_tree_gas = yes; then
26885 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26886 then gcc_cv_as_mips_gnu_attribute=yes
26887 fi
26888 elif test x$gcc_cv_as != x; then
26889 $as_echo '.gnu_attribute 4,1' > conftest.s
26890 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26892 (eval $ac_try) 2>&5
26893 ac_status=$?
26894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26895 test $ac_status = 0; }; }
26896 then
26897 gcc_cv_as_mips_gnu_attribute=yes
26898 else
26899 echo "configure: failed program was" >&5
26900 cat conftest.s >&5
26901 fi
26902 rm -f conftest.o conftest.s
26903 fi
26904 fi
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26906 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26907 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26908
26909 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26910
26911 fi
26912
26913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26914 $as_echo_n "checking assembler for .module support... " >&6; }
26915 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26916 $as_echo_n "(cached) " >&6
26917 else
26918 gcc_cv_as_mips_dot_module=no
26919 if test x$gcc_cv_as != x; then
26920 $as_echo '.module mips2
26921 .module fp=xx' > conftest.s
26922 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26924 (eval $ac_try) 2>&5
26925 ac_status=$?
26926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26927 test $ac_status = 0; }; }
26928 then
26929 gcc_cv_as_mips_dot_module=yes
26930 else
26931 echo "configure: failed program was" >&5
26932 cat conftest.s >&5
26933 fi
26934 rm -f conftest.o conftest.s
26935 fi
26936 fi
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26938 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26939 if test $gcc_cv_as_mips_dot_module = yes; then
26940
26941 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26942
26943 fi
26944 if test x$gcc_cv_as_mips_dot_module = xno \
26945 && test x$with_fp_32 != x; then
26946 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26947 fi
26948
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26950 $as_echo_n "checking assembler for .micromips support... " >&6; }
26951 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26952 $as_echo_n "(cached) " >&6
26953 else
26954 gcc_cv_as_micromips_support=no
26955 if test x$gcc_cv_as != x; then
26956 $as_echo '.set micromips' > conftest.s
26957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26959 (eval $ac_try) 2>&5
26960 ac_status=$?
26961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26962 test $ac_status = 0; }; }
26963 then
26964 gcc_cv_as_micromips_support=yes
26965 else
26966 echo "configure: failed program was" >&5
26967 cat conftest.s >&5
26968 fi
26969 rm -f conftest.o conftest.s
26970 fi
26971 fi
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26973 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26974 if test $gcc_cv_as_micromips_support = yes; then
26975
26976 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26977
26978 fi
26979
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26981 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26982 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26983 $as_echo_n "(cached) " >&6
26984 else
26985 gcc_cv_as_mips_dtprelword=no
26986 if test $in_tree_gas = yes; then
26987 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26988 then gcc_cv_as_mips_dtprelword=yes
26989 fi
26990 elif test x$gcc_cv_as != x; then
26991 $as_echo '.section .tdata,"awT",@progbits
26992 x:
26993 .word 2
26994 .text
26995 .dtprelword x+0x8000' > conftest.s
26996 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26998 (eval $ac_try) 2>&5
26999 ac_status=$?
27000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27001 test $ac_status = 0; }; }
27002 then
27003 gcc_cv_as_mips_dtprelword=yes
27004 else
27005 echo "configure: failed program was" >&5
27006 cat conftest.s >&5
27007 fi
27008 rm -f conftest.o conftest.s
27009 fi
27010 fi
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27012 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27013 if test $gcc_cv_as_mips_dtprelword = yes; then
27014
27015 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27016
27017 fi
27018
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27020 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27021 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27022 $as_echo_n "(cached) " >&6
27023 else
27024 gcc_cv_as_mips_dspr1_mult=no
27025 if test x$gcc_cv_as != x; then
27026 $as_echo ' .set mips32r2
27027 .set nodspr2
27028 .set dsp
27029 madd $ac3,$4,$5
27030 maddu $ac3,$4,$5
27031 msub $ac3,$4,$5
27032 msubu $ac3,$4,$5
27033 mult $ac3,$4,$5
27034 multu $ac3,$4,$5' > conftest.s
27035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27037 (eval $ac_try) 2>&5
27038 ac_status=$?
27039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27040 test $ac_status = 0; }; }
27041 then
27042 gcc_cv_as_mips_dspr1_mult=yes
27043 else
27044 echo "configure: failed program was" >&5
27045 cat conftest.s >&5
27046 fi
27047 rm -f conftest.o conftest.s
27048 fi
27049 fi
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27051 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27052 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27053
27054 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27055
27056 fi
27057
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27059 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27060 gcc_cv_as_ld_jalr_reloc=no
27061 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27062 if test $in_tree_ld = yes ; then
27063 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 \
27064 && test $in_tree_ld_is_elf = yes; then
27065 gcc_cv_as_ld_jalr_reloc=yes
27066 fi
27067 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27068 echo ' .ent x' > conftest.s
27069 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27070 echo ' lw $25,%call16(y)($28)' >> conftest.s
27071 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27072 echo '1: jalr $25' >> conftest.s
27073 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27074 echo '1: jalr $25' >> conftest.s
27075 echo ' .end x' >> conftest.s
27076 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27077 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27078 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27079 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27080 gcc_cv_as_ld_jalr_reloc=yes
27081 fi
27082 fi
27083 rm -f conftest.*
27084 fi
27085 fi
27086 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27087 if test x$target_cpu_default = x; then
27088 target_cpu_default=MASK_RELAX_PIC_CALLS
27089 else
27090 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27091 fi
27092 fi
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27094 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27095
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27097 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27098 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27099 $as_echo_n "(cached) " >&6
27100 else
27101 gcc_cv_ld_mips_personality_relaxation=no
27102 if test $in_tree_ld = yes ; then
27103 if test "$gcc_cv_gld_major_version" -eq 2 \
27104 -a "$gcc_cv_gld_minor_version" -ge 21 \
27105 -o "$gcc_cv_gld_major_version" -gt 2; then
27106 gcc_cv_ld_mips_personality_relaxation=yes
27107 fi
27108 elif test x$gcc_cv_as != x \
27109 -a x$gcc_cv_ld != x \
27110 -a x$gcc_cv_readelf != x ; then
27111 cat > conftest.s <<EOF
27112 .cfi_startproc
27113 .cfi_personality 0x80,indirect_ptr
27114 .ent test
27115 test:
27116 nop
27117 .end test
27118 .cfi_endproc
27119
27120 .section .data,"aw",@progbits
27121 indirect_ptr:
27122 .dc.a personality
27123 EOF
27124 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27125 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27126 if $gcc_cv_readelf -d conftest 2>&1 \
27127 | grep TEXTREL > /dev/null 2>&1; then
27128 :
27129 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27130 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27131 :
27132 else
27133 gcc_cv_ld_mips_personality_relaxation=yes
27134 fi
27135 fi
27136 fi
27137 rm -f conftest.s conftest.o conftest
27138 fi
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27140 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27141 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27142
27143 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27144
27145 fi
27146
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27148 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27149 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27150 $as_echo_n "(cached) " >&6
27151 else
27152 gcc_cv_as_mips_nan=no
27153 if test x$gcc_cv_as != x; then
27154 $as_echo '' > conftest.s
27155 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27157 (eval $ac_try) 2>&5
27158 ac_status=$?
27159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27160 test $ac_status = 0; }; }
27161 then
27162 gcc_cv_as_mips_nan=yes
27163 else
27164 echo "configure: failed program was" >&5
27165 cat conftest.s >&5
27166 fi
27167 rm -f conftest.o conftest.s
27168 fi
27169 fi
27170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27171 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27172 if test $gcc_cv_as_mips_nan = yes; then
27173
27174 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27175
27176 fi
27177 if test x$gcc_cv_as_mips_nan = xno \
27178 && test x$with_nan != x; then
27179 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27180 fi
27181 ;;
27182 s390*-*-*)
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27184 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27185 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27186 $as_echo_n "(cached) " >&6
27187 else
27188 gcc_cv_as_s390_gnu_attribute=no
27189 if test $in_tree_gas = yes; then
27190 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27191 then gcc_cv_as_s390_gnu_attribute=yes
27192 fi
27193 elif test x$gcc_cv_as != x; then
27194 $as_echo '.gnu_attribute 8,1' > conftest.s
27195 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27197 (eval $ac_try) 2>&5
27198 ac_status=$?
27199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27200 test $ac_status = 0; }; }
27201 then
27202 gcc_cv_as_s390_gnu_attribute=yes
27203 else
27204 echo "configure: failed program was" >&5
27205 cat conftest.s >&5
27206 fi
27207 rm -f conftest.o conftest.s
27208 fi
27209 fi
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27211 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27212 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27213
27214 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27215
27216 fi
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27218 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27219 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27220 $as_echo_n "(cached) " >&6
27221 else
27222 gcc_cv_as_s390_machine_machinemode=no
27223 if test $in_tree_gas = yes; then
27224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27225 then gcc_cv_as_s390_machine_machinemode=yes
27226 fi
27227 elif test x$gcc_cv_as != x; then
27228 $as_echo ' .machinemode push
27229 .machinemode pop
27230 .machine push
27231 .machine pop' > conftest.s
27232 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_s390_machine_machinemode=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_s390_machine_machinemode" >&5
27248 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27249 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27250
27251 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27252
27253 fi
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27255 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27256 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27257 $as_echo_n "(cached) " >&6
27258 else
27259 gcc_cv_as_s390_architecture_modifiers=no
27260 if test $in_tree_gas = yes; then
27261 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27262 then gcc_cv_as_s390_architecture_modifiers=yes
27263 fi
27264 elif test x$gcc_cv_as != x; then
27265 $as_echo ' .machine z13+vx ' > conftest.s
27266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27268 (eval $ac_try) 2>&5
27269 ac_status=$?
27270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27271 test $ac_status = 0; }; }
27272 then
27273 gcc_cv_as_s390_architecture_modifiers=yes
27274 else
27275 echo "configure: failed program was" >&5
27276 cat conftest.s >&5
27277 fi
27278 rm -f conftest.o conftest.s
27279 fi
27280 fi
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27282 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27283 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27284
27285 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27286
27287 fi
27288 ;;
27289 esac
27290
27291 # Mips and HP-UX need the GNU assembler.
27292 # Linux on IA64 might be able to use the Intel assembler.
27293
27294 case "$target" in
27295 mips*-*-* | *-*-hpux* )
27296 if test x$gas_flag = xyes \
27297 || test x"$host" != x"$build" \
27298 || test ! -x "$gcc_cv_as" \
27299 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27300 :
27301 else
27302 echo "*** This configuration requires the GNU assembler" >&2
27303 exit 1
27304 fi
27305 ;;
27306 esac
27307
27308 # ??? Not all targets support dwarf2 debug_line, even within a version
27309 # of gas. Moreover, we need to emit a valid instruction to trigger any
27310 # info to the output file. So, as supported targets are added to gas 2.11,
27311 # add some instruction here to (also) show we expect this might work.
27312 # ??? Once 2.11 is released, probably need to add first known working
27313 # version to the per-target configury.
27314 case "$cpu_type" in
27315 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27316 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27317 | visium | xstormy16 | xtensa)
27318 insn="nop"
27319 ;;
27320 ia64 | s390)
27321 insn="nop 0"
27322 ;;
27323 mmix)
27324 insn="swym 0"
27325 ;;
27326 esac
27327 if test x"$insn" != x; then
27328 conftest_s="\
27329 .file 1 \"conftest.s\"
27330 .loc 1 3 0
27331 $insn"
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27333 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27334 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27335 $as_echo_n "(cached) " >&6
27336 else
27337 gcc_cv_as_dwarf2_debug_line=no
27338 if test $in_tree_gas = yes; then
27339 if test $in_tree_gas_is_elf = yes \
27340 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27341 then gcc_cv_as_dwarf2_debug_line=yes
27342 fi
27343 elif test x$gcc_cv_as != x; then
27344 $as_echo "$conftest_s" > conftest.s
27345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27347 (eval $ac_try) 2>&5
27348 ac_status=$?
27349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27350 test $ac_status = 0; }; }
27351 then
27352 if test x$gcc_cv_objdump != x \
27353 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27354 | grep debug_line > /dev/null 2>&1; then
27355 gcc_cv_as_dwarf2_debug_line=yes
27356 fi
27357 else
27358 echo "configure: failed program was" >&5
27359 cat conftest.s >&5
27360 fi
27361 rm -f conftest.o conftest.s
27362 fi
27363 fi
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27365 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27366
27367
27368 # The .debug_line file table must be in the exact order that
27369 # we specified the files, since these indices are also used
27370 # by DW_AT_decl_file. Approximate this test by testing if
27371 # the assembler bitches if the same index is assigned twice.
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27373 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27374 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27375 $as_echo_n "(cached) " >&6
27376 else
27377 gcc_cv_as_dwarf2_file_buggy=no
27378 if test x$gcc_cv_as != x; then
27379 $as_echo ' .file 1 "foo.s"
27380 .file 1 "bar.s"' > conftest.s
27381 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27383 (eval $ac_try) 2>&5
27384 ac_status=$?
27385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27386 test $ac_status = 0; }; }
27387 then
27388 gcc_cv_as_dwarf2_file_buggy=yes
27389 else
27390 echo "configure: failed program was" >&5
27391 cat conftest.s >&5
27392 fi
27393 rm -f conftest.o conftest.s
27394 fi
27395 fi
27396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27397 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27398
27399
27400 if test $gcc_cv_as_dwarf2_debug_line = yes \
27401 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27402
27403 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27404
27405 fi
27406
27407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27408 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27409 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27410 $as_echo_n "(cached) " >&6
27411 else
27412 gcc_cv_as_gdwarf2_flag=no
27413 if test $in_tree_gas = yes; then
27414 if test $in_tree_gas_is_elf = yes \
27415 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27416 then gcc_cv_as_gdwarf2_flag=yes
27417 fi
27418 elif test x$gcc_cv_as != x; then
27419 $as_echo "$insn" > conftest.s
27420 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27422 (eval $ac_try) 2>&5
27423 ac_status=$?
27424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27425 test $ac_status = 0; }; }
27426 then
27427 gcc_cv_as_gdwarf2_flag=yes
27428 else
27429 echo "configure: failed program was" >&5
27430 cat conftest.s >&5
27431 fi
27432 rm -f conftest.o conftest.s
27433 fi
27434 fi
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27436 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27437 if test $gcc_cv_as_gdwarf2_flag = yes; then
27438
27439 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27440
27441 fi
27442
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27444 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27445 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27446 $as_echo_n "(cached) " >&6
27447 else
27448 gcc_cv_as_gstabs_flag=no
27449 if test $in_tree_gas = yes; then
27450 if test $in_tree_gas_is_elf = yes \
27451 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27452 then gcc_cv_as_gstabs_flag=yes
27453 fi
27454 elif test x$gcc_cv_as != x; then
27455 $as_echo "$insn" > conftest.s
27456 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27458 (eval $ac_try) 2>&5
27459 ac_status=$?
27460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27461 test $ac_status = 0; }; }
27462 then
27463 gcc_cv_as_gstabs_flag=yes
27464 else
27465 echo "configure: failed program was" >&5
27466 cat conftest.s >&5
27467 fi
27468 rm -f conftest.o conftest.s
27469 fi
27470 fi
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27472 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27473 if test $gcc_cv_as_gstabs_flag = yes; then
27474
27475 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27476
27477 fi
27478
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27480 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27481 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27482 $as_echo_n "(cached) " >&6
27483 else
27484 gcc_cv_as_debug_prefix_map_flag=no
27485 if test $in_tree_gas = yes; then
27486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27487 then gcc_cv_as_debug_prefix_map_flag=yes
27488 fi
27489 elif test x$gcc_cv_as != x; then
27490 $as_echo "$insn" > conftest.s
27491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27493 (eval $ac_try) 2>&5
27494 ac_status=$?
27495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27496 test $ac_status = 0; }; }
27497 then
27498 gcc_cv_as_debug_prefix_map_flag=yes
27499 else
27500 echo "configure: failed program was" >&5
27501 cat conftest.s >&5
27502 fi
27503 rm -f conftest.o conftest.s
27504 fi
27505 fi
27506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27507 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27508 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27509
27510 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27511
27512 fi
27513 fi
27514
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27516 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27517 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27518 $as_echo_n "(cached) " >&6
27519 else
27520 gcc_cv_as_compress_debug=no
27521 if test x$gcc_cv_as != x; then
27522 $as_echo '' > conftest.s
27523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27525 (eval $ac_try) 2>&5
27526 ac_status=$?
27527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27528 test $ac_status = 0; }; }
27529 then
27530 # gas compiled without zlib cannot compress debug sections and warns
27531 # about it, but still exits successfully. So check for this, too.
27532 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27533 then
27534 gcc_cv_as_compress_debug=0
27535 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27536 then
27537 gcc_cv_as_compress_debug=1
27538 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27539 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27540 else
27541 gcc_cv_as_compress_debug=0
27542 # FIXME: Future gas versions will support ELF gABI style via
27543 # --compress-debug-sections[=type].
27544 fi
27545 else
27546 echo "configure: failed program was" >&5
27547 cat conftest.s >&5
27548 fi
27549 rm -f conftest.o conftest.s
27550 fi
27551 fi
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27553 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27554
27555
27556 cat >>confdefs.h <<_ACEOF
27557 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27558 _ACEOF
27559
27560
27561 cat >>confdefs.h <<_ACEOF
27562 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27563 _ACEOF
27564
27565
27566 cat >>confdefs.h <<_ACEOF
27567 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27568 _ACEOF
27569
27570
27571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27572 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27573 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27574 $as_echo_n "(cached) " >&6
27575 else
27576 gcc_cv_as_lcomm_with_alignment=no
27577 if test x$gcc_cv_as != x; then
27578 $as_echo '.lcomm bar,4,16' > conftest.s
27579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27581 (eval $ac_try) 2>&5
27582 ac_status=$?
27583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27584 test $ac_status = 0; }; }
27585 then
27586 gcc_cv_as_lcomm_with_alignment=yes
27587 else
27588 echo "configure: failed program was" >&5
27589 cat conftest.s >&5
27590 fi
27591 rm -f conftest.o conftest.s
27592 fi
27593 fi
27594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27595 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27596 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27597
27598 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27599
27600 fi
27601
27602 if test x$with_sysroot = x && test x$host = x$target \
27603 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27604 && test "$prefix" != "NONE"; then
27605
27606 cat >>confdefs.h <<_ACEOF
27607 #define PREFIX_INCLUDE_DIR "$prefix/include"
27608 _ACEOF
27609
27610 fi
27611
27612 # Determine the version of glibc, if any, used on the target.
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27614 $as_echo_n "checking for target glibc version... " >&6; }
27615
27616 # Check whether --with-glibc-version was given.
27617 if test "${with_glibc_version+set}" = set; then :
27618 withval=$with_glibc_version;
27619 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27620 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27621 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27622 else
27623 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27624 fi
27625 else
27626
27627 glibc_version_major=0
27628 glibc_version_minor=0
27629 if test -f $target_header_dir/features.h \
27630 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27631 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27632 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27633 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27634 fi
27635 fi
27636
27637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27638 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27639
27640 cat >>confdefs.h <<_ACEOF
27641 #define TARGET_GLIBC_MAJOR $glibc_version_major
27642 _ACEOF
27643
27644
27645 cat >>confdefs.h <<_ACEOF
27646 #define TARGET_GLIBC_MINOR $glibc_version_minor
27647 _ACEOF
27648
27649
27650 # Check whether --enable-gnu-unique-object was given.
27651 if test "${enable_gnu_unique_object+set}" = set; then :
27652 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27653 yes | no) ;;
27654 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27655 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27656 esac
27657 else
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27659 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27660 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27661 $as_echo_n "(cached) " >&6
27662 else
27663 gcc_cv_as_gnu_unique_object=no
27664 if test $in_tree_gas = yes; then
27665 if test $in_tree_gas_is_elf = yes \
27666 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27667 then gcc_cv_as_gnu_unique_object=yes
27668 fi
27669 elif test x$gcc_cv_as != x; then
27670 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27671 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27673 (eval $ac_try) 2>&5
27674 ac_status=$?
27675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27676 test $ac_status = 0; }; }
27677 then
27678 gcc_cv_as_gnu_unique_object=yes
27679 else
27680 echo "configure: failed program was" >&5
27681 cat conftest.s >&5
27682 fi
27683 rm -f conftest.o conftest.s
27684 fi
27685 fi
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27687 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27688 if test $gcc_cv_as_gnu_unique_object = yes; then
27689 # We need to unquote above to to use the definition from config.gcc.
27690 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27691
27692 if test $glibc_version_major -gt 2 \
27693 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27694 enable_gnu_unique_object=yes
27695 fi
27696
27697 fi
27698 fi
27699
27700 if test x$enable_gnu_unique_object = xyes; then
27701
27702 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27703
27704 fi
27705
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27707 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27708 if test "${gcc_cv_as_line_zero+set}" = set; then :
27709 $as_echo_n "(cached) " >&6
27710 else
27711 gcc_cv_as_line_zero=no
27712 if test $in_tree_gas = yes; then
27713 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27714 then gcc_cv_as_line_zero=yes
27715 fi
27716 elif test "x$gcc_cv_as" != x; then
27717 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27718 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27720 (eval $ac_try) 2>&5
27721 ac_status=$?
27722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27723 test $ac_status = 0; }; } &&
27724 test "x`cat conftest.out`" = x
27725 then
27726 gcc_cv_as_line_zero=yes
27727 else
27728 echo "configure: failed program was" >&5
27729 cat conftest.s >&5
27730 echo "configure: error output was" >&5
27731 cat conftest.out >&5
27732 fi
27733 rm -f conftest.o conftest.s conftest.out
27734 fi
27735 fi
27736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27737 $as_echo "$gcc_cv_as_line_zero" >&6; }
27738 if test "x$gcc_cv_as_line_zero" = xyes; then
27739
27740 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27741
27742 fi
27743
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27745 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27746 gcc_cv_ld_eh_frame_hdr=no
27747 if test $in_tree_ld = yes ; then
27748 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 \
27749 && test $in_tree_ld_is_elf = yes; then
27750 gcc_cv_ld_eh_frame_hdr=yes
27751 fi
27752 elif test x$gcc_cv_ld != x; then
27753 if echo "$ld_ver" | grep GNU > /dev/null; then
27754 # Check if linker supports --eh-frame-hdr option
27755 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27756 gcc_cv_ld_eh_frame_hdr=yes
27757 fi
27758 else
27759 case "$target" in
27760 *-*-solaris2*)
27761 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27762 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27763 gcc_cv_ld_eh_frame_hdr=yes
27764 fi
27765 ;;
27766 esac
27767 fi
27768 fi
27769
27770 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27771
27772 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27773
27774 fi
27775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27776 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27777
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27779 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27780 gcc_cv_ld_eh_frame_ciev3=no
27781 if test $in_tree_ld = yes ; then
27782 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 \
27783 && test $in_tree_ld_is_elf = yes; then
27784 gcc_cv_ld_eh_frame_ciev3=yes
27785 fi
27786 elif test x$gcc_cv_ld != x; then
27787 if echo "$ld_ver" | grep GNU > /dev/null; then
27788 gcc_cv_ld_eh_frame_ciev3=yes
27789 if test 0"$ld_date" -lt 20040513; then
27790 if test -n "$ld_date"; then
27791 # If there was date string, but was earlier than 2004-05-13, fail
27792 gcc_cv_ld_eh_frame_ciev3=no
27793 elif test "$ld_vers_major" -lt 2; then
27794 gcc_cv_ld_eh_frame_ciev3=no
27795 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27796 gcc_cv_ld_eh_frame_ciev3=no
27797 fi
27798 fi
27799 else
27800 case "$target" in
27801 *-*-solaris2*)
27802 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27803 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27804 gcc_cv_ld_eh_frame_ciev3=yes
27805 fi
27806 ;;
27807 esac
27808 fi
27809 fi
27810
27811 cat >>confdefs.h <<_ACEOF
27812 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27813 _ACEOF
27814
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27816 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27817
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27819 $as_echo_n "checking linker position independent executable support... " >&6; }
27820 gcc_cv_ld_pie=no
27821 if test $in_tree_ld = yes ; then
27822 case "$target" in
27823 # Full PIE support on Solaris was only introduced in gld 2.26.
27824 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
27825 *) gcc_gld_pie_min_version=15 ;;
27826 esac
27827 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 \
27828 && test $in_tree_ld_is_elf = yes; then
27829 gcc_cv_ld_pie=yes
27830 fi
27831 elif test x$gcc_cv_ld != x; then
27832 # Check if linker supports -pie option
27833 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27834 gcc_cv_ld_pie=yes
27835 case "$target" in
27836 *-*-solaris2*)
27837 if echo "$ld_ver" | grep GNU > /dev/null \
27838 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27839 gcc_cv_ld_pie=no
27840 fi
27841 ;;
27842 esac
27843 else
27844 case "$target" in
27845 *-*-solaris2.1[1-9]*)
27846 # Solaris 11.x and Solaris 12 added PIE support.
27847 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27848 gcc_cv_ld_pie=yes
27849 fi
27850 ;;
27851 esac
27852 fi
27853 fi
27854 if test x"$gcc_cv_ld_pie" = xyes; then
27855
27856 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27857
27858 fi
27859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27860 $as_echo "$gcc_cv_ld_pie" >&6; }
27861
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27863 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27864 gcc_cv_ld_pie_copyreloc=no
27865 if test $gcc_cv_ld_pie = yes ; then
27866 if test $in_tree_ld = yes ; then
27867 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
27868 gcc_cv_ld_pie_copyreloc=yes
27869 fi
27870 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27871 # Check if linker supports -pie option with copy reloc
27872 case "$target" in
27873 i?86-*-linux* | x86_64-*-linux*)
27874 cat > conftest1.s <<EOF
27875 .globl a_glob
27876 .data
27877 .type a_glob, @object
27878 .size a_glob, 4
27879 a_glob:
27880 .long 2
27881 EOF
27882 cat > conftest2.s <<EOF
27883 .text
27884 .globl main
27885 .type main, @function
27886 main:
27887 movl %eax, a_glob(%rip)
27888 .size main, .-main
27889 .globl ptr
27890 .section .data.rel,"aw",@progbits
27891 .type ptr, @object
27892 ptr:
27893 .quad a_glob
27894 EOF
27895 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27896 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27897 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27898 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27899 gcc_cv_ld_pie_copyreloc=yes
27900 fi
27901 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27902 ;;
27903 esac
27904 fi
27905 fi
27906
27907 cat >>confdefs.h <<_ACEOF
27908 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27909 _ACEOF
27910
27911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27912 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27913
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27915 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27916 gcc_cv_ld_eh_gc_sections=no
27917 if test $in_tree_ld = yes ; then
27918 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 \
27919 && test $in_tree_ld_is_elf = yes; then
27920 gcc_cv_ld_eh_gc_sections=yes
27921 fi
27922 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27923 cat > conftest.s <<EOF
27924 .section .text
27925 .globl _start
27926 .type _start, @function
27927 _start:
27928 .long foo
27929 .size _start, .-_start
27930 .section .text.foo,"ax",@progbits
27931 .type foo, @function
27932 foo:
27933 .long 0
27934 .size foo, .-foo
27935 .section .gcc_except_table.foo,"a",@progbits
27936 .L0:
27937 .long 0
27938 .section .eh_frame,"a",@progbits
27939 .long .L0
27940 EOF
27941 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27942 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27943 | grep "gc-sections option ignored" > /dev/null; then
27944 gcc_cv_ld_eh_gc_sections=no
27945 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27946 | grep gcc_except_table > /dev/null; then
27947 gcc_cv_ld_eh_gc_sections=yes
27948 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27949 if test x$gcc_cv_as_comdat_group != xyes; then
27950 gcc_cv_ld_eh_gc_sections=no
27951 cat > conftest.s <<EOF
27952 .section .text
27953 .globl _start
27954 .type _start, @function
27955 _start:
27956 .long foo
27957 .size _start, .-_start
27958 .section .gnu.linkonce.t.foo,"ax",@progbits
27959 .type foo, @function
27960 foo:
27961 .long 0
27962 .size foo, .-foo
27963 .section .gcc_except_table.foo,"a",@progbits
27964 .L0:
27965 .long 0
27966 .section .eh_frame,"a",@progbits
27967 .long .L0
27968 EOF
27969 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27970 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27971 | grep "gc-sections option ignored" > /dev/null; then
27972 gcc_cv_ld_eh_gc_sections=no
27973 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27974 | grep gcc_except_table > /dev/null; then
27975 gcc_cv_ld_eh_gc_sections=yes
27976 fi
27977 fi
27978 fi
27979 fi
27980 fi
27981 rm -f conftest.s conftest.o conftest
27982 fi
27983 case "$target" in
27984 hppa*-*-linux*)
27985 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27986 gcc_cv_ld_eh_gc_sections=no
27987 ;;
27988 esac
27989 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27990
27991 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27992
27993 fi
27994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27995 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27996
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27998 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27999 gcc_cv_ld_eh_gc_sections_bug=no
28000 if test $in_tree_ld = yes ; then
28001 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 \
28002 && test $in_tree_ld_is_elf = yes; then
28003 gcc_cv_ld_eh_gc_sections_bug=yes
28004 fi
28005 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
28006 gcc_cv_ld_eh_gc_sections_bug=yes
28007 cat > conftest.s <<EOF
28008 .section .text
28009 .globl _start
28010 .type _start, @function
28011 _start:
28012 .long foo
28013 .size _start, .-_start
28014 .section .text.startup.foo,"ax",@progbits
28015 .type foo, @function
28016 foo:
28017 .long 0
28018 .size foo, .-foo
28019 .section .gcc_except_table.foo,"a",@progbits
28020 .L0:
28021 .long 0
28022 .section .eh_frame,"a",@progbits
28023 .long .L0
28024 EOF
28025 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28026 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28027 | grep "gc-sections option ignored" > /dev/null; then
28028 :
28029 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28030 | grep gcc_except_table > /dev/null; then
28031 gcc_cv_ld_eh_gc_sections_bug=no
28032 fi
28033 fi
28034 rm -f conftest.s conftest.o conftest
28035 fi
28036 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28037
28038 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28039
28040 fi
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28042 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28043
28044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28045 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28046 # gold/gld support compressed debug sections since binutils 2.19/2.21
28047 if test $in_tree_ld = yes ; then
28048 gcc_cv_ld_compress_debug=0
28049 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 \
28050 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28051 gcc_cv_ld_compress_debug=2
28052 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28053 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 \
28054 && test $in_tree_ld_is_elf = yes; then
28055 gcc_cv_ld_compress_debug=1
28056 fi
28057 elif echo "$ld_ver" | grep GNU > /dev/null; then
28058 gcc_cv_ld_compress_debug=1
28059 if test 0"$ld_date" -lt 20050308; then
28060 if test -n "$ld_date"; then
28061 # If there was date string, but was earlier than 2005-03-08, fail
28062 gcc_cv_ld_compress_debug=0
28063 elif test "$ld_vers_major" -lt 2; then
28064 gcc_cv_ld_compress_debug=0
28065 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28066 gcc_cv_ld_compress_debug=0
28067 fi
28068 fi
28069 if test $ld_is_gold = yes; then
28070 gcc_cv_ld_compress_debug=2
28071 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28072 fi
28073 else
28074 case "${target}" in
28075 *-*-solaris2*)
28076 # Introduced in Solaris 11.2.
28077 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28078 gcc_cv_ld_compress_debug=3
28079 gcc_cv_ld_compress_debug_option="-z compress-sections"
28080 else
28081 gcc_cv_ld_compress_debug=0
28082 fi
28083 ;;
28084 *)
28085 # Assume linkers other than GNU ld don't support compessed debug
28086 # sections.
28087 gcc_cv_ld_compress_debug=0
28088 ;;
28089 esac
28090 fi
28091
28092 cat >>confdefs.h <<_ACEOF
28093 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28094 _ACEOF
28095
28096
28097 cat >>confdefs.h <<_ACEOF
28098 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28099 _ACEOF
28100
28101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28102 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28103
28104 # --------
28105 # UNSORTED
28106 # --------
28107
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28109 $as_echo_n "checking linker --as-needed support... " >&6; }
28110 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28111 $as_echo_n "(cached) " >&6
28112 else
28113 gcc_cv_ld_as_needed=no
28114 gcc_cv_ld_as_needed_option='--as-needed'
28115 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28116 if test $in_tree_ld = yes ; then
28117 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 \
28118 && test $in_tree_ld_is_elf = yes; then
28119 gcc_cv_ld_as_needed=yes
28120 fi
28121 elif test x$gcc_cv_ld != x; then
28122 # Check if linker supports --as-needed and --no-as-needed options
28123 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28124 gcc_cv_ld_as_needed=yes
28125 else
28126 case "$target" in
28127 # Solaris 2 ld always supports -z ignore/-z record.
28128 *-*-solaris2*)
28129 gcc_cv_ld_as_needed=yes
28130 gcc_cv_ld_as_needed_option="-z ignore"
28131 gcc_cv_ld_no_as_needed_option="-z record"
28132 ;;
28133 esac
28134 fi
28135 fi
28136 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28137 # dl_iterate_phdr, i.e. since Solaris 11.
28138 case "$target" in
28139 *-*-solaris2.1[1-9]*)
28140 case "$target" in
28141 i?86-*-* | x86_64-*-*)
28142 if echo "$ld_ver" | grep GNU > /dev/null; then
28143 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28144 gcc_cv_ld_as_needed=no
28145 fi
28146 ;;
28147 esac
28148 ;;
28149 *-*-solaris2*)
28150 gcc_cv_ld_as_needed=no
28151 ;;
28152 esac
28153
28154 fi
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28156 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28157 if test x"$gcc_cv_ld_as_needed" = xyes; then
28158
28159 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28160
28161
28162 cat >>confdefs.h <<_ACEOF
28163 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28164 _ACEOF
28165
28166
28167 cat >>confdefs.h <<_ACEOF
28168 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28169 _ACEOF
28170
28171 fi
28172
28173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28174 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28175 saved_LDFLAGS="$LDFLAGS"
28176 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28177 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28179 /* end confdefs.h. */
28180 int main(void) {return 0;}
28181 _ACEOF
28182 if ac_fn_cxx_try_link "$LINENO"; then :
28183 gcc_cv_ld_clearcap=yes; break
28184 else
28185 gcc_cv_ld_clearcap=no
28186 fi
28187 rm -f core conftest.err conftest.$ac_objext \
28188 conftest$ac_exeext conftest.$ac_ext
28189 done
28190 LDFLAGS="$saved_LDFLAGS"
28191 if test "x$gcc_cv_ld_clearcap" = xyes; then
28192
28193 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28194
28195 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28196
28197 fi
28198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28199 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28200
28201 case "$target:$tm_file" in
28202 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28203 case "$target" in
28204 *le-*-linux*)
28205 emul_name="-melf64lppc"
28206 ;;
28207 *-*-linux*)
28208 emul_name="-melf64ppc"
28209 ;;
28210 *-*-freebsd*)
28211 emul_name="-melf64ppc_fbsd"
28212 ;;
28213 esac
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28215 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28216 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28217 $as_echo_n "(cached) " >&6
28218 else
28219 gcc_cv_ld_no_dot_syms=no
28220 if test x"$ld_is_gold" = xyes; then
28221 gcc_cv_ld_no_dot_syms=yes
28222 elif test $in_tree_ld = yes ; then
28223 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
28224 gcc_cv_ld_no_dot_syms=yes
28225 fi
28226 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28227 cat > conftest1.s <<EOF
28228 .text
28229 bl .foo
28230 EOF
28231 cat > conftest2.s <<EOF
28232 .section ".opd","aw"
28233 .align 3
28234 .globl foo
28235 .type foo,@function
28236 foo:
28237 .quad .LEfoo,.TOC.@tocbase,0
28238 .text
28239 .LEfoo:
28240 blr
28241 .size foo,.-.LEfoo
28242 EOF
28243 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28244 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28245 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28246 gcc_cv_ld_no_dot_syms=yes
28247 fi
28248 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28249 fi
28250
28251 fi
28252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28253 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28254 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28255
28256 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28257
28258 fi
28259
28260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28261 $as_echo_n "checking linker large toc support... " >&6; }
28262 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28263 $as_echo_n "(cached) " >&6
28264 else
28265 gcc_cv_ld_large_toc=no
28266 if test x"$ld_is_gold" = xyes; then
28267 gcc_cv_ld_large_toc=yes
28268 elif test $in_tree_ld = yes ; then
28269 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
28270 gcc_cv_ld_large_toc=yes
28271 fi
28272 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28273 cat > conftest.s <<EOF
28274 .section ".tbss","awT",@nobits
28275 .align 3
28276 ie0: .space 8
28277 .global _start
28278 .text
28279 _start:
28280 addis 9,13,ie0@got@tprel@ha
28281 ld 9,ie0@got@tprel@l(9)
28282 EOF
28283 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28284 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28285 gcc_cv_ld_large_toc=yes
28286 fi
28287 rm -f conftest conftest.o conftest.s
28288 fi
28289
28290 fi
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28292 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28293 if test x"$gcc_cv_ld_large_toc" = xyes; then
28294
28295 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28296
28297 fi
28298
28299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28300 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28301 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28302 $as_echo_n "(cached) " >&6
28303 else
28304 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28305 cat > conftest.s <<EOF
28306 .global _start
28307 .text
28308 _start:
28309 addis 9,2,x@got@ha
28310 .section .data.rel.ro,"aw",@progbits
28311 .p2align 16
28312 .space 32768
28313 x: .quad .TOC.
28314 EOF
28315 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28316 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28317 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)) }'`
28318 fi
28319 rm -f conftest conftest.o conftest.s
28320 fi
28321
28322 fi
28323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28324 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28325 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28326
28327 cat >>confdefs.h <<_ACEOF
28328 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28329 _ACEOF
28330
28331 fi
28332 ;;
28333 esac
28334
28335 case "$target" in
28336 *-*-aix*)
28337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28338 $as_echo_n "checking linker large toc support... " >&6; }
28339 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28340 $as_echo_n "(cached) " >&6
28341 else
28342 gcc_cv_ld_large_toc=no
28343 if test x$gcc_cv_as != x ; then
28344 cat > conftest.s <<EOF
28345 .toc
28346 LC..1:
28347 .tc a[TC],a[RW]
28348 .extern a[RW]
28349 .csect .text[PR]
28350 .largetoctest:
28351 addis 9,LC..1@u(2)
28352 ld 3,LC..1@l(9)
28353 EOF
28354 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28355 gcc_cv_ld_large_toc=yes
28356 fi
28357 rm -f conftest conftest.o conftest.s
28358 fi
28359
28360 fi
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28362 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28363 if test x"$gcc_cv_ld_large_toc" = xyes; then
28364
28365 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28366
28367 fi
28368 ;;
28369 esac
28370
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28372 $as_echo_n "checking linker --build-id support... " >&6; }
28373 if test "${gcc_cv_ld_buildid+set}" = set; then :
28374 $as_echo_n "(cached) " >&6
28375 else
28376 gcc_cv_ld_buildid=no
28377 if test $in_tree_ld = yes ; then
28378 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28379 "$gcc_cv_gld_minor_version" -ge 18 -o \
28380 "$gcc_cv_gld_major_version" -gt 2 \
28381 && test $in_tree_ld_is_elf = yes; then
28382 gcc_cv_ld_buildid=yes
28383 fi
28384 elif test x$gcc_cv_ld != x; then
28385 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28386 gcc_cv_ld_buildid=yes
28387 fi
28388 fi
28389 fi
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28391 $as_echo "$gcc_cv_ld_buildid" >&6; }
28392 if test x"$gcc_cv_ld_buildid" = xyes; then
28393
28394 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28395
28396 fi
28397
28398 # Check whether --enable-linker-build-id was given.
28399 if test "${enable_linker_build_id+set}" = set; then :
28400 enableval=$enable_linker_build_id;
28401 else
28402 enable_linker_build_id=no
28403 fi
28404
28405
28406 if test x"$enable_linker_build_id" = xyes; then
28407 if test x"$gcc_cv_ld_buildid" = xyes; then
28408
28409 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28410
28411 else
28412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28413 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28414 fi
28415 fi
28416
28417 # In binutils 2.21, GNU ld gained support for new emulations fully
28418 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28420 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28421 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28422 $as_echo_n "(cached) " >&6
28423 else
28424 gcc_cv_ld_sol2_emulation=no
28425 if test $in_tree_ld = yes ; then
28426 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28427 "$gcc_cv_gld_minor_version" -ge 21 -o \
28428 "$gcc_cv_gld_major_version" -gt 2 \
28429 && test $in_tree_ld_is_elf = yes; then
28430 gcc_cv_ld_sol2_emulation=yes
28431 fi
28432 elif test x$gcc_cv_ld != x; then
28433 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28434 grep _sol2 > /dev/null; then
28435 gcc_cv_ld_sol2_emulation=yes
28436 fi
28437 fi
28438 fi
28439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28440 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28441 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28442
28443 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28444
28445 fi
28446
28447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28448 $as_echo_n "checking linker --sysroot support... " >&6; }
28449 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28450 $as_echo_n "(cached) " >&6
28451 else
28452 gcc_cv_ld_sysroot=no
28453 if test $in_tree_ld = yes ; then
28454 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
28455 gcc_cv_ld_sysroot=yes
28456 fi
28457 elif test x$gcc_cv_ld != x; then
28458 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28459 gcc_cv_ld_sysroot=yes
28460 fi
28461 fi
28462 fi
28463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28464 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28465 if test x"$gcc_cv_ld_sysroot" = xyes; then
28466
28467 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28468
28469 fi
28470
28471 case $target in
28472 *-*-solaris2*)
28473 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28475 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28476 if test "${gcc_cv_solaris_crts+set}" = set; then :
28477 $as_echo_n "(cached) " >&6
28478 else
28479 gcc_cv_solaris_crts=no
28480 if test x$host != x$target; then
28481 if test "x$with_sysroot" = xyes; then
28482 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28483 else
28484 target_sysroot="${with_sysroot}"
28485 fi
28486 fi
28487 target_libdir="$target_sysroot/usr/lib"
28488 # At the time they were added, gcrt1.o became a symlink for backwards
28489 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28490 case $target in
28491 i?86-*-solaris2* | x86_64-*-solaris2*)
28492 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28493 ;;
28494 sparc*-*-solaris2*)
28495 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28496 ;;
28497 esac
28498 fi
28499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28500 $as_echo "$gcc_cv_solaris_crts" >&6; }
28501 ;;
28502 esac
28503 if test x$gcc_cv_solaris_crts = xyes; then
28504
28505 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28506
28507 fi
28508
28509 # Test for stack protector support in target C library.
28510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28511 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28512 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28513 $as_echo_n "(cached) " >&6
28514 else
28515 gcc_cv_libc_provides_ssp=no
28516 case "$target" in
28517 *-*-musl*)
28518 # All versions of musl provide stack protector
28519 gcc_cv_libc_provides_ssp=yes;;
28520 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
28521 # glibc 2.4 and later provides __stack_chk_fail and
28522 # either __stack_chk_guard, or TLS access to stack guard canary.
28523
28524 if test $glibc_version_major -gt 2 \
28525 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28526 gcc_cv_libc_provides_ssp=yes
28527 else
28528
28529 if test -f $target_header_dir/features.h \
28530 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28531 $target_header_dir/features.h > /dev/null; then
28532 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28533 $target_header_dir/features.h > /dev/null && \
28534 test -f $target_header_dir/bits/uClibc_config.h && \
28535 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28536 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28537 gcc_cv_libc_provides_ssp=yes
28538 fi
28539 # all versions of Bionic support stack protector
28540 elif test -f $target_header_dir/sys/cdefs.h \
28541 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28542 $target_header_dir/sys/cdefs.h > /dev/null; then
28543 gcc_cv_libc_provides_ssp=yes
28544 fi
28545 fi
28546 ;;
28547 *-*-gnu*)
28548 # Avoid complicated tests (see
28549 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28550 # simply assert that glibc does provide this, which is true for all
28551 # realistically usable GNU/Hurd configurations.
28552 # All supported versions of musl provide it as well
28553 gcc_cv_libc_provides_ssp=yes;;
28554 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28555 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28556 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28557 gcc_cv_libc_provides_ssp=yes
28558 else
28559 echo "no __stack_chk_fail on this target"
28560 fi
28561
28562 ;;
28563 *) gcc_cv_libc_provides_ssp=no ;;
28564 esac
28565 fi
28566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28567 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28568
28569 if test x$gcc_cv_libc_provides_ssp = xyes; then
28570
28571 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28572
28573 fi
28574
28575 # Check whether --enable-default-ssp was given.
28576 # Check whether --enable-default-ssp was given.
28577 if test "${enable_default_ssp+set}" = set; then :
28578 enableval=$enable_default_ssp;
28579 if test x$gcc_cv_libc_provides_ssp = xyes; then
28580 case "$target" in
28581 ia64*-*-*) enable_default_ssp=no ;;
28582 *) enable_default_ssp=$enableval ;;
28583 esac
28584 else
28585 enable_default_ssp=no
28586 fi
28587 else
28588 enable_default_ssp=no
28589 fi
28590
28591 if test x$enable_default_ssp = xyes ; then
28592
28593 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28594
28595 fi
28596
28597
28598 # Test for <sys/sdt.h> on the target.
28599
28600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28601 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28602 have_sys_sdt_h=no
28603 if test -f $target_header_dir/sys/sdt.h; then
28604 have_sys_sdt_h=yes
28605
28606 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28607
28608 fi
28609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28610 $as_echo "$have_sys_sdt_h" >&6; }
28611
28612 # Check if TFmode long double should be used by default or not.
28613 # Some glibc targets used DFmode long double, but with glibc 2.4
28614 # and later they can use TFmode.
28615 case "$target" in
28616 powerpc*-*-linux* | \
28617 sparc*-*-linux* | \
28618 s390*-*-linux* | \
28619 alpha*-*-linux*)
28620
28621 # Check whether --with-long-double-128 was given.
28622 if test "${with_long_double_128+set}" = set; then :
28623 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28624 else
28625
28626 if test $glibc_version_major -gt 2 \
28627 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28628 gcc_cv_target_ldbl128=yes
28629 else
28630
28631 gcc_cv_target_ldbl128=no
28632 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28633 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28634 && gcc_cv_target_ldbl128=yes
28635
28636 fi
28637 fi
28638
28639 ;;
28640 esac
28641 if test x$gcc_cv_target_ldbl128 = xyes; then
28642
28643 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28644
28645 fi
28646
28647 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28648 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28649 gcc_cv_libc_provides_hwcap_in_tcb=no
28650 case "$target" in
28651 powerpc*-*-linux*)
28652
28653 if test $glibc_version_major -gt 2 \
28654 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28655 gcc_cv_libc_provides_hwcap_in_tcb=yes
28656 fi
28657 ;;
28658 esac
28659 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
28660
28661 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28662
28663 fi
28664
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28666 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28667 gcc_cv_target_dl_iterate_phdr=unknown
28668 case "$target" in
28669 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28670 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28671 # libdl there, both complicating its use and breaking compatibility
28672 # between Solaris 10 updates.
28673 *-*-solaris2.1[1-9]*)
28674 # <link.h> needs both a dl_iterate_phdr declaration and support for
28675 # compilation with largefile support.
28676 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28677 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28678 gcc_cv_target_dl_iterate_phdr=yes
28679 else
28680 gcc_cv_target_dl_iterate_phdr=no
28681 fi
28682 ;;
28683 *-*-dragonfly* | *-*-freebsd*)
28684 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28685 gcc_cv_target_dl_iterate_phdr=yes
28686 else
28687 gcc_cv_target_dl_iterate_phdr=no
28688 fi
28689 ;;
28690 *-linux-musl*)
28691 gcc_cv_target_dl_iterate_phdr=yes
28692 ;;
28693 esac
28694
28695 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28696
28697 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28698
28699 fi
28700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28701 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28702
28703 # We no longer support different GC mechanisms. Emit an error if
28704 # the user configures with --with-gc.
28705
28706 # Check whether --with-gc was given.
28707 if test "${with_gc+set}" = set; then :
28708 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28709 fi
28710
28711
28712 # Libraries to use on the host. This will normally be set by the top
28713 # level Makefile. Here we simply capture the value for our Makefile.
28714 if test -z "${HOST_LIBS+set}"; then
28715 HOST_LIBS=
28716 fi
28717
28718
28719 # Use the system's zlib library.
28720
28721 # Use the system's zlib library.
28722 zlibdir="-L\$(top_builddir)/../zlib"
28723 zlibinc="-I\$(top_srcdir)/../zlib"
28724
28725 # Check whether --with-system-zlib was given.
28726 if test "${with_system_zlib+set}" = set; then :
28727 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28728 zlibdir=
28729 zlibinc=
28730 fi
28731
28732 fi
28733
28734
28735
28736
28737
28738
28739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28740 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28741 # Check whether --enable-maintainer-mode was given.
28742 if test "${enable_maintainer_mode+set}" = set; then :
28743 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28744 else
28745 maintainer_mode=no
28746 fi
28747
28748
28749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28750 $as_echo "$maintainer_mode" >&6; }
28751
28752 if test "$maintainer_mode" = "yes"; then
28753 MAINT=''
28754 else
28755 MAINT='#'
28756 fi
28757
28758
28759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28760 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28761 # Check whether --enable-link-mutex was given.
28762 if test "${enable_link_mutex+set}" = set; then :
28763 enableval=$enable_link_mutex; do_link_mutex=$enableval
28764 else
28765 do_link_mutex=no
28766 fi
28767
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28769 $as_echo "$do_link_mutex" >&6; }
28770
28771 if test "$do_link_mutex" = "yes"; then
28772 DO_LINK_MUTEX=true
28773 else
28774 DO_LINK_MUTEX=false
28775 fi
28776
28777
28778 # --------------
28779 # Language hooks
28780 # --------------
28781
28782 # Make empty files to contain the specs and options for each language.
28783 # Then add #include lines to for a compiler that has specs and/or options.
28784
28785 subdirs=
28786 lang_opt_files=
28787 lang_specs_files=
28788 lang_tree_files=
28789 # These (without "all_") are set in each config-lang.in.
28790 # `language' must be a single word so is spelled singularly.
28791 all_languages=
28792 all_compilers=
28793 all_outputs='Makefile'
28794 # List of language makefile fragments.
28795 all_lang_makefrags=
28796 # Additional files for gengtype
28797 all_gtfiles="$target_gtfiles"
28798
28799 # These are the languages that are set in --enable-languages,
28800 # and are available in the GCC tree.
28801 all_selected_languages=
28802
28803 # Add the language fragments.
28804 # Languages are added via two mechanisms. Some information must be
28805 # recorded in makefile variables, these are defined in config-lang.in.
28806 # We accumulate them and plug them into the main Makefile.
28807 # The other mechanism is a set of hooks for each of the main targets
28808 # like `clean', `install', etc.
28809
28810 language_hooks="Make-hooks"
28811
28812 for lang in ${srcdir}/*/config-lang.in
28813 do
28814 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28815
28816 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28817 if test "x$lang_alias" = x
28818 then
28819 echo "$lang doesn't set \$language." 1>&2
28820 exit 1
28821 fi
28822 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28823 subdirs="$subdirs $subdir"
28824
28825 # $gcc_subdir is where the gcc integration files are to be found
28826 # for a language, both for internal compiler purposes (compiler
28827 # sources implementing front-end to GCC tree converters), and for
28828 # build infrastructure purposes (Make-lang.in, etc.)
28829 #
28830 # This will be <subdir> (relative to $srcdir) if a line like
28831 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28832 # is found in <langdir>/config-lang.in, and will remain <langdir>
28833 # otherwise.
28834 #
28835 # Except for the language alias (fetched above), the regular
28836 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28837 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28838 # only this and the language alias.
28839
28840 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28841 if [ "$gcc_subdir" = "" ]; then
28842 gcc_subdir="$subdir"
28843 fi
28844
28845 case ",$enable_languages," in
28846 *,$lang_alias,*)
28847 all_selected_languages="$all_selected_languages $lang_alias"
28848 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28849 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28850 fi
28851 ;;
28852 esac
28853
28854 language=
28855 boot_language=
28856 compilers=
28857 outputs=
28858 gtfiles=
28859 subdir_requires=
28860 . ${srcdir}/$gcc_subdir/config-lang.in
28861 if test "x$language" = x
28862 then
28863 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28864 exit 1
28865 fi
28866
28867 ok=:
28868 case ",$enable_languages," in
28869 *,$lang_alias,*) ;;
28870 *)
28871 for i in $subdir_requires; do
28872 test -f "${srcdir}/$i/config-lang.in" && continue
28873 ok=false
28874 break
28875 done
28876 ;;
28877 esac
28878 $ok || continue
28879
28880 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28881 if test -f $srcdir/$gcc_subdir/lang.opt; then
28882 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28883 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28884 fi
28885 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28886 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28887 fi
28888 all_languages="$all_languages $language"
28889 all_compilers="$all_compilers $compilers"
28890 all_outputs="$all_outputs $outputs"
28891 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28892 case ",$enable_languages," in
28893 *,lto,*)
28894
28895 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28896
28897 enable_lto=yes
28898
28899 ;;
28900 *) ;;
28901 esac
28902 done
28903
28904 check_languages=
28905 for language in $all_selected_languages
28906 do
28907 check_languages="$check_languages check-$language"
28908 done
28909
28910 # We link each language in with a set of hooks, reached indirectly via
28911 # lang.${target}. Only do so for selected languages.
28912
28913 rm -f Make-hooks
28914 touch Make-hooks
28915 target_list="all.cross start.encap rest.encap tags \
28916 install-common install-man install-info install-pdf install-html dvi \
28917 pdf html uninstall info man srcextra srcman srcinfo \
28918 mostlyclean clean distclean maintainer-clean install-plugin"
28919
28920 for t in $target_list
28921 do
28922 x=
28923 for lang in $all_selected_languages
28924 do
28925 x="$x $lang.$t"
28926 done
28927 echo "lang.$t: $x" >> Make-hooks
28928 done
28929
28930 # --------
28931 # Option include files
28932 # --------
28933
28934 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28935 option_includes="option-includes.mk"
28936
28937
28938 # --------
28939 # UNSORTED
28940 # --------
28941
28942 # Create .gdbinit.
28943
28944 echo "dir ." > .gdbinit
28945 echo "dir ${srcdir}" >> .gdbinit
28946 if test x$gdb_needs_out_file_path = xyes
28947 then
28948 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28949 fi
28950 if test "x$subdirs" != x; then
28951 for s in $subdirs
28952 do
28953 echo "dir ${srcdir}/$s" >> .gdbinit
28954 done
28955 fi
28956 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28957 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28958
28959 # Put a breakpoint on __asan_report_error to help with debugging buffer
28960 # overflow.
28961 case "$CFLAGS" in
28962 *-fsanitize=address*)
28963 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28964 ;;
28965 esac
28966
28967 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28968
28969
28970
28971 # Find a directory in which to install a shared libgcc.
28972
28973 # Check whether --enable-version-specific-runtime-libs was given.
28974 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28975 enableval=$enable_version_specific_runtime_libs;
28976 fi
28977
28978
28979 # Substitute configuration variables
28980
28981
28982
28983
28984
28985
28986
28987
28988
28989
28990
28991
28992
28993
28994
28995
28996
28997
28998
28999
29000
29001
29002
29003
29004
29005
29006
29007
29008
29009
29010
29011
29012
29013
29014
29015
29016
29017
29018
29019
29020
29021
29022
29023
29024
29025
29026
29027
29028
29029
29030
29031
29032
29033
29034
29035
29036
29037
29038
29039
29040
29041
29042 # Echo link setup.
29043 if test x${build} = x${host} ; then
29044 if test x${host} = x${target} ; then
29045 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29046 else
29047 echo "Links are now set up to build a cross-compiler" 1>&2
29048 echo " from ${host} to ${target}." 1>&2
29049 fi
29050 else
29051 if test x${host} = x${target} ; then
29052 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29053 echo " for ${target}." 1>&2
29054 else
29055 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29056 echo " from ${host} to ${target}." 1>&2
29057 fi
29058 fi
29059
29060
29061
29062
29063
29064
29065 if test "x${ISLLIBS}" != "x" ; then
29066
29067 $as_echo "#define HAVE_isl 1" >>confdefs.h
29068
29069 fi
29070
29071 # Check whether isl_options_set_schedule_serialize_sccs is available;
29072 # it's new in isl 0.15.
29073 if test "x${ISLLIBS}" != "x" ; then
29074 saved_CXXFLAGS="$CXXFLAGS"
29075 CXXFLAGS="$CXXFLAGS $ISLINC $GMPINC"
29076 saved_LIBS="$LIBS"
29077 LIBS="$LIBS $ISLLIBS $GMPLIBS"
29078
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29080 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29082 /* end confdefs.h. */
29083 #include <isl/schedule.h>
29084 int
29085 main ()
29086 {
29087 isl_options_set_schedule_serialize_sccs (NULL, 0);
29088 ;
29089 return 0;
29090 }
29091 _ACEOF
29092 if ac_fn_cxx_try_link "$LINENO"; then :
29093 ac_has_isl_options_set_schedule_serialize_sccs=yes
29094 else
29095 ac_has_isl_options_set_schedule_serialize_sccs=no
29096 fi
29097 rm -f core conftest.err conftest.$ac_objext \
29098 conftest$ac_exeext conftest.$ac_ext
29099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29100 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29101
29102 LIBS="$saved_LIBS"
29103 CXXFLAGS="$saved_CXXFLAGS"
29104
29105 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
29106
29107 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29108
29109 fi
29110 fi
29111
29112 # Check for plugin support
29113 # Check whether --enable-plugin was given.
29114 if test "${enable_plugin+set}" = set; then :
29115 enableval=$enable_plugin; enable_plugin=$enableval
29116 else
29117 enable_plugin=yes; default_plugin=yes
29118 fi
29119
29120
29121 pluginlibs=
29122
29123 case "${host}" in
29124 *-*-darwin*)
29125 if test x$build = x$host; then
29126 export_sym_check="nm${exeext} -g"
29127 elif test x$host = x$target; then
29128 export_sym_check="$gcc_cv_nm -g"
29129 else
29130 export_sym_check=
29131 fi
29132 ;;
29133 *)
29134 if test x$build = x$host; then
29135 export_sym_check="objdump${exeext} -T"
29136 elif test x$host = x$target; then
29137 export_sym_check="$gcc_cv_objdump -T"
29138 else
29139 export_sym_check=
29140 fi
29141 ;;
29142 esac
29143
29144 if test x"$enable_plugin" = x"yes"; then
29145
29146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29147 $as_echo_n "checking for exported symbols... " >&6; }
29148 if test "x$export_sym_check" != x; then
29149 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29150 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29151 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29152 : # No need to use a flag
29153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29154 $as_echo "yes" >&6; }
29155 else
29156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29157 $as_echo "yes" >&6; }
29158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29159 $as_echo_n "checking for -rdynamic... " >&6; }
29160 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29161 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29162 plugin_rdynamic=yes
29163 pluginlibs="-rdynamic"
29164 else
29165 plugin_rdynamic=no
29166 enable_plugin=no
29167 fi
29168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29169 $as_echo "$plugin_rdynamic" >&6; }
29170 fi
29171 else
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29173 $as_echo "unable to check" >&6; }
29174 fi
29175
29176 # Check -ldl
29177 saved_LIBS="$LIBS"
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29179 $as_echo_n "checking for library containing dlopen... " >&6; }
29180 if test "${ac_cv_search_dlopen+set}" = set; then :
29181 $as_echo_n "(cached) " >&6
29182 else
29183 ac_func_search_save_LIBS=$LIBS
29184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29185 /* end confdefs.h. */
29186
29187 /* Override any GCC internal prototype to avoid an error.
29188 Use char because int might match the return type of a GCC
29189 builtin and then its argument prototype would still apply. */
29190 #ifdef __cplusplus
29191 extern "C"
29192 #endif
29193 char dlopen ();
29194 int
29195 main ()
29196 {
29197 return dlopen ();
29198 ;
29199 return 0;
29200 }
29201 _ACEOF
29202 for ac_lib in '' dl; do
29203 if test -z "$ac_lib"; then
29204 ac_res="none required"
29205 else
29206 ac_res=-l$ac_lib
29207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29208 fi
29209 if ac_fn_cxx_try_link "$LINENO"; then :
29210 ac_cv_search_dlopen=$ac_res
29211 fi
29212 rm -f core conftest.err conftest.$ac_objext \
29213 conftest$ac_exeext
29214 if test "${ac_cv_search_dlopen+set}" = set; then :
29215 break
29216 fi
29217 done
29218 if test "${ac_cv_search_dlopen+set}" = set; then :
29219
29220 else
29221 ac_cv_search_dlopen=no
29222 fi
29223 rm conftest.$ac_ext
29224 LIBS=$ac_func_search_save_LIBS
29225 fi
29226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29227 $as_echo "$ac_cv_search_dlopen" >&6; }
29228 ac_res=$ac_cv_search_dlopen
29229 if test "$ac_res" != no; then :
29230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29231
29232 fi
29233
29234 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29235 pluginlibs="$pluginlibs -ldl"
29236 fi
29237 LIBS="$saved_LIBS"
29238
29239 # Check that we can build shared objects with -fPIC -shared
29240 saved_LDFLAGS="$LDFLAGS"
29241 saved_CFLAGS="$CFLAGS"
29242 case "${host}" in
29243 *-*-darwin*)
29244 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29245 CFLAGS="$CFLAGS -fPIC"
29246 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29247 ;;
29248 *)
29249 CFLAGS="$CFLAGS -fPIC"
29250 LDFLAGS="$LDFLAGS -fPIC -shared"
29251 ;;
29252 esac
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29254 $as_echo_n "checking for -fPIC -shared... " >&6; }
29255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29256 /* end confdefs.h. */
29257 extern int X;
29258 int
29259 main ()
29260 {
29261 return X == 0;
29262 ;
29263 return 0;
29264 }
29265 _ACEOF
29266 if ac_fn_cxx_try_link "$LINENO"; then :
29267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29268 $as_echo "yes" >&6; }; have_pic_shared=yes
29269 else
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29271 $as_echo "no" >&6; }; have_pic_shared=no
29272 fi
29273 rm -f core conftest.err conftest.$ac_objext \
29274 conftest$ac_exeext conftest.$ac_ext
29275 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29276 pluginlibs=
29277 enable_plugin=no
29278 fi
29279 LDFLAGS="$saved_LDFLAGS"
29280 CFLAGS="$saved_CFLAGS"
29281
29282 # If plugin support had been requested but not available, fail.
29283 if test x"$enable_plugin" = x"no" ; then
29284 if test x"$default_plugin" != x"yes"; then
29285 as_fn_error "
29286 Building GCC with plugin support requires a host that supports
29287 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29288 fi
29289 fi
29290 fi
29291
29292
29293
29294 if test x"$enable_plugin" = x"yes"; then
29295
29296 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29297
29298 fi
29299
29300
29301 # Enable --enable-host-shared
29302 # Check whether --enable-host-shared was given.
29303 if test "${enable_host_shared+set}" = set; then :
29304 enableval=$enable_host_shared; PICFLAG=-fPIC
29305 else
29306 PICFLAG=
29307 fi
29308
29309
29310
29311
29312
29313 # Check whether --enable-libquadmath-support was given.
29314 if test "${enable_libquadmath_support+set}" = set; then :
29315 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29316 else
29317 ENABLE_LIBQUADMATH_SUPPORT=yes
29318 fi
29319
29320 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29321
29322 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29323
29324 fi
29325
29326
29327 # Specify what hash style to use by default.
29328
29329 # Check whether --with-linker-hash-style was given.
29330 if test "${with_linker_hash_style+set}" = set; then :
29331 withval=$with_linker_hash_style; case x"$withval" in
29332 xsysv)
29333 LINKER_HASH_STYLE=sysv
29334 ;;
29335 xgnu)
29336 LINKER_HASH_STYLE=gnu
29337 ;;
29338 xboth)
29339 LINKER_HASH_STYLE=both
29340 ;;
29341 *)
29342 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29343 ;;
29344 esac
29345 else
29346 LINKER_HASH_STYLE=''
29347 fi
29348
29349 if test x"${LINKER_HASH_STYLE}" != x; then
29350
29351 cat >>confdefs.h <<_ACEOF
29352 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29353 _ACEOF
29354
29355 fi
29356
29357 # Specify what should be the default of -fdiagnostics-color option.
29358
29359 # Check whether --with-diagnostics-color was given.
29360 if test "${with_diagnostics_color+set}" = set; then :
29361 withval=$with_diagnostics_color; case x"$withval" in
29362 xnever)
29363 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29364 ;;
29365 xauto)
29366 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29367 ;;
29368 xauto-if-env)
29369 DIAGNOSTICS_COLOR_DEFAULT=-1
29370 ;;
29371 xalways)
29372 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29373 ;;
29374 *)
29375 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29376 ;;
29377 esac
29378 else
29379 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29380 fi
29381
29382
29383 cat >>confdefs.h <<_ACEOF
29384 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29385 _ACEOF
29386
29387
29388 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29389 # of jit/jit-playback.c.
29390 cat > gcc-driver-name.h <<EOF
29391 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29392 EOF
29393
29394 # Check whether --enable-default-pie was given.
29395 # Check whether --enable-default-pie was given.
29396 if test "${enable_default_pie+set}" = set; then :
29397 enableval=$enable_default_pie; enable_default_pie=$enableval
29398 else
29399 enable_default_pie=no
29400 fi
29401
29402 if test x$enable_default_pie = xyes ; then
29403
29404 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29405
29406 fi
29407
29408
29409 # Check if -fno-PIE works.
29410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29411 $as_echo_n "checking for -fno-PIE option... " >&6; }
29412 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29413 $as_echo_n "(cached) " >&6
29414 else
29415 saved_CXXFLAGS="$CXXFLAGS"
29416 CXXFLAGS="$CXXFLAGS -fno-PIE"
29417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29418 /* end confdefs.h. */
29419 int main(void) {return 0;}
29420 _ACEOF
29421 if ac_fn_cxx_try_compile "$LINENO"; then :
29422 gcc_cv_c_no_fpie=yes
29423 else
29424 gcc_cv_c_no_fpie=no
29425 fi
29426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29427 CXXFLAGS="$saved_CXXFLAGS"
29428 fi
29429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29430 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29431 if test "$gcc_cv_c_no_fpie" = "yes"; then
29432 NO_PIE_CFLAGS="-fno-PIE"
29433 fi
29434
29435
29436 # Check if -no-pie works.
29437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29438 $as_echo_n "checking for -no-pie option... " >&6; }
29439 if test "${gcc_cv_no_pie+set}" = set; then :
29440 $as_echo_n "(cached) " >&6
29441 else
29442 saved_LDFLAGS="$LDFLAGS"
29443 LDFLAGS="$LDFLAGS -no-pie"
29444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29445 /* end confdefs.h. */
29446 int main(void) {return 0;}
29447 _ACEOF
29448 if ac_fn_cxx_try_link "$LINENO"; then :
29449 gcc_cv_no_pie=yes
29450 else
29451 gcc_cv_no_pie=no
29452 fi
29453 rm -f core conftest.err conftest.$ac_objext \
29454 conftest$ac_exeext conftest.$ac_ext
29455 LDFLAGS="$saved_LDFLAGS"
29456 fi
29457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29458 $as_echo "$gcc_cv_no_pie" >&6; }
29459 if test "$gcc_cv_no_pie" = "yes"; then
29460 NO_PIE_FLAG="-no-pie"
29461 fi
29462
29463
29464 # Check linker supports '-z bndplt'
29465 ld_bndplt_support=no
29466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29467 $as_echo_n "checking linker -z bndplt option... " >&6; }
29468 if test x"$ld_is_gold" = xno; then
29469 if test $in_tree_ld = yes ; then
29470 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
29471 ld_bndplt_support=yes
29472 fi
29473 elif test x$gcc_cv_ld != x; then
29474 # Check if linker supports -a bndplt option
29475 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29476 ld_bndplt_support=yes
29477 fi
29478 fi
29479 fi
29480 if test x"$ld_bndplt_support" = xyes; then
29481
29482 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29483
29484 fi
29485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29486 $as_echo "$ld_bndplt_support" >&6; }
29487
29488 # Configure the subdirectories
29489 # AC_CONFIG_SUBDIRS($subdirs)
29490
29491 # Create the Makefile
29492 # and configure language subdirectories
29493 ac_config_files="$ac_config_files $all_outputs"
29494
29495
29496 ac_config_commands="$ac_config_commands default"
29497
29498 cat >confcache <<\_ACEOF
29499 # This file is a shell script that caches the results of configure
29500 # tests run on this system so they can be shared between configure
29501 # scripts and configure runs, see configure's option --config-cache.
29502 # It is not useful on other systems. If it contains results you don't
29503 # want to keep, you may remove or edit it.
29504 #
29505 # config.status only pays attention to the cache file if you give it
29506 # the --recheck option to rerun configure.
29507 #
29508 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29510 # following values.
29511
29512 _ACEOF
29513
29514 # The following way of writing the cache mishandles newlines in values,
29515 # but we know of no workaround that is simple, portable, and efficient.
29516 # So, we kill variables containing newlines.
29517 # Ultrix sh set writes to stderr and can't be redirected directly,
29518 # and sets the high bit in the cache file unless we assign to the vars.
29519 (
29520 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29521 eval ac_val=\$$ac_var
29522 case $ac_val in #(
29523 *${as_nl}*)
29524 case $ac_var in #(
29525 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29526 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29527 esac
29528 case $ac_var in #(
29529 _ | IFS | as_nl) ;; #(
29530 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29531 *) { eval $ac_var=; unset $ac_var;} ;;
29532 esac ;;
29533 esac
29534 done
29535
29536 (set) 2>&1 |
29537 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29538 *${as_nl}ac_space=\ *)
29539 # `set' does not quote correctly, so add quotes: double-quote
29540 # substitution turns \\\\ into \\, and sed turns \\ into \.
29541 sed -n \
29542 "s/'/'\\\\''/g;
29543 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29544 ;; #(
29545 *)
29546 # `set' quotes correctly as required by POSIX, so do not add quotes.
29547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29548 ;;
29549 esac |
29550 sort
29551 ) |
29552 sed '
29553 /^ac_cv_env_/b end
29554 t clear
29555 :clear
29556 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29557 t end
29558 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29559 :end' >>confcache
29560 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29561 if test -w "$cache_file"; then
29562 test "x$cache_file" != "x/dev/null" &&
29563 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29564 $as_echo "$as_me: updating cache $cache_file" >&6;}
29565 cat confcache >$cache_file
29566 else
29567 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29568 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29569 fi
29570 fi
29571 rm -f confcache
29572
29573 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29574 # Let make expand exec_prefix.
29575 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29576
29577 DEFS=-DHAVE_CONFIG_H
29578
29579 ac_libobjs=
29580 ac_ltlibobjs=
29581 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29582 # 1. Remove the extension, and $U if already installed.
29583 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29584 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29585 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29586 # will be set to the directory where LIBOBJS objects are built.
29587 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29588 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29589 done
29590 LIBOBJS=$ac_libobjs
29591
29592 LTLIBOBJS=$ac_ltlibobjs
29593
29594
29595
29596
29597 : ${CONFIG_STATUS=./config.status}
29598 ac_write_fail=0
29599 ac_clean_files_save=$ac_clean_files
29600 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29601 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29602 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29603 as_write_fail=0
29604 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29605 #! $SHELL
29606 # Generated by $as_me.
29607 # Run this file to recreate the current configuration.
29608 # Compiler output produced by configure, useful for debugging
29609 # configure, is in config.log if it exists.
29610
29611 debug=false
29612 ac_cs_recheck=false
29613 ac_cs_silent=false
29614
29615 SHELL=\${CONFIG_SHELL-$SHELL}
29616 export SHELL
29617 _ASEOF
29618 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29619 ## -------------------- ##
29620 ## M4sh Initialization. ##
29621 ## -------------------- ##
29622
29623 # Be more Bourne compatible
29624 DUALCASE=1; export DUALCASE # for MKS sh
29625 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29626 emulate sh
29627 NULLCMD=:
29628 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29629 # is contrary to our usage. Disable this feature.
29630 alias -g '${1+"$@"}'='"$@"'
29631 setopt NO_GLOB_SUBST
29632 else
29633 case `(set -o) 2>/dev/null` in #(
29634 *posix*) :
29635 set -o posix ;; #(
29636 *) :
29637 ;;
29638 esac
29639 fi
29640
29641
29642 as_nl='
29643 '
29644 export as_nl
29645 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29646 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29647 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29648 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29649 # Prefer a ksh shell builtin over an external printf program on Solaris,
29650 # but without wasting forks for bash or zsh.
29651 if test -z "$BASH_VERSION$ZSH_VERSION" \
29652 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29653 as_echo='print -r --'
29654 as_echo_n='print -rn --'
29655 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29656 as_echo='printf %s\n'
29657 as_echo_n='printf %s'
29658 else
29659 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29660 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29661 as_echo_n='/usr/ucb/echo -n'
29662 else
29663 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29664 as_echo_n_body='eval
29665 arg=$1;
29666 case $arg in #(
29667 *"$as_nl"*)
29668 expr "X$arg" : "X\\(.*\\)$as_nl";
29669 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29670 esac;
29671 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29672 '
29673 export as_echo_n_body
29674 as_echo_n='sh -c $as_echo_n_body as_echo'
29675 fi
29676 export as_echo_body
29677 as_echo='sh -c $as_echo_body as_echo'
29678 fi
29679
29680 # The user is always right.
29681 if test "${PATH_SEPARATOR+set}" != set; then
29682 PATH_SEPARATOR=:
29683 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29684 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29685 PATH_SEPARATOR=';'
29686 }
29687 fi
29688
29689
29690 # IFS
29691 # We need space, tab and new line, in precisely that order. Quoting is
29692 # there to prevent editors from complaining about space-tab.
29693 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29694 # splitting by setting IFS to empty value.)
29695 IFS=" "" $as_nl"
29696
29697 # Find who we are. Look in the path if we contain no directory separator.
29698 case $0 in #((
29699 *[\\/]* ) as_myself=$0 ;;
29700 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29701 for as_dir in $PATH
29702 do
29703 IFS=$as_save_IFS
29704 test -z "$as_dir" && as_dir=.
29705 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29706 done
29707 IFS=$as_save_IFS
29708
29709 ;;
29710 esac
29711 # We did not find ourselves, most probably we were run as `sh COMMAND'
29712 # in which case we are not to be found in the path.
29713 if test "x$as_myself" = x; then
29714 as_myself=$0
29715 fi
29716 if test ! -f "$as_myself"; then
29717 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29718 exit 1
29719 fi
29720
29721 # Unset variables that we do not need and which cause bugs (e.g. in
29722 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29723 # suppresses any "Segmentation fault" message there. '((' could
29724 # trigger a bug in pdksh 5.2.14.
29725 for as_var in BASH_ENV ENV MAIL MAILPATH
29726 do eval test x\${$as_var+set} = xset \
29727 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29728 done
29729 PS1='$ '
29730 PS2='> '
29731 PS4='+ '
29732
29733 # NLS nuisances.
29734 LC_ALL=C
29735 export LC_ALL
29736 LANGUAGE=C
29737 export LANGUAGE
29738
29739 # CDPATH.
29740 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29741
29742
29743 # as_fn_error ERROR [LINENO LOG_FD]
29744 # ---------------------------------
29745 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29746 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29747 # script with status $?, using 1 if that was 0.
29748 as_fn_error ()
29749 {
29750 as_status=$?; test $as_status -eq 0 && as_status=1
29751 if test "$3"; then
29752 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29753 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29754 fi
29755 $as_echo "$as_me: error: $1" >&2
29756 as_fn_exit $as_status
29757 } # as_fn_error
29758
29759
29760 # as_fn_set_status STATUS
29761 # -----------------------
29762 # Set $? to STATUS, without forking.
29763 as_fn_set_status ()
29764 {
29765 return $1
29766 } # as_fn_set_status
29767
29768 # as_fn_exit STATUS
29769 # -----------------
29770 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29771 as_fn_exit ()
29772 {
29773 set +e
29774 as_fn_set_status $1
29775 exit $1
29776 } # as_fn_exit
29777
29778 # as_fn_unset VAR
29779 # ---------------
29780 # Portably unset VAR.
29781 as_fn_unset ()
29782 {
29783 { eval $1=; unset $1;}
29784 }
29785 as_unset=as_fn_unset
29786 # as_fn_append VAR VALUE
29787 # ----------------------
29788 # Append the text in VALUE to the end of the definition contained in VAR. Take
29789 # advantage of any shell optimizations that allow amortized linear growth over
29790 # repeated appends, instead of the typical quadratic growth present in naive
29791 # implementations.
29792 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29793 eval 'as_fn_append ()
29794 {
29795 eval $1+=\$2
29796 }'
29797 else
29798 as_fn_append ()
29799 {
29800 eval $1=\$$1\$2
29801 }
29802 fi # as_fn_append
29803
29804 # as_fn_arith ARG...
29805 # ------------------
29806 # Perform arithmetic evaluation on the ARGs, and store the result in the
29807 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29808 # must be portable across $(()) and expr.
29809 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29810 eval 'as_fn_arith ()
29811 {
29812 as_val=$(( $* ))
29813 }'
29814 else
29815 as_fn_arith ()
29816 {
29817 as_val=`expr "$@" || test $? -eq 1`
29818 }
29819 fi # as_fn_arith
29820
29821
29822 if expr a : '\(a\)' >/dev/null 2>&1 &&
29823 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29824 as_expr=expr
29825 else
29826 as_expr=false
29827 fi
29828
29829 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29830 as_basename=basename
29831 else
29832 as_basename=false
29833 fi
29834
29835 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29836 as_dirname=dirname
29837 else
29838 as_dirname=false
29839 fi
29840
29841 as_me=`$as_basename -- "$0" ||
29842 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29843 X"$0" : 'X\(//\)$' \| \
29844 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29845 $as_echo X/"$0" |
29846 sed '/^.*\/\([^/][^/]*\)\/*$/{
29847 s//\1/
29848 q
29849 }
29850 /^X\/\(\/\/\)$/{
29851 s//\1/
29852 q
29853 }
29854 /^X\/\(\/\).*/{
29855 s//\1/
29856 q
29857 }
29858 s/.*/./; q'`
29859
29860 # Avoid depending upon Character Ranges.
29861 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29862 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29863 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29864 as_cr_digits='0123456789'
29865 as_cr_alnum=$as_cr_Letters$as_cr_digits
29866
29867 ECHO_C= ECHO_N= ECHO_T=
29868 case `echo -n x` in #(((((
29869 -n*)
29870 case `echo 'xy\c'` in
29871 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29872 xy) ECHO_C='\c';;
29873 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29874 ECHO_T=' ';;
29875 esac;;
29876 *)
29877 ECHO_N='-n';;
29878 esac
29879
29880 rm -f conf$$ conf$$.exe conf$$.file
29881 if test -d conf$$.dir; then
29882 rm -f conf$$.dir/conf$$.file
29883 else
29884 rm -f conf$$.dir
29885 mkdir conf$$.dir 2>/dev/null
29886 fi
29887 if (echo >conf$$.file) 2>/dev/null; then
29888 if ln -s conf$$.file conf$$ 2>/dev/null; then
29889 as_ln_s='ln -s'
29890 # ... but there are two gotchas:
29891 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29892 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29893 # In both cases, we have to default to `cp -p'.
29894 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29895 as_ln_s='cp -p'
29896 elif ln conf$$.file conf$$ 2>/dev/null; then
29897 as_ln_s=ln
29898 else
29899 as_ln_s='cp -p'
29900 fi
29901 else
29902 as_ln_s='cp -p'
29903 fi
29904 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29905 rmdir conf$$.dir 2>/dev/null
29906
29907
29908 # as_fn_mkdir_p
29909 # -------------
29910 # Create "$as_dir" as a directory, including parents if necessary.
29911 as_fn_mkdir_p ()
29912 {
29913
29914 case $as_dir in #(
29915 -*) as_dir=./$as_dir;;
29916 esac
29917 test -d "$as_dir" || eval $as_mkdir_p || {
29918 as_dirs=
29919 while :; do
29920 case $as_dir in #(
29921 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29922 *) as_qdir=$as_dir;;
29923 esac
29924 as_dirs="'$as_qdir' $as_dirs"
29925 as_dir=`$as_dirname -- "$as_dir" ||
29926 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29927 X"$as_dir" : 'X\(//\)[^/]' \| \
29928 X"$as_dir" : 'X\(//\)$' \| \
29929 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29930 $as_echo X"$as_dir" |
29931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29932 s//\1/
29933 q
29934 }
29935 /^X\(\/\/\)[^/].*/{
29936 s//\1/
29937 q
29938 }
29939 /^X\(\/\/\)$/{
29940 s//\1/
29941 q
29942 }
29943 /^X\(\/\).*/{
29944 s//\1/
29945 q
29946 }
29947 s/.*/./; q'`
29948 test -d "$as_dir" && break
29949 done
29950 test -z "$as_dirs" || eval "mkdir $as_dirs"
29951 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29952
29953
29954 } # as_fn_mkdir_p
29955 if mkdir -p . 2>/dev/null; then
29956 as_mkdir_p='mkdir -p "$as_dir"'
29957 else
29958 test -d ./-p && rmdir ./-p
29959 as_mkdir_p=false
29960 fi
29961
29962 if test -x / >/dev/null 2>&1; then
29963 as_test_x='test -x'
29964 else
29965 if ls -dL / >/dev/null 2>&1; then
29966 as_ls_L_option=L
29967 else
29968 as_ls_L_option=
29969 fi
29970 as_test_x='
29971 eval sh -c '\''
29972 if test -d "$1"; then
29973 test -d "$1/.";
29974 else
29975 case $1 in #(
29976 -*)set "./$1";;
29977 esac;
29978 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29979 ???[sx]*):;;*)false;;esac;fi
29980 '\'' sh
29981 '
29982 fi
29983 as_executable_p=$as_test_x
29984
29985 # Sed expression to map a string onto a valid CPP name.
29986 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29987
29988 # Sed expression to map a string onto a valid variable name.
29989 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29990
29991
29992 exec 6>&1
29993 ## ----------------------------------- ##
29994 ## Main body of $CONFIG_STATUS script. ##
29995 ## ----------------------------------- ##
29996 _ASEOF
29997 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29998
29999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30000 # Save the log message, to keep $0 and so on meaningful, and to
30001 # report actual input values of CONFIG_FILES etc. instead of their
30002 # values after options handling.
30003 ac_log="
30004 This file was extended by $as_me, which was
30005 generated by GNU Autoconf 2.64. Invocation command line was
30006
30007 CONFIG_FILES = $CONFIG_FILES
30008 CONFIG_HEADERS = $CONFIG_HEADERS
30009 CONFIG_LINKS = $CONFIG_LINKS
30010 CONFIG_COMMANDS = $CONFIG_COMMANDS
30011 $ $0 $@
30012
30013 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30014 "
30015
30016 _ACEOF
30017
30018 case $ac_config_files in *"
30019 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30020 esac
30021
30022 case $ac_config_headers in *"
30023 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30024 esac
30025
30026
30027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30028 # Files that config.status was made for.
30029 config_files="$ac_config_files"
30030 config_headers="$ac_config_headers"
30031 config_links="$ac_config_links"
30032 config_commands="$ac_config_commands"
30033
30034 _ACEOF
30035
30036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30037 ac_cs_usage="\
30038 \`$as_me' instantiates files and other configuration actions
30039 from templates according to the current configuration. Unless the files
30040 and actions are specified as TAGs, all are instantiated by default.
30041
30042 Usage: $0 [OPTION]... [TAG]...
30043
30044 -h, --help print this help, then exit
30045 -V, --version print version number and configuration settings, then exit
30046 -q, --quiet, --silent
30047 do not print progress messages
30048 -d, --debug don't remove temporary files
30049 --recheck update $as_me by reconfiguring in the same conditions
30050 --file=FILE[:TEMPLATE]
30051 instantiate the configuration file FILE
30052 --header=FILE[:TEMPLATE]
30053 instantiate the configuration header FILE
30054
30055 Configuration files:
30056 $config_files
30057
30058 Configuration headers:
30059 $config_headers
30060
30061 Configuration links:
30062 $config_links
30063
30064 Configuration commands:
30065 $config_commands
30066
30067 Report bugs to the package provider."
30068
30069 _ACEOF
30070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30071 ac_cs_version="\\
30072 config.status
30073 configured by $0, generated by GNU Autoconf 2.64,
30074 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30075
30076 Copyright (C) 2009 Free Software Foundation, Inc.
30077 This config.status script is free software; the Free Software Foundation
30078 gives unlimited permission to copy, distribute and modify it."
30079
30080 ac_pwd='$ac_pwd'
30081 srcdir='$srcdir'
30082 AWK='$AWK'
30083 test -n "\$AWK" || AWK=awk
30084 _ACEOF
30085
30086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30087 # The default lists apply if the user does not specify any file.
30088 ac_need_defaults=:
30089 while test $# != 0
30090 do
30091 case $1 in
30092 --*=*)
30093 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30094 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30095 ac_shift=:
30096 ;;
30097 *)
30098 ac_option=$1
30099 ac_optarg=$2
30100 ac_shift=shift
30101 ;;
30102 esac
30103
30104 case $ac_option in
30105 # Handling of the options.
30106 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30107 ac_cs_recheck=: ;;
30108 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30109 $as_echo "$ac_cs_version"; exit ;;
30110 --debug | --debu | --deb | --de | --d | -d )
30111 debug=: ;;
30112 --file | --fil | --fi | --f )
30113 $ac_shift
30114 case $ac_optarg in
30115 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30116 esac
30117 as_fn_append CONFIG_FILES " '$ac_optarg'"
30118 ac_need_defaults=false;;
30119 --header | --heade | --head | --hea )
30120 $ac_shift
30121 case $ac_optarg in
30122 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30123 esac
30124 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30125 ac_need_defaults=false;;
30126 --he | --h)
30127 # Conflict between --help and --header
30128 as_fn_error "ambiguous option: \`$1'
30129 Try \`$0 --help' for more information.";;
30130 --help | --hel | -h )
30131 $as_echo "$ac_cs_usage"; exit ;;
30132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30133 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30134 ac_cs_silent=: ;;
30135
30136 # This is an error.
30137 -*) as_fn_error "unrecognized option: \`$1'
30138 Try \`$0 --help' for more information." ;;
30139
30140 *) as_fn_append ac_config_targets " $1"
30141 ac_need_defaults=false ;;
30142
30143 esac
30144 shift
30145 done
30146
30147 ac_configure_extra_args=
30148
30149 if $ac_cs_silent; then
30150 exec 6>/dev/null
30151 ac_configure_extra_args="$ac_configure_extra_args --silent"
30152 fi
30153
30154 _ACEOF
30155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30156 if \$ac_cs_recheck; then
30157 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30158 shift
30159 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30160 CONFIG_SHELL='$SHELL'
30161 export CONFIG_SHELL
30162 exec "\$@"
30163 fi
30164
30165 _ACEOF
30166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30167 exec 5>>config.log
30168 {
30169 echo
30170 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30171 ## Running $as_me. ##
30172 _ASBOX
30173 $as_echo "$ac_log"
30174 } >&5
30175
30176 _ACEOF
30177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30178 #
30179 # INIT-COMMANDS
30180 #
30181 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30182 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30183 subdirs='$subdirs'
30184
30185 _ACEOF
30186
30187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30188
30189 # Handling of arguments.
30190 for ac_config_target in $ac_config_targets
30191 do
30192 case $ac_config_target in
30193 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30194 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30195 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30196 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30197 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30198 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30199 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30200 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30201 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30202
30203 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30204 esac
30205 done
30206
30207
30208 # If the user did not use the arguments to specify the items to instantiate,
30209 # then the envvar interface is used. Set only those that are not.
30210 # We use the long form for the default assignment because of an extremely
30211 # bizarre bug on SunOS 4.1.3.
30212 if $ac_need_defaults; then
30213 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30214 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30215 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30216 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30217 fi
30218
30219 # Have a temporary directory for convenience. Make it in the build tree
30220 # simply because there is no reason against having it here, and in addition,
30221 # creating and moving files from /tmp can sometimes cause problems.
30222 # Hook for its removal unless debugging.
30223 # Note that there is a small window in which the directory will not be cleaned:
30224 # after its creation but before its name has been assigned to `$tmp'.
30225 $debug ||
30226 {
30227 tmp=
30228 trap 'exit_status=$?
30229 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30230 ' 0
30231 trap 'as_fn_exit 1' 1 2 13 15
30232 }
30233 # Create a (secure) tmp directory for tmp files.
30234
30235 {
30236 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30237 test -n "$tmp" && test -d "$tmp"
30238 } ||
30239 {
30240 tmp=./conf$$-$RANDOM
30241 (umask 077 && mkdir "$tmp")
30242 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30243
30244 # Set up the scripts for CONFIG_FILES section.
30245 # No need to generate them if there are no CONFIG_FILES.
30246 # This happens for instance with `./config.status config.h'.
30247 if test -n "$CONFIG_FILES"; then
30248
30249 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30250 ac_cs_awk_getline=:
30251 ac_cs_awk_pipe_init=
30252 ac_cs_awk_read_file='
30253 while ((getline aline < (F[key])) > 0)
30254 print(aline)
30255 close(F[key])'
30256 ac_cs_awk_pipe_fini=
30257 else
30258 ac_cs_awk_getline=false
30259 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30260 ac_cs_awk_read_file='
30261 print "|#_!!_#|"
30262 print "cat " F[key] " &&"
30263 '$ac_cs_awk_pipe_init
30264 # The final `:' finishes the AND list.
30265 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30266 fi
30267 ac_cr=`echo X | tr X '\015'`
30268 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30269 # But we know of no other shell where ac_cr would be empty at this
30270 # point, so we can use a bashism as a fallback.
30271 if test "x$ac_cr" = x; then
30272 eval ac_cr=\$\'\\r\'
30273 fi
30274 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30275 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30276 ac_cs_awk_cr='\r'
30277 else
30278 ac_cs_awk_cr=$ac_cr
30279 fi
30280
30281 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30282 _ACEOF
30283
30284 # Create commands to substitute file output variables.
30285 {
30286 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30287 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30288 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30289 echo "_ACAWK" &&
30290 echo "_ACEOF"
30291 } >conf$$files.sh &&
30292 . ./conf$$files.sh ||
30293 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30294 rm -f conf$$files.sh
30295
30296 {
30297 echo "cat >conf$$subs.awk <<_ACEOF" &&
30298 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30299 echo "_ACEOF"
30300 } >conf$$subs.sh ||
30301 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30302 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30303 ac_delim='%!_!# '
30304 for ac_last_try in false false false false false :; do
30305 . ./conf$$subs.sh ||
30306 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30307
30308 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30309 if test $ac_delim_n = $ac_delim_num; then
30310 break
30311 elif $ac_last_try; then
30312 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30313 else
30314 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30315 fi
30316 done
30317 rm -f conf$$subs.sh
30318
30319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30320 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30321 _ACEOF
30322 sed -n '
30323 h
30324 s/^/S["/; s/!.*/"]=/
30325 p
30326 g
30327 s/^[^!]*!//
30328 :repl
30329 t repl
30330 s/'"$ac_delim"'$//
30331 t delim
30332 :nl
30333 h
30334 s/\(.\{148\}\).*/\1/
30335 t more1
30336 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30337 p
30338 n
30339 b repl
30340 :more1
30341 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30342 p
30343 g
30344 s/.\{148\}//
30345 t nl
30346 :delim
30347 h
30348 s/\(.\{148\}\).*/\1/
30349 t more2
30350 s/["\\]/\\&/g; s/^/"/; s/$/"/
30351 p
30352 b
30353 :more2
30354 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30355 p
30356 g
30357 s/.\{148\}//
30358 t delim
30359 ' <conf$$subs.awk | sed '
30360 /^[^""]/{
30361 N
30362 s/\n//
30363 }
30364 ' >>$CONFIG_STATUS || ac_write_fail=1
30365 rm -f conf$$subs.awk
30366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30367 _ACAWK
30368 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30369 for (key in S) S_is_set[key] = 1
30370 FS = "\a"
30371 \$ac_cs_awk_pipe_init
30372 }
30373 {
30374 line = $ 0
30375 nfields = split(line, field, "@")
30376 substed = 0
30377 len = length(field[1])
30378 for (i = 2; i < nfields; i++) {
30379 key = field[i]
30380 keylen = length(key)
30381 if (S_is_set[key]) {
30382 value = S[key]
30383 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30384 len += length(value) + length(field[++i])
30385 substed = 1
30386 } else
30387 len += 1 + keylen
30388 }
30389 if (nfields == 3 && !substed) {
30390 key = field[2]
30391 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30392 \$ac_cs_awk_read_file
30393 next
30394 }
30395 }
30396 print line
30397 }
30398 \$ac_cs_awk_pipe_fini
30399 _ACAWK
30400 _ACEOF
30401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30402 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30403 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30404 else
30405 cat
30406 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30407 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30408 _ACEOF
30409
30410 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30411 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30412 # trailing colons and then remove the whole line if VPATH becomes empty
30413 # (actually we leave an empty line to preserve line numbers).
30414 if test "x$srcdir" = x.; then
30415 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30416 s/:*\$(srcdir):*/:/
30417 s/:*\${srcdir}:*/:/
30418 s/:*@srcdir@:*/:/
30419 s/^\([^=]*=[ ]*\):*/\1/
30420 s/:*$//
30421 s/^[^=]*=[ ]*$//
30422 }'
30423 fi
30424
30425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30426 fi # test -n "$CONFIG_FILES"
30427
30428 # Set up the scripts for CONFIG_HEADERS section.
30429 # No need to generate them if there are no CONFIG_HEADERS.
30430 # This happens for instance with `./config.status Makefile'.
30431 if test -n "$CONFIG_HEADERS"; then
30432 cat >"$tmp/defines.awk" <<\_ACAWK ||
30433 BEGIN {
30434 _ACEOF
30435
30436 # Transform confdefs.h into an awk script `defines.awk', embedded as
30437 # here-document in config.status, that substitutes the proper values into
30438 # config.h.in to produce config.h.
30439
30440 # Create a delimiter string that does not exist in confdefs.h, to ease
30441 # handling of long lines.
30442 ac_delim='%!_!# '
30443 for ac_last_try in false false :; do
30444 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30445 if test -z "$ac_t"; then
30446 break
30447 elif $ac_last_try; then
30448 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30449 else
30450 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30451 fi
30452 done
30453
30454 # For the awk script, D is an array of macro values keyed by name,
30455 # likewise P contains macro parameters if any. Preserve backslash
30456 # newline sequences.
30457
30458 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30459 sed -n '
30460 s/.\{148\}/&'"$ac_delim"'/g
30461 t rset
30462 :rset
30463 s/^[ ]*#[ ]*define[ ][ ]*/ /
30464 t def
30465 d
30466 :def
30467 s/\\$//
30468 t bsnl
30469 s/["\\]/\\&/g
30470 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30471 D["\1"]=" \3"/p
30472 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30473 d
30474 :bsnl
30475 s/["\\]/\\&/g
30476 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30477 D["\1"]=" \3\\\\\\n"\\/p
30478 t cont
30479 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30480 t cont
30481 d
30482 :cont
30483 n
30484 s/.\{148\}/&'"$ac_delim"'/g
30485 t clear
30486 :clear
30487 s/\\$//
30488 t bsnlc
30489 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30490 d
30491 :bsnlc
30492 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30493 b cont
30494 ' <confdefs.h | sed '
30495 s/'"$ac_delim"'/"\\\
30496 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30497
30498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30499 for (key in D) D_is_set[key] = 1
30500 FS = "\a"
30501 }
30502 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30503 line = \$ 0
30504 split(line, arg, " ")
30505 if (arg[1] == "#") {
30506 defundef = arg[2]
30507 mac1 = arg[3]
30508 } else {
30509 defundef = substr(arg[1], 2)
30510 mac1 = arg[2]
30511 }
30512 split(mac1, mac2, "(") #)
30513 macro = mac2[1]
30514 prefix = substr(line, 1, index(line, defundef) - 1)
30515 if (D_is_set[macro]) {
30516 # Preserve the white space surrounding the "#".
30517 print prefix "define", macro P[macro] D[macro]
30518 next
30519 } else {
30520 # Replace #undef with comments. This is necessary, for example,
30521 # in the case of _POSIX_SOURCE, which is predefined and required
30522 # on some systems where configure will not decide to define it.
30523 if (defundef == "undef") {
30524 print "/*", prefix defundef, macro, "*/"
30525 next
30526 }
30527 }
30528 }
30529 { print }
30530 _ACAWK
30531 _ACEOF
30532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30533 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30534 fi # test -n "$CONFIG_HEADERS"
30535
30536
30537 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30538 shift
30539 for ac_tag
30540 do
30541 case $ac_tag in
30542 :[FHLC]) ac_mode=$ac_tag; continue;;
30543 esac
30544 case $ac_mode$ac_tag in
30545 :[FHL]*:*);;
30546 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30547 :[FH]-) ac_tag=-:-;;
30548 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30549 esac
30550 ac_save_IFS=$IFS
30551 IFS=:
30552 set x $ac_tag
30553 IFS=$ac_save_IFS
30554 shift
30555 ac_file=$1
30556 shift
30557
30558 case $ac_mode in
30559 :L) ac_source=$1;;
30560 :[FH])
30561 ac_file_inputs=
30562 for ac_f
30563 do
30564 case $ac_f in
30565 -) ac_f="$tmp/stdin";;
30566 *) # Look for the file first in the build tree, then in the source tree
30567 # (if the path is not absolute). The absolute path cannot be DOS-style,
30568 # because $ac_f cannot contain `:'.
30569 test -f "$ac_f" ||
30570 case $ac_f in
30571 [\\/$]*) false;;
30572 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30573 esac ||
30574 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30575 esac
30576 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30577 as_fn_append ac_file_inputs " '$ac_f'"
30578 done
30579
30580 # Let's still pretend it is `configure' which instantiates (i.e., don't
30581 # use $as_me), people would be surprised to read:
30582 # /* config.h. Generated by config.status. */
30583 configure_input='Generated from '`
30584 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30585 `' by configure.'
30586 if test x"$ac_file" != x-; then
30587 configure_input="$ac_file. $configure_input"
30588 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30589 $as_echo "$as_me: creating $ac_file" >&6;}
30590 fi
30591 # Neutralize special characters interpreted by sed in replacement strings.
30592 case $configure_input in #(
30593 *\&* | *\|* | *\\* )
30594 ac_sed_conf_input=`$as_echo "$configure_input" |
30595 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30596 *) ac_sed_conf_input=$configure_input;;
30597 esac
30598
30599 case $ac_tag in
30600 *:-:* | *:-) cat >"$tmp/stdin" \
30601 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30602 esac
30603 ;;
30604 esac
30605
30606 ac_dir=`$as_dirname -- "$ac_file" ||
30607 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30608 X"$ac_file" : 'X\(//\)[^/]' \| \
30609 X"$ac_file" : 'X\(//\)$' \| \
30610 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30611 $as_echo X"$ac_file" |
30612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30613 s//\1/
30614 q
30615 }
30616 /^X\(\/\/\)[^/].*/{
30617 s//\1/
30618 q
30619 }
30620 /^X\(\/\/\)$/{
30621 s//\1/
30622 q
30623 }
30624 /^X\(\/\).*/{
30625 s//\1/
30626 q
30627 }
30628 s/.*/./; q'`
30629 as_dir="$ac_dir"; as_fn_mkdir_p
30630 ac_builddir=.
30631
30632 case "$ac_dir" in
30633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30634 *)
30635 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30636 # A ".." for each directory in $ac_dir_suffix.
30637 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30638 case $ac_top_builddir_sub in
30639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30641 esac ;;
30642 esac
30643 ac_abs_top_builddir=$ac_pwd
30644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30645 # for backward compatibility:
30646 ac_top_builddir=$ac_top_build_prefix
30647
30648 case $srcdir in
30649 .) # We are building in place.
30650 ac_srcdir=.
30651 ac_top_srcdir=$ac_top_builddir_sub
30652 ac_abs_top_srcdir=$ac_pwd ;;
30653 [\\/]* | ?:[\\/]* ) # Absolute name.
30654 ac_srcdir=$srcdir$ac_dir_suffix;
30655 ac_top_srcdir=$srcdir
30656 ac_abs_top_srcdir=$srcdir ;;
30657 *) # Relative name.
30658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30659 ac_top_srcdir=$ac_top_build_prefix$srcdir
30660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30661 esac
30662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30663
30664
30665 case $ac_mode in
30666 :F)
30667 #
30668 # CONFIG_FILE
30669 #
30670
30671 _ACEOF
30672
30673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30674 # If the template does not know about datarootdir, expand it.
30675 # FIXME: This hack should be removed a few years after 2.60.
30676 ac_datarootdir_hack=; ac_datarootdir_seen=
30677 ac_sed_dataroot='
30678 /datarootdir/ {
30679 p
30680 q
30681 }
30682 /@datadir@/p
30683 /@docdir@/p
30684 /@infodir@/p
30685 /@localedir@/p
30686 /@mandir@/p'
30687 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30688 *datarootdir*) ac_datarootdir_seen=yes;;
30689 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30691 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30692 _ACEOF
30693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30694 ac_datarootdir_hack='
30695 s&@datadir@&$datadir&g
30696 s&@docdir@&$docdir&g
30697 s&@infodir@&$infodir&g
30698 s&@localedir@&$localedir&g
30699 s&@mandir@&$mandir&g
30700 s&\\\${datarootdir}&$datarootdir&g' ;;
30701 esac
30702 _ACEOF
30703
30704 # Neutralize VPATH when `$srcdir' = `.'.
30705 # Shell code in configure.ac might set extrasub.
30706 # FIXME: do we really want to maintain this feature?
30707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30708 ac_sed_extra="$ac_vpsub
30709 $extrasub
30710 _ACEOF
30711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30712 :t
30713 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30714 s|@configure_input@|$ac_sed_conf_input|;t t
30715 s&@top_builddir@&$ac_top_builddir_sub&;t t
30716 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30717 s&@srcdir@&$ac_srcdir&;t t
30718 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30719 s&@top_srcdir@&$ac_top_srcdir&;t t
30720 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30721 s&@builddir@&$ac_builddir&;t t
30722 s&@abs_builddir@&$ac_abs_builddir&;t t
30723 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30724 $ac_datarootdir_hack
30725 "
30726 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30727 if $ac_cs_awk_getline; then
30728 $AWK -f "$tmp/subs.awk"
30729 else
30730 $AWK -f "$tmp/subs.awk" | $SHELL
30731 fi >$tmp/out \
30732 || as_fn_error "could not create $ac_file" "$LINENO" 5
30733
30734 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30735 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30736 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30738 which seems to be undefined. Please make sure it is defined." >&5
30739 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30740 which seems to be undefined. Please make sure it is defined." >&2;}
30741
30742 rm -f "$tmp/stdin"
30743 case $ac_file in
30744 -) cat "$tmp/out" && rm -f "$tmp/out";;
30745 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30746 esac \
30747 || as_fn_error "could not create $ac_file" "$LINENO" 5
30748 ;;
30749 :H)
30750 #
30751 # CONFIG_HEADER
30752 #
30753 if test x"$ac_file" != x-; then
30754 {
30755 $as_echo "/* $configure_input */" \
30756 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30757 } >"$tmp/config.h" \
30758 || as_fn_error "could not create $ac_file" "$LINENO" 5
30759 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30760 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30761 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30762 else
30763 rm -f "$ac_file"
30764 mv "$tmp/config.h" "$ac_file" \
30765 || as_fn_error "could not create $ac_file" "$LINENO" 5
30766 fi
30767 else
30768 $as_echo "/* $configure_input */" \
30769 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30770 || as_fn_error "could not create -" "$LINENO" 5
30771 fi
30772 ;;
30773 :L)
30774 #
30775 # CONFIG_LINK
30776 #
30777
30778 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30779 :
30780 else
30781 # Prefer the file from the source tree if names are identical.
30782 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30783 ac_source=$srcdir/$ac_source
30784 fi
30785
30786 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30787 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30788
30789 if test ! -r "$ac_source"; then
30790 as_fn_error "$ac_source: file not found" "$LINENO" 5
30791 fi
30792 rm -f "$ac_file"
30793
30794 # Try a relative symlink, then a hard link, then a copy.
30795 case $srcdir in
30796 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30797 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30798 esac
30799 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30800 ln "$ac_source" "$ac_file" 2>/dev/null ||
30801 cp -p "$ac_source" "$ac_file" ||
30802 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30803 fi
30804 ;;
30805 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30806 $as_echo "$as_me: executing $ac_file commands" >&6;}
30807 ;;
30808 esac
30809
30810
30811 case $ac_file$ac_mode in
30812 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30813 "gccdepdir":C)
30814 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30815 for lang in $subdirs c-family common
30816 do
30817 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30818 done ;;
30819 "as":F) chmod +x as ;;
30820 "collect-ld":F) chmod +x collect-ld ;;
30821 "nm":F) chmod +x nm ;;
30822 "default":C)
30823 case ${CONFIG_HEADERS} in
30824 *auto-host.h:config.in*)
30825 echo > cstamp-h ;;
30826 esac
30827 # Make sure all the subdirs exist.
30828 for d in $subdirs doc build common c-family
30829 do
30830 test -d $d || mkdir $d
30831 done
30832 ;;
30833
30834 esac
30835 done # for ac_tag
30836
30837
30838 as_fn_exit 0
30839 _ACEOF
30840 ac_clean_files=$ac_clean_files_save
30841
30842 test $ac_write_fail = 0 ||
30843 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30844
30845
30846 # configure is writing to config.log, and then calls config.status.
30847 # config.status does its own redirection, appending to config.log.
30848 # Unfortunately, on DOS this fails, as config.log is still kept open
30849 # by configure, so config.status won't be able to write to it; its
30850 # output is simply discarded. So we exec the FD to /dev/null,
30851 # effectively closing config.log, so it can be properly (re)opened and
30852 # appended to by config.status. When coming back to configure, we
30853 # need to make the FD available again.
30854 if test "$no_create" != yes; then
30855 ac_cs_success=:
30856 ac_config_status_args=
30857 test "$silent" = yes &&
30858 ac_config_status_args="$ac_config_status_args --quiet"
30859 exec 5>/dev/null
30860 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30861 exec 5>>config.log
30862 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30863 # would make configure fail if this is the last instruction.
30864 $ac_cs_success || as_fn_exit $?
30865 fi
30866 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30868 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30869 fi
30870
30871