configure.ac: Split CHECKING_P into CHECKING_P and ENABLE_EXTRA_CHECKING.
[gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 enable_default_ssp
682 thin_archive_support
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_GOLD_FOR_TARGET
689 ORIGINAL_LD_BFD_FOR_TARGET
690 ORIGINAL_LD_FOR_TARGET
691 ORIGINAL_PLUGIN_LD_FOR_TARGET
692 gcc_cv_ld
693 ORIGINAL_AS_FOR_TARGET
694 gcc_cv_as
695 enable_fast_install
696 objdir
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 STRIP
703 OBJDUMP
704 ac_ct_DUMPBIN
705 DUMPBIN
706 LD
707 FGREP
708 SED
709 LIBTOOL
710 collect2
711 NO_PIE_FLAG_FOR_BUILD
712 NO_PIE_CFLAGS_FOR_BUILD
713 BUILD_NO_PIE_FLAG
714 BUILD_NO_PIE_CFLAGS
715 STMP_FIXINC
716 BUILD_LDFLAGS
717 BUILD_CXXFLAGS
718 BUILD_CFLAGS
719 CXX_FOR_BUILD
720 CC_FOR_BUILD
721 inhibit_libc
722 SYSTEM_HEADER_DIR
723 ALL
724 CROSS
725 CATOBJEXT
726 GENCAT
727 INSTOBJEXT
728 DATADIRNAME
729 CATALOGS
730 POSUB
731 GMSGFMT
732 XGETTEXT
733 INCINTL
734 LIBINTL_DEP
735 LIBINTL
736 USE_NLS
737 extra_opt_files
738 extra_modes_file
739 NATIVE_SYSTEM_HEADER_DIR
740 objext
741 manext
742 LIBICONV_DEP
743 LTLIBICONV
744 LIBICONV
745 LDEXP_LIB
746 EXTRA_GCC_LIBS
747 GNAT_LIBEXC
748 COLLECT2_LIBS
749 CXXDEPMODE
750 DEPDIR
751 am__leading_dot
752 doc_build_sys
753 AR
754 NM
755 BISON
756 FLEX
757 GENERATED_MANPAGES
758 BUILD_INFO
759 MAKEINFO
760 have_mktemp_command
761 make_compare_target
762 INSTALL_DATA
763 INSTALL_PROGRAM
764 INSTALL
765 ranlib_flags
766 RANLIB
767 LN
768 LN_S
769 AWK
770 SET_MAKE
771 accel_dir_suffix
772 real_target_noncanonical
773 enable_as_accelerator
774 REPORT_BUGS_TEXI
775 REPORT_BUGS_TO
776 PKGVERSION
777 CONFIGURE_SPECS
778 enable_shared
779 enable_fixed_point
780 enable_decimal_float
781 with_float
782 with_cpu
783 enable_multiarch
784 enable_multilib
785 coverage_flags
786 valgrind_command
787 valgrind_path_defines
788 valgrind_path
789 TREECHECKING
790 nocommon_flag
791 noexception_flags
792 warn_cxxflags
793 warn_cflags
794 c_strict_warn
795 strict_warn
796 c_loose_warn
797 loose_warn
798 aliasing_flags
799 CPP
800 EGREP
801 GREP
802 CXXCPP
803 PICFLAG_FOR_TARGET
804 GNATMAKE
805 GNATBIND
806 ac_ct_CXX
807 CXXFLAGS
808 CXX
809 OBJEXT
810 EXEEXT
811 ac_ct_CC
812 CPPFLAGS
813 LDFLAGS
814 CFLAGS
815 CC
816 GENINSRC
817 CROSS_SYSTEM_HEADER_DIR
818 TARGET_SYSTEM_ROOT_DEFINE
819 TARGET_SYSTEM_ROOT
820 SYSROOT_CFLAGS_FOR_TARGET
821 target_subdir
822 host_subdir
823 build_subdir
824 build_libsubdir
825 target_noncanonical
826 host_noncanonical
827 target_os
828 target_vendor
829 target_cpu
830 target
831 host_os
832 host_vendor
833 host_cpu
834 host
835 build_os
836 build_vendor
837 build_cpu
838 build
839 target_alias
840 host_alias
841 build_alias
842 LIBS
843 ECHO_T
844 ECHO_N
845 ECHO_C
846 DEFS
847 mandir
848 localedir
849 libdir
850 psdir
851 pdfdir
852 dvidir
853 htmldir
854 infodir
855 docdir
856 oldincludedir
857 includedir
858 localstatedir
859 sharedstatedir
860 sysconfdir
861 datadir
862 datarootdir
863 libexecdir
864 sbindir
865 bindir
866 program_transform_name
867 prefix
868 exec_prefix
869 PACKAGE_URL
870 PACKAGE_BUGREPORT
871 PACKAGE_STRING
872 PACKAGE_VERSION
873 PACKAGE_TARNAME
874 PACKAGE_NAME
875 PATH_SEPARATOR
876 SHELL'
877 ac_subst_files='option_includes
878 language_hooks'
879 ac_user_opts='
880 enable_option_checking
881 with_build_libsubdir
882 with_local_prefix
883 with_native_system_header_dir
884 with_build_sysroot
885 with_sysroot
886 with_gxx_include_dir
887 with_cpp_install_dir
888 enable_generated_files_in_srcdir
889 with_gnu_ld
890 with_ld
891 with_demangler_in_ld
892 with_gnu_as
893 with_as
894 enable_largefile
895 enable_build_format_warnings
896 enable_werror_always
897 enable_checking
898 enable_coverage
899 enable_gather_detailed_mem_stats
900 enable_valgrind_annotations
901 with_stabs
902 enable_multilib
903 enable_multiarch
904 enable___cxa_atexit
905 enable_decimal_float
906 enable_fixed_point
907 enable_threads
908 enable_tls
909 enable_vtable_verify
910 enable_objc_gc
911 with_dwarf2
912 enable_shared
913 with_specs
914 with_pkgversion
915 with_bugurl
916 enable_languages
917 with_multilib_list
918 enable_rpath
919 with_libiconv_prefix
920 enable_sjlj_exceptions
921 enable_secureplt
922 enable_leading_mingw64_underscores
923 enable_cld
924 enable_frame_pointer
925 enable_win32_registry
926 enable_static
927 with_pic
928 enable_fast_install
929 enable_libtool_lock
930 enable_ld
931 enable_gold
932 with_plugin_ld
933 enable_gnu_indirect_function
934 enable_initfini_array
935 enable_comdat
936 enable_fix_cortex_a53_835769
937 enable_fix_cortex_a53_843419
938 with_glibc_version
939 enable_gnu_unique_object
940 enable_linker_build_id
941 enable_default_ssp
942 with_long_double_128
943 with_gc
944 with_system_zlib
945 enable_maintainer_mode
946 enable_link_mutex
947 enable_version_specific_runtime_libs
948 enable_plugin
949 enable_host_shared
950 enable_libquadmath_support
951 with_linker_hash_style
952 with_diagnostics_color
953 enable_default_pie
954 '
955 ac_precious_vars='build_alias
956 host_alias
957 target_alias
958 CC
959 CFLAGS
960 LDFLAGS
961 LIBS
962 CPPFLAGS
963 CXX
964 CXXFLAGS
965 CCC
966 CXXCPP
967 CPP
968 GMPLIBS
969 GMPINC
970 ISLLIBS
971 ISLINC'
972
973
974 # Initialize some variables set by options.
975 ac_init_help=
976 ac_init_version=false
977 ac_unrecognized_opts=
978 ac_unrecognized_sep=
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
981 cache_file=/dev/null
982 exec_prefix=NONE
983 no_create=
984 no_recursion=
985 prefix=NONE
986 program_prefix=NONE
987 program_suffix=NONE
988 program_transform_name=s,x,x,
989 silent=
990 site=
991 srcdir=
992 verbose=
993 x_includes=NONE
994 x_libraries=NONE
995
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir='${exec_prefix}/bin'
1003 sbindir='${exec_prefix}/sbin'
1004 libexecdir='${exec_prefix}/libexec'
1005 datarootdir='${prefix}/share'
1006 datadir='${datarootdir}'
1007 sysconfdir='${prefix}/etc'
1008 sharedstatedir='${prefix}/com'
1009 localstatedir='${prefix}/var'
1010 includedir='${prefix}/include'
1011 oldincludedir='/usr/include'
1012 docdir='${datarootdir}/doc/${PACKAGE}'
1013 infodir='${datarootdir}/info'
1014 htmldir='${docdir}'
1015 dvidir='${docdir}'
1016 pdfdir='${docdir}'
1017 psdir='${docdir}'
1018 libdir='${exec_prefix}/lib'
1019 localedir='${datarootdir}/locale'
1020 mandir='${datarootdir}/man'
1021
1022 ac_prev=
1023 ac_dashdash=
1024 for ac_option
1025 do
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\$ac_option
1029 ac_prev=
1030 continue
1031 fi
1032
1033 case $ac_option in
1034 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 *) ac_optarg=yes ;;
1036 esac
1037
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1039
1040 case $ac_dashdash$ac_option in
1041 --)
1042 ac_dashdash=yes ;;
1043
1044 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045 ac_prev=bindir ;;
1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047 bindir=$ac_optarg ;;
1048
1049 -build | --build | --buil | --bui | --bu)
1050 ac_prev=build_alias ;;
1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052 build_alias=$ac_optarg ;;
1053
1054 -cache-file | --cache-file | --cache-fil | --cache-fi \
1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056 ac_prev=cache_file ;;
1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059 cache_file=$ac_optarg ;;
1060
1061 --config-cache | -C)
1062 cache_file=config.cache ;;
1063
1064 -datadir | --datadir | --datadi | --datad)
1065 ac_prev=datadir ;;
1066 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067 datadir=$ac_optarg ;;
1068
1069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070 | --dataroo | --dataro | --datar)
1071 ac_prev=datarootdir ;;
1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074 datarootdir=$ac_optarg ;;
1075
1076 -disable-* | --disable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1084 *"
1085 "enable_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=no ;;
1091
1092 -docdir | --docdir | --docdi | --doc | --do)
1093 ac_prev=docdir ;;
1094 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1095 docdir=$ac_optarg ;;
1096
1097 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1098 ac_prev=dvidir ;;
1099 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1100 dvidir=$ac_optarg ;;
1101
1102 -enable-* | --enable-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error "invalid feature name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1110 *"
1111 "enable_$ac_useropt"
1112 "*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval enable_$ac_useropt=\$ac_optarg ;;
1117
1118 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1119 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1120 | --exec | --exe | --ex)
1121 ac_prev=exec_prefix ;;
1122 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1123 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1124 | --exec=* | --exe=* | --ex=*)
1125 exec_prefix=$ac_optarg ;;
1126
1127 -gas | --gas | --ga | --g)
1128 # Obsolete; use --with-gas.
1129 with_gas=yes ;;
1130
1131 -help | --help | --hel | --he | -h)
1132 ac_init_help=long ;;
1133 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1134 ac_init_help=recursive ;;
1135 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1136 ac_init_help=short ;;
1137
1138 -host | --host | --hos | --ho)
1139 ac_prev=host_alias ;;
1140 -host=* | --host=* | --hos=* | --ho=*)
1141 host_alias=$ac_optarg ;;
1142
1143 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1144 ac_prev=htmldir ;;
1145 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1146 | --ht=*)
1147 htmldir=$ac_optarg ;;
1148
1149 -includedir | --includedir | --includedi | --included | --include \
1150 | --includ | --inclu | --incl | --inc)
1151 ac_prev=includedir ;;
1152 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1153 | --includ=* | --inclu=* | --incl=* | --inc=*)
1154 includedir=$ac_optarg ;;
1155
1156 -infodir | --infodir | --infodi | --infod | --info | --inf)
1157 ac_prev=infodir ;;
1158 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1159 infodir=$ac_optarg ;;
1160
1161 -libdir | --libdir | --libdi | --libd)
1162 ac_prev=libdir ;;
1163 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1164 libdir=$ac_optarg ;;
1165
1166 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1167 | --libexe | --libex | --libe)
1168 ac_prev=libexecdir ;;
1169 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1170 | --libexe=* | --libex=* | --libe=*)
1171 libexecdir=$ac_optarg ;;
1172
1173 -localedir | --localedir | --localedi | --localed | --locale)
1174 ac_prev=localedir ;;
1175 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1176 localedir=$ac_optarg ;;
1177
1178 -localstatedir | --localstatedir | --localstatedi | --localstated \
1179 | --localstate | --localstat | --localsta | --localst | --locals)
1180 ac_prev=localstatedir ;;
1181 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1182 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1183 localstatedir=$ac_optarg ;;
1184
1185 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1186 ac_prev=mandir ;;
1187 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1188 mandir=$ac_optarg ;;
1189
1190 -nfp | --nfp | --nf)
1191 # Obsolete; use --without-fp.
1192 with_fp=no ;;
1193
1194 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1195 | --no-cr | --no-c | -n)
1196 no_create=yes ;;
1197
1198 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1199 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1200 no_recursion=yes ;;
1201
1202 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1203 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1204 | --oldin | --oldi | --old | --ol | --o)
1205 ac_prev=oldincludedir ;;
1206 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1207 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1208 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1209 oldincludedir=$ac_optarg ;;
1210
1211 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1212 ac_prev=prefix ;;
1213 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1214 prefix=$ac_optarg ;;
1215
1216 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1217 | --program-pre | --program-pr | --program-p)
1218 ac_prev=program_prefix ;;
1219 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1220 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1221 program_prefix=$ac_optarg ;;
1222
1223 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1224 | --program-suf | --program-su | --program-s)
1225 ac_prev=program_suffix ;;
1226 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1227 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1228 program_suffix=$ac_optarg ;;
1229
1230 -program-transform-name | --program-transform-name \
1231 | --program-transform-nam | --program-transform-na \
1232 | --program-transform-n | --program-transform- \
1233 | --program-transform | --program-transfor \
1234 | --program-transfo | --program-transf \
1235 | --program-trans | --program-tran \
1236 | --progr-tra | --program-tr | --program-t)
1237 ac_prev=program_transform_name ;;
1238 -program-transform-name=* | --program-transform-name=* \
1239 | --program-transform-nam=* | --program-transform-na=* \
1240 | --program-transform-n=* | --program-transform-=* \
1241 | --program-transform=* | --program-transfor=* \
1242 | --program-transfo=* | --program-transf=* \
1243 | --program-trans=* | --program-tran=* \
1244 | --progr-tra=* | --program-tr=* | --program-t=*)
1245 program_transform_name=$ac_optarg ;;
1246
1247 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1248 ac_prev=pdfdir ;;
1249 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1250 pdfdir=$ac_optarg ;;
1251
1252 -psdir | --psdir | --psdi | --psd | --ps)
1253 ac_prev=psdir ;;
1254 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1255 psdir=$ac_optarg ;;
1256
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1259 silent=yes ;;
1260
1261 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1262 ac_prev=sbindir ;;
1263 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1264 | --sbi=* | --sb=*)
1265 sbindir=$ac_optarg ;;
1266
1267 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1268 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1269 | --sharedst | --shareds | --shared | --share | --shar \
1270 | --sha | --sh)
1271 ac_prev=sharedstatedir ;;
1272 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1273 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1274 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1275 | --sha=* | --sh=*)
1276 sharedstatedir=$ac_optarg ;;
1277
1278 -site | --site | --sit)
1279 ac_prev=site ;;
1280 -site=* | --site=* | --sit=*)
1281 site=$ac_optarg ;;
1282
1283 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1284 ac_prev=srcdir ;;
1285 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1286 srcdir=$ac_optarg ;;
1287
1288 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1289 | --syscon | --sysco | --sysc | --sys | --sy)
1290 ac_prev=sysconfdir ;;
1291 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1292 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1293 sysconfdir=$ac_optarg ;;
1294
1295 -target | --target | --targe | --targ | --tar | --ta | --t)
1296 ac_prev=target_alias ;;
1297 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1298 target_alias=$ac_optarg ;;
1299
1300 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1301 verbose=yes ;;
1302
1303 -version | --version | --versio | --versi | --vers | -V)
1304 ac_init_version=: ;;
1305
1306 -with-* | --with-*)
1307 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310 as_fn_error "invalid package name: $ac_useropt"
1311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1314 *"
1315 "with_$ac_useropt"
1316 "*) ;;
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1319 esac
1320 eval with_$ac_useropt=\$ac_optarg ;;
1321
1322 -without-* | --without-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 as_fn_error "invalid package name: $ac_useropt"
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1330 *"
1331 "with_$ac_useropt"
1332 "*) ;;
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1335 esac
1336 eval with_$ac_useropt=no ;;
1337
1338 --x)
1339 # Obsolete; use --with-x.
1340 with_x=yes ;;
1341
1342 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1343 | --x-incl | --x-inc | --x-in | --x-i)
1344 ac_prev=x_includes ;;
1345 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1346 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1347 x_includes=$ac_optarg ;;
1348
1349 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1350 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1351 ac_prev=x_libraries ;;
1352 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1353 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1354 x_libraries=$ac_optarg ;;
1355
1356 -*) as_fn_error "unrecognized option: \`$ac_option'
1357 Try \`$0 --help' for more information."
1358 ;;
1359
1360 *=*)
1361 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1362 # Reject names that are not valid shell variable names.
1363 case $ac_envvar in #(
1364 '' | [0-9]* | *[!_$as_cr_alnum]* )
1365 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1366 esac
1367 eval $ac_envvar=\$ac_optarg
1368 export $ac_envvar ;;
1369
1370 *)
1371 # FIXME: should be removed in autoconf 3.0.
1372 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1374 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1376 ;;
1377
1378 esac
1379 done
1380
1381 if test -n "$ac_prev"; then
1382 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1383 as_fn_error "missing argument to $ac_option"
1384 fi
1385
1386 if test -n "$ac_unrecognized_opts"; then
1387 case $enable_option_checking in
1388 no) ;;
1389 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1390 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1391 esac
1392 fi
1393
1394 # Check all directory arguments for consistency.
1395 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1396 datadir sysconfdir sharedstatedir localstatedir includedir \
1397 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1398 libdir localedir mandir
1399 do
1400 eval ac_val=\$$ac_var
1401 # Remove trailing slashes.
1402 case $ac_val in
1403 */ )
1404 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1405 eval $ac_var=\$ac_val;;
1406 esac
1407 # Be sure to have absolute directory names.
1408 case $ac_val in
1409 [\\/$]* | ?:[\\/]* ) continue;;
1410 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1411 esac
1412 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1413 done
1414
1415 # There might be people who depend on the old broken behavior: `$host'
1416 # used to hold the argument of --host etc.
1417 # FIXME: To remove some day.
1418 build=$build_alias
1419 host=$host_alias
1420 target=$target_alias
1421
1422 # FIXME: To remove some day.
1423 if test "x$host_alias" != x; then
1424 if test "x$build_alias" = x; then
1425 cross_compiling=maybe
1426 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1427 If a cross compiler is detected then cross compile mode will be used." >&2
1428 elif test "x$build_alias" != "x$host_alias"; then
1429 cross_compiling=yes
1430 fi
1431 fi
1432
1433 ac_tool_prefix=
1434 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1435
1436 test "$silent" = yes && exec 6>/dev/null
1437
1438
1439 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1440 ac_ls_di=`ls -di .` &&
1441 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1442 as_fn_error "working directory cannot be determined"
1443 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444 as_fn_error "pwd does not report name of working directory"
1445
1446
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449 ac_srcdir_defaulted=yes
1450 # Try the directory containing this script, then the parent directory.
1451 ac_confdir=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453 X"$as_myself" : 'X\(//\)[^/]' \| \
1454 X"$as_myself" : 'X\(//\)$' \| \
1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 $as_echo X"$as_myself" |
1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 s//\1/
1459 q
1460 }
1461 /^X\(\/\/\)[^/].*/{
1462 s//\1/
1463 q
1464 }
1465 /^X\(\/\/\)$/{
1466 s//\1/
1467 q
1468 }
1469 /^X\(\/\).*/{
1470 s//\1/
1471 q
1472 }
1473 s/.*/./; q'`
1474 srcdir=$ac_confdir
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1476 srcdir=..
1477 fi
1478 else
1479 ac_srcdir_defaulted=no
1480 fi
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1484 fi
1485 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1486 ac_abs_confdir=`(
1487 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1488 pwd)`
1489 # When building in place, set srcdir=.
1490 if test "$ac_abs_confdir" = "$ac_pwd"; then
1491 srcdir=.
1492 fi
1493 # Remove unnecessary trailing slashes from srcdir.
1494 # Double slashes in file names in object file debugging info
1495 # mess up M-x gdb in Emacs.
1496 case $srcdir in
1497 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498 esac
1499 for ac_var in $ac_precious_vars; do
1500 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1501 eval ac_env_${ac_var}_value=\$${ac_var}
1502 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1504 done
1505
1506 #
1507 # Report the --help message.
1508 #
1509 if test "$ac_init_help" = "long"; then
1510 # Omit some internal or obsolete options to make the list less imposing.
1511 # This message is too long to be a string in the A/UX 3.1 sh.
1512 cat <<_ACEOF
1513 \`configure' configures this package to adapt to many kinds of systems.
1514
1515 Usage: $0 [OPTION]... [VAR=VALUE]...
1516
1517 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518 VAR=VALUE. See below for descriptions of some of the useful variables.
1519
1520 Defaults for the options are specified in brackets.
1521
1522 Configuration:
1523 -h, --help display this help and exit
1524 --help=short display options specific to this package
1525 --help=recursive display the short help of all the included packages
1526 -V, --version display version information and exit
1527 -q, --quiet, --silent do not print \`checking...' messages
1528 --cache-file=FILE cache test results in FILE [disabled]
1529 -C, --config-cache alias for \`--cache-file=config.cache'
1530 -n, --no-create do not create output files
1531 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1532
1533 Installation directories:
1534 --prefix=PREFIX install architecture-independent files in PREFIX
1535 [$ac_default_prefix]
1536 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1537 [PREFIX]
1538
1539 By default, \`make install' will install all the files in
1540 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1541 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542 for instance \`--prefix=\$HOME'.
1543
1544 For better control, use the options below.
1545
1546 Fine tuning of the installation directories:
1547 --bindir=DIR user executables [EPREFIX/bin]
1548 --sbindir=DIR system admin executables [EPREFIX/sbin]
1549 --libexecdir=DIR program executables [EPREFIX/libexec]
1550 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1551 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1552 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1553 --libdir=DIR object code libraries [EPREFIX/lib]
1554 --includedir=DIR C header files [PREFIX/include]
1555 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1558 --infodir=DIR info documentation [DATAROOTDIR/info]
1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1560 --mandir=DIR man documentation [DATAROOTDIR/man]
1561 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1562 --htmldir=DIR html documentation [DOCDIR]
1563 --dvidir=DIR dvi documentation [DOCDIR]
1564 --pdfdir=DIR pdf documentation [DOCDIR]
1565 --psdir=DIR ps documentation [DOCDIR]
1566 _ACEOF
1567
1568 cat <<\_ACEOF
1569
1570 Program names:
1571 --program-prefix=PREFIX prepend PREFIX to installed program names
1572 --program-suffix=SUFFIX append SUFFIX to installed program names
1573 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1574
1575 System types:
1576 --build=BUILD configure for building on BUILD [guessed]
1577 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1578 --target=TARGET configure for building compilers for TARGET [HOST]
1579 _ACEOF
1580 fi
1581
1582 if test -n "$ac_init_help"; then
1583
1584 cat <<\_ACEOF
1585
1586 Optional Features:
1587 --disable-option-checking ignore unrecognized --enable/--with options
1588 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1589 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1590 --enable-generated-files-in-srcdir
1591 put copies of generated files in source dir intended
1592 for creating source tarballs for users without
1593 texinfo bison or flex
1594 --disable-largefile omit support for large files
1595 --disable-build-format-warnings
1596 don't use -Wformat while building GCC
1597 --enable-werror-always enable -Werror despite compiler version
1598 --enable-checking[=LIST]
1599 enable expensive run-time checks. With LIST, enable
1600 only specific categories of checks. Categories are:
1601 yes,no,all,none,release. Flags are:
1602 assert,df,extra,fold,gc,gcac,gimple,misc,
1603 rtlflag,rtl,runtime,tree,valgrind,types
1604 --enable-coverage[=LEVEL]
1605 enable compiler's code coverage collection. Use to
1606 measure compiler performance and locate unused parts
1607 of the compiler. With LEVEL, specify optimization.
1608 Values are opt, noopt, default is noopt
1609 --enable-gather-detailed-mem-stats
1610 enable detailed memory allocation stats gathering
1611 --enable-valgrind-annotations
1612 enable valgrind runtime interaction
1613 --enable-multilib enable library support for multiple ABIs
1614 --enable-multiarch enable support for multiarch paths
1615 --enable-__cxa_atexit enable __cxa_atexit for C++
1616 --enable-decimal-float={no,yes,bid,dpd}
1617 enable decimal float extension to C. Selecting 'bid'
1618 or 'dpd' choses which decimal floating point format
1619 to use
1620 --enable-fixed-point enable fixed-point arithmetic extension to C
1621 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1622 package
1623 --enable-tls enable or disable generation of tls code overriding
1624 the assembler check for tls support
1625 --enable-vtable-verify enable vtable verification feature
1626 --enable-objc-gc enable the use of Boehm's garbage collector with the
1627 GNU Objective-C runtime
1628 --disable-shared don't provide a shared libgcc
1629 --enable-languages=LIST specify which front-ends to build
1630 --disable-rpath do not hardcode runtime library paths
1631 --enable-sjlj-exceptions
1632 arrange to use setjmp/longjmp exception handling
1633 --enable-secureplt enable -msecure-plt by default for PowerPC
1634 --enable-leading-mingw64-underscores
1635 enable leading underscores on 64 bit mingw targets
1636 --enable-cld enable -mcld by default for 32bit x86
1637 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1638 x86
1639 --disable-win32-registry
1640 disable lookup of installation paths in the Registry
1641 on Windows hosts
1642 --enable-win32-registry enable registry lookup (default)
1643 --enable-win32-registry=KEY
1644 use KEY instead of GCC version as the last portion
1645 of the registry key
1646 --enable-shared[=PKGS] build shared libraries [default=yes]
1647 --enable-static[=PKGS] build static libraries [default=yes]
1648 --enable-fast-install[=PKGS]
1649 optimize for fast installation [default=yes]
1650 --disable-libtool-lock avoid locking (might break parallel builds)
1651 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1652 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1653 --enable-gnu-indirect-function
1654 enable the use of the @gnu_indirect_function to
1655 glibc systems
1656 --enable-initfini-array use .init_array/.fini_array sections
1657 --enable-comdat enable COMDAT group support
1658
1659 --enable-fix-cortex-a53-835769
1660 enable workaround for AArch64 Cortex-A53 erratum
1661 835769 by default
1662 --disable-fix-cortex-a53-835769
1663 disable workaround for AArch64 Cortex-A53 erratum
1664 835769 by default
1665
1666
1667 --enable-fix-cortex-a53-843419
1668 enable workaround for AArch64 Cortex-A53 erratum
1669 843419 by default
1670 --disable-fix-cortex-a53-843419
1671 disable workaround for AArch64 Cortex-A53 erratum
1672 843419 by default
1673
1674 --enable-gnu-unique-object
1675 enable the use of the @gnu_unique_object ELF
1676 extension on glibc systems
1677 --enable-linker-build-id
1678 compiler will always pass --build-id to linker
1679 --enable-default-ssp enable Stack Smashing Protection as default
1680 --enable-maintainer-mode
1681 enable make rules and dependencies not useful (and
1682 sometimes confusing) to the casual installer
1683 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1684 thrashing on the build machine
1685 --enable-version-specific-runtime-libs
1686 specify that runtime libraries should be installed
1687 in a compiler-specific directory
1688 --enable-plugin enable plugin support
1689 --enable-host-shared build host code as shared libraries
1690 --disable-libquadmath-support
1691 disable libquadmath support for Fortran
1692 --enable-default-pie enable Position Independent Executable as default
1693
1694 Optional Packages:
1695 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1696 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1697 --with-build-libsubdir=DIR Directory where to find libraries for build system
1698 --with-local-prefix=DIR specifies directory to put local include
1699 --with-native-system-header-dir=dir
1700 use dir as the directory to look for standard
1701 system header files in. Defaults to /usr/include.
1702 --with-build-sysroot=sysroot
1703 use sysroot as the system root during the build
1704 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1705 --with-gxx-include-dir=DIR
1706 specifies directory to put g++ header files
1707 --with-cpp-install-dir=DIR
1708 install the user visible C preprocessor in DIR
1709 (relative to PREFIX) as well as PREFIX/bin
1710 --with-gnu-ld arrange to work with GNU ld
1711 --with-ld arrange to use the specified ld (full pathname)
1712 --with-demangler-in-ld try to use demangler in GNU ld
1713 --with-gnu-as arrange to work with GNU as
1714 --with-as arrange to use the specified as (full pathname)
1715 --with-stabs arrange to use stabs instead of host debug format
1716 --with-dwarf2 force the default debug format to be DWARF 2
1717 --with-specs=SPECS add SPECS to driver command-line processing
1718 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1719 --with-bugurl=URL Direct users to URL to report a bug
1720 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1721 --with-gnu-ld assume the C compiler uses GNU ld default=no
1722 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1723 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1724 --with-pic try to use only PIC/non-PIC objects [default=use
1725 both]
1726 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1727 --with-plugin-ld=[ARG] specify the plugin linker
1728 --with-glibc-version=M.N
1729 assume GCC used with glibc version M.N or later
1730 --with-long-double-128 use 128-bit long double by default
1731 --with-gc={page,zone} this option is not supported anymore. It used to
1732 choose the garbage collection mechanism to use with
1733 the compiler
1734 --with-system-zlib use installed libz
1735 --with-linker-hash-style={sysv,gnu,both}
1736 specify the linker hash style
1737 --with-diagnostics-color={never,auto,auto-if-env,always}
1738 specify the default of -fdiagnostics-color option
1739 auto-if-env stands for -fdiagnostics-color=auto if
1740 GCC_COLOR environment variable is present and
1741 -fdiagnostics-color=never otherwise
1742
1743 Some influential environment variables:
1744 CC C compiler command
1745 CFLAGS C compiler flags
1746 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1747 nonstandard directory <lib dir>
1748 LIBS libraries to pass to the linker, e.g. -l<library>
1749 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1750 you have headers in a nonstandard directory <include dir>
1751 CXX C++ compiler command
1752 CXXFLAGS C++ compiler flags
1753 CXXCPP C++ preprocessor
1754 CPP C preprocessor
1755 GMPLIBS How to link GMP
1756 GMPINC How to find GMP include files
1757 ISLLIBS How to link isl
1758 ISLINC How to find isl include files
1759
1760 Use these variables to override the choices made by `configure' or to help
1761 it to find libraries and programs with nonstandard names/locations.
1762
1763 Report bugs to the package provider.
1764 _ACEOF
1765 ac_status=$?
1766 fi
1767
1768 if test "$ac_init_help" = "recursive"; then
1769 # If there are subdirs, report their specific --help.
1770 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1771 test -d "$ac_dir" ||
1772 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1773 continue
1774 ac_builddir=.
1775
1776 case "$ac_dir" in
1777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1778 *)
1779 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1780 # A ".." for each directory in $ac_dir_suffix.
1781 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1782 case $ac_top_builddir_sub in
1783 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1785 esac ;;
1786 esac
1787 ac_abs_top_builddir=$ac_pwd
1788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1789 # for backward compatibility:
1790 ac_top_builddir=$ac_top_build_prefix
1791
1792 case $srcdir in
1793 .) # We are building in place.
1794 ac_srcdir=.
1795 ac_top_srcdir=$ac_top_builddir_sub
1796 ac_abs_top_srcdir=$ac_pwd ;;
1797 [\\/]* | ?:[\\/]* ) # Absolute name.
1798 ac_srcdir=$srcdir$ac_dir_suffix;
1799 ac_top_srcdir=$srcdir
1800 ac_abs_top_srcdir=$srcdir ;;
1801 *) # Relative name.
1802 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803 ac_top_srcdir=$ac_top_build_prefix$srcdir
1804 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1805 esac
1806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1807
1808 cd "$ac_dir" || { ac_status=$?; continue; }
1809 # Check for guested configure.
1810 if test -f "$ac_srcdir/configure.gnu"; then
1811 echo &&
1812 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813 elif test -f "$ac_srcdir/configure"; then
1814 echo &&
1815 $SHELL "$ac_srcdir/configure" --help=recursive
1816 else
1817 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1818 fi || ac_status=$?
1819 cd "$ac_pwd" || { ac_status=$?; break; }
1820 done
1821 fi
1822
1823 test -n "$ac_init_help" && exit $ac_status
1824 if $ac_init_version; then
1825 cat <<\_ACEOF
1826 configure
1827 generated by GNU Autoconf 2.64
1828
1829 Copyright (C) 2009 Free Software Foundation, Inc.
1830 This configure script is free software; the Free Software Foundation
1831 gives unlimited permission to copy, distribute and modify it.
1832 _ACEOF
1833 exit
1834 fi
1835
1836 ## ------------------------ ##
1837 ## Autoconf initialization. ##
1838 ## ------------------------ ##
1839
1840 # ac_fn_c_try_compile LINENO
1841 # --------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_compile ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext
1847 if { { ac_try="$ac_compile"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1860 fi
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_c_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.$ac_objext; then :
1866 ac_retval=0
1867 else
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=1
1872 fi
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 return $ac_retval
1875
1876 } # ac_fn_c_try_compile
1877
1878 # ac_fn_cxx_try_compile LINENO
1879 # ----------------------------
1880 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_cxx_try_compile ()
1882 {
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext
1885 if { { ac_try="$ac_compile"
1886 case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_compile") 2>conftest.err
1893 ac_status=$?
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1898 fi
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_cxx_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest.$ac_objext; then :
1904 ac_retval=0
1905 else
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 ac_retval=1
1910 fi
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912 return $ac_retval
1913
1914 } # ac_fn_cxx_try_compile
1915
1916 # ac_fn_cxx_try_cpp LINENO
1917 # ------------------------
1918 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_cxx_try_cpp ()
1920 {
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if { { ac_try="$ac_cpp conftest.$ac_ext"
1923 case "(($ac_try" in
1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1926 esac
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1930 ac_status=$?
1931 if test -s conftest.err; then
1932 grep -v '^ *+' conftest.err >conftest.er1
1933 cat conftest.er1 >&5
1934 mv -f conftest.er1 conftest.err
1935 fi
1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } >/dev/null && {
1938 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1939 test ! -s conftest.err
1940 }; then :
1941 ac_retval=0
1942 else
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1945
1946 ac_retval=1
1947 fi
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949 return $ac_retval
1950
1951 } # ac_fn_cxx_try_cpp
1952
1953 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1954 # ---------------------------------------------------------
1955 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1956 # the include files in INCLUDES and setting the cache variable VAR
1957 # accordingly.
1958 ac_fn_cxx_check_header_mongrel ()
1959 {
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1965 $as_echo_n "(cached) " >&6
1966 fi
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 else
1971 # Is the header compilable?
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1973 $as_echo_n "checking $2 usability... " >&6; }
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1976 $4
1977 #include <$2>
1978 _ACEOF
1979 if ac_fn_cxx_try_compile "$LINENO"; then :
1980 ac_header_compiler=yes
1981 else
1982 ac_header_compiler=no
1983 fi
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1986 $as_echo "$ac_header_compiler" >&6; }
1987
1988 # Is the header present?
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1990 $as_echo_n "checking $2 presence... " >&6; }
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1993 #include <$2>
1994 _ACEOF
1995 if ac_fn_cxx_try_cpp "$LINENO"; then :
1996 ac_header_preproc=yes
1997 else
1998 ac_header_preproc=no
1999 fi
2000 rm -f conftest.err conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2002 $as_echo "$ac_header_preproc" >&6; }
2003
2004 # So? What about this header?
2005 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2006 yes:no: )
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2008 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2011 ;;
2012 no:yes:* )
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2014 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2016 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2018 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2020 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023 ;;
2024 esac
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 eval "$3=\$ac_header_compiler"
2031 fi
2032 eval ac_res=\$$3
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035 fi
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037
2038 } # ac_fn_cxx_check_header_mongrel
2039
2040 # ac_fn_cxx_try_run LINENO
2041 # ------------------------
2042 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2043 # that executables *can* be run.
2044 ac_fn_cxx_try_run ()
2045 {
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if { { ac_try="$ac_link"
2048 case "(($ac_try" in
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2051 esac
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_link") 2>&5
2055 ac_status=$?
2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2058 { { case "(($ac_try" in
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2061 esac
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_try") 2>&5
2065 ac_status=$?
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; }; }; then :
2068 ac_retval=0
2069 else
2070 $as_echo "$as_me: program exited with status $ac_status" >&5
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2073
2074 ac_retval=$ac_status
2075 fi
2076 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2077 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078 return $ac_retval
2079
2080 } # ac_fn_cxx_try_run
2081
2082 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2083 # ---------------------------------------------------------
2084 # Tests whether HEADER exists and can be compiled using the include files in
2085 # INCLUDES, setting the cache variable VAR accordingly.
2086 ac_fn_cxx_check_header_compile ()
2087 {
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2092 $as_echo_n "(cached) " >&6
2093 else
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2096 $4
2097 #include <$2>
2098 _ACEOF
2099 if ac_fn_cxx_try_compile "$LINENO"; then :
2100 eval "$3=yes"
2101 else
2102 eval "$3=no"
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 fi
2106 eval ac_res=\$$3
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110
2111 } # ac_fn_cxx_check_header_compile
2112
2113 # ac_fn_c_try_cpp LINENO
2114 # ----------------------
2115 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2116 ac_fn_c_try_cpp ()
2117 {
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 if { { ac_try="$ac_cpp conftest.$ac_ext"
2120 case "(($ac_try" in
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2123 esac
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2127 ac_status=$?
2128 if test -s conftest.err; then
2129 grep -v '^ *+' conftest.err >conftest.er1
2130 cat conftest.er1 >&5
2131 mv -f conftest.er1 conftest.err
2132 fi
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } >/dev/null && {
2135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2136 test ! -s conftest.err
2137 }; then :
2138 ac_retval=0
2139 else
2140 $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2142
2143 ac_retval=1
2144 fi
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2146 return $ac_retval
2147
2148 } # ac_fn_c_try_cpp
2149
2150 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2151 # ----------------------------------------------
2152 # Tries to find the compile-time value of EXPR in a program that includes
2153 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2154 # computed
2155 ac_fn_cxx_compute_int ()
2156 {
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 if test "$cross_compiling" = yes; then
2159 # Depending upon the size, compute the lo and hi bounds.
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2162 $4
2163 int
2164 main ()
2165 {
2166 static int test_array [1 - 2 * !(($2) >= 0)];
2167 test_array [0] = 0
2168
2169 ;
2170 return 0;
2171 }
2172 _ACEOF
2173 if ac_fn_cxx_try_compile "$LINENO"; then :
2174 ac_lo=0 ac_mid=0
2175 while :; do
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2178 $4
2179 int
2180 main ()
2181 {
2182 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2183 test_array [0] = 0
2184
2185 ;
2186 return 0;
2187 }
2188 _ACEOF
2189 if ac_fn_cxx_try_compile "$LINENO"; then :
2190 ac_hi=$ac_mid; break
2191 else
2192 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2193 if test $ac_lo -le $ac_mid; then
2194 ac_lo= ac_hi=
2195 break
2196 fi
2197 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2198 fi
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 done
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2204 $4
2205 int
2206 main ()
2207 {
2208 static int test_array [1 - 2 * !(($2) < 0)];
2209 test_array [0] = 0
2210
2211 ;
2212 return 0;
2213 }
2214 _ACEOF
2215 if ac_fn_cxx_try_compile "$LINENO"; then :
2216 ac_hi=-1 ac_mid=-1
2217 while :; do
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2220 $4
2221 int
2222 main ()
2223 {
2224 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2225 test_array [0] = 0
2226
2227 ;
2228 return 0;
2229 }
2230 _ACEOF
2231 if ac_fn_cxx_try_compile "$LINENO"; then :
2232 ac_lo=$ac_mid; break
2233 else
2234 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2235 if test $ac_mid -le $ac_hi; then
2236 ac_lo= ac_hi=
2237 break
2238 fi
2239 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2240 fi
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242 done
2243 else
2244 ac_lo= ac_hi=
2245 fi
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 fi
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 # Binary search between lo and hi bounds.
2250 while test "x$ac_lo" != "x$ac_hi"; do
2251 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2254 $4
2255 int
2256 main ()
2257 {
2258 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2259 test_array [0] = 0
2260
2261 ;
2262 return 0;
2263 }
2264 _ACEOF
2265 if ac_fn_cxx_try_compile "$LINENO"; then :
2266 ac_hi=$ac_mid
2267 else
2268 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 done
2272 case $ac_lo in #((
2273 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2274 '') ac_retval=1 ;;
2275 esac
2276 else
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2279 $4
2280 static long int longval () { return $2; }
2281 static unsigned long int ulongval () { return $2; }
2282 #include <stdio.h>
2283 #include <stdlib.h>
2284 int
2285 main ()
2286 {
2287
2288 FILE *f = fopen ("conftest.val", "w");
2289 if (! f)
2290 return 1;
2291 if (($2) < 0)
2292 {
2293 long int i = longval ();
2294 if (i != ($2))
2295 return 1;
2296 fprintf (f, "%ld", i);
2297 }
2298 else
2299 {
2300 unsigned long int i = ulongval ();
2301 if (i != ($2))
2302 return 1;
2303 fprintf (f, "%lu", i);
2304 }
2305 /* Do not output a trailing newline, as this causes \r\n confusion
2306 on some platforms. */
2307 return ferror (f) || fclose (f) != 0;
2308
2309 ;
2310 return 0;
2311 }
2312 _ACEOF
2313 if ac_fn_cxx_try_run "$LINENO"; then :
2314 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2315 else
2316 ac_retval=1
2317 fi
2318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2319 conftest.$ac_objext conftest.beam conftest.$ac_ext
2320 rm -f conftest.val
2321
2322 fi
2323 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2324 return $ac_retval
2325
2326 } # ac_fn_cxx_compute_int
2327
2328 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2329 # ---------------------------------------------
2330 # Tests whether TYPE exists after having included INCLUDES, setting cache
2331 # variable VAR accordingly.
2332 ac_fn_cxx_check_type ()
2333 {
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2336 $as_echo_n "checking for $2... " >&6; }
2337 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2338 $as_echo_n "(cached) " >&6
2339 else
2340 eval "$3=no"
2341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342 /* end confdefs.h. */
2343 $4
2344 int
2345 main ()
2346 {
2347 if (sizeof ($2))
2348 return 0;
2349 ;
2350 return 0;
2351 }
2352 _ACEOF
2353 if ac_fn_cxx_try_compile "$LINENO"; then :
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2356 $4
2357 int
2358 main ()
2359 {
2360 if (sizeof (($2)))
2361 return 0;
2362 ;
2363 return 0;
2364 }
2365 _ACEOF
2366 if ac_fn_cxx_try_compile "$LINENO"; then :
2367
2368 else
2369 eval "$3=yes"
2370 fi
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372 fi
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 fi
2375 eval ac_res=\$$3
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2379
2380 } # ac_fn_cxx_check_type
2381
2382 # ac_fn_c_find_intX_t LINENO BITS VAR
2383 # -----------------------------------
2384 # Finds a signed integer type with width BITS, setting cache variable VAR
2385 # accordingly.
2386 ac_fn_c_find_intX_t ()
2387 {
2388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2390 $as_echo_n "checking for int$2_t... " >&6; }
2391 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2392 $as_echo_n "(cached) " >&6
2393 else
2394 eval "$3=no"
2395 for ac_type in int$2_t 'int' 'long int' \
2396 'long long int' 'short int' 'signed char'; do
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2399 $ac_includes_default
2400 int
2401 main ()
2402 {
2403 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2404 test_array [0] = 0
2405
2406 ;
2407 return 0;
2408 }
2409 _ACEOF
2410 if ac_fn_cxx_try_compile "$LINENO"; then :
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2414 int
2415 main ()
2416 {
2417 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2418 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2419 test_array [0] = 0
2420
2421 ;
2422 return 0;
2423 }
2424 _ACEOF
2425 if ac_fn_cxx_try_compile "$LINENO"; then :
2426
2427 else
2428 case $ac_type in #(
2429 int$2_t) :
2430 eval "$3=yes" ;; #(
2431 *) :
2432 eval "$3=\$ac_type" ;;
2433 esac
2434 fi
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 fi
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 eval as_val=\$$3
2439 if test "x$as_val" = x""no; then :
2440
2441 else
2442 break
2443 fi
2444 done
2445 fi
2446 eval ac_res=\$$3
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448 $as_echo "$ac_res" >&6; }
2449 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2450
2451 } # ac_fn_c_find_intX_t
2452
2453 # ac_fn_cxx_try_link LINENO
2454 # -------------------------
2455 # Try to link conftest.$ac_ext, and return whether this succeeded.
2456 ac_fn_cxx_try_link ()
2457 {
2458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2459 rm -f conftest.$ac_objext conftest$ac_exeext
2460 if { { ac_try="$ac_link"
2461 case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2464 esac
2465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2466 $as_echo "$ac_try_echo"; } >&5
2467 (eval "$ac_link") 2>conftest.err
2468 ac_status=$?
2469 if test -s conftest.err; then
2470 grep -v '^ *+' conftest.err >conftest.er1
2471 cat conftest.er1 >&5
2472 mv -f conftest.er1 conftest.err
2473 fi
2474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2475 test $ac_status = 0; } && {
2476 test -z "$ac_cxx_werror_flag" ||
2477 test ! -s conftest.err
2478 } && test -s conftest$ac_exeext && {
2479 test "$cross_compiling" = yes ||
2480 $as_test_x conftest$ac_exeext
2481 }; then :
2482 ac_retval=0
2483 else
2484 $as_echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 ac_retval=1
2488 fi
2489 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2490 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2491 # interfere with the next link command; also delete a directory that is
2492 # left behind by Apple's compiler. We do this before executing the actions.
2493 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2495 return $ac_retval
2496
2497 } # ac_fn_cxx_try_link
2498
2499 # ac_fn_c_find_uintX_t LINENO BITS VAR
2500 # ------------------------------------
2501 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2502 # accordingly.
2503 ac_fn_c_find_uintX_t ()
2504 {
2505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2507 $as_echo_n "checking for uint$2_t... " >&6; }
2508 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2509 $as_echo_n "(cached) " >&6
2510 else
2511 eval "$3=no"
2512 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2513 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2516 $ac_includes_default
2517 int
2518 main ()
2519 {
2520 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2521 test_array [0] = 0
2522
2523 ;
2524 return 0;
2525 }
2526 _ACEOF
2527 if ac_fn_cxx_try_compile "$LINENO"; then :
2528 case $ac_type in #(
2529 uint$2_t) :
2530 eval "$3=yes" ;; #(
2531 *) :
2532 eval "$3=\$ac_type" ;;
2533 esac
2534 fi
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536 eval as_val=\$$3
2537 if test "x$as_val" = x""no; then :
2538
2539 else
2540 break
2541 fi
2542 done
2543 fi
2544 eval ac_res=\$$3
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2548
2549 } # ac_fn_c_find_uintX_t
2550
2551 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2552 # ------------------------------------------------
2553 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2554 ac_fn_cxx_check_header_preproc ()
2555 {
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558 $as_echo_n "checking for $2... " >&6; }
2559 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2564 #include <$2>
2565 _ACEOF
2566 if ac_fn_cxx_try_cpp "$LINENO"; then :
2567 eval "$3=yes"
2568 else
2569 eval "$3=no"
2570 fi
2571 rm -f conftest.err conftest.$ac_ext
2572 fi
2573 eval ac_res=\$$3
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2575 $as_echo "$ac_res" >&6; }
2576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2577
2578 } # ac_fn_cxx_check_header_preproc
2579
2580 # ac_fn_cxx_check_func LINENO FUNC VAR
2581 # ------------------------------------
2582 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2583 ac_fn_cxx_check_func ()
2584 {
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2587 $as_echo_n "checking for $2... " >&6; }
2588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2593 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2595 #define $2 innocuous_$2
2596
2597 /* System header to define __stub macros and hopefully few prototypes,
2598 which can conflict with char $2 (); below.
2599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2600 <limits.h> exists even on freestanding compilers. */
2601
2602 #ifdef __STDC__
2603 # include <limits.h>
2604 #else
2605 # include <assert.h>
2606 #endif
2607
2608 #undef $2
2609
2610 /* Override any GCC internal prototype to avoid an error.
2611 Use char because int might match the return type of a GCC
2612 builtin and then its argument prototype would still apply. */
2613 #ifdef __cplusplus
2614 extern "C"
2615 #endif
2616 char $2 ();
2617 /* The GNU C library defines this for functions which it implements
2618 to always fail with ENOSYS. Some functions are actually named
2619 something starting with __ and the normal name is an alias. */
2620 #if defined __stub_$2 || defined __stub___$2
2621 choke me
2622 #endif
2623
2624 int
2625 main ()
2626 {
2627 return $2 ();
2628 ;
2629 return 0;
2630 }
2631 _ACEOF
2632 if ac_fn_cxx_try_link "$LINENO"; then :
2633 eval "$3=yes"
2634 else
2635 eval "$3=no"
2636 fi
2637 rm -f core conftest.err conftest.$ac_objext \
2638 conftest$ac_exeext conftest.$ac_ext
2639 fi
2640 eval ac_res=\$$3
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642 $as_echo "$ac_res" >&6; }
2643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2644
2645 } # ac_fn_cxx_check_func
2646
2647 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2648 # --------------------------------------
2649 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2650 ac_fn_cxx_check_decl ()
2651 {
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 as_decl_name=`echo $2|sed 's/ *(.*//'`
2654 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2656 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2662 $4
2663 int
2664 main ()
2665 {
2666 #ifndef $as_decl_name
2667 #ifdef __cplusplus
2668 (void) $as_decl_use;
2669 #else
2670 (void) $as_decl_name;
2671 #endif
2672 #endif
2673
2674 ;
2675 return 0;
2676 }
2677 _ACEOF
2678 if ac_fn_cxx_try_compile "$LINENO"; then :
2679 eval "$3=yes"
2680 else
2681 eval "$3=no"
2682 fi
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 fi
2685 eval ac_res=\$$3
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2689
2690 } # ac_fn_cxx_check_decl
2691
2692 # ac_fn_c_try_link LINENO
2693 # -----------------------
2694 # Try to link conftest.$ac_ext, and return whether this succeeded.
2695 ac_fn_c_try_link ()
2696 {
2697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2698 rm -f conftest.$ac_objext conftest$ac_exeext
2699 if { { ac_try="$ac_link"
2700 case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703 esac
2704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2705 $as_echo "$ac_try_echo"; } >&5
2706 (eval "$ac_link") 2>conftest.err
2707 ac_status=$?
2708 if test -s conftest.err; then
2709 grep -v '^ *+' conftest.err >conftest.er1
2710 cat conftest.er1 >&5
2711 mv -f conftest.er1 conftest.err
2712 fi
2713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2714 test $ac_status = 0; } && {
2715 test -z "$ac_c_werror_flag" ||
2716 test ! -s conftest.err
2717 } && test -s conftest$ac_exeext && {
2718 test "$cross_compiling" = yes ||
2719 $as_test_x conftest$ac_exeext
2720 }; then :
2721 ac_retval=0
2722 else
2723 $as_echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2725
2726 ac_retval=1
2727 fi
2728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2730 # interfere with the next link command; also delete a directory that is
2731 # left behind by Apple's compiler. We do this before executing the actions.
2732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2734 return $ac_retval
2735
2736 } # ac_fn_c_try_link
2737
2738 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2739 # ----------------------------------------------
2740 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2741 ac_fn_c_check_header_preproc ()
2742 {
2743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2745 $as_echo_n "checking for $2... " >&6; }
2746 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h. */
2751 #include <$2>
2752 _ACEOF
2753 if ac_fn_c_try_cpp "$LINENO"; then :
2754 eval "$3=yes"
2755 else
2756 eval "$3=no"
2757 fi
2758 rm -f conftest.err conftest.$ac_ext
2759 fi
2760 eval ac_res=\$$3
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2762 $as_echo "$ac_res" >&6; }
2763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2764
2765 } # ac_fn_c_check_header_preproc
2766
2767 # ac_fn_c_check_func LINENO FUNC VAR
2768 # ----------------------------------
2769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2770 ac_fn_c_check_func ()
2771 {
2772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2774 $as_echo_n "checking for $2... " >&6; }
2775 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2782 #define $2 innocuous_$2
2783
2784 /* System header to define __stub macros and hopefully few prototypes,
2785 which can conflict with char $2 (); below.
2786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2787 <limits.h> exists even on freestanding compilers. */
2788
2789 #ifdef __STDC__
2790 # include <limits.h>
2791 #else
2792 # include <assert.h>
2793 #endif
2794
2795 #undef $2
2796
2797 /* Override any GCC internal prototype to avoid an error.
2798 Use char because int might match the return type of a GCC
2799 builtin and then its argument prototype would still apply. */
2800 #ifdef __cplusplus
2801 extern "C"
2802 #endif
2803 char $2 ();
2804 /* The GNU C library defines this for functions which it implements
2805 to always fail with ENOSYS. Some functions are actually named
2806 something starting with __ and the normal name is an alias. */
2807 #if defined __stub_$2 || defined __stub___$2
2808 choke me
2809 #endif
2810
2811 int
2812 main ()
2813 {
2814 return $2 ();
2815 ;
2816 return 0;
2817 }
2818 _ACEOF
2819 if ac_fn_c_try_link "$LINENO"; then :
2820 eval "$3=yes"
2821 else
2822 eval "$3=no"
2823 fi
2824 rm -f core conftest.err conftest.$ac_objext \
2825 conftest$ac_exeext conftest.$ac_ext
2826 fi
2827 eval ac_res=\$$3
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829 $as_echo "$ac_res" >&6; }
2830 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2831
2832 } # ac_fn_c_check_func
2833 cat >config.log <<_ACEOF
2834 This file contains any messages produced by compilers while
2835 running configure, to aid debugging if configure makes a mistake.
2836
2837 It was created by $as_me, which was
2838 generated by GNU Autoconf 2.64. Invocation command line was
2839
2840 $ $0 $@
2841
2842 _ACEOF
2843 exec 5>>config.log
2844 {
2845 cat <<_ASUNAME
2846 ## --------- ##
2847 ## Platform. ##
2848 ## --------- ##
2849
2850 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2851 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2852 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2853 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2854 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2855
2856 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2857 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2858
2859 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2860 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2861 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2862 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2863 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2864 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2865 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2866
2867 _ASUNAME
2868
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 $as_echo "PATH: $as_dir"
2875 done
2876 IFS=$as_save_IFS
2877
2878 } >&5
2879
2880 cat >&5 <<_ACEOF
2881
2882
2883 ## ----------- ##
2884 ## Core tests. ##
2885 ## ----------- ##
2886
2887 _ACEOF
2888
2889
2890 # Keep a trace of the command line.
2891 # Strip out --no-create and --no-recursion so they do not pile up.
2892 # Strip out --silent because we don't want to record it for future runs.
2893 # Also quote any args containing shell meta-characters.
2894 # Make two passes to allow for proper duplicate-argument suppression.
2895 ac_configure_args=
2896 ac_configure_args0=
2897 ac_configure_args1=
2898 ac_must_keep_next=false
2899 for ac_pass in 1 2
2900 do
2901 for ac_arg
2902 do
2903 case $ac_arg in
2904 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2906 | -silent | --silent | --silen | --sile | --sil)
2907 continue ;;
2908 *\'*)
2909 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2910 esac
2911 case $ac_pass in
2912 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2913 2)
2914 as_fn_append ac_configure_args1 " '$ac_arg'"
2915 if test $ac_must_keep_next = true; then
2916 ac_must_keep_next=false # Got value, back to normal.
2917 else
2918 case $ac_arg in
2919 *=* | --config-cache | -C | -disable-* | --disable-* \
2920 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2921 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2922 | -with-* | --with-* | -without-* | --without-* | --x)
2923 case "$ac_configure_args0 " in
2924 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2925 esac
2926 ;;
2927 -* ) ac_must_keep_next=true ;;
2928 esac
2929 fi
2930 as_fn_append ac_configure_args " '$ac_arg'"
2931 ;;
2932 esac
2933 done
2934 done
2935 { ac_configure_args0=; unset ac_configure_args0;}
2936 { ac_configure_args1=; unset ac_configure_args1;}
2937
2938 # When interrupted or exit'd, cleanup temporary files, and complete
2939 # config.log. We remove comments because anyway the quotes in there
2940 # would cause problems or look ugly.
2941 # WARNING: Use '\'' to represent an apostrophe within the trap.
2942 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2943 trap 'exit_status=$?
2944 # Save into config.log some information that might help in debugging.
2945 {
2946 echo
2947
2948 cat <<\_ASBOX
2949 ## ---------------- ##
2950 ## Cache variables. ##
2951 ## ---------------- ##
2952 _ASBOX
2953 echo
2954 # The following way of writing the cache mishandles newlines in values,
2955 (
2956 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2957 eval ac_val=\$$ac_var
2958 case $ac_val in #(
2959 *${as_nl}*)
2960 case $ac_var in #(
2961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2963 esac
2964 case $ac_var in #(
2965 _ | IFS | as_nl) ;; #(
2966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2967 *) { eval $ac_var=; unset $ac_var;} ;;
2968 esac ;;
2969 esac
2970 done
2971 (set) 2>&1 |
2972 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2973 *${as_nl}ac_space=\ *)
2974 sed -n \
2975 "s/'\''/'\''\\\\'\'''\''/g;
2976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2977 ;; #(
2978 *)
2979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2980 ;;
2981 esac |
2982 sort
2983 )
2984 echo
2985
2986 cat <<\_ASBOX
2987 ## ----------------- ##
2988 ## Output variables. ##
2989 ## ----------------- ##
2990 _ASBOX
2991 echo
2992 for ac_var in $ac_subst_vars
2993 do
2994 eval ac_val=\$$ac_var
2995 case $ac_val in
2996 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2997 esac
2998 $as_echo "$ac_var='\''$ac_val'\''"
2999 done | sort
3000 echo
3001
3002 if test -n "$ac_subst_files"; then
3003 cat <<\_ASBOX
3004 ## ------------------- ##
3005 ## File substitutions. ##
3006 ## ------------------- ##
3007 _ASBOX
3008 echo
3009 for ac_var in $ac_subst_files
3010 do
3011 eval ac_val=\$$ac_var
3012 case $ac_val in
3013 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3014 esac
3015 $as_echo "$ac_var='\''$ac_val'\''"
3016 done | sort
3017 echo
3018 fi
3019
3020 if test -s confdefs.h; then
3021 cat <<\_ASBOX
3022 ## ----------- ##
3023 ## confdefs.h. ##
3024 ## ----------- ##
3025 _ASBOX
3026 echo
3027 cat confdefs.h
3028 echo
3029 fi
3030 test "$ac_signal" != 0 &&
3031 $as_echo "$as_me: caught signal $ac_signal"
3032 $as_echo "$as_me: exit $exit_status"
3033 } >&5
3034 rm -f core *.core core.conftest.* &&
3035 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3036 exit $exit_status
3037 ' 0
3038 for ac_signal in 1 2 13 15; do
3039 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3040 done
3041 ac_signal=0
3042
3043 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3044 rm -f -r conftest* confdefs.h
3045
3046 $as_echo "/* confdefs.h */" > confdefs.h
3047
3048 # Predefined preprocessor variables.
3049
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_NAME "$PACKAGE_NAME"
3052 _ACEOF
3053
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3056 _ACEOF
3057
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3060 _ACEOF
3061
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_STRING "$PACKAGE_STRING"
3064 _ACEOF
3065
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3068 _ACEOF
3069
3070 cat >>confdefs.h <<_ACEOF
3071 #define PACKAGE_URL "$PACKAGE_URL"
3072 _ACEOF
3073
3074
3075 # Let the site file select an alternate cache file if it wants to.
3076 # Prefer an explicitly selected file to automatically selected ones.
3077 ac_site_file1=NONE
3078 ac_site_file2=NONE
3079 if test -n "$CONFIG_SITE"; then
3080 ac_site_file1=$CONFIG_SITE
3081 elif test "x$prefix" != xNONE; then
3082 ac_site_file1=$prefix/share/config.site
3083 ac_site_file2=$prefix/etc/config.site
3084 else
3085 ac_site_file1=$ac_default_prefix/share/config.site
3086 ac_site_file2=$ac_default_prefix/etc/config.site
3087 fi
3088 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3089 do
3090 test "x$ac_site_file" = xNONE && continue
3091 if test -r "$ac_site_file"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3093 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3094 sed 's/^/| /' "$ac_site_file" >&5
3095 . "$ac_site_file"
3096 fi
3097 done
3098
3099 if test -r "$cache_file"; then
3100 # Some versions of bash will fail to source /dev/null (special
3101 # files actually), so we avoid doing that.
3102 if test -f "$cache_file"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3104 $as_echo "$as_me: loading cache $cache_file" >&6;}
3105 case $cache_file in
3106 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3107 *) . "./$cache_file";;
3108 esac
3109 fi
3110 else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3112 $as_echo "$as_me: creating cache $cache_file" >&6;}
3113 >$cache_file
3114 fi
3115
3116 # Check that the precious variables saved in the cache have kept the same
3117 # value.
3118 ac_cache_corrupted=false
3119 for ac_var in $ac_precious_vars; do
3120 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3121 eval ac_new_set=\$ac_env_${ac_var}_set
3122 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3123 eval ac_new_val=\$ac_env_${ac_var}_value
3124 case $ac_old_set,$ac_new_set in
3125 set,)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3127 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3128 ac_cache_corrupted=: ;;
3129 ,set)
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3131 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3132 ac_cache_corrupted=: ;;
3133 ,);;
3134 *)
3135 if test "x$ac_old_val" != "x$ac_new_val"; then
3136 # differences in whitespace do not lead to failure.
3137 ac_old_val_w=`echo x $ac_old_val`
3138 ac_new_val_w=`echo x $ac_new_val`
3139 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3141 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3142 ac_cache_corrupted=:
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3145 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3146 eval $ac_var=\$ac_old_val
3147 fi
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3149 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3151 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3152 fi;;
3153 esac
3154 # Pass precious variables to config.status.
3155 if test "$ac_new_set" = set; then
3156 case $ac_new_val in
3157 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3158 *) ac_arg=$ac_var=$ac_new_val ;;
3159 esac
3160 case " $ac_configure_args " in
3161 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3162 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3163 esac
3164 fi
3165 done
3166 if $ac_cache_corrupted; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3170 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3171 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3172 fi
3173 ## -------------------- ##
3174 ## Main body of script. ##
3175 ## -------------------- ##
3176
3177 ac_ext=c
3178 ac_cpp='$CPP $CPPFLAGS'
3179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3182
3183
3184
3185
3186
3187
3188 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3189
3190
3191 gcc_version=`cat $srcdir/BASE-VER`
3192
3193 # Determine the host, build, and target systems
3194 ac_aux_dir=
3195 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3196 for ac_t in install-sh install.sh shtool; do
3197 if test -f "$ac_dir/$ac_t"; then
3198 ac_aux_dir=$ac_dir
3199 ac_install_sh="$ac_aux_dir/$ac_t -c"
3200 break 2
3201 fi
3202 done
3203 done
3204 if test -z "$ac_aux_dir"; then
3205 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3206 fi
3207
3208 # These three variables are undocumented and unsupported,
3209 # and are intended to be withdrawn in a future Autoconf release.
3210 # They can cause serious problems if a builder's source tree is in a directory
3211 # whose full name contains unusual characters.
3212 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3213 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3214 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3215
3216
3217 # Make sure we can run config.sub.
3218 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3219 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3220
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3222 $as_echo_n "checking build system type... " >&6; }
3223 if test "${ac_cv_build+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 ac_build_alias=$build_alias
3227 test "x$ac_build_alias" = x &&
3228 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3229 test "x$ac_build_alias" = x &&
3230 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3231 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3232 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3233
3234 fi
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3236 $as_echo "$ac_cv_build" >&6; }
3237 case $ac_cv_build in
3238 *-*-*) ;;
3239 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3240 esac
3241 build=$ac_cv_build
3242 ac_save_IFS=$IFS; IFS='-'
3243 set x $ac_cv_build
3244 shift
3245 build_cpu=$1
3246 build_vendor=$2
3247 shift; shift
3248 # Remember, the first character of IFS is used to create $*,
3249 # except with old shells:
3250 build_os=$*
3251 IFS=$ac_save_IFS
3252 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3253
3254
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3256 $as_echo_n "checking host system type... " >&6; }
3257 if test "${ac_cv_host+set}" = set; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 if test "x$host_alias" = x; then
3261 ac_cv_host=$ac_cv_build
3262 else
3263 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3264 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3265 fi
3266
3267 fi
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3269 $as_echo "$ac_cv_host" >&6; }
3270 case $ac_cv_host in
3271 *-*-*) ;;
3272 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3273 esac
3274 host=$ac_cv_host
3275 ac_save_IFS=$IFS; IFS='-'
3276 set x $ac_cv_host
3277 shift
3278 host_cpu=$1
3279 host_vendor=$2
3280 shift; shift
3281 # Remember, the first character of IFS is used to create $*,
3282 # except with old shells:
3283 host_os=$*
3284 IFS=$ac_save_IFS
3285 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3286
3287
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3289 $as_echo_n "checking target system type... " >&6; }
3290 if test "${ac_cv_target+set}" = set; then :
3291 $as_echo_n "(cached) " >&6
3292 else
3293 if test "x$target_alias" = x; then
3294 ac_cv_target=$ac_cv_host
3295 else
3296 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3297 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3298 fi
3299
3300 fi
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3302 $as_echo "$ac_cv_target" >&6; }
3303 case $ac_cv_target in
3304 *-*-*) ;;
3305 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3306 esac
3307 target=$ac_cv_target
3308 ac_save_IFS=$IFS; IFS='-'
3309 set x $ac_cv_target
3310 shift
3311 target_cpu=$1
3312 target_vendor=$2
3313 shift; shift
3314 # Remember, the first character of IFS is used to create $*,
3315 # except with old shells:
3316 target_os=$*
3317 IFS=$ac_save_IFS
3318 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3319
3320
3321 # The aliases save the names the user supplied, while $host etc.
3322 # will get canonicalized.
3323 test -n "$target_alias" &&
3324 test "$program_prefix$program_suffix$program_transform_name" = \
3325 NONENONEs,x,x, &&
3326 program_prefix=${target_alias}-
3327
3328 # Determine the noncanonical host name, for Ada.
3329 case ${build_alias} in
3330 "") build_noncanonical=${build} ;;
3331 *) build_noncanonical=${build_alias} ;;
3332 esac
3333
3334 case ${host_alias} in
3335 "") host_noncanonical=${build_noncanonical} ;;
3336 *) host_noncanonical=${host_alias} ;;
3337 esac
3338
3339
3340
3341
3342 # Determine the noncanonical target name, for directory use.
3343 case ${target_alias} in
3344 "") target_noncanonical=${host_noncanonical} ;;
3345 *) target_noncanonical=${target_alias} ;;
3346 esac
3347
3348
3349
3350
3351 # Used for constructing correct paths for offload compilers.
3352 real_target_noncanonical=${target_noncanonical}
3353 accel_dir_suffix=
3354
3355 # Determine the target- and build-specific subdirectories
3356
3357 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3358 # have matching libraries, they should use host libraries: Makefile.tpl
3359 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3360 # However, they still use the build modules, because the corresponding
3361 # host modules (e.g. bison) are only built for the host when bootstrap
3362 # finishes. So:
3363 # - build_subdir is where we find build modules, and never changes.
3364 # - build_libsubdir is where we find build libraries, and can be overridden.
3365
3366 # Prefix 'build-' so this never conflicts with target_subdir.
3367 build_subdir="build-${build_noncanonical}"
3368
3369 # Check whether --with-build-libsubdir was given.
3370 if test "${with_build_libsubdir+set}" = set; then :
3371 withval=$with_build_libsubdir; build_libsubdir="$withval"
3372 else
3373 build_libsubdir="$build_subdir"
3374 fi
3375
3376 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3377 if ( test $srcdir = . && test -d gcc ) \
3378 || test -d $srcdir/../host-${host_noncanonical}; then
3379 host_subdir="host-${host_noncanonical}"
3380 else
3381 host_subdir=.
3382 fi
3383 # No prefix.
3384 target_subdir=${target_noncanonical}
3385
3386
3387 # Set program_transform_name
3388 test "$program_prefix" != NONE &&
3389 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3390 # Use a double $ so make ignores it.
3391 test "$program_suffix" != NONE &&
3392 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3393 # Double any \ or $.
3394 # By default was `s,x,x', remove it if useless.
3395 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3396 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3397
3398
3399 # Check for bogus environment variables.
3400 # Test if LIBRARY_PATH contains the notation for the current directory
3401 # since this would lead to problems installing/building glibc.
3402 # LIBRARY_PATH contains the current directory if one of the following
3403 # is true:
3404 # - one of the terminals (":" and ";") is the first or last sign
3405 # - two terminals occur directly after each other
3406 # - the path contains an element with a dot in it
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3408 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3409 case ${LIBRARY_PATH} in
3410 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3411 library_path_setting="contains current directory"
3412 ;;
3413 *)
3414 library_path_setting="ok"
3415 ;;
3416 esac
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3418 $as_echo "$library_path_setting" >&6; }
3419 if test "$library_path_setting" != "ok"; then
3420 as_fn_error "
3421 *** LIBRARY_PATH shouldn't contain the current directory when
3422 *** building gcc. Please change the environment variable
3423 *** and run configure again." "$LINENO" 5
3424 fi
3425
3426 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3427 # since this would lead to problems installing/building glibc.
3428 # GCC_EXEC_PREFIX contains the current directory if one of the following
3429 # is true:
3430 # - one of the terminals (":" and ";") is the first or last sign
3431 # - two terminals occur directly after each other
3432 # - the path contains an element with a dot in it
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3434 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3435 case ${GCC_EXEC_PREFIX} in
3436 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3437 gcc_exec_prefix_setting="contains current directory"
3438 ;;
3439 *)
3440 gcc_exec_prefix_setting="ok"
3441 ;;
3442 esac
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3444 $as_echo "$gcc_exec_prefix_setting" >&6; }
3445 if test "$gcc_exec_prefix_setting" != "ok"; then
3446 as_fn_error "
3447 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3448 *** building gcc. Please change the environment variable
3449 *** and run configure again." "$LINENO" 5
3450 fi
3451
3452 # -----------
3453 # Directories
3454 # -----------
3455
3456 # Specify the local prefix
3457 local_prefix=
3458
3459 # Check whether --with-local-prefix was given.
3460 if test "${with_local_prefix+set}" = set; then :
3461 withval=$with_local_prefix; case "${withval}" in
3462 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3463 no) ;;
3464 *) local_prefix=$with_local_prefix ;;
3465 esac
3466 fi
3467
3468
3469 # Default local prefix if it is empty
3470 if test x$local_prefix = x; then
3471 local_prefix=/usr/local
3472 fi
3473
3474
3475 # Check whether --with-native-system-header-dir was given.
3476 if test "${with_native_system_header_dir+set}" = set; then :
3477 withval=$with_native_system_header_dir;
3478 case ${with_native_system_header_dir} in
3479 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3480 /* | [A-Za-z]:[\\/]*) ;;
3481 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3482 esac
3483 configured_native_system_header_dir="${withval}"
3484
3485 else
3486 configured_native_system_header_dir=
3487 fi
3488
3489
3490
3491 # Check whether --with-build-sysroot was given.
3492 if test "${with_build_sysroot+set}" = set; then :
3493 withval=$with_build_sysroot; if test x"$withval" != x ; then
3494 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3495 fi
3496 else
3497 SYSROOT_CFLAGS_FOR_TARGET=
3498 fi
3499
3500
3501
3502 if test "x$prefix" = xNONE; then
3503 test_prefix=/usr/local
3504 else
3505 test_prefix=$prefix
3506 fi
3507 if test "x$exec_prefix" = xNONE; then
3508 test_exec_prefix=$test_prefix
3509 else
3510 test_exec_prefix=$exec_prefix
3511 fi
3512
3513
3514 # Check whether --with-sysroot was given.
3515 if test "${with_sysroot+set}" = set; then :
3516 withval=$with_sysroot;
3517 case ${with_sysroot} in
3518 /) ;;
3519 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3520 esac
3521 case ${with_sysroot} in
3522 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3523 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3524 esac
3525
3526 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3527 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3528
3529 case ${TARGET_SYSTEM_ROOT} in
3530 "${test_prefix}"|"${test_prefix}/"*|\
3531 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3532 '${prefix}'|'${prefix}/'*|\
3533 '${exec_prefix}'|'${exec_prefix}/'*)
3534 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3535 TARGET_SYSTEM_ROOT_DEFINE="$t"
3536 ;;
3537 esac
3538
3539 else
3540
3541 TARGET_SYSTEM_ROOT=
3542 TARGET_SYSTEM_ROOT_DEFINE=
3543 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3544
3545 fi
3546
3547
3548
3549
3550
3551 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3552 # passed in by the toplevel make and thus we'd get different behavior
3553 # depending on where we built the sources.
3554 gcc_gxx_include_dir=
3555 # Specify the g++ header file directory
3556
3557 # Check whether --with-gxx-include-dir was given.
3558 if test "${with_gxx_include_dir+set}" = set; then :
3559 withval=$with_gxx_include_dir; case "${withval}" in
3560 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3561 no) ;;
3562 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3563 esac
3564 fi
3565
3566
3567 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3568 if test x${gcc_gxx_include_dir} = x; then
3569 if test x${enable_version_specific_runtime_libs} = xyes; then
3570 gcc_gxx_include_dir='${libsubdir}/include/c++'
3571 else
3572 libstdcxx_incdir='include/c++/$(version)'
3573 if test x$host != x$target; then
3574 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3575 fi
3576 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3577 fi
3578 fi
3579
3580 gcc_gxx_include_dir_add_sysroot=0
3581 if test "${with_sysroot+set}" = set; then
3582 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3583 if test "${gcc_gxx_without_sysroot}"; then
3584 if test x${with_sysroot} != x/; then
3585 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3586 fi
3587 gcc_gxx_include_dir_add_sysroot=1
3588 fi
3589 fi
3590
3591
3592 # Check whether --with-cpp_install_dir was given.
3593 if test "${with_cpp_install_dir+set}" = set; then :
3594 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3595 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3596 elif test x$withval != xno; then
3597 cpp_install_dir=$withval
3598 fi
3599 fi
3600
3601
3602 # We would like to our source tree to be readonly. However when releases or
3603 # pre-releases are generated, the flex/bison generated files as well as the
3604 # various formats of manuals need to be included along with the rest of the
3605 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3606 # just that.
3607
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3609 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3610 # Check whether --enable-generated-files-in-srcdir was given.
3611 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3612 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3613 else
3614 generated_files_in_srcdir=no
3615 fi
3616
3617
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3619 $as_echo "$generated_files_in_srcdir" >&6; }
3620
3621 if test "$generated_files_in_srcdir" = "yes"; then
3622 GENINSRC=''
3623 else
3624 GENINSRC='#'
3625 fi
3626
3627
3628 # -------------------
3629 # Find default linker
3630 # -------------------
3631
3632 # With GNU ld
3633
3634 # Check whether --with-gnu-ld was given.
3635 if test "${with_gnu_ld+set}" = set; then :
3636 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3637 else
3638 gnu_ld_flag=no
3639 fi
3640
3641
3642 # With pre-defined ld
3643
3644 # Check whether --with-ld was given.
3645 if test "${with_ld+set}" = set; then :
3646 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3647 fi
3648
3649 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3650 if test ! -x "$DEFAULT_LINKER"; then
3651 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3652 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3653 gnu_ld_flag=yes
3654 fi
3655
3656 cat >>confdefs.h <<_ACEOF
3657 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3658 _ACEOF
3659
3660 fi
3661
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3663 $as_echo_n "checking whether a default linker was specified... " >&6; }
3664 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3665 if test x"$gnu_ld_flag" = x"no"; then
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3667 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3668 else
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3670 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3671 fi
3672 else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 fi
3676
3677 # With demangler in GNU ld
3678
3679 # Check whether --with-demangler-in-ld was given.
3680 if test "${with_demangler_in_ld+set}" = set; then :
3681 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3682 else
3683 demangler_in_ld=yes
3684 fi
3685
3686
3687 # ----------------------
3688 # Find default assembler
3689 # ----------------------
3690
3691 # With GNU as
3692
3693 # Check whether --with-gnu-as was given.
3694 if test "${with_gnu_as+set}" = set; then :
3695 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3696 else
3697 gas_flag=no
3698 fi
3699
3700
3701
3702 # Check whether --with-as was given.
3703 if test "${with_as+set}" = set; then :
3704 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3705 fi
3706
3707 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3708 if test ! -x "$DEFAULT_ASSEMBLER"; then
3709 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3710 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3711 gas_flag=yes
3712 fi
3713
3714 cat >>confdefs.h <<_ACEOF
3715 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3716 _ACEOF
3717
3718 fi
3719
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3721 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3722 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3723 if test x"$gas_flag" = x"no"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3725 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3728 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3729 fi
3730 else
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3733 fi
3734
3735 # ---------------
3736 # Find C compiler
3737 # ---------------
3738
3739 # If a non-executable a.out is present (e.g. created by GNU as above even if
3740 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3741 # file, even when creating an executable, so an execution test fails.
3742 # Remove possible default executable files to avoid this.
3743 #
3744 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3745 # Autoconf includes it.
3746 rm -f a.out a.exe b.out
3747
3748 # Find the native compiler
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 if test -n "$ac_tool_prefix"; then
3755 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3756 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 $as_echo_n "checking for $ac_word... " >&6; }
3759 if test "${ac_cv_prog_CC+set}" = set; then :
3760 $as_echo_n "(cached) " >&6
3761 else
3762 if test -n "$CC"; then
3763 ac_cv_prog_CC="$CC" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3767 do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 break 2
3775 fi
3776 done
3777 done
3778 IFS=$as_save_IFS
3779
3780 fi
3781 fi
3782 CC=$ac_cv_prog_CC
3783 if test -n "$CC"; then
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3785 $as_echo "$CC" >&6; }
3786 else
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 $as_echo "no" >&6; }
3789 fi
3790
3791
3792 fi
3793 if test -z "$ac_cv_prog_CC"; then
3794 ac_ct_CC=$CC
3795 # Extract the first word of "gcc", so it can be a program name with args.
3796 set dummy gcc; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3800 $as_echo_n "(cached) " >&6
3801 else
3802 if test -n "$ac_ct_CC"; then
3803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 ac_cv_prog_ac_ct_CC="gcc"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3815 fi
3816 done
3817 done
3818 IFS=$as_save_IFS
3819
3820 fi
3821 fi
3822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3823 if test -n "$ac_ct_CC"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3825 $as_echo "$ac_ct_CC" >&6; }
3826 else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3829 fi
3830
3831 if test "x$ac_ct_CC" = x; then
3832 CC=""
3833 else
3834 case $cross_compiling:$ac_tool_warned in
3835 yes:)
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3838 ac_tool_warned=yes ;;
3839 esac
3840 CC=$ac_ct_CC
3841 fi
3842 else
3843 CC="$ac_cv_prog_CC"
3844 fi
3845
3846 if test -z "$CC"; then
3847 if test -n "$ac_tool_prefix"; then
3848 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3849 set dummy ${ac_tool_prefix}cc; ac_word=$2
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 $as_echo_n "checking for $ac_word... " >&6; }
3852 if test "${ac_cv_prog_CC+set}" = set; then :
3853 $as_echo_n "(cached) " >&6
3854 else
3855 if test -n "$CC"; then
3856 ac_cv_prog_CC="$CC" # Let the user override the test.
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3860 do
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3865 ac_cv_prog_CC="${ac_tool_prefix}cc"
3866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 break 2
3868 fi
3869 done
3870 done
3871 IFS=$as_save_IFS
3872
3873 fi
3874 fi
3875 CC=$ac_cv_prog_CC
3876 if test -n "$CC"; then
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3878 $as_echo "$CC" >&6; }
3879 else
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3882 fi
3883
3884
3885 fi
3886 fi
3887 if test -z "$CC"; then
3888 # Extract the first word of "cc", so it can be a program name with args.
3889 set dummy cc; ac_word=$2
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891 $as_echo_n "checking for $ac_word... " >&6; }
3892 if test "${ac_cv_prog_CC+set}" = set; then :
3893 $as_echo_n "(cached) " >&6
3894 else
3895 if test -n "$CC"; then
3896 ac_cv_prog_CC="$CC" # Let the user override the test.
3897 else
3898 ac_prog_rejected=no
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3901 do
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3907 ac_prog_rejected=yes
3908 continue
3909 fi
3910 ac_cv_prog_CC="cc"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3913 fi
3914 done
3915 done
3916 IFS=$as_save_IFS
3917
3918 if test $ac_prog_rejected = yes; then
3919 # We found a bogon in the path, so make sure we never use it.
3920 set dummy $ac_cv_prog_CC
3921 shift
3922 if test $# != 0; then
3923 # We chose a different compiler from the bogus one.
3924 # However, it has the same basename, so the bogon will be chosen
3925 # first if we set CC to just the basename; use the full file name.
3926 shift
3927 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3928 fi
3929 fi
3930 fi
3931 fi
3932 CC=$ac_cv_prog_CC
3933 if test -n "$CC"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935 $as_echo "$CC" >&6; }
3936 else
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3939 fi
3940
3941
3942 fi
3943 if test -z "$CC"; then
3944 if test -n "$ac_tool_prefix"; then
3945 for ac_prog in cl.exe
3946 do
3947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950 $as_echo_n "checking for $ac_word... " >&6; }
3951 if test "${ac_cv_prog_CC+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 if test -n "$CC"; then
3955 ac_cv_prog_CC="$CC" # Let the user override the test.
3956 else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3959 do
3960 IFS=$as_save_IFS
3961 test -z "$as_dir" && as_dir=.
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3964 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 break 2
3967 fi
3968 done
3969 done
3970 IFS=$as_save_IFS
3971
3972 fi
3973 fi
3974 CC=$ac_cv_prog_CC
3975 if test -n "$CC"; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3977 $as_echo "$CC" >&6; }
3978 else
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 $as_echo "no" >&6; }
3981 fi
3982
3983
3984 test -n "$CC" && break
3985 done
3986 fi
3987 if test -z "$CC"; then
3988 ac_ct_CC=$CC
3989 for ac_prog in cl.exe
3990 do
3991 # Extract the first word of "$ac_prog", so it can be a program name with args.
3992 set dummy $ac_prog; ac_word=$2
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994 $as_echo_n "checking for $ac_word... " >&6; }
3995 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 if test -n "$ac_ct_CC"; then
3999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_prog_ac_ct_CC="$ac_prog"
4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 break 2
4011 fi
4012 done
4013 done
4014 IFS=$as_save_IFS
4015
4016 fi
4017 fi
4018 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4019 if test -n "$ac_ct_CC"; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4021 $as_echo "$ac_ct_CC" >&6; }
4022 else
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024 $as_echo "no" >&6; }
4025 fi
4026
4027
4028 test -n "$ac_ct_CC" && break
4029 done
4030
4031 if test "x$ac_ct_CC" = x; then
4032 CC=""
4033 else
4034 case $cross_compiling:$ac_tool_warned in
4035 yes:)
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4038 ac_tool_warned=yes ;;
4039 esac
4040 CC=$ac_ct_CC
4041 fi
4042 fi
4043
4044 fi
4045
4046
4047 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error "no acceptable C compiler found in \$PATH
4050 See \`config.log' for more details." "$LINENO" 5; }
4051
4052 # Provide some information about the compiler.
4053 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4054 set X $ac_compile
4055 ac_compiler=$2
4056 for ac_option in --version -v -V -qversion; do
4057 { { ac_try="$ac_compiler $ac_option >&5"
4058 case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061 esac
4062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4063 $as_echo "$ac_try_echo"; } >&5
4064 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4065 ac_status=$?
4066 if test -s conftest.err; then
4067 sed '10a\
4068 ... rest of stderr output deleted ...
4069 10q' conftest.err >conftest.er1
4070 cat conftest.er1 >&5
4071 rm -f conftest.er1 conftest.err
4072 fi
4073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4074 test $ac_status = 0; }
4075 done
4076
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4079
4080 int
4081 main ()
4082 {
4083
4084 ;
4085 return 0;
4086 }
4087 _ACEOF
4088 ac_clean_files_save=$ac_clean_files
4089 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4090 # Try to create an executable without -o first, disregard a.out.
4091 # It will help us diagnose broken compilers, and finding out an intuition
4092 # of exeext.
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4094 $as_echo_n "checking for C compiler default output file name... " >&6; }
4095 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4096
4097 # The possible output files:
4098 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4099
4100 ac_rmfiles=
4101 for ac_file in $ac_files
4102 do
4103 case $ac_file in
4104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4105 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4106 esac
4107 done
4108 rm -f $ac_rmfiles
4109
4110 if { { ac_try="$ac_link_default"
4111 case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114 esac
4115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 $as_echo "$ac_try_echo"; } >&5
4117 (eval "$ac_link_default") 2>&5
4118 ac_status=$?
4119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }; then :
4121 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4122 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4123 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4124 # so that the user can short-circuit this test for compilers unknown to
4125 # Autoconf.
4126 for ac_file in $ac_files ''
4127 do
4128 test -f "$ac_file" || continue
4129 case $ac_file in
4130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4131 ;;
4132 [ab].out )
4133 # We found the default executable, but exeext='' is most
4134 # certainly right.
4135 break;;
4136 *.* )
4137 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4138 then :; else
4139 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4140 fi
4141 # We set ac_cv_exeext here because the later test for it is not
4142 # safe: cross compilers may not add the suffix if given an `-o'
4143 # argument, so we may need to know it at that point already.
4144 # Even if this section looks crufty: it has the advantage of
4145 # actually working.
4146 break;;
4147 * )
4148 break;;
4149 esac
4150 done
4151 test "$ac_cv_exeext" = no && ac_cv_exeext=
4152
4153 else
4154 ac_file=''
4155 fi
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4157 $as_echo "$ac_file" >&6; }
4158 if test -z "$ac_file"; then :
4159 $as_echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4161
4162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 { as_fn_set_status 77
4165 as_fn_error "C compiler cannot create executables
4166 See \`config.log' for more details." "$LINENO" 5; }; }
4167 fi
4168 ac_exeext=$ac_cv_exeext
4169
4170 # Check that the compiler produces executables we can run. If not, either
4171 # the compiler is broken, or we cross compile.
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4173 $as_echo_n "checking whether the C compiler works... " >&6; }
4174 # If not cross compiling, check that we can run a simple program.
4175 if test "$cross_compiling" != yes; then
4176 if { ac_try='./$ac_file'
4177 { { case "(($ac_try" in
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4180 esac
4181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4182 $as_echo "$ac_try_echo"; } >&5
4183 (eval "$ac_try") 2>&5
4184 ac_status=$?
4185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186 test $ac_status = 0; }; }; then
4187 cross_compiling=no
4188 else
4189 if test "$cross_compiling" = maybe; then
4190 cross_compiling=yes
4191 else
4192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 as_fn_error "cannot run C compiled programs.
4195 If you meant to cross compile, use \`--host'.
4196 See \`config.log' for more details." "$LINENO" 5; }
4197 fi
4198 fi
4199 fi
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4201 $as_echo "yes" >&6; }
4202
4203 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4204 ac_clean_files=$ac_clean_files_save
4205 # Check that the compiler produces executables we can run. If not, either
4206 # the compiler is broken, or we cross compile.
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4208 $as_echo_n "checking whether we are cross compiling... " >&6; }
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4210 $as_echo "$cross_compiling" >&6; }
4211
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4213 $as_echo_n "checking for suffix of executables... " >&6; }
4214 if { { ac_try="$ac_link"
4215 case "(($ac_try" in
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4218 esac
4219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4220 $as_echo "$ac_try_echo"; } >&5
4221 (eval "$ac_link") 2>&5
4222 ac_status=$?
4223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4224 test $ac_status = 0; }; then :
4225 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4226 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4227 # work properly (i.e., refer to `conftest.exe'), while it won't with
4228 # `rm'.
4229 for ac_file in conftest.exe conftest conftest.*; do
4230 test -f "$ac_file" || continue
4231 case $ac_file in
4232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4233 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4234 break;;
4235 * ) break;;
4236 esac
4237 done
4238 else
4239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4241 as_fn_error "cannot compute suffix of executables: cannot compile and link
4242 See \`config.log' for more details." "$LINENO" 5; }
4243 fi
4244 rm -f conftest$ac_cv_exeext
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4246 $as_echo "$ac_cv_exeext" >&6; }
4247
4248 rm -f conftest.$ac_ext
4249 EXEEXT=$ac_cv_exeext
4250 ac_exeext=$EXEEXT
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4252 $as_echo_n "checking for suffix of object files... " >&6; }
4253 if test "${ac_cv_objext+set}" = set; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258
4259 int
4260 main ()
4261 {
4262
4263 ;
4264 return 0;
4265 }
4266 _ACEOF
4267 rm -f conftest.o conftest.obj
4268 if { { ac_try="$ac_compile"
4269 case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272 esac
4273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274 $as_echo "$ac_try_echo"; } >&5
4275 (eval "$ac_compile") 2>&5
4276 ac_status=$?
4277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4278 test $ac_status = 0; }; then :
4279 for ac_file in conftest.o conftest.obj conftest.*; do
4280 test -f "$ac_file" || continue;
4281 case $ac_file in
4282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4283 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4284 break;;
4285 esac
4286 done
4287 else
4288 $as_echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4293 as_fn_error "cannot compute suffix of object files: cannot compile
4294 See \`config.log' for more details." "$LINENO" 5; }
4295 fi
4296 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4299 $as_echo "$ac_cv_objext" >&6; }
4300 OBJEXT=$ac_cv_objext
4301 ac_objext=$OBJEXT
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4303 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4304 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4305 $as_echo_n "(cached) " >&6
4306 else
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309
4310 int
4311 main ()
4312 {
4313 #ifndef __GNUC__
4314 choke me
4315 #endif
4316
4317 ;
4318 return 0;
4319 }
4320 _ACEOF
4321 if ac_fn_c_try_compile "$LINENO"; then :
4322 ac_compiler_gnu=yes
4323 else
4324 ac_compiler_gnu=no
4325 fi
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4328
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4331 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4332 if test $ac_compiler_gnu = yes; then
4333 GCC=yes
4334 else
4335 GCC=
4336 fi
4337 ac_test_CFLAGS=${CFLAGS+set}
4338 ac_save_CFLAGS=$CFLAGS
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4340 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4341 if test "${ac_cv_prog_cc_g+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 ac_save_c_werror_flag=$ac_c_werror_flag
4345 ac_c_werror_flag=yes
4346 ac_cv_prog_cc_g=no
4347 CFLAGS="-g"
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350
4351 int
4352 main ()
4353 {
4354
4355 ;
4356 return 0;
4357 }
4358 _ACEOF
4359 if ac_fn_c_try_compile "$LINENO"; then :
4360 ac_cv_prog_cc_g=yes
4361 else
4362 CFLAGS=""
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4365
4366 int
4367 main ()
4368 {
4369
4370 ;
4371 return 0;
4372 }
4373 _ACEOF
4374 if ac_fn_c_try_compile "$LINENO"; then :
4375
4376 else
4377 ac_c_werror_flag=$ac_save_c_werror_flag
4378 CFLAGS="-g"
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4381
4382 int
4383 main ()
4384 {
4385
4386 ;
4387 return 0;
4388 }
4389 _ACEOF
4390 if ac_fn_c_try_compile "$LINENO"; then :
4391 ac_cv_prog_cc_g=yes
4392 fi
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 fi
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 fi
4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398 ac_c_werror_flag=$ac_save_c_werror_flag
4399 fi
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4401 $as_echo "$ac_cv_prog_cc_g" >&6; }
4402 if test "$ac_test_CFLAGS" = set; then
4403 CFLAGS=$ac_save_CFLAGS
4404 elif test $ac_cv_prog_cc_g = yes; then
4405 if test "$GCC" = yes; then
4406 CFLAGS="-g -O2"
4407 else
4408 CFLAGS="-g"
4409 fi
4410 else
4411 if test "$GCC" = yes; then
4412 CFLAGS="-O2"
4413 else
4414 CFLAGS=
4415 fi
4416 fi
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4418 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4419 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 ac_cv_prog_cc_c89=no
4423 ac_save_CC=$CC
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426 #include <stdarg.h>
4427 #include <stdio.h>
4428 #include <sys/types.h>
4429 #include <sys/stat.h>
4430 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4431 struct buf { int x; };
4432 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4433 static char *e (p, i)
4434 char **p;
4435 int i;
4436 {
4437 return p[i];
4438 }
4439 static char *f (char * (*g) (char **, int), char **p, ...)
4440 {
4441 char *s;
4442 va_list v;
4443 va_start (v,p);
4444 s = g (p, va_arg (v,int));
4445 va_end (v);
4446 return s;
4447 }
4448
4449 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4450 function prototypes and stuff, but not '\xHH' hex character constants.
4451 These don't provoke an error unfortunately, instead are silently treated
4452 as 'x'. The following induces an error, until -std is added to get
4453 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4454 array size at least. It's necessary to write '\x00'==0 to get something
4455 that's true only with -std. */
4456 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4457
4458 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4459 inside strings and character constants. */
4460 #define FOO(x) 'x'
4461 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4462
4463 int test (int i, double x);
4464 struct s1 {int (*f) (int a);};
4465 struct s2 {int (*f) (double a);};
4466 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4467 int argc;
4468 char **argv;
4469 int
4470 main ()
4471 {
4472 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4473 ;
4474 return 0;
4475 }
4476 _ACEOF
4477 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4478 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4479 do
4480 CC="$ac_save_CC $ac_arg"
4481 if ac_fn_c_try_compile "$LINENO"; then :
4482 ac_cv_prog_cc_c89=$ac_arg
4483 fi
4484 rm -f core conftest.err conftest.$ac_objext
4485 test "x$ac_cv_prog_cc_c89" != "xno" && break
4486 done
4487 rm -f conftest.$ac_ext
4488 CC=$ac_save_CC
4489
4490 fi
4491 # AC_CACHE_VAL
4492 case "x$ac_cv_prog_cc_c89" in
4493 x)
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4495 $as_echo "none needed" >&6; } ;;
4496 xno)
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4498 $as_echo "unsupported" >&6; } ;;
4499 *)
4500 CC="$CC $ac_cv_prog_cc_c89"
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4502 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4503 esac
4504 if test "x$ac_cv_prog_cc_c89" != xno; then :
4505
4506 fi
4507
4508 ac_ext=c
4509 ac_cpp='$CPP $CPPFLAGS'
4510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513
4514 ac_ext=cpp
4515 ac_cpp='$CXXCPP $CPPFLAGS'
4516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4519 if test -z "$CXX"; then
4520 if test -n "$CCC"; then
4521 CXX=$CCC
4522 else
4523 if test -n "$ac_tool_prefix"; then
4524 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4525 do
4526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if test "${ac_cv_prog_CXX+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 if test -n "$CXX"; then
4534 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4546 fi
4547 done
4548 done
4549 IFS=$as_save_IFS
4550
4551 fi
4552 fi
4553 CXX=$ac_cv_prog_CXX
4554 if test -n "$CXX"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4556 $as_echo "$CXX" >&6; }
4557 else
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4560 fi
4561
4562
4563 test -n "$CXX" && break
4564 done
4565 fi
4566 if test -z "$CXX"; then
4567 ac_ct_CXX=$CXX
4568 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4569 do
4570 # Extract the first word of "$ac_prog", so it can be a program name with args.
4571 set dummy $ac_prog; ac_word=$2
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 if test -n "$ac_ct_CXX"; then
4578 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_prog_ac_ct_CXX="$ac_prog"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591 done
4592 done
4593 IFS=$as_save_IFS
4594
4595 fi
4596 fi
4597 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4598 if test -n "$ac_ct_CXX"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4600 $as_echo "$ac_ct_CXX" >&6; }
4601 else
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4604 fi
4605
4606
4607 test -n "$ac_ct_CXX" && break
4608 done
4609
4610 if test "x$ac_ct_CXX" = x; then
4611 CXX="g++"
4612 else
4613 case $cross_compiling:$ac_tool_warned in
4614 yes:)
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4617 ac_tool_warned=yes ;;
4618 esac
4619 CXX=$ac_ct_CXX
4620 fi
4621 fi
4622
4623 fi
4624 fi
4625 # Provide some information about the compiler.
4626 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4627 set X $ac_compile
4628 ac_compiler=$2
4629 for ac_option in --version -v -V -qversion; do
4630 { { ac_try="$ac_compiler $ac_option >&5"
4631 case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4634 esac
4635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636 $as_echo "$ac_try_echo"; } >&5
4637 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4638 ac_status=$?
4639 if test -s conftest.err; then
4640 sed '10a\
4641 ... rest of stderr output deleted ...
4642 10q' conftest.err >conftest.er1
4643 cat conftest.er1 >&5
4644 rm -f conftest.er1 conftest.err
4645 fi
4646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647 test $ac_status = 0; }
4648 done
4649
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4651 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4652 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4657
4658 int
4659 main ()
4660 {
4661 #ifndef __GNUC__
4662 choke me
4663 #endif
4664
4665 ;
4666 return 0;
4667 }
4668 _ACEOF
4669 if ac_fn_cxx_try_compile "$LINENO"; then :
4670 ac_compiler_gnu=yes
4671 else
4672 ac_compiler_gnu=no
4673 fi
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4676
4677 fi
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4679 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4680 if test $ac_compiler_gnu = yes; then
4681 GXX=yes
4682 else
4683 GXX=
4684 fi
4685 ac_test_CXXFLAGS=${CXXFLAGS+set}
4686 ac_save_CXXFLAGS=$CXXFLAGS
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4688 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4689 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4693 ac_cxx_werror_flag=yes
4694 ac_cv_prog_cxx_g=no
4695 CXXFLAGS="-g"
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698
4699 int
4700 main ()
4701 {
4702
4703 ;
4704 return 0;
4705 }
4706 _ACEOF
4707 if ac_fn_cxx_try_compile "$LINENO"; then :
4708 ac_cv_prog_cxx_g=yes
4709 else
4710 CXXFLAGS=""
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713
4714 int
4715 main ()
4716 {
4717
4718 ;
4719 return 0;
4720 }
4721 _ACEOF
4722 if ac_fn_cxx_try_compile "$LINENO"; then :
4723
4724 else
4725 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4726 CXXFLAGS="-g"
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729
4730 int
4731 main ()
4732 {
4733
4734 ;
4735 return 0;
4736 }
4737 _ACEOF
4738 if ac_fn_cxx_try_compile "$LINENO"; then :
4739 ac_cv_prog_cxx_g=yes
4740 fi
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 fi
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4747 fi
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4749 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4750 if test "$ac_test_CXXFLAGS" = set; then
4751 CXXFLAGS=$ac_save_CXXFLAGS
4752 elif test $ac_cv_prog_cxx_g = yes; then
4753 if test "$GXX" = yes; then
4754 CXXFLAGS="-g -O2"
4755 else
4756 CXXFLAGS="-g"
4757 fi
4758 else
4759 if test "$GXX" = yes; then
4760 CXXFLAGS="-O2"
4761 else
4762 CXXFLAGS=
4763 fi
4764 fi
4765 ac_ext=c
4766 ac_cpp='$CPP $CPPFLAGS'
4767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4770
4771
4772
4773
4774 if test -n "$ac_tool_prefix"; then
4775 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4776 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 if test -n "$GNATBIND"; then
4783 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4795 fi
4796 done
4797 done
4798 IFS=$as_save_IFS
4799
4800 fi
4801 fi
4802 GNATBIND=$ac_cv_prog_GNATBIND
4803 if test -n "$GNATBIND"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4805 $as_echo "$GNATBIND" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4809 fi
4810
4811
4812 fi
4813 if test -z "$ac_cv_prog_GNATBIND"; then
4814 ac_ct_GNATBIND=$GNATBIND
4815 # Extract the first word of "gnatbind", so it can be a program name with args.
4816 set dummy gnatbind; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 if test -n "$ac_ct_GNATBIND"; then
4823 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4835 fi
4836 done
4837 done
4838 IFS=$as_save_IFS
4839
4840 fi
4841 fi
4842 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4843 if test -n "$ac_ct_GNATBIND"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4845 $as_echo "$ac_ct_GNATBIND" >&6; }
4846 else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4849 fi
4850
4851 if test "x$ac_ct_GNATBIND" = x; then
4852 GNATBIND="no"
4853 else
4854 case $cross_compiling:$ac_tool_warned in
4855 yes:)
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858 ac_tool_warned=yes ;;
4859 esac
4860 GNATBIND=$ac_ct_GNATBIND
4861 fi
4862 else
4863 GNATBIND="$ac_cv_prog_GNATBIND"
4864 fi
4865
4866 if test -n "$ac_tool_prefix"; then
4867 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4868 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 if test -n "$GNATMAKE"; then
4875 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4876 else
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4879 do
4880 IFS=$as_save_IFS
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 break 2
4887 fi
4888 done
4889 done
4890 IFS=$as_save_IFS
4891
4892 fi
4893 fi
4894 GNATMAKE=$ac_cv_prog_GNATMAKE
4895 if test -n "$GNATMAKE"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4897 $as_echo "$GNATMAKE" >&6; }
4898 else
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4901 fi
4902
4903
4904 fi
4905 if test -z "$ac_cv_prog_GNATMAKE"; then
4906 ac_ct_GNATMAKE=$GNATMAKE
4907 # Extract the first word of "gnatmake", so it can be a program name with args.
4908 set dummy gnatmake; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 if test -n "$ac_ct_GNATMAKE"; then
4915 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4919 do
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4927 fi
4928 done
4929 done
4930 IFS=$as_save_IFS
4931
4932 fi
4933 fi
4934 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4935 if test -n "$ac_ct_GNATMAKE"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4937 $as_echo "$ac_ct_GNATMAKE" >&6; }
4938 else
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4941 fi
4942
4943 if test "x$ac_ct_GNATMAKE" = x; then
4944 GNATMAKE="no"
4945 else
4946 case $cross_compiling:$ac_tool_warned in
4947 yes:)
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4950 ac_tool_warned=yes ;;
4951 esac
4952 GNATMAKE=$ac_ct_GNATMAKE
4953 fi
4954 else
4955 GNATMAKE="$ac_cv_prog_GNATMAKE"
4956 fi
4957
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4959 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4960 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 cat >conftest.adb <<EOF
4964 procedure conftest is begin null; end conftest;
4965 EOF
4966 acx_cv_cc_gcc_supports_ada=no
4967 # There is a bug in old released versions of GCC which causes the
4968 # driver to exit successfully when the appropriate language module
4969 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4970 # Therefore we must check for the error message as well as an
4971 # unsuccessful exit.
4972 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4973 # given a .adb file, but produce no object file. So we must check
4974 # if an object file was really produced to guard against this.
4975 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4976 if test x"$errors" = x && test -f conftest.$ac_objext; then
4977 acx_cv_cc_gcc_supports_ada=yes
4978 fi
4979 rm -f conftest.*
4980 fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4982 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4983
4984 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4985 have_gnat=yes
4986 else
4987 have_gnat=no
4988 fi
4989
4990
4991 # Do configure tests with the C++ compiler, since that's what we build with.
4992 ac_ext=cpp
4993 ac_cpp='$CXXCPP $CPPFLAGS'
4994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4997
4998
4999 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5000 # optimizations to be activated explicitly by the toplevel.
5001 case "$CC" in
5002 */prev-gcc/xgcc*) ;;
5003 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5004 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5005 esac
5006
5007
5008
5009 # Determine PICFLAG for target gnatlib.
5010
5011
5012
5013
5014 case "${target}" in
5015 # PIC is the default on some targets or must not be used.
5016 *-*-darwin*)
5017 # For darwin, common symbols are not allowed in MH_DYLIB files
5018 case "${CFLAGS}" in
5019 # If we are using a compiler supporting mdynamic-no-pic
5020 # and the option has been tested as safe to add, then cancel
5021 # it here, since the code generated is incompatible with shared
5022 # libs.
5023 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5024 *) PICFLAG_FOR_TARGET=-fno-common ;;
5025 esac
5026 ;;
5027 alpha*-dec-osf5*)
5028 # PIC is the default.
5029 ;;
5030 hppa*64*-*-hpux*)
5031 # PIC is the default for 64-bit PA HP-UX.
5032 ;;
5033 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5034 ;;
5035 i[34567]86-*-mingw* | x86_64-*-mingw*)
5036 ;;
5037 i[34567]86-*-nto-qnx*)
5038 # QNX uses GNU C++, but need to define -shared option too, otherwise
5039 # it will coredump.
5040 PICFLAG_FOR_TARGET='-fPIC -shared'
5041 ;;
5042 i[34567]86-pc-msdosdjgpp*)
5043 # DJGPP does not support shared libraries at all.
5044 ;;
5045 ia64*-*-hpux*)
5046 # On IA64 HP-UX, PIC is the default but the pic flag
5047 # sets the default TLS model and affects inlining.
5048 PICFLAG_FOR_TARGET=-fPIC
5049 ;;
5050 mips-sgi-irix6*)
5051 # PIC is the default.
5052 ;;
5053 rs6000-ibm-aix* | powerpc-ibm-aix*)
5054 # All AIX code is PIC.
5055 ;;
5056
5057 # Some targets support both -fPIC and -fpic, but prefer the latter.
5058 # FIXME: Why?
5059 i[34567]86-*-* | x86_64-*-*)
5060 PICFLAG_FOR_TARGET=-fpic
5061 ;;
5062 # FIXME: Override -fPIC default in libgcc only?
5063 sh-*-linux* | sh[2346lbe]*-*-linux*)
5064 PICFLAG_FOR_TARGET=-fpic
5065 ;;
5066 # FIXME: Simplify to sh*-*-netbsd*?
5067 sh-*-netbsdelf* | shl*-*-netbsdelf*)
5068 PICFLAG_FOR_TARGET=-fpic
5069 ;;
5070 # Default to -fPIC unless specified otherwise.
5071 *)
5072 PICFLAG_FOR_TARGET=-fPIC
5073 ;;
5074 esac
5075
5076 # If the user explicitly uses -fpic/-fPIC, keep that.
5077 case "${CFLAGS_FOR_TARGET}" in
5078 *-fpic*)
5079 PICFLAG_FOR_TARGET=-fpic
5080 ;;
5081 *-fPIC*)
5082 PICFLAG_FOR_TARGET=-fPIC
5083 ;;
5084 esac
5085
5086
5087
5088 # -------------------------
5089 # Check C compiler features
5090 # -------------------------
5091
5092
5093 ac_ext=cpp
5094 ac_cpp='$CXXCPP $CPPFLAGS'
5095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5099 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5100 if test -z "$CXXCPP"; then
5101 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 # Double quotes because CXXCPP needs to be expanded
5105 for CXXCPP in "$CXX -E" "/lib/cpp"
5106 do
5107 ac_preproc_ok=false
5108 for ac_cxx_preproc_warn_flag in '' yes
5109 do
5110 # Use a header file that comes with gcc, so configuring glibc
5111 # with a fresh cross-compiler works.
5112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5113 # <limits.h> exists even on freestanding compilers.
5114 # On the NeXT, cc -E runs the code through the compiler's parser,
5115 # not just through cpp. "Syntax error" is here to catch this case.
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5118 #ifdef __STDC__
5119 # include <limits.h>
5120 #else
5121 # include <assert.h>
5122 #endif
5123 Syntax error
5124 _ACEOF
5125 if ac_fn_cxx_try_cpp "$LINENO"; then :
5126
5127 else
5128 # Broken: fails on valid input.
5129 continue
5130 fi
5131 rm -f conftest.err conftest.$ac_ext
5132
5133 # OK, works on sane cases. Now check whether nonexistent headers
5134 # can be detected and how.
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137 #include <ac_nonexistent.h>
5138 _ACEOF
5139 if ac_fn_cxx_try_cpp "$LINENO"; then :
5140 # Broken: success on invalid input.
5141 continue
5142 else
5143 # Passes both tests.
5144 ac_preproc_ok=:
5145 break
5146 fi
5147 rm -f conftest.err conftest.$ac_ext
5148
5149 done
5150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5151 rm -f conftest.err conftest.$ac_ext
5152 if $ac_preproc_ok; then :
5153 break
5154 fi
5155
5156 done
5157 ac_cv_prog_CXXCPP=$CXXCPP
5158
5159 fi
5160 CXXCPP=$ac_cv_prog_CXXCPP
5161 else
5162 ac_cv_prog_CXXCPP=$CXXCPP
5163 fi
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5165 $as_echo "$CXXCPP" >&6; }
5166 ac_preproc_ok=false
5167 for ac_cxx_preproc_warn_flag in '' yes
5168 do
5169 # Use a header file that comes with gcc, so configuring glibc
5170 # with a fresh cross-compiler works.
5171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5172 # <limits.h> exists even on freestanding compilers.
5173 # On the NeXT, cc -E runs the code through the compiler's parser,
5174 # not just through cpp. "Syntax error" is here to catch this case.
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5177 #ifdef __STDC__
5178 # include <limits.h>
5179 #else
5180 # include <assert.h>
5181 #endif
5182 Syntax error
5183 _ACEOF
5184 if ac_fn_cxx_try_cpp "$LINENO"; then :
5185
5186 else
5187 # Broken: fails on valid input.
5188 continue
5189 fi
5190 rm -f conftest.err conftest.$ac_ext
5191
5192 # OK, works on sane cases. Now check whether nonexistent headers
5193 # can be detected and how.
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196 #include <ac_nonexistent.h>
5197 _ACEOF
5198 if ac_fn_cxx_try_cpp "$LINENO"; then :
5199 # Broken: success on invalid input.
5200 continue
5201 else
5202 # Passes both tests.
5203 ac_preproc_ok=:
5204 break
5205 fi
5206 rm -f conftest.err conftest.$ac_ext
5207
5208 done
5209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5210 rm -f conftest.err conftest.$ac_ext
5211 if $ac_preproc_ok; then :
5212
5213 else
5214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5216 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5217 See \`config.log' for more details." "$LINENO" 5; }
5218 fi
5219
5220 ac_ext=cpp
5221 ac_cpp='$CXXCPP $CPPFLAGS'
5222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5225
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5228 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5229 if test "${ac_cv_path_GREP+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 if test -z "$GREP"; then
5233 ac_path_GREP_found=false
5234 # Loop through the user's path and test for each of PROGNAME-LIST
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5237 do
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_prog in grep ggrep; do
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5243 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5244 # Check for GNU ac_path_GREP and select it if it is found.
5245 # Check for GNU $ac_path_GREP
5246 case `"$ac_path_GREP" --version 2>&1` in
5247 *GNU*)
5248 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5249 *)
5250 ac_count=0
5251 $as_echo_n 0123456789 >"conftest.in"
5252 while :
5253 do
5254 cat "conftest.in" "conftest.in" >"conftest.tmp"
5255 mv "conftest.tmp" "conftest.in"
5256 cp "conftest.in" "conftest.nl"
5257 $as_echo 'GREP' >> "conftest.nl"
5258 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5260 as_fn_arith $ac_count + 1 && ac_count=$as_val
5261 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5262 # Best one so far, save it but keep looking for a better one
5263 ac_cv_path_GREP="$ac_path_GREP"
5264 ac_path_GREP_max=$ac_count
5265 fi
5266 # 10*(2^10) chars as input seems more than enough
5267 test $ac_count -gt 10 && break
5268 done
5269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5270 esac
5271
5272 $ac_path_GREP_found && break 3
5273 done
5274 done
5275 done
5276 IFS=$as_save_IFS
5277 if test -z "$ac_cv_path_GREP"; then
5278 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5279 fi
5280 else
5281 ac_cv_path_GREP=$GREP
5282 fi
5283
5284 fi
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5286 $as_echo "$ac_cv_path_GREP" >&6; }
5287 GREP="$ac_cv_path_GREP"
5288
5289
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5291 $as_echo_n "checking for egrep... " >&6; }
5292 if test "${ac_cv_path_EGREP+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5296 then ac_cv_path_EGREP="$GREP -E"
5297 else
5298 if test -z "$EGREP"; then
5299 ac_path_EGREP_found=false
5300 # Loop through the user's path and test for each of PROGNAME-LIST
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5303 do
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_prog in egrep; do
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5309 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5310 # Check for GNU ac_path_EGREP and select it if it is found.
5311 # Check for GNU $ac_path_EGREP
5312 case `"$ac_path_EGREP" --version 2>&1` in
5313 *GNU*)
5314 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5315 *)
5316 ac_count=0
5317 $as_echo_n 0123456789 >"conftest.in"
5318 while :
5319 do
5320 cat "conftest.in" "conftest.in" >"conftest.tmp"
5321 mv "conftest.tmp" "conftest.in"
5322 cp "conftest.in" "conftest.nl"
5323 $as_echo 'EGREP' >> "conftest.nl"
5324 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5326 as_fn_arith $ac_count + 1 && ac_count=$as_val
5327 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5328 # Best one so far, save it but keep looking for a better one
5329 ac_cv_path_EGREP="$ac_path_EGREP"
5330 ac_path_EGREP_max=$ac_count
5331 fi
5332 # 10*(2^10) chars as input seems more than enough
5333 test $ac_count -gt 10 && break
5334 done
5335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5336 esac
5337
5338 $ac_path_EGREP_found && break 3
5339 done
5340 done
5341 done
5342 IFS=$as_save_IFS
5343 if test -z "$ac_cv_path_EGREP"; then
5344 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5345 fi
5346 else
5347 ac_cv_path_EGREP=$EGREP
5348 fi
5349
5350 fi
5351 fi
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5353 $as_echo "$ac_cv_path_EGREP" >&6; }
5354 EGREP="$ac_cv_path_EGREP"
5355
5356
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5358 $as_echo_n "checking for ANSI C header files... " >&6; }
5359 if test "${ac_cv_header_stdc+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364 #include <stdlib.h>
5365 #include <stdarg.h>
5366 #include <string.h>
5367 #include <float.h>
5368
5369 int
5370 main ()
5371 {
5372
5373 ;
5374 return 0;
5375 }
5376 _ACEOF
5377 if ac_fn_cxx_try_compile "$LINENO"; then :
5378 ac_cv_header_stdc=yes
5379 else
5380 ac_cv_header_stdc=no
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383
5384 if test $ac_cv_header_stdc = yes; then
5385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 #include <string.h>
5389
5390 _ACEOF
5391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5392 $EGREP "memchr" >/dev/null 2>&1; then :
5393
5394 else
5395 ac_cv_header_stdc=no
5396 fi
5397 rm -f conftest*
5398
5399 fi
5400
5401 if test $ac_cv_header_stdc = yes; then
5402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 #include <stdlib.h>
5406
5407 _ACEOF
5408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5409 $EGREP "free" >/dev/null 2>&1; then :
5410
5411 else
5412 ac_cv_header_stdc=no
5413 fi
5414 rm -f conftest*
5415
5416 fi
5417
5418 if test $ac_cv_header_stdc = yes; then
5419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5420 if test "$cross_compiling" = yes; then :
5421 :
5422 else
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 #include <ctype.h>
5426 #include <stdlib.h>
5427 #if ((' ' & 0x0FF) == 0x020)
5428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5430 #else
5431 # define ISLOWER(c) \
5432 (('a' <= (c) && (c) <= 'i') \
5433 || ('j' <= (c) && (c) <= 'r') \
5434 || ('s' <= (c) && (c) <= 'z'))
5435 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5436 #endif
5437
5438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5439 int
5440 main ()
5441 {
5442 int i;
5443 for (i = 0; i < 256; i++)
5444 if (XOR (islower (i), ISLOWER (i))
5445 || toupper (i) != TOUPPER (i))
5446 return 2;
5447 return 0;
5448 }
5449 _ACEOF
5450 if ac_fn_cxx_try_run "$LINENO"; then :
5451
5452 else
5453 ac_cv_header_stdc=no
5454 fi
5455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5456 conftest.$ac_objext conftest.beam conftest.$ac_ext
5457 fi
5458
5459 fi
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5462 $as_echo "$ac_cv_header_stdc" >&6; }
5463 if test $ac_cv_header_stdc = yes; then
5464
5465 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5466
5467 fi
5468
5469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5470 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5471 inttypes.h stdint.h unistd.h
5472 do :
5473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5474 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5475 "
5476 eval as_val=\$$as_ac_Header
5477 if test "x$as_val" = x""yes; then :
5478 cat >>confdefs.h <<_ACEOF
5479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5480 _ACEOF
5481
5482 fi
5483
5484 done
5485
5486
5487
5488 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5489 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5490 MINIX=yes
5491 else
5492 MINIX=
5493 fi
5494
5495
5496 if test "$MINIX" = yes; then
5497
5498 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5499
5500
5501 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5502
5503
5504 $as_echo "#define _MINIX 1" >>confdefs.h
5505
5506 fi
5507
5508
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5510 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5511 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5516
5517 # define __EXTENSIONS__ 1
5518 $ac_includes_default
5519 int
5520 main ()
5521 {
5522
5523 ;
5524 return 0;
5525 }
5526 _ACEOF
5527 if ac_fn_cxx_try_compile "$LINENO"; then :
5528 ac_cv_safe_to_define___extensions__=yes
5529 else
5530 ac_cv_safe_to_define___extensions__=no
5531 fi
5532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533 fi
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5535 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5536 test $ac_cv_safe_to_define___extensions__ = yes &&
5537 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5538
5539 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5540
5541 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5542
5543 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5544
5545 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5546
5547
5548 ac_ext=c
5549 ac_cpp='$CPP $CPPFLAGS'
5550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5554 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5555 # On Suns, sometimes $CPP names a directory.
5556 if test -n "$CPP" && test -d "$CPP"; then
5557 CPP=
5558 fi
5559 if test -z "$CPP"; then
5560 if test "${ac_cv_prog_CPP+set}" = set; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 # Double quotes because CPP needs to be expanded
5564 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5565 do
5566 ac_preproc_ok=false
5567 for ac_c_preproc_warn_flag in '' yes
5568 do
5569 # Use a header file that comes with gcc, so configuring glibc
5570 # with a fresh cross-compiler works.
5571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5572 # <limits.h> exists even on freestanding compilers.
5573 # On the NeXT, cc -E runs the code through the compiler's parser,
5574 # not just through cpp. "Syntax error" is here to catch this case.
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 #ifdef __STDC__
5578 # include <limits.h>
5579 #else
5580 # include <assert.h>
5581 #endif
5582 Syntax error
5583 _ACEOF
5584 if ac_fn_c_try_cpp "$LINENO"; then :
5585
5586 else
5587 # Broken: fails on valid input.
5588 continue
5589 fi
5590 rm -f conftest.err conftest.$ac_ext
5591
5592 # OK, works on sane cases. Now check whether nonexistent headers
5593 # can be detected and how.
5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h. */
5596 #include <ac_nonexistent.h>
5597 _ACEOF
5598 if ac_fn_c_try_cpp "$LINENO"; then :
5599 # Broken: success on invalid input.
5600 continue
5601 else
5602 # Passes both tests.
5603 ac_preproc_ok=:
5604 break
5605 fi
5606 rm -f conftest.err conftest.$ac_ext
5607
5608 done
5609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5610 rm -f conftest.err conftest.$ac_ext
5611 if $ac_preproc_ok; then :
5612 break
5613 fi
5614
5615 done
5616 ac_cv_prog_CPP=$CPP
5617
5618 fi
5619 CPP=$ac_cv_prog_CPP
5620 else
5621 ac_cv_prog_CPP=$CPP
5622 fi
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5624 $as_echo "$CPP" >&6; }
5625 ac_preproc_ok=false
5626 for ac_c_preproc_warn_flag in '' yes
5627 do
5628 # Use a header file that comes with gcc, so configuring glibc
5629 # with a fresh cross-compiler works.
5630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5631 # <limits.h> exists even on freestanding compilers.
5632 # On the NeXT, cc -E runs the code through the compiler's parser,
5633 # not just through cpp. "Syntax error" is here to catch this case.
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5636 #ifdef __STDC__
5637 # include <limits.h>
5638 #else
5639 # include <assert.h>
5640 #endif
5641 Syntax error
5642 _ACEOF
5643 if ac_fn_c_try_cpp "$LINENO"; then :
5644
5645 else
5646 # Broken: fails on valid input.
5647 continue
5648 fi
5649 rm -f conftest.err conftest.$ac_ext
5650
5651 # OK, works on sane cases. Now check whether nonexistent headers
5652 # can be detected and how.
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 #include <ac_nonexistent.h>
5656 _ACEOF
5657 if ac_fn_c_try_cpp "$LINENO"; then :
5658 # Broken: success on invalid input.
5659 continue
5660 else
5661 # Passes both tests.
5662 ac_preproc_ok=:
5663 break
5664 fi
5665 rm -f conftest.err conftest.$ac_ext
5666
5667 done
5668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5669 rm -f conftest.err conftest.$ac_ext
5670 if $ac_preproc_ok; then :
5671
5672 else
5673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5675 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5676 See \`config.log' for more details." "$LINENO" 5; }
5677 fi
5678
5679 ac_ext=cpp
5680 ac_cpp='$CXXCPP $CPPFLAGS'
5681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5684
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5686 $as_echo_n "checking for inline... " >&6; }
5687 if test "${ac_cv_c_inline+set}" = set; then :
5688 $as_echo_n "(cached) " >&6
5689 else
5690 ac_cv_c_inline=no
5691 for ac_kw in inline __inline__ __inline; do
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 #ifndef __cplusplus
5695 typedef int foo_t;
5696 static $ac_kw foo_t static_foo () {return 0; }
5697 $ac_kw foo_t foo () {return 0; }
5698 #endif
5699
5700 _ACEOF
5701 if ac_fn_cxx_try_compile "$LINENO"; then :
5702 ac_cv_c_inline=$ac_kw
5703 fi
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705 test "$ac_cv_c_inline" != no && break
5706 done
5707
5708 fi
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5710 $as_echo "$ac_cv_c_inline" >&6; }
5711
5712 case $ac_cv_c_inline in
5713 inline | yes) ;;
5714 *)
5715 case $ac_cv_c_inline in
5716 no) ac_val=;;
5717 *) ac_val=$ac_cv_c_inline;;
5718 esac
5719 cat >>confdefs.h <<_ACEOF
5720 #ifndef __cplusplus
5721 #define inline $ac_val
5722 #endif
5723 _ACEOF
5724 ;;
5725 esac
5726
5727
5728 # Check whether --enable-largefile was given.
5729 if test "${enable_largefile+set}" = set; then :
5730 enableval=$enable_largefile;
5731 fi
5732
5733 if test "$enable_largefile" != no; then
5734
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5736 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5737 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 ac_cv_sys_largefile_CC=no
5741 if test "$GCC" != yes; then
5742 ac_save_CC=$CC
5743 while :; do
5744 # IRIX 6.2 and later do not support large files by default,
5745 # so use the C compiler's -n32 option if that helps.
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 #include <sys/types.h>
5749 /* Check that off_t can represent 2**63 - 1 correctly.
5750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5751 since some C++ compilers masquerading as C compilers
5752 incorrectly reject 9223372036854775807. */
5753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5755 && LARGE_OFF_T % 2147483647 == 1)
5756 ? 1 : -1];
5757 int
5758 main ()
5759 {
5760
5761 ;
5762 return 0;
5763 }
5764 _ACEOF
5765 if ac_fn_cxx_try_compile "$LINENO"; then :
5766 break
5767 fi
5768 rm -f core conftest.err conftest.$ac_objext
5769 CC="$CC -n32"
5770 if ac_fn_cxx_try_compile "$LINENO"; then :
5771 ac_cv_sys_largefile_CC=' -n32'; break
5772 fi
5773 rm -f core conftest.err conftest.$ac_objext
5774 break
5775 done
5776 CC=$ac_save_CC
5777 rm -f conftest.$ac_ext
5778 fi
5779 fi
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5781 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5782 if test "$ac_cv_sys_largefile_CC" != no; then
5783 CC=$CC$ac_cv_sys_largefile_CC
5784 fi
5785
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5787 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5788 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
5790 else
5791 while :; do
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5794 #include <sys/types.h>
5795 /* Check that off_t can represent 2**63 - 1 correctly.
5796 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5797 since some C++ compilers masquerading as C compilers
5798 incorrectly reject 9223372036854775807. */
5799 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5800 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5801 && LARGE_OFF_T % 2147483647 == 1)
5802 ? 1 : -1];
5803 int
5804 main ()
5805 {
5806
5807 ;
5808 return 0;
5809 }
5810 _ACEOF
5811 if ac_fn_cxx_try_compile "$LINENO"; then :
5812 ac_cv_sys_file_offset_bits=no; break
5813 fi
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5817 #define _FILE_OFFSET_BITS 64
5818 #include <sys/types.h>
5819 /* Check that off_t can represent 2**63 - 1 correctly.
5820 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5821 since some C++ compilers masquerading as C compilers
5822 incorrectly reject 9223372036854775807. */
5823 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5824 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5825 && LARGE_OFF_T % 2147483647 == 1)
5826 ? 1 : -1];
5827 int
5828 main ()
5829 {
5830
5831 ;
5832 return 0;
5833 }
5834 _ACEOF
5835 if ac_fn_cxx_try_compile "$LINENO"; then :
5836 ac_cv_sys_file_offset_bits=64; break
5837 fi
5838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839 ac_cv_sys_file_offset_bits=unknown
5840 break
5841 done
5842 fi
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5844 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5845 case $ac_cv_sys_file_offset_bits in #(
5846 no | unknown) ;;
5847 *)
5848 cat >>confdefs.h <<_ACEOF
5849 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5850 _ACEOF
5851 ;;
5852 esac
5853 rm -rf conftest*
5854 if test $ac_cv_sys_file_offset_bits = unknown; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5856 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5857 if test "${ac_cv_sys_large_files+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 while :; do
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 #include <sys/types.h>
5864 /* Check that off_t can represent 2**63 - 1 correctly.
5865 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5866 since some C++ compilers masquerading as C compilers
5867 incorrectly reject 9223372036854775807. */
5868 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5869 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5870 && LARGE_OFF_T % 2147483647 == 1)
5871 ? 1 : -1];
5872 int
5873 main ()
5874 {
5875
5876 ;
5877 return 0;
5878 }
5879 _ACEOF
5880 if ac_fn_cxx_try_compile "$LINENO"; then :
5881 ac_cv_sys_large_files=no; break
5882 fi
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886 #define _LARGE_FILES 1
5887 #include <sys/types.h>
5888 /* Check that off_t can represent 2**63 - 1 correctly.
5889 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5890 since some C++ compilers masquerading as C compilers
5891 incorrectly reject 9223372036854775807. */
5892 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5893 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5894 && LARGE_OFF_T % 2147483647 == 1)
5895 ? 1 : -1];
5896 int
5897 main ()
5898 {
5899
5900 ;
5901 return 0;
5902 }
5903 _ACEOF
5904 if ac_fn_cxx_try_compile "$LINENO"; then :
5905 ac_cv_sys_large_files=1; break
5906 fi
5907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908 ac_cv_sys_large_files=unknown
5909 break
5910 done
5911 fi
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5913 $as_echo "$ac_cv_sys_large_files" >&6; }
5914 case $ac_cv_sys_large_files in #(
5915 no | unknown) ;;
5916 *)
5917 cat >>confdefs.h <<_ACEOF
5918 #define _LARGE_FILES $ac_cv_sys_large_files
5919 _ACEOF
5920 ;;
5921 esac
5922 rm -rf conftest*
5923 fi
5924 fi
5925
5926
5927 # sizeof(char) is 1 by definition.
5928 # The cast to long int works around a bug in the HP C Compiler
5929 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5930 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5931 # This bug is HP SR number 8606223364.
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5933 $as_echo_n "checking size of void *... " >&6; }
5934 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5938
5939 else
5940 if test "$ac_cv_type_void_p" = yes; then
5941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5943 { as_fn_set_status 77
5944 as_fn_error "cannot compute sizeof (void *)
5945 See \`config.log' for more details." "$LINENO" 5; }; }
5946 else
5947 ac_cv_sizeof_void_p=0
5948 fi
5949 fi
5950
5951 fi
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5953 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5954
5955
5956
5957 cat >>confdefs.h <<_ACEOF
5958 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5959 _ACEOF
5960
5961
5962 # The cast to long int works around a bug in the HP C Compiler
5963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5965 # This bug is HP SR number 8606223364.
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5967 $as_echo_n "checking size of short... " >&6; }
5968 if test "${ac_cv_sizeof_short+set}" = set; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5972
5973 else
5974 if test "$ac_cv_type_short" = yes; then
5975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5977 { as_fn_set_status 77
5978 as_fn_error "cannot compute sizeof (short)
5979 See \`config.log' for more details." "$LINENO" 5; }; }
5980 else
5981 ac_cv_sizeof_short=0
5982 fi
5983 fi
5984
5985 fi
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5987 $as_echo "$ac_cv_sizeof_short" >&6; }
5988
5989
5990
5991 cat >>confdefs.h <<_ACEOF
5992 #define SIZEOF_SHORT $ac_cv_sizeof_short
5993 _ACEOF
5994
5995
5996 # The cast to long int works around a bug in the HP C Compiler
5997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5999 # This bug is HP SR number 8606223364.
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6001 $as_echo_n "checking size of int... " >&6; }
6002 if test "${ac_cv_sizeof_int+set}" = set; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6006
6007 else
6008 if test "$ac_cv_type_int" = yes; then
6009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6011 { as_fn_set_status 77
6012 as_fn_error "cannot compute sizeof (int)
6013 See \`config.log' for more details." "$LINENO" 5; }; }
6014 else
6015 ac_cv_sizeof_int=0
6016 fi
6017 fi
6018
6019 fi
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6021 $as_echo "$ac_cv_sizeof_int" >&6; }
6022
6023
6024
6025 cat >>confdefs.h <<_ACEOF
6026 #define SIZEOF_INT $ac_cv_sizeof_int
6027 _ACEOF
6028
6029
6030 # The cast to long int works around a bug in the HP C Compiler
6031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6033 # This bug is HP SR number 8606223364.
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6035 $as_echo_n "checking size of long... " >&6; }
6036 if test "${ac_cv_sizeof_long+set}" = set; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6040
6041 else
6042 if test "$ac_cv_type_long" = yes; then
6043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6045 { as_fn_set_status 77
6046 as_fn_error "cannot compute sizeof (long)
6047 See \`config.log' for more details." "$LINENO" 5; }; }
6048 else
6049 ac_cv_sizeof_long=0
6050 fi
6051 fi
6052
6053 fi
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6055 $as_echo "$ac_cv_sizeof_long" >&6; }
6056
6057
6058
6059 cat >>confdefs.h <<_ACEOF
6060 #define SIZEOF_LONG $ac_cv_sizeof_long
6061 _ACEOF
6062
6063
6064 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6065 if test "x$ac_cv_type_long_long" = x""yes; then :
6066
6067 cat >>confdefs.h <<_ACEOF
6068 #define HAVE_LONG_LONG 1
6069 _ACEOF
6070
6071 # The cast to long int works around a bug in the HP C Compiler
6072 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6073 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6074 # This bug is HP SR number 8606223364.
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6076 $as_echo_n "checking size of long long... " >&6; }
6077 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6081
6082 else
6083 if test "$ac_cv_type_long_long" = yes; then
6084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6086 { as_fn_set_status 77
6087 as_fn_error "cannot compute sizeof (long long)
6088 See \`config.log' for more details." "$LINENO" 5; }; }
6089 else
6090 ac_cv_sizeof_long_long=0
6091 fi
6092 fi
6093
6094 fi
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6096 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6097
6098
6099
6100 cat >>confdefs.h <<_ACEOF
6101 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6102 _ACEOF
6103
6104
6105 fi
6106
6107 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6108 case $ac_cv_c_int8_t in #(
6109 no|yes) ;; #(
6110 *)
6111
6112 cat >>confdefs.h <<_ACEOF
6113 #define int8_t $ac_cv_c_int8_t
6114 _ACEOF
6115 ;;
6116 esac
6117
6118 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6119 case $ac_cv_c_int16_t in #(
6120 no|yes) ;; #(
6121 *)
6122
6123 cat >>confdefs.h <<_ACEOF
6124 #define int16_t $ac_cv_c_int16_t
6125 _ACEOF
6126 ;;
6127 esac
6128
6129 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6130 case $ac_cv_c_int32_t in #(
6131 no|yes) ;; #(
6132 *)
6133
6134 cat >>confdefs.h <<_ACEOF
6135 #define int32_t $ac_cv_c_int32_t
6136 _ACEOF
6137 ;;
6138 esac
6139
6140 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6141 case $ac_cv_c_int64_t in #(
6142 no|yes) ;; #(
6143 *)
6144
6145 cat >>confdefs.h <<_ACEOF
6146 #define int64_t $ac_cv_c_int64_t
6147 _ACEOF
6148 ;;
6149 esac
6150
6151
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6153 $as_echo_n "checking for long long int... " >&6; }
6154 if test "${ac_cv_type_long_long_int+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6159
6160 /* For now, do not test the preprocessor; as of 2007 there are too many
6161 implementations with broken preprocessors. Perhaps this can
6162 be revisited in 2012. In the meantime, code should not expect
6163 #if to work with literals wider than 32 bits. */
6164 /* Test literals. */
6165 long long int ll = 9223372036854775807ll;
6166 long long int nll = -9223372036854775807LL;
6167 unsigned long long int ull = 18446744073709551615ULL;
6168 /* Test constant expressions. */
6169 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6170 ? 1 : -1)];
6171 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6172 ? 1 : -1)];
6173 int i = 63;
6174 int
6175 main ()
6176 {
6177 /* Test availability of runtime routines for shift and division. */
6178 long long int llmax = 9223372036854775807ll;
6179 unsigned long long int ullmax = 18446744073709551615ull;
6180 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6181 | (llmax / ll) | (llmax % ll)
6182 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6183 | (ullmax / ull) | (ullmax % ull));
6184 ;
6185 return 0;
6186 }
6187
6188 _ACEOF
6189 if ac_fn_cxx_try_link "$LINENO"; then :
6190 if test "$cross_compiling" = yes; then :
6191 ac_cv_type_long_long_int=yes
6192 else
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 #include <limits.h>
6196 #ifndef LLONG_MAX
6197 # define HALF \
6198 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6199 # define LLONG_MAX (HALF - 1 + HALF)
6200 #endif
6201 int
6202 main ()
6203 {
6204 long long int n = 1;
6205 int i;
6206 for (i = 0; ; i++)
6207 {
6208 long long int m = n << i;
6209 if (m >> i != n)
6210 return 1;
6211 if (LLONG_MAX / 2 < m)
6212 break;
6213 }
6214 return 0;
6215 ;
6216 return 0;
6217 }
6218 _ACEOF
6219 if ac_fn_cxx_try_run "$LINENO"; then :
6220 ac_cv_type_long_long_int=yes
6221 else
6222 ac_cv_type_long_long_int=no
6223 fi
6224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6225 conftest.$ac_objext conftest.beam conftest.$ac_ext
6226 fi
6227
6228 else
6229 ac_cv_type_long_long_int=no
6230 fi
6231 rm -f core conftest.err conftest.$ac_objext \
6232 conftest$ac_exeext conftest.$ac_ext
6233 fi
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6235 $as_echo "$ac_cv_type_long_long_int" >&6; }
6236 if test $ac_cv_type_long_long_int = yes; then
6237
6238 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6239
6240 fi
6241
6242
6243
6244 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6245 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6246
6247 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6248
6249 else
6250 test $ac_cv_type_long_long_int = yes \
6251 && ac_type='long long int' \
6252 || ac_type='long int'
6253
6254 cat >>confdefs.h <<_ACEOF
6255 #define intmax_t $ac_type
6256 _ACEOF
6257
6258 fi
6259
6260
6261
6262 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6263 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6264
6265 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6266
6267 else
6268 for ac_type in 'int' 'long int' 'long long int'; do
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 $ac_includes_default
6272 int
6273 main ()
6274 {
6275 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6276 test_array [0] = 0
6277
6278 ;
6279 return 0;
6280 }
6281 _ACEOF
6282 if ac_fn_cxx_try_compile "$LINENO"; then :
6283
6284 cat >>confdefs.h <<_ACEOF
6285 #define intptr_t $ac_type
6286 _ACEOF
6287
6288 ac_type=
6289 fi
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 test -z "$ac_type" && break
6292 done
6293 fi
6294
6295
6296 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6297 case $ac_cv_c_uint8_t in #(
6298 no|yes) ;; #(
6299 *)
6300
6301 $as_echo "#define _UINT8_T 1" >>confdefs.h
6302
6303
6304 cat >>confdefs.h <<_ACEOF
6305 #define uint8_t $ac_cv_c_uint8_t
6306 _ACEOF
6307 ;;
6308 esac
6309
6310 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6311 case $ac_cv_c_uint16_t in #(
6312 no|yes) ;; #(
6313 *)
6314
6315
6316 cat >>confdefs.h <<_ACEOF
6317 #define uint16_t $ac_cv_c_uint16_t
6318 _ACEOF
6319 ;;
6320 esac
6321
6322 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6323 case $ac_cv_c_uint32_t in #(
6324 no|yes) ;; #(
6325 *)
6326
6327 $as_echo "#define _UINT32_T 1" >>confdefs.h
6328
6329
6330 cat >>confdefs.h <<_ACEOF
6331 #define uint32_t $ac_cv_c_uint32_t
6332 _ACEOF
6333 ;;
6334 esac
6335
6336 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6337 case $ac_cv_c_uint64_t in #(
6338 no|yes) ;; #(
6339 *)
6340
6341 $as_echo "#define _UINT64_T 1" >>confdefs.h
6342
6343
6344 cat >>confdefs.h <<_ACEOF
6345 #define uint64_t $ac_cv_c_uint64_t
6346 _ACEOF
6347 ;;
6348 esac
6349
6350
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6352 $as_echo_n "checking for unsigned long long int... " >&6; }
6353 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6358
6359 /* For now, do not test the preprocessor; as of 2007 there are too many
6360 implementations with broken preprocessors. Perhaps this can
6361 be revisited in 2012. In the meantime, code should not expect
6362 #if to work with literals wider than 32 bits. */
6363 /* Test literals. */
6364 long long int ll = 9223372036854775807ll;
6365 long long int nll = -9223372036854775807LL;
6366 unsigned long long int ull = 18446744073709551615ULL;
6367 /* Test constant expressions. */
6368 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6369 ? 1 : -1)];
6370 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6371 ? 1 : -1)];
6372 int i = 63;
6373 int
6374 main ()
6375 {
6376 /* Test availability of runtime routines for shift and division. */
6377 long long int llmax = 9223372036854775807ll;
6378 unsigned long long int ullmax = 18446744073709551615ull;
6379 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6380 | (llmax / ll) | (llmax % ll)
6381 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6382 | (ullmax / ull) | (ullmax % ull));
6383 ;
6384 return 0;
6385 }
6386
6387 _ACEOF
6388 if ac_fn_cxx_try_link "$LINENO"; then :
6389 ac_cv_type_unsigned_long_long_int=yes
6390 else
6391 ac_cv_type_unsigned_long_long_int=no
6392 fi
6393 rm -f core conftest.err conftest.$ac_objext \
6394 conftest$ac_exeext conftest.$ac_ext
6395 fi
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6397 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6398 if test $ac_cv_type_unsigned_long_long_int = yes; then
6399
6400 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6401
6402 fi
6403
6404
6405
6406 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6407 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6408
6409 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6410
6411 else
6412 test $ac_cv_type_unsigned_long_long_int = yes \
6413 && ac_type='unsigned long long int' \
6414 || ac_type='unsigned long int'
6415
6416 cat >>confdefs.h <<_ACEOF
6417 #define uintmax_t $ac_type
6418 _ACEOF
6419
6420 fi
6421
6422
6423
6424 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6425 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6426
6427 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6428
6429 else
6430 for ac_type in 'unsigned int' 'unsigned long int' \
6431 'unsigned long long int'; do
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434 $ac_includes_default
6435 int
6436 main ()
6437 {
6438 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6439 test_array [0] = 0
6440
6441 ;
6442 return 0;
6443 }
6444 _ACEOF
6445 if ac_fn_cxx_try_compile "$LINENO"; then :
6446
6447 cat >>confdefs.h <<_ACEOF
6448 #define uintptr_t $ac_type
6449 _ACEOF
6450
6451 ac_type=
6452 fi
6453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 test -z "$ac_type" && break
6455 done
6456 fi
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6472 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6473 fi
6474
6475 # check what underlying integer type int64_t uses
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6477 $as_echo_n "checking for int64_t underlying type... " >&6; }
6478 if test "${ac_cv_int64_t_type+set}" = set; then :
6479 $as_echo_n "(cached) " >&6
6480 else
6481
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6484
6485 #ifdef HAVE_STDINT_H
6486 #include <stdint.h>
6487 #endif
6488 template <typename T> struct X { };
6489 template <>
6490 struct X<long> { typedef long t; };
6491
6492 int
6493 main ()
6494 {
6495 X<int64_t>::t x;
6496 ;
6497 return 0;
6498 }
6499 _ACEOF
6500 if ac_fn_cxx_try_compile "$LINENO"; then :
6501 ac_cv_int64_t_type=long
6502 else
6503 ac_cv_int64_t_type="long long"
6504 fi
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 fi
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6508 $as_echo "$ac_cv_int64_t_type" >&6; }
6509 if test "$ac_cv_int64_t_type" = "long"; then
6510
6511 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6512
6513 else
6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6516
6517 #ifdef HAVE_STDINT_H
6518 #include <stdint.h>
6519 #endif
6520 template <typename T> struct X { };
6521 template <>
6522 struct X<long long> { typedef long long t; };
6523
6524 int
6525 main ()
6526 {
6527 X<int64_t>::t x;
6528 ;
6529 return 0;
6530 }
6531 _ACEOF
6532 if ac_fn_cxx_try_compile "$LINENO"; then :
6533
6534 else
6535 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6536 fi
6537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 fi
6539
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6541 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6542 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6548
6549 #include <utility>
6550
6551 int
6552 main ()
6553 {
6554 int a, b; std::swap(a,b);
6555 ;
6556 return 0;
6557 }
6558 _ACEOF
6559 if ac_fn_cxx_try_compile "$LINENO"; then :
6560 ac_cv_std_swap_in_utility=yes
6561 else
6562 ac_cv_std_swap_in_utility=no
6563 fi
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565 fi
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6567 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6568 if test $ac_cv_std_swap_in_utility = yes; then
6569
6570 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6571
6572 fi
6573
6574 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6575 # If the host compiler is affected by the bug, and we build with optimization
6576 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6577 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6578 # Since there is no reliable feature check for the presence of this bug,
6579 # we simply use a GCC version number check. (This should never trigger for
6580 # stages 2 or 3 of a native bootstrap.)
6581 aliasing_flags=
6582 if test "$GCC" = yes; then
6583 saved_CXXFLAGS="$CXXFLAGS"
6584
6585 # The following test compilation will succeed if and only if $CXX accepts
6586 # -fno-strict-aliasing *and* is older than GCC 4.3.
6587 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6589 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592
6593 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6594 #error compiler not affected by placement new aliasing bug
6595 #endif
6596
6597 _ACEOF
6598 if ac_fn_cxx_try_compile "$LINENO"; then :
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6600 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6601 else
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606
6607 CXXFLAGS="$saved_CXXFLAGS"
6608 fi
6609
6610
6611
6612
6613 # ---------------------
6614 # Warnings and checking
6615 # ---------------------
6616
6617 # Check $CC warning features (if it's GCC).
6618 # We want to use -pedantic, but we don't want warnings about
6619 # * 'long long'
6620 # * variadic macros
6621 # * overlong strings
6622 # * C++11 narrowing conversions in { }
6623 # So, we only use -pedantic if we can disable those warnings.
6624
6625 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6626 # Check whether --enable-build-format-warnings was given.
6627 if test "${enable_build_format_warnings+set}" = set; then :
6628 enableval=$enable_build_format_warnings;
6629 else
6630 enable_build_format_warnings=yes
6631 fi
6632
6633 if test $enable_build_format_warnings = no; then :
6634 wf_opt=-Wno-format
6635 else
6636 wf_opt=
6637 fi
6638 ac_ext=cpp
6639 ac_cpp='$CXXCPP $CPPFLAGS'
6640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6643
6644 loose_warn=
6645 save_CXXFLAGS="$CXXFLAGS"
6646 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6647 # Do the check with the no- prefix removed since gcc silently
6648 # accepts any -Wno-* option on purpose
6649 case $real_option in
6650 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6651 *) option=$real_option ;;
6652 esac
6653 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6654
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6656 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6657 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 CXXFLAGS="$option"
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6663
6664 int
6665 main ()
6666 {
6667
6668 ;
6669 return 0;
6670 }
6671 _ACEOF
6672 if ac_fn_cxx_try_compile "$LINENO"; then :
6673 eval "$as_acx_Woption=yes"
6674 else
6675 eval "$as_acx_Woption=no"
6676 fi
6677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678
6679 fi
6680 eval ac_res=\$$as_acx_Woption
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6682 $as_echo "$ac_res" >&6; }
6683 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6684 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6685 fi
6686 done
6687 CXXFLAGS="$save_CXXFLAGS"
6688 ac_ext=cpp
6689 ac_cpp='$CXXCPP $CPPFLAGS'
6690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6693
6694
6695
6696 ac_ext=c
6697 ac_cpp='$CPP $CPPFLAGS'
6698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6701
6702 c_loose_warn=
6703 save_CFLAGS="$CFLAGS"
6704 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6705 # Do the check with the no- prefix removed since gcc silently
6706 # accepts any -Wno-* option on purpose
6707 case $real_option in
6708 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6709 *) option=$real_option ;;
6710 esac
6711 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6712
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6714 $as_echo_n "checking whether $CC supports $option... " >&6; }
6715 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 CFLAGS="$option"
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721
6722 int
6723 main ()
6724 {
6725
6726 ;
6727 return 0;
6728 }
6729 _ACEOF
6730 if ac_fn_c_try_compile "$LINENO"; then :
6731 eval "$as_acx_Woption=yes"
6732 else
6733 eval "$as_acx_Woption=no"
6734 fi
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736
6737 fi
6738 eval ac_res=\$$as_acx_Woption
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6740 $as_echo "$ac_res" >&6; }
6741 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6742 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6743 fi
6744 done
6745 CFLAGS="$save_CFLAGS"
6746 ac_ext=cpp
6747 ac_cpp='$CXXCPP $CPPFLAGS'
6748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6751
6752
6753 ac_ext=cpp
6754 ac_cpp='$CXXCPP $CPPFLAGS'
6755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6758
6759 strict_warn=
6760 save_CXXFLAGS="$CXXFLAGS"
6761 for real_option in -Wmissing-format-attribute; do
6762 # Do the check with the no- prefix removed since gcc silently
6763 # accepts any -Wno-* option on purpose
6764 case $real_option in
6765 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6766 *) option=$real_option ;;
6767 esac
6768 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6769
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6771 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6772 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 CXXFLAGS="$option"
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778
6779 int
6780 main ()
6781 {
6782
6783 ;
6784 return 0;
6785 }
6786 _ACEOF
6787 if ac_fn_cxx_try_compile "$LINENO"; then :
6788 eval "$as_acx_Woption=yes"
6789 else
6790 eval "$as_acx_Woption=no"
6791 fi
6792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793
6794 fi
6795 eval ac_res=\$$as_acx_Woption
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6797 $as_echo "$ac_res" >&6; }
6798 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6799 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6800 fi
6801 done
6802 CXXFLAGS="$save_CXXFLAGS"
6803 ac_ext=cpp
6804 ac_cpp='$CXXCPP $CPPFLAGS'
6805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6808
6809
6810 ac_ext=cpp
6811 ac_cpp='$CXXCPP $CPPFLAGS'
6812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6815
6816 save_CXXFLAGS="$CXXFLAGS"
6817 for real_option in -Woverloaded-virtual; do
6818 # Do the check with the no- prefix removed since gcc silently
6819 # accepts any -Wno-* option on purpose
6820 case $real_option in
6821 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6822 *) option=$real_option ;;
6823 esac
6824 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6825
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6827 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6828 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 CXXFLAGS="$option"
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834
6835 int
6836 main ()
6837 {
6838
6839 ;
6840 return 0;
6841 }
6842 _ACEOF
6843 if ac_fn_cxx_try_compile "$LINENO"; then :
6844 eval "$as_acx_Woption=yes"
6845 else
6846 eval "$as_acx_Woption=no"
6847 fi
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849
6850 fi
6851 eval ac_res=\$$as_acx_Woption
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6853 $as_echo "$ac_res" >&6; }
6854 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6855 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6856 fi
6857 done
6858 CXXFLAGS="$save_CXXFLAGS"
6859 ac_ext=cpp
6860 ac_cpp='$CXXCPP $CPPFLAGS'
6861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6864
6865
6866 ac_ext=c
6867 ac_cpp='$CPP $CPPFLAGS'
6868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6871
6872 c_strict_warn=
6873 save_CFLAGS="$CFLAGS"
6874 for real_option in -Wold-style-definition -Wc++-compat; do
6875 # Do the check with the no- prefix removed since gcc silently
6876 # accepts any -Wno-* option on purpose
6877 case $real_option in
6878 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6879 *) option=$real_option ;;
6880 esac
6881 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6882
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6884 $as_echo_n "checking whether $CC supports $option... " >&6; }
6885 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 CFLAGS="$option"
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891
6892 int
6893 main ()
6894 {
6895
6896 ;
6897 return 0;
6898 }
6899 _ACEOF
6900 if ac_fn_c_try_compile "$LINENO"; then :
6901 eval "$as_acx_Woption=yes"
6902 else
6903 eval "$as_acx_Woption=no"
6904 fi
6905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906
6907 fi
6908 eval ac_res=\$$as_acx_Woption
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6910 $as_echo "$ac_res" >&6; }
6911 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6912 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6913 fi
6914 done
6915 CFLAGS="$save_CFLAGS"
6916 ac_ext=cpp
6917 ac_cpp='$CXXCPP $CPPFLAGS'
6918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6921
6922
6923 ac_ext=cpp
6924 ac_cpp='$CXXCPP $CPPFLAGS'
6925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6928
6929 # Do the check with the no- prefix removed from the warning options
6930 # since gcc silently accepts any -Wno-* option on purpose
6931 if test "$GXX" = yes; then :
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6933 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6934 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 save_CXXFLAGS="$CXXFLAGS"
6938 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6941
6942 int
6943 main ()
6944 {
6945
6946 ;
6947 return 0;
6948 }
6949 _ACEOF
6950 if ac_fn_cxx_try_compile "$LINENO"; then :
6951 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6952 else
6953 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6954 fi
6955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6956 CXXFLAGS="$save_CXXFLAGS"
6957 fi
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6959 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6960 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6961 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6962 fi
6963
6964 fi
6965 ac_ext=cpp
6966 ac_cpp='$CXXCPP $CPPFLAGS'
6967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6970
6971
6972 ac_ext=cpp
6973 ac_cpp='$CXXCPP $CPPFLAGS'
6974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6977
6978 # Check whether --enable-werror-always was given.
6979 if test "${enable_werror_always+set}" = set; then :
6980 enableval=$enable_werror_always;
6981 else
6982 enable_werror_always=no
6983 fi
6984
6985 if test $enable_werror_always = yes; then :
6986 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6987 fi
6988
6989 ac_ext=cpp
6990 ac_cpp='$CXXCPP $CPPFLAGS'
6991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6994
6995
6996
6997 # The above macros do nothing if the compiler is not GCC. However, the
6998 # Makefile has more goo to add other flags, so these variables are used
6999 # to enable warnings only for GCC.
7000 warn_cflags=
7001 warn_cxxflags=
7002 if test "x$GCC" = "xyes"; then
7003 warn_cflags='$(GCC_WARN_CFLAGS)'
7004 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7005 fi
7006
7007
7008
7009 # Disable exceptions and RTTI if building with g++
7010 ac_ext=c
7011 ac_cpp='$CPP $CPPFLAGS'
7012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7015
7016 noexception_flags=
7017 save_CFLAGS="$CFLAGS"
7018 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7019 # Do the check with the no- prefix removed since gcc silently
7020 # accepts any -Wno-* option on purpose
7021 case $real_option in
7022 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7023 *) option=$real_option ;;
7024 esac
7025 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7026
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7028 $as_echo_n "checking whether $CC supports $option... " >&6; }
7029 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032 CFLAGS="$option"
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7035
7036 int
7037 main ()
7038 {
7039
7040 ;
7041 return 0;
7042 }
7043 _ACEOF
7044 if ac_fn_c_try_compile "$LINENO"; then :
7045 eval "$as_acx_Woption=yes"
7046 else
7047 eval "$as_acx_Woption=no"
7048 fi
7049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7050
7051 fi
7052 eval ac_res=\$$as_acx_Woption
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7054 $as_echo "$ac_res" >&6; }
7055 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7056 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7057 fi
7058 done
7059 CFLAGS="$save_CFLAGS"
7060 ac_ext=cpp
7061 ac_cpp='$CXXCPP $CPPFLAGS'
7062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7065
7066
7067
7068 # Enable expensive internal checks
7069 is_release=
7070 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7071 is_release=yes
7072 fi
7073
7074 # Check whether --enable-checking was given.
7075 if test "${enable_checking+set}" = set; then :
7076 enableval=$enable_checking; ac_checking_flags="${enableval}"
7077 else
7078
7079 # Determine the default checks.
7080 if test x$is_release = x ; then
7081 ac_checking_flags=yes,extra
7082 else
7083 ac_checking_flags=release
7084 fi
7085 fi
7086
7087 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7088 for check in release $ac_checking_flags
7089 do
7090 case $check in
7091 # these set all the flags to specific states
7092 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7093 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7094 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7095 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7096 ac_tree_checking=1 ; ac_valgrind_checking= ;
7097 ac_types_checking=1 ;;
7098 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7099 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7100 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7101 ac_rtlflag_checking= ; ac_runtime_checking= ;
7102 ac_tree_checking= ; ac_valgrind_checking= ;
7103 ac_types_checking= ;;
7104 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7105 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7106 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7107 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7108 ac_tree_checking=1 ; ac_valgrind_checking= ;
7109 ac_types_checking=1 ;;
7110 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7111 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7112 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7113 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7114 ac_tree_checking= ; ac_valgrind_checking= ;
7115 ac_types_checking= ;;
7116 # these enable particular checks
7117 assert) ac_assert_checking=1 ;;
7118 df) ac_df_checking=1 ;;
7119 extra) ac_extra_checking=1 ;;
7120 fold) ac_fold_checking=1 ;;
7121 gc) ac_gc_checking=1 ;;
7122 gcac) ac_gc_always_collect=1 ;;
7123 gimple) ac_gimple_checking=1 ;;
7124 misc) ac_checking=1 ;;
7125 rtl) ac_rtl_checking=1 ;;
7126 rtlflag) ac_rtlflag_checking=1 ;;
7127 runtime) ac_runtime_checking=1 ;;
7128 tree) ac_tree_checking=1 ;;
7129 types) ac_types_checking=1 ;;
7130 valgrind) ac_valgrind_checking=1 ;;
7131 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7132 esac
7133 done
7134 IFS="$ac_save_IFS"
7135
7136 nocommon_flag=""
7137 if test x$ac_checking != x ; then
7138
7139 $as_echo "#define CHECKING_P 1" >>confdefs.h
7140
7141 nocommon_flag=-fno-common
7142 else
7143 $as_echo "#define CHECKING_P 0" >>confdefs.h
7144
7145 fi
7146
7147 if test x$ac_extra_checking != x ; then
7148
7149 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7150
7151 else
7152 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7153
7154 fi
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25715 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25716 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25717 $as_echo_n "(cached) " >&6
25718 else
25719 gcc_cv_as_ix86_rep_lock_prefix=no
25720 if test x$gcc_cv_as != x; then
25721 $as_echo 'rep movsl
25722 rep ret
25723 rep nop
25724 rep bsf %ecx, %eax
25725 rep bsr %ecx, %eax
25726 lock addl %edi, (%eax,%esi)
25727 lock orl $0, (%esp)' > conftest.s
25728 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25730 (eval $ac_try) 2>&5
25731 ac_status=$?
25732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25733 test $ac_status = 0; }; }
25734 then
25735 gcc_cv_as_ix86_rep_lock_prefix=yes
25736 else
25737 echo "configure: failed program was" >&5
25738 cat conftest.s >&5
25739 fi
25740 rm -f conftest.o conftest.s
25741 fi
25742 fi
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25744 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25745 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25746
25747 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25748
25749 fi
25750
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25752 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25753 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25754 $as_echo_n "(cached) " >&6
25755 else
25756 gcc_cv_as_ix86_ud2=no
25757 if test x$gcc_cv_as != x; then
25758 $as_echo 'ud2' > conftest.s
25759 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25761 (eval $ac_try) 2>&5
25762 ac_status=$?
25763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25764 test $ac_status = 0; }; }
25765 then
25766 gcc_cv_as_ix86_ud2=yes
25767 else
25768 echo "configure: failed program was" >&5
25769 cat conftest.s >&5
25770 fi
25771 rm -f conftest.o conftest.s
25772 fi
25773 fi
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25775 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25776 if test $gcc_cv_as_ix86_ud2 = yes; then
25777
25778 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25779
25780 fi
25781
25782 # Enforce 32-bit output with gas and gld.
25783 if test x$gas = xyes; then
25784 as_ix86_gas_32_opt="--32"
25785 fi
25786 if echo "$ld_ver" | grep GNU > /dev/null; then
25787 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25788 ld_ix86_gld_32_opt="-melf_i386_sol2"
25789 else
25790 ld_ix86_gld_32_opt="-melf_i386"
25791 fi
25792 fi
25793
25794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25795 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25796 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25797 $as_echo_n "(cached) " >&6
25798 else
25799 gcc_cv_as_ix86_tlsgdplt=no
25800 if test x$gcc_cv_as != x; then
25801 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25804 (eval $ac_try) 2>&5
25805 ac_status=$?
25806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25807 test $ac_status = 0; }; }
25808 then
25809 if test x$gcc_cv_ld != x \
25810 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25811 gcc_cv_as_ix86_tlsgdplt=yes
25812 fi
25813 rm -f conftest
25814 else
25815 echo "configure: failed program was" >&5
25816 cat conftest.s >&5
25817 fi
25818 rm -f conftest.o conftest.s
25819 fi
25820 fi
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25822 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25823 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25824
25825 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25826
25827 fi
25828
25829 conftest_s='
25830 .section .tdata,"aw'$tls_section_flag'",@progbits
25831 tls_ld:
25832 .section .text,"ax",@progbits
25833 call tls_ld@tlsldmplt'
25834
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25836 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25837 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25838 $as_echo_n "(cached) " >&6
25839 else
25840 gcc_cv_as_ix86_tlsldmplt=no
25841 if test x$gcc_cv_as != x; then
25842 $as_echo "$conftest_s" > conftest.s
25843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25845 (eval $ac_try) 2>&5
25846 ac_status=$?
25847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25848 test $ac_status = 0; }; }
25849 then
25850 if test x$gcc_cv_ld != x \
25851 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25852 gcc_cv_as_ix86_tlsldmplt=yes
25853 fi
25854 rm -f conftest
25855 else
25856 echo "configure: failed program was" >&5
25857 cat conftest.s >&5
25858 fi
25859 rm -f conftest.o conftest.s
25860 fi
25861 fi
25862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25863 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25864
25865
25866 cat >>confdefs.h <<_ACEOF
25867 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25868 _ACEOF
25869
25870
25871 conftest_s='
25872 .section .text,"ax",@progbits
25873 .globl _start
25874 .type _start, @function
25875 _start:
25876 leal value@tlsldm(%ebx), %eax
25877 call ___tls_get_addr@plt
25878
25879 .section .tdata,"aw'$tls_section_flag'",@progbits
25880 .type value, @object
25881 value:'
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25883 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25884 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25885 $as_echo_n "(cached) " >&6
25886 else
25887 gcc_cv_as_ix86_tlsldm=no
25888 if test x$gcc_cv_as != x; then
25889 $as_echo "$conftest_s" > conftest.s
25890 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25892 (eval $ac_try) 2>&5
25893 ac_status=$?
25894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25895 test $ac_status = 0; }; }
25896 then
25897 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25898 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25899 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25900 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25901 gcc_cv_as_ix86_tlsldm=yes
25902 fi
25903 fi
25904 rm -f conftest
25905 else
25906 echo "configure: failed program was" >&5
25907 cat conftest.s >&5
25908 fi
25909 rm -f conftest.o conftest.s
25910 fi
25911 fi
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25913 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25914
25915
25916 cat >>confdefs.h <<_ACEOF
25917 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25918 _ACEOF
25919
25920
25921 conftest_s='
25922 .data
25923 bar:
25924 .byte 1
25925 .text
25926 .global _start
25927 _start:
25928 cmpl $0, bar@GOT
25929 jmp *_start@GOT'
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
25931 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
25932 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
25933 $as_echo_n "(cached) " >&6
25934 else
25935 gcc_cv_as_ix86_got32x=no
25936 if test x$gcc_cv_as != x; then
25937 $as_echo "$conftest_s" > conftest.s
25938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25940 (eval $ac_try) 2>&5
25941 ac_status=$?
25942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25943 test $ac_status = 0; }; }
25944 then
25945 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25946 && test x$gcc_cv_readelf != x \
25947 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
25948 | grep R_386_GOT32X > /dev/null 2>&1 \
25949 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
25950 if $gcc_cv_objdump -dw conftest 2>&1 \
25951 | grep 0xffffff > /dev/null 2>&1; then
25952 gcc_cv_as_ix86_got32x=no
25953 else
25954 gcc_cv_as_ix86_got32x=yes
25955 fi
25956 fi
25957 rm -f conftest
25958 else
25959 echo "configure: failed program was" >&5
25960 cat conftest.s >&5
25961 fi
25962 rm -f conftest.o conftest.s
25963 fi
25964 fi
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
25966 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
25967
25968
25969 cat >>confdefs.h <<_ACEOF
25970 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
25971 _ACEOF
25972
25973
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25975 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25976 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25977 $as_echo_n "(cached) " >&6
25978 else
25979 gcc_cv_as_ix86_gotoff_in_data=no
25980 if test $in_tree_gas = yes; then
25981 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25982 then gcc_cv_as_ix86_gotoff_in_data=yes
25983 fi
25984 elif test x$gcc_cv_as != x; then
25985 $as_echo ' .text
25986 .L0:
25987 nop
25988 .data
25989 .long .L0@GOTOFF' > conftest.s
25990 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25992 (eval $ac_try) 2>&5
25993 ac_status=$?
25994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25995 test $ac_status = 0; }; }
25996 then
25997 gcc_cv_as_ix86_gotoff_in_data=yes
25998 else
25999 echo "configure: failed program was" >&5
26000 cat conftest.s >&5
26001 fi
26002 rm -f conftest.o conftest.s
26003 fi
26004 fi
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26006 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26007
26008
26009 cat >>confdefs.h <<_ACEOF
26010 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26011 _ACEOF
26012
26013
26014 conftest_s='
26015 .section .text,"ax",@progbits
26016 .globl _start
26017 .type _start, @function
26018 _start:
26019 leal ld@tlsldm(%ecx), %eax
26020 call *___tls_get_addr@GOT(%ecx)
26021 leal gd@tlsgd(%ecx), %eax
26022 call *___tls_get_addr@GOT(%ecx)
26023
26024 .section .tdata,"aw'$tls_section_flag'",@progbits
26025 .type ld, @object
26026 ld:
26027 .byte 0
26028 .globl gd
26029 .type gd, @object
26030 gd:
26031 .byte 0'
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26033 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26034 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26035 $as_echo_n "(cached) " >&6
26036 else
26037 gcc_cv_as_ix86_tls_get_addr_via_got=no
26038 if test x$gcc_cv_as != x; then
26039 $as_echo "$conftest_s" > conftest.s
26040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26042 (eval $ac_try) 2>&5
26043 ac_status=$?
26044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26045 test $ac_status = 0; }; }
26046 then
26047 if test x$gcc_cv_ld != x \
26048 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26049 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26050 fi
26051 rm -f conftest
26052 else
26053 echo "configure: failed program was" >&5
26054 cat conftest.s >&5
26055 fi
26056 rm -f conftest.o conftest.s
26057 fi
26058 fi
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26060 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26061
26062
26063 cat >>confdefs.h <<_ACEOF
26064 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
26065 _ACEOF
26066
26067 ;;
26068
26069 ia64*-*-*)
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26071 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26072 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26073 $as_echo_n "(cached) " >&6
26074 else
26075 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26076 if test $in_tree_gas = yes; then
26077 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26078 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26079 fi
26080 elif test x$gcc_cv_as != x; then
26081 $as_echo ' .text
26082 addl r15 = @ltoffx(x#), gp
26083 ;;
26084 ld8.mov r16 = [r15], x#' > conftest.s
26085 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26087 (eval $ac_try) 2>&5
26088 ac_status=$?
26089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26090 test $ac_status = 0; }; }
26091 then
26092 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26093 else
26094 echo "configure: failed program was" >&5
26095 cat conftest.s >&5
26096 fi
26097 rm -f conftest.o conftest.s
26098 fi
26099 fi
26100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26101 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26102 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26103
26104 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26105
26106 fi
26107
26108 ;;
26109
26110 powerpc*-*-*)
26111
26112 case $target in
26113 *-*-darwin*)
26114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26115 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26116 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26117 $as_echo_n "(cached) " >&6
26118 else
26119 gcc_cv_as_machine_directive=no
26120 if test x$gcc_cv_as != x; then
26121 $as_echo ' .machine ppc7400' > conftest.s
26122 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26124 (eval $ac_try) 2>&5
26125 ac_status=$?
26126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26127 test $ac_status = 0; }; }
26128 then
26129 gcc_cv_as_machine_directive=yes
26130 else
26131 echo "configure: failed program was" >&5
26132 cat conftest.s >&5
26133 fi
26134 rm -f conftest.o conftest.s
26135 fi
26136 fi
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26138 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26139
26140 if test x$gcc_cv_as_machine_directive != xyes; then
26141 echo "*** This target requires an assembler supporting \".machine\"" >&2
26142 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26143 test x$build = x$target && exit 1
26144 fi
26145 ;;
26146 esac
26147
26148 case $target in
26149 *-*-aix*) conftest_s=' .machine "pwr5"
26150 .csect .text[PR]
26151 mfcr 3,128';;
26152 *-*-darwin*) conftest_s=' .text
26153 mfcr r3,128';;
26154 *) conftest_s=' .machine power4
26155 .text
26156 mfcr 3,128';;
26157 esac
26158
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26160 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26161 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26162 $as_echo_n "(cached) " >&6
26163 else
26164 gcc_cv_as_powerpc_mfcrf=no
26165 if test $in_tree_gas = yes; then
26166 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26167 then gcc_cv_as_powerpc_mfcrf=yes
26168 fi
26169 elif test x$gcc_cv_as != x; then
26170 $as_echo "$conftest_s" > conftest.s
26171 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26173 (eval $ac_try) 2>&5
26174 ac_status=$?
26175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26176 test $ac_status = 0; }; }
26177 then
26178 gcc_cv_as_powerpc_mfcrf=yes
26179 else
26180 echo "configure: failed program was" >&5
26181 cat conftest.s >&5
26182 fi
26183 rm -f conftest.o conftest.s
26184 fi
26185 fi
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26187 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26188 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26189
26190 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26191
26192 fi
26193
26194 case $target in
26195 *-*-aix*) conftest_s=' .machine "pwr5"
26196 .csect .text[PR]
26197 popcntb 3,3';;
26198 *) conftest_s=' .machine power5
26199 .text
26200 popcntb 3,3';;
26201 esac
26202
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26204 $as_echo_n "checking assembler for popcntb support... " >&6; }
26205 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26206 $as_echo_n "(cached) " >&6
26207 else
26208 gcc_cv_as_powerpc_popcntb=no
26209 if test $in_tree_gas = yes; then
26210 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26211 then gcc_cv_as_powerpc_popcntb=yes
26212 fi
26213 elif test x$gcc_cv_as != x; then
26214 $as_echo "$conftest_s" > conftest.s
26215 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26217 (eval $ac_try) 2>&5
26218 ac_status=$?
26219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26220 test $ac_status = 0; }; }
26221 then
26222 gcc_cv_as_powerpc_popcntb=yes
26223 else
26224 echo "configure: failed program was" >&5
26225 cat conftest.s >&5
26226 fi
26227 rm -f conftest.o conftest.s
26228 fi
26229 fi
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26231 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26232 if test $gcc_cv_as_powerpc_popcntb = yes; then
26233
26234 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26235
26236 fi
26237
26238 case $target in
26239 *-*-aix*) conftest_s=' .machine "pwr5x"
26240 .csect .text[PR]
26241 frin 1,1';;
26242 *) conftest_s=' .machine power5
26243 .text
26244 frin 1,1';;
26245 esac
26246
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26248 $as_echo_n "checking assembler for fp round support... " >&6; }
26249 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26250 $as_echo_n "(cached) " >&6
26251 else
26252 gcc_cv_as_powerpc_fprnd=no
26253 if test $in_tree_gas = yes; then
26254 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26255 then gcc_cv_as_powerpc_fprnd=yes
26256 fi
26257 elif test x$gcc_cv_as != x; then
26258 $as_echo "$conftest_s" > conftest.s
26259 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26261 (eval $ac_try) 2>&5
26262 ac_status=$?
26263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26264 test $ac_status = 0; }; }
26265 then
26266 gcc_cv_as_powerpc_fprnd=yes
26267 else
26268 echo "configure: failed program was" >&5
26269 cat conftest.s >&5
26270 fi
26271 rm -f conftest.o conftest.s
26272 fi
26273 fi
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26275 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26276 if test $gcc_cv_as_powerpc_fprnd = yes; then
26277
26278 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26279
26280 fi
26281
26282 case $target in
26283 *-*-aix*) conftest_s=' .machine "pwr6"
26284 .csect .text[PR]
26285 mffgpr 1,3';;
26286 *) conftest_s=' .machine power6
26287 .text
26288 mffgpr 1,3';;
26289 esac
26290
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26292 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26293 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26294 $as_echo_n "(cached) " >&6
26295 else
26296 gcc_cv_as_powerpc_mfpgpr=no
26297 if test $in_tree_gas = yes; then
26298 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26299 then gcc_cv_as_powerpc_mfpgpr=yes
26300 fi
26301 elif test x$gcc_cv_as != x; then
26302 $as_echo "$conftest_s" > conftest.s
26303 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26305 (eval $ac_try) 2>&5
26306 ac_status=$?
26307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26308 test $ac_status = 0; }; }
26309 then
26310 gcc_cv_as_powerpc_mfpgpr=yes
26311 else
26312 echo "configure: failed program was" >&5
26313 cat conftest.s >&5
26314 fi
26315 rm -f conftest.o conftest.s
26316 fi
26317 fi
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26319 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26320 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26321
26322 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26323
26324 fi
26325
26326 case $target in
26327 *-*-aix*) conftest_s=' .csect .text[PR]
26328 LCF..0:
26329 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26330 *-*-darwin*)
26331 conftest_s=' .text
26332 LCF0:
26333 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26334 *) conftest_s=' .text
26335 .LCF0:
26336 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26337 esac
26338
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26340 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26341 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26342 $as_echo_n "(cached) " >&6
26343 else
26344 gcc_cv_as_powerpc_rel16=no
26345 if test $in_tree_gas = yes; then
26346 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26347 then gcc_cv_as_powerpc_rel16=yes
26348 fi
26349 elif test x$gcc_cv_as != x; then
26350 $as_echo "$conftest_s" > conftest.s
26351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26353 (eval $ac_try) 2>&5
26354 ac_status=$?
26355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26356 test $ac_status = 0; }; }
26357 then
26358 gcc_cv_as_powerpc_rel16=yes
26359 else
26360 echo "configure: failed program was" >&5
26361 cat conftest.s >&5
26362 fi
26363 rm -f conftest.o conftest.s
26364 fi
26365 fi
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26367 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26368 if test $gcc_cv_as_powerpc_rel16 = yes; then
26369
26370 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26371
26372 fi
26373
26374 case $target in
26375 *-*-aix*) conftest_s=' .machine "pwr6"
26376 .csect .text[PR]
26377 cmpb 3,4,5';;
26378 *) conftest_s=' .machine power6
26379 .text
26380 cmpb 3,4,5';;
26381 esac
26382
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26384 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26385 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26386 $as_echo_n "(cached) " >&6
26387 else
26388 gcc_cv_as_powerpc_cmpb=no
26389 if test $in_tree_gas = yes; then
26390 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26391 then gcc_cv_as_powerpc_cmpb=yes
26392 fi
26393 elif test x$gcc_cv_as != x; then
26394 $as_echo "$conftest_s" > conftest.s
26395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26397 (eval $ac_try) 2>&5
26398 ac_status=$?
26399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26400 test $ac_status = 0; }; }
26401 then
26402 gcc_cv_as_powerpc_cmpb=yes
26403 else
26404 echo "configure: failed program was" >&5
26405 cat conftest.s >&5
26406 fi
26407 rm -f conftest.o conftest.s
26408 fi
26409 fi
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26411 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26412 if test $gcc_cv_as_powerpc_cmpb = yes; then
26413
26414 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26415
26416 fi
26417
26418 case $target in
26419 *-*-aix*) conftest_s=' .machine "pwr6"
26420 .csect .text[PR]
26421 dadd 1,2,3';;
26422 *) conftest_s=' .machine power6
26423 .text
26424 dadd 1,2,3';;
26425 esac
26426
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26428 $as_echo_n "checking assembler for decimal float support... " >&6; }
26429 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26430 $as_echo_n "(cached) " >&6
26431 else
26432 gcc_cv_as_powerpc_dfp=no
26433 if test $in_tree_gas = yes; then
26434 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26435 then gcc_cv_as_powerpc_dfp=yes
26436 fi
26437 elif test x$gcc_cv_as != x; then
26438 $as_echo "$conftest_s" > conftest.s
26439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26441 (eval $ac_try) 2>&5
26442 ac_status=$?
26443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26444 test $ac_status = 0; }; }
26445 then
26446 gcc_cv_as_powerpc_dfp=yes
26447 else
26448 echo "configure: failed program was" >&5
26449 cat conftest.s >&5
26450 fi
26451 rm -f conftest.o conftest.s
26452 fi
26453 fi
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26455 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26456 if test $gcc_cv_as_powerpc_dfp = yes; then
26457
26458 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26459
26460 fi
26461
26462 case $target in
26463 *-*-aix*) conftest_s=' .machine "pwr7"
26464 .csect .text[PR]
26465 lxvd2x 1,2,3';;
26466 *) conftest_s=' .machine power7
26467 .text
26468 lxvd2x 1,2,3';;
26469 esac
26470
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26472 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26473 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26474 $as_echo_n "(cached) " >&6
26475 else
26476 gcc_cv_as_powerpc_vsx=no
26477 if test $in_tree_gas = yes; then
26478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26479 then gcc_cv_as_powerpc_vsx=yes
26480 fi
26481 elif test x$gcc_cv_as != x; then
26482 $as_echo "$conftest_s" > conftest.s
26483 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26485 (eval $ac_try) 2>&5
26486 ac_status=$?
26487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26488 test $ac_status = 0; }; }
26489 then
26490 gcc_cv_as_powerpc_vsx=yes
26491 else
26492 echo "configure: failed program was" >&5
26493 cat conftest.s >&5
26494 fi
26495 rm -f conftest.o conftest.s
26496 fi
26497 fi
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26499 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26500 if test $gcc_cv_as_powerpc_vsx = yes; then
26501
26502 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26503
26504 fi
26505
26506 case $target in
26507 *-*-aix*) conftest_s=' .machine "pwr7"
26508 .csect .text[PR]
26509 popcntd 3,3';;
26510 *) conftest_s=' .machine power7
26511 .text
26512 popcntd 3,3';;
26513 esac
26514
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26516 $as_echo_n "checking assembler for popcntd support... " >&6; }
26517 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26518 $as_echo_n "(cached) " >&6
26519 else
26520 gcc_cv_as_powerpc_popcntd=no
26521 if test $in_tree_gas = yes; then
26522 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26523 then gcc_cv_as_powerpc_popcntd=yes
26524 fi
26525 elif test x$gcc_cv_as != x; then
26526 $as_echo "$conftest_s" > conftest.s
26527 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26529 (eval $ac_try) 2>&5
26530 ac_status=$?
26531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26532 test $ac_status = 0; }; }
26533 then
26534 gcc_cv_as_powerpc_popcntd=yes
26535 else
26536 echo "configure: failed program was" >&5
26537 cat conftest.s >&5
26538 fi
26539 rm -f conftest.o conftest.s
26540 fi
26541 fi
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26543 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26544 if test $gcc_cv_as_powerpc_popcntd = yes; then
26545
26546 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26547
26548 fi
26549
26550 case $target in
26551 *-*-aix*) conftest_s=' .machine "pwr8"
26552 .csect .text[PR]';;
26553 *) conftest_s=' .machine power8
26554 .text';;
26555 esac
26556
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26558 $as_echo_n "checking assembler for power8 support... " >&6; }
26559 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26560 $as_echo_n "(cached) " >&6
26561 else
26562 gcc_cv_as_powerpc_power8=no
26563 if test $in_tree_gas = yes; then
26564 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26565 then gcc_cv_as_powerpc_power8=yes
26566 fi
26567 elif test x$gcc_cv_as != x; then
26568 $as_echo "$conftest_s" > conftest.s
26569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26571 (eval $ac_try) 2>&5
26572 ac_status=$?
26573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26574 test $ac_status = 0; }; }
26575 then
26576 gcc_cv_as_powerpc_power8=yes
26577 else
26578 echo "configure: failed program was" >&5
26579 cat conftest.s >&5
26580 fi
26581 rm -f conftest.o conftest.s
26582 fi
26583 fi
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26585 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26586 if test $gcc_cv_as_powerpc_power8 = yes; then
26587
26588 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26589
26590 fi
26591
26592 case $target in
26593 *-*-aix*) conftest_s=' .machine "pwr9"
26594 .csect .text[PR]';;
26595 *) conftest_s=' .machine power9
26596 .text';;
26597 esac
26598
26599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26600 $as_echo_n "checking assembler for power9 support... " >&6; }
26601 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26602 $as_echo_n "(cached) " >&6
26603 else
26604 gcc_cv_as_powerpc_power9=no
26605 if test $in_tree_gas = yes; then
26606 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26607 then gcc_cv_as_powerpc_power9=yes
26608 fi
26609 elif test x$gcc_cv_as != x; then
26610 $as_echo "$conftest_s" > conftest.s
26611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26613 (eval $ac_try) 2>&5
26614 ac_status=$?
26615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26616 test $ac_status = 0; }; }
26617 then
26618 gcc_cv_as_powerpc_power9=yes
26619 else
26620 echo "configure: failed program was" >&5
26621 cat conftest.s >&5
26622 fi
26623 rm -f conftest.o conftest.s
26624 fi
26625 fi
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26627 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26628 if test $gcc_cv_as_powerpc_power9 = yes; then
26629
26630 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26631
26632 fi
26633
26634 case $target in
26635 *-*-aix*) conftest_s=' .csect .text[PR]
26636 lwsync';;
26637 *) conftest_s=' .text
26638 lwsync';;
26639 esac
26640
26641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26642 $as_echo_n "checking assembler for lwsync support... " >&6; }
26643 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26644 $as_echo_n "(cached) " >&6
26645 else
26646 gcc_cv_as_powerpc_lwsync=no
26647 if test $in_tree_gas = yes; then
26648 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26649 then gcc_cv_as_powerpc_lwsync=yes
26650 fi
26651 elif test x$gcc_cv_as != x; then
26652 $as_echo "$conftest_s" > conftest.s
26653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26655 (eval $ac_try) 2>&5
26656 ac_status=$?
26657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26658 test $ac_status = 0; }; }
26659 then
26660 gcc_cv_as_powerpc_lwsync=yes
26661 else
26662 echo "configure: failed program was" >&5
26663 cat conftest.s >&5
26664 fi
26665 rm -f conftest.o conftest.s
26666 fi
26667 fi
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26669 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26670 if test $gcc_cv_as_powerpc_lwsync = yes; then
26671
26672 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26673
26674 fi
26675
26676 case $target in
26677 *-*-aix*) conftest_s=' .machine "476"
26678 .csect .text[PR]
26679 dci 0';;
26680 *) conftest_s=' .machine "476"
26681 .text
26682 dci 0';;
26683 esac
26684
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26686 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26687 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26688 $as_echo_n "(cached) " >&6
26689 else
26690 gcc_cv_as_powerpc_dci=no
26691 if test $in_tree_gas = yes; then
26692 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26693 then gcc_cv_as_powerpc_dci=yes
26694 fi
26695 elif test x$gcc_cv_as != x; then
26696 $as_echo "$conftest_s" > conftest.s
26697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26699 (eval $ac_try) 2>&5
26700 ac_status=$?
26701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26702 test $ac_status = 0; }; }
26703 then
26704 gcc_cv_as_powerpc_dci=yes
26705 else
26706 echo "configure: failed program was" >&5
26707 cat conftest.s >&5
26708 fi
26709 rm -f conftest.o conftest.s
26710 fi
26711 fi
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26713 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26714 if test $gcc_cv_as_powerpc_dci = yes; then
26715
26716 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26717
26718 fi
26719
26720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26721 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26722 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26723 $as_echo_n "(cached) " >&6
26724 else
26725 gcc_cv_as_powerpc_gnu_attribute=no
26726 if test $in_tree_gas = yes; then
26727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26728 then gcc_cv_as_powerpc_gnu_attribute=yes
26729 fi
26730 elif test x$gcc_cv_as != x; then
26731 $as_echo '.gnu_attribute 4,1' > conftest.s
26732 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26734 (eval $ac_try) 2>&5
26735 ac_status=$?
26736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26737 test $ac_status = 0; }; }
26738 then
26739 gcc_cv_as_powerpc_gnu_attribute=yes
26740 else
26741 echo "configure: failed program was" >&5
26742 cat conftest.s >&5
26743 fi
26744 rm -f conftest.o conftest.s
26745 fi
26746 fi
26747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26748 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26749 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26750
26751 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26752
26753 fi
26754
26755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26756 $as_echo_n "checking assembler for tls marker support... " >&6; }
26757 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26758 $as_echo_n "(cached) " >&6
26759 else
26760 gcc_cv_as_powerpc_tls_markers=no
26761 if test $in_tree_gas = yes; then
26762 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26763 then gcc_cv_as_powerpc_tls_markers=yes
26764 fi
26765 elif test x$gcc_cv_as != x; then
26766 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26767 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26769 (eval $ac_try) 2>&5
26770 ac_status=$?
26771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26772 test $ac_status = 0; }; }
26773 then
26774 gcc_cv_as_powerpc_tls_markers=yes
26775 else
26776 echo "configure: failed program was" >&5
26777 cat conftest.s >&5
26778 fi
26779 rm -f conftest.o conftest.s
26780 fi
26781 fi
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26783 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26784 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26785
26786 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26787
26788 fi
26789
26790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26791 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26792 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26793 $as_echo_n "(cached) " >&6
26794 else
26795 gcc_cv_as_powerpc_entry_markers=no
26796 if test $in_tree_gas = yes; then
26797 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26798 then gcc_cv_as_powerpc_entry_markers=yes
26799 fi
26800 elif test x$gcc_cv_as != x; then
26801 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26804 (eval $ac_try) 2>&5
26805 ac_status=$?
26806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26807 test $ac_status = 0; }; }
26808 then
26809 gcc_cv_as_powerpc_entry_markers=yes
26810 else
26811 echo "configure: failed program was" >&5
26812 cat conftest.s >&5
26813 fi
26814 rm -f conftest.o conftest.s
26815 fi
26816 fi
26817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26818 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26819 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26820
26821 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26822
26823 fi
26824
26825 case $target in
26826 *-*-aix*)
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26828 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26829 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26830 $as_echo_n "(cached) " >&6
26831 else
26832 gcc_cv_as_aix_ref=no
26833 if test $in_tree_gas = yes; then
26834 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26835 then gcc_cv_as_aix_ref=yes
26836 fi
26837 elif test x$gcc_cv_as != x; then
26838 $as_echo ' .csect stuff[rw]
26839 stuff:
26840 .long 1
26841 .extern sym
26842 .ref sym
26843 ' > conftest.s
26844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26846 (eval $ac_try) 2>&5
26847 ac_status=$?
26848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26849 test $ac_status = 0; }; }
26850 then
26851 gcc_cv_as_aix_ref=yes
26852 else
26853 echo "configure: failed program was" >&5
26854 cat conftest.s >&5
26855 fi
26856 rm -f conftest.o conftest.s
26857 fi
26858 fi
26859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26860 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26861 if test $gcc_cv_as_aix_ref = yes; then
26862
26863 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26864
26865 fi
26866
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26868 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26869 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26870 $as_echo_n "(cached) " >&6
26871 else
26872 gcc_cv_as_aix_dwloc=no
26873 if test $in_tree_gas = yes; then
26874 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26875 then gcc_cv_as_aix_dwloc=yes
26876 fi
26877 elif test x$gcc_cv_as != x; then
26878 $as_echo ' .dwsect 0xA0000
26879 Lframe..0:
26880 .vbyte 4,Lframe..0
26881 ' > conftest.s
26882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26884 (eval $ac_try) 2>&5
26885 ac_status=$?
26886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26887 test $ac_status = 0; }; }
26888 then
26889 gcc_cv_as_aix_dwloc=yes
26890 else
26891 echo "configure: failed program was" >&5
26892 cat conftest.s >&5
26893 fi
26894 rm -f conftest.o conftest.s
26895 fi
26896 fi
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26898 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26899 if test $gcc_cv_as_aix_dwloc = yes; then
26900
26901 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26902
26903 fi
26904 ;;
26905 esac
26906 ;;
26907
26908 mips*-*-*)
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26910 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26911 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26912 $as_echo_n "(cached) " >&6
26913 else
26914 gcc_cv_as_mips_explicit_relocs=no
26915 if test $in_tree_gas = yes; then
26916 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26917 then gcc_cv_as_mips_explicit_relocs=yes
26918 fi
26919 elif test x$gcc_cv_as != x; then
26920 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26923 (eval $ac_try) 2>&5
26924 ac_status=$?
26925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26926 test $ac_status = 0; }; }
26927 then
26928 gcc_cv_as_mips_explicit_relocs=yes
26929 else
26930 echo "configure: failed program was" >&5
26931 cat conftest.s >&5
26932 fi
26933 rm -f conftest.o conftest.s
26934 fi
26935 fi
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26937 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26938 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26939 if test x$target_cpu_default = x
26940 then target_cpu_default=MASK_EXPLICIT_RELOCS
26941 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26942 fi
26943 fi
26944
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26946 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26947 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26948 $as_echo_n "(cached) " >&6
26949 else
26950 gcc_cv_as_mips_no_shared=no
26951 if test $in_tree_gas = yes; then
26952 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26953 then gcc_cv_as_mips_no_shared=yes
26954 fi
26955 elif test x$gcc_cv_as != x; then
26956 $as_echo 'nop' > conftest.s
26957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -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_mips_no_shared=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_mips_no_shared" >&5
26973 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26974 if test $gcc_cv_as_mips_no_shared = yes; then
26975
26976 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26977
26978 fi
26979
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26981 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26982 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26983 $as_echo_n "(cached) " >&6
26984 else
26985 gcc_cv_as_mips_gnu_attribute=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_gnu_attribute=yes
26989 fi
26990 elif test x$gcc_cv_as != x; then
26991 $as_echo '.gnu_attribute 4,1' > conftest.s
26992 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26994 (eval $ac_try) 2>&5
26995 ac_status=$?
26996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26997 test $ac_status = 0; }; }
26998 then
26999 gcc_cv_as_mips_gnu_attribute=yes
27000 else
27001 echo "configure: failed program was" >&5
27002 cat conftest.s >&5
27003 fi
27004 rm -f conftest.o conftest.s
27005 fi
27006 fi
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27008 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27009 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27010
27011 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27012
27013 fi
27014
27015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27016 $as_echo_n "checking assembler for .module support... " >&6; }
27017 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27018 $as_echo_n "(cached) " >&6
27019 else
27020 gcc_cv_as_mips_dot_module=no
27021 if test x$gcc_cv_as != x; then
27022 $as_echo '.module mips2
27023 .module fp=xx' > conftest.s
27024 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27026 (eval $ac_try) 2>&5
27027 ac_status=$?
27028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27029 test $ac_status = 0; }; }
27030 then
27031 gcc_cv_as_mips_dot_module=yes
27032 else
27033 echo "configure: failed program was" >&5
27034 cat conftest.s >&5
27035 fi
27036 rm -f conftest.o conftest.s
27037 fi
27038 fi
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27040 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27041 if test $gcc_cv_as_mips_dot_module = yes; then
27042
27043 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27044
27045 fi
27046 if test x$gcc_cv_as_mips_dot_module = xno \
27047 && test x$with_fp_32 != x; then
27048 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27049 fi
27050
27051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27052 $as_echo_n "checking assembler for .micromips support... " >&6; }
27053 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27054 $as_echo_n "(cached) " >&6
27055 else
27056 gcc_cv_as_micromips_support=no
27057 if test x$gcc_cv_as != x; then
27058 $as_echo '.set micromips' > conftest.s
27059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27061 (eval $ac_try) 2>&5
27062 ac_status=$?
27063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27064 test $ac_status = 0; }; }
27065 then
27066 gcc_cv_as_micromips_support=yes
27067 else
27068 echo "configure: failed program was" >&5
27069 cat conftest.s >&5
27070 fi
27071 rm -f conftest.o conftest.s
27072 fi
27073 fi
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27075 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27076 if test $gcc_cv_as_micromips_support = yes; then
27077
27078 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27079
27080 fi
27081
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27083 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27084 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27085 $as_echo_n "(cached) " >&6
27086 else
27087 gcc_cv_as_mips_dtprelword=no
27088 if test $in_tree_gas = yes; then
27089 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27090 then gcc_cv_as_mips_dtprelword=yes
27091 fi
27092 elif test x$gcc_cv_as != x; then
27093 $as_echo '.section .tdata,"awT",@progbits
27094 x:
27095 .word 2
27096 .text
27097 .dtprelword x+0x8000' > conftest.s
27098 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27100 (eval $ac_try) 2>&5
27101 ac_status=$?
27102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27103 test $ac_status = 0; }; }
27104 then
27105 gcc_cv_as_mips_dtprelword=yes
27106 else
27107 echo "configure: failed program was" >&5
27108 cat conftest.s >&5
27109 fi
27110 rm -f conftest.o conftest.s
27111 fi
27112 fi
27113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27114 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27115 if test $gcc_cv_as_mips_dtprelword = yes; then
27116
27117 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27118
27119 fi
27120
27121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27122 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27123 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27124 $as_echo_n "(cached) " >&6
27125 else
27126 gcc_cv_as_mips_dspr1_mult=no
27127 if test x$gcc_cv_as != x; then
27128 $as_echo ' .set mips32r2
27129 .set nodspr2
27130 .set dsp
27131 madd $ac3,$4,$5
27132 maddu $ac3,$4,$5
27133 msub $ac3,$4,$5
27134 msubu $ac3,$4,$5
27135 mult $ac3,$4,$5
27136 multu $ac3,$4,$5' > conftest.s
27137 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27139 (eval $ac_try) 2>&5
27140 ac_status=$?
27141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27142 test $ac_status = 0; }; }
27143 then
27144 gcc_cv_as_mips_dspr1_mult=yes
27145 else
27146 echo "configure: failed program was" >&5
27147 cat conftest.s >&5
27148 fi
27149 rm -f conftest.o conftest.s
27150 fi
27151 fi
27152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27153 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27154 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27155
27156 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27157
27158 fi
27159
27160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27161 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27162 gcc_cv_as_ld_jalr_reloc=no
27163 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27164 if test $in_tree_ld = yes ; then
27165 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 \
27166 && test $in_tree_ld_is_elf = yes; then
27167 gcc_cv_as_ld_jalr_reloc=yes
27168 fi
27169 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27170 echo ' .ent x' > conftest.s
27171 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27172 echo ' lw $25,%call16(y)($28)' >> conftest.s
27173 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27174 echo '1: jalr $25' >> conftest.s
27175 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27176 echo '1: jalr $25' >> conftest.s
27177 echo ' .end x' >> conftest.s
27178 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27179 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27180 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27181 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27182 gcc_cv_as_ld_jalr_reloc=yes
27183 fi
27184 fi
27185 rm -f conftest.*
27186 fi
27187 fi
27188 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27189 if test x$target_cpu_default = x; then
27190 target_cpu_default=MASK_RELAX_PIC_CALLS
27191 else
27192 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27193 fi
27194 fi
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27196 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27197
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27199 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27200 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27201 $as_echo_n "(cached) " >&6
27202 else
27203 gcc_cv_ld_mips_personality_relaxation=no
27204 if test $in_tree_ld = yes ; then
27205 if test "$gcc_cv_gld_major_version" -eq 2 \
27206 -a "$gcc_cv_gld_minor_version" -ge 21 \
27207 -o "$gcc_cv_gld_major_version" -gt 2; then
27208 gcc_cv_ld_mips_personality_relaxation=yes
27209 fi
27210 elif test x$gcc_cv_as != x \
27211 -a x$gcc_cv_ld != x \
27212 -a x$gcc_cv_readelf != x ; then
27213 cat > conftest.s <<EOF
27214 .cfi_startproc
27215 .cfi_personality 0x80,indirect_ptr
27216 .ent test
27217 test:
27218 nop
27219 .end test
27220 .cfi_endproc
27221
27222 .section .data,"aw",@progbits
27223 indirect_ptr:
27224 .dc.a personality
27225 EOF
27226 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27227 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27228 if $gcc_cv_readelf -d conftest 2>&1 \
27229 | grep TEXTREL > /dev/null 2>&1; then
27230 :
27231 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27232 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27233 :
27234 else
27235 gcc_cv_ld_mips_personality_relaxation=yes
27236 fi
27237 fi
27238 fi
27239 rm -f conftest.s conftest.o conftest
27240 fi
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27242 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27243 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27244
27245 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27246
27247 fi
27248
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27250 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27251 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27252 $as_echo_n "(cached) " >&6
27253 else
27254 gcc_cv_as_mips_nan=no
27255 if test x$gcc_cv_as != x; then
27256 $as_echo '' > conftest.s
27257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27259 (eval $ac_try) 2>&5
27260 ac_status=$?
27261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27262 test $ac_status = 0; }; }
27263 then
27264 gcc_cv_as_mips_nan=yes
27265 else
27266 echo "configure: failed program was" >&5
27267 cat conftest.s >&5
27268 fi
27269 rm -f conftest.o conftest.s
27270 fi
27271 fi
27272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27273 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27274 if test $gcc_cv_as_mips_nan = yes; then
27275
27276 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27277
27278 fi
27279 if test x$gcc_cv_as_mips_nan = xno \
27280 && test x$with_nan != x; then
27281 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27282 fi
27283 ;;
27284 s390*-*-*)
27285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27286 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27287 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27288 $as_echo_n "(cached) " >&6
27289 else
27290 gcc_cv_as_s390_gnu_attribute=no
27291 if test $in_tree_gas = yes; then
27292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27293 then gcc_cv_as_s390_gnu_attribute=yes
27294 fi
27295 elif test x$gcc_cv_as != x; then
27296 $as_echo '.gnu_attribute 8,1' > conftest.s
27297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27299 (eval $ac_try) 2>&5
27300 ac_status=$?
27301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27302 test $ac_status = 0; }; }
27303 then
27304 gcc_cv_as_s390_gnu_attribute=yes
27305 else
27306 echo "configure: failed program was" >&5
27307 cat conftest.s >&5
27308 fi
27309 rm -f conftest.o conftest.s
27310 fi
27311 fi
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27313 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27314 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27315
27316 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27317
27318 fi
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27320 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27321 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27322 $as_echo_n "(cached) " >&6
27323 else
27324 gcc_cv_as_s390_machine_machinemode=no
27325 if test $in_tree_gas = yes; then
27326 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27327 then gcc_cv_as_s390_machine_machinemode=yes
27328 fi
27329 elif test x$gcc_cv_as != x; then
27330 $as_echo ' .machinemode push
27331 .machinemode pop
27332 .machine push
27333 .machine pop' > conftest.s
27334 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27336 (eval $ac_try) 2>&5
27337 ac_status=$?
27338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27339 test $ac_status = 0; }; }
27340 then
27341 gcc_cv_as_s390_machine_machinemode=yes
27342 else
27343 echo "configure: failed program was" >&5
27344 cat conftest.s >&5
27345 fi
27346 rm -f conftest.o conftest.s
27347 fi
27348 fi
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27350 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27351 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27352
27353 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27354
27355 fi
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27357 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27358 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27359 $as_echo_n "(cached) " >&6
27360 else
27361 gcc_cv_as_s390_architecture_modifiers=no
27362 if test $in_tree_gas = yes; then
27363 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27364 then gcc_cv_as_s390_architecture_modifiers=yes
27365 fi
27366 elif test x$gcc_cv_as != x; then
27367 $as_echo ' .machine z13+vx ' > conftest.s
27368 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27370 (eval $ac_try) 2>&5
27371 ac_status=$?
27372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27373 test $ac_status = 0; }; }
27374 then
27375 gcc_cv_as_s390_architecture_modifiers=yes
27376 else
27377 echo "configure: failed program was" >&5
27378 cat conftest.s >&5
27379 fi
27380 rm -f conftest.o conftest.s
27381 fi
27382 fi
27383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27384 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27385 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27386
27387 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27388
27389 fi
27390 ;;
27391 esac
27392
27393 # Mips and HP-UX need the GNU assembler.
27394 # Linux on IA64 might be able to use the Intel assembler.
27395
27396 case "$target" in
27397 mips*-*-* | *-*-hpux* )
27398 if test x$gas_flag = xyes \
27399 || test x"$host" != x"$build" \
27400 || test ! -x "$gcc_cv_as" \
27401 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27402 :
27403 else
27404 echo "*** This configuration requires the GNU assembler" >&2
27405 exit 1
27406 fi
27407 ;;
27408 esac
27409
27410 # ??? Not all targets support dwarf2 debug_line, even within a version
27411 # of gas. Moreover, we need to emit a valid instruction to trigger any
27412 # info to the output file. So, as supported targets are added to gas 2.11,
27413 # add some instruction here to (also) show we expect this might work.
27414 # ??? Once 2.11 is released, probably need to add first known working
27415 # version to the per-target configury.
27416 case "$cpu_type" in
27417 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27418 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27419 | visium | xstormy16 | xtensa)
27420 insn="nop"
27421 ;;
27422 ia64 | s390)
27423 insn="nop 0"
27424 ;;
27425 mmix)
27426 insn="swym 0"
27427 ;;
27428 esac
27429 if test x"$insn" != x; then
27430 conftest_s="\
27431 .file 1 \"conftest.s\"
27432 .loc 1 3 0
27433 $insn"
27434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27435 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27436 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27437 $as_echo_n "(cached) " >&6
27438 else
27439 gcc_cv_as_dwarf2_debug_line=no
27440 if test $in_tree_gas = yes; then
27441 if test $in_tree_gas_is_elf = yes \
27442 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27443 then gcc_cv_as_dwarf2_debug_line=yes
27444 fi
27445 elif test x$gcc_cv_as != x; then
27446 $as_echo "$conftest_s" > conftest.s
27447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27449 (eval $ac_try) 2>&5
27450 ac_status=$?
27451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27452 test $ac_status = 0; }; }
27453 then
27454 if test x$gcc_cv_objdump != x \
27455 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27456 | grep debug_line > /dev/null 2>&1; then
27457 gcc_cv_as_dwarf2_debug_line=yes
27458 fi
27459 else
27460 echo "configure: failed program was" >&5
27461 cat conftest.s >&5
27462 fi
27463 rm -f conftest.o conftest.s
27464 fi
27465 fi
27466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27467 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27468
27469
27470 # The .debug_line file table must be in the exact order that
27471 # we specified the files, since these indices are also used
27472 # by DW_AT_decl_file. Approximate this test by testing if
27473 # the assembler bitches if the same index is assigned twice.
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27475 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27476 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27477 $as_echo_n "(cached) " >&6
27478 else
27479 gcc_cv_as_dwarf2_file_buggy=no
27480 if test x$gcc_cv_as != x; then
27481 $as_echo ' .file 1 "foo.s"
27482 .file 1 "bar.s"' > conftest.s
27483 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27485 (eval $ac_try) 2>&5
27486 ac_status=$?
27487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27488 test $ac_status = 0; }; }
27489 then
27490 gcc_cv_as_dwarf2_file_buggy=yes
27491 else
27492 echo "configure: failed program was" >&5
27493 cat conftest.s >&5
27494 fi
27495 rm -f conftest.o conftest.s
27496 fi
27497 fi
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27499 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27500
27501
27502 if test $gcc_cv_as_dwarf2_debug_line = yes \
27503 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27504
27505 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27506
27507 fi
27508
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27510 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27511 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27512 $as_echo_n "(cached) " >&6
27513 else
27514 gcc_cv_as_gdwarf2_flag=no
27515 if test $in_tree_gas = yes; then
27516 if test $in_tree_gas_is_elf = yes \
27517 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27518 then gcc_cv_as_gdwarf2_flag=yes
27519 fi
27520 elif test x$gcc_cv_as != x; then
27521 $as_echo "$insn" > conftest.s
27522 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27524 (eval $ac_try) 2>&5
27525 ac_status=$?
27526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27527 test $ac_status = 0; }; }
27528 then
27529 gcc_cv_as_gdwarf2_flag=yes
27530 else
27531 echo "configure: failed program was" >&5
27532 cat conftest.s >&5
27533 fi
27534 rm -f conftest.o conftest.s
27535 fi
27536 fi
27537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27538 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27539 if test $gcc_cv_as_gdwarf2_flag = yes; then
27540
27541 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27542
27543 fi
27544
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27546 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27547 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27548 $as_echo_n "(cached) " >&6
27549 else
27550 gcc_cv_as_gstabs_flag=no
27551 if test $in_tree_gas = yes; then
27552 if test $in_tree_gas_is_elf = yes \
27553 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27554 then gcc_cv_as_gstabs_flag=yes
27555 fi
27556 elif test x$gcc_cv_as != x; then
27557 $as_echo "$insn" > conftest.s
27558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27560 (eval $ac_try) 2>&5
27561 ac_status=$?
27562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27563 test $ac_status = 0; }; }
27564 then
27565 gcc_cv_as_gstabs_flag=yes
27566 else
27567 echo "configure: failed program was" >&5
27568 cat conftest.s >&5
27569 fi
27570 rm -f conftest.o conftest.s
27571 fi
27572 fi
27573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27574 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27575 if test $gcc_cv_as_gstabs_flag = yes; then
27576
27577 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27578
27579 fi
27580
27581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27582 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27583 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27584 $as_echo_n "(cached) " >&6
27585 else
27586 gcc_cv_as_debug_prefix_map_flag=no
27587 if test $in_tree_gas = yes; then
27588 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27589 then gcc_cv_as_debug_prefix_map_flag=yes
27590 fi
27591 elif test x$gcc_cv_as != x; then
27592 $as_echo "$insn" > conftest.s
27593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27595 (eval $ac_try) 2>&5
27596 ac_status=$?
27597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27598 test $ac_status = 0; }; }
27599 then
27600 gcc_cv_as_debug_prefix_map_flag=yes
27601 else
27602 echo "configure: failed program was" >&5
27603 cat conftest.s >&5
27604 fi
27605 rm -f conftest.o conftest.s
27606 fi
27607 fi
27608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27609 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27610 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27611
27612 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27613
27614 fi
27615 fi
27616
27617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27618 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27619 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27620 $as_echo_n "(cached) " >&6
27621 else
27622 gcc_cv_as_compress_debug=no
27623 if test x$gcc_cv_as != x; then
27624 $as_echo '' > conftest.s
27625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27627 (eval $ac_try) 2>&5
27628 ac_status=$?
27629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27630 test $ac_status = 0; }; }
27631 then
27632 # gas compiled without zlib cannot compress debug sections and warns
27633 # about it, but still exits successfully. So check for this, too.
27634 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27635 then
27636 gcc_cv_as_compress_debug=0
27637 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27638 # defaulting to the ELF gABI format.
27639 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27640 then
27641 gcc_cv_as_compress_debug=2
27642 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27643 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27644 # Before binutils 2.26, gas only supported --compress-debug-options and
27645 # emitted the traditional GNU format.
27646 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27647 then
27648 gcc_cv_as_compress_debug=1
27649 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27650 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27651 else
27652 gcc_cv_as_compress_debug=0
27653 fi
27654 else
27655 echo "configure: failed program was" >&5
27656 cat conftest.s >&5
27657 fi
27658 rm -f conftest.o conftest.s
27659 fi
27660 fi
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27662 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27663
27664
27665 cat >>confdefs.h <<_ACEOF
27666 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27667 _ACEOF
27668
27669
27670 cat >>confdefs.h <<_ACEOF
27671 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27672 _ACEOF
27673
27674
27675 cat >>confdefs.h <<_ACEOF
27676 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27677 _ACEOF
27678
27679
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27681 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27682 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27683 $as_echo_n "(cached) " >&6
27684 else
27685 gcc_cv_as_lcomm_with_alignment=no
27686 if test x$gcc_cv_as != x; then
27687 $as_echo '.lcomm bar,4,16' > conftest.s
27688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27690 (eval $ac_try) 2>&5
27691 ac_status=$?
27692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27693 test $ac_status = 0; }; }
27694 then
27695 gcc_cv_as_lcomm_with_alignment=yes
27696 else
27697 echo "configure: failed program was" >&5
27698 cat conftest.s >&5
27699 fi
27700 rm -f conftest.o conftest.s
27701 fi
27702 fi
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27704 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27705 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27706
27707 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27708
27709 fi
27710
27711 if test x$with_sysroot = x && test x$host = x$target \
27712 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27713 && test "$prefix" != "NONE"; then
27714
27715 cat >>confdefs.h <<_ACEOF
27716 #define PREFIX_INCLUDE_DIR "$prefix/include"
27717 _ACEOF
27718
27719 fi
27720
27721 # Determine the version of glibc, if any, used on the target.
27722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27723 $as_echo_n "checking for target glibc version... " >&6; }
27724
27725 # Check whether --with-glibc-version was given.
27726 if test "${with_glibc_version+set}" = set; then :
27727 withval=$with_glibc_version;
27728 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27729 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27730 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27731 else
27732 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27733 fi
27734 else
27735
27736 glibc_version_major=0
27737 glibc_version_minor=0
27738 if test -f $target_header_dir/features.h \
27739 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27740 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27741 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27742 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27743 fi
27744 fi
27745
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27747 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27748
27749 cat >>confdefs.h <<_ACEOF
27750 #define TARGET_GLIBC_MAJOR $glibc_version_major
27751 _ACEOF
27752
27753
27754 cat >>confdefs.h <<_ACEOF
27755 #define TARGET_GLIBC_MINOR $glibc_version_minor
27756 _ACEOF
27757
27758
27759 # Check whether --enable-gnu-unique-object was given.
27760 if test "${enable_gnu_unique_object+set}" = set; then :
27761 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27762 yes | no) ;;
27763 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27764 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27765 esac
27766 else
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27768 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27769 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27770 $as_echo_n "(cached) " >&6
27771 else
27772 gcc_cv_as_gnu_unique_object=no
27773 if test $in_tree_gas = yes; then
27774 if test $in_tree_gas_is_elf = yes \
27775 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27776 then gcc_cv_as_gnu_unique_object=yes
27777 fi
27778 elif test x$gcc_cv_as != x; then
27779 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27782 (eval $ac_try) 2>&5
27783 ac_status=$?
27784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27785 test $ac_status = 0; }; }
27786 then
27787 gcc_cv_as_gnu_unique_object=yes
27788 else
27789 echo "configure: failed program was" >&5
27790 cat conftest.s >&5
27791 fi
27792 rm -f conftest.o conftest.s
27793 fi
27794 fi
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27796 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27797 if test $gcc_cv_as_gnu_unique_object = yes; then
27798 # We need to unquote above to to use the definition from config.gcc.
27799 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27800
27801 if test $glibc_version_major -gt 2 \
27802 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27803 enable_gnu_unique_object=yes
27804 fi
27805
27806 fi
27807 fi
27808
27809 if test x$enable_gnu_unique_object = xyes; then
27810
27811 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27812
27813 fi
27814
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27816 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27817 if test "${gcc_cv_as_line_zero+set}" = set; then :
27818 $as_echo_n "(cached) " >&6
27819 else
27820 gcc_cv_as_line_zero=no
27821 if test $in_tree_gas = yes; then
27822 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27823 then gcc_cv_as_line_zero=yes
27824 fi
27825 elif test "x$gcc_cv_as" != x; then
27826 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27827 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27829 (eval $ac_try) 2>&5
27830 ac_status=$?
27831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27832 test $ac_status = 0; }; } &&
27833 test "x`cat conftest.out`" = x
27834 then
27835 gcc_cv_as_line_zero=yes
27836 else
27837 echo "configure: failed program was" >&5
27838 cat conftest.s >&5
27839 echo "configure: error output was" >&5
27840 cat conftest.out >&5
27841 fi
27842 rm -f conftest.o conftest.s conftest.out
27843 fi
27844 fi
27845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27846 $as_echo "$gcc_cv_as_line_zero" >&6; }
27847 if test "x$gcc_cv_as_line_zero" = xyes; then
27848
27849 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27850
27851 fi
27852
27853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
27854 $as_echo_n "checking support for thin archives... " >&6; }
27855 thin_archive_support=no
27856 echo 'int main (void) { return 0; }' > conftest.c
27857 if ($AR --version | sed 1q | grep "GNU ar" \
27858 && $CC $CFLAGS -c conftest.c \
27859 && $AR rcT conftest.a conftest.o \
27860 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
27861 thin_archive_support=yes
27862 fi
27863 rm -f conftest.c conftest.o conftest.a conftest
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
27865 $as_echo "$thin_archive_support" >&6; }
27866
27867
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27869 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27870 gcc_cv_ld_eh_frame_hdr=no
27871 if test $in_tree_ld = yes ; then
27872 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 \
27873 && test $in_tree_ld_is_elf = yes; then
27874 gcc_cv_ld_eh_frame_hdr=yes
27875 fi
27876 elif test x$gcc_cv_ld != x; then
27877 if echo "$ld_ver" | grep GNU > /dev/null; then
27878 # Check if linker supports --eh-frame-hdr option
27879 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27880 gcc_cv_ld_eh_frame_hdr=yes
27881 fi
27882 else
27883 case "$target" in
27884 *-*-solaris2*)
27885 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27886 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27887 gcc_cv_ld_eh_frame_hdr=yes
27888 fi
27889 ;;
27890 esac
27891 fi
27892 fi
27893
27894 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27895
27896 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27897
27898 fi
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27900 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27901
27902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27903 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27904 gcc_cv_ld_eh_frame_ciev3=no
27905 if test $in_tree_ld = yes ; then
27906 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 \
27907 && test $in_tree_ld_is_elf = yes; then
27908 gcc_cv_ld_eh_frame_ciev3=yes
27909 fi
27910 elif test x$gcc_cv_ld != x; then
27911 if echo "$ld_ver" | grep GNU > /dev/null; then
27912 gcc_cv_ld_eh_frame_ciev3=yes
27913 if test 0"$ld_date" -lt 20040513; then
27914 if test -n "$ld_date"; then
27915 # If there was date string, but was earlier than 2004-05-13, fail
27916 gcc_cv_ld_eh_frame_ciev3=no
27917 elif test "$ld_vers_major" -lt 2; then
27918 gcc_cv_ld_eh_frame_ciev3=no
27919 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27920 gcc_cv_ld_eh_frame_ciev3=no
27921 fi
27922 fi
27923 else
27924 case "$target" in
27925 *-*-solaris2*)
27926 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27927 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27928 gcc_cv_ld_eh_frame_ciev3=yes
27929 fi
27930 ;;
27931 esac
27932 fi
27933 fi
27934
27935 cat >>confdefs.h <<_ACEOF
27936 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27937 _ACEOF
27938
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27940 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27941
27942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27943 $as_echo_n "checking linker position independent executable support... " >&6; }
27944 gcc_cv_ld_pie=no
27945 if test $in_tree_ld = yes ; then
27946 case "$target" in
27947 # Full PIE support on Solaris was only introduced in gld 2.26.
27948 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
27949 *) gcc_gld_pie_min_version=15 ;;
27950 esac
27951 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 \
27952 && test $in_tree_ld_is_elf = yes; then
27953 gcc_cv_ld_pie=yes
27954 fi
27955 elif test x$gcc_cv_ld != x; then
27956 # Check if linker supports -pie option
27957 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27958 gcc_cv_ld_pie=yes
27959 case "$target" in
27960 *-*-solaris2*)
27961 if echo "$ld_ver" | grep GNU > /dev/null \
27962 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27963 gcc_cv_ld_pie=no
27964 fi
27965 ;;
27966 esac
27967 else
27968 case "$target" in
27969 *-*-solaris2.1[1-9]*)
27970 # Solaris 11.x and Solaris 12 added PIE support.
27971 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27972 gcc_cv_ld_pie=yes
27973 fi
27974 ;;
27975 esac
27976 fi
27977 fi
27978 if test x"$gcc_cv_ld_pie" = xyes; then
27979
27980 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27981
27982 fi
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27984 $as_echo "$gcc_cv_ld_pie" >&6; }
27985
27986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27987 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27988 gcc_cv_ld_pie_copyreloc=no
27989 if test $gcc_cv_ld_pie = yes ; then
27990 if test $in_tree_ld = yes ; then
27991 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
27992 gcc_cv_ld_pie_copyreloc=yes
27993 fi
27994 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27995 # Check if linker supports -pie option with copy reloc
27996 case "$target" in
27997 i?86-*-linux* | x86_64-*-linux*)
27998 cat > conftest1.s <<EOF
27999 .globl a_glob
28000 .data
28001 .type a_glob, @object
28002 .size a_glob, 4
28003 a_glob:
28004 .long 2
28005 EOF
28006 cat > conftest2.s <<EOF
28007 .text
28008 .globl main
28009 .type main, @function
28010 main:
28011 movl %eax, a_glob(%rip)
28012 .size main, .-main
28013 .globl ptr
28014 .section .data.rel,"aw",@progbits
28015 .type ptr, @object
28016 ptr:
28017 .quad a_glob
28018 EOF
28019 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28020 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28021 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28022 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28023 gcc_cv_ld_pie_copyreloc=yes
28024 fi
28025 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28026 ;;
28027 esac
28028 fi
28029 fi
28030
28031 cat >>confdefs.h <<_ACEOF
28032 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28033 _ACEOF
28034
28035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28036 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28037
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28039 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28040 gcc_cv_ld_eh_gc_sections=no
28041 if test $in_tree_ld = yes ; then
28042 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 \
28043 && test $in_tree_ld_is_elf = yes; then
28044 gcc_cv_ld_eh_gc_sections=yes
28045 fi
28046 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28047 cat > conftest.s <<EOF
28048 .section .text
28049 .globl _start
28050 .type _start, @function
28051 _start:
28052 .long foo
28053 .size _start, .-_start
28054 .section .text.foo,"ax",@progbits
28055 .type foo, @function
28056 foo:
28057 .long 0
28058 .size foo, .-foo
28059 .section .gcc_except_table.foo,"a",@progbits
28060 .L0:
28061 .long 0
28062 .section .eh_frame,"a",@progbits
28063 .long .L0
28064 EOF
28065 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28066 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28067 | grep "gc-sections option ignored" > /dev/null; then
28068 gcc_cv_ld_eh_gc_sections=no
28069 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28070 | grep gcc_except_table > /dev/null; then
28071 gcc_cv_ld_eh_gc_sections=yes
28072 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28073 if test x$gcc_cv_as_comdat_group != xyes; then
28074 gcc_cv_ld_eh_gc_sections=no
28075 cat > conftest.s <<EOF
28076 .section .text
28077 .globl _start
28078 .type _start, @function
28079 _start:
28080 .long foo
28081 .size _start, .-_start
28082 .section .gnu.linkonce.t.foo,"ax",@progbits
28083 .type foo, @function
28084 foo:
28085 .long 0
28086 .size foo, .-foo
28087 .section .gcc_except_table.foo,"a",@progbits
28088 .L0:
28089 .long 0
28090 .section .eh_frame,"a",@progbits
28091 .long .L0
28092 EOF
28093 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28094 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28095 | grep "gc-sections option ignored" > /dev/null; then
28096 gcc_cv_ld_eh_gc_sections=no
28097 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28098 | grep gcc_except_table > /dev/null; then
28099 gcc_cv_ld_eh_gc_sections=yes
28100 fi
28101 fi
28102 fi
28103 fi
28104 fi
28105 rm -f conftest.s conftest.o conftest
28106 fi
28107 case "$target" in
28108 hppa*-*-linux*)
28109 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28110 gcc_cv_ld_eh_gc_sections=no
28111 ;;
28112 esac
28113 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28114
28115 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28116
28117 fi
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28119 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28120
28121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28122 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28123 gcc_cv_ld_eh_gc_sections_bug=no
28124 if test $in_tree_ld = yes ; then
28125 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 \
28126 && test $in_tree_ld_is_elf = yes; then
28127 gcc_cv_ld_eh_gc_sections_bug=yes
28128 fi
28129 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
28130 gcc_cv_ld_eh_gc_sections_bug=yes
28131 cat > conftest.s <<EOF
28132 .section .text
28133 .globl _start
28134 .type _start, @function
28135 _start:
28136 .long foo
28137 .size _start, .-_start
28138 .section .text.startup.foo,"ax",@progbits
28139 .type foo, @function
28140 foo:
28141 .long 0
28142 .size foo, .-foo
28143 .section .gcc_except_table.foo,"a",@progbits
28144 .L0:
28145 .long 0
28146 .section .eh_frame,"a",@progbits
28147 .long .L0
28148 EOF
28149 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28150 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28151 | grep "gc-sections option ignored" > /dev/null; then
28152 :
28153 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28154 | grep gcc_except_table > /dev/null; then
28155 gcc_cv_ld_eh_gc_sections_bug=no
28156 fi
28157 fi
28158 rm -f conftest.s conftest.o conftest
28159 fi
28160 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28161
28162 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28163
28164 fi
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28166 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28167
28168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28169 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28170 # gold/gld support compressed debug sections since binutils 2.19/2.21
28171 # In binutils 2.26, gld gained support for the ELF gABI format.
28172 if test $in_tree_ld = yes ; then
28173 gcc_cv_ld_compress_debug=0
28174 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 \
28175 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28176 gcc_cv_ld_compress_debug=2
28177 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28178 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
28179 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28180 gcc_cv_ld_compress_debug=3
28181 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28182 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 \
28183 && test $in_tree_ld_is_elf = yes; then
28184 gcc_cv_ld_compress_debug=1
28185 fi
28186 elif echo "$ld_ver" | grep GNU > /dev/null; then
28187 if test "$ld_vers_major" -lt 2 \
28188 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28189 gcc_cv_ld_compress_debug=0
28190 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28191 gcc_cv_ld_compress_debug=1
28192 else
28193 gcc_cv_ld_compress_debug=3
28194 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28195 fi
28196 if test $ld_is_gold = yes; then
28197 gcc_cv_ld_compress_debug=2
28198 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28199 fi
28200 else
28201 case "${target}" in
28202 *-*-solaris2*)
28203 # Introduced in Solaris 11.2.
28204 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28205 gcc_cv_ld_compress_debug=3
28206 gcc_cv_ld_compress_debug_option="-z compress-sections"
28207 else
28208 gcc_cv_ld_compress_debug=0
28209 fi
28210 ;;
28211 *)
28212 # Assume linkers other than GNU ld don't support compessed debug
28213 # sections.
28214 gcc_cv_ld_compress_debug=0
28215 ;;
28216 esac
28217 fi
28218
28219 cat >>confdefs.h <<_ACEOF
28220 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28221 _ACEOF
28222
28223
28224 cat >>confdefs.h <<_ACEOF
28225 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28226 _ACEOF
28227
28228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28229 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28230
28231 # --------
28232 # UNSORTED
28233 # --------
28234
28235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28236 $as_echo_n "checking linker --as-needed support... " >&6; }
28237 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28238 $as_echo_n "(cached) " >&6
28239 else
28240 gcc_cv_ld_as_needed=no
28241 gcc_cv_ld_as_needed_option='--as-needed'
28242 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28243 if test $in_tree_ld = yes ; then
28244 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 \
28245 && test $in_tree_ld_is_elf = yes; then
28246 gcc_cv_ld_as_needed=yes
28247 fi
28248 elif test x$gcc_cv_ld != x; then
28249 # Check if linker supports --as-needed and --no-as-needed options
28250 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28251 gcc_cv_ld_as_needed=yes
28252 else
28253 case "$target" in
28254 # Solaris 2 ld always supports -z ignore/-z record.
28255 *-*-solaris2*)
28256 gcc_cv_ld_as_needed=yes
28257 gcc_cv_ld_as_needed_option="-z ignore"
28258 gcc_cv_ld_no_as_needed_option="-z record"
28259 ;;
28260 esac
28261 fi
28262 fi
28263 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28264 # dl_iterate_phdr, i.e. since Solaris 11.
28265 case "$target" in
28266 *-*-solaris2.1[1-9]*)
28267 case "$target" in
28268 i?86-*-* | x86_64-*-*)
28269 if echo "$ld_ver" | grep GNU > /dev/null; then
28270 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28271 gcc_cv_ld_as_needed=no
28272 fi
28273 ;;
28274 esac
28275 ;;
28276 *-*-solaris2*)
28277 gcc_cv_ld_as_needed=no
28278 ;;
28279 esac
28280
28281 fi
28282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28283 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28284 if test x"$gcc_cv_ld_as_needed" = xyes; then
28285
28286 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28287
28288
28289 cat >>confdefs.h <<_ACEOF
28290 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28291 _ACEOF
28292
28293
28294 cat >>confdefs.h <<_ACEOF
28295 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28296 _ACEOF
28297
28298 fi
28299
28300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28301 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28302 saved_LDFLAGS="$LDFLAGS"
28303 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28304 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28306 /* end confdefs.h. */
28307 int main(void) {return 0;}
28308 _ACEOF
28309 if ac_fn_cxx_try_link "$LINENO"; then :
28310 gcc_cv_ld_clearcap=yes; break
28311 else
28312 gcc_cv_ld_clearcap=no
28313 fi
28314 rm -f core conftest.err conftest.$ac_objext \
28315 conftest$ac_exeext conftest.$ac_ext
28316 done
28317 LDFLAGS="$saved_LDFLAGS"
28318 if test "x$gcc_cv_ld_clearcap" = xyes; then
28319
28320 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28321
28322 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28323
28324 fi
28325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28326 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28327
28328 case "$target" in
28329 powerpc*-*-*)
28330 case "$target" in
28331 *le-*-linux*)
28332 emul_name="-melf32lppc"
28333 ;;
28334 *)
28335 emul_name="-melf32ppc"
28336 ;;
28337 esac
28338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28339 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28340 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28341 $as_echo_n "(cached) " >&6
28342 else
28343 gcc_cv_ld_ppc_attr=no
28344 if test x"$ld_is_gold" = xyes; then
28345 gcc_cv_ld_ppc_attr=yes
28346 elif test $in_tree_ld = yes ; then
28347 if test "$gcc_cv_gld_major_version" -eq 2 \
28348 -a "$gcc_cv_gld_minor_version" -ge 28 \
28349 -o "$gcc_cv_gld_major_version" -gt 2; then
28350 gcc_cv_ld_ppc_attr=yes
28351 fi
28352 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28353 # check that merging the long double .gnu_attribute doesn't warn
28354 cat > conftest1.s <<EOF
28355 .gnu_attribute 4,1
28356 EOF
28357 cat > conftest2.s <<EOF
28358 .gnu_attribute 4,9
28359 EOF
28360 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28361 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28362 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28363 && test ! -s conftest.err; then
28364 gcc_cv_ld_ppc_attr=yes
28365 fi
28366 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28367 fi
28368
28369 fi
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28371 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28372 if test x$gcc_cv_ld_ppc_attr = xyes; then
28373
28374 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28375
28376 fi
28377 ;;
28378 esac
28379
28380 case "$target:$tm_file" in
28381 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28382 case "$target" in
28383 *le-*-linux*)
28384 emul_name="-melf64lppc"
28385 ;;
28386 *-*-linux*)
28387 emul_name="-melf64ppc"
28388 ;;
28389 *-*-freebsd*)
28390 emul_name="-melf64ppc_fbsd"
28391 ;;
28392 esac
28393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28394 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28395 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28396 $as_echo_n "(cached) " >&6
28397 else
28398 gcc_cv_ld_no_dot_syms=no
28399 if test x"$ld_is_gold" = xyes; then
28400 gcc_cv_ld_no_dot_syms=yes
28401 elif test $in_tree_ld = yes ; then
28402 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
28403 gcc_cv_ld_no_dot_syms=yes
28404 fi
28405 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28406 cat > conftest1.s <<EOF
28407 .text
28408 bl .foo
28409 EOF
28410 cat > conftest2.s <<EOF
28411 .section ".opd","aw"
28412 .align 3
28413 .globl foo
28414 .type foo,@function
28415 foo:
28416 .quad .LEfoo,.TOC.@tocbase,0
28417 .text
28418 .LEfoo:
28419 blr
28420 .size foo,.-.LEfoo
28421 EOF
28422 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28423 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28424 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28425 gcc_cv_ld_no_dot_syms=yes
28426 fi
28427 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28428 fi
28429
28430 fi
28431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28432 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28433 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28434
28435 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28436
28437 fi
28438
28439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28440 $as_echo_n "checking linker large toc support... " >&6; }
28441 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28442 $as_echo_n "(cached) " >&6
28443 else
28444 gcc_cv_ld_large_toc=no
28445 if test x"$ld_is_gold" = xyes; then
28446 gcc_cv_ld_large_toc=yes
28447 elif test $in_tree_ld = yes ; then
28448 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
28449 gcc_cv_ld_large_toc=yes
28450 fi
28451 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28452 cat > conftest.s <<EOF
28453 .section ".tbss","awT",@nobits
28454 .align 3
28455 ie0: .space 8
28456 .global _start
28457 .text
28458 _start:
28459 addis 9,13,ie0@got@tprel@ha
28460 ld 9,ie0@got@tprel@l(9)
28461 EOF
28462 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28463 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28464 gcc_cv_ld_large_toc=yes
28465 fi
28466 rm -f conftest conftest.o conftest.s
28467 fi
28468
28469 fi
28470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28471 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28472 if test x"$gcc_cv_ld_large_toc" = xyes; then
28473
28474 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28475
28476 fi
28477
28478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28479 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28480 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28481 $as_echo_n "(cached) " >&6
28482 else
28483 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28484 cat > conftest.s <<EOF
28485 .global _start
28486 .text
28487 _start:
28488 addis 9,2,x@got@ha
28489 .section .data.rel.ro,"aw",@progbits
28490 .p2align 16
28491 .space 32768
28492 x: .quad .TOC.
28493 EOF
28494 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28495 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28496 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)) }'`
28497 fi
28498 rm -f conftest conftest.o conftest.s
28499 fi
28500
28501 fi
28502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28503 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28504 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28505
28506 cat >>confdefs.h <<_ACEOF
28507 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28508 _ACEOF
28509
28510 fi
28511 ;;
28512 esac
28513
28514 case "$target" in
28515 *-*-aix*)
28516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28517 $as_echo_n "checking linker large toc support... " >&6; }
28518 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28519 $as_echo_n "(cached) " >&6
28520 else
28521 gcc_cv_ld_large_toc=no
28522 if test x$gcc_cv_as != x ; then
28523 cat > conftest.s <<EOF
28524 .toc
28525 LC..1:
28526 .tc a[TC],a[RW]
28527 .extern a[RW]
28528 .csect .text[PR]
28529 .largetoctest:
28530 addis 9,LC..1@u(2)
28531 ld 3,LC..1@l(9)
28532 EOF
28533 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28534 gcc_cv_ld_large_toc=yes
28535 fi
28536 rm -f conftest conftest.o conftest.s
28537 fi
28538
28539 fi
28540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28541 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28542 if test x"$gcc_cv_ld_large_toc" = xyes; then
28543
28544 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28545
28546 fi
28547 ;;
28548 esac
28549
28550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28551 $as_echo_n "checking linker --build-id support... " >&6; }
28552 if test "${gcc_cv_ld_buildid+set}" = set; then :
28553 $as_echo_n "(cached) " >&6
28554 else
28555 gcc_cv_ld_buildid=no
28556 if test $in_tree_ld = yes ; then
28557 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28558 "$gcc_cv_gld_minor_version" -ge 18 -o \
28559 "$gcc_cv_gld_major_version" -gt 2 \
28560 && test $in_tree_ld_is_elf = yes; then
28561 gcc_cv_ld_buildid=yes
28562 fi
28563 elif test x$gcc_cv_ld != x; then
28564 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28565 gcc_cv_ld_buildid=yes
28566 fi
28567 fi
28568 fi
28569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28570 $as_echo "$gcc_cv_ld_buildid" >&6; }
28571 if test x"$gcc_cv_ld_buildid" = xyes; then
28572
28573 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28574
28575 fi
28576
28577 # Check whether --enable-linker-build-id was given.
28578 if test "${enable_linker_build_id+set}" = set; then :
28579 enableval=$enable_linker_build_id;
28580 else
28581 enable_linker_build_id=no
28582 fi
28583
28584
28585 if test x"$enable_linker_build_id" = xyes; then
28586 if test x"$gcc_cv_ld_buildid" = xyes; then
28587
28588 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28589
28590 else
28591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28592 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28593 fi
28594 fi
28595
28596 # In binutils 2.21, GNU ld gained support for new emulations fully
28597 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28599 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28600 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28601 $as_echo_n "(cached) " >&6
28602 else
28603 gcc_cv_ld_sol2_emulation=no
28604 if test $in_tree_ld = yes ; then
28605 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28606 "$gcc_cv_gld_minor_version" -ge 21 -o \
28607 "$gcc_cv_gld_major_version" -gt 2 \
28608 && test $in_tree_ld_is_elf = yes; then
28609 gcc_cv_ld_sol2_emulation=yes
28610 fi
28611 elif test x$gcc_cv_ld != x; then
28612 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28613 grep _sol2 > /dev/null; then
28614 gcc_cv_ld_sol2_emulation=yes
28615 fi
28616 fi
28617 fi
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28619 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28620 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28621
28622 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28623
28624 fi
28625
28626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28627 $as_echo_n "checking linker --sysroot support... " >&6; }
28628 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28629 $as_echo_n "(cached) " >&6
28630 else
28631 gcc_cv_ld_sysroot=no
28632 if test $in_tree_ld = yes ; then
28633 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
28634 gcc_cv_ld_sysroot=yes
28635 fi
28636 elif test x$gcc_cv_ld != x; then
28637 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28638 gcc_cv_ld_sysroot=yes
28639 fi
28640 fi
28641 fi
28642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28643 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28644 if test x"$gcc_cv_ld_sysroot" = xyes; then
28645
28646 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28647
28648 fi
28649
28650 case $target in
28651 *-*-solaris2*)
28652 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28654 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28655 if test "${gcc_cv_solaris_crts+set}" = set; then :
28656 $as_echo_n "(cached) " >&6
28657 else
28658 gcc_cv_solaris_crts=no
28659 if test x$host != x$target; then
28660 if test "x$with_sysroot" = xyes; then
28661 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28662 else
28663 target_sysroot="${with_sysroot}"
28664 fi
28665 fi
28666 target_libdir="$target_sysroot/usr/lib"
28667 # At the time they were added, gcrt1.o became a symlink for backwards
28668 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28669 case $target in
28670 i?86-*-solaris2* | x86_64-*-solaris2*)
28671 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28672 ;;
28673 sparc*-*-solaris2*)
28674 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28675 ;;
28676 esac
28677 fi
28678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28679 $as_echo "$gcc_cv_solaris_crts" >&6; }
28680 ;;
28681 esac
28682 if test x$gcc_cv_solaris_crts = xyes; then
28683
28684 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28685
28686 fi
28687
28688 # Test for stack protector support in target C library.
28689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28690 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28691 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28692 $as_echo_n "(cached) " >&6
28693 else
28694 gcc_cv_libc_provides_ssp=no
28695 case "$target" in
28696 *-*-musl*)
28697 # All versions of musl provide stack protector
28698 gcc_cv_libc_provides_ssp=yes;;
28699 *-*-linux* | *-*-kfreebsd*-gnu)
28700 # glibc 2.4 and later provides __stack_chk_fail and
28701 # either __stack_chk_guard, or TLS access to stack guard canary.
28702
28703 if test $glibc_version_major -gt 2 \
28704 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28705 gcc_cv_libc_provides_ssp=yes
28706 else
28707
28708 if test -f $target_header_dir/features.h \
28709 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28710 $target_header_dir/features.h > /dev/null; then
28711 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28712 $target_header_dir/features.h > /dev/null && \
28713 test -f $target_header_dir/bits/uClibc_config.h && \
28714 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28715 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28716 gcc_cv_libc_provides_ssp=yes
28717 fi
28718 # all versions of Bionic support stack protector
28719 elif test -f $target_header_dir/sys/cdefs.h \
28720 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28721 $target_header_dir/sys/cdefs.h > /dev/null; then
28722 gcc_cv_libc_provides_ssp=yes
28723 fi
28724 fi
28725 ;;
28726 *-*-gnu*)
28727 # Avoid complicated tests (see
28728 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28729 # simply assert that glibc does provide this, which is true for all
28730 # realistically usable GNU/Hurd configurations.
28731 # All supported versions of musl provide it as well
28732 gcc_cv_libc_provides_ssp=yes;;
28733 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28734 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28735 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28736 gcc_cv_libc_provides_ssp=yes
28737 else
28738 echo "no __stack_chk_fail on this target"
28739 fi
28740
28741 ;;
28742 *) gcc_cv_libc_provides_ssp=no ;;
28743 esac
28744 fi
28745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28746 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28747
28748 if test x$gcc_cv_libc_provides_ssp = xyes; then
28749
28750 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28751
28752 fi
28753
28754 # Check whether --enable-default-ssp was given.
28755 # Check whether --enable-default-ssp was given.
28756 if test "${enable_default_ssp+set}" = set; then :
28757 enableval=$enable_default_ssp;
28758 if test x$gcc_cv_libc_provides_ssp = xyes; then
28759 case "$target" in
28760 ia64*-*-*) enable_default_ssp=no ;;
28761 *) enable_default_ssp=$enableval ;;
28762 esac
28763 else
28764 enable_default_ssp=no
28765 fi
28766 else
28767 enable_default_ssp=no
28768 fi
28769
28770 if test x$enable_default_ssp = xyes ; then
28771
28772 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28773
28774 fi
28775
28776
28777 # Test for <sys/sdt.h> on the target.
28778
28779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28780 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28781 have_sys_sdt_h=no
28782 if test -f $target_header_dir/sys/sdt.h; then
28783 have_sys_sdt_h=yes
28784
28785 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28786
28787 fi
28788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28789 $as_echo "$have_sys_sdt_h" >&6; }
28790
28791 # Check if TFmode long double should be used by default or not.
28792 # Some glibc targets used DFmode long double, but with glibc 2.4
28793 # and later they can use TFmode.
28794 case "$target" in
28795 powerpc*-*-linux* | \
28796 sparc*-*-linux* | \
28797 s390*-*-linux* | \
28798 alpha*-*-linux*)
28799
28800 # Check whether --with-long-double-128 was given.
28801 if test "${with_long_double_128+set}" = set; then :
28802 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28803 else
28804
28805 if test $glibc_version_major -gt 2 \
28806 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28807 gcc_cv_target_ldbl128=yes
28808 else
28809
28810 gcc_cv_target_ldbl128=no
28811 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28812 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28813 && gcc_cv_target_ldbl128=yes
28814
28815 fi
28816 fi
28817
28818 ;;
28819 esac
28820 if test x$gcc_cv_target_ldbl128 = xyes; then
28821
28822 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28823
28824 fi
28825
28826 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28827 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28828 gcc_cv_libc_provides_hwcap_in_tcb=no
28829 case "$target" in
28830 powerpc*-*-linux*)
28831
28832 if test $glibc_version_major -gt 2 \
28833 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28834 gcc_cv_libc_provides_hwcap_in_tcb=yes
28835 fi
28836 ;;
28837 esac
28838 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
28839
28840 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28841
28842 fi
28843
28844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28845 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28846 gcc_cv_target_dl_iterate_phdr=unknown
28847 case "$target" in
28848 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28849 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28850 # libdl there, both complicating its use and breaking compatibility
28851 # between Solaris 10 updates.
28852 *-*-solaris2.1[1-9]*)
28853 # <link.h> needs both a dl_iterate_phdr declaration and support for
28854 # compilation with largefile support.
28855 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28856 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28857 gcc_cv_target_dl_iterate_phdr=yes
28858 else
28859 gcc_cv_target_dl_iterate_phdr=no
28860 fi
28861 ;;
28862 *-*-dragonfly* | *-*-freebsd*)
28863 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28864 gcc_cv_target_dl_iterate_phdr=yes
28865 else
28866 gcc_cv_target_dl_iterate_phdr=no
28867 fi
28868 ;;
28869 *-linux-musl*)
28870 gcc_cv_target_dl_iterate_phdr=yes
28871 ;;
28872 esac
28873
28874 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28875
28876 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28877
28878 fi
28879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28880 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28881
28882 # We no longer support different GC mechanisms. Emit an error if
28883 # the user configures with --with-gc.
28884
28885 # Check whether --with-gc was given.
28886 if test "${with_gc+set}" = set; then :
28887 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28888 fi
28889
28890
28891 # Libraries to use on the host. This will normally be set by the top
28892 # level Makefile. Here we simply capture the value for our Makefile.
28893 if test -z "${HOST_LIBS+set}"; then
28894 HOST_LIBS=
28895 fi
28896
28897
28898 # Use the system's zlib library.
28899
28900 # Use the system's zlib library.
28901 zlibdir="-L\$(top_builddir)/../zlib"
28902 zlibinc="-I\$(top_srcdir)/../zlib"
28903
28904 # Check whether --with-system-zlib was given.
28905 if test "${with_system_zlib+set}" = set; then :
28906 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28907 zlibdir=
28908 zlibinc=
28909 fi
28910
28911 fi
28912
28913
28914
28915
28916
28917
28918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28919 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28920 # Check whether --enable-maintainer-mode was given.
28921 if test "${enable_maintainer_mode+set}" = set; then :
28922 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28923 else
28924 maintainer_mode=no
28925 fi
28926
28927
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28929 $as_echo "$maintainer_mode" >&6; }
28930
28931 if test "$maintainer_mode" = "yes"; then
28932 MAINT=''
28933 else
28934 MAINT='#'
28935 fi
28936
28937
28938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28939 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28940 # Check whether --enable-link-mutex was given.
28941 if test "${enable_link_mutex+set}" = set; then :
28942 enableval=$enable_link_mutex; do_link_mutex=$enableval
28943 else
28944 do_link_mutex=no
28945 fi
28946
28947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28948 $as_echo "$do_link_mutex" >&6; }
28949
28950 if test "$do_link_mutex" = "yes"; then
28951 DO_LINK_MUTEX=true
28952 else
28953 DO_LINK_MUTEX=false
28954 fi
28955
28956
28957 # --------------
28958 # Language hooks
28959 # --------------
28960
28961 # Make empty files to contain the specs and options for each language.
28962 # Then add #include lines to for a compiler that has specs and/or options.
28963
28964 subdirs=
28965 lang_opt_files=
28966 lang_specs_files=
28967 lang_tree_files=
28968 # These (without "all_") are set in each config-lang.in.
28969 # `language' must be a single word so is spelled singularly.
28970 all_languages=
28971 all_compilers=
28972 all_outputs='Makefile'
28973 # List of language makefile fragments.
28974 all_lang_makefrags=
28975 # Additional files for gengtype
28976 all_gtfiles="$target_gtfiles"
28977
28978 # These are the languages that are set in --enable-languages,
28979 # and are available in the GCC tree.
28980 all_selected_languages=
28981
28982 # Add the language fragments.
28983 # Languages are added via two mechanisms. Some information must be
28984 # recorded in makefile variables, these are defined in config-lang.in.
28985 # We accumulate them and plug them into the main Makefile.
28986 # The other mechanism is a set of hooks for each of the main targets
28987 # like `clean', `install', etc.
28988
28989 language_hooks="Make-hooks"
28990
28991 for lang in ${srcdir}/*/config-lang.in
28992 do
28993 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28994
28995 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28996 if test "x$lang_alias" = x
28997 then
28998 echo "$lang doesn't set \$language." 1>&2
28999 exit 1
29000 fi
29001 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29002 subdirs="$subdirs $subdir"
29003
29004 # $gcc_subdir is where the gcc integration files are to be found
29005 # for a language, both for internal compiler purposes (compiler
29006 # sources implementing front-end to GCC tree converters), and for
29007 # build infrastructure purposes (Make-lang.in, etc.)
29008 #
29009 # This will be <subdir> (relative to $srcdir) if a line like
29010 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29011 # is found in <langdir>/config-lang.in, and will remain <langdir>
29012 # otherwise.
29013 #
29014 # Except for the language alias (fetched above), the regular
29015 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29016 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29017 # only this and the language alias.
29018
29019 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29020 if [ "$gcc_subdir" = "" ]; then
29021 gcc_subdir="$subdir"
29022 fi
29023
29024 case ",$enable_languages," in
29025 *,$lang_alias,*)
29026 all_selected_languages="$all_selected_languages $lang_alias"
29027 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29028 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29029 fi
29030 ;;
29031 esac
29032
29033 language=
29034 boot_language=
29035 compilers=
29036 outputs=
29037 gtfiles=
29038 subdir_requires=
29039 . ${srcdir}/$gcc_subdir/config-lang.in
29040 if test "x$language" = x
29041 then
29042 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29043 exit 1
29044 fi
29045
29046 ok=:
29047 case ",$enable_languages," in
29048 *,$lang_alias,*) ;;
29049 *)
29050 for i in $subdir_requires; do
29051 test -f "${srcdir}/$i/config-lang.in" && continue
29052 ok=false
29053 break
29054 done
29055 ;;
29056 esac
29057 $ok || continue
29058
29059 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29060 if test -f $srcdir/$gcc_subdir/lang.opt; then
29061 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29062 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29063 fi
29064 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29065 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29066 fi
29067 all_languages="$all_languages $language"
29068 all_compilers="$all_compilers $compilers"
29069 all_outputs="$all_outputs $outputs"
29070 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29071 case ",$enable_languages," in
29072 *,lto,*)
29073
29074 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29075
29076 enable_lto=yes
29077
29078 ;;
29079 *) ;;
29080 esac
29081 done
29082
29083 check_languages=
29084 for language in $all_selected_languages
29085 do
29086 check_languages="$check_languages check-$language"
29087 done
29088
29089 # We link each language in with a set of hooks, reached indirectly via
29090 # lang.${target}. Only do so for selected languages.
29091
29092 rm -f Make-hooks
29093 touch Make-hooks
29094 target_list="all.cross start.encap rest.encap tags \
29095 install-common install-man install-info install-pdf install-html dvi \
29096 pdf html uninstall info man srcextra srcman srcinfo \
29097 mostlyclean clean distclean maintainer-clean install-plugin"
29098
29099 for t in $target_list
29100 do
29101 x=
29102 for lang in $all_selected_languages
29103 do
29104 x="$x $lang.$t"
29105 done
29106 echo "lang.$t: $x" >> Make-hooks
29107 done
29108
29109 # --------
29110 # Option include files
29111 # --------
29112
29113 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29114 option_includes="option-includes.mk"
29115
29116
29117 # --------
29118 # UNSORTED
29119 # --------
29120
29121 # Create .gdbinit.
29122
29123 echo "dir ." > .gdbinit
29124 echo "dir ${srcdir}" >> .gdbinit
29125 if test x$gdb_needs_out_file_path = xyes
29126 then
29127 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29128 fi
29129 if test "x$subdirs" != x; then
29130 for s in $subdirs
29131 do
29132 echo "dir ${srcdir}/$s" >> .gdbinit
29133 done
29134 fi
29135 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29136 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29137
29138 # Put a breakpoint on __asan_report_error to help with debugging buffer
29139 # overflow.
29140 case "$CFLAGS" in
29141 *-fsanitize=address*)
29142 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29143 ;;
29144 esac
29145
29146 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29147
29148
29149
29150 # Find a directory in which to install a shared libgcc.
29151
29152 # Check whether --enable-version-specific-runtime-libs was given.
29153 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29154 enableval=$enable_version_specific_runtime_libs;
29155 fi
29156
29157
29158 # Substitute configuration variables
29159
29160
29161
29162
29163
29164
29165
29166
29167
29168
29169
29170
29171
29172
29173
29174
29175
29176
29177
29178
29179
29180
29181
29182
29183
29184
29185
29186
29187
29188
29189
29190
29191
29192
29193
29194
29195
29196
29197
29198
29199
29200
29201
29202
29203
29204
29205
29206
29207
29208
29209
29210
29211
29212
29213
29214
29215
29216
29217
29218
29219
29220
29221 # Echo link setup.
29222 if test x${build} = x${host} ; then
29223 if test x${host} = x${target} ; then
29224 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29225 else
29226 echo "Links are now set up to build a cross-compiler" 1>&2
29227 echo " from ${host} to ${target}." 1>&2
29228 fi
29229 else
29230 if test x${host} = x${target} ; then
29231 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29232 echo " for ${target}." 1>&2
29233 else
29234 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29235 echo " from ${host} to ${target}." 1>&2
29236 fi
29237 fi
29238
29239
29240
29241
29242
29243
29244 if test "x${ISLLIBS}" != "x" ; then
29245
29246 $as_echo "#define HAVE_isl 1" >>confdefs.h
29247
29248 fi
29249
29250 # Check whether isl_options_set_schedule_serialize_sccs is available;
29251 # it's new in isl 0.15.
29252 if test "x${ISLLIBS}" != "x" ; then
29253 saved_CXXFLAGS="$CXXFLAGS"
29254 CXXFLAGS="$CXXFLAGS $ISLINC $GMPINC"
29255 saved_LIBS="$LIBS"
29256 LIBS="$LIBS $ISLLIBS $GMPLIBS"
29257
29258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29259 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29261 /* end confdefs.h. */
29262 #include <isl/schedule.h>
29263 int
29264 main ()
29265 {
29266 isl_options_set_schedule_serialize_sccs (NULL, 0);
29267 ;
29268 return 0;
29269 }
29270 _ACEOF
29271 if ac_fn_cxx_try_link "$LINENO"; then :
29272 ac_has_isl_options_set_schedule_serialize_sccs=yes
29273 else
29274 ac_has_isl_options_set_schedule_serialize_sccs=no
29275 fi
29276 rm -f core conftest.err conftest.$ac_objext \
29277 conftest$ac_exeext conftest.$ac_ext
29278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29279 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29280
29281 LIBS="$saved_LIBS"
29282 CXXFLAGS="$saved_CXXFLAGS"
29283
29284 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
29285
29286 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29287
29288 fi
29289 fi
29290
29291 # Check for plugin support
29292 # Check whether --enable-plugin was given.
29293 if test "${enable_plugin+set}" = set; then :
29294 enableval=$enable_plugin; enable_plugin=$enableval
29295 else
29296 enable_plugin=yes; default_plugin=yes
29297 fi
29298
29299
29300 pluginlibs=
29301
29302 case "${host}" in
29303 *-*-darwin*)
29304 if test x$build = x$host; then
29305 export_sym_check="nm${exeext} -g"
29306 elif test x$host = x$target; then
29307 export_sym_check="$gcc_cv_nm -g"
29308 else
29309 export_sym_check=
29310 fi
29311 ;;
29312 *)
29313 if test x$build = x$host; then
29314 export_sym_check="objdump${exeext} -T"
29315 elif test x$host = x$target; then
29316 export_sym_check="$gcc_cv_objdump -T"
29317 else
29318 export_sym_check=
29319 fi
29320 ;;
29321 esac
29322
29323 if test x"$enable_plugin" = x"yes"; then
29324
29325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29326 $as_echo_n "checking for exported symbols... " >&6; }
29327 if test "x$export_sym_check" != x; then
29328 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29329 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29330 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29331 : # No need to use a flag
29332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29333 $as_echo "yes" >&6; }
29334 else
29335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29336 $as_echo "yes" >&6; }
29337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29338 $as_echo_n "checking for -rdynamic... " >&6; }
29339 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29340 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29341 plugin_rdynamic=yes
29342 pluginlibs="-rdynamic"
29343 else
29344 plugin_rdynamic=no
29345 enable_plugin=no
29346 fi
29347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29348 $as_echo "$plugin_rdynamic" >&6; }
29349 fi
29350 else
29351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29352 $as_echo "unable to check" >&6; }
29353 fi
29354
29355 # Check -ldl
29356 saved_LIBS="$LIBS"
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29358 $as_echo_n "checking for library containing dlopen... " >&6; }
29359 if test "${ac_cv_search_dlopen+set}" = set; then :
29360 $as_echo_n "(cached) " >&6
29361 else
29362 ac_func_search_save_LIBS=$LIBS
29363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29364 /* end confdefs.h. */
29365
29366 /* Override any GCC internal prototype to avoid an error.
29367 Use char because int might match the return type of a GCC
29368 builtin and then its argument prototype would still apply. */
29369 #ifdef __cplusplus
29370 extern "C"
29371 #endif
29372 char dlopen ();
29373 int
29374 main ()
29375 {
29376 return dlopen ();
29377 ;
29378 return 0;
29379 }
29380 _ACEOF
29381 for ac_lib in '' dl; do
29382 if test -z "$ac_lib"; then
29383 ac_res="none required"
29384 else
29385 ac_res=-l$ac_lib
29386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29387 fi
29388 if ac_fn_cxx_try_link "$LINENO"; then :
29389 ac_cv_search_dlopen=$ac_res
29390 fi
29391 rm -f core conftest.err conftest.$ac_objext \
29392 conftest$ac_exeext
29393 if test "${ac_cv_search_dlopen+set}" = set; then :
29394 break
29395 fi
29396 done
29397 if test "${ac_cv_search_dlopen+set}" = set; then :
29398
29399 else
29400 ac_cv_search_dlopen=no
29401 fi
29402 rm conftest.$ac_ext
29403 LIBS=$ac_func_search_save_LIBS
29404 fi
29405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29406 $as_echo "$ac_cv_search_dlopen" >&6; }
29407 ac_res=$ac_cv_search_dlopen
29408 if test "$ac_res" != no; then :
29409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29410
29411 fi
29412
29413 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29414 pluginlibs="$pluginlibs -ldl"
29415 fi
29416 LIBS="$saved_LIBS"
29417
29418 # Check that we can build shared objects with -fPIC -shared
29419 saved_LDFLAGS="$LDFLAGS"
29420 saved_CFLAGS="$CFLAGS"
29421 case "${host}" in
29422 *-*-darwin*)
29423 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29424 CFLAGS="$CFLAGS -fPIC"
29425 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29426 ;;
29427 *)
29428 CFLAGS="$CFLAGS -fPIC"
29429 LDFLAGS="$LDFLAGS -fPIC -shared"
29430 ;;
29431 esac
29432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29433 $as_echo_n "checking for -fPIC -shared... " >&6; }
29434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29435 /* end confdefs.h. */
29436 extern int X;
29437 int
29438 main ()
29439 {
29440 return X == 0;
29441 ;
29442 return 0;
29443 }
29444 _ACEOF
29445 if ac_fn_cxx_try_link "$LINENO"; then :
29446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29447 $as_echo "yes" >&6; }; have_pic_shared=yes
29448 else
29449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29450 $as_echo "no" >&6; }; have_pic_shared=no
29451 fi
29452 rm -f core conftest.err conftest.$ac_objext \
29453 conftest$ac_exeext conftest.$ac_ext
29454 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29455 pluginlibs=
29456 enable_plugin=no
29457 fi
29458 LDFLAGS="$saved_LDFLAGS"
29459 CFLAGS="$saved_CFLAGS"
29460
29461 # If plugin support had been requested but not available, fail.
29462 if test x"$enable_plugin" = x"no" ; then
29463 if test x"$default_plugin" != x"yes"; then
29464 as_fn_error "
29465 Building GCC with plugin support requires a host that supports
29466 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29467 fi
29468 fi
29469 fi
29470
29471
29472
29473 if test x"$enable_plugin" = x"yes"; then
29474
29475 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29476
29477 fi
29478
29479
29480 # Enable --enable-host-shared
29481 # Check whether --enable-host-shared was given.
29482 if test "${enable_host_shared+set}" = set; then :
29483 enableval=$enable_host_shared; PICFLAG=-fPIC
29484 else
29485 PICFLAG=
29486 fi
29487
29488
29489
29490
29491
29492 # Check whether --enable-libquadmath-support was given.
29493 if test "${enable_libquadmath_support+set}" = set; then :
29494 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29495 else
29496 ENABLE_LIBQUADMATH_SUPPORT=yes
29497 fi
29498
29499 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29500
29501 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29502
29503 fi
29504
29505
29506 # Specify what hash style to use by default.
29507
29508 # Check whether --with-linker-hash-style was given.
29509 if test "${with_linker_hash_style+set}" = set; then :
29510 withval=$with_linker_hash_style; case x"$withval" in
29511 xsysv)
29512 LINKER_HASH_STYLE=sysv
29513 ;;
29514 xgnu)
29515 LINKER_HASH_STYLE=gnu
29516 ;;
29517 xboth)
29518 LINKER_HASH_STYLE=both
29519 ;;
29520 *)
29521 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29522 ;;
29523 esac
29524 else
29525 LINKER_HASH_STYLE=''
29526 fi
29527
29528 if test x"${LINKER_HASH_STYLE}" != x; then
29529
29530 cat >>confdefs.h <<_ACEOF
29531 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29532 _ACEOF
29533
29534 fi
29535
29536 # Specify what should be the default of -fdiagnostics-color option.
29537
29538 # Check whether --with-diagnostics-color was given.
29539 if test "${with_diagnostics_color+set}" = set; then :
29540 withval=$with_diagnostics_color; case x"$withval" in
29541 xnever)
29542 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29543 ;;
29544 xauto)
29545 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29546 ;;
29547 xauto-if-env)
29548 DIAGNOSTICS_COLOR_DEFAULT=-1
29549 ;;
29550 xalways)
29551 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29552 ;;
29553 *)
29554 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29555 ;;
29556 esac
29557 else
29558 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29559 fi
29560
29561
29562 cat >>confdefs.h <<_ACEOF
29563 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29564 _ACEOF
29565
29566
29567 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29568 # of jit/jit-playback.c.
29569 cat > gcc-driver-name.h <<EOF
29570 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29571 EOF
29572
29573 # Check whether --enable-default-pie was given.
29574 # Check whether --enable-default-pie was given.
29575 if test "${enable_default_pie+set}" = set; then :
29576 enableval=$enable_default_pie; enable_default_pie=$enableval
29577 else
29578 enable_default_pie=no
29579 fi
29580
29581 if test x$enable_default_pie = xyes ; then
29582
29583 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29584
29585 fi
29586
29587
29588 # Check if -fno-PIE works.
29589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29590 $as_echo_n "checking for -fno-PIE option... " >&6; }
29591 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29592 $as_echo_n "(cached) " >&6
29593 else
29594 saved_CXXFLAGS="$CXXFLAGS"
29595 CXXFLAGS="$CXXFLAGS -fno-PIE"
29596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29597 /* end confdefs.h. */
29598 int main(void) {return 0;}
29599 _ACEOF
29600 if ac_fn_cxx_try_compile "$LINENO"; then :
29601 gcc_cv_c_no_fpie=yes
29602 else
29603 gcc_cv_c_no_fpie=no
29604 fi
29605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29606 CXXFLAGS="$saved_CXXFLAGS"
29607 fi
29608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29609 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29610 if test "$gcc_cv_c_no_fpie" = "yes"; then
29611 NO_PIE_CFLAGS="-fno-PIE"
29612 fi
29613
29614
29615 # Check if -no-pie works.
29616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29617 $as_echo_n "checking for -no-pie option... " >&6; }
29618 if test "${gcc_cv_no_pie+set}" = set; then :
29619 $as_echo_n "(cached) " >&6
29620 else
29621 saved_LDFLAGS="$LDFLAGS"
29622 LDFLAGS="$LDFLAGS -no-pie"
29623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29624 /* end confdefs.h. */
29625 int main(void) {return 0;}
29626 _ACEOF
29627 if ac_fn_cxx_try_link "$LINENO"; then :
29628 gcc_cv_no_pie=yes
29629 else
29630 gcc_cv_no_pie=no
29631 fi
29632 rm -f core conftest.err conftest.$ac_objext \
29633 conftest$ac_exeext conftest.$ac_ext
29634 LDFLAGS="$saved_LDFLAGS"
29635 fi
29636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29637 $as_echo "$gcc_cv_no_pie" >&6; }
29638 if test "$gcc_cv_no_pie" = "yes"; then
29639 NO_PIE_FLAG="-no-pie"
29640 fi
29641
29642
29643 # Check linker supports '-z bndplt'
29644 ld_bndplt_support=no
29645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29646 $as_echo_n "checking linker -z bndplt option... " >&6; }
29647 if test x"$ld_is_gold" = xno; then
29648 if test $in_tree_ld = yes ; then
29649 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
29650 ld_bndplt_support=yes
29651 fi
29652 elif test x$gcc_cv_ld != x; then
29653 # Check if linker supports -a bndplt option
29654 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29655 ld_bndplt_support=yes
29656 fi
29657 fi
29658 fi
29659 if test x"$ld_bndplt_support" = xyes; then
29660
29661 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29662
29663 fi
29664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29665 $as_echo "$ld_bndplt_support" >&6; }
29666
29667 # Check linker supports '--push-state'/'--pop-state'
29668 ld_pushpopstate_support=no
29669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29670 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29671 if test x"$ld_is_gold" = xno; then
29672 if test $in_tree_ld = yes ; then
29673 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
29674 ld_pushpopstate_support=yes
29675 fi
29676 elif test x$gcc_cv_ld != x; then
29677 # Check if linker supports --push-state/--pop-state options
29678 if $gcc_cv_ld --help 2>/dev/null | grep -- '--push-state' > /dev/null; then
29679 ld_pushpopstate_support=yes
29680 fi
29681 fi
29682 fi
29683 if test x"$ld_pushpopstate_support" = xyes; then
29684
29685 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29686
29687 fi
29688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29689 $as_echo "$ld_pushpopstate_support" >&6; }
29690
29691 # Configure the subdirectories
29692 # AC_CONFIG_SUBDIRS($subdirs)
29693
29694 # Create the Makefile
29695 # and configure language subdirectories
29696 ac_config_files="$ac_config_files $all_outputs"
29697
29698
29699 ac_config_commands="$ac_config_commands default"
29700
29701 cat >confcache <<\_ACEOF
29702 # This file is a shell script that caches the results of configure
29703 # tests run on this system so they can be shared between configure
29704 # scripts and configure runs, see configure's option --config-cache.
29705 # It is not useful on other systems. If it contains results you don't
29706 # want to keep, you may remove or edit it.
29707 #
29708 # config.status only pays attention to the cache file if you give it
29709 # the --recheck option to rerun configure.
29710 #
29711 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29712 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29713 # following values.
29714
29715 _ACEOF
29716
29717 # The following way of writing the cache mishandles newlines in values,
29718 # but we know of no workaround that is simple, portable, and efficient.
29719 # So, we kill variables containing newlines.
29720 # Ultrix sh set writes to stderr and can't be redirected directly,
29721 # and sets the high bit in the cache file unless we assign to the vars.
29722 (
29723 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29724 eval ac_val=\$$ac_var
29725 case $ac_val in #(
29726 *${as_nl}*)
29727 case $ac_var in #(
29728 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29729 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29730 esac
29731 case $ac_var in #(
29732 _ | IFS | as_nl) ;; #(
29733 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29734 *) { eval $ac_var=; unset $ac_var;} ;;
29735 esac ;;
29736 esac
29737 done
29738
29739 (set) 2>&1 |
29740 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29741 *${as_nl}ac_space=\ *)
29742 # `set' does not quote correctly, so add quotes: double-quote
29743 # substitution turns \\\\ into \\, and sed turns \\ into \.
29744 sed -n \
29745 "s/'/'\\\\''/g;
29746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29747 ;; #(
29748 *)
29749 # `set' quotes correctly as required by POSIX, so do not add quotes.
29750 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29751 ;;
29752 esac |
29753 sort
29754 ) |
29755 sed '
29756 /^ac_cv_env_/b end
29757 t clear
29758 :clear
29759 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29760 t end
29761 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29762 :end' >>confcache
29763 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29764 if test -w "$cache_file"; then
29765 test "x$cache_file" != "x/dev/null" &&
29766 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29767 $as_echo "$as_me: updating cache $cache_file" >&6;}
29768 cat confcache >$cache_file
29769 else
29770 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29771 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29772 fi
29773 fi
29774 rm -f confcache
29775
29776 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29777 # Let make expand exec_prefix.
29778 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29779
29780 DEFS=-DHAVE_CONFIG_H
29781
29782 ac_libobjs=
29783 ac_ltlibobjs=
29784 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29785 # 1. Remove the extension, and $U if already installed.
29786 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29787 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29788 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29789 # will be set to the directory where LIBOBJS objects are built.
29790 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29791 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29792 done
29793 LIBOBJS=$ac_libobjs
29794
29795 LTLIBOBJS=$ac_ltlibobjs
29796
29797
29798
29799
29800 : ${CONFIG_STATUS=./config.status}
29801 ac_write_fail=0
29802 ac_clean_files_save=$ac_clean_files
29803 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29804 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29805 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29806 as_write_fail=0
29807 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29808 #! $SHELL
29809 # Generated by $as_me.
29810 # Run this file to recreate the current configuration.
29811 # Compiler output produced by configure, useful for debugging
29812 # configure, is in config.log if it exists.
29813
29814 debug=false
29815 ac_cs_recheck=false
29816 ac_cs_silent=false
29817
29818 SHELL=\${CONFIG_SHELL-$SHELL}
29819 export SHELL
29820 _ASEOF
29821 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29822 ## -------------------- ##
29823 ## M4sh Initialization. ##
29824 ## -------------------- ##
29825
29826 # Be more Bourne compatible
29827 DUALCASE=1; export DUALCASE # for MKS sh
29828 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29829 emulate sh
29830 NULLCMD=:
29831 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29832 # is contrary to our usage. Disable this feature.
29833 alias -g '${1+"$@"}'='"$@"'
29834 setopt NO_GLOB_SUBST
29835 else
29836 case `(set -o) 2>/dev/null` in #(
29837 *posix*) :
29838 set -o posix ;; #(
29839 *) :
29840 ;;
29841 esac
29842 fi
29843
29844
29845 as_nl='
29846 '
29847 export as_nl
29848 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29849 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29850 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29851 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29852 # Prefer a ksh shell builtin over an external printf program on Solaris,
29853 # but without wasting forks for bash or zsh.
29854 if test -z "$BASH_VERSION$ZSH_VERSION" \
29855 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29856 as_echo='print -r --'
29857 as_echo_n='print -rn --'
29858 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29859 as_echo='printf %s\n'
29860 as_echo_n='printf %s'
29861 else
29862 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29863 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29864 as_echo_n='/usr/ucb/echo -n'
29865 else
29866 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29867 as_echo_n_body='eval
29868 arg=$1;
29869 case $arg in #(
29870 *"$as_nl"*)
29871 expr "X$arg" : "X\\(.*\\)$as_nl";
29872 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29873 esac;
29874 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29875 '
29876 export as_echo_n_body
29877 as_echo_n='sh -c $as_echo_n_body as_echo'
29878 fi
29879 export as_echo_body
29880 as_echo='sh -c $as_echo_body as_echo'
29881 fi
29882
29883 # The user is always right.
29884 if test "${PATH_SEPARATOR+set}" != set; then
29885 PATH_SEPARATOR=:
29886 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29887 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29888 PATH_SEPARATOR=';'
29889 }
29890 fi
29891
29892
29893 # IFS
29894 # We need space, tab and new line, in precisely that order. Quoting is
29895 # there to prevent editors from complaining about space-tab.
29896 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29897 # splitting by setting IFS to empty value.)
29898 IFS=" "" $as_nl"
29899
29900 # Find who we are. Look in the path if we contain no directory separator.
29901 case $0 in #((
29902 *[\\/]* ) as_myself=$0 ;;
29903 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29904 for as_dir in $PATH
29905 do
29906 IFS=$as_save_IFS
29907 test -z "$as_dir" && as_dir=.
29908 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29909 done
29910 IFS=$as_save_IFS
29911
29912 ;;
29913 esac
29914 # We did not find ourselves, most probably we were run as `sh COMMAND'
29915 # in which case we are not to be found in the path.
29916 if test "x$as_myself" = x; then
29917 as_myself=$0
29918 fi
29919 if test ! -f "$as_myself"; then
29920 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29921 exit 1
29922 fi
29923
29924 # Unset variables that we do not need and which cause bugs (e.g. in
29925 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29926 # suppresses any "Segmentation fault" message there. '((' could
29927 # trigger a bug in pdksh 5.2.14.
29928 for as_var in BASH_ENV ENV MAIL MAILPATH
29929 do eval test x\${$as_var+set} = xset \
29930 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29931 done
29932 PS1='$ '
29933 PS2='> '
29934 PS4='+ '
29935
29936 # NLS nuisances.
29937 LC_ALL=C
29938 export LC_ALL
29939 LANGUAGE=C
29940 export LANGUAGE
29941
29942 # CDPATH.
29943 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29944
29945
29946 # as_fn_error ERROR [LINENO LOG_FD]
29947 # ---------------------------------
29948 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29949 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29950 # script with status $?, using 1 if that was 0.
29951 as_fn_error ()
29952 {
29953 as_status=$?; test $as_status -eq 0 && as_status=1
29954 if test "$3"; then
29955 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29956 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29957 fi
29958 $as_echo "$as_me: error: $1" >&2
29959 as_fn_exit $as_status
29960 } # as_fn_error
29961
29962
29963 # as_fn_set_status STATUS
29964 # -----------------------
29965 # Set $? to STATUS, without forking.
29966 as_fn_set_status ()
29967 {
29968 return $1
29969 } # as_fn_set_status
29970
29971 # as_fn_exit STATUS
29972 # -----------------
29973 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29974 as_fn_exit ()
29975 {
29976 set +e
29977 as_fn_set_status $1
29978 exit $1
29979 } # as_fn_exit
29980
29981 # as_fn_unset VAR
29982 # ---------------
29983 # Portably unset VAR.
29984 as_fn_unset ()
29985 {
29986 { eval $1=; unset $1;}
29987 }
29988 as_unset=as_fn_unset
29989 # as_fn_append VAR VALUE
29990 # ----------------------
29991 # Append the text in VALUE to the end of the definition contained in VAR. Take
29992 # advantage of any shell optimizations that allow amortized linear growth over
29993 # repeated appends, instead of the typical quadratic growth present in naive
29994 # implementations.
29995 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29996 eval 'as_fn_append ()
29997 {
29998 eval $1+=\$2
29999 }'
30000 else
30001 as_fn_append ()
30002 {
30003 eval $1=\$$1\$2
30004 }
30005 fi # as_fn_append
30006
30007 # as_fn_arith ARG...
30008 # ------------------
30009 # Perform arithmetic evaluation on the ARGs, and store the result in the
30010 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30011 # must be portable across $(()) and expr.
30012 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30013 eval 'as_fn_arith ()
30014 {
30015 as_val=$(( $* ))
30016 }'
30017 else
30018 as_fn_arith ()
30019 {
30020 as_val=`expr "$@" || test $? -eq 1`
30021 }
30022 fi # as_fn_arith
30023
30024
30025 if expr a : '\(a\)' >/dev/null 2>&1 &&
30026 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30027 as_expr=expr
30028 else
30029 as_expr=false
30030 fi
30031
30032 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30033 as_basename=basename
30034 else
30035 as_basename=false
30036 fi
30037
30038 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30039 as_dirname=dirname
30040 else
30041 as_dirname=false
30042 fi
30043
30044 as_me=`$as_basename -- "$0" ||
30045 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30046 X"$0" : 'X\(//\)$' \| \
30047 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30048 $as_echo X/"$0" |
30049 sed '/^.*\/\([^/][^/]*\)\/*$/{
30050 s//\1/
30051 q
30052 }
30053 /^X\/\(\/\/\)$/{
30054 s//\1/
30055 q
30056 }
30057 /^X\/\(\/\).*/{
30058 s//\1/
30059 q
30060 }
30061 s/.*/./; q'`
30062
30063 # Avoid depending upon Character Ranges.
30064 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30065 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30066 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30067 as_cr_digits='0123456789'
30068 as_cr_alnum=$as_cr_Letters$as_cr_digits
30069
30070 ECHO_C= ECHO_N= ECHO_T=
30071 case `echo -n x` in #(((((
30072 -n*)
30073 case `echo 'xy\c'` in
30074 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30075 xy) ECHO_C='\c';;
30076 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30077 ECHO_T=' ';;
30078 esac;;
30079 *)
30080 ECHO_N='-n';;
30081 esac
30082
30083 rm -f conf$$ conf$$.exe conf$$.file
30084 if test -d conf$$.dir; then
30085 rm -f conf$$.dir/conf$$.file
30086 else
30087 rm -f conf$$.dir
30088 mkdir conf$$.dir 2>/dev/null
30089 fi
30090 if (echo >conf$$.file) 2>/dev/null; then
30091 if ln -s conf$$.file conf$$ 2>/dev/null; then
30092 as_ln_s='ln -s'
30093 # ... but there are two gotchas:
30094 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30095 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30096 # In both cases, we have to default to `cp -p'.
30097 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30098 as_ln_s='cp -p'
30099 elif ln conf$$.file conf$$ 2>/dev/null; then
30100 as_ln_s=ln
30101 else
30102 as_ln_s='cp -p'
30103 fi
30104 else
30105 as_ln_s='cp -p'
30106 fi
30107 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30108 rmdir conf$$.dir 2>/dev/null
30109
30110
30111 # as_fn_mkdir_p
30112 # -------------
30113 # Create "$as_dir" as a directory, including parents if necessary.
30114 as_fn_mkdir_p ()
30115 {
30116
30117 case $as_dir in #(
30118 -*) as_dir=./$as_dir;;
30119 esac
30120 test -d "$as_dir" || eval $as_mkdir_p || {
30121 as_dirs=
30122 while :; do
30123 case $as_dir in #(
30124 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30125 *) as_qdir=$as_dir;;
30126 esac
30127 as_dirs="'$as_qdir' $as_dirs"
30128 as_dir=`$as_dirname -- "$as_dir" ||
30129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30130 X"$as_dir" : 'X\(//\)[^/]' \| \
30131 X"$as_dir" : 'X\(//\)$' \| \
30132 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30133 $as_echo X"$as_dir" |
30134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30135 s//\1/
30136 q
30137 }
30138 /^X\(\/\/\)[^/].*/{
30139 s//\1/
30140 q
30141 }
30142 /^X\(\/\/\)$/{
30143 s//\1/
30144 q
30145 }
30146 /^X\(\/\).*/{
30147 s//\1/
30148 q
30149 }
30150 s/.*/./; q'`
30151 test -d "$as_dir" && break
30152 done
30153 test -z "$as_dirs" || eval "mkdir $as_dirs"
30154 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30155
30156
30157 } # as_fn_mkdir_p
30158 if mkdir -p . 2>/dev/null; then
30159 as_mkdir_p='mkdir -p "$as_dir"'
30160 else
30161 test -d ./-p && rmdir ./-p
30162 as_mkdir_p=false
30163 fi
30164
30165 if test -x / >/dev/null 2>&1; then
30166 as_test_x='test -x'
30167 else
30168 if ls -dL / >/dev/null 2>&1; then
30169 as_ls_L_option=L
30170 else
30171 as_ls_L_option=
30172 fi
30173 as_test_x='
30174 eval sh -c '\''
30175 if test -d "$1"; then
30176 test -d "$1/.";
30177 else
30178 case $1 in #(
30179 -*)set "./$1";;
30180 esac;
30181 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30182 ???[sx]*):;;*)false;;esac;fi
30183 '\'' sh
30184 '
30185 fi
30186 as_executable_p=$as_test_x
30187
30188 # Sed expression to map a string onto a valid CPP name.
30189 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30190
30191 # Sed expression to map a string onto a valid variable name.
30192 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30193
30194
30195 exec 6>&1
30196 ## ----------------------------------- ##
30197 ## Main body of $CONFIG_STATUS script. ##
30198 ## ----------------------------------- ##
30199 _ASEOF
30200 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30201
30202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30203 # Save the log message, to keep $0 and so on meaningful, and to
30204 # report actual input values of CONFIG_FILES etc. instead of their
30205 # values after options handling.
30206 ac_log="
30207 This file was extended by $as_me, which was
30208 generated by GNU Autoconf 2.64. Invocation command line was
30209
30210 CONFIG_FILES = $CONFIG_FILES
30211 CONFIG_HEADERS = $CONFIG_HEADERS
30212 CONFIG_LINKS = $CONFIG_LINKS
30213 CONFIG_COMMANDS = $CONFIG_COMMANDS
30214 $ $0 $@
30215
30216 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30217 "
30218
30219 _ACEOF
30220
30221 case $ac_config_files in *"
30222 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30223 esac
30224
30225 case $ac_config_headers in *"
30226 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30227 esac
30228
30229
30230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30231 # Files that config.status was made for.
30232 config_files="$ac_config_files"
30233 config_headers="$ac_config_headers"
30234 config_links="$ac_config_links"
30235 config_commands="$ac_config_commands"
30236
30237 _ACEOF
30238
30239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30240 ac_cs_usage="\
30241 \`$as_me' instantiates files and other configuration actions
30242 from templates according to the current configuration. Unless the files
30243 and actions are specified as TAGs, all are instantiated by default.
30244
30245 Usage: $0 [OPTION]... [TAG]...
30246
30247 -h, --help print this help, then exit
30248 -V, --version print version number and configuration settings, then exit
30249 -q, --quiet, --silent
30250 do not print progress messages
30251 -d, --debug don't remove temporary files
30252 --recheck update $as_me by reconfiguring in the same conditions
30253 --file=FILE[:TEMPLATE]
30254 instantiate the configuration file FILE
30255 --header=FILE[:TEMPLATE]
30256 instantiate the configuration header FILE
30257
30258 Configuration files:
30259 $config_files
30260
30261 Configuration headers:
30262 $config_headers
30263
30264 Configuration links:
30265 $config_links
30266
30267 Configuration commands:
30268 $config_commands
30269
30270 Report bugs to the package provider."
30271
30272 _ACEOF
30273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30274 ac_cs_version="\\
30275 config.status
30276 configured by $0, generated by GNU Autoconf 2.64,
30277 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30278
30279 Copyright (C) 2009 Free Software Foundation, Inc.
30280 This config.status script is free software; the Free Software Foundation
30281 gives unlimited permission to copy, distribute and modify it."
30282
30283 ac_pwd='$ac_pwd'
30284 srcdir='$srcdir'
30285 AWK='$AWK'
30286 test -n "\$AWK" || AWK=awk
30287 _ACEOF
30288
30289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30290 # The default lists apply if the user does not specify any file.
30291 ac_need_defaults=:
30292 while test $# != 0
30293 do
30294 case $1 in
30295 --*=*)
30296 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30297 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30298 ac_shift=:
30299 ;;
30300 *)
30301 ac_option=$1
30302 ac_optarg=$2
30303 ac_shift=shift
30304 ;;
30305 esac
30306
30307 case $ac_option in
30308 # Handling of the options.
30309 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30310 ac_cs_recheck=: ;;
30311 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30312 $as_echo "$ac_cs_version"; exit ;;
30313 --debug | --debu | --deb | --de | --d | -d )
30314 debug=: ;;
30315 --file | --fil | --fi | --f )
30316 $ac_shift
30317 case $ac_optarg in
30318 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30319 esac
30320 as_fn_append CONFIG_FILES " '$ac_optarg'"
30321 ac_need_defaults=false;;
30322 --header | --heade | --head | --hea )
30323 $ac_shift
30324 case $ac_optarg in
30325 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30326 esac
30327 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30328 ac_need_defaults=false;;
30329 --he | --h)
30330 # Conflict between --help and --header
30331 as_fn_error "ambiguous option: \`$1'
30332 Try \`$0 --help' for more information.";;
30333 --help | --hel | -h )
30334 $as_echo "$ac_cs_usage"; exit ;;
30335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30336 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30337 ac_cs_silent=: ;;
30338
30339 # This is an error.
30340 -*) as_fn_error "unrecognized option: \`$1'
30341 Try \`$0 --help' for more information." ;;
30342
30343 *) as_fn_append ac_config_targets " $1"
30344 ac_need_defaults=false ;;
30345
30346 esac
30347 shift
30348 done
30349
30350 ac_configure_extra_args=
30351
30352 if $ac_cs_silent; then
30353 exec 6>/dev/null
30354 ac_configure_extra_args="$ac_configure_extra_args --silent"
30355 fi
30356
30357 _ACEOF
30358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30359 if \$ac_cs_recheck; then
30360 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30361 shift
30362 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30363 CONFIG_SHELL='$SHELL'
30364 export CONFIG_SHELL
30365 exec "\$@"
30366 fi
30367
30368 _ACEOF
30369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30370 exec 5>>config.log
30371 {
30372 echo
30373 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30374 ## Running $as_me. ##
30375 _ASBOX
30376 $as_echo "$ac_log"
30377 } >&5
30378
30379 _ACEOF
30380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30381 #
30382 # INIT-COMMANDS
30383 #
30384 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30385 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30386 subdirs='$subdirs'
30387
30388 _ACEOF
30389
30390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30391
30392 # Handling of arguments.
30393 for ac_config_target in $ac_config_targets
30394 do
30395 case $ac_config_target in
30396 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30397 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30398 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30399 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30400 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30401 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30402 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30403 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30404 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30405
30406 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30407 esac
30408 done
30409
30410
30411 # If the user did not use the arguments to specify the items to instantiate,
30412 # then the envvar interface is used. Set only those that are not.
30413 # We use the long form for the default assignment because of an extremely
30414 # bizarre bug on SunOS 4.1.3.
30415 if $ac_need_defaults; then
30416 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30417 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30418 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30419 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30420 fi
30421
30422 # Have a temporary directory for convenience. Make it in the build tree
30423 # simply because there is no reason against having it here, and in addition,
30424 # creating and moving files from /tmp can sometimes cause problems.
30425 # Hook for its removal unless debugging.
30426 # Note that there is a small window in which the directory will not be cleaned:
30427 # after its creation but before its name has been assigned to `$tmp'.
30428 $debug ||
30429 {
30430 tmp=
30431 trap 'exit_status=$?
30432 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30433 ' 0
30434 trap 'as_fn_exit 1' 1 2 13 15
30435 }
30436 # Create a (secure) tmp directory for tmp files.
30437
30438 {
30439 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30440 test -n "$tmp" && test -d "$tmp"
30441 } ||
30442 {
30443 tmp=./conf$$-$RANDOM
30444 (umask 077 && mkdir "$tmp")
30445 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30446
30447 # Set up the scripts for CONFIG_FILES section.
30448 # No need to generate them if there are no CONFIG_FILES.
30449 # This happens for instance with `./config.status config.h'.
30450 if test -n "$CONFIG_FILES"; then
30451
30452 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30453 ac_cs_awk_getline=:
30454 ac_cs_awk_pipe_init=
30455 ac_cs_awk_read_file='
30456 while ((getline aline < (F[key])) > 0)
30457 print(aline)
30458 close(F[key])'
30459 ac_cs_awk_pipe_fini=
30460 else
30461 ac_cs_awk_getline=false
30462 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30463 ac_cs_awk_read_file='
30464 print "|#_!!_#|"
30465 print "cat " F[key] " &&"
30466 '$ac_cs_awk_pipe_init
30467 # The final `:' finishes the AND list.
30468 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30469 fi
30470 ac_cr=`echo X | tr X '\015'`
30471 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30472 # But we know of no other shell where ac_cr would be empty at this
30473 # point, so we can use a bashism as a fallback.
30474 if test "x$ac_cr" = x; then
30475 eval ac_cr=\$\'\\r\'
30476 fi
30477 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30478 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30479 ac_cs_awk_cr='\r'
30480 else
30481 ac_cs_awk_cr=$ac_cr
30482 fi
30483
30484 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30485 _ACEOF
30486
30487 # Create commands to substitute file output variables.
30488 {
30489 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30490 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30491 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30492 echo "_ACAWK" &&
30493 echo "_ACEOF"
30494 } >conf$$files.sh &&
30495 . ./conf$$files.sh ||
30496 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30497 rm -f conf$$files.sh
30498
30499 {
30500 echo "cat >conf$$subs.awk <<_ACEOF" &&
30501 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30502 echo "_ACEOF"
30503 } >conf$$subs.sh ||
30504 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30505 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30506 ac_delim='%!_!# '
30507 for ac_last_try in false false false false false :; do
30508 . ./conf$$subs.sh ||
30509 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30510
30511 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30512 if test $ac_delim_n = $ac_delim_num; then
30513 break
30514 elif $ac_last_try; then
30515 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30516 else
30517 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30518 fi
30519 done
30520 rm -f conf$$subs.sh
30521
30522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30523 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30524 _ACEOF
30525 sed -n '
30526 h
30527 s/^/S["/; s/!.*/"]=/
30528 p
30529 g
30530 s/^[^!]*!//
30531 :repl
30532 t repl
30533 s/'"$ac_delim"'$//
30534 t delim
30535 :nl
30536 h
30537 s/\(.\{148\}\).*/\1/
30538 t more1
30539 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30540 p
30541 n
30542 b repl
30543 :more1
30544 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30545 p
30546 g
30547 s/.\{148\}//
30548 t nl
30549 :delim
30550 h
30551 s/\(.\{148\}\).*/\1/
30552 t more2
30553 s/["\\]/\\&/g; s/^/"/; s/$/"/
30554 p
30555 b
30556 :more2
30557 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30558 p
30559 g
30560 s/.\{148\}//
30561 t delim
30562 ' <conf$$subs.awk | sed '
30563 /^[^""]/{
30564 N
30565 s/\n//
30566 }
30567 ' >>$CONFIG_STATUS || ac_write_fail=1
30568 rm -f conf$$subs.awk
30569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30570 _ACAWK
30571 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30572 for (key in S) S_is_set[key] = 1
30573 FS = "\a"
30574 \$ac_cs_awk_pipe_init
30575 }
30576 {
30577 line = $ 0
30578 nfields = split(line, field, "@")
30579 substed = 0
30580 len = length(field[1])
30581 for (i = 2; i < nfields; i++) {
30582 key = field[i]
30583 keylen = length(key)
30584 if (S_is_set[key]) {
30585 value = S[key]
30586 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30587 len += length(value) + length(field[++i])
30588 substed = 1
30589 } else
30590 len += 1 + keylen
30591 }
30592 if (nfields == 3 && !substed) {
30593 key = field[2]
30594 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30595 \$ac_cs_awk_read_file
30596 next
30597 }
30598 }
30599 print line
30600 }
30601 \$ac_cs_awk_pipe_fini
30602 _ACAWK
30603 _ACEOF
30604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30605 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30606 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30607 else
30608 cat
30609 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30610 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30611 _ACEOF
30612
30613 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30614 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30615 # trailing colons and then remove the whole line if VPATH becomes empty
30616 # (actually we leave an empty line to preserve line numbers).
30617 if test "x$srcdir" = x.; then
30618 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30619 s/:*\$(srcdir):*/:/
30620 s/:*\${srcdir}:*/:/
30621 s/:*@srcdir@:*/:/
30622 s/^\([^=]*=[ ]*\):*/\1/
30623 s/:*$//
30624 s/^[^=]*=[ ]*$//
30625 }'
30626 fi
30627
30628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30629 fi # test -n "$CONFIG_FILES"
30630
30631 # Set up the scripts for CONFIG_HEADERS section.
30632 # No need to generate them if there are no CONFIG_HEADERS.
30633 # This happens for instance with `./config.status Makefile'.
30634 if test -n "$CONFIG_HEADERS"; then
30635 cat >"$tmp/defines.awk" <<\_ACAWK ||
30636 BEGIN {
30637 _ACEOF
30638
30639 # Transform confdefs.h into an awk script `defines.awk', embedded as
30640 # here-document in config.status, that substitutes the proper values into
30641 # config.h.in to produce config.h.
30642
30643 # Create a delimiter string that does not exist in confdefs.h, to ease
30644 # handling of long lines.
30645 ac_delim='%!_!# '
30646 for ac_last_try in false false :; do
30647 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30648 if test -z "$ac_t"; then
30649 break
30650 elif $ac_last_try; then
30651 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30652 else
30653 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30654 fi
30655 done
30656
30657 # For the awk script, D is an array of macro values keyed by name,
30658 # likewise P contains macro parameters if any. Preserve backslash
30659 # newline sequences.
30660
30661 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30662 sed -n '
30663 s/.\{148\}/&'"$ac_delim"'/g
30664 t rset
30665 :rset
30666 s/^[ ]*#[ ]*define[ ][ ]*/ /
30667 t def
30668 d
30669 :def
30670 s/\\$//
30671 t bsnl
30672 s/["\\]/\\&/g
30673 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30674 D["\1"]=" \3"/p
30675 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30676 d
30677 :bsnl
30678 s/["\\]/\\&/g
30679 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30680 D["\1"]=" \3\\\\\\n"\\/p
30681 t cont
30682 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30683 t cont
30684 d
30685 :cont
30686 n
30687 s/.\{148\}/&'"$ac_delim"'/g
30688 t clear
30689 :clear
30690 s/\\$//
30691 t bsnlc
30692 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30693 d
30694 :bsnlc
30695 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30696 b cont
30697 ' <confdefs.h | sed '
30698 s/'"$ac_delim"'/"\\\
30699 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30700
30701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30702 for (key in D) D_is_set[key] = 1
30703 FS = "\a"
30704 }
30705 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30706 line = \$ 0
30707 split(line, arg, " ")
30708 if (arg[1] == "#") {
30709 defundef = arg[2]
30710 mac1 = arg[3]
30711 } else {
30712 defundef = substr(arg[1], 2)
30713 mac1 = arg[2]
30714 }
30715 split(mac1, mac2, "(") #)
30716 macro = mac2[1]
30717 prefix = substr(line, 1, index(line, defundef) - 1)
30718 if (D_is_set[macro]) {
30719 # Preserve the white space surrounding the "#".
30720 print prefix "define", macro P[macro] D[macro]
30721 next
30722 } else {
30723 # Replace #undef with comments. This is necessary, for example,
30724 # in the case of _POSIX_SOURCE, which is predefined and required
30725 # on some systems where configure will not decide to define it.
30726 if (defundef == "undef") {
30727 print "/*", prefix defundef, macro, "*/"
30728 next
30729 }
30730 }
30731 }
30732 { print }
30733 _ACAWK
30734 _ACEOF
30735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30736 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30737 fi # test -n "$CONFIG_HEADERS"
30738
30739
30740 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30741 shift
30742 for ac_tag
30743 do
30744 case $ac_tag in
30745 :[FHLC]) ac_mode=$ac_tag; continue;;
30746 esac
30747 case $ac_mode$ac_tag in
30748 :[FHL]*:*);;
30749 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30750 :[FH]-) ac_tag=-:-;;
30751 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30752 esac
30753 ac_save_IFS=$IFS
30754 IFS=:
30755 set x $ac_tag
30756 IFS=$ac_save_IFS
30757 shift
30758 ac_file=$1
30759 shift
30760
30761 case $ac_mode in
30762 :L) ac_source=$1;;
30763 :[FH])
30764 ac_file_inputs=
30765 for ac_f
30766 do
30767 case $ac_f in
30768 -) ac_f="$tmp/stdin";;
30769 *) # Look for the file first in the build tree, then in the source tree
30770 # (if the path is not absolute). The absolute path cannot be DOS-style,
30771 # because $ac_f cannot contain `:'.
30772 test -f "$ac_f" ||
30773 case $ac_f in
30774 [\\/$]*) false;;
30775 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30776 esac ||
30777 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30778 esac
30779 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30780 as_fn_append ac_file_inputs " '$ac_f'"
30781 done
30782
30783 # Let's still pretend it is `configure' which instantiates (i.e., don't
30784 # use $as_me), people would be surprised to read:
30785 # /* config.h. Generated by config.status. */
30786 configure_input='Generated from '`
30787 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30788 `' by configure.'
30789 if test x"$ac_file" != x-; then
30790 configure_input="$ac_file. $configure_input"
30791 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30792 $as_echo "$as_me: creating $ac_file" >&6;}
30793 fi
30794 # Neutralize special characters interpreted by sed in replacement strings.
30795 case $configure_input in #(
30796 *\&* | *\|* | *\\* )
30797 ac_sed_conf_input=`$as_echo "$configure_input" |
30798 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30799 *) ac_sed_conf_input=$configure_input;;
30800 esac
30801
30802 case $ac_tag in
30803 *:-:* | *:-) cat >"$tmp/stdin" \
30804 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30805 esac
30806 ;;
30807 esac
30808
30809 ac_dir=`$as_dirname -- "$ac_file" ||
30810 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30811 X"$ac_file" : 'X\(//\)[^/]' \| \
30812 X"$ac_file" : 'X\(//\)$' \| \
30813 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30814 $as_echo X"$ac_file" |
30815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30816 s//\1/
30817 q
30818 }
30819 /^X\(\/\/\)[^/].*/{
30820 s//\1/
30821 q
30822 }
30823 /^X\(\/\/\)$/{
30824 s//\1/
30825 q
30826 }
30827 /^X\(\/\).*/{
30828 s//\1/
30829 q
30830 }
30831 s/.*/./; q'`
30832 as_dir="$ac_dir"; as_fn_mkdir_p
30833 ac_builddir=.
30834
30835 case "$ac_dir" in
30836 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30837 *)
30838 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30839 # A ".." for each directory in $ac_dir_suffix.
30840 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30841 case $ac_top_builddir_sub in
30842 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30843 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30844 esac ;;
30845 esac
30846 ac_abs_top_builddir=$ac_pwd
30847 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30848 # for backward compatibility:
30849 ac_top_builddir=$ac_top_build_prefix
30850
30851 case $srcdir in
30852 .) # We are building in place.
30853 ac_srcdir=.
30854 ac_top_srcdir=$ac_top_builddir_sub
30855 ac_abs_top_srcdir=$ac_pwd ;;
30856 [\\/]* | ?:[\\/]* ) # Absolute name.
30857 ac_srcdir=$srcdir$ac_dir_suffix;
30858 ac_top_srcdir=$srcdir
30859 ac_abs_top_srcdir=$srcdir ;;
30860 *) # Relative name.
30861 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30862 ac_top_srcdir=$ac_top_build_prefix$srcdir
30863 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30864 esac
30865 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30866
30867
30868 case $ac_mode in
30869 :F)
30870 #
30871 # CONFIG_FILE
30872 #
30873
30874 _ACEOF
30875
30876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30877 # If the template does not know about datarootdir, expand it.
30878 # FIXME: This hack should be removed a few years after 2.60.
30879 ac_datarootdir_hack=; ac_datarootdir_seen=
30880 ac_sed_dataroot='
30881 /datarootdir/ {
30882 p
30883 q
30884 }
30885 /@datadir@/p
30886 /@docdir@/p
30887 /@infodir@/p
30888 /@localedir@/p
30889 /@mandir@/p'
30890 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30891 *datarootdir*) ac_datarootdir_seen=yes;;
30892 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30894 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30895 _ACEOF
30896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30897 ac_datarootdir_hack='
30898 s&@datadir@&$datadir&g
30899 s&@docdir@&$docdir&g
30900 s&@infodir@&$infodir&g
30901 s&@localedir@&$localedir&g
30902 s&@mandir@&$mandir&g
30903 s&\\\${datarootdir}&$datarootdir&g' ;;
30904 esac
30905 _ACEOF
30906
30907 # Neutralize VPATH when `$srcdir' = `.'.
30908 # Shell code in configure.ac might set extrasub.
30909 # FIXME: do we really want to maintain this feature?
30910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30911 ac_sed_extra="$ac_vpsub
30912 $extrasub
30913 _ACEOF
30914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30915 :t
30916 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30917 s|@configure_input@|$ac_sed_conf_input|;t t
30918 s&@top_builddir@&$ac_top_builddir_sub&;t t
30919 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30920 s&@srcdir@&$ac_srcdir&;t t
30921 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30922 s&@top_srcdir@&$ac_top_srcdir&;t t
30923 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30924 s&@builddir@&$ac_builddir&;t t
30925 s&@abs_builddir@&$ac_abs_builddir&;t t
30926 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30927 $ac_datarootdir_hack
30928 "
30929 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30930 if $ac_cs_awk_getline; then
30931 $AWK -f "$tmp/subs.awk"
30932 else
30933 $AWK -f "$tmp/subs.awk" | $SHELL
30934 fi >$tmp/out \
30935 || as_fn_error "could not create $ac_file" "$LINENO" 5
30936
30937 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30938 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30939 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30941 which seems to be undefined. Please make sure it is defined." >&5
30942 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30943 which seems to be undefined. Please make sure it is defined." >&2;}
30944
30945 rm -f "$tmp/stdin"
30946 case $ac_file in
30947 -) cat "$tmp/out" && rm -f "$tmp/out";;
30948 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30949 esac \
30950 || as_fn_error "could not create $ac_file" "$LINENO" 5
30951 ;;
30952 :H)
30953 #
30954 # CONFIG_HEADER
30955 #
30956 if test x"$ac_file" != x-; then
30957 {
30958 $as_echo "/* $configure_input */" \
30959 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30960 } >"$tmp/config.h" \
30961 || as_fn_error "could not create $ac_file" "$LINENO" 5
30962 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30963 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30964 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30965 else
30966 rm -f "$ac_file"
30967 mv "$tmp/config.h" "$ac_file" \
30968 || as_fn_error "could not create $ac_file" "$LINENO" 5
30969 fi
30970 else
30971 $as_echo "/* $configure_input */" \
30972 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30973 || as_fn_error "could not create -" "$LINENO" 5
30974 fi
30975 ;;
30976 :L)
30977 #
30978 # CONFIG_LINK
30979 #
30980
30981 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30982 :
30983 else
30984 # Prefer the file from the source tree if names are identical.
30985 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30986 ac_source=$srcdir/$ac_source
30987 fi
30988
30989 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30990 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30991
30992 if test ! -r "$ac_source"; then
30993 as_fn_error "$ac_source: file not found" "$LINENO" 5
30994 fi
30995 rm -f "$ac_file"
30996
30997 # Try a relative symlink, then a hard link, then a copy.
30998 case $srcdir in
30999 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31000 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31001 esac
31002 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31003 ln "$ac_source" "$ac_file" 2>/dev/null ||
31004 cp -p "$ac_source" "$ac_file" ||
31005 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31006 fi
31007 ;;
31008 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31009 $as_echo "$as_me: executing $ac_file commands" >&6;}
31010 ;;
31011 esac
31012
31013
31014 case $ac_file$ac_mode in
31015 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31016 "gccdepdir":C)
31017 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31018 for lang in $subdirs c-family common
31019 do
31020 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31021 done ;;
31022 "as":F) chmod +x as ;;
31023 "collect-ld":F) chmod +x collect-ld ;;
31024 "nm":F) chmod +x nm ;;
31025 "default":C)
31026 case ${CONFIG_HEADERS} in
31027 *auto-host.h:config.in*)
31028 echo > cstamp-h ;;
31029 esac
31030 # Make sure all the subdirs exist.
31031 for d in $subdirs doc build common c-family
31032 do
31033 test -d $d || mkdir $d
31034 done
31035 ;;
31036
31037 esac
31038 done # for ac_tag
31039
31040
31041 as_fn_exit 0
31042 _ACEOF
31043 ac_clean_files=$ac_clean_files_save
31044
31045 test $ac_write_fail = 0 ||
31046 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31047
31048
31049 # configure is writing to config.log, and then calls config.status.
31050 # config.status does its own redirection, appending to config.log.
31051 # Unfortunately, on DOS this fails, as config.log is still kept open
31052 # by configure, so config.status won't be able to write to it; its
31053 # output is simply discarded. So we exec the FD to /dev/null,
31054 # effectively closing config.log, so it can be properly (re)opened and
31055 # appended to by config.status. When coming back to configure, we
31056 # need to make the FD available again.
31057 if test "$no_create" != yes; then
31058 ac_cs_success=:
31059 ac_config_status_args=
31060 test "$silent" = yes &&
31061 ac_config_status_args="$ac_config_status_args --quiet"
31062 exec 5>/dev/null
31063 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31064 exec 5>>config.log
31065 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31066 # would make configure fail if this is the last instruction.
31067 $ac_cs_success || as_fn_exit $?
31068 fi
31069 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31071 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31072 fi
31073
31074