]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
Run selftests for C++ as well as C
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 selftest_languages
660 check_languages
661 build_file_translate
662 build_xm_defines
663 build_xm_include_list
664 build_xm_file_list
665 build_install_headers_dir
666 build_exeext
667 all_selected_languages
668 all_languages
669 all_lang_makefrags
670 all_gtfiles
671 all_compilers
672 srcdir
673 subdirs
674 dollar
675 gcc_tooldir
676 enable_lto
677 DO_LINK_MUTEX
678 MAINT
679 zlibinc
680 zlibdir
681 HOST_LIBS
682 enable_default_ssp
683 thin_archive_support
684 ld_soname_option
685 ld_version_script_option
686 libgcc_visibility
687 gcc_cv_readelf
688 gcc_cv_objdump
689 ORIGINAL_NM_FOR_TARGET
690 gcc_cv_nm
691 ORIGINAL_LD_GOLD_FOR_TARGET
692 ORIGINAL_LD_BFD_FOR_TARGET
693 ORIGINAL_LD_FOR_TARGET
694 ORIGINAL_PLUGIN_LD_FOR_TARGET
695 gcc_cv_ld
696 ORIGINAL_AS_FOR_TARGET
697 gcc_cv_as
698 enable_fast_install
699 objdir
700 OTOOL64
701 OTOOL
702 LIPO
703 NMEDIT
704 DSYMUTIL
705 STRIP
706 OBJDUMP
707 ac_ct_DUMPBIN
708 DUMPBIN
709 LD
710 FGREP
711 SED
712 LIBTOOL
713 collect2
714 NO_PIE_FLAG_FOR_BUILD
715 NO_PIE_CFLAGS_FOR_BUILD
716 BUILD_NO_PIE_FLAG
717 BUILD_NO_PIE_CFLAGS
718 STMP_FIXINC
719 BUILD_LDFLAGS
720 BUILD_CXXFLAGS
721 BUILD_CFLAGS
722 CXX_FOR_BUILD
723 CC_FOR_BUILD
724 inhibit_libc
725 BUILD_SYSTEM_HEADER_DIR
726 SYSTEM_HEADER_DIR
727 ALL
728 CROSS
729 CATOBJEXT
730 GENCAT
731 INSTOBJEXT
732 DATADIRNAME
733 CATALOGS
734 POSUB
735 GMSGFMT
736 XGETTEXT
737 INCINTL
738 LIBINTL_DEP
739 LIBINTL
740 USE_NLS
741 get_gcc_base_ver
742 extra_opt_files
743 extra_modes_file
744 NATIVE_SYSTEM_HEADER_DIR
745 objext
746 manext
747 LIBICONV_DEP
748 LTLIBICONV
749 LIBICONV
750 LDEXP_LIB
751 EXTRA_GCC_LIBS
752 GNAT_LIBEXC
753 COLLECT2_LIBS
754 CXXDEPMODE
755 DEPDIR
756 am__leading_dot
757 doc_build_sys
758 AR
759 NM
760 BISON
761 FLEX
762 GENERATED_MANPAGES
763 BUILD_INFO
764 MAKEINFO
765 have_mktemp_command
766 make_compare_target
767 INSTALL_DATA
768 INSTALL_PROGRAM
769 INSTALL
770 ranlib_flags
771 RANLIB
772 LN
773 LN_S
774 AWK
775 SET_MAKE
776 accel_dir_suffix
777 real_target_noncanonical
778 enable_as_accelerator
779 REPORT_BUGS_TEXI
780 REPORT_BUGS_TO
781 PKGVERSION
782 CONFIGURE_SPECS
783 enable_gcov
784 enable_shared
785 enable_fixed_point
786 enable_decimal_float
787 with_float
788 with_cpu
789 enable_multiarch
790 enable_multilib
791 coverage_flags
792 valgrind_command
793 valgrind_path_defines
794 valgrind_path
795 TREECHECKING
796 nocommon_flag
797 noexception_flags
798 warn_cxxflags
799 warn_cflags
800 c_strict_warn
801 strict_warn
802 c_loose_warn
803 loose_warn
804 aliasing_flags
805 CPP
806 EGREP
807 GREP
808 CXXCPP
809 PICFLAG_FOR_TARGET
810 GNATMAKE
811 GNATBIND
812 ac_ct_CXX
813 CXXFLAGS
814 CXX
815 OBJEXT
816 EXEEXT
817 ac_ct_CC
818 CPPFLAGS
819 LDFLAGS
820 CFLAGS
821 CC
822 GENINSRC
823 CROSS_SYSTEM_HEADER_DIR
824 TARGET_SYSTEM_ROOT_DEFINE
825 TARGET_SYSTEM_ROOT
826 SYSROOT_CFLAGS_FOR_TARGET
827 target_subdir
828 host_subdir
829 build_subdir
830 build_libsubdir
831 target_noncanonical
832 host_noncanonical
833 target_os
834 target_vendor
835 target_cpu
836 target
837 host_os
838 host_vendor
839 host_cpu
840 host
841 build_os
842 build_vendor
843 build_cpu
844 build
845 target_alias
846 host_alias
847 build_alias
848 LIBS
849 ECHO_T
850 ECHO_N
851 ECHO_C
852 DEFS
853 mandir
854 localedir
855 libdir
856 psdir
857 pdfdir
858 dvidir
859 htmldir
860 infodir
861 docdir
862 oldincludedir
863 includedir
864 localstatedir
865 sharedstatedir
866 sysconfdir
867 datadir
868 datarootdir
869 libexecdir
870 sbindir
871 bindir
872 program_transform_name
873 prefix
874 exec_prefix
875 PACKAGE_URL
876 PACKAGE_BUGREPORT
877 PACKAGE_STRING
878 PACKAGE_VERSION
879 PACKAGE_TARNAME
880 PACKAGE_NAME
881 PATH_SEPARATOR
882 SHELL'
883 ac_subst_files='option_includes
884 language_hooks'
885 ac_user_opts='
886 enable_option_checking
887 with_build_libsubdir
888 with_local_prefix
889 with_native_system_header_dir
890 with_build_sysroot
891 with_sysroot
892 with_gxx_include_dir
893 with_cpp_install_dir
894 enable_generated_files_in_srcdir
895 with_gnu_ld
896 with_ld
897 with_demangler_in_ld
898 with_gnu_as
899 with_as
900 enable_largefile
901 enable_build_format_warnings
902 enable_werror_always
903 enable_checking
904 enable_coverage
905 enable_gather_detailed_mem_stats
906 enable_valgrind_annotations
907 with_stabs
908 enable_multilib
909 enable_multiarch
910 with_stack_clash_protection_guard_size
911 enable___cxa_atexit
912 enable_decimal_float
913 enable_fixed_point
914 enable_threads
915 enable_tls
916 enable_vtable_verify
917 enable_objc_gc
918 with_dwarf2
919 enable_shared
920 enable_gcov
921 with_specs
922 with_pkgversion
923 with_bugurl
924 enable_languages
925 with_multilib_list
926 enable_rpath
927 with_libiconv_prefix
928 enable_sjlj_exceptions
929 with_gcc_major_version_only
930 enable_secureplt
931 enable_mingw_wildcard
932 enable_large_address_aware
933 enable_leading_mingw64_underscores
934 enable_cld
935 enable_frame_pointer
936 enable_win32_registry
937 enable_static
938 with_pic
939 enable_fast_install
940 enable_libtool_lock
941 enable_ld
942 enable_gold
943 with_plugin_ld
944 enable_gnu_indirect_function
945 enable_initfini_array
946 enable_comdat
947 enable_fix_cortex_a53_835769
948 enable_fix_cortex_a53_843419
949 with_glibc_version
950 enable_gnu_unique_object
951 enable_linker_build_id
952 enable_libssp
953 enable_default_ssp
954 with_long_double_128
955 with_long_double_format
956 with_gc
957 with_system_zlib
958 enable_maintainer_mode
959 enable_link_mutex
960 enable_version_specific_runtime_libs
961 enable_plugin
962 enable_host_shared
963 enable_libquadmath_support
964 with_linker_hash_style
965 with_diagnostics_color
966 enable_default_pie
967 '
968 ac_precious_vars='build_alias
969 host_alias
970 target_alias
971 CC
972 CFLAGS
973 LDFLAGS
974 LIBS
975 CPPFLAGS
976 CXX
977 CXXFLAGS
978 CCC
979 CXXCPP
980 CPP
981 GMPLIBS
982 GMPINC
983 ISLLIBS
984 ISLINC'
985
986
987 # Initialize some variables set by options.
988 ac_init_help=
989 ac_init_version=false
990 ac_unrecognized_opts=
991 ac_unrecognized_sep=
992 # The variables have the same names as the options, with
993 # dashes changed to underlines.
994 cache_file=/dev/null
995 exec_prefix=NONE
996 no_create=
997 no_recursion=
998 prefix=NONE
999 program_prefix=NONE
1000 program_suffix=NONE
1001 program_transform_name=s,x,x,
1002 silent=
1003 site=
1004 srcdir=
1005 verbose=
1006 x_includes=NONE
1007 x_libraries=NONE
1008
1009 # Installation directory options.
1010 # These are left unexpanded so users can "make install exec_prefix=/foo"
1011 # and all the variables that are supposed to be based on exec_prefix
1012 # by default will actually change.
1013 # Use braces instead of parens because sh, perl, etc. also accept them.
1014 # (The list follows the same order as the GNU Coding Standards.)
1015 bindir='${exec_prefix}/bin'
1016 sbindir='${exec_prefix}/sbin'
1017 libexecdir='${exec_prefix}/libexec'
1018 datarootdir='${prefix}/share'
1019 datadir='${datarootdir}'
1020 sysconfdir='${prefix}/etc'
1021 sharedstatedir='${prefix}/com'
1022 localstatedir='${prefix}/var'
1023 includedir='${prefix}/include'
1024 oldincludedir='/usr/include'
1025 docdir='${datarootdir}/doc/${PACKAGE}'
1026 infodir='${datarootdir}/info'
1027 htmldir='${docdir}'
1028 dvidir='${docdir}'
1029 pdfdir='${docdir}'
1030 psdir='${docdir}'
1031 libdir='${exec_prefix}/lib'
1032 localedir='${datarootdir}/locale'
1033 mandir='${datarootdir}/man'
1034
1035 ac_prev=
1036 ac_dashdash=
1037 for ac_option
1038 do
1039 # If the previous option needs an argument, assign it.
1040 if test -n "$ac_prev"; then
1041 eval $ac_prev=\$ac_option
1042 ac_prev=
1043 continue
1044 fi
1045
1046 case $ac_option in
1047 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1048 *) ac_optarg=yes ;;
1049 esac
1050
1051 # Accept the important Cygnus configure options, so we can diagnose typos.
1052
1053 case $ac_dashdash$ac_option in
1054 --)
1055 ac_dashdash=yes ;;
1056
1057 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1058 ac_prev=bindir ;;
1059 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1060 bindir=$ac_optarg ;;
1061
1062 -build | --build | --buil | --bui | --bu)
1063 ac_prev=build_alias ;;
1064 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1065 build_alias=$ac_optarg ;;
1066
1067 -cache-file | --cache-file | --cache-fil | --cache-fi \
1068 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1069 ac_prev=cache_file ;;
1070 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1071 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1072 cache_file=$ac_optarg ;;
1073
1074 --config-cache | -C)
1075 cache_file=config.cache ;;
1076
1077 -datadir | --datadir | --datadi | --datad)
1078 ac_prev=datadir ;;
1079 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1080 datadir=$ac_optarg ;;
1081
1082 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1083 | --dataroo | --dataro | --datar)
1084 ac_prev=datarootdir ;;
1085 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1086 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1087 datarootdir=$ac_optarg ;;
1088
1089 -disable-* | --disable-*)
1090 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093 as_fn_error "invalid feature name: $ac_useropt"
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1097 *"
1098 "enable_$ac_useropt"
1099 "*) ;;
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1102 esac
1103 eval enable_$ac_useropt=no ;;
1104
1105 -docdir | --docdir | --docdi | --doc | --do)
1106 ac_prev=docdir ;;
1107 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1108 docdir=$ac_optarg ;;
1109
1110 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1111 ac_prev=dvidir ;;
1112 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1113 dvidir=$ac_optarg ;;
1114
1115 -enable-* | --enable-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error "invalid feature name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124 "enable_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval enable_$ac_useropt=\$ac_optarg ;;
1130
1131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1133 | --exec | --exe | --ex)
1134 ac_prev=exec_prefix ;;
1135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1137 | --exec=* | --exe=* | --ex=*)
1138 exec_prefix=$ac_optarg ;;
1139
1140 -gas | --gas | --ga | --g)
1141 # Obsolete; use --with-gas.
1142 with_gas=yes ;;
1143
1144 -help | --help | --hel | --he | -h)
1145 ac_init_help=long ;;
1146 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1147 ac_init_help=recursive ;;
1148 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1149 ac_init_help=short ;;
1150
1151 -host | --host | --hos | --ho)
1152 ac_prev=host_alias ;;
1153 -host=* | --host=* | --hos=* | --ho=*)
1154 host_alias=$ac_optarg ;;
1155
1156 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1157 ac_prev=htmldir ;;
1158 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1159 | --ht=*)
1160 htmldir=$ac_optarg ;;
1161
1162 -includedir | --includedir | --includedi | --included | --include \
1163 | --includ | --inclu | --incl | --inc)
1164 ac_prev=includedir ;;
1165 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1166 | --includ=* | --inclu=* | --incl=* | --inc=*)
1167 includedir=$ac_optarg ;;
1168
1169 -infodir | --infodir | --infodi | --infod | --info | --inf)
1170 ac_prev=infodir ;;
1171 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1172 infodir=$ac_optarg ;;
1173
1174 -libdir | --libdir | --libdi | --libd)
1175 ac_prev=libdir ;;
1176 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1177 libdir=$ac_optarg ;;
1178
1179 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1180 | --libexe | --libex | --libe)
1181 ac_prev=libexecdir ;;
1182 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1183 | --libexe=* | --libex=* | --libe=*)
1184 libexecdir=$ac_optarg ;;
1185
1186 -localedir | --localedir | --localedi | --localed | --locale)
1187 ac_prev=localedir ;;
1188 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1189 localedir=$ac_optarg ;;
1190
1191 -localstatedir | --localstatedir | --localstatedi | --localstated \
1192 | --localstate | --localstat | --localsta | --localst | --locals)
1193 ac_prev=localstatedir ;;
1194 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1195 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1196 localstatedir=$ac_optarg ;;
1197
1198 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1199 ac_prev=mandir ;;
1200 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1201 mandir=$ac_optarg ;;
1202
1203 -nfp | --nfp | --nf)
1204 # Obsolete; use --without-fp.
1205 with_fp=no ;;
1206
1207 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1208 | --no-cr | --no-c | -n)
1209 no_create=yes ;;
1210
1211 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1212 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1213 no_recursion=yes ;;
1214
1215 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1216 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1217 | --oldin | --oldi | --old | --ol | --o)
1218 ac_prev=oldincludedir ;;
1219 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1220 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1221 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1222 oldincludedir=$ac_optarg ;;
1223
1224 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1225 ac_prev=prefix ;;
1226 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1227 prefix=$ac_optarg ;;
1228
1229 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1230 | --program-pre | --program-pr | --program-p)
1231 ac_prev=program_prefix ;;
1232 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1233 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1234 program_prefix=$ac_optarg ;;
1235
1236 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1237 | --program-suf | --program-su | --program-s)
1238 ac_prev=program_suffix ;;
1239 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1240 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1241 program_suffix=$ac_optarg ;;
1242
1243 -program-transform-name | --program-transform-name \
1244 | --program-transform-nam | --program-transform-na \
1245 | --program-transform-n | --program-transform- \
1246 | --program-transform | --program-transfor \
1247 | --program-transfo | --program-transf \
1248 | --program-trans | --program-tran \
1249 | --progr-tra | --program-tr | --program-t)
1250 ac_prev=program_transform_name ;;
1251 -program-transform-name=* | --program-transform-name=* \
1252 | --program-transform-nam=* | --program-transform-na=* \
1253 | --program-transform-n=* | --program-transform-=* \
1254 | --program-transform=* | --program-transfor=* \
1255 | --program-transfo=* | --program-transf=* \
1256 | --program-trans=* | --program-tran=* \
1257 | --progr-tra=* | --program-tr=* | --program-t=*)
1258 program_transform_name=$ac_optarg ;;
1259
1260 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1261 ac_prev=pdfdir ;;
1262 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1263 pdfdir=$ac_optarg ;;
1264
1265 -psdir | --psdir | --psdi | --psd | --ps)
1266 ac_prev=psdir ;;
1267 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1268 psdir=$ac_optarg ;;
1269
1270 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1271 | -silent | --silent | --silen | --sile | --sil)
1272 silent=yes ;;
1273
1274 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1275 ac_prev=sbindir ;;
1276 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1277 | --sbi=* | --sb=*)
1278 sbindir=$ac_optarg ;;
1279
1280 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1281 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1282 | --sharedst | --shareds | --shared | --share | --shar \
1283 | --sha | --sh)
1284 ac_prev=sharedstatedir ;;
1285 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1286 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1287 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1288 | --sha=* | --sh=*)
1289 sharedstatedir=$ac_optarg ;;
1290
1291 -site | --site | --sit)
1292 ac_prev=site ;;
1293 -site=* | --site=* | --sit=*)
1294 site=$ac_optarg ;;
1295
1296 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1297 ac_prev=srcdir ;;
1298 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1299 srcdir=$ac_optarg ;;
1300
1301 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1302 | --syscon | --sysco | --sysc | --sys | --sy)
1303 ac_prev=sysconfdir ;;
1304 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1305 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1306 sysconfdir=$ac_optarg ;;
1307
1308 -target | --target | --targe | --targ | --tar | --ta | --t)
1309 ac_prev=target_alias ;;
1310 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1311 target_alias=$ac_optarg ;;
1312
1313 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1314 verbose=yes ;;
1315
1316 -version | --version | --versio | --versi | --vers | -V)
1317 ac_init_version=: ;;
1318
1319 -with-* | --with-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323 as_fn_error "invalid package name: $ac_useropt"
1324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1327 *"
1328 "with_$ac_useropt"
1329 "*) ;;
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1332 esac
1333 eval with_$ac_useropt=\$ac_optarg ;;
1334
1335 -without-* | --without-*)
1336 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339 as_fn_error "invalid package name: $ac_useropt"
1340 ac_useropt_orig=$ac_useropt
1341 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1343 *"
1344 "with_$ac_useropt"
1345 "*) ;;
1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1347 ac_unrecognized_sep=', ';;
1348 esac
1349 eval with_$ac_useropt=no ;;
1350
1351 --x)
1352 # Obsolete; use --with-x.
1353 with_x=yes ;;
1354
1355 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1356 | --x-incl | --x-inc | --x-in | --x-i)
1357 ac_prev=x_includes ;;
1358 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1359 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1360 x_includes=$ac_optarg ;;
1361
1362 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1363 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1364 ac_prev=x_libraries ;;
1365 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1366 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1367 x_libraries=$ac_optarg ;;
1368
1369 -*) as_fn_error "unrecognized option: \`$ac_option'
1370 Try \`$0 --help' for more information."
1371 ;;
1372
1373 *=*)
1374 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1375 # Reject names that are not valid shell variable names.
1376 case $ac_envvar in #(
1377 '' | [0-9]* | *[!_$as_cr_alnum]* )
1378 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1379 esac
1380 eval $ac_envvar=\$ac_optarg
1381 export $ac_envvar ;;
1382
1383 *)
1384 # FIXME: should be removed in autoconf 3.0.
1385 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1386 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1387 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1388 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1389 ;;
1390
1391 esac
1392 done
1393
1394 if test -n "$ac_prev"; then
1395 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1396 as_fn_error "missing argument to $ac_option"
1397 fi
1398
1399 if test -n "$ac_unrecognized_opts"; then
1400 case $enable_option_checking in
1401 no) ;;
1402 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1403 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1404 esac
1405 fi
1406
1407 # Check all directory arguments for consistency.
1408 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1409 datadir sysconfdir sharedstatedir localstatedir includedir \
1410 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1411 libdir localedir mandir
1412 do
1413 eval ac_val=\$$ac_var
1414 # Remove trailing slashes.
1415 case $ac_val in
1416 */ )
1417 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1418 eval $ac_var=\$ac_val;;
1419 esac
1420 # Be sure to have absolute directory names.
1421 case $ac_val in
1422 [\\/$]* | ?:[\\/]* ) continue;;
1423 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1424 esac
1425 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1426 done
1427
1428 # There might be people who depend on the old broken behavior: `$host'
1429 # used to hold the argument of --host etc.
1430 # FIXME: To remove some day.
1431 build=$build_alias
1432 host=$host_alias
1433 target=$target_alias
1434
1435 # FIXME: To remove some day.
1436 if test "x$host_alias" != x; then
1437 if test "x$build_alias" = x; then
1438 cross_compiling=maybe
1439 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1440 If a cross compiler is detected then cross compile mode will be used." >&2
1441 elif test "x$build_alias" != "x$host_alias"; then
1442 cross_compiling=yes
1443 fi
1444 fi
1445
1446 ac_tool_prefix=
1447 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1448
1449 test "$silent" = yes && exec 6>/dev/null
1450
1451
1452 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1453 ac_ls_di=`ls -di .` &&
1454 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1455 as_fn_error "working directory cannot be determined"
1456 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1457 as_fn_error "pwd does not report name of working directory"
1458
1459
1460 # Find the source files, if location was not specified.
1461 if test -z "$srcdir"; then
1462 ac_srcdir_defaulted=yes
1463 # Try the directory containing this script, then the parent directory.
1464 ac_confdir=`$as_dirname -- "$as_myself" ||
1465 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1466 X"$as_myself" : 'X\(//\)[^/]' \| \
1467 X"$as_myself" : 'X\(//\)$' \| \
1468 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1469 $as_echo X"$as_myself" |
1470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1471 s//\1/
1472 q
1473 }
1474 /^X\(\/\/\)[^/].*/{
1475 s//\1/
1476 q
1477 }
1478 /^X\(\/\/\)$/{
1479 s//\1/
1480 q
1481 }
1482 /^X\(\/\).*/{
1483 s//\1/
1484 q
1485 }
1486 s/.*/./; q'`
1487 srcdir=$ac_confdir
1488 if test ! -r "$srcdir/$ac_unique_file"; then
1489 srcdir=..
1490 fi
1491 else
1492 ac_srcdir_defaulted=no
1493 fi
1494 if test ! -r "$srcdir/$ac_unique_file"; then
1495 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1496 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1497 fi
1498 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1499 ac_abs_confdir=`(
1500 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1501 pwd)`
1502 # When building in place, set srcdir=.
1503 if test "$ac_abs_confdir" = "$ac_pwd"; then
1504 srcdir=.
1505 fi
1506 # Remove unnecessary trailing slashes from srcdir.
1507 # Double slashes in file names in object file debugging info
1508 # mess up M-x gdb in Emacs.
1509 case $srcdir in
1510 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1511 esac
1512 for ac_var in $ac_precious_vars; do
1513 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1514 eval ac_env_${ac_var}_value=\$${ac_var}
1515 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1516 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1517 done
1518
1519 #
1520 # Report the --help message.
1521 #
1522 if test "$ac_init_help" = "long"; then
1523 # Omit some internal or obsolete options to make the list less imposing.
1524 # This message is too long to be a string in the A/UX 3.1 sh.
1525 cat <<_ACEOF
1526 \`configure' configures this package to adapt to many kinds of systems.
1527
1528 Usage: $0 [OPTION]... [VAR=VALUE]...
1529
1530 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1531 VAR=VALUE. See below for descriptions of some of the useful variables.
1532
1533 Defaults for the options are specified in brackets.
1534
1535 Configuration:
1536 -h, --help display this help and exit
1537 --help=short display options specific to this package
1538 --help=recursive display the short help of all the included packages
1539 -V, --version display version information and exit
1540 -q, --quiet, --silent do not print \`checking...' messages
1541 --cache-file=FILE cache test results in FILE [disabled]
1542 -C, --config-cache alias for \`--cache-file=config.cache'
1543 -n, --no-create do not create output files
1544 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1545
1546 Installation directories:
1547 --prefix=PREFIX install architecture-independent files in PREFIX
1548 [$ac_default_prefix]
1549 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1550 [PREFIX]
1551
1552 By default, \`make install' will install all the files in
1553 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1554 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1555 for instance \`--prefix=\$HOME'.
1556
1557 For better control, use the options below.
1558
1559 Fine tuning of the installation directories:
1560 --bindir=DIR user executables [EPREFIX/bin]
1561 --sbindir=DIR system admin executables [EPREFIX/sbin]
1562 --libexecdir=DIR program executables [EPREFIX/libexec]
1563 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1564 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1565 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1566 --libdir=DIR object code libraries [EPREFIX/lib]
1567 --includedir=DIR C header files [PREFIX/include]
1568 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1569 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1570 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1571 --infodir=DIR info documentation [DATAROOTDIR/info]
1572 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1573 --mandir=DIR man documentation [DATAROOTDIR/man]
1574 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1575 --htmldir=DIR html documentation [DOCDIR]
1576 --dvidir=DIR dvi documentation [DOCDIR]
1577 --pdfdir=DIR pdf documentation [DOCDIR]
1578 --psdir=DIR ps documentation [DOCDIR]
1579 _ACEOF
1580
1581 cat <<\_ACEOF
1582
1583 Program names:
1584 --program-prefix=PREFIX prepend PREFIX to installed program names
1585 --program-suffix=SUFFIX append SUFFIX to installed program names
1586 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1587
1588 System types:
1589 --build=BUILD configure for building on BUILD [guessed]
1590 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1591 --target=TARGET configure for building compilers for TARGET [HOST]
1592 _ACEOF
1593 fi
1594
1595 if test -n "$ac_init_help"; then
1596
1597 cat <<\_ACEOF
1598
1599 Optional Features:
1600 --disable-option-checking ignore unrecognized --enable/--with options
1601 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1602 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1603 --enable-generated-files-in-srcdir
1604 put copies of generated files in source dir intended
1605 for creating source tarballs for users without
1606 texinfo bison or flex
1607 --disable-largefile omit support for large files
1608 --disable-build-format-warnings
1609 don't use -Wformat while building GCC
1610 --enable-werror-always enable -Werror despite compiler version
1611 --enable-checking[=LIST]
1612 enable expensive run-time checks. With LIST, enable
1613 only specific categories of checks. Categories are:
1614 yes,no,all,none,release. Flags are:
1615 assert,df,extra,fold,gc,gcac,gimple,misc,
1616 rtlflag,rtl,runtime,tree,valgrind,types
1617 --enable-coverage[=LEVEL]
1618 enable compiler's code coverage collection. Use to
1619 measure compiler performance and locate unused parts
1620 of the compiler. With LEVEL, specify optimization.
1621 Values are opt, noopt, default is noopt
1622 --enable-gather-detailed-mem-stats
1623 enable detailed memory allocation stats gathering
1624 --enable-valgrind-annotations
1625 enable valgrind runtime interaction
1626 --enable-multilib enable library support for multiple ABIs
1627 --enable-multiarch enable support for multiarch paths
1628 --enable-__cxa_atexit enable __cxa_atexit for C++
1629 --enable-decimal-float={no,yes,bid,dpd}
1630 enable decimal float extension to C. Selecting 'bid'
1631 or 'dpd' choses which decimal floating point format
1632 to use
1633 --enable-fixed-point enable fixed-point arithmetic extension to C
1634 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1635 package
1636 --enable-tls enable or disable generation of tls code overriding
1637 the assembler check for tls support
1638 --enable-vtable-verify enable vtable verification feature
1639 --enable-objc-gc enable the use of Boehm's garbage collector with the
1640 GNU Objective-C runtime
1641 --disable-shared don't provide a shared libgcc
1642 --disable-gcov don't provide libgcov and related host tools
1643 --enable-languages=LIST specify which front-ends to build
1644 --disable-rpath do not hardcode runtime library paths
1645 --enable-sjlj-exceptions
1646 arrange to use setjmp/longjmp exception handling
1647 --enable-secureplt enable -msecure-plt by default for PowerPC
1648 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1649 Default to platform configuration
1650 --enable-large-address-aware
1651 Link mingw executables with --large-address-aware
1652 --enable-leading-mingw64-underscores
1653 enable leading underscores on 64 bit mingw targets
1654 --enable-cld enable -mcld by default for 32bit x86
1655 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1656 x86
1657 --disable-win32-registry
1658 disable lookup of installation paths in the Registry
1659 on Windows hosts
1660 --enable-win32-registry enable registry lookup (default)
1661 --enable-win32-registry=KEY
1662 use KEY instead of GCC version as the last portion
1663 of the registry key
1664 --enable-shared[=PKGS] build shared libraries [default=yes]
1665 --enable-static[=PKGS] build static libraries [default=yes]
1666 --enable-fast-install[=PKGS]
1667 optimize for fast installation [default=yes]
1668 --disable-libtool-lock avoid locking (might break parallel builds)
1669 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1670 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1671 --enable-gnu-indirect-function
1672 enable the use of the @gnu_indirect_function to
1673 glibc systems
1674 --enable-initfini-array use .init_array/.fini_array sections
1675 --enable-comdat enable COMDAT group support
1676
1677 --enable-fix-cortex-a53-835769
1678 enable workaround for AArch64 Cortex-A53 erratum
1679 835769 by default
1680 --disable-fix-cortex-a53-835769
1681 disable workaround for AArch64 Cortex-A53 erratum
1682 835769 by default
1683
1684
1685 --enable-fix-cortex-a53-843419
1686 enable workaround for AArch64 Cortex-A53 erratum
1687 843419 by default
1688 --disable-fix-cortex-a53-843419
1689 disable workaround for AArch64 Cortex-A53 erratum
1690 843419 by default
1691
1692 --enable-gnu-unique-object
1693 enable the use of the @gnu_unique_object ELF
1694 extension on glibc systems
1695 --enable-linker-build-id
1696 compiler will always pass --build-id to linker
1697 --enable-libssp enable linking against libssp
1698 --enable-default-ssp enable Stack Smashing Protection as default
1699 --enable-maintainer-mode
1700 enable make rules and dependencies not useful (and
1701 sometimes confusing) to the casual installer
1702 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1703 thrashing on the build machine
1704 --enable-version-specific-runtime-libs
1705 specify that runtime libraries should be installed
1706 in a compiler-specific directory
1707 --enable-plugin enable plugin support
1708 --enable-host-shared build host code as shared libraries
1709 --disable-libquadmath-support
1710 disable libquadmath support for Fortran
1711 --enable-default-pie enable Position Independent Executable as default
1712
1713 Optional Packages:
1714 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1715 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1716 --with-build-libsubdir=DIR Directory where to find libraries for build system
1717 --with-local-prefix=DIR specifies directory to put local include
1718 --with-native-system-header-dir=dir
1719 use dir as the directory to look for standard
1720 system header files in. Defaults to /usr/include.
1721 --with-build-sysroot=sysroot
1722 use sysroot as the system root during the build
1723 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1724 --with-gxx-include-dir=DIR
1725 specifies directory to put g++ header files
1726 --with-cpp-install-dir=DIR
1727 install the user visible C preprocessor in DIR
1728 (relative to PREFIX) as well as PREFIX/bin
1729 --with-gnu-ld arrange to work with GNU ld
1730 --with-ld arrange to use the specified ld (full pathname)
1731 --with-demangler-in-ld try to use demangler in GNU ld
1732 --with-gnu-as arrange to work with GNU as
1733 --with-as arrange to use the specified as (full pathname)
1734 --with-stabs arrange to use stabs instead of host debug format
1735 --with-stack-clash-protection-guard-size=size
1736 Set the default stack clash protection guard size
1737 for specific targets as a power of two in bytes.
1738 --with-dwarf2 force the default debug format to be DWARF 2
1739 --with-specs=SPECS add SPECS to driver command-line processing
1740 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1741 --with-bugurl=URL Direct users to URL to report a bug
1742 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1743 --with-gnu-ld assume the C compiler uses GNU ld default=no
1744 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1745 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1746 --with-gcc-major-version-only
1747 use only GCC major number in filesystem paths
1748 --with-pic try to use only PIC/non-PIC objects [default=use
1749 both]
1750 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1751 --with-plugin-ld=[ARG] specify the plugin linker
1752 --with-glibc-version=M.N
1753 assume GCC used with glibc version M.N or later
1754 --with-long-double-128 use 128-bit long double by default
1755 --with-long-double-format={ieee,ibm}
1756 Specify whether PowerPC long double uses IEEE or IBM format
1757
1758 --with-gc={page,zone} this option is not supported anymore. It used to
1759 choose the garbage collection mechanism to use with
1760 the compiler
1761 --with-system-zlib use installed libz
1762 --with-linker-hash-style={sysv,gnu,both}
1763 specify the linker hash style
1764 --with-diagnostics-color={never,auto,auto-if-env,always}
1765 specify the default of -fdiagnostics-color option
1766 auto-if-env stands for -fdiagnostics-color=auto if
1767 GCC_COLOR environment variable is present and
1768 -fdiagnostics-color=never otherwise
1769
1770 Some influential environment variables:
1771 CC C compiler command
1772 CFLAGS C compiler flags
1773 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1774 nonstandard directory <lib dir>
1775 LIBS libraries to pass to the linker, e.g. -l<library>
1776 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1777 you have headers in a nonstandard directory <include dir>
1778 CXX C++ compiler command
1779 CXXFLAGS C++ compiler flags
1780 CXXCPP C++ preprocessor
1781 CPP C preprocessor
1782 GMPLIBS How to link GMP
1783 GMPINC How to find GMP include files
1784 ISLLIBS How to link isl
1785 ISLINC How to find isl include files
1786
1787 Use these variables to override the choices made by `configure' or to help
1788 it to find libraries and programs with nonstandard names/locations.
1789
1790 Report bugs to the package provider.
1791 _ACEOF
1792 ac_status=$?
1793 fi
1794
1795 if test "$ac_init_help" = "recursive"; then
1796 # If there are subdirs, report their specific --help.
1797 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1798 test -d "$ac_dir" ||
1799 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1800 continue
1801 ac_builddir=.
1802
1803 case "$ac_dir" in
1804 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1805 *)
1806 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1807 # A ".." for each directory in $ac_dir_suffix.
1808 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1809 case $ac_top_builddir_sub in
1810 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1811 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1812 esac ;;
1813 esac
1814 ac_abs_top_builddir=$ac_pwd
1815 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1816 # for backward compatibility:
1817 ac_top_builddir=$ac_top_build_prefix
1818
1819 case $srcdir in
1820 .) # We are building in place.
1821 ac_srcdir=.
1822 ac_top_srcdir=$ac_top_builddir_sub
1823 ac_abs_top_srcdir=$ac_pwd ;;
1824 [\\/]* | ?:[\\/]* ) # Absolute name.
1825 ac_srcdir=$srcdir$ac_dir_suffix;
1826 ac_top_srcdir=$srcdir
1827 ac_abs_top_srcdir=$srcdir ;;
1828 *) # Relative name.
1829 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1830 ac_top_srcdir=$ac_top_build_prefix$srcdir
1831 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1832 esac
1833 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1834
1835 cd "$ac_dir" || { ac_status=$?; continue; }
1836 # Check for guested configure.
1837 if test -f "$ac_srcdir/configure.gnu"; then
1838 echo &&
1839 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1840 elif test -f "$ac_srcdir/configure"; then
1841 echo &&
1842 $SHELL "$ac_srcdir/configure" --help=recursive
1843 else
1844 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1845 fi || ac_status=$?
1846 cd "$ac_pwd" || { ac_status=$?; break; }
1847 done
1848 fi
1849
1850 test -n "$ac_init_help" && exit $ac_status
1851 if $ac_init_version; then
1852 cat <<\_ACEOF
1853 configure
1854 generated by GNU Autoconf 2.64
1855
1856 Copyright (C) 2009 Free Software Foundation, Inc.
1857 This configure script is free software; the Free Software Foundation
1858 gives unlimited permission to copy, distribute and modify it.
1859 _ACEOF
1860 exit
1861 fi
1862
1863 ## ------------------------ ##
1864 ## Autoconf initialization. ##
1865 ## ------------------------ ##
1866
1867 # ac_fn_c_try_compile LINENO
1868 # --------------------------
1869 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_c_try_compile ()
1871 {
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext
1874 if { { ac_try="$ac_compile"
1875 case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_compile") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1887 fi
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_c_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest.$ac_objext; then :
1893 ac_retval=0
1894 else
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1897
1898 ac_retval=1
1899 fi
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901 return $ac_retval
1902
1903 } # ac_fn_c_try_compile
1904
1905 # ac_fn_cxx_try_compile LINENO
1906 # ----------------------------
1907 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1908 ac_fn_cxx_try_compile ()
1909 {
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 rm -f conftest.$ac_objext
1912 if { { ac_try="$ac_compile"
1913 case "(($ac_try" in
1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1916 esac
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_compile") 2>conftest.err
1920 ac_status=$?
1921 if test -s conftest.err; then
1922 grep -v '^ *+' conftest.err >conftest.er1
1923 cat conftest.er1 >&5
1924 mv -f conftest.er1 conftest.err
1925 fi
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; } && {
1928 test -z "$ac_cxx_werror_flag" ||
1929 test ! -s conftest.err
1930 } && test -s conftest.$ac_objext; then :
1931 ac_retval=0
1932 else
1933 $as_echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1935
1936 ac_retval=1
1937 fi
1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1939 return $ac_retval
1940
1941 } # ac_fn_cxx_try_compile
1942
1943 # ac_fn_cxx_try_cpp LINENO
1944 # ------------------------
1945 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1946 ac_fn_cxx_try_cpp ()
1947 {
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if { { ac_try="$ac_cpp conftest.$ac_ext"
1950 case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1957 ac_status=$?
1958 if test -s conftest.err; then
1959 grep -v '^ *+' conftest.err >conftest.er1
1960 cat conftest.er1 >&5
1961 mv -f conftest.er1 conftest.err
1962 fi
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } >/dev/null && {
1965 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1966 test ! -s conftest.err
1967 }; then :
1968 ac_retval=0
1969 else
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1972
1973 ac_retval=1
1974 fi
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 return $ac_retval
1977
1978 } # ac_fn_cxx_try_cpp
1979
1980 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1981 # ---------------------------------------------------------
1982 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1983 # the include files in INCLUDES and setting the cache variable VAR
1984 # accordingly.
1985 ac_fn_cxx_check_header_mongrel ()
1986 {
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1992 $as_echo_n "(cached) " >&6
1993 fi
1994 eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 else
1998 # Is the header compilable?
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2000 $as_echo_n "checking $2 usability... " >&6; }
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 $4
2004 #include <$2>
2005 _ACEOF
2006 if ac_fn_cxx_try_compile "$LINENO"; then :
2007 ac_header_compiler=yes
2008 else
2009 ac_header_compiler=no
2010 fi
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2013 $as_echo "$ac_header_compiler" >&6; }
2014
2015 # Is the header present?
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2017 $as_echo_n "checking $2 presence... " >&6; }
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2020 #include <$2>
2021 _ACEOF
2022 if ac_fn_cxx_try_cpp "$LINENO"; then :
2023 ac_header_preproc=yes
2024 else
2025 ac_header_preproc=no
2026 fi
2027 rm -f conftest.err conftest.$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2029 $as_echo "$ac_header_preproc" >&6; }
2030
2031 # So? What about this header?
2032 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2033 yes:no: )
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2035 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2037 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2038 ;;
2039 no:yes:* )
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2041 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2043 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2045 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2047 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2049 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2050 ;;
2051 esac
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 $as_echo_n "checking for $2... " >&6; }
2054 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2055 $as_echo_n "(cached) " >&6
2056 else
2057 eval "$3=\$ac_header_compiler"
2058 fi
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 fi
2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2064
2065 } # ac_fn_cxx_check_header_mongrel
2066
2067 # ac_fn_cxx_try_run LINENO
2068 # ------------------------
2069 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2070 # that executables *can* be run.
2071 ac_fn_cxx_try_run ()
2072 {
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 if { { ac_try="$ac_link"
2075 case "(($ac_try" in
2076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2077 *) ac_try_echo=$ac_try;;
2078 esac
2079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2080 $as_echo "$ac_try_echo"; } >&5
2081 (eval "$ac_link") 2>&5
2082 ac_status=$?
2083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2084 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2085 { { case "(($ac_try" in
2086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087 *) ac_try_echo=$ac_try;;
2088 esac
2089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090 $as_echo "$ac_try_echo"; } >&5
2091 (eval "$ac_try") 2>&5
2092 ac_status=$?
2093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2094 test $ac_status = 0; }; }; then :
2095 ac_retval=0
2096 else
2097 $as_echo "$as_me: program exited with status $ac_status" >&5
2098 $as_echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2100
2101 ac_retval=$ac_status
2102 fi
2103 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2104 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2105 return $ac_retval
2106
2107 } # ac_fn_cxx_try_run
2108
2109 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2110 # ---------------------------------------------------------
2111 # Tests whether HEADER exists and can be compiled using the include files in
2112 # INCLUDES, setting the cache variable VAR accordingly.
2113 ac_fn_cxx_check_header_compile ()
2114 {
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117 $as_echo_n "checking for $2... " >&6; }
2118 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2119 $as_echo_n "(cached) " >&6
2120 else
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2123 $4
2124 #include <$2>
2125 _ACEOF
2126 if ac_fn_cxx_try_compile "$LINENO"; then :
2127 eval "$3=yes"
2128 else
2129 eval "$3=no"
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 fi
2133 eval ac_res=\$$3
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2137
2138 } # ac_fn_cxx_check_header_compile
2139
2140 # ac_fn_c_try_cpp LINENO
2141 # ----------------------
2142 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2143 ac_fn_c_try_cpp ()
2144 {
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 if { { ac_try="$ac_cpp conftest.$ac_ext"
2147 case "(($ac_try" in
2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149 *) ac_try_echo=$ac_try;;
2150 esac
2151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2152 $as_echo "$ac_try_echo"; } >&5
2153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2154 ac_status=$?
2155 if test -s conftest.err; then
2156 grep -v '^ *+' conftest.err >conftest.er1
2157 cat conftest.er1 >&5
2158 mv -f conftest.er1 conftest.err
2159 fi
2160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2161 test $ac_status = 0; } >/dev/null && {
2162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2163 test ! -s conftest.err
2164 }; then :
2165 ac_retval=0
2166 else
2167 $as_echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2169
2170 ac_retval=1
2171 fi
2172 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173 return $ac_retval
2174
2175 } # ac_fn_c_try_cpp
2176
2177 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2178 # ----------------------------------------------
2179 # Tries to find the compile-time value of EXPR in a program that includes
2180 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2181 # computed
2182 ac_fn_cxx_compute_int ()
2183 {
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 if test "$cross_compiling" = yes; then
2186 # Depending upon the size, compute the lo and hi bounds.
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2189 $4
2190 int
2191 main ()
2192 {
2193 static int test_array [1 - 2 * !(($2) >= 0)];
2194 test_array [0] = 0
2195
2196 ;
2197 return 0;
2198 }
2199 _ACEOF
2200 if ac_fn_cxx_try_compile "$LINENO"; then :
2201 ac_lo=0 ac_mid=0
2202 while :; do
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2205 $4
2206 int
2207 main ()
2208 {
2209 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2210 test_array [0] = 0
2211
2212 ;
2213 return 0;
2214 }
2215 _ACEOF
2216 if ac_fn_cxx_try_compile "$LINENO"; then :
2217 ac_hi=$ac_mid; break
2218 else
2219 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2220 if test $ac_lo -le $ac_mid; then
2221 ac_lo= ac_hi=
2222 break
2223 fi
2224 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2225 fi
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 done
2228 else
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2231 $4
2232 int
2233 main ()
2234 {
2235 static int test_array [1 - 2 * !(($2) < 0)];
2236 test_array [0] = 0
2237
2238 ;
2239 return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_cxx_try_compile "$LINENO"; then :
2243 ac_hi=-1 ac_mid=-1
2244 while :; do
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2247 $4
2248 int
2249 main ()
2250 {
2251 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2252 test_array [0] = 0
2253
2254 ;
2255 return 0;
2256 }
2257 _ACEOF
2258 if ac_fn_cxx_try_compile "$LINENO"; then :
2259 ac_lo=$ac_mid; break
2260 else
2261 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2262 if test $ac_mid -le $ac_hi; then
2263 ac_lo= ac_hi=
2264 break
2265 fi
2266 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 done
2270 else
2271 ac_lo= ac_hi=
2272 fi
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 fi
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 # Binary search between lo and hi bounds.
2277 while test "x$ac_lo" != "x$ac_hi"; do
2278 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2281 $4
2282 int
2283 main ()
2284 {
2285 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2286 test_array [0] = 0
2287
2288 ;
2289 return 0;
2290 }
2291 _ACEOF
2292 if ac_fn_cxx_try_compile "$LINENO"; then :
2293 ac_hi=$ac_mid
2294 else
2295 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2296 fi
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 done
2299 case $ac_lo in #((
2300 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2301 '') ac_retval=1 ;;
2302 esac
2303 else
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2306 $4
2307 static long int longval () { return $2; }
2308 static unsigned long int ulongval () { return $2; }
2309 #include <stdio.h>
2310 #include <stdlib.h>
2311 int
2312 main ()
2313 {
2314
2315 FILE *f = fopen ("conftest.val", "w");
2316 if (! f)
2317 return 1;
2318 if (($2) < 0)
2319 {
2320 long int i = longval ();
2321 if (i != ($2))
2322 return 1;
2323 fprintf (f, "%ld", i);
2324 }
2325 else
2326 {
2327 unsigned long int i = ulongval ();
2328 if (i != ($2))
2329 return 1;
2330 fprintf (f, "%lu", i);
2331 }
2332 /* Do not output a trailing newline, as this causes \r\n confusion
2333 on some platforms. */
2334 return ferror (f) || fclose (f) != 0;
2335
2336 ;
2337 return 0;
2338 }
2339 _ACEOF
2340 if ac_fn_cxx_try_run "$LINENO"; then :
2341 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2342 else
2343 ac_retval=1
2344 fi
2345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2346 conftest.$ac_objext conftest.beam conftest.$ac_ext
2347 rm -f conftest.val
2348
2349 fi
2350 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2351 return $ac_retval
2352
2353 } # ac_fn_cxx_compute_int
2354
2355 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2356 # ---------------------------------------------
2357 # Tests whether TYPE exists after having included INCLUDES, setting cache
2358 # variable VAR accordingly.
2359 ac_fn_cxx_check_type ()
2360 {
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2363 $as_echo_n "checking for $2... " >&6; }
2364 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2365 $as_echo_n "(cached) " >&6
2366 else
2367 eval "$3=no"
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2370 $4
2371 int
2372 main ()
2373 {
2374 if (sizeof ($2))
2375 return 0;
2376 ;
2377 return 0;
2378 }
2379 _ACEOF
2380 if ac_fn_cxx_try_compile "$LINENO"; then :
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2383 $4
2384 int
2385 main ()
2386 {
2387 if (sizeof (($2)))
2388 return 0;
2389 ;
2390 return 0;
2391 }
2392 _ACEOF
2393 if ac_fn_cxx_try_compile "$LINENO"; then :
2394
2395 else
2396 eval "$3=yes"
2397 fi
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 fi
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 fi
2402 eval ac_res=\$$3
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2406
2407 } # ac_fn_cxx_check_type
2408
2409 # ac_fn_c_find_intX_t LINENO BITS VAR
2410 # -----------------------------------
2411 # Finds a signed integer type with width BITS, setting cache variable VAR
2412 # accordingly.
2413 ac_fn_c_find_intX_t ()
2414 {
2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2417 $as_echo_n "checking for int$2_t... " >&6; }
2418 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2419 $as_echo_n "(cached) " >&6
2420 else
2421 eval "$3=no"
2422 for ac_type in int$2_t 'int' 'long int' \
2423 'long long int' 'short int' 'signed char'; do
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2426 $ac_includes_default
2427 int
2428 main ()
2429 {
2430 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2431 test_array [0] = 0
2432
2433 ;
2434 return 0;
2435 }
2436 _ACEOF
2437 if ac_fn_cxx_try_compile "$LINENO"; then :
2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h. */
2440 $ac_includes_default
2441 int
2442 main ()
2443 {
2444 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2445 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2446 test_array [0] = 0
2447
2448 ;
2449 return 0;
2450 }
2451 _ACEOF
2452 if ac_fn_cxx_try_compile "$LINENO"; then :
2453
2454 else
2455 case $ac_type in #(
2456 int$2_t) :
2457 eval "$3=yes" ;; #(
2458 *) :
2459 eval "$3=\$ac_type" ;;
2460 esac
2461 fi
2462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463 fi
2464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465 eval as_val=\$$3
2466 if test "x$as_val" = x""no; then :
2467
2468 else
2469 break
2470 fi
2471 done
2472 fi
2473 eval ac_res=\$$3
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2475 $as_echo "$ac_res" >&6; }
2476 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2477
2478 } # ac_fn_c_find_intX_t
2479
2480 # ac_fn_cxx_try_link LINENO
2481 # -------------------------
2482 # Try to link conftest.$ac_ext, and return whether this succeeded.
2483 ac_fn_cxx_try_link ()
2484 {
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486 rm -f conftest.$ac_objext conftest$ac_exeext
2487 if { { ac_try="$ac_link"
2488 case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2491 esac
2492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2493 $as_echo "$ac_try_echo"; } >&5
2494 (eval "$ac_link") 2>conftest.err
2495 ac_status=$?
2496 if test -s conftest.err; then
2497 grep -v '^ *+' conftest.err >conftest.er1
2498 cat conftest.er1 >&5
2499 mv -f conftest.er1 conftest.err
2500 fi
2501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2502 test $ac_status = 0; } && {
2503 test -z "$ac_cxx_werror_flag" ||
2504 test ! -s conftest.err
2505 } && test -s conftest$ac_exeext && {
2506 test "$cross_compiling" = yes ||
2507 $as_test_x conftest$ac_exeext
2508 }; then :
2509 ac_retval=0
2510 else
2511 $as_echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2513
2514 ac_retval=1
2515 fi
2516 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2517 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2518 # interfere with the next link command; also delete a directory that is
2519 # left behind by Apple's compiler. We do this before executing the actions.
2520 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2521 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2522 return $ac_retval
2523
2524 } # ac_fn_cxx_try_link
2525
2526 # ac_fn_c_find_uintX_t LINENO BITS VAR
2527 # ------------------------------------
2528 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2529 # accordingly.
2530 ac_fn_c_find_uintX_t ()
2531 {
2532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2534 $as_echo_n "checking for uint$2_t... " >&6; }
2535 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2536 $as_echo_n "(cached) " >&6
2537 else
2538 eval "$3=no"
2539 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2540 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2543 $ac_includes_default
2544 int
2545 main ()
2546 {
2547 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2548 test_array [0] = 0
2549
2550 ;
2551 return 0;
2552 }
2553 _ACEOF
2554 if ac_fn_cxx_try_compile "$LINENO"; then :
2555 case $ac_type in #(
2556 uint$2_t) :
2557 eval "$3=yes" ;; #(
2558 *) :
2559 eval "$3=\$ac_type" ;;
2560 esac
2561 fi
2562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563 eval as_val=\$$3
2564 if test "x$as_val" = x""no; then :
2565
2566 else
2567 break
2568 fi
2569 done
2570 fi
2571 eval ac_res=\$$3
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2573 $as_echo "$ac_res" >&6; }
2574 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2575
2576 } # ac_fn_c_find_uintX_t
2577
2578 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2579 # ------------------------------------------------
2580 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2581 ac_fn_cxx_check_header_preproc ()
2582 {
2583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2585 $as_echo_n "checking for $2... " >&6; }
2586 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2591 #include <$2>
2592 _ACEOF
2593 if ac_fn_cxx_try_cpp "$LINENO"; then :
2594 eval "$3=yes"
2595 else
2596 eval "$3=no"
2597 fi
2598 rm -f conftest.err conftest.$ac_ext
2599 fi
2600 eval ac_res=\$$3
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2602 $as_echo "$ac_res" >&6; }
2603 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2604
2605 } # ac_fn_cxx_check_header_preproc
2606
2607 # ac_fn_cxx_check_func LINENO FUNC VAR
2608 # ------------------------------------
2609 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2610 ac_fn_cxx_check_func ()
2611 {
2612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2614 $as_echo_n "checking for $2... " >&6; }
2615 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619 /* end confdefs.h. */
2620 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2622 #define $2 innocuous_$2
2623
2624 /* System header to define __stub macros and hopefully few prototypes,
2625 which can conflict with char $2 (); below.
2626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2627 <limits.h> exists even on freestanding compilers. */
2628
2629 #ifdef __STDC__
2630 # include <limits.h>
2631 #else
2632 # include <assert.h>
2633 #endif
2634
2635 #undef $2
2636
2637 /* Override any GCC internal prototype to avoid an error.
2638 Use char because int might match the return type of a GCC
2639 builtin and then its argument prototype would still apply. */
2640 #ifdef __cplusplus
2641 extern "C"
2642 #endif
2643 char $2 ();
2644 /* The GNU C library defines this for functions which it implements
2645 to always fail with ENOSYS. Some functions are actually named
2646 something starting with __ and the normal name is an alias. */
2647 #if defined __stub_$2 || defined __stub___$2
2648 choke me
2649 #endif
2650
2651 int
2652 main ()
2653 {
2654 return $2 ();
2655 ;
2656 return 0;
2657 }
2658 _ACEOF
2659 if ac_fn_cxx_try_link "$LINENO"; then :
2660 eval "$3=yes"
2661 else
2662 eval "$3=no"
2663 fi
2664 rm -f core conftest.err conftest.$ac_objext \
2665 conftest$ac_exeext conftest.$ac_ext
2666 fi
2667 eval ac_res=\$$3
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2669 $as_echo "$ac_res" >&6; }
2670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2671
2672 } # ac_fn_cxx_check_func
2673
2674 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2675 # --------------------------------------
2676 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2677 ac_fn_cxx_check_decl ()
2678 {
2679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2680 as_decl_name=`echo $2|sed 's/ *(.*//'`
2681 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2683 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2684 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688 /* end confdefs.h. */
2689 $4
2690 int
2691 main ()
2692 {
2693 #ifndef $as_decl_name
2694 #ifdef __cplusplus
2695 (void) $as_decl_use;
2696 #else
2697 (void) $as_decl_name;
2698 #endif
2699 #endif
2700
2701 ;
2702 return 0;
2703 }
2704 _ACEOF
2705 if ac_fn_cxx_try_compile "$LINENO"; then :
2706 eval "$3=yes"
2707 else
2708 eval "$3=no"
2709 fi
2710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 fi
2712 eval ac_res=\$$3
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2714 $as_echo "$ac_res" >&6; }
2715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2716
2717 } # ac_fn_cxx_check_decl
2718
2719 # ac_fn_c_try_link LINENO
2720 # -----------------------
2721 # Try to link conftest.$ac_ext, and return whether this succeeded.
2722 ac_fn_c_try_link ()
2723 {
2724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2725 rm -f conftest.$ac_objext conftest$ac_exeext
2726 if { { ac_try="$ac_link"
2727 case "(($ac_try" in
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2730 esac
2731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2732 $as_echo "$ac_try_echo"; } >&5
2733 (eval "$ac_link") 2>conftest.err
2734 ac_status=$?
2735 if test -s conftest.err; then
2736 grep -v '^ *+' conftest.err >conftest.er1
2737 cat conftest.er1 >&5
2738 mv -f conftest.er1 conftest.err
2739 fi
2740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2741 test $ac_status = 0; } && {
2742 test -z "$ac_c_werror_flag" ||
2743 test ! -s conftest.err
2744 } && test -s conftest$ac_exeext && {
2745 test "$cross_compiling" = yes ||
2746 $as_test_x conftest$ac_exeext
2747 }; then :
2748 ac_retval=0
2749 else
2750 $as_echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2752
2753 ac_retval=1
2754 fi
2755 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2756 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2757 # interfere with the next link command; also delete a directory that is
2758 # left behind by Apple's compiler. We do this before executing the actions.
2759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2761 return $ac_retval
2762
2763 } # ac_fn_c_try_link
2764
2765 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2766 # ----------------------------------------------
2767 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2768 ac_fn_c_check_header_preproc ()
2769 {
2770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2772 $as_echo_n "checking for $2... " >&6; }
2773 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2774 $as_echo_n "(cached) " >&6
2775 else
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2778 #include <$2>
2779 _ACEOF
2780 if ac_fn_c_try_cpp "$LINENO"; then :
2781 eval "$3=yes"
2782 else
2783 eval "$3=no"
2784 fi
2785 rm -f conftest.err conftest.$ac_ext
2786 fi
2787 eval ac_res=\$$3
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2789 $as_echo "$ac_res" >&6; }
2790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2791
2792 } # ac_fn_c_check_header_preproc
2793
2794 # ac_fn_c_check_func LINENO FUNC VAR
2795 # ----------------------------------
2796 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2797 ac_fn_c_check_func ()
2798 {
2799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2801 $as_echo_n "checking for $2... " >&6; }
2802 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806 /* end confdefs.h. */
2807 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2809 #define $2 innocuous_$2
2810
2811 /* System header to define __stub macros and hopefully few prototypes,
2812 which can conflict with char $2 (); below.
2813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2814 <limits.h> exists even on freestanding compilers. */
2815
2816 #ifdef __STDC__
2817 # include <limits.h>
2818 #else
2819 # include <assert.h>
2820 #endif
2821
2822 #undef $2
2823
2824 /* Override any GCC internal prototype to avoid an error.
2825 Use char because int might match the return type of a GCC
2826 builtin and then its argument prototype would still apply. */
2827 #ifdef __cplusplus
2828 extern "C"
2829 #endif
2830 char $2 ();
2831 /* The GNU C library defines this for functions which it implements
2832 to always fail with ENOSYS. Some functions are actually named
2833 something starting with __ and the normal name is an alias. */
2834 #if defined __stub_$2 || defined __stub___$2
2835 choke me
2836 #endif
2837
2838 int
2839 main ()
2840 {
2841 return $2 ();
2842 ;
2843 return 0;
2844 }
2845 _ACEOF
2846 if ac_fn_c_try_link "$LINENO"; then :
2847 eval "$3=yes"
2848 else
2849 eval "$3=no"
2850 fi
2851 rm -f core conftest.err conftest.$ac_objext \
2852 conftest$ac_exeext conftest.$ac_ext
2853 fi
2854 eval ac_res=\$$3
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2856 $as_echo "$ac_res" >&6; }
2857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2858
2859 } # ac_fn_c_check_func
2860 cat >config.log <<_ACEOF
2861 This file contains any messages produced by compilers while
2862 running configure, to aid debugging if configure makes a mistake.
2863
2864 It was created by $as_me, which was
2865 generated by GNU Autoconf 2.64. Invocation command line was
2866
2867 $ $0 $@
2868
2869 _ACEOF
2870 exec 5>>config.log
2871 {
2872 cat <<_ASUNAME
2873 ## --------- ##
2874 ## Platform. ##
2875 ## --------- ##
2876
2877 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2878 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2879 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2880 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2881 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2882
2883 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2884 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2885
2886 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2887 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2888 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2889 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2890 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2891 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2892 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2893
2894 _ASUNAME
2895
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 $as_echo "PATH: $as_dir"
2902 done
2903 IFS=$as_save_IFS
2904
2905 } >&5
2906
2907 cat >&5 <<_ACEOF
2908
2909
2910 ## ----------- ##
2911 ## Core tests. ##
2912 ## ----------- ##
2913
2914 _ACEOF
2915
2916
2917 # Keep a trace of the command line.
2918 # Strip out --no-create and --no-recursion so they do not pile up.
2919 # Strip out --silent because we don't want to record it for future runs.
2920 # Also quote any args containing shell meta-characters.
2921 # Make two passes to allow for proper duplicate-argument suppression.
2922 ac_configure_args=
2923 ac_configure_args0=
2924 ac_configure_args1=
2925 ac_must_keep_next=false
2926 for ac_pass in 1 2
2927 do
2928 for ac_arg
2929 do
2930 case $ac_arg in
2931 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2933 | -silent | --silent | --silen | --sile | --sil)
2934 continue ;;
2935 *\'*)
2936 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2937 esac
2938 case $ac_pass in
2939 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2940 2)
2941 as_fn_append ac_configure_args1 " '$ac_arg'"
2942 if test $ac_must_keep_next = true; then
2943 ac_must_keep_next=false # Got value, back to normal.
2944 else
2945 case $ac_arg in
2946 *=* | --config-cache | -C | -disable-* | --disable-* \
2947 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2948 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2949 | -with-* | --with-* | -without-* | --without-* | --x)
2950 case "$ac_configure_args0 " in
2951 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2952 esac
2953 ;;
2954 -* ) ac_must_keep_next=true ;;
2955 esac
2956 fi
2957 as_fn_append ac_configure_args " '$ac_arg'"
2958 ;;
2959 esac
2960 done
2961 done
2962 { ac_configure_args0=; unset ac_configure_args0;}
2963 { ac_configure_args1=; unset ac_configure_args1;}
2964
2965 # When interrupted or exit'd, cleanup temporary files, and complete
2966 # config.log. We remove comments because anyway the quotes in there
2967 # would cause problems or look ugly.
2968 # WARNING: Use '\'' to represent an apostrophe within the trap.
2969 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2970 trap 'exit_status=$?
2971 # Save into config.log some information that might help in debugging.
2972 {
2973 echo
2974
2975 cat <<\_ASBOX
2976 ## ---------------- ##
2977 ## Cache variables. ##
2978 ## ---------------- ##
2979 _ASBOX
2980 echo
2981 # The following way of writing the cache mishandles newlines in values,
2982 (
2983 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2984 eval ac_val=\$$ac_var
2985 case $ac_val in #(
2986 *${as_nl}*)
2987 case $ac_var in #(
2988 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2989 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2990 esac
2991 case $ac_var in #(
2992 _ | IFS | as_nl) ;; #(
2993 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2994 *) { eval $ac_var=; unset $ac_var;} ;;
2995 esac ;;
2996 esac
2997 done
2998 (set) 2>&1 |
2999 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3000 *${as_nl}ac_space=\ *)
3001 sed -n \
3002 "s/'\''/'\''\\\\'\'''\''/g;
3003 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3004 ;; #(
3005 *)
3006 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3007 ;;
3008 esac |
3009 sort
3010 )
3011 echo
3012
3013 cat <<\_ASBOX
3014 ## ----------------- ##
3015 ## Output variables. ##
3016 ## ----------------- ##
3017 _ASBOX
3018 echo
3019 for ac_var in $ac_subst_vars
3020 do
3021 eval ac_val=\$$ac_var
3022 case $ac_val in
3023 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3024 esac
3025 $as_echo "$ac_var='\''$ac_val'\''"
3026 done | sort
3027 echo
3028
3029 if test -n "$ac_subst_files"; then
3030 cat <<\_ASBOX
3031 ## ------------------- ##
3032 ## File substitutions. ##
3033 ## ------------------- ##
3034 _ASBOX
3035 echo
3036 for ac_var in $ac_subst_files
3037 do
3038 eval ac_val=\$$ac_var
3039 case $ac_val in
3040 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3041 esac
3042 $as_echo "$ac_var='\''$ac_val'\''"
3043 done | sort
3044 echo
3045 fi
3046
3047 if test -s confdefs.h; then
3048 cat <<\_ASBOX
3049 ## ----------- ##
3050 ## confdefs.h. ##
3051 ## ----------- ##
3052 _ASBOX
3053 echo
3054 cat confdefs.h
3055 echo
3056 fi
3057 test "$ac_signal" != 0 &&
3058 $as_echo "$as_me: caught signal $ac_signal"
3059 $as_echo "$as_me: exit $exit_status"
3060 } >&5
3061 rm -f core *.core core.conftest.* &&
3062 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3063 exit $exit_status
3064 ' 0
3065 for ac_signal in 1 2 13 15; do
3066 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3067 done
3068 ac_signal=0
3069
3070 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3071 rm -f -r conftest* confdefs.h
3072
3073 $as_echo "/* confdefs.h */" > confdefs.h
3074
3075 # Predefined preprocessor variables.
3076
3077 cat >>confdefs.h <<_ACEOF
3078 #define PACKAGE_NAME "$PACKAGE_NAME"
3079 _ACEOF
3080
3081 cat >>confdefs.h <<_ACEOF
3082 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3083 _ACEOF
3084
3085 cat >>confdefs.h <<_ACEOF
3086 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3087 _ACEOF
3088
3089 cat >>confdefs.h <<_ACEOF
3090 #define PACKAGE_STRING "$PACKAGE_STRING"
3091 _ACEOF
3092
3093 cat >>confdefs.h <<_ACEOF
3094 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3095 _ACEOF
3096
3097 cat >>confdefs.h <<_ACEOF
3098 #define PACKAGE_URL "$PACKAGE_URL"
3099 _ACEOF
3100
3101
3102 # Let the site file select an alternate cache file if it wants to.
3103 # Prefer an explicitly selected file to automatically selected ones.
3104 ac_site_file1=NONE
3105 ac_site_file2=NONE
3106 if test -n "$CONFIG_SITE"; then
3107 ac_site_file1=$CONFIG_SITE
3108 elif test "x$prefix" != xNONE; then
3109 ac_site_file1=$prefix/share/config.site
3110 ac_site_file2=$prefix/etc/config.site
3111 else
3112 ac_site_file1=$ac_default_prefix/share/config.site
3113 ac_site_file2=$ac_default_prefix/etc/config.site
3114 fi
3115 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3116 do
3117 test "x$ac_site_file" = xNONE && continue
3118 if test -r "$ac_site_file"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3120 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3121 sed 's/^/| /' "$ac_site_file" >&5
3122 . "$ac_site_file"
3123 fi
3124 done
3125
3126 if test -r "$cache_file"; then
3127 # Some versions of bash will fail to source /dev/null (special
3128 # files actually), so we avoid doing that.
3129 if test -f "$cache_file"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3131 $as_echo "$as_me: loading cache $cache_file" >&6;}
3132 case $cache_file in
3133 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3134 *) . "./$cache_file";;
3135 esac
3136 fi
3137 else
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3139 $as_echo "$as_me: creating cache $cache_file" >&6;}
3140 >$cache_file
3141 fi
3142
3143 # Check that the precious variables saved in the cache have kept the same
3144 # value.
3145 ac_cache_corrupted=false
3146 for ac_var in $ac_precious_vars; do
3147 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3148 eval ac_new_set=\$ac_env_${ac_var}_set
3149 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3150 eval ac_new_val=\$ac_env_${ac_var}_value
3151 case $ac_old_set,$ac_new_set in
3152 set,)
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3154 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3155 ac_cache_corrupted=: ;;
3156 ,set)
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3158 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3159 ac_cache_corrupted=: ;;
3160 ,);;
3161 *)
3162 if test "x$ac_old_val" != "x$ac_new_val"; then
3163 # differences in whitespace do not lead to failure.
3164 ac_old_val_w=`echo x $ac_old_val`
3165 ac_new_val_w=`echo x $ac_new_val`
3166 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3168 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3169 ac_cache_corrupted=:
3170 else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3172 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3173 eval $ac_var=\$ac_old_val
3174 fi
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3176 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3178 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3179 fi;;
3180 esac
3181 # Pass precious variables to config.status.
3182 if test "$ac_new_set" = set; then
3183 case $ac_new_val in
3184 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3185 *) ac_arg=$ac_var=$ac_new_val ;;
3186 esac
3187 case " $ac_configure_args " in
3188 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3189 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3190 esac
3191 fi
3192 done
3193 if $ac_cache_corrupted; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3197 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3198 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3199 fi
3200 ## -------------------- ##
3201 ## Main body of script. ##
3202 ## -------------------- ##
3203
3204 ac_ext=c
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209
3210
3211
3212
3213
3214
3215 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3216
3217
3218 gcc_version=`cat $srcdir/BASE-VER`
3219
3220 # Determine the host, build, and target systems
3221 ac_aux_dir=
3222 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3223 for ac_t in install-sh install.sh shtool; do
3224 if test -f "$ac_dir/$ac_t"; then
3225 ac_aux_dir=$ac_dir
3226 ac_install_sh="$ac_aux_dir/$ac_t -c"
3227 break 2
3228 fi
3229 done
3230 done
3231 if test -z "$ac_aux_dir"; then
3232 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3233 fi
3234
3235 # These three variables are undocumented and unsupported,
3236 # and are intended to be withdrawn in a future Autoconf release.
3237 # They can cause serious problems if a builder's source tree is in a directory
3238 # whose full name contains unusual characters.
3239 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3240 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3241 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3242
3243
3244 # Make sure we can run config.sub.
3245 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3246 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3247
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3249 $as_echo_n "checking build system type... " >&6; }
3250 if test "${ac_cv_build+set}" = set; then :
3251 $as_echo_n "(cached) " >&6
3252 else
3253 ac_build_alias=$build_alias
3254 test "x$ac_build_alias" = x &&
3255 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3256 test "x$ac_build_alias" = x &&
3257 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3258 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3259 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3260
3261 fi
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3263 $as_echo "$ac_cv_build" >&6; }
3264 case $ac_cv_build in
3265 *-*-*) ;;
3266 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3267 esac
3268 build=$ac_cv_build
3269 ac_save_IFS=$IFS; IFS='-'
3270 set x $ac_cv_build
3271 shift
3272 build_cpu=$1
3273 build_vendor=$2
3274 shift; shift
3275 # Remember, the first character of IFS is used to create $*,
3276 # except with old shells:
3277 build_os=$*
3278 IFS=$ac_save_IFS
3279 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3280
3281
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3283 $as_echo_n "checking host system type... " >&6; }
3284 if test "${ac_cv_host+set}" = set; then :
3285 $as_echo_n "(cached) " >&6
3286 else
3287 if test "x$host_alias" = x; then
3288 ac_cv_host=$ac_cv_build
3289 else
3290 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3291 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3292 fi
3293
3294 fi
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3296 $as_echo "$ac_cv_host" >&6; }
3297 case $ac_cv_host in
3298 *-*-*) ;;
3299 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3300 esac
3301 host=$ac_cv_host
3302 ac_save_IFS=$IFS; IFS='-'
3303 set x $ac_cv_host
3304 shift
3305 host_cpu=$1
3306 host_vendor=$2
3307 shift; shift
3308 # Remember, the first character of IFS is used to create $*,
3309 # except with old shells:
3310 host_os=$*
3311 IFS=$ac_save_IFS
3312 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3313
3314
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3316 $as_echo_n "checking target system type... " >&6; }
3317 if test "${ac_cv_target+set}" = set; then :
3318 $as_echo_n "(cached) " >&6
3319 else
3320 if test "x$target_alias" = x; then
3321 ac_cv_target=$ac_cv_host
3322 else
3323 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3324 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3325 fi
3326
3327 fi
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3329 $as_echo "$ac_cv_target" >&6; }
3330 case $ac_cv_target in
3331 *-*-*) ;;
3332 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3333 esac
3334 target=$ac_cv_target
3335 ac_save_IFS=$IFS; IFS='-'
3336 set x $ac_cv_target
3337 shift
3338 target_cpu=$1
3339 target_vendor=$2
3340 shift; shift
3341 # Remember, the first character of IFS is used to create $*,
3342 # except with old shells:
3343 target_os=$*
3344 IFS=$ac_save_IFS
3345 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3346
3347
3348 # The aliases save the names the user supplied, while $host etc.
3349 # will get canonicalized.
3350 test -n "$target_alias" &&
3351 test "$program_prefix$program_suffix$program_transform_name" = \
3352 NONENONEs,x,x, &&
3353 program_prefix=${target_alias}-
3354
3355 # Determine the noncanonical host name, for Ada.
3356 case ${build_alias} in
3357 "") build_noncanonical=${build} ;;
3358 *) build_noncanonical=${build_alias} ;;
3359 esac
3360
3361 case ${host_alias} in
3362 "") host_noncanonical=${build_noncanonical} ;;
3363 *) host_noncanonical=${host_alias} ;;
3364 esac
3365
3366
3367
3368
3369 # Determine the noncanonical target name, for directory use.
3370 case ${target_alias} in
3371 "") target_noncanonical=${host_noncanonical} ;;
3372 *) target_noncanonical=${target_alias} ;;
3373 esac
3374
3375
3376
3377
3378 # Used for constructing correct paths for offload compilers.
3379 real_target_noncanonical=${target_noncanonical}
3380 accel_dir_suffix=
3381
3382 # Determine the target- and build-specific subdirectories
3383
3384 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3385 # have matching libraries, they should use host libraries: Makefile.tpl
3386 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3387 # However, they still use the build modules, because the corresponding
3388 # host modules (e.g. bison) are only built for the host when bootstrap
3389 # finishes. So:
3390 # - build_subdir is where we find build modules, and never changes.
3391 # - build_libsubdir is where we find build libraries, and can be overridden.
3392
3393 # Prefix 'build-' so this never conflicts with target_subdir.
3394 build_subdir="build-${build_noncanonical}"
3395
3396 # Check whether --with-build-libsubdir was given.
3397 if test "${with_build_libsubdir+set}" = set; then :
3398 withval=$with_build_libsubdir; build_libsubdir="$withval"
3399 else
3400 build_libsubdir="$build_subdir"
3401 fi
3402
3403 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3404 if ( test $srcdir = . && test -d gcc ) \
3405 || test -d $srcdir/../host-${host_noncanonical}; then
3406 host_subdir="host-${host_noncanonical}"
3407 else
3408 host_subdir=.
3409 fi
3410 # No prefix.
3411 target_subdir=${target_noncanonical}
3412
3413
3414 # Set program_transform_name
3415 test "$program_prefix" != NONE &&
3416 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3417 # Use a double $ so make ignores it.
3418 test "$program_suffix" != NONE &&
3419 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3420 # Double any \ or $.
3421 # By default was `s,x,x', remove it if useless.
3422 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3423 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3424
3425
3426 # Check for bogus environment variables.
3427 # Test if LIBRARY_PATH contains the notation for the current directory
3428 # since this would lead to problems installing/building glibc.
3429 # LIBRARY_PATH contains the current directory if one of the following
3430 # is true:
3431 # - one of the terminals (":" and ";") is the first or last sign
3432 # - two terminals occur directly after each other
3433 # - the path contains an element with a dot in it
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3435 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3436 case ${LIBRARY_PATH} in
3437 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3438 library_path_setting="contains current directory"
3439 ;;
3440 *)
3441 library_path_setting="ok"
3442 ;;
3443 esac
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3445 $as_echo "$library_path_setting" >&6; }
3446 if test "$library_path_setting" != "ok"; then
3447 as_fn_error "
3448 *** LIBRARY_PATH shouldn't contain the current directory when
3449 *** building gcc. Please change the environment variable
3450 *** and run configure again." "$LINENO" 5
3451 fi
3452
3453 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3454 # since this would lead to problems installing/building glibc.
3455 # GCC_EXEC_PREFIX contains the current directory if one of the following
3456 # is true:
3457 # - one of the terminals (":" and ";") is the first or last sign
3458 # - two terminals occur directly after each other
3459 # - the path contains an element with a dot in it
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3461 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3462 case ${GCC_EXEC_PREFIX} in
3463 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3464 gcc_exec_prefix_setting="contains current directory"
3465 ;;
3466 *)
3467 gcc_exec_prefix_setting="ok"
3468 ;;
3469 esac
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3471 $as_echo "$gcc_exec_prefix_setting" >&6; }
3472 if test "$gcc_exec_prefix_setting" != "ok"; then
3473 as_fn_error "
3474 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3475 *** building gcc. Please change the environment variable
3476 *** and run configure again." "$LINENO" 5
3477 fi
3478
3479 # -----------
3480 # Directories
3481 # -----------
3482
3483 # Specify the local prefix
3484 local_prefix=
3485
3486 # Check whether --with-local-prefix was given.
3487 if test "${with_local_prefix+set}" = set; then :
3488 withval=$with_local_prefix; case "${withval}" in
3489 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3490 no) ;;
3491 *) local_prefix=$with_local_prefix ;;
3492 esac
3493 fi
3494
3495
3496 # Default local prefix if it is empty
3497 if test x$local_prefix = x; then
3498 local_prefix=/usr/local
3499 fi
3500
3501
3502 # Check whether --with-native-system-header-dir was given.
3503 if test "${with_native_system_header_dir+set}" = set; then :
3504 withval=$with_native_system_header_dir;
3505 case ${with_native_system_header_dir} in
3506 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3507 /* | [A-Za-z]:[\\/]*) ;;
3508 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3509 esac
3510 configured_native_system_header_dir="${withval}"
3511
3512 else
3513 configured_native_system_header_dir=
3514 fi
3515
3516
3517
3518 # Check whether --with-build-sysroot was given.
3519 if test "${with_build_sysroot+set}" = set; then :
3520 withval=$with_build_sysroot; if test x"$withval" != x ; then
3521 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3522 fi
3523 else
3524 SYSROOT_CFLAGS_FOR_TARGET=
3525 fi
3526
3527
3528
3529 if test "x$prefix" = xNONE; then
3530 test_prefix=/usr/local
3531 else
3532 test_prefix=$prefix
3533 fi
3534 if test "x$exec_prefix" = xNONE; then
3535 test_exec_prefix=$test_prefix
3536 else
3537 test_exec_prefix=$exec_prefix
3538 fi
3539
3540
3541 # Check whether --with-sysroot was given.
3542 if test "${with_sysroot+set}" = set; then :
3543 withval=$with_sysroot;
3544 case ${with_sysroot} in
3545 /) ;;
3546 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3547 esac
3548 case ${with_sysroot} in
3549 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3550 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3551 esac
3552
3553 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3554 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3555
3556 case ${TARGET_SYSTEM_ROOT} in
3557 "${test_prefix}"|"${test_prefix}/"*|\
3558 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3559 '${prefix}'|'${prefix}/'*|\
3560 '${exec_prefix}'|'${exec_prefix}/'*)
3561 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3562 TARGET_SYSTEM_ROOT_DEFINE="$t"
3563 ;;
3564 esac
3565
3566 else
3567
3568 TARGET_SYSTEM_ROOT=
3569 TARGET_SYSTEM_ROOT_DEFINE=
3570 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3571
3572 fi
3573
3574
3575
3576
3577
3578 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3579 # passed in by the toplevel make and thus we'd get different behavior
3580 # depending on where we built the sources.
3581 gcc_gxx_include_dir=
3582 # Specify the g++ header file directory
3583
3584 # Check whether --with-gxx-include-dir was given.
3585 if test "${with_gxx_include_dir+set}" = set; then :
3586 withval=$with_gxx_include_dir; case "${withval}" in
3587 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3588 no) ;;
3589 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3590 esac
3591 fi
3592
3593
3594 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3595 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3596 # relative to the sysroot.
3597 gcc_gxx_include_dir_add_sysroot=0
3598
3599 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3600 if test x${gcc_gxx_include_dir} = x; then
3601 if test x${enable_version_specific_runtime_libs} = xyes; then
3602 gcc_gxx_include_dir='${libsubdir}/include/c++'
3603 else
3604 libstdcxx_incdir='include/c++/$(version)'
3605 if test x$host != x$target; then
3606 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3607 fi
3608 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3609 fi
3610 elif test "${with_sysroot+set}" = set; then
3611 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3612 if test "${gcc_gxx_without_sysroot}"; then
3613 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3614 gcc_gxx_include_dir_add_sysroot=1
3615 fi
3616 fi
3617
3618
3619 # Check whether --with-cpp_install_dir was given.
3620 if test "${with_cpp_install_dir+set}" = set; then :
3621 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3622 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3623 elif test x$withval != xno; then
3624 cpp_install_dir=$withval
3625 fi
3626 fi
3627
3628
3629 # We would like to our source tree to be readonly. However when releases or
3630 # pre-releases are generated, the flex/bison generated files as well as the
3631 # various formats of manuals need to be included along with the rest of the
3632 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3633 # just that.
3634
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3636 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3637 # Check whether --enable-generated-files-in-srcdir was given.
3638 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3639 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3640 else
3641 generated_files_in_srcdir=no
3642 fi
3643
3644
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3646 $as_echo "$generated_files_in_srcdir" >&6; }
3647
3648 if test "$generated_files_in_srcdir" = "yes"; then
3649 GENINSRC=''
3650 else
3651 GENINSRC='#'
3652 fi
3653
3654
3655 # -------------------
3656 # Find default linker
3657 # -------------------
3658
3659 # With GNU ld
3660
3661 # Check whether --with-gnu-ld was given.
3662 if test "${with_gnu_ld+set}" = set; then :
3663 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3664 else
3665 gnu_ld_flag=no
3666 fi
3667
3668
3669 case $target in
3670 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3671 *) ld64_flag=no;;
3672 esac
3673
3674 # With pre-defined ld
3675
3676 # Check whether --with-ld was given.
3677 if test "${with_ld+set}" = set; then :
3678 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3679 fi
3680
3681 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3682 if test ! -x "$DEFAULT_LINKER"; then
3683 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3684 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3685 gnu_ld_flag=yes
3686 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3687 ld64_flag=yes
3688 fi
3689
3690 cat >>confdefs.h <<_ACEOF
3691 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3692 _ACEOF
3693
3694 fi
3695
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3697 $as_echo_n "checking whether a default linker was specified... " >&6; }
3698 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3699 if test x"$gnu_ld_flag" = x"no"; then
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3701 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3702 else
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3704 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3705 fi
3706 else
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3709 fi
3710
3711 # With demangler in GNU ld
3712
3713 # Check whether --with-demangler-in-ld was given.
3714 if test "${with_demangler_in_ld+set}" = set; then :
3715 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3716 else
3717 demangler_in_ld=yes
3718 fi
3719
3720
3721 # ----------------------
3722 # Find default assembler
3723 # ----------------------
3724
3725 # With GNU as
3726
3727 # Check whether --with-gnu-as was given.
3728 if test "${with_gnu_as+set}" = set; then :
3729 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3730 else
3731 gas_flag=no
3732 fi
3733
3734
3735
3736 # Check whether --with-as was given.
3737 if test "${with_as+set}" = set; then :
3738 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3739 fi
3740
3741 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3742 if test ! -x "$DEFAULT_ASSEMBLER"; then
3743 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3744 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3745 gas_flag=yes
3746 fi
3747
3748 cat >>confdefs.h <<_ACEOF
3749 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3750 _ACEOF
3751
3752 fi
3753
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3755 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3756 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3757 if test x"$gas_flag" = x"no"; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3759 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3760 else
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3762 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3763 fi
3764 else
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3767 fi
3768
3769 # ---------------
3770 # Find C compiler
3771 # ---------------
3772
3773 # If a non-executable a.out is present (e.g. created by GNU as above even if
3774 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3775 # file, even when creating an executable, so an execution test fails.
3776 # Remove possible default executable files to avoid this.
3777 #
3778 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3779 # Autoconf includes it.
3780 rm -f a.out a.exe b.out
3781
3782 # Find the native compiler
3783 ac_ext=c
3784 ac_cpp='$CPP $CPPFLAGS'
3785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3788 if test -n "$ac_tool_prefix"; then
3789 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3790 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if test "${ac_cv_prog_CC+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 if test -n "$CC"; then
3797 ac_cv_prog_CC="$CC" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3801 do
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 break 2
3809 fi
3810 done
3811 done
3812 IFS=$as_save_IFS
3813
3814 fi
3815 fi
3816 CC=$ac_cv_prog_CC
3817 if test -n "$CC"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3819 $as_echo "$CC" >&6; }
3820 else
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3823 fi
3824
3825
3826 fi
3827 if test -z "$ac_cv_prog_CC"; then
3828 ac_ct_CC=$CC
3829 # Extract the first word of "gcc", so it can be a program name with args.
3830 set dummy gcc; ac_word=$2
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 $as_echo_n "checking for $ac_word... " >&6; }
3833 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3834 $as_echo_n "(cached) " >&6
3835 else
3836 if test -n "$ac_ct_CC"; then
3837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3841 do
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3846 ac_cv_prog_ac_ct_CC="gcc"
3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 break 2
3849 fi
3850 done
3851 done
3852 IFS=$as_save_IFS
3853
3854 fi
3855 fi
3856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3857 if test -n "$ac_ct_CC"; then
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3859 $as_echo "$ac_ct_CC" >&6; }
3860 else
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 fi
3864
3865 if test "x$ac_ct_CC" = x; then
3866 CC=""
3867 else
3868 case $cross_compiling:$ac_tool_warned in
3869 yes:)
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3872 ac_tool_warned=yes ;;
3873 esac
3874 CC=$ac_ct_CC
3875 fi
3876 else
3877 CC="$ac_cv_prog_CC"
3878 fi
3879
3880 if test -z "$CC"; then
3881 if test -n "$ac_tool_prefix"; then
3882 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3883 set dummy ${ac_tool_prefix}cc; ac_word=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if test "${ac_cv_prog_CC+set}" = set; then :
3887 $as_echo_n "(cached) " >&6
3888 else
3889 if test -n "$CC"; then
3890 ac_cv_prog_CC="$CC" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3899 ac_cv_prog_CC="${ac_tool_prefix}cc"
3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3902 fi
3903 done
3904 done
3905 IFS=$as_save_IFS
3906
3907 fi
3908 fi
3909 CC=$ac_cv_prog_CC
3910 if test -n "$CC"; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3912 $as_echo "$CC" >&6; }
3913 else
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3916 fi
3917
3918
3919 fi
3920 fi
3921 if test -z "$CC"; then
3922 # Extract the first word of "cc", so it can be a program name with args.
3923 set dummy cc; ac_word=$2
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925 $as_echo_n "checking for $ac_word... " >&6; }
3926 if test "${ac_cv_prog_CC+set}" = set; then :
3927 $as_echo_n "(cached) " >&6
3928 else
3929 if test -n "$CC"; then
3930 ac_cv_prog_CC="$CC" # Let the user override the test.
3931 else
3932 ac_prog_rejected=no
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH
3935 do
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3940 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3941 ac_prog_rejected=yes
3942 continue
3943 fi
3944 ac_cv_prog_CC="cc"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3947 fi
3948 done
3949 done
3950 IFS=$as_save_IFS
3951
3952 if test $ac_prog_rejected = yes; then
3953 # We found a bogon in the path, so make sure we never use it.
3954 set dummy $ac_cv_prog_CC
3955 shift
3956 if test $# != 0; then
3957 # We chose a different compiler from the bogus one.
3958 # However, it has the same basename, so the bogon will be chosen
3959 # first if we set CC to just the basename; use the full file name.
3960 shift
3961 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3962 fi
3963 fi
3964 fi
3965 fi
3966 CC=$ac_cv_prog_CC
3967 if test -n "$CC"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3969 $as_echo "$CC" >&6; }
3970 else
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3973 fi
3974
3975
3976 fi
3977 if test -z "$CC"; then
3978 if test -n "$ac_tool_prefix"; then
3979 for ac_prog in cl.exe
3980 do
3981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 $as_echo_n "checking for $ac_word... " >&6; }
3985 if test "${ac_cv_prog_CC+set}" = set; then :
3986 $as_echo_n "(cached) " >&6
3987 else
3988 if test -n "$CC"; then
3989 ac_cv_prog_CC="$CC" # Let the user override the test.
3990 else
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3993 do
3994 IFS=$as_save_IFS
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 break 2
4001 fi
4002 done
4003 done
4004 IFS=$as_save_IFS
4005
4006 fi
4007 fi
4008 CC=$ac_cv_prog_CC
4009 if test -n "$CC"; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4011 $as_echo "$CC" >&6; }
4012 else
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4015 fi
4016
4017
4018 test -n "$CC" && break
4019 done
4020 fi
4021 if test -z "$CC"; then
4022 ac_ct_CC=$CC
4023 for ac_prog in cl.exe
4024 do
4025 # Extract the first word of "$ac_prog", so it can be a program name with args.
4026 set dummy $ac_prog; ac_word=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 $as_echo_n "checking for $ac_word... " >&6; }
4029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4030 $as_echo_n "(cached) " >&6
4031 else
4032 if test -n "$ac_ct_CC"; then
4033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4034 else
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4042 ac_cv_prog_ac_ct_CC="$ac_prog"
4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 break 2
4045 fi
4046 done
4047 done
4048 IFS=$as_save_IFS
4049
4050 fi
4051 fi
4052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4053 if test -n "$ac_ct_CC"; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4055 $as_echo "$ac_ct_CC" >&6; }
4056 else
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 $as_echo "no" >&6; }
4059 fi
4060
4061
4062 test -n "$ac_ct_CC" && break
4063 done
4064
4065 if test "x$ac_ct_CC" = x; then
4066 CC=""
4067 else
4068 case $cross_compiling:$ac_tool_warned in
4069 yes:)
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4072 ac_tool_warned=yes ;;
4073 esac
4074 CC=$ac_ct_CC
4075 fi
4076 fi
4077
4078 fi
4079
4080
4081 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4083 as_fn_error "no acceptable C compiler found in \$PATH
4084 See \`config.log' for more details." "$LINENO" 5; }
4085
4086 # Provide some information about the compiler.
4087 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4088 set X $ac_compile
4089 ac_compiler=$2
4090 for ac_option in --version -v -V -qversion; do
4091 { { ac_try="$ac_compiler $ac_option >&5"
4092 case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095 esac
4096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4097 $as_echo "$ac_try_echo"; } >&5
4098 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4099 ac_status=$?
4100 if test -s conftest.err; then
4101 sed '10a\
4102 ... rest of stderr output deleted ...
4103 10q' conftest.err >conftest.er1
4104 cat conftest.er1 >&5
4105 rm -f conftest.er1 conftest.err
4106 fi
4107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108 test $ac_status = 0; }
4109 done
4110
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113
4114 int
4115 main ()
4116 {
4117
4118 ;
4119 return 0;
4120 }
4121 _ACEOF
4122 ac_clean_files_save=$ac_clean_files
4123 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4124 # Try to create an executable without -o first, disregard a.out.
4125 # It will help us diagnose broken compilers, and finding out an intuition
4126 # of exeext.
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4128 $as_echo_n "checking for C compiler default output file name... " >&6; }
4129 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4130
4131 # The possible output files:
4132 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4133
4134 ac_rmfiles=
4135 for ac_file in $ac_files
4136 do
4137 case $ac_file in
4138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4139 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4140 esac
4141 done
4142 rm -f $ac_rmfiles
4143
4144 if { { ac_try="$ac_link_default"
4145 case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148 esac
4149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4150 $as_echo "$ac_try_echo"; } >&5
4151 (eval "$ac_link_default") 2>&5
4152 ac_status=$?
4153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4154 test $ac_status = 0; }; then :
4155 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4156 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4157 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4158 # so that the user can short-circuit this test for compilers unknown to
4159 # Autoconf.
4160 for ac_file in $ac_files ''
4161 do
4162 test -f "$ac_file" || continue
4163 case $ac_file in
4164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4165 ;;
4166 [ab].out )
4167 # We found the default executable, but exeext='' is most
4168 # certainly right.
4169 break;;
4170 *.* )
4171 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4172 then :; else
4173 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4174 fi
4175 # We set ac_cv_exeext here because the later test for it is not
4176 # safe: cross compilers may not add the suffix if given an `-o'
4177 # argument, so we may need to know it at that point already.
4178 # Even if this section looks crufty: it has the advantage of
4179 # actually working.
4180 break;;
4181 * )
4182 break;;
4183 esac
4184 done
4185 test "$ac_cv_exeext" = no && ac_cv_exeext=
4186
4187 else
4188 ac_file=''
4189 fi
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4191 $as_echo "$ac_file" >&6; }
4192 if test -z "$ac_file"; then :
4193 $as_echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4195
4196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4198 { as_fn_set_status 77
4199 as_fn_error "C compiler cannot create executables
4200 See \`config.log' for more details." "$LINENO" 5; }; }
4201 fi
4202 ac_exeext=$ac_cv_exeext
4203
4204 # Check that the compiler produces executables we can run. If not, either
4205 # the compiler is broken, or we cross compile.
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4207 $as_echo_n "checking whether the C compiler works... " >&6; }
4208 # If not cross compiling, check that we can run a simple program.
4209 if test "$cross_compiling" != yes; then
4210 if { ac_try='./$ac_file'
4211 { { case "(($ac_try" in
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4214 esac
4215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4216 $as_echo "$ac_try_echo"; } >&5
4217 (eval "$ac_try") 2>&5
4218 ac_status=$?
4219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4220 test $ac_status = 0; }; }; then
4221 cross_compiling=no
4222 else
4223 if test "$cross_compiling" = maybe; then
4224 cross_compiling=yes
4225 else
4226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4228 as_fn_error "cannot run C compiled programs.
4229 If you meant to cross compile, use \`--host'.
4230 See \`config.log' for more details." "$LINENO" 5; }
4231 fi
4232 fi
4233 fi
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4235 $as_echo "yes" >&6; }
4236
4237 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4238 ac_clean_files=$ac_clean_files_save
4239 # Check that the compiler produces executables we can run. If not, either
4240 # the compiler is broken, or we cross compile.
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4242 $as_echo_n "checking whether we are cross compiling... " >&6; }
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4244 $as_echo "$cross_compiling" >&6; }
4245
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4247 $as_echo_n "checking for suffix of executables... " >&6; }
4248 if { { ac_try="$ac_link"
4249 case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252 esac
4253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4254 $as_echo "$ac_try_echo"; } >&5
4255 (eval "$ac_link") 2>&5
4256 ac_status=$?
4257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4258 test $ac_status = 0; }; then :
4259 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4260 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4261 # work properly (i.e., refer to `conftest.exe'), while it won't with
4262 # `rm'.
4263 for ac_file in conftest.exe conftest conftest.*; do
4264 test -f "$ac_file" || continue
4265 case $ac_file in
4266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4268 break;;
4269 * ) break;;
4270 esac
4271 done
4272 else
4273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4275 as_fn_error "cannot compute suffix of executables: cannot compile and link
4276 See \`config.log' for more details." "$LINENO" 5; }
4277 fi
4278 rm -f conftest$ac_cv_exeext
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4280 $as_echo "$ac_cv_exeext" >&6; }
4281
4282 rm -f conftest.$ac_ext
4283 EXEEXT=$ac_cv_exeext
4284 ac_exeext=$EXEEXT
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4286 $as_echo_n "checking for suffix of object files... " >&6; }
4287 if test "${ac_cv_objext+set}" = set; then :
4288 $as_echo_n "(cached) " >&6
4289 else
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4292
4293 int
4294 main ()
4295 {
4296
4297 ;
4298 return 0;
4299 }
4300 _ACEOF
4301 rm -f conftest.o conftest.obj
4302 if { { ac_try="$ac_compile"
4303 case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306 esac
4307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308 $as_echo "$ac_try_echo"; } >&5
4309 (eval "$ac_compile") 2>&5
4310 ac_status=$?
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; }; then :
4313 for ac_file in conftest.o conftest.obj conftest.*; do
4314 test -f "$ac_file" || continue;
4315 case $ac_file in
4316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4317 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4318 break;;
4319 esac
4320 done
4321 else
4322 $as_echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4324
4325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4327 as_fn_error "cannot compute suffix of object files: cannot compile
4328 See \`config.log' for more details." "$LINENO" 5; }
4329 fi
4330 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4331 fi
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4333 $as_echo "$ac_cv_objext" >&6; }
4334 OBJEXT=$ac_cv_objext
4335 ac_objext=$OBJEXT
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4337 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4338 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343
4344 int
4345 main ()
4346 {
4347 #ifndef __GNUC__
4348 choke me
4349 #endif
4350
4351 ;
4352 return 0;
4353 }
4354 _ACEOF
4355 if ac_fn_c_try_compile "$LINENO"; then :
4356 ac_compiler_gnu=yes
4357 else
4358 ac_compiler_gnu=no
4359 fi
4360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4362
4363 fi
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4365 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4366 if test $ac_compiler_gnu = yes; then
4367 GCC=yes
4368 else
4369 GCC=
4370 fi
4371 ac_test_CFLAGS=${CFLAGS+set}
4372 ac_save_CFLAGS=$CFLAGS
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4374 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4375 if test "${ac_cv_prog_cc_g+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
4377 else
4378 ac_save_c_werror_flag=$ac_c_werror_flag
4379 ac_c_werror_flag=yes
4380 ac_cv_prog_cc_g=no
4381 CFLAGS="-g"
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4384
4385 int
4386 main ()
4387 {
4388
4389 ;
4390 return 0;
4391 }
4392 _ACEOF
4393 if ac_fn_c_try_compile "$LINENO"; then :
4394 ac_cv_prog_cc_g=yes
4395 else
4396 CFLAGS=""
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4399
4400 int
4401 main ()
4402 {
4403
4404 ;
4405 return 0;
4406 }
4407 _ACEOF
4408 if ac_fn_c_try_compile "$LINENO"; then :
4409
4410 else
4411 ac_c_werror_flag=$ac_save_c_werror_flag
4412 CFLAGS="-g"
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4415
4416 int
4417 main ()
4418 {
4419
4420 ;
4421 return 0;
4422 }
4423 _ACEOF
4424 if ac_fn_c_try_compile "$LINENO"; then :
4425 ac_cv_prog_cc_g=yes
4426 fi
4427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428 fi
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 fi
4431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432 ac_c_werror_flag=$ac_save_c_werror_flag
4433 fi
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4435 $as_echo "$ac_cv_prog_cc_g" >&6; }
4436 if test "$ac_test_CFLAGS" = set; then
4437 CFLAGS=$ac_save_CFLAGS
4438 elif test $ac_cv_prog_cc_g = yes; then
4439 if test "$GCC" = yes; then
4440 CFLAGS="-g -O2"
4441 else
4442 CFLAGS="-g"
4443 fi
4444 else
4445 if test "$GCC" = yes; then
4446 CFLAGS="-O2"
4447 else
4448 CFLAGS=
4449 fi
4450 fi
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4452 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4453 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 ac_cv_prog_cc_c89=no
4457 ac_save_CC=$CC
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h. */
4460 #include <stdarg.h>
4461 #include <stdio.h>
4462 #include <sys/types.h>
4463 #include <sys/stat.h>
4464 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4465 struct buf { int x; };
4466 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4467 static char *e (p, i)
4468 char **p;
4469 int i;
4470 {
4471 return p[i];
4472 }
4473 static char *f (char * (*g) (char **, int), char **p, ...)
4474 {
4475 char *s;
4476 va_list v;
4477 va_start (v,p);
4478 s = g (p, va_arg (v,int));
4479 va_end (v);
4480 return s;
4481 }
4482
4483 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4484 function prototypes and stuff, but not '\xHH' hex character constants.
4485 These don't provoke an error unfortunately, instead are silently treated
4486 as 'x'. The following induces an error, until -std is added to get
4487 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4488 array size at least. It's necessary to write '\x00'==0 to get something
4489 that's true only with -std. */
4490 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4491
4492 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4493 inside strings and character constants. */
4494 #define FOO(x) 'x'
4495 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4496
4497 int test (int i, double x);
4498 struct s1 {int (*f) (int a);};
4499 struct s2 {int (*f) (double a);};
4500 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4501 int argc;
4502 char **argv;
4503 int
4504 main ()
4505 {
4506 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4507 ;
4508 return 0;
4509 }
4510 _ACEOF
4511 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4512 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4513 do
4514 CC="$ac_save_CC $ac_arg"
4515 if ac_fn_c_try_compile "$LINENO"; then :
4516 ac_cv_prog_cc_c89=$ac_arg
4517 fi
4518 rm -f core conftest.err conftest.$ac_objext
4519 test "x$ac_cv_prog_cc_c89" != "xno" && break
4520 done
4521 rm -f conftest.$ac_ext
4522 CC=$ac_save_CC
4523
4524 fi
4525 # AC_CACHE_VAL
4526 case "x$ac_cv_prog_cc_c89" in
4527 x)
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4529 $as_echo "none needed" >&6; } ;;
4530 xno)
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4532 $as_echo "unsupported" >&6; } ;;
4533 *)
4534 CC="$CC $ac_cv_prog_cc_c89"
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4536 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4537 esac
4538 if test "x$ac_cv_prog_cc_c89" != xno; then :
4539
4540 fi
4541
4542 ac_ext=c
4543 ac_cpp='$CPP $CPPFLAGS'
4544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547
4548 ac_ext=cpp
4549 ac_cpp='$CXXCPP $CPPFLAGS'
4550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4553 if test -z "$CXX"; then
4554 if test -n "$CCC"; then
4555 CXX=$CCC
4556 else
4557 if test -n "$ac_tool_prefix"; then
4558 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4559 do
4560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if test "${ac_cv_prog_CXX+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if test -n "$CXX"; then
4568 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4572 do
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4580 fi
4581 done
4582 done
4583 IFS=$as_save_IFS
4584
4585 fi
4586 fi
4587 CXX=$ac_cv_prog_CXX
4588 if test -n "$CXX"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4590 $as_echo "$CXX" >&6; }
4591 else
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4594 fi
4595
4596
4597 test -n "$CXX" && break
4598 done
4599 fi
4600 if test -z "$CXX"; then
4601 ac_ct_CXX=$CXX
4602 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4603 do
4604 # Extract the first word of "$ac_prog", so it can be a program name with args.
4605 set dummy $ac_prog; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if test -n "$ac_ct_CXX"; then
4612 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_prog_ac_ct_CXX="$ac_prog"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4624 fi
4625 done
4626 done
4627 IFS=$as_save_IFS
4628
4629 fi
4630 fi
4631 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4632 if test -n "$ac_ct_CXX"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4634 $as_echo "$ac_ct_CXX" >&6; }
4635 else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4638 fi
4639
4640
4641 test -n "$ac_ct_CXX" && break
4642 done
4643
4644 if test "x$ac_ct_CXX" = x; then
4645 CXX="g++"
4646 else
4647 case $cross_compiling:$ac_tool_warned in
4648 yes:)
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4651 ac_tool_warned=yes ;;
4652 esac
4653 CXX=$ac_ct_CXX
4654 fi
4655 fi
4656
4657 fi
4658 fi
4659 # Provide some information about the compiler.
4660 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4661 set X $ac_compile
4662 ac_compiler=$2
4663 for ac_option in --version -v -V -qversion; do
4664 { { ac_try="$ac_compiler $ac_option >&5"
4665 case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668 esac
4669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4670 $as_echo "$ac_try_echo"; } >&5
4671 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4672 ac_status=$?
4673 if test -s conftest.err; then
4674 sed '10a\
4675 ... rest of stderr output deleted ...
4676 10q' conftest.err >conftest.er1
4677 cat conftest.er1 >&5
4678 rm -f conftest.er1 conftest.err
4679 fi
4680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4681 test $ac_status = 0; }
4682 done
4683
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4685 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4686 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4691
4692 int
4693 main ()
4694 {
4695 #ifndef __GNUC__
4696 choke me
4697 #endif
4698
4699 ;
4700 return 0;
4701 }
4702 _ACEOF
4703 if ac_fn_cxx_try_compile "$LINENO"; then :
4704 ac_compiler_gnu=yes
4705 else
4706 ac_compiler_gnu=no
4707 fi
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4710
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4713 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4714 if test $ac_compiler_gnu = yes; then
4715 GXX=yes
4716 else
4717 GXX=
4718 fi
4719 ac_test_CXXFLAGS=${CXXFLAGS+set}
4720 ac_save_CXXFLAGS=$CXXFLAGS
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4722 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4723 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4727 ac_cxx_werror_flag=yes
4728 ac_cv_prog_cxx_g=no
4729 CXXFLAGS="-g"
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4732
4733 int
4734 main ()
4735 {
4736
4737 ;
4738 return 0;
4739 }
4740 _ACEOF
4741 if ac_fn_cxx_try_compile "$LINENO"; then :
4742 ac_cv_prog_cxx_g=yes
4743 else
4744 CXXFLAGS=""
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4747
4748 int
4749 main ()
4750 {
4751
4752 ;
4753 return 0;
4754 }
4755 _ACEOF
4756 if ac_fn_cxx_try_compile "$LINENO"; then :
4757
4758 else
4759 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4760 CXXFLAGS="-g"
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4763
4764 int
4765 main ()
4766 {
4767
4768 ;
4769 return 0;
4770 }
4771 _ACEOF
4772 if ac_fn_cxx_try_compile "$LINENO"; then :
4773 ac_cv_prog_cxx_g=yes
4774 fi
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 fi
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778 fi
4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4781 fi
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4783 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4784 if test "$ac_test_CXXFLAGS" = set; then
4785 CXXFLAGS=$ac_save_CXXFLAGS
4786 elif test $ac_cv_prog_cxx_g = yes; then
4787 if test "$GXX" = yes; then
4788 CXXFLAGS="-g -O2"
4789 else
4790 CXXFLAGS="-g"
4791 fi
4792 else
4793 if test "$GXX" = yes; then
4794 CXXFLAGS="-O2"
4795 else
4796 CXXFLAGS=
4797 fi
4798 fi
4799 ac_ext=c
4800 ac_cpp='$CPP $CPPFLAGS'
4801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804
4805
4806
4807
4808 if test -n "$ac_tool_prefix"; then
4809 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4810 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 if test -n "$GNATBIND"; then
4817 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4829 fi
4830 done
4831 done
4832 IFS=$as_save_IFS
4833
4834 fi
4835 fi
4836 GNATBIND=$ac_cv_prog_GNATBIND
4837 if test -n "$GNATBIND"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4839 $as_echo "$GNATBIND" >&6; }
4840 else
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4843 fi
4844
4845
4846 fi
4847 if test -z "$ac_cv_prog_GNATBIND"; then
4848 ac_ct_GNATBIND=$GNATBIND
4849 # Extract the first word of "gnatbind", so it can be a program name with args.
4850 set dummy gnatbind; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -n "$ac_ct_GNATBIND"; then
4857 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870 done
4871 done
4872 IFS=$as_save_IFS
4873
4874 fi
4875 fi
4876 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4877 if test -n "$ac_ct_GNATBIND"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4879 $as_echo "$ac_ct_GNATBIND" >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4883 fi
4884
4885 if test "x$ac_ct_GNATBIND" = x; then
4886 GNATBIND="no"
4887 else
4888 case $cross_compiling:$ac_tool_warned in
4889 yes:)
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4892 ac_tool_warned=yes ;;
4893 esac
4894 GNATBIND=$ac_ct_GNATBIND
4895 fi
4896 else
4897 GNATBIND="$ac_cv_prog_GNATBIND"
4898 fi
4899
4900 if test -n "$ac_tool_prefix"; then
4901 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4902 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 if test -n "$GNATMAKE"; then
4909 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4921 fi
4922 done
4923 done
4924 IFS=$as_save_IFS
4925
4926 fi
4927 fi
4928 GNATMAKE=$ac_cv_prog_GNATMAKE
4929 if test -n "$GNATMAKE"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4931 $as_echo "$GNATMAKE" >&6; }
4932 else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4935 fi
4936
4937
4938 fi
4939 if test -z "$ac_cv_prog_GNATMAKE"; then
4940 ac_ct_GNATMAKE=$GNATMAKE
4941 # Extract the first word of "gnatmake", so it can be a program name with args.
4942 set dummy gnatmake; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 if test -n "$ac_ct_GNATMAKE"; then
4949 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4961 fi
4962 done
4963 done
4964 IFS=$as_save_IFS
4965
4966 fi
4967 fi
4968 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4969 if test -n "$ac_ct_GNATMAKE"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4971 $as_echo "$ac_ct_GNATMAKE" >&6; }
4972 else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4975 fi
4976
4977 if test "x$ac_ct_GNATMAKE" = x; then
4978 GNATMAKE="no"
4979 else
4980 case $cross_compiling:$ac_tool_warned in
4981 yes:)
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4984 ac_tool_warned=yes ;;
4985 esac
4986 GNATMAKE=$ac_ct_GNATMAKE
4987 fi
4988 else
4989 GNATMAKE="$ac_cv_prog_GNATMAKE"
4990 fi
4991
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4993 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4994 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 cat >conftest.adb <<EOF
4998 procedure conftest is begin null; end conftest;
4999 EOF
5000 acx_cv_cc_gcc_supports_ada=no
5001 # There is a bug in old released versions of GCC which causes the
5002 # driver to exit successfully when the appropriate language module
5003 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5004 # Therefore we must check for the error message as well as an
5005 # unsuccessful exit.
5006 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5007 # given a .adb file, but produce no object file. So we must check
5008 # if an object file was really produced to guard against this.
5009 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5010 if test x"$errors" = x && test -f conftest.$ac_objext; then
5011 acx_cv_cc_gcc_supports_ada=yes
5012 fi
5013 rm -f conftest.*
5014 fi
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5016 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5017
5018 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5019 have_gnat=yes
5020 else
5021 have_gnat=no
5022 fi
5023
5024
5025 # Do configure tests with the C++ compiler, since that's what we build with.
5026 ac_ext=cpp
5027 ac_cpp='$CXXCPP $CPPFLAGS'
5028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5031
5032
5033 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5034 # optimizations to be activated explicitly by the toplevel.
5035 case "$CC" in
5036 */prev-gcc/xgcc*) ;;
5037 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5038 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5039 esac
5040
5041
5042
5043 # Determine PICFLAG for target gnatlib.
5044
5045
5046
5047
5048 case "${target}" in
5049 # PIC is the default on some targets or must not be used.
5050 *-*-darwin*)
5051 # For darwin, common symbols are not allowed in MH_DYLIB files
5052 case "${CFLAGS}" in
5053 # If we are using a compiler supporting mdynamic-no-pic
5054 # and the option has been tested as safe to add, then cancel
5055 # it here, since the code generated is incompatible with shared
5056 # libs.
5057 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5058 *) PICFLAG_FOR_TARGET=-fno-common ;;
5059 esac
5060 ;;
5061 alpha*-dec-osf5*)
5062 # PIC is the default.
5063 ;;
5064 hppa*64*-*-hpux*)
5065 # PIC is the default for 64-bit PA HP-UX.
5066 ;;
5067 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5068 ;;
5069 i[34567]86-*-mingw* | x86_64-*-mingw*)
5070 ;;
5071 i[34567]86-*-interix[3-9]*)
5072 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5073 # Instead, we relocate shared libraries at runtime.
5074 ;;
5075 i[34567]86-*-nto-qnx*)
5076 # QNX uses GNU C++, but need to define -shared option too, otherwise
5077 # it will coredump.
5078 PICFLAG_FOR_TARGET='-fPIC -shared'
5079 ;;
5080 i[34567]86-pc-msdosdjgpp*)
5081 # DJGPP does not support shared libraries at all.
5082 ;;
5083 ia64*-*-hpux*)
5084 # On IA64 HP-UX, PIC is the default but the pic flag
5085 # sets the default TLS model and affects inlining.
5086 PICFLAG_FOR_TARGET=-fPIC
5087 ;;
5088 mips-sgi-irix6*)
5089 # PIC is the default.
5090 ;;
5091 rs6000-ibm-aix* | powerpc-ibm-aix*)
5092 # All AIX code is PIC.
5093 ;;
5094
5095 # Some targets support both -fPIC and -fpic, but prefer the latter.
5096 # FIXME: Why?
5097 i[34567]86-*-* | x86_64-*-*)
5098 PICFLAG_FOR_TARGET=-fpic
5099 ;;
5100 # FIXME: Override -fPIC default in libgcc only?
5101 sh-*-linux* | sh[2346lbe]*-*-linux*)
5102 PICFLAG_FOR_TARGET=-fpic
5103 ;;
5104 # FIXME: Simplify to sh*-*-netbsd*?
5105 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5106 sh64-*-netbsd* | sh64l*-*-netbsd*)
5107 PICFLAG_FOR_TARGET=-fpic
5108 ;;
5109 # Default to -fPIC unless specified otherwise.
5110 *)
5111 PICFLAG_FOR_TARGET=-fPIC
5112 ;;
5113 esac
5114
5115 # If the user explicitly uses -fpic/-fPIC, keep that.
5116 case "${CFLAGS_FOR_TARGET}" in
5117 *-fpic*)
5118 PICFLAG_FOR_TARGET=-fpic
5119 ;;
5120 *-fPIC*)
5121 PICFLAG_FOR_TARGET=-fPIC
5122 ;;
5123 esac
5124
5125
5126
5127 # -------------------------
5128 # Check C compiler features
5129 # -------------------------
5130
5131
5132 ac_ext=cpp
5133 ac_cpp='$CXXCPP $CPPFLAGS'
5134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5138 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5139 if test -z "$CXXCPP"; then
5140 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 # Double quotes because CXXCPP needs to be expanded
5144 for CXXCPP in "$CXX -E" "/lib/cpp"
5145 do
5146 ac_preproc_ok=false
5147 for ac_cxx_preproc_warn_flag in '' yes
5148 do
5149 # Use a header file that comes with gcc, so configuring glibc
5150 # with a fresh cross-compiler works.
5151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5152 # <limits.h> exists even on freestanding compilers.
5153 # On the NeXT, cc -E runs the code through the compiler's parser,
5154 # not just through cpp. "Syntax error" is here to catch this case.
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157 #ifdef __STDC__
5158 # include <limits.h>
5159 #else
5160 # include <assert.h>
5161 #endif
5162 Syntax error
5163 _ACEOF
5164 if ac_fn_cxx_try_cpp "$LINENO"; then :
5165
5166 else
5167 # Broken: fails on valid input.
5168 continue
5169 fi
5170 rm -f conftest.err conftest.$ac_ext
5171
5172 # OK, works on sane cases. Now check whether nonexistent headers
5173 # can be detected and how.
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5176 #include <ac_nonexistent.h>
5177 _ACEOF
5178 if ac_fn_cxx_try_cpp "$LINENO"; then :
5179 # Broken: success on invalid input.
5180 continue
5181 else
5182 # Passes both tests.
5183 ac_preproc_ok=:
5184 break
5185 fi
5186 rm -f conftest.err conftest.$ac_ext
5187
5188 done
5189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5190 rm -f conftest.err conftest.$ac_ext
5191 if $ac_preproc_ok; then :
5192 break
5193 fi
5194
5195 done
5196 ac_cv_prog_CXXCPP=$CXXCPP
5197
5198 fi
5199 CXXCPP=$ac_cv_prog_CXXCPP
5200 else
5201 ac_cv_prog_CXXCPP=$CXXCPP
5202 fi
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5204 $as_echo "$CXXCPP" >&6; }
5205 ac_preproc_ok=false
5206 for ac_cxx_preproc_warn_flag in '' yes
5207 do
5208 # Use a header file that comes with gcc, so configuring glibc
5209 # with a fresh cross-compiler works.
5210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5211 # <limits.h> exists even on freestanding compilers.
5212 # On the NeXT, cc -E runs the code through the compiler's parser,
5213 # not just through cpp. "Syntax error" is here to catch this case.
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216 #ifdef __STDC__
5217 # include <limits.h>
5218 #else
5219 # include <assert.h>
5220 #endif
5221 Syntax error
5222 _ACEOF
5223 if ac_fn_cxx_try_cpp "$LINENO"; then :
5224
5225 else
5226 # Broken: fails on valid input.
5227 continue
5228 fi
5229 rm -f conftest.err conftest.$ac_ext
5230
5231 # OK, works on sane cases. Now check whether nonexistent headers
5232 # can be detected and how.
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5235 #include <ac_nonexistent.h>
5236 _ACEOF
5237 if ac_fn_cxx_try_cpp "$LINENO"; then :
5238 # Broken: success on invalid input.
5239 continue
5240 else
5241 # Passes both tests.
5242 ac_preproc_ok=:
5243 break
5244 fi
5245 rm -f conftest.err conftest.$ac_ext
5246
5247 done
5248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5249 rm -f conftest.err conftest.$ac_ext
5250 if $ac_preproc_ok; then :
5251
5252 else
5253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5255 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5256 See \`config.log' for more details." "$LINENO" 5; }
5257 fi
5258
5259 ac_ext=cpp
5260 ac_cpp='$CXXCPP $CPPFLAGS'
5261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5264
5265
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5267 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5268 if test "${ac_cv_path_GREP+set}" = set; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if test -z "$GREP"; then
5272 ac_path_GREP_found=false
5273 # Loop through the user's path and test for each of PROGNAME-LIST
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5276 do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_prog in grep ggrep; do
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5282 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5283 # Check for GNU ac_path_GREP and select it if it is found.
5284 # Check for GNU $ac_path_GREP
5285 case `"$ac_path_GREP" --version 2>&1` in
5286 *GNU*)
5287 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5288 *)
5289 ac_count=0
5290 $as_echo_n 0123456789 >"conftest.in"
5291 while :
5292 do
5293 cat "conftest.in" "conftest.in" >"conftest.tmp"
5294 mv "conftest.tmp" "conftest.in"
5295 cp "conftest.in" "conftest.nl"
5296 $as_echo 'GREP' >> "conftest.nl"
5297 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5298 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5299 as_fn_arith $ac_count + 1 && ac_count=$as_val
5300 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5301 # Best one so far, save it but keep looking for a better one
5302 ac_cv_path_GREP="$ac_path_GREP"
5303 ac_path_GREP_max=$ac_count
5304 fi
5305 # 10*(2^10) chars as input seems more than enough
5306 test $ac_count -gt 10 && break
5307 done
5308 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5309 esac
5310
5311 $ac_path_GREP_found && break 3
5312 done
5313 done
5314 done
5315 IFS=$as_save_IFS
5316 if test -z "$ac_cv_path_GREP"; then
5317 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5318 fi
5319 else
5320 ac_cv_path_GREP=$GREP
5321 fi
5322
5323 fi
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5325 $as_echo "$ac_cv_path_GREP" >&6; }
5326 GREP="$ac_cv_path_GREP"
5327
5328
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5330 $as_echo_n "checking for egrep... " >&6; }
5331 if test "${ac_cv_path_EGREP+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5335 then ac_cv_path_EGREP="$GREP -E"
5336 else
5337 if test -z "$EGREP"; then
5338 ac_path_EGREP_found=false
5339 # Loop through the user's path and test for each of PROGNAME-LIST
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5342 do
5343 IFS=$as_save_IFS
5344 test -z "$as_dir" && as_dir=.
5345 for ac_prog in egrep; do
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5348 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5349 # Check for GNU ac_path_EGREP and select it if it is found.
5350 # Check for GNU $ac_path_EGREP
5351 case `"$ac_path_EGREP" --version 2>&1` in
5352 *GNU*)
5353 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5354 *)
5355 ac_count=0
5356 $as_echo_n 0123456789 >"conftest.in"
5357 while :
5358 do
5359 cat "conftest.in" "conftest.in" >"conftest.tmp"
5360 mv "conftest.tmp" "conftest.in"
5361 cp "conftest.in" "conftest.nl"
5362 $as_echo 'EGREP' >> "conftest.nl"
5363 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5365 as_fn_arith $ac_count + 1 && ac_count=$as_val
5366 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5367 # Best one so far, save it but keep looking for a better one
5368 ac_cv_path_EGREP="$ac_path_EGREP"
5369 ac_path_EGREP_max=$ac_count
5370 fi
5371 # 10*(2^10) chars as input seems more than enough
5372 test $ac_count -gt 10 && break
5373 done
5374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5375 esac
5376
5377 $ac_path_EGREP_found && break 3
5378 done
5379 done
5380 done
5381 IFS=$as_save_IFS
5382 if test -z "$ac_cv_path_EGREP"; then
5383 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5384 fi
5385 else
5386 ac_cv_path_EGREP=$EGREP
5387 fi
5388
5389 fi
5390 fi
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5392 $as_echo "$ac_cv_path_EGREP" >&6; }
5393 EGREP="$ac_cv_path_EGREP"
5394
5395
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5397 $as_echo_n "checking for ANSI C header files... " >&6; }
5398 if test "${ac_cv_header_stdc+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 #include <stdlib.h>
5404 #include <stdarg.h>
5405 #include <string.h>
5406 #include <float.h>
5407
5408 int
5409 main ()
5410 {
5411
5412 ;
5413 return 0;
5414 }
5415 _ACEOF
5416 if ac_fn_cxx_try_compile "$LINENO"; then :
5417 ac_cv_header_stdc=yes
5418 else
5419 ac_cv_header_stdc=no
5420 fi
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422
5423 if test $ac_cv_header_stdc = yes; then
5424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5427 #include <string.h>
5428
5429 _ACEOF
5430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5431 $EGREP "memchr" >/dev/null 2>&1; then :
5432
5433 else
5434 ac_cv_header_stdc=no
5435 fi
5436 rm -f conftest*
5437
5438 fi
5439
5440 if test $ac_cv_header_stdc = yes; then
5441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5444 #include <stdlib.h>
5445
5446 _ACEOF
5447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5448 $EGREP "free" >/dev/null 2>&1; then :
5449
5450 else
5451 ac_cv_header_stdc=no
5452 fi
5453 rm -f conftest*
5454
5455 fi
5456
5457 if test $ac_cv_header_stdc = yes; then
5458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5459 if test "$cross_compiling" = yes; then :
5460 :
5461 else
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5464 #include <ctype.h>
5465 #include <stdlib.h>
5466 #if ((' ' & 0x0FF) == 0x020)
5467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5469 #else
5470 # define ISLOWER(c) \
5471 (('a' <= (c) && (c) <= 'i') \
5472 || ('j' <= (c) && (c) <= 'r') \
5473 || ('s' <= (c) && (c) <= 'z'))
5474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5475 #endif
5476
5477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5478 int
5479 main ()
5480 {
5481 int i;
5482 for (i = 0; i < 256; i++)
5483 if (XOR (islower (i), ISLOWER (i))
5484 || toupper (i) != TOUPPER (i))
5485 return 2;
5486 return 0;
5487 }
5488 _ACEOF
5489 if ac_fn_cxx_try_run "$LINENO"; then :
5490
5491 else
5492 ac_cv_header_stdc=no
5493 fi
5494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5495 conftest.$ac_objext conftest.beam conftest.$ac_ext
5496 fi
5497
5498 fi
5499 fi
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5501 $as_echo "$ac_cv_header_stdc" >&6; }
5502 if test $ac_cv_header_stdc = yes; then
5503
5504 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5505
5506 fi
5507
5508 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5509 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5510 inttypes.h stdint.h unistd.h
5511 do :
5512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5513 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5514 "
5515 eval as_val=\$$as_ac_Header
5516 if test "x$as_val" = x""yes; then :
5517 cat >>confdefs.h <<_ACEOF
5518 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5519 _ACEOF
5520
5521 fi
5522
5523 done
5524
5525
5526
5527 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5528 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5529 MINIX=yes
5530 else
5531 MINIX=
5532 fi
5533
5534
5535 if test "$MINIX" = yes; then
5536
5537 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5538
5539
5540 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5541
5542
5543 $as_echo "#define _MINIX 1" >>confdefs.h
5544
5545 fi
5546
5547
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5549 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5550 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5555
5556 # define __EXTENSIONS__ 1
5557 $ac_includes_default
5558 int
5559 main ()
5560 {
5561
5562 ;
5563 return 0;
5564 }
5565 _ACEOF
5566 if ac_fn_cxx_try_compile "$LINENO"; then :
5567 ac_cv_safe_to_define___extensions__=yes
5568 else
5569 ac_cv_safe_to_define___extensions__=no
5570 fi
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 fi
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5574 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5575 test $ac_cv_safe_to_define___extensions__ = yes &&
5576 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5577
5578 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5579
5580 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5581
5582 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5583
5584 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5585
5586
5587 ac_ext=c
5588 ac_cpp='$CPP $CPPFLAGS'
5589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5593 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5594 # On Suns, sometimes $CPP names a directory.
5595 if test -n "$CPP" && test -d "$CPP"; then
5596 CPP=
5597 fi
5598 if test -z "$CPP"; then
5599 if test "${ac_cv_prog_CPP+set}" = set; then :
5600 $as_echo_n "(cached) " >&6
5601 else
5602 # Double quotes because CPP needs to be expanded
5603 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5604 do
5605 ac_preproc_ok=false
5606 for ac_c_preproc_warn_flag in '' yes
5607 do
5608 # Use a header file that comes with gcc, so configuring glibc
5609 # with a fresh cross-compiler works.
5610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5611 # <limits.h> exists even on freestanding compilers.
5612 # On the NeXT, cc -E runs the code through the compiler's parser,
5613 # not just through cpp. "Syntax error" is here to catch this case.
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 #ifdef __STDC__
5617 # include <limits.h>
5618 #else
5619 # include <assert.h>
5620 #endif
5621 Syntax error
5622 _ACEOF
5623 if ac_fn_c_try_cpp "$LINENO"; then :
5624
5625 else
5626 # Broken: fails on valid input.
5627 continue
5628 fi
5629 rm -f conftest.err conftest.$ac_ext
5630
5631 # OK, works on sane cases. Now check whether nonexistent headers
5632 # can be detected and how.
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #include <ac_nonexistent.h>
5636 _ACEOF
5637 if ac_fn_c_try_cpp "$LINENO"; then :
5638 # Broken: success on invalid input.
5639 continue
5640 else
5641 # Passes both tests.
5642 ac_preproc_ok=:
5643 break
5644 fi
5645 rm -f conftest.err conftest.$ac_ext
5646
5647 done
5648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5649 rm -f conftest.err conftest.$ac_ext
5650 if $ac_preproc_ok; then :
5651 break
5652 fi
5653
5654 done
5655 ac_cv_prog_CPP=$CPP
5656
5657 fi
5658 CPP=$ac_cv_prog_CPP
5659 else
5660 ac_cv_prog_CPP=$CPP
5661 fi
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5663 $as_echo "$CPP" >&6; }
5664 ac_preproc_ok=false
5665 for ac_c_preproc_warn_flag in '' yes
5666 do
5667 # Use a header file that comes with gcc, so configuring glibc
5668 # with a fresh cross-compiler works.
5669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5670 # <limits.h> exists even on freestanding compilers.
5671 # On the NeXT, cc -E runs the code through the compiler's parser,
5672 # not just through cpp. "Syntax error" is here to catch this case.
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 #ifdef __STDC__
5676 # include <limits.h>
5677 #else
5678 # include <assert.h>
5679 #endif
5680 Syntax error
5681 _ACEOF
5682 if ac_fn_c_try_cpp "$LINENO"; then :
5683
5684 else
5685 # Broken: fails on valid input.
5686 continue
5687 fi
5688 rm -f conftest.err conftest.$ac_ext
5689
5690 # OK, works on sane cases. Now check whether nonexistent headers
5691 # can be detected and how.
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 #include <ac_nonexistent.h>
5695 _ACEOF
5696 if ac_fn_c_try_cpp "$LINENO"; then :
5697 # Broken: success on invalid input.
5698 continue
5699 else
5700 # Passes both tests.
5701 ac_preproc_ok=:
5702 break
5703 fi
5704 rm -f conftest.err conftest.$ac_ext
5705
5706 done
5707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5708 rm -f conftest.err conftest.$ac_ext
5709 if $ac_preproc_ok; then :
5710
5711 else
5712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5714 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5715 See \`config.log' for more details." "$LINENO" 5; }
5716 fi
5717
5718 ac_ext=cpp
5719 ac_cpp='$CXXCPP $CPPFLAGS'
5720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5723
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5725 $as_echo_n "checking for inline... " >&6; }
5726 if test "${ac_cv_c_inline+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 ac_cv_c_inline=no
5730 for ac_kw in inline __inline__ __inline; do
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5733 #ifndef __cplusplus
5734 typedef int foo_t;
5735 static $ac_kw foo_t static_foo () {return 0; }
5736 $ac_kw foo_t foo () {return 0; }
5737 #endif
5738
5739 _ACEOF
5740 if ac_fn_cxx_try_compile "$LINENO"; then :
5741 ac_cv_c_inline=$ac_kw
5742 fi
5743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744 test "$ac_cv_c_inline" != no && break
5745 done
5746
5747 fi
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5749 $as_echo "$ac_cv_c_inline" >&6; }
5750
5751 case $ac_cv_c_inline in
5752 inline | yes) ;;
5753 *)
5754 case $ac_cv_c_inline in
5755 no) ac_val=;;
5756 *) ac_val=$ac_cv_c_inline;;
5757 esac
5758 cat >>confdefs.h <<_ACEOF
5759 #ifndef __cplusplus
5760 #define inline $ac_val
5761 #endif
5762 _ACEOF
5763 ;;
5764 esac
5765
5766
5767 # Check whether --enable-largefile was given.
5768 if test "${enable_largefile+set}" = set; then :
5769 enableval=$enable_largefile;
5770 fi
5771
5772 if test "$enable_largefile" != no; then
5773
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5775 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5776 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5779 ac_cv_sys_largefile_CC=no
5780 if test "$GCC" != yes; then
5781 ac_save_CC=$CC
5782 while :; do
5783 # IRIX 6.2 and later do not support large files by default,
5784 # so use the C compiler's -n32 option if that helps.
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787 #include <sys/types.h>
5788 /* Check that off_t can represent 2**63 - 1 correctly.
5789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5790 since some C++ compilers masquerading as C compilers
5791 incorrectly reject 9223372036854775807. */
5792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5794 && LARGE_OFF_T % 2147483647 == 1)
5795 ? 1 : -1];
5796 int
5797 main ()
5798 {
5799
5800 ;
5801 return 0;
5802 }
5803 _ACEOF
5804 if ac_fn_cxx_try_compile "$LINENO"; then :
5805 break
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext
5808 CC="$CC -n32"
5809 if ac_fn_cxx_try_compile "$LINENO"; then :
5810 ac_cv_sys_largefile_CC=' -n32'; break
5811 fi
5812 rm -f core conftest.err conftest.$ac_objext
5813 break
5814 done
5815 CC=$ac_save_CC
5816 rm -f conftest.$ac_ext
5817 fi
5818 fi
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5820 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5821 if test "$ac_cv_sys_largefile_CC" != no; then
5822 CC=$CC$ac_cv_sys_largefile_CC
5823 fi
5824
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5826 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5827 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5828 $as_echo_n "(cached) " >&6
5829 else
5830 while :; do
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5833 #include <sys/types.h>
5834 /* Check that off_t can represent 2**63 - 1 correctly.
5835 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5836 since some C++ compilers masquerading as C compilers
5837 incorrectly reject 9223372036854775807. */
5838 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5839 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5840 && LARGE_OFF_T % 2147483647 == 1)
5841 ? 1 : -1];
5842 int
5843 main ()
5844 {
5845
5846 ;
5847 return 0;
5848 }
5849 _ACEOF
5850 if ac_fn_cxx_try_compile "$LINENO"; then :
5851 ac_cv_sys_file_offset_bits=no; break
5852 fi
5853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5856 #define _FILE_OFFSET_BITS 64
5857 #include <sys/types.h>
5858 /* Check that off_t can represent 2**63 - 1 correctly.
5859 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5860 since some C++ compilers masquerading as C compilers
5861 incorrectly reject 9223372036854775807. */
5862 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5864 && LARGE_OFF_T % 2147483647 == 1)
5865 ? 1 : -1];
5866 int
5867 main ()
5868 {
5869
5870 ;
5871 return 0;
5872 }
5873 _ACEOF
5874 if ac_fn_cxx_try_compile "$LINENO"; then :
5875 ac_cv_sys_file_offset_bits=64; break
5876 fi
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 ac_cv_sys_file_offset_bits=unknown
5879 break
5880 done
5881 fi
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5883 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5884 case $ac_cv_sys_file_offset_bits in #(
5885 no | unknown) ;;
5886 *)
5887 cat >>confdefs.h <<_ACEOF
5888 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5889 _ACEOF
5890 ;;
5891 esac
5892 rm -rf conftest*
5893 if test $ac_cv_sys_file_offset_bits = unknown; then
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5895 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5896 if test "${ac_cv_sys_large_files+set}" = set; then :
5897 $as_echo_n "(cached) " >&6
5898 else
5899 while :; do
5900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h. */
5902 #include <sys/types.h>
5903 /* Check that off_t can represent 2**63 - 1 correctly.
5904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5905 since some C++ compilers masquerading as C compilers
5906 incorrectly reject 9223372036854775807. */
5907 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5909 && LARGE_OFF_T % 2147483647 == 1)
5910 ? 1 : -1];
5911 int
5912 main ()
5913 {
5914
5915 ;
5916 return 0;
5917 }
5918 _ACEOF
5919 if ac_fn_cxx_try_compile "$LINENO"; then :
5920 ac_cv_sys_large_files=no; break
5921 fi
5922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925 #define _LARGE_FILES 1
5926 #include <sys/types.h>
5927 /* Check that off_t can represent 2**63 - 1 correctly.
5928 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5929 since some C++ compilers masquerading as C compilers
5930 incorrectly reject 9223372036854775807. */
5931 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5932 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5933 && LARGE_OFF_T % 2147483647 == 1)
5934 ? 1 : -1];
5935 int
5936 main ()
5937 {
5938
5939 ;
5940 return 0;
5941 }
5942 _ACEOF
5943 if ac_fn_cxx_try_compile "$LINENO"; then :
5944 ac_cv_sys_large_files=1; break
5945 fi
5946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947 ac_cv_sys_large_files=unknown
5948 break
5949 done
5950 fi
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5952 $as_echo "$ac_cv_sys_large_files" >&6; }
5953 case $ac_cv_sys_large_files in #(
5954 no | unknown) ;;
5955 *)
5956 cat >>confdefs.h <<_ACEOF
5957 #define _LARGE_FILES $ac_cv_sys_large_files
5958 _ACEOF
5959 ;;
5960 esac
5961 rm -rf conftest*
5962 fi
5963 fi
5964
5965
5966 # sizeof(char) is 1 by definition.
5967 # The cast to long int works around a bug in the HP C Compiler
5968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5970 # This bug is HP SR number 8606223364.
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5972 $as_echo_n "checking size of void *... " >&6; }
5973 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5977
5978 else
5979 if test "$ac_cv_type_void_p" = yes; then
5980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5982 { as_fn_set_status 77
5983 as_fn_error "cannot compute sizeof (void *)
5984 See \`config.log' for more details." "$LINENO" 5; }; }
5985 else
5986 ac_cv_sizeof_void_p=0
5987 fi
5988 fi
5989
5990 fi
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5992 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5993
5994
5995
5996 cat >>confdefs.h <<_ACEOF
5997 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5998 _ACEOF
5999
6000
6001 # The cast to long int works around a bug in the HP C Compiler
6002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6004 # This bug is HP SR number 8606223364.
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6006 $as_echo_n "checking size of short... " >&6; }
6007 if test "${ac_cv_sizeof_short+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6011
6012 else
6013 if test "$ac_cv_type_short" = yes; then
6014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6016 { as_fn_set_status 77
6017 as_fn_error "cannot compute sizeof (short)
6018 See \`config.log' for more details." "$LINENO" 5; }; }
6019 else
6020 ac_cv_sizeof_short=0
6021 fi
6022 fi
6023
6024 fi
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6026 $as_echo "$ac_cv_sizeof_short" >&6; }
6027
6028
6029
6030 cat >>confdefs.h <<_ACEOF
6031 #define SIZEOF_SHORT $ac_cv_sizeof_short
6032 _ACEOF
6033
6034
6035 # The cast to long int works around a bug in the HP C Compiler
6036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6038 # This bug is HP SR number 8606223364.
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6040 $as_echo_n "checking size of int... " >&6; }
6041 if test "${ac_cv_sizeof_int+set}" = set; then :
6042 $as_echo_n "(cached) " >&6
6043 else
6044 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6045
6046 else
6047 if test "$ac_cv_type_int" = yes; then
6048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6050 { as_fn_set_status 77
6051 as_fn_error "cannot compute sizeof (int)
6052 See \`config.log' for more details." "$LINENO" 5; }; }
6053 else
6054 ac_cv_sizeof_int=0
6055 fi
6056 fi
6057
6058 fi
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6060 $as_echo "$ac_cv_sizeof_int" >&6; }
6061
6062
6063
6064 cat >>confdefs.h <<_ACEOF
6065 #define SIZEOF_INT $ac_cv_sizeof_int
6066 _ACEOF
6067
6068
6069 # The cast to long int works around a bug in the HP C Compiler
6070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6072 # This bug is HP SR number 8606223364.
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6074 $as_echo_n "checking size of long... " >&6; }
6075 if test "${ac_cv_sizeof_long+set}" = set; then :
6076 $as_echo_n "(cached) " >&6
6077 else
6078 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6079
6080 else
6081 if test "$ac_cv_type_long" = yes; then
6082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6084 { as_fn_set_status 77
6085 as_fn_error "cannot compute sizeof (long)
6086 See \`config.log' for more details." "$LINENO" 5; }; }
6087 else
6088 ac_cv_sizeof_long=0
6089 fi
6090 fi
6091
6092 fi
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6094 $as_echo "$ac_cv_sizeof_long" >&6; }
6095
6096
6097
6098 cat >>confdefs.h <<_ACEOF
6099 #define SIZEOF_LONG $ac_cv_sizeof_long
6100 _ACEOF
6101
6102
6103 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6104 if test "x$ac_cv_type_long_long" = x""yes; then :
6105
6106 cat >>confdefs.h <<_ACEOF
6107 #define HAVE_LONG_LONG 1
6108 _ACEOF
6109
6110 # The cast to long int works around a bug in the HP C Compiler
6111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6113 # This bug is HP SR number 8606223364.
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6115 $as_echo_n "checking size of long long... " >&6; }
6116 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6117 $as_echo_n "(cached) " >&6
6118 else
6119 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6120
6121 else
6122 if test "$ac_cv_type_long_long" = yes; then
6123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6125 { as_fn_set_status 77
6126 as_fn_error "cannot compute sizeof (long long)
6127 See \`config.log' for more details." "$LINENO" 5; }; }
6128 else
6129 ac_cv_sizeof_long_long=0
6130 fi
6131 fi
6132
6133 fi
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6135 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6136
6137
6138
6139 cat >>confdefs.h <<_ACEOF
6140 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6141 _ACEOF
6142
6143
6144 fi
6145
6146 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6147 case $ac_cv_c_int8_t in #(
6148 no|yes) ;; #(
6149 *)
6150
6151 cat >>confdefs.h <<_ACEOF
6152 #define int8_t $ac_cv_c_int8_t
6153 _ACEOF
6154 ;;
6155 esac
6156
6157 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6158 case $ac_cv_c_int16_t in #(
6159 no|yes) ;; #(
6160 *)
6161
6162 cat >>confdefs.h <<_ACEOF
6163 #define int16_t $ac_cv_c_int16_t
6164 _ACEOF
6165 ;;
6166 esac
6167
6168 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6169 case $ac_cv_c_int32_t in #(
6170 no|yes) ;; #(
6171 *)
6172
6173 cat >>confdefs.h <<_ACEOF
6174 #define int32_t $ac_cv_c_int32_t
6175 _ACEOF
6176 ;;
6177 esac
6178
6179 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6180 case $ac_cv_c_int64_t in #(
6181 no|yes) ;; #(
6182 *)
6183
6184 cat >>confdefs.h <<_ACEOF
6185 #define int64_t $ac_cv_c_int64_t
6186 _ACEOF
6187 ;;
6188 esac
6189
6190
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6192 $as_echo_n "checking for long long int... " >&6; }
6193 if test "${ac_cv_type_long_long_int+set}" = set; then :
6194 $as_echo_n "(cached) " >&6
6195 else
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198
6199 /* For now, do not test the preprocessor; as of 2007 there are too many
6200 implementations with broken preprocessors. Perhaps this can
6201 be revisited in 2012. In the meantime, code should not expect
6202 #if to work with literals wider than 32 bits. */
6203 /* Test literals. */
6204 long long int ll = 9223372036854775807ll;
6205 long long int nll = -9223372036854775807LL;
6206 unsigned long long int ull = 18446744073709551615ULL;
6207 /* Test constant expressions. */
6208 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6209 ? 1 : -1)];
6210 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6211 ? 1 : -1)];
6212 int i = 63;
6213 int
6214 main ()
6215 {
6216 /* Test availability of runtime routines for shift and division. */
6217 long long int llmax = 9223372036854775807ll;
6218 unsigned long long int ullmax = 18446744073709551615ull;
6219 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6220 | (llmax / ll) | (llmax % ll)
6221 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6222 | (ullmax / ull) | (ullmax % ull));
6223 ;
6224 return 0;
6225 }
6226
6227 _ACEOF
6228 if ac_fn_cxx_try_link "$LINENO"; then :
6229 if test "$cross_compiling" = yes; then :
6230 ac_cv_type_long_long_int=yes
6231 else
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 #include <limits.h>
6235 #ifndef LLONG_MAX
6236 # define HALF \
6237 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6238 # define LLONG_MAX (HALF - 1 + HALF)
6239 #endif
6240 int
6241 main ()
6242 {
6243 long long int n = 1;
6244 int i;
6245 for (i = 0; ; i++)
6246 {
6247 long long int m = n << i;
6248 if (m >> i != n)
6249 return 1;
6250 if (LLONG_MAX / 2 < m)
6251 break;
6252 }
6253 return 0;
6254 ;
6255 return 0;
6256 }
6257 _ACEOF
6258 if ac_fn_cxx_try_run "$LINENO"; then :
6259 ac_cv_type_long_long_int=yes
6260 else
6261 ac_cv_type_long_long_int=no
6262 fi
6263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6264 conftest.$ac_objext conftest.beam conftest.$ac_ext
6265 fi
6266
6267 else
6268 ac_cv_type_long_long_int=no
6269 fi
6270 rm -f core conftest.err conftest.$ac_objext \
6271 conftest$ac_exeext conftest.$ac_ext
6272 fi
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6274 $as_echo "$ac_cv_type_long_long_int" >&6; }
6275 if test $ac_cv_type_long_long_int = yes; then
6276
6277 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6278
6279 fi
6280
6281
6282
6283 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6284 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6285
6286 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6287
6288 else
6289 test $ac_cv_type_long_long_int = yes \
6290 && ac_type='long long int' \
6291 || ac_type='long int'
6292
6293 cat >>confdefs.h <<_ACEOF
6294 #define intmax_t $ac_type
6295 _ACEOF
6296
6297 fi
6298
6299
6300
6301 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6302 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6303
6304 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6305
6306 else
6307 for ac_type in 'int' 'long int' 'long long int'; do
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310 $ac_includes_default
6311 int
6312 main ()
6313 {
6314 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6315 test_array [0] = 0
6316
6317 ;
6318 return 0;
6319 }
6320 _ACEOF
6321 if ac_fn_cxx_try_compile "$LINENO"; then :
6322
6323 cat >>confdefs.h <<_ACEOF
6324 #define intptr_t $ac_type
6325 _ACEOF
6326
6327 ac_type=
6328 fi
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 test -z "$ac_type" && break
6331 done
6332 fi
6333
6334
6335 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6336 case $ac_cv_c_uint8_t in #(
6337 no|yes) ;; #(
6338 *)
6339
6340 $as_echo "#define _UINT8_T 1" >>confdefs.h
6341
6342
6343 cat >>confdefs.h <<_ACEOF
6344 #define uint8_t $ac_cv_c_uint8_t
6345 _ACEOF
6346 ;;
6347 esac
6348
6349 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6350 case $ac_cv_c_uint16_t in #(
6351 no|yes) ;; #(
6352 *)
6353
6354
6355 cat >>confdefs.h <<_ACEOF
6356 #define uint16_t $ac_cv_c_uint16_t
6357 _ACEOF
6358 ;;
6359 esac
6360
6361 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6362 case $ac_cv_c_uint32_t in #(
6363 no|yes) ;; #(
6364 *)
6365
6366 $as_echo "#define _UINT32_T 1" >>confdefs.h
6367
6368
6369 cat >>confdefs.h <<_ACEOF
6370 #define uint32_t $ac_cv_c_uint32_t
6371 _ACEOF
6372 ;;
6373 esac
6374
6375 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6376 case $ac_cv_c_uint64_t in #(
6377 no|yes) ;; #(
6378 *)
6379
6380 $as_echo "#define _UINT64_T 1" >>confdefs.h
6381
6382
6383 cat >>confdefs.h <<_ACEOF
6384 #define uint64_t $ac_cv_c_uint64_t
6385 _ACEOF
6386 ;;
6387 esac
6388
6389
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6391 $as_echo_n "checking for unsigned long long int... " >&6; }
6392 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6397
6398 /* For now, do not test the preprocessor; as of 2007 there are too many
6399 implementations with broken preprocessors. Perhaps this can
6400 be revisited in 2012. In the meantime, code should not expect
6401 #if to work with literals wider than 32 bits. */
6402 /* Test literals. */
6403 long long int ll = 9223372036854775807ll;
6404 long long int nll = -9223372036854775807LL;
6405 unsigned long long int ull = 18446744073709551615ULL;
6406 /* Test constant expressions. */
6407 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6408 ? 1 : -1)];
6409 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6410 ? 1 : -1)];
6411 int i = 63;
6412 int
6413 main ()
6414 {
6415 /* Test availability of runtime routines for shift and division. */
6416 long long int llmax = 9223372036854775807ll;
6417 unsigned long long int ullmax = 18446744073709551615ull;
6418 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6419 | (llmax / ll) | (llmax % ll)
6420 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6421 | (ullmax / ull) | (ullmax % ull));
6422 ;
6423 return 0;
6424 }
6425
6426 _ACEOF
6427 if ac_fn_cxx_try_link "$LINENO"; then :
6428 ac_cv_type_unsigned_long_long_int=yes
6429 else
6430 ac_cv_type_unsigned_long_long_int=no
6431 fi
6432 rm -f core conftest.err conftest.$ac_objext \
6433 conftest$ac_exeext conftest.$ac_ext
6434 fi
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6436 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6437 if test $ac_cv_type_unsigned_long_long_int = yes; then
6438
6439 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6440
6441 fi
6442
6443
6444
6445 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6446 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6447
6448 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6449
6450 else
6451 test $ac_cv_type_unsigned_long_long_int = yes \
6452 && ac_type='unsigned long long int' \
6453 || ac_type='unsigned long int'
6454
6455 cat >>confdefs.h <<_ACEOF
6456 #define uintmax_t $ac_type
6457 _ACEOF
6458
6459 fi
6460
6461
6462
6463 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6464 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6465
6466 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6467
6468 else
6469 for ac_type in 'unsigned int' 'unsigned long int' \
6470 'unsigned long long int'; do
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6473 $ac_includes_default
6474 int
6475 main ()
6476 {
6477 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6478 test_array [0] = 0
6479
6480 ;
6481 return 0;
6482 }
6483 _ACEOF
6484 if ac_fn_cxx_try_compile "$LINENO"; then :
6485
6486 cat >>confdefs.h <<_ACEOF
6487 #define uintptr_t $ac_type
6488 _ACEOF
6489
6490 ac_type=
6491 fi
6492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493 test -z "$ac_type" && break
6494 done
6495 fi
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6511 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6512 fi
6513
6514 # check what underlying integer type int64_t uses
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6516 $as_echo_n "checking for int64_t underlying type... " >&6; }
6517 if test "${ac_cv_int64_t_type+set}" = set; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6523
6524 #ifdef HAVE_STDINT_H
6525 #include <stdint.h>
6526 #endif
6527 template <typename T> struct X { };
6528 template <>
6529 struct X<long> { typedef long t; };
6530
6531 int
6532 main ()
6533 {
6534 X<int64_t>::t x;
6535 ;
6536 return 0;
6537 }
6538 _ACEOF
6539 if ac_fn_cxx_try_compile "$LINENO"; then :
6540 ac_cv_int64_t_type=long
6541 else
6542 ac_cv_int64_t_type="long long"
6543 fi
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545 fi
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6547 $as_echo "$ac_cv_int64_t_type" >&6; }
6548 if test "$ac_cv_int64_t_type" = "long"; then
6549
6550 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6551
6552 else
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6555
6556 #ifdef HAVE_STDINT_H
6557 #include <stdint.h>
6558 #endif
6559 template <typename T> struct X { };
6560 template <>
6561 struct X<long long> { typedef long long t; };
6562
6563 int
6564 main ()
6565 {
6566 X<int64_t>::t x;
6567 ;
6568 return 0;
6569 }
6570 _ACEOF
6571 if ac_fn_cxx_try_compile "$LINENO"; then :
6572
6573 else
6574 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6575 fi
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 fi
6578
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6580 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6581 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6584
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6587
6588 #include <utility>
6589
6590 int
6591 main ()
6592 {
6593 int a, b; std::swap(a,b);
6594 ;
6595 return 0;
6596 }
6597 _ACEOF
6598 if ac_fn_cxx_try_compile "$LINENO"; then :
6599 ac_cv_std_swap_in_utility=yes
6600 else
6601 ac_cv_std_swap_in_utility=no
6602 fi
6603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604 fi
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6606 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6607 if test $ac_cv_std_swap_in_utility = yes; then
6608
6609 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6610
6611 fi
6612
6613 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6614 # If the host compiler is affected by the bug, and we build with optimization
6615 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6616 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6617 # Since there is no reliable feature check for the presence of this bug,
6618 # we simply use a GCC version number check. (This should never trigger for
6619 # stages 2 or 3 of a native bootstrap.)
6620 aliasing_flags=
6621 if test "$GCC" = yes; then
6622 saved_CXXFLAGS="$CXXFLAGS"
6623
6624 # The following test compilation will succeed if and only if $CXX accepts
6625 # -fno-strict-aliasing *and* is older than GCC 4.3.
6626 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6628 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h. */
6631
6632 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6633 #error compiler not affected by placement new aliasing bug
6634 #endif
6635
6636 _ACEOF
6637 if ac_fn_cxx_try_compile "$LINENO"; then :
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6639 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6640 else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6643 fi
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645
6646 CXXFLAGS="$saved_CXXFLAGS"
6647 fi
6648
6649
6650
6651
6652 # ---------------------
6653 # Warnings and checking
6654 # ---------------------
6655
6656 # Check $CC warning features (if it's GCC).
6657 # We want to use -pedantic, but we don't want warnings about
6658 # * 'long long'
6659 # * variadic macros
6660 # * overlong strings
6661 # * C++11 narrowing conversions in { }
6662 # So, we only use -pedantic if we can disable those warnings.
6663
6664 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6665 # Check whether --enable-build-format-warnings was given.
6666 if test "${enable_build_format_warnings+set}" = set; then :
6667 enableval=$enable_build_format_warnings;
6668 else
6669 enable_build_format_warnings=yes
6670 fi
6671
6672 if test $enable_build_format_warnings = no; then :
6673 wf_opt=-Wno-format
6674 else
6675 wf_opt=
6676 fi
6677 ac_ext=cpp
6678 ac_cpp='$CXXCPP $CPPFLAGS'
6679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6682
6683 loose_warn=
6684 save_CXXFLAGS="$CXXFLAGS"
6685 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6686 # Do the check with the no- prefix removed since gcc silently
6687 # accepts any -Wno-* option on purpose
6688 case $real_option in
6689 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6690 *) option=$real_option ;;
6691 esac
6692 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6693
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6695 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6696 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 CXXFLAGS="$option"
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6702
6703 int
6704 main ()
6705 {
6706
6707 ;
6708 return 0;
6709 }
6710 _ACEOF
6711 if ac_fn_cxx_try_compile "$LINENO"; then :
6712 eval "$as_acx_Woption=yes"
6713 else
6714 eval "$as_acx_Woption=no"
6715 fi
6716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717
6718 fi
6719 eval ac_res=\$$as_acx_Woption
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6721 $as_echo "$ac_res" >&6; }
6722 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6723 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6724 fi
6725 done
6726 CXXFLAGS="$save_CXXFLAGS"
6727 ac_ext=cpp
6728 ac_cpp='$CXXCPP $CPPFLAGS'
6729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6732
6733
6734
6735 ac_ext=c
6736 ac_cpp='$CPP $CPPFLAGS'
6737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6740
6741 c_loose_warn=
6742 save_CFLAGS="$CFLAGS"
6743 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6744 # Do the check with the no- prefix removed since gcc silently
6745 # accepts any -Wno-* option on purpose
6746 case $real_option in
6747 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6748 *) option=$real_option ;;
6749 esac
6750 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6751
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6753 $as_echo_n "checking whether $CC supports $option... " >&6; }
6754 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 CFLAGS="$option"
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6760
6761 int
6762 main ()
6763 {
6764
6765 ;
6766 return 0;
6767 }
6768 _ACEOF
6769 if ac_fn_c_try_compile "$LINENO"; then :
6770 eval "$as_acx_Woption=yes"
6771 else
6772 eval "$as_acx_Woption=no"
6773 fi
6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775
6776 fi
6777 eval ac_res=\$$as_acx_Woption
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6779 $as_echo "$ac_res" >&6; }
6780 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6781 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6782 fi
6783 done
6784 CFLAGS="$save_CFLAGS"
6785 ac_ext=cpp
6786 ac_cpp='$CXXCPP $CPPFLAGS'
6787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6790
6791
6792 ac_ext=cpp
6793 ac_cpp='$CXXCPP $CPPFLAGS'
6794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6797
6798 strict_warn=
6799 save_CXXFLAGS="$CXXFLAGS"
6800 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6801 # Do the check with the no- prefix removed since gcc silently
6802 # accepts any -Wno-* option on purpose
6803 case $real_option in
6804 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6805 *) option=$real_option ;;
6806 esac
6807 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6808
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6810 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6811 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 CXXFLAGS="$option"
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6817
6818 int
6819 main ()
6820 {
6821
6822 ;
6823 return 0;
6824 }
6825 _ACEOF
6826 if ac_fn_cxx_try_compile "$LINENO"; then :
6827 eval "$as_acx_Woption=yes"
6828 else
6829 eval "$as_acx_Woption=no"
6830 fi
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832
6833 fi
6834 eval ac_res=\$$as_acx_Woption
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6836 $as_echo "$ac_res" >&6; }
6837 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6838 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6839 fi
6840 done
6841 CXXFLAGS="$save_CXXFLAGS"
6842 ac_ext=cpp
6843 ac_cpp='$CXXCPP $CPPFLAGS'
6844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6847
6848
6849 ac_ext=c
6850 ac_cpp='$CPP $CPPFLAGS'
6851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6854
6855 c_strict_warn=
6856 save_CFLAGS="$CFLAGS"
6857 for real_option in -Wold-style-definition -Wc++-compat; do
6858 # Do the check with the no- prefix removed since gcc silently
6859 # accepts any -Wno-* option on purpose
6860 case $real_option in
6861 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6862 *) option=$real_option ;;
6863 esac
6864 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6865
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6867 $as_echo_n "checking whether $CC supports $option... " >&6; }
6868 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6869 $as_echo_n "(cached) " >&6
6870 else
6871 CFLAGS="$option"
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874
6875 int
6876 main ()
6877 {
6878
6879 ;
6880 return 0;
6881 }
6882 _ACEOF
6883 if ac_fn_c_try_compile "$LINENO"; then :
6884 eval "$as_acx_Woption=yes"
6885 else
6886 eval "$as_acx_Woption=no"
6887 fi
6888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889
6890 fi
6891 eval ac_res=\$$as_acx_Woption
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6893 $as_echo "$ac_res" >&6; }
6894 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6895 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6896 fi
6897 done
6898 CFLAGS="$save_CFLAGS"
6899 ac_ext=cpp
6900 ac_cpp='$CXXCPP $CPPFLAGS'
6901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6904
6905
6906 ac_ext=cpp
6907 ac_cpp='$CXXCPP $CPPFLAGS'
6908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6911
6912 # Do the check with the no- prefix removed from the warning options
6913 # since gcc silently accepts any -Wno-* option on purpose
6914 if test "$GXX" = yes; then :
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6916 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6917 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 save_CXXFLAGS="$CXXFLAGS"
6921 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6924
6925 int
6926 main ()
6927 {
6928
6929 ;
6930 return 0;
6931 }
6932 _ACEOF
6933 if ac_fn_cxx_try_compile "$LINENO"; then :
6934 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6935 else
6936 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6937 fi
6938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939 CXXFLAGS="$save_CXXFLAGS"
6940 fi
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6942 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6943 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6944 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6945 fi
6946
6947 fi
6948 ac_ext=cpp
6949 ac_cpp='$CXXCPP $CPPFLAGS'
6950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6953
6954
6955 ac_ext=cpp
6956 ac_cpp='$CXXCPP $CPPFLAGS'
6957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6960
6961 # Check whether --enable-werror-always was given.
6962 if test "${enable_werror_always+set}" = set; then :
6963 enableval=$enable_werror_always;
6964 else
6965 enable_werror_always=no
6966 fi
6967
6968 if test $enable_werror_always = yes; then :
6969 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6970 fi
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
6979
6980 # The above macros do nothing if the compiler is not GCC. However, the
6981 # Makefile has more goo to add other flags, so these variables are used
6982 # to enable warnings only for GCC.
6983 warn_cflags=
6984 warn_cxxflags=
6985 if test "x$GCC" = "xyes"; then
6986 warn_cflags='$(GCC_WARN_CFLAGS)'
6987 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6988 fi
6989
6990
6991
6992 # Disable exceptions and RTTI if building with g++
6993 ac_ext=c
6994 ac_cpp='$CPP $CPPFLAGS'
6995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6998
6999 noexception_flags=
7000 save_CFLAGS="$CFLAGS"
7001 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7002 # Do the check with the no- prefix removed since gcc silently
7003 # accepts any -Wno-* option on purpose
7004 case $real_option in
7005 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7006 *) option=$real_option ;;
7007 esac
7008 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7009
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7011 $as_echo_n "checking whether $CC supports $option... " >&6; }
7012 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 CFLAGS="$option"
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7018
7019 int
7020 main ()
7021 {
7022
7023 ;
7024 return 0;
7025 }
7026 _ACEOF
7027 if ac_fn_c_try_compile "$LINENO"; then :
7028 eval "$as_acx_Woption=yes"
7029 else
7030 eval "$as_acx_Woption=no"
7031 fi
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033
7034 fi
7035 eval ac_res=\$$as_acx_Woption
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7037 $as_echo "$ac_res" >&6; }
7038 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7039 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7040 fi
7041 done
7042 CFLAGS="$save_CFLAGS"
7043 ac_ext=cpp
7044 ac_cpp='$CXXCPP $CPPFLAGS'
7045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7048
7049
7050
7051 # Enable expensive internal checks
7052 is_release=
7053 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7054 is_release=yes
7055 fi
7056
7057 # Check whether --enable-checking was given.
7058 if test "${enable_checking+set}" = set; then :
7059 enableval=$enable_checking; ac_checking_flags="${enableval}"
7060 else
7061
7062 # Determine the default checks.
7063 if test x$is_release = x ; then
7064 ac_checking_flags=yes,extra
7065 else
7066 ac_checking_flags=release
7067 fi
7068 fi
7069
7070 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7071 for check in release $ac_checking_flags
7072 do
7073 case $check in
7074 # these set all the flags to specific states
7075 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7076 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7077 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7078 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7079 ac_tree_checking=1 ; ac_valgrind_checking= ;
7080 ac_types_checking=1 ;;
7081 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7082 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7083 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7084 ac_rtlflag_checking= ; ac_runtime_checking= ;
7085 ac_tree_checking= ; ac_valgrind_checking= ;
7086 ac_types_checking= ;;
7087 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7088 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7089 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7090 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7091 ac_tree_checking=1 ; ac_valgrind_checking= ;
7092 ac_types_checking=1 ;;
7093 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7094 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7095 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7096 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7097 ac_tree_checking= ; ac_valgrind_checking= ;
7098 ac_types_checking= ;;
7099 # these enable particular checks
7100 assert) ac_assert_checking=1 ;;
7101 df) ac_df_checking=1 ;;
7102 extra) ac_extra_checking=1 ;;
7103 fold) ac_fold_checking=1 ;;
7104 gc) ac_gc_checking=1 ;;
7105 gcac) ac_gc_always_collect=1 ;;
7106 gimple) ac_gimple_checking=1 ;;
7107 misc) ac_checking=1 ;;
7108 rtl) ac_rtl_checking=1 ;;
7109 rtlflag) ac_rtlflag_checking=1 ;;
7110 runtime) ac_runtime_checking=1 ;;
7111 tree) ac_tree_checking=1 ;;
7112 types) ac_types_checking=1 ;;
7113 valgrind) ac_valgrind_checking=1 ;;
7114 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7115 esac
7116 done
7117 IFS="$ac_save_IFS"
7118
7119 nocommon_flag=""
7120 if test x$ac_checking != x ; then
7121
7122 $as_echo "#define CHECKING_P 1" >>confdefs.h
7123
7124 nocommon_flag=-fno-common
7125 else
7126 $as_echo "#define CHECKING_P 0" >>confdefs.h
7127
7128 fi
7129
7130 if test x$ac_extra_checking != x ; then
7131
7132 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7133
7134 else
7135 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7136
7137 fi
7138 if test x$ac_df_checking != x ; then
7139
7140 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7141
7142 fi
7143 if test x$ac_assert_checking != x ; then
7144
7145 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7146
7147 fi
7148 if test x$ac_gimple_checking != x ; then
7149
7150 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7151
7152 fi
7153
7154 if test x$ac_runtime_checking != x ; then
7155
7156 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7157
7158 fi
7159 if test x$ac_tree_checking != x ; then
7160
7161 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7162
7163 TREECHECKING=yes
7164 fi
7165 if test x$ac_types_checking != x ; then
7166
7167 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7168
7169 fi
7170
7171 if test x$ac_rtl_checking != x ; then
7172
7173 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7174
7175 fi
7176 if test x$ac_rtlflag_checking != x ; then
7177
7178 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7179
7180 fi
7181 if test x$ac_gc_checking != x ; then
7182
7183 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7184
7185 fi
7186 if test x$ac_gc_always_collect != x ; then
7187
7188 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7189
7190 fi
7191 if test x$ac_fold_checking != x ; then
7192
7193 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7194
7195 fi
7196 valgrind_path_defines=
7197 valgrind_command=
7198
7199 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7200 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7201 have_valgrind_h=yes
7202 else
7203 have_valgrind_h=no
7204 fi
7205
7206
7207
7208 # It is certainly possible that there's valgrind but no valgrind.h.
7209 # GCC relies on making annotations so we must have both.
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7211 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h. */
7214 #include <valgrind/memcheck.h>
7215 #ifndef VALGRIND_DISCARD
7216 #error VALGRIND_DISCARD not defined
7217 #endif
7218 _ACEOF
7219 if ac_fn_cxx_try_cpp "$LINENO"; then :
7220 gcc_cv_header_valgrind_memcheck_h=yes
7221 else
7222 gcc_cv_header_valgrind_memcheck_h=no
7223 fi
7224 rm -f conftest.err conftest.$ac_ext
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7226 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7228 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7231 #include <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_memcheck_h=yes
7238 else
7239 gcc_cv_header_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_memcheck_h" >&5
7243 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7244 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7245
7246 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7247
7248 fi
7249 if test $gcc_cv_header_memcheck_h = yes; then
7250
7251 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7252
7253 fi
7254
7255 if test x$ac_valgrind_checking != x ; then
7256
7257 # Prepare PATH_SEPARATOR.
7258 # The user is always right.
7259 if test "${PATH_SEPARATOR+set}" != set; then
7260 echo "#! /bin/sh" >conf$$.sh
7261 echo "exit 0" >>conf$$.sh
7262 chmod +x conf$$.sh
7263 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7264 PATH_SEPARATOR=';'
7265 else
7266 PATH_SEPARATOR=:
7267 fi
7268 rm -f conf$$.sh
7269 fi
7270
7271 # Find out how to test for executable files. Don't use a zero-byte file,
7272 # as systems may use methods other than mode bits to determine executability.
7273 cat >conf$$.file <<_ASEOF
7274 #! /bin/sh
7275 exit 0
7276 _ASEOF
7277 chmod +x conf$$.file
7278 if test -x conf$$.file >/dev/null 2>&1; then
7279 ac_executable_p="test -x"
7280 else
7281 ac_executable_p="test -f"
7282 fi
7283 rm -f conf$$.file
7284
7285 # Extract the first word of "valgrind", so it can be a program name with args.
7286 set dummy valgrind; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7292 case "$valgrind_path" in
7293 [\\/]* | ?:[\\/]*)
7294 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7295 ;;
7296 *)
7297 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7298 for ac_dir in $PATH; do
7299 IFS="$ac_save_IFS"
7300 test -z "$ac_dir" && ac_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7303 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7304 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7305 break 2
7306 fi
7307 fi
7308 done
7309 done
7310 IFS="$ac_save_IFS"
7311 ;;
7312 esac
7313 fi
7314 valgrind_path="$ac_cv_path_valgrind_path"
7315 if test -n "$valgrind_path"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7317 $as_echo "$valgrind_path" >&6; }
7318 else
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322
7323 if test "x$valgrind_path" = "x" \
7324 || (test $have_valgrind_h = no \
7325 && test $gcc_cv_header_memcheck_h = no \
7326 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7327 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7328 fi
7329 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7330 valgrind_command="$valgrind_path -q"
7331
7332 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7333
7334 fi
7335
7336
7337
7338 # Enable code coverage collection
7339 # Check whether --enable-coverage was given.
7340 if test "${enable_coverage+set}" = set; then :
7341 enableval=$enable_coverage; case "${enableval}" in
7342 yes|noopt)
7343 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7344 ;;
7345 opt)
7346 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7347 ;;
7348 no)
7349 # a.k.a. --disable-coverage
7350 coverage_flags=""
7351 ;;
7352 *)
7353 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7354 ;;
7355 esac
7356 else
7357 coverage_flags=""
7358 fi
7359
7360
7361
7362 # Check whether --enable-gather-detailed-mem-stats was given.
7363 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7364 enableval=$enable_gather_detailed_mem_stats;
7365 else
7366 enable_gather_detailed_mem_stats=no
7367 fi
7368
7369 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7370
7371 cat >>confdefs.h <<_ACEOF
7372 #define GATHER_STATISTICS $gather_stats
7373 _ACEOF
7374
7375
7376 # Check whether --enable-valgrind-annotations was given.
7377 if test "${enable_valgrind_annotations+set}" = set; then :
7378 enableval=$enable_valgrind_annotations;
7379 else
7380 enable_valgrind_annotations=no
7381 fi
7382
7383 if test x$enable_valgrind_annotations != xno \
7384 || test x$ac_valgrind_checking != x; then
7385 if (test $have_valgrind_h = no \
7386 && test $gcc_cv_header_memcheck_h = no \
7387 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7388 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7389 fi
7390
7391 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7392
7393 fi
7394
7395 # -------------------------------
7396 # Miscenalleous configure options
7397 # -------------------------------
7398
7399 # With stabs
7400
7401 # Check whether --with-stabs was given.
7402 if test "${with_stabs+set}" = set; then :
7403 withval=$with_stabs; stabs="$with_stabs"
7404 else
7405 stabs=no
7406 fi
7407
7408
7409 # Determine whether or not multilibs are enabled.
7410 # Check whether --enable-multilib was given.
7411 if test "${enable_multilib+set}" = set; then :
7412 enableval=$enable_multilib;
7413 else
7414 enable_multilib=yes
7415 fi
7416
7417
7418
7419 # Determine whether or not multiarch is enabled.
7420 # Check whether --enable-multiarch was given.
7421 if test "${enable_multiarch+set}" = set; then :
7422 enableval=$enable_multiarch; case "${enableval}" in
7423 yes|no|auto) enable_multiarch=$enableval;;
7424 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7425 esac
7426 else
7427 enable_multiarch=auto
7428 fi
7429
7430 if test x${enable_multiarch} = xauto; then
7431 if test x${with_native_system_header_dir} != x; then
7432 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7433 enable_multiarch=no
7434 fi
7435 if test x$host != x$target && test "x$with_sysroot" = x; then
7436 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7437 enable_multiarch=no
7438 fi
7439 fi
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7441 $as_echo_n "checking for multiarch configuration... " >&6; }
7442
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7444 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7445
7446 # needed for setting the multiarch name for soft-float/hard-float ABIs
7447
7448
7449
7450 # default stack clash protection guard size as power of twos in bytes.
7451 # Please keep these in sync with params.def.
7452 stk_clash_min=12
7453 stk_clash_max=30
7454
7455 # Keep the default value when the option is not used to 0, this allows us to
7456 # distinguish between the cases where the user specifially set a value via
7457 # configure and when the normal default value is used.
7458
7459 # Check whether --with-stack-clash-protection-guard-size was given.
7460 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7461 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7462 else
7463 DEFAULT_STK_CLASH_GUARD_SIZE=0
7464 fi
7465
7466 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7467 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7468 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7469 as_fn_error "Invalid value $DEFAULT_STK_CLASH_GUARD_SIZE for --with-stack-clash-protection-guard-size. Must be between $stk_clash_min and $stk_clash_max." "$LINENO" 5
7470 fi
7471
7472
7473 cat >>confdefs.h <<_ACEOF
7474 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7475 _ACEOF
7476
7477
7478 # Enable __cxa_atexit for C++.
7479 # Check whether --enable-__cxa_atexit was given.
7480 if test "${enable___cxa_atexit+set}" = set; then :
7481 enableval=$enable___cxa_atexit;
7482 fi
7483
7484
7485 # Enable C extension for decimal float if target supports it.
7486
7487 # Check whether --enable-decimal-float was given.
7488 if test "${enable_decimal_float+set}" = set; then :
7489 enableval=$enable_decimal_float;
7490 case $enable_decimal_float in
7491 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7492 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7493 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7494 esac
7495
7496 else
7497
7498 case $target in
7499 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7500 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7501 i?86*-*-mingw* | x86_64*-*-mingw* | \
7502 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7503 enable_decimal_float=yes
7504 ;;
7505 *)
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7507 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7508 enable_decimal_float=no
7509 ;;
7510 esac
7511
7512 fi
7513
7514
7515 # x86's use BID format instead of DPD
7516 case x$enable_decimal_float in
7517 xyes)
7518 case $target in
7519 i?86*-*-* | x86_64*-*-*)
7520 enable_decimal_float=bid
7521 ;;
7522 *)
7523 enable_decimal_float=dpd
7524 ;;
7525 esac
7526 default_decimal_float=$enable_decimal_float
7527 ;;
7528 xno)
7529 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7530 # dependency on libdecnumber.
7531 default_decimal_float=dpd
7532 ;;
7533 esac
7534
7535
7536
7537
7538 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7539
7540 cat >>confdefs.h <<_ACEOF
7541 #define ENABLE_DECIMAL_FLOAT $dfp
7542 _ACEOF
7543
7544
7545 # Use default_decimal_float for dependency.
7546 enable_decimal_float=$default_decimal_float
7547
7548 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7549
7550 cat >>confdefs.h <<_ACEOF
7551 #define ENABLE_DECIMAL_BID_FORMAT $bid
7552 _ACEOF
7553
7554
7555 # Enable C extension for fixed-point arithmetic.
7556 # Check whether --enable-fixed-point was given.
7557 if test "${enable_fixed_point+set}" = set; then :
7558 enableval=$enable_fixed_point;
7559 else
7560
7561 case $target in
7562 arm*)
7563 enable_fixed_point=yes
7564 ;;
7565
7566 mips*-*-*)
7567 enable_fixed_point=yes
7568 ;;
7569 *)
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7571 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7572 enable_fixed_point=no
7573 ;;
7574 esac
7575
7576 fi
7577
7578
7579
7580 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7581
7582 cat >>confdefs.h <<_ACEOF
7583 #define ENABLE_FIXED_POINT $fixedpoint
7584 _ACEOF
7585
7586
7587 # Enable threads
7588 # Pass with no value to take the default
7589 # Pass with a value to specify a thread package
7590 # Check whether --enable-threads was given.
7591 if test "${enable_threads+set}" = set; then :
7592 enableval=$enable_threads;
7593 else
7594 enable_threads=''
7595 fi
7596
7597
7598 # Check whether --enable-tls was given.
7599 if test "${enable_tls+set}" = set; then :
7600 enableval=$enable_tls;
7601 case $enable_tls in
7602 yes | no) ;;
7603 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7604 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7605 esac
7606
7607 else
7608 enable_tls=''
7609 fi
7610
7611
7612 # Check whether --enable-vtable-verify was given.
7613 if test "${enable_vtable_verify+set}" = set; then :
7614 enableval=$enable_vtable_verify;
7615 else
7616 enable_vtable_verify=no
7617 fi
7618
7619 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7620
7621 cat >>confdefs.h <<_ACEOF
7622 #define ENABLE_VTABLE_VERIFY $vtable_verify
7623 _ACEOF
7624
7625
7626 # Check whether --enable-objc-gc was given.
7627 if test "${enable_objc_gc+set}" = set; then :
7628 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7629 objc_boehm_gc=''
7630 else
7631 objc_boehm_gc=1
7632 fi
7633 else
7634 objc_boehm_gc=''
7635 fi
7636
7637
7638
7639 # Check whether --with-dwarf2 was given.
7640 if test "${with_dwarf2+set}" = set; then :
7641 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7642 else
7643 dwarf2=no
7644 fi
7645
7646
7647 # Check whether --enable-shared was given.
7648 if test "${enable_shared+set}" = set; then :
7649 enableval=$enable_shared;
7650 case $enable_shared in
7651 yes | no) ;;
7652 *)
7653 enable_shared=no
7654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7655 for pkg in $enableval; do
7656 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7657 enable_shared=yes
7658 fi
7659 done
7660 IFS="$ac_save_ifs"
7661 ;;
7662 esac
7663
7664 else
7665 enable_shared=yes
7666 fi
7667
7668
7669
7670 # Check whether --enable-gcov was given.
7671 if test "${enable_gcov+set}" = set; then :
7672 enableval=$enable_gcov;
7673 else
7674 enable_gcov=yes
7675 fi
7676
7677
7678
7679
7680 # Check whether --with-specs was given.
7681 if test "${with_specs+set}" = set; then :
7682 withval=$with_specs; CONFIGURE_SPECS=$withval
7683 else
7684 CONFIGURE_SPECS=
7685
7686 fi
7687
7688
7689
7690
7691
7692 # Check whether --with-pkgversion was given.
7693 if test "${with_pkgversion+set}" = set; then :
7694 withval=$with_pkgversion; case "$withval" in
7695 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7696 no) PKGVERSION= ;;
7697 *) PKGVERSION="($withval) " ;;
7698 esac
7699 else
7700 PKGVERSION="(GCC) "
7701
7702 fi
7703
7704
7705
7706
7707
7708 # Check whether --with-bugurl was given.
7709 if test "${with_bugurl+set}" = set; then :
7710 withval=$with_bugurl; case "$withval" in
7711 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7712 no) BUGURL=
7713 ;;
7714 *) BUGURL="$withval"
7715 ;;
7716 esac
7717 else
7718 BUGURL="https://gcc.gnu.org/bugs/"
7719
7720 fi
7721
7722 case ${BUGURL} in
7723 "")
7724 REPORT_BUGS_TO=
7725 REPORT_BUGS_TEXI=
7726 ;;
7727 *)
7728 REPORT_BUGS_TO="<$BUGURL>"
7729 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7730 ;;
7731 esac;
7732
7733
7734
7735
7736 # Sanity check enable_languages in case someone does not run the toplevel
7737 # configure # script.
7738 # Check whether --enable-languages was given.
7739 if test "${enable_languages+set}" = set; then :
7740 enableval=$enable_languages; case ,${enable_languages}, in
7741 ,,|,yes,)
7742 # go safe -- we cannot be much sure without the toplevel
7743 # configure's
7744 # analysis of which target libs are present and usable
7745 enable_languages=c
7746 ;;
7747 *,all,*)
7748 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7749 ;;
7750 *,c,*)
7751 ;;
7752 *)
7753 enable_languages=c,${enable_languages}
7754 ;;
7755 esac
7756 else
7757 enable_languages=c
7758 fi
7759
7760
7761 if test x"$enable_as_accelerator_for" != x; then
7762
7763 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7764
7765 enable_as_accelerator=yes
7766 case "${target}" in
7767 *-intelmicemul-*)
7768 # In this case we expect offload compiler to be built as native, so we
7769 # need to rename the driver to avoid clashes with host's drivers.
7770 program_transform_name="s&^&${target}-&" ;;
7771 esac
7772 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7773 program_transform_name=`echo $program_transform_name | sed $sedscript`
7774 accel_dir_suffix=/accel/${target_noncanonical}
7775 real_target_noncanonical=${enable_as_accelerator_for}
7776 fi
7777
7778
7779
7780
7781 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7782 tgt=`echo $tgt | sed 's/=.*//'`
7783
7784 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7785 enable_hsa=1
7786 else
7787 enable_offloading=1
7788 fi
7789
7790 if test x"$offload_targets" = x; then
7791 offload_targets=$tgt
7792 else
7793 offload_targets="$offload_targets,$tgt"
7794 fi
7795 done
7796
7797 cat >>confdefs.h <<_ACEOF
7798 #define OFFLOAD_TARGETS "$offload_targets"
7799 _ACEOF
7800
7801 if test x"$enable_offloading" != x; then
7802
7803 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7804
7805 else
7806
7807 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7808
7809 fi
7810
7811 if test x"$enable_hsa" = x1 ; then
7812
7813 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7814
7815 fi
7816
7817
7818 # Check whether --with-multilib-list was given.
7819 if test "${with_multilib_list+set}" = set; then :
7820 withval=$with_multilib_list; :
7821 else
7822 with_multilib_list=default
7823 fi
7824
7825
7826 # -------------------------
7827 # Checks for other programs
7828 # -------------------------
7829
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7831 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7832 set x ${MAKE-make}
7833 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7834 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 cat >conftest.make <<\_ACEOF
7838 SHELL = /bin/sh
7839 all:
7840 @echo '@@@%%%=$(MAKE)=@@@%%%'
7841 _ACEOF
7842 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7843 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7844 *@@@%%%=?*=@@@%%%*)
7845 eval ac_cv_prog_make_${ac_make}_set=yes;;
7846 *)
7847 eval ac_cv_prog_make_${ac_make}_set=no;;
7848 esac
7849 rm -f conftest.make
7850 fi
7851 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7853 $as_echo "yes" >&6; }
7854 SET_MAKE=
7855 else
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857 $as_echo "no" >&6; }
7858 SET_MAKE="MAKE=${MAKE-make}"
7859 fi
7860
7861
7862 # Find some useful tools
7863 for ac_prog in gawk mawk nawk awk
7864 do
7865 # Extract the first word of "$ac_prog", so it can be a program name with args.
7866 set dummy $ac_prog; ac_word=$2
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7868 $as_echo_n "checking for $ac_word... " >&6; }
7869 if test "${ac_cv_prog_AWK+set}" = set; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7872 if test -n "$AWK"; then
7873 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7874 else
7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 for as_dir in $PATH
7877 do
7878 IFS=$as_save_IFS
7879 test -z "$as_dir" && as_dir=.
7880 for ac_exec_ext in '' $ac_executable_extensions; do
7881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7882 ac_cv_prog_AWK="$ac_prog"
7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 break 2
7885 fi
7886 done
7887 done
7888 IFS=$as_save_IFS
7889
7890 fi
7891 fi
7892 AWK=$ac_cv_prog_AWK
7893 if test -n "$AWK"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7895 $as_echo "$AWK" >&6; }
7896 else
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7899 fi
7900
7901
7902 test -n "$AWK" && break
7903 done
7904
7905 # We need awk to create options.c and options.h.
7906 # Bail out if it's missing.
7907 case ${AWK} in
7908 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7909 esac
7910
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7912 $as_echo_n "checking whether ln -s works... " >&6; }
7913 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 rm -f conftestdata_t
7917 echo >conftestdata_f
7918 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7919 then
7920 gcc_cv_prog_LN_S="ln -s"
7921 else
7922 if ln conftestdata_f conftestdata_t 2>/dev/null
7923 then
7924 gcc_cv_prog_LN_S=ln
7925 else
7926 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7927 then
7928 gcc_cv_prog_LN_S="cp -p"
7929 else
7930 gcc_cv_prog_LN_S=cp
7931 fi
7932 fi
7933 fi
7934 rm -f conftestdata_f conftestdata_t
7935
7936 fi
7937 LN_S="$gcc_cv_prog_LN_S"
7938 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7940 $as_echo "yes" >&6; }
7941 else
7942 if test "$gcc_cv_prog_LN_S" = "ln"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7944 $as_echo "no, using ln" >&6; }
7945 else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7947 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7948 fi
7949 fi
7950
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7952 $as_echo_n "checking whether ln works... " >&6; }
7953 if test "${acx_cv_prog_LN+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 rm -f conftestdata_t
7957 echo >conftestdata_f
7958 if ln conftestdata_f conftestdata_t 2>/dev/null
7959 then
7960 acx_cv_prog_LN=ln
7961 else
7962 acx_cv_prog_LN=no
7963 fi
7964 rm -f conftestdata_f conftestdata_t
7965
7966 fi
7967 if test $acx_cv_prog_LN = no; then
7968 LN="$LN_S"
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7970 $as_echo "no, using $LN" >&6; }
7971 else
7972 LN="$acx_cv_prog_LN"
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7974 $as_echo "yes" >&6; }
7975 fi
7976
7977 if test -n "$ac_tool_prefix"; then
7978 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7979 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 if test -n "$RANLIB"; then
7986 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7990 do
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 break 2
7998 fi
7999 done
8000 done
8001 IFS=$as_save_IFS
8002
8003 fi
8004 fi
8005 RANLIB=$ac_cv_prog_RANLIB
8006 if test -n "$RANLIB"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8008 $as_echo "$RANLIB" >&6; }
8009 else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8012 fi
8013
8014
8015 fi
8016 if test -z "$ac_cv_prog_RANLIB"; then
8017 ac_ct_RANLIB=$RANLIB
8018 # Extract the first word of "ranlib", so it can be a program name with args.
8019 set dummy ranlib; ac_word=$2
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021 $as_echo_n "checking for $ac_word... " >&6; }
8022 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8023 $as_echo_n "(cached) " >&6
8024 else
8025 if test -n "$ac_ct_RANLIB"; then
8026 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8027 else
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8030 do
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8035 ac_cv_prog_ac_ct_RANLIB="ranlib"
8036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 break 2
8038 fi
8039 done
8040 done
8041 IFS=$as_save_IFS
8042
8043 fi
8044 fi
8045 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8046 if test -n "$ac_ct_RANLIB"; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8048 $as_echo "$ac_ct_RANLIB" >&6; }
8049 else
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8052 fi
8053
8054 if test "x$ac_ct_RANLIB" = x; then
8055 RANLIB=":"
8056 else
8057 case $cross_compiling:$ac_tool_warned in
8058 yes:)
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8061 ac_tool_warned=yes ;;
8062 esac
8063 RANLIB=$ac_ct_RANLIB
8064 fi
8065 else
8066 RANLIB="$ac_cv_prog_RANLIB"
8067 fi
8068
8069 ranlib_flags=""
8070
8071
8072 # Find a good install program. We prefer a C program (faster),
8073 # so one script is as good as another. But avoid the broken or
8074 # incompatible versions:
8075 # SysV /etc/install, /usr/sbin/install
8076 # SunOS /usr/etc/install
8077 # IRIX /sbin/install
8078 # AIX /bin/install
8079 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8080 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8081 # ./install, which can be erroneously created by make from ./install.sh.
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8083 $as_echo_n "checking for a BSD compatible install... " >&6; }
8084 if test -z "$INSTALL"; then
8085 if test "${ac_cv_path_install+set}" = set; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8089 for ac_dir in $PATH; do
8090 # Account for people who put trailing slashes in PATH elements.
8091 case "$ac_dir/" in
8092 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8093 *)
8094 # OSF1 and SCO ODT 3.0 have their own names for install.
8095 for ac_prog in ginstall scoinst install; do
8096 if test -f $ac_dir/$ac_prog; then
8097 if test $ac_prog = install &&
8098 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8099 # AIX install. It has an incompatible calling convention.
8100 # OSF/1 installbsd also uses dspmsg, but is usable.
8101 :
8102 else
8103 ac_cv_path_install="$ac_dir/$ac_prog -c"
8104 break 2
8105 fi
8106 fi
8107 done
8108 ;;
8109 esac
8110 done
8111 IFS="$ac_save_IFS"
8112
8113 fi
8114 if test "${ac_cv_path_install+set}" = set; then
8115 INSTALL="$ac_cv_path_install"
8116 else
8117 # As a last resort, use the slow shell script. We don't cache a
8118 # path for INSTALL within a source directory, because that will
8119 # break other packages using the cache if that directory is
8120 # removed, or if the path is relative.
8121 INSTALL="$ac_install_sh"
8122 fi
8123 fi
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8125 $as_echo "$INSTALL" >&6; }
8126
8127 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8128 # It thinks the first close brace ends the variable substitution.
8129 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8130
8131 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8132
8133
8134 # See if cmp has --ignore-initial.
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8136 $as_echo_n "checking for cmp's capabilities... " >&6; }
8137 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8138 $as_echo_n "(cached) " >&6
8139 else
8140 echo abfoo >t1
8141 echo cdfoo >t2
8142 gcc_cv_prog_cmp_skip=slowcompare
8143 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8144 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8145 :
8146 else
8147 gcc_cv_prog_cmp_skip=gnucompare
8148 fi
8149 fi
8150 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8151 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8152 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8153 :
8154 else
8155 gcc_cv_prog_cmp_skip=fastcompare
8156 fi
8157 fi
8158 fi
8159 rm t1 t2
8160
8161 fi
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8163 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8164 make_compare_target=$gcc_cv_prog_cmp_skip
8165
8166
8167
8168 # See if we have the mktemp command.
8169 # Extract the first word of "mktemp", so it can be a program name with args.
8170 set dummy mktemp; ac_word=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 if test -n "$have_mktemp_command"; then
8177 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8178 else
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8181 do
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8186 ac_cv_prog_have_mktemp_command="yes"
8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 break 2
8189 fi
8190 done
8191 done
8192 IFS=$as_save_IFS
8193
8194 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8195 fi
8196 fi
8197 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8198 if test -n "$have_mktemp_command"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8200 $as_echo "$have_mktemp_command" >&6; }
8201 else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8204 fi
8205
8206
8207
8208 # See if makeinfo has been installed and is modern enough
8209 # that we can use it.
8210
8211 # Extract the first word of "makeinfo", so it can be a program name with args.
8212 set dummy makeinfo; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 if test -n "$MAKEINFO"; then
8219 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8223 do
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8228 ac_cv_prog_MAKEINFO="makeinfo"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230 break 2
8231 fi
8232 done
8233 done
8234 IFS=$as_save_IFS
8235
8236 fi
8237 fi
8238 MAKEINFO=$ac_cv_prog_MAKEINFO
8239 if test -n "$MAKEINFO"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8241 $as_echo "$MAKEINFO" >&6; }
8242 else
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8245 fi
8246
8247
8248 if test -n "$MAKEINFO"; then
8249 # Found it, now check the version.
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8251 $as_echo_n "checking for modern makeinfo... " >&6; }
8252 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8253 $as_echo_n "(cached) " >&6
8254 else
8255 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8256 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8257
8258 case $ac_prog_version in
8259 '') gcc_cv_prog_makeinfo_modern=no;;
8260 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8261 *) gcc_cv_prog_makeinfo_modern=no;;
8262 esac
8263
8264 fi
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8266 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8267 else
8268 gcc_cv_prog_makeinfo_modern=no
8269 fi
8270 if test $gcc_cv_prog_makeinfo_modern = no; then
8271 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8272 fi
8273
8274 if test $gcc_cv_prog_makeinfo_modern = no; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8276 *** Makeinfo is missing or too old.
8277 *** Info documentation will not be built." >&5
8278 $as_echo "$as_me: WARNING:
8279 *** Makeinfo is missing or too old.
8280 *** Info documentation will not be built." >&2;}
8281 BUILD_INFO=
8282 else
8283 BUILD_INFO=info
8284 fi
8285
8286
8287 # Is pod2man recent enough to regenerate manpages?
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8289 $as_echo_n "checking for recent Pod::Man... " >&6; }
8290 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8292 $as_echo "yes" >&6; }
8293 GENERATED_MANPAGES=generated-manpages
8294 else
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8297 GENERATED_MANPAGES=
8298 fi
8299
8300
8301 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8302
8303 # How about lex?
8304 for ac_prog in flex
8305 do
8306 # Extract the first word of "$ac_prog", so it can be a program name with args.
8307 set dummy $ac_prog; ac_word=$2
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8309 $as_echo_n "checking for $ac_word... " >&6; }
8310 if test "${ac_cv_prog_FLEX+set}" = set; then :
8311 $as_echo_n "(cached) " >&6
8312 else
8313 if test -n "$FLEX"; then
8314 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8315 else
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 for as_dir in $PATH
8318 do
8319 IFS=$as_save_IFS
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8323 ac_cv_prog_FLEX="$ac_prog"
8324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 break 2
8326 fi
8327 done
8328 done
8329 IFS=$as_save_IFS
8330
8331 fi
8332 fi
8333 FLEX=$ac_cv_prog_FLEX
8334 if test -n "$FLEX"; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8336 $as_echo "$FLEX" >&6; }
8337 else
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 $as_echo "no" >&6; }
8340 fi
8341
8342
8343 test -n "$FLEX" && break
8344 done
8345 test -n "$FLEX" || FLEX="$MISSING flex"
8346
8347
8348 # Bison?
8349 for ac_prog in bison
8350 do
8351 # Extract the first word of "$ac_prog", so it can be a program name with args.
8352 set dummy $ac_prog; ac_word=$2
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354 $as_echo_n "checking for $ac_word... " >&6; }
8355 if test "${ac_cv_prog_BISON+set}" = set; then :
8356 $as_echo_n "(cached) " >&6
8357 else
8358 if test -n "$BISON"; then
8359 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8360 else
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 for as_dir in $PATH
8363 do
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8368 ac_cv_prog_BISON="$ac_prog"
8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 break 2
8371 fi
8372 done
8373 done
8374 IFS=$as_save_IFS
8375
8376 fi
8377 fi
8378 BISON=$ac_cv_prog_BISON
8379 if test -n "$BISON"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8381 $as_echo "$BISON" >&6; }
8382 else
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8385 fi
8386
8387
8388 test -n "$BISON" && break
8389 done
8390 test -n "$BISON" || BISON="$MISSING bison"
8391
8392
8393 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8394 # check for build == host before using them.
8395
8396 # NM
8397 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8398 && test -d ../binutils ; then
8399 NM='${objdir}/../binutils/nm-new'
8400 else
8401 # Extract the first word of "nm", so it can be a program name with args.
8402 set dummy nm; ac_word=$2
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404 $as_echo_n "checking for $ac_word... " >&6; }
8405 if test "${ac_cv_prog_NM+set}" = set; then :
8406 $as_echo_n "(cached) " >&6
8407 else
8408 if test -n "$NM"; then
8409 ac_cv_prog_NM="$NM" # Let the user override the test.
8410 else
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8413 do
8414 IFS=$as_save_IFS
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8418 ac_cv_prog_NM="nm"
8419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8420 break 2
8421 fi
8422 done
8423 done
8424 IFS=$as_save_IFS
8425
8426 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8427 fi
8428 fi
8429 NM=$ac_cv_prog_NM
8430 if test -n "$NM"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8432 $as_echo "$NM" >&6; }
8433 else
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8436 fi
8437
8438
8439 fi
8440
8441 # AR
8442 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8443 && test -d ../binutils ; then
8444 AR='${objdir}/../binutils/ar'
8445 else
8446 # Extract the first word of "ar", so it can be a program name with args.
8447 set dummy ar; ac_word=$2
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8449 $as_echo_n "checking for $ac_word... " >&6; }
8450 if test "${ac_cv_prog_AR+set}" = set; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 if test -n "$AR"; then
8454 ac_cv_prog_AR="$AR" # Let the user override the test.
8455 else
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 for as_dir in $PATH
8458 do
8459 IFS=$as_save_IFS
8460 test -z "$as_dir" && as_dir=.
8461 for ac_exec_ext in '' $ac_executable_extensions; do
8462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8463 ac_cv_prog_AR="ar"
8464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8465 break 2
8466 fi
8467 done
8468 done
8469 IFS=$as_save_IFS
8470
8471 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8472 fi
8473 fi
8474 AR=$ac_cv_prog_AR
8475 if test -n "$AR"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8477 $as_echo "$AR" >&6; }
8478 else
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8481 fi
8482
8483
8484 fi
8485
8486 # The jit documentation looks better if built with sphinx, but can be
8487 # built with texinfo if sphinx is not available.
8488 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8489 # Extract the first word of "sphinx-build", so it can be a program name with args.
8490 set dummy sphinx-build; ac_word=$2
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492 $as_echo_n "checking for $ac_word... " >&6; }
8493 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 if test -n "$doc_build_sys"; then
8497 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8498 else
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500 for as_dir in $PATH
8501 do
8502 IFS=$as_save_IFS
8503 test -z "$as_dir" && as_dir=.
8504 for ac_exec_ext in '' $ac_executable_extensions; do
8505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8506 ac_cv_prog_doc_build_sys="sphinx"
8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508 break 2
8509 fi
8510 done
8511 done
8512 IFS=$as_save_IFS
8513
8514 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8515 fi
8516 fi
8517 doc_build_sys=$ac_cv_prog_doc_build_sys
8518 if test -n "$doc_build_sys"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8520 $as_echo "$doc_build_sys" >&6; }
8521 else
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8524 fi
8525
8526
8527
8528 # --------------------
8529 # Checks for C headers
8530 # --------------------
8531
8532 # Need to reject headers which give warnings, so that the -Werror bootstrap
8533 # works later. *sigh* This needs to come before all header checks.
8534
8535 ac_c_preproc_warn_flag=yes
8536
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8538 $as_echo_n "checking for ANSI C header files... " >&6; }
8539 if test "${ac_cv_header_stdc+set}" = set; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543 /* end confdefs.h. */
8544 #include <stdlib.h>
8545 #include <stdarg.h>
8546 #include <string.h>
8547 #include <float.h>
8548
8549 int
8550 main ()
8551 {
8552
8553 ;
8554 return 0;
8555 }
8556 _ACEOF
8557 if ac_fn_cxx_try_compile "$LINENO"; then :
8558 ac_cv_header_stdc=yes
8559 else
8560 ac_cv_header_stdc=no
8561 fi
8562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563
8564 if test $ac_cv_header_stdc = yes; then
8565 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 #include <string.h>
8569
8570 _ACEOF
8571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8572 $EGREP "memchr" >/dev/null 2>&1; then :
8573
8574 else
8575 ac_cv_header_stdc=no
8576 fi
8577 rm -f conftest*
8578
8579 fi
8580
8581 if test $ac_cv_header_stdc = yes; then
8582 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8585 #include <stdlib.h>
8586
8587 _ACEOF
8588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8589 $EGREP "free" >/dev/null 2>&1; then :
8590
8591 else
8592 ac_cv_header_stdc=no
8593 fi
8594 rm -f conftest*
8595
8596 fi
8597
8598 if test $ac_cv_header_stdc = yes; then
8599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8600 if test "$cross_compiling" = yes; then :
8601 :
8602 else
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605 #include <ctype.h>
8606 #include <stdlib.h>
8607 #if ((' ' & 0x0FF) == 0x020)
8608 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8609 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8610 #else
8611 # define ISLOWER(c) \
8612 (('a' <= (c) && (c) <= 'i') \
8613 || ('j' <= (c) && (c) <= 'r') \
8614 || ('s' <= (c) && (c) <= 'z'))
8615 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8616 #endif
8617
8618 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8619 int
8620 main ()
8621 {
8622 int i;
8623 for (i = 0; i < 256; i++)
8624 if (XOR (islower (i), ISLOWER (i))
8625 || toupper (i) != TOUPPER (i))
8626 return 2;
8627 return 0;
8628 }
8629 _ACEOF
8630 if ac_fn_cxx_try_run "$LINENO"; then :
8631
8632 else
8633 ac_cv_header_stdc=no
8634 fi
8635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8636 conftest.$ac_objext conftest.beam conftest.$ac_ext
8637 fi
8638
8639 fi
8640 fi
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8642 $as_echo "$ac_cv_header_stdc" >&6; }
8643 if test $ac_cv_header_stdc = yes; then
8644
8645 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8646
8647 fi
8648
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8650 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8651 if test "${ac_cv_header_time+set}" = set; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8656 #include <sys/types.h>
8657 #include <sys/time.h>
8658 #include <time.h>
8659
8660 int
8661 main ()
8662 {
8663 if ((struct tm *) 0)
8664 return 0;
8665 ;
8666 return 0;
8667 }
8668 _ACEOF
8669 if ac_fn_cxx_try_compile "$LINENO"; then :
8670 ac_cv_header_time=yes
8671 else
8672 ac_cv_header_time=no
8673 fi
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 fi
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8677 $as_echo "$ac_cv_header_time" >&6; }
8678 if test $ac_cv_header_time = yes; then
8679
8680 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8681
8682 fi
8683
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8685 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8686 if test "${gcc_cv_header_string+set}" = set; then :
8687 $as_echo_n "(cached) " >&6
8688 else
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8691 #include <string.h>
8692 #include <strings.h>
8693 int
8694 main ()
8695 {
8696
8697 ;
8698 return 0;
8699 }
8700 _ACEOF
8701 if ac_fn_cxx_try_compile "$LINENO"; then :
8702 gcc_cv_header_string=yes
8703 else
8704 gcc_cv_header_string=no
8705 fi
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707 fi
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8709 $as_echo "$gcc_cv_header_string" >&6; }
8710 if test $gcc_cv_header_string = yes; then
8711
8712 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8713
8714 fi
8715
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8717 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8718 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8719 $as_echo_n "(cached) " >&6
8720 else
8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8723 #include <sys/types.h>
8724 #include <sys/wait.h>
8725 #ifndef WEXITSTATUS
8726 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8727 #endif
8728 #ifndef WIFEXITED
8729 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8730 #endif
8731
8732 int
8733 main ()
8734 {
8735 int s;
8736 wait (&s);
8737 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8738 ;
8739 return 0;
8740 }
8741 _ACEOF
8742 if ac_fn_cxx_try_compile "$LINENO"; then :
8743 ac_cv_header_sys_wait_h=yes
8744 else
8745 ac_cv_header_sys_wait_h=no
8746 fi
8747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8748 fi
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8750 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8751 if test $ac_cv_header_sys_wait_h = yes; then
8752
8753 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8754
8755 fi
8756
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8758 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8759 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8760 $as_echo_n "(cached) " >&6
8761 else
8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h. */
8764 #include <sys/types.h>
8765 #include <termios.h>
8766 #ifdef TIOCGWINSZ
8767 yes
8768 #endif
8769
8770 _ACEOF
8771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8772 $EGREP "yes" >/dev/null 2>&1; then :
8773 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8774 else
8775 ac_cv_sys_tiocgwinsz_in_termios_h=no
8776 fi
8777 rm -f conftest*
8778
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8781 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8782
8783 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8785 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8786 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 #include <sys/types.h>
8792 #include <sys/ioctl.h>
8793 #ifdef TIOCGWINSZ
8794 yes
8795 #endif
8796
8797 _ACEOF
8798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8799 $EGREP "yes" >/dev/null 2>&1; then :
8800 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8801 else
8802 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8803 fi
8804 rm -f conftest*
8805
8806 fi
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8808 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8809
8810 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8811
8812 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8813
8814 fi
8815 fi
8816
8817 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8818 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8819 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8820 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8821 do :
8822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8823 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8824 eval as_val=\$$as_ac_Header
8825 if test "x$as_val" = x""yes; then :
8826 cat >>confdefs.h <<_ACEOF
8827 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8828 _ACEOF
8829
8830 fi
8831 done
8832
8833
8834 # Check for thread headers.
8835 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8836 if test "x$ac_cv_header_thread_h" = x""yes; then :
8837 have_thread_h=yes
8838 else
8839 have_thread_h=
8840 fi
8841
8842 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8843 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8844 have_pthread_h=yes
8845 else
8846 have_pthread_h=
8847 fi
8848
8849
8850 # These tests can't be done till we know if we have limits.h.
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8852 $as_echo_n "checking for CHAR_BIT... " >&6; }
8853 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8854 $as_echo_n "(cached) " >&6
8855 else
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 #ifdef HAVE_LIMITS_H
8859 #include <limits.h>
8860 #endif
8861 #ifdef CHAR_BIT
8862 found
8863 #endif
8864 _ACEOF
8865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8866 $EGREP "found" >/dev/null 2>&1; then :
8867 gcc_cv_decl_char_bit=yes
8868 else
8869 gcc_cv_decl_char_bit=no
8870 fi
8871 rm -f conftest*
8872
8873
8874 fi
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8876 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8877 if test $gcc_cv_decl_char_bit = no; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8879 $as_echo_n "checking number of bits in a byte... " >&6; }
8880 if test "${gcc_cv_c_nbby+set}" = set; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 i=8
8884 gcc_cv_c_nbby=
8885 while test $i -lt 65; do
8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8888
8889 int
8890 main ()
8891 {
8892 switch(0) {
8893 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8894 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8895 ; }
8896 ;
8897 return 0;
8898 }
8899 _ACEOF
8900 if ac_fn_cxx_try_compile "$LINENO"; then :
8901 gcc_cv_c_nbby=$i; break
8902 fi
8903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 i=`expr $i + 1`
8905 done
8906 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8907
8908 fi
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8910 $as_echo "$gcc_cv_c_nbby" >&6; }
8911 if test $gcc_cv_c_nbby = failed; then
8912 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8913 else
8914
8915 cat >>confdefs.h <<_ACEOF
8916 #define CHAR_BIT $gcc_cv_c_nbby
8917 _ACEOF
8918
8919 fi
8920 fi
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8922 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8923 if test "${ac_cv_c_bigendian+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 ac_cv_c_bigendian=unknown
8927 # See if we're dealing with a universal compiler.
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8930 #ifndef __APPLE_CC__
8931 not a universal capable compiler
8932 #endif
8933 typedef int dummy;
8934
8935 _ACEOF
8936 if ac_fn_cxx_try_compile "$LINENO"; then :
8937
8938 # Check for potential -arch flags. It is not universal unless
8939 # there are at least two -arch flags with different values.
8940 ac_arch=
8941 ac_prev=
8942 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8943 if test -n "$ac_prev"; then
8944 case $ac_word in
8945 i?86 | x86_64 | ppc | ppc64)
8946 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8947 ac_arch=$ac_word
8948 else
8949 ac_cv_c_bigendian=universal
8950 break
8951 fi
8952 ;;
8953 esac
8954 ac_prev=
8955 elif test "x$ac_word" = "x-arch"; then
8956 ac_prev=arch
8957 fi
8958 done
8959 fi
8960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8961 if test $ac_cv_c_bigendian = unknown; then
8962 # See if sys/param.h defines the BYTE_ORDER macro.
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 ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8972 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8973 && LITTLE_ENDIAN)
8974 bogus endian macros
8975 #endif
8976
8977 ;
8978 return 0;
8979 }
8980 _ACEOF
8981 if ac_fn_cxx_try_compile "$LINENO"; then :
8982 # It does; now see whether it defined to BIG_ENDIAN or not.
8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h. */
8985 #include <sys/types.h>
8986 #include <sys/param.h>
8987
8988 int
8989 main ()
8990 {
8991 #if BYTE_ORDER != BIG_ENDIAN
8992 not big endian
8993 #endif
8994
8995 ;
8996 return 0;
8997 }
8998 _ACEOF
8999 if ac_fn_cxx_try_compile "$LINENO"; then :
9000 ac_cv_c_bigendian=yes
9001 else
9002 ac_cv_c_bigendian=no
9003 fi
9004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9005 fi
9006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007 fi
9008 if test $ac_cv_c_bigendian = unknown; then
9009 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9012 #include <limits.h>
9013
9014 int
9015 main ()
9016 {
9017 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9018 bogus endian macros
9019 #endif
9020
9021 ;
9022 return 0;
9023 }
9024 _ACEOF
9025 if ac_fn_cxx_try_compile "$LINENO"; then :
9026 # It does; now see whether it defined to _BIG_ENDIAN or not.
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9029 #include <limits.h>
9030
9031 int
9032 main ()
9033 {
9034 #ifndef _BIG_ENDIAN
9035 not big endian
9036 #endif
9037
9038 ;
9039 return 0;
9040 }
9041 _ACEOF
9042 if ac_fn_cxx_try_compile "$LINENO"; then :
9043 ac_cv_c_bigendian=yes
9044 else
9045 ac_cv_c_bigendian=no
9046 fi
9047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9048 fi
9049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9050 fi
9051 if test $ac_cv_c_bigendian = unknown; then
9052 # Compile a test program.
9053 if test "$cross_compiling" = yes; then :
9054 # Try to guess by grepping values from an object file.
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9057 short int ascii_mm[] =
9058 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9059 short int ascii_ii[] =
9060 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9061 int use_ascii (int i) {
9062 return ascii_mm[i] + ascii_ii[i];
9063 }
9064 short int ebcdic_ii[] =
9065 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9066 short int ebcdic_mm[] =
9067 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9068 int use_ebcdic (int i) {
9069 return ebcdic_mm[i] + ebcdic_ii[i];
9070 }
9071 extern int foo;
9072
9073 int
9074 main ()
9075 {
9076 return use_ascii (foo) == use_ebcdic (foo);
9077 ;
9078 return 0;
9079 }
9080 _ACEOF
9081 if ac_fn_cxx_try_compile "$LINENO"; then :
9082 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9083 ac_cv_c_bigendian=yes
9084 fi
9085 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9086 if test "$ac_cv_c_bigendian" = unknown; then
9087 ac_cv_c_bigendian=no
9088 else
9089 # finding both strings is unlikely to happen, but who knows?
9090 ac_cv_c_bigendian=unknown
9091 fi
9092 fi
9093 fi
9094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9095 else
9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9098 $ac_includes_default
9099 int
9100 main ()
9101 {
9102
9103 /* Are we little or big endian? From Harbison&Steele. */
9104 union
9105 {
9106 long int l;
9107 char c[sizeof (long int)];
9108 } u;
9109 u.l = 1;
9110 return u.c[sizeof (long int) - 1] == 1;
9111
9112 ;
9113 return 0;
9114 }
9115 _ACEOF
9116 if ac_fn_cxx_try_run "$LINENO"; then :
9117 ac_cv_c_bigendian=no
9118 else
9119 ac_cv_c_bigendian=yes
9120 fi
9121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9122 conftest.$ac_objext conftest.beam conftest.$ac_ext
9123 fi
9124
9125 fi
9126 fi
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9128 $as_echo "$ac_cv_c_bigendian" >&6; }
9129 case $ac_cv_c_bigendian in #(
9130 yes)
9131 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9132 ;; #(
9133 no)
9134 ;; #(
9135 universal)
9136
9137 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9138
9139 ;; #(
9140 *)
9141 as_fn_error "unknown endianness
9142 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9143 esac
9144
9145
9146 # ----------------------
9147 # Checks for C++ headers
9148 # ----------------------
9149
9150 ac_ext=cpp
9151 ac_cpp='$CXXCPP $CPPFLAGS'
9152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9156 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9157 if test -z "$CXXCPP"; then
9158 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 # Double quotes because CXXCPP needs to be expanded
9162 for CXXCPP in "$CXX -E" "/lib/cpp"
9163 do
9164 ac_preproc_ok=false
9165 for ac_cxx_preproc_warn_flag in '' yes
9166 do
9167 # Use a header file that comes with gcc, so configuring glibc
9168 # with a fresh cross-compiler works.
9169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9170 # <limits.h> exists even on freestanding compilers.
9171 # On the NeXT, cc -E runs the code through the compiler's parser,
9172 # not just through cpp. "Syntax error" is here to catch this case.
9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9175 #ifdef __STDC__
9176 # include <limits.h>
9177 #else
9178 # include <assert.h>
9179 #endif
9180 Syntax error
9181 _ACEOF
9182 if ac_fn_cxx_try_cpp "$LINENO"; then :
9183
9184 else
9185 # Broken: fails on valid input.
9186 continue
9187 fi
9188 rm -f conftest.err conftest.$ac_ext
9189
9190 # OK, works on sane cases. Now check whether nonexistent headers
9191 # can be detected and how.
9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9194 #include <ac_nonexistent.h>
9195 _ACEOF
9196 if ac_fn_cxx_try_cpp "$LINENO"; then :
9197 # Broken: success on invalid input.
9198 continue
9199 else
9200 # Passes both tests.
9201 ac_preproc_ok=:
9202 break
9203 fi
9204 rm -f conftest.err conftest.$ac_ext
9205
9206 done
9207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9208 rm -f conftest.err conftest.$ac_ext
9209 if $ac_preproc_ok; then :
9210 break
9211 fi
9212
9213 done
9214 ac_cv_prog_CXXCPP=$CXXCPP
9215
9216 fi
9217 CXXCPP=$ac_cv_prog_CXXCPP
9218 else
9219 ac_cv_prog_CXXCPP=$CXXCPP
9220 fi
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9222 $as_echo "$CXXCPP" >&6; }
9223 ac_preproc_ok=false
9224 for ac_cxx_preproc_warn_flag in '' yes
9225 do
9226 # Use a header file that comes with gcc, so configuring glibc
9227 # with a fresh cross-compiler works.
9228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9229 # <limits.h> exists even on freestanding compilers.
9230 # On the NeXT, cc -E runs the code through the compiler's parser,
9231 # not just through cpp. "Syntax error" is here to catch this case.
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9234 #ifdef __STDC__
9235 # include <limits.h>
9236 #else
9237 # include <assert.h>
9238 #endif
9239 Syntax error
9240 _ACEOF
9241 if ac_fn_cxx_try_cpp "$LINENO"; then :
9242
9243 else
9244 # Broken: fails on valid input.
9245 continue
9246 fi
9247 rm -f conftest.err conftest.$ac_ext
9248
9249 # OK, works on sane cases. Now check whether nonexistent headers
9250 # can be detected and how.
9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9253 #include <ac_nonexistent.h>
9254 _ACEOF
9255 if ac_fn_cxx_try_cpp "$LINENO"; then :
9256 # Broken: success on invalid input.
9257 continue
9258 else
9259 # Passes both tests.
9260 ac_preproc_ok=:
9261 break
9262 fi
9263 rm -f conftest.err conftest.$ac_ext
9264
9265 done
9266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9267 rm -f conftest.err conftest.$ac_ext
9268 if $ac_preproc_ok; then :
9269
9270 else
9271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9274 See \`config.log' for more details." >&5
9275 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9276 See \`config.log' for more details." >&2;}; }
9277 fi
9278
9279 ac_ext=cpp
9280 ac_cpp='$CXXCPP $CPPFLAGS'
9281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9284
9285
9286 for ac_header in unordered_map
9287 do :
9288 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9289 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9290 cat >>confdefs.h <<_ACEOF
9291 #define HAVE_UNORDERED_MAP 1
9292 _ACEOF
9293
9294 fi
9295 done
9296
9297 for ac_header in tr1/unordered_map
9298 do :
9299 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9300 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9301 cat >>confdefs.h <<_ACEOF
9302 #define HAVE_TR1_UNORDERED_MAP 1
9303 _ACEOF
9304
9305 fi
9306 done
9307
9308 for ac_header in ext/hash_map
9309 do :
9310 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9311 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9312 cat >>confdefs.h <<_ACEOF
9313 #define HAVE_EXT_HASH_MAP 1
9314 _ACEOF
9315
9316 fi
9317 done
9318
9319
9320 # --------
9321 # Dependency checking.
9322 # --------
9323
9324 rm -rf .tst 2>/dev/null
9325 mkdir .tst 2>/dev/null
9326 if test -d .tst; then
9327 am__leading_dot=.
9328 else
9329 am__leading_dot=_
9330 fi
9331 rmdir .tst 2>/dev/null
9332
9333 DEPDIR="${am__leading_dot}deps"
9334
9335 ac_config_commands="$ac_config_commands depdir"
9336
9337
9338 ac_config_commands="$ac_config_commands gccdepdir"
9339
9340
9341 depcc="$CXX" am_compiler_list=
9342
9343 am_depcomp=$ac_aux_dir/depcomp
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9345 $as_echo_n "checking dependency style of $depcc... " >&6; }
9346 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9347 $as_echo_n "(cached) " >&6
9348 else
9349 if test -f "$am_depcomp"; then
9350 # We make a subdir and do the tests there. Otherwise we can end up
9351 # making bogus files that we don't know about and never remove. For
9352 # instance it was reported that on HP-UX the gcc test will end up
9353 # making a dummy file named `D' -- because `-MD' means `put the output
9354 # in D'.
9355 mkdir conftest.dir
9356 # Copy depcomp to subdir because otherwise we won't find it if we're
9357 # using a relative directory.
9358 cp "$am_depcomp" conftest.dir
9359 cd conftest.dir
9360 # We will build objects and dependencies in a subdirectory because
9361 # it helps to detect inapplicable dependency modes. For instance
9362 # both Tru64's cc and ICC support -MD to output dependencies as a
9363 # side effect of compilation, but ICC will put the dependencies in
9364 # the current directory while Tru64 will put them in the object
9365 # directory.
9366 mkdir sub
9367
9368 am_cv_CXX_dependencies_compiler_type=none
9369 if test "$am_compiler_list" = ""; then
9370 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9371 fi
9372 for depmode in $am_compiler_list; do
9373 if test $depmode = none; then break; fi
9374
9375 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9376 # Setup a source with many dependencies, because some compilers
9377 # like to wrap large dependency lists on column 80 (with \), and
9378 # we should not choose a depcomp mode which is confused by this.
9379 #
9380 # We need to recreate these files for each test, as the compiler may
9381 # overwrite some of them when testing with obscure command lines.
9382 # This happens at least with the AIX C compiler.
9383 : > sub/conftest.c
9384 for i in 1 2 3 4 5 6; do
9385 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9386 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9387 # Solaris 8's {/usr,}/bin/sh.
9388 touch sub/conftst$i.h
9389 done
9390 echo "include sub/conftest.Po" > confmf
9391
9392 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9393 # mode. It turns out that the SunPro C++ compiler does not properly
9394 # handle `-M -o', and we need to detect this.
9395 depcmd="depmode=$depmode \
9396 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9397 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9398 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9399 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9400 if env $depcmd > conftest.err 2>&1 &&
9401 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9402 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9403 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9404 # icc doesn't choke on unknown options, it will just issue warnings
9405 # or remarks (even with -Werror). So we grep stderr for any message
9406 # that says an option was ignored or not supported.
9407 # When given -MP, icc 7.0 and 7.1 complain thusly:
9408 # icc: Command line warning: ignoring option '-M'; no argument required
9409 # The diagnosis changed in icc 8.0:
9410 # icc: Command line remark: option '-MP' not supported
9411 if (grep 'ignoring option' conftest.err ||
9412 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9413 am_cv_CXX_dependencies_compiler_type=$depmode
9414 $as_echo "$as_me:$LINENO: success" >&5
9415 break
9416 fi
9417 fi
9418 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9419 sed -e 's/^/| /' < conftest.err >&5
9420 done
9421
9422 cd ..
9423 rm -rf conftest.dir
9424 else
9425 am_cv_CXX_dependencies_compiler_type=none
9426 fi
9427
9428 fi
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9430 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9431 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9432 then as_fn_error "no usable dependency style found" "$LINENO" 5
9433 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9434
9435 fi
9436
9437
9438 # --------
9439 # UNSORTED
9440 # --------
9441
9442
9443 # These libraries may be used by collect2.
9444 # We may need a special search path to get them linked.
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9446 $as_echo_n "checking for collect2 libraries... " >&6; }
9447 if test "${gcc_cv_collect2_libs+set}" = set; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 save_LIBS="$LIBS"
9451 for libs in '' -lld -lmld \
9452 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9453 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9454 do
9455 LIBS="$libs"
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9458
9459 /* Override any GCC internal prototype to avoid an error.
9460 Use char because int might match the return type of a GCC
9461 builtin and then its argument prototype would still apply. */
9462 #ifdef __cplusplus
9463 extern "C"
9464 #endif
9465 char ldopen ();
9466 int
9467 main ()
9468 {
9469 return ldopen ();
9470 ;
9471 return 0;
9472 }
9473 _ACEOF
9474 if ac_fn_cxx_try_link "$LINENO"; then :
9475 gcc_cv_collect2_libs="$libs"; break
9476 fi
9477 rm -f core conftest.err conftest.$ac_objext \
9478 conftest$ac_exeext conftest.$ac_ext
9479 done
9480 LIBS="$save_LIBS"
9481 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9482 fi
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9484 $as_echo "$gcc_cv_collect2_libs" >&6; }
9485 case $gcc_cv_collect2_libs in
9486 "none required") ;;
9487 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9488 esac
9489
9490
9491 # When building Ada code on Alpha, we need exc_resume which is usually in
9492 # -lexc. So test for it.
9493 save_LIBS="$LIBS"
9494 LIBS=
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9496 $as_echo_n "checking for library containing exc_resume... " >&6; }
9497 if test "${ac_cv_search_exc_resume+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
9499 else
9500 ac_func_search_save_LIBS=$LIBS
9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9503
9504 /* Override any GCC internal prototype to avoid an error.
9505 Use char because int might match the return type of a GCC
9506 builtin and then its argument prototype would still apply. */
9507 #ifdef __cplusplus
9508 extern "C"
9509 #endif
9510 char exc_resume ();
9511 int
9512 main ()
9513 {
9514 return exc_resume ();
9515 ;
9516 return 0;
9517 }
9518 _ACEOF
9519 for ac_lib in '' exc; do
9520 if test -z "$ac_lib"; then
9521 ac_res="none required"
9522 else
9523 ac_res=-l$ac_lib
9524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9525 fi
9526 if ac_fn_cxx_try_link "$LINENO"; then :
9527 ac_cv_search_exc_resume=$ac_res
9528 fi
9529 rm -f core conftest.err conftest.$ac_objext \
9530 conftest$ac_exeext
9531 if test "${ac_cv_search_exc_resume+set}" = set; then :
9532 break
9533 fi
9534 done
9535 if test "${ac_cv_search_exc_resume+set}" = set; then :
9536
9537 else
9538 ac_cv_search_exc_resume=no
9539 fi
9540 rm conftest.$ac_ext
9541 LIBS=$ac_func_search_save_LIBS
9542 fi
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9544 $as_echo "$ac_cv_search_exc_resume" >&6; }
9545 ac_res=$ac_cv_search_exc_resume
9546 if test "$ac_res" != no; then :
9547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9548
9549 fi
9550
9551 GNAT_LIBEXC="$LIBS"
9552 LIBS="$save_LIBS"
9553
9554
9555 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9556 save_LIBS="$LIBS"
9557 LIBS=
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9559 $as_echo_n "checking for library containing kstat_open... " >&6; }
9560 if test "${ac_cv_search_kstat_open+set}" = set; then :
9561 $as_echo_n "(cached) " >&6
9562 else
9563 ac_func_search_save_LIBS=$LIBS
9564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9565 /* end confdefs.h. */
9566
9567 /* Override any GCC internal prototype to avoid an error.
9568 Use char because int might match the return type of a GCC
9569 builtin and then its argument prototype would still apply. */
9570 #ifdef __cplusplus
9571 extern "C"
9572 #endif
9573 char kstat_open ();
9574 int
9575 main ()
9576 {
9577 return kstat_open ();
9578 ;
9579 return 0;
9580 }
9581 _ACEOF
9582 for ac_lib in '' kstat; do
9583 if test -z "$ac_lib"; then
9584 ac_res="none required"
9585 else
9586 ac_res=-l$ac_lib
9587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9588 fi
9589 if ac_fn_cxx_try_link "$LINENO"; then :
9590 ac_cv_search_kstat_open=$ac_res
9591 fi
9592 rm -f core conftest.err conftest.$ac_objext \
9593 conftest$ac_exeext
9594 if test "${ac_cv_search_kstat_open+set}" = set; then :
9595 break
9596 fi
9597 done
9598 if test "${ac_cv_search_kstat_open+set}" = set; then :
9599
9600 else
9601 ac_cv_search_kstat_open=no
9602 fi
9603 rm conftest.$ac_ext
9604 LIBS=$ac_func_search_save_LIBS
9605 fi
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9607 $as_echo "$ac_cv_search_kstat_open" >&6; }
9608 ac_res=$ac_cv_search_kstat_open
9609 if test "$ac_res" != no; then :
9610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9611
9612 fi
9613
9614 EXTRA_GCC_LIBS="$LIBS"
9615 LIBS="$save_LIBS"
9616
9617
9618 # Some systems put ldexp and frexp in libm instead of libc; assume
9619 # they're both in the same place. jcf-dump needs them.
9620 save_LIBS="$LIBS"
9621 LIBS=
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9623 $as_echo_n "checking for library containing ldexp... " >&6; }
9624 if test "${ac_cv_search_ldexp+set}" = set; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627 ac_func_search_save_LIBS=$LIBS
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9630
9631 /* Override any GCC internal prototype to avoid an error.
9632 Use char because int might match the return type of a GCC
9633 builtin and then its argument prototype would still apply. */
9634 #ifdef __cplusplus
9635 extern "C"
9636 #endif
9637 char ldexp ();
9638 int
9639 main ()
9640 {
9641 return ldexp ();
9642 ;
9643 return 0;
9644 }
9645 _ACEOF
9646 for ac_lib in '' m; do
9647 if test -z "$ac_lib"; then
9648 ac_res="none required"
9649 else
9650 ac_res=-l$ac_lib
9651 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9652 fi
9653 if ac_fn_cxx_try_link "$LINENO"; then :
9654 ac_cv_search_ldexp=$ac_res
9655 fi
9656 rm -f core conftest.err conftest.$ac_objext \
9657 conftest$ac_exeext
9658 if test "${ac_cv_search_ldexp+set}" = set; then :
9659 break
9660 fi
9661 done
9662 if test "${ac_cv_search_ldexp+set}" = set; then :
9663
9664 else
9665 ac_cv_search_ldexp=no
9666 fi
9667 rm conftest.$ac_ext
9668 LIBS=$ac_func_search_save_LIBS
9669 fi
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9671 $as_echo "$ac_cv_search_ldexp" >&6; }
9672 ac_res=$ac_cv_search_ldexp
9673 if test "$ac_res" != no; then :
9674 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9675
9676 fi
9677
9678 LDEXP_LIB="$LIBS"
9679 LIBS="$save_LIBS"
9680
9681
9682 # Use <inttypes.h> only if it exists,
9683 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9684 # PRId64
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9686 $as_echo_n "checking for inttypes.h... " >&6; }
9687 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9688 $as_echo_n "(cached) " >&6
9689 else
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9692 #define __STDC_FORMAT_MACROS
9693 #include <sys/types.h>
9694 #include <inttypes.h>
9695 int
9696 main ()
9697 {
9698 intmax_t i = -1;
9699 #ifndef PRId64
9700 choke me
9701 #endif
9702 ;
9703 return 0;
9704 }
9705 _ACEOF
9706 if ac_fn_cxx_try_compile "$LINENO"; then :
9707 gcc_cv_header_inttypes_h=yes
9708 else
9709 gcc_cv_header_inttypes_h=no
9710 fi
9711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712 fi
9713
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9715 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9716 if test $gcc_cv_header_inttypes_h = yes; then
9717
9718 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9719
9720 fi
9721
9722
9723
9724 for ac_func in times clock kill getrlimit setrlimit atoq \
9725 popen sysconf strsignal getrusage nl_langinfo \
9726 gettimeofday mbstowcs wcswidth mmap setlocale \
9727 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
9728 do :
9729 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9730 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9731 eval as_val=\$$as_ac_var
9732 if test "x$as_val" = x""yes; then :
9733 cat >>confdefs.h <<_ACEOF
9734 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9735 _ACEOF
9736
9737 fi
9738 done
9739
9740
9741 if test x$ac_cv_func_mbstowcs = xyes; then
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9743 $as_echo_n "checking whether mbstowcs works... " >&6; }
9744 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9745 $as_echo_n "(cached) " >&6
9746 else
9747 if test "$cross_compiling" = yes; then :
9748 gcc_cv_func_mbstowcs_works=yes
9749 else
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9752 #include <stdlib.h>
9753 int main()
9754 {
9755 mbstowcs(0, "", 0);
9756 return 0;
9757 }
9758 _ACEOF
9759 if ac_fn_cxx_try_run "$LINENO"; then :
9760 gcc_cv_func_mbstowcs_works=yes
9761 else
9762 gcc_cv_func_mbstowcs_works=no
9763 fi
9764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9765 conftest.$ac_objext conftest.beam conftest.$ac_ext
9766 fi
9767
9768 fi
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9770 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9771 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9772
9773 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9774
9775 fi
9776 fi
9777
9778 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9779 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9780
9781 else
9782
9783 cat >>confdefs.h <<_ACEOF
9784 #define ssize_t int
9785 _ACEOF
9786
9787 fi
9788
9789 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9790 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9791
9792 else
9793
9794 cat >>confdefs.h <<_ACEOF
9795 #define caddr_t char *
9796 _ACEOF
9797
9798 fi
9799
9800
9801
9802 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9803 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9804 gcc_header_sys_mman_h=yes
9805 else
9806 gcc_header_sys_mman_h=no
9807 fi
9808
9809 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9810 if test "x$ac_cv_func_mmap" = x""yes; then :
9811 gcc_func_mmap=yes
9812 else
9813 gcc_func_mmap=no
9814 fi
9815
9816 if test "$gcc_header_sys_mman_h" != yes \
9817 || test "$gcc_func_mmap" != yes; then
9818 gcc_cv_func_mmap_file=no
9819 gcc_cv_func_mmap_dev_zero=no
9820 gcc_cv_func_mmap_anon=no
9821 else
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9823 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9824 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9825 $as_echo_n "(cached) " >&6
9826 else
9827 # Add a system to this blacklist if
9828 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9829 # memory area containing the same data that you'd get if you applied
9830 # read() to the same fd. The only system known to have a problem here
9831 # is VMS, where text files have record structure.
9832 case "$host_os" in
9833 *vms* | ultrix*)
9834 gcc_cv_func_mmap_file=no ;;
9835 *)
9836 gcc_cv_func_mmap_file=yes;;
9837 esac
9838 fi
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9840 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9842 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9843 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9844 $as_echo_n "(cached) " >&6
9845 else
9846 # Add a system to this blacklist if it has mmap() but /dev/zero
9847 # does not exist, or if mmapping /dev/zero does not give anonymous
9848 # zeroed pages with both the following properties:
9849 # 1. If you map N consecutive pages in with one call, and then
9850 # unmap any subset of those pages, the pages that were not
9851 # explicitly unmapped remain accessible.
9852 # 2. If you map two adjacent blocks of memory and then unmap them
9853 # both at once, they must both go away.
9854 # Systems known to be in this category are Windows (all variants),
9855 # VMS, and Darwin.
9856 case "$host_os" in
9857 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9858 gcc_cv_func_mmap_dev_zero=no ;;
9859 *)
9860 gcc_cv_func_mmap_dev_zero=yes;;
9861 esac
9862 fi
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9864 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9865
9866 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9868 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9869 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h. */
9874 #include <sys/types.h>
9875 #include <sys/mman.h>
9876 #include <unistd.h>
9877
9878 #ifndef MAP_ANONYMOUS
9879 #define MAP_ANONYMOUS MAP_ANON
9880 #endif
9881
9882 int
9883 main ()
9884 {
9885 int n = MAP_ANONYMOUS;
9886 ;
9887 return 0;
9888 }
9889 _ACEOF
9890 if ac_fn_cxx_try_compile "$LINENO"; then :
9891 gcc_cv_decl_map_anon=yes
9892 else
9893 gcc_cv_decl_map_anon=no
9894 fi
9895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9896 fi
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9898 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9899
9900 if test $gcc_cv_decl_map_anon = no; then
9901 gcc_cv_func_mmap_anon=no
9902 else
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9904 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9905 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9906 $as_echo_n "(cached) " >&6
9907 else
9908 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9909 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9910 # doesn't give anonymous zeroed pages with the same properties listed
9911 # above for use of /dev/zero.
9912 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9913 case "$host_os" in
9914 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9915 gcc_cv_func_mmap_anon=no ;;
9916 *)
9917 gcc_cv_func_mmap_anon=yes;;
9918 esac
9919 fi
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9921 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9922 fi
9923 fi
9924
9925 if test $gcc_cv_func_mmap_file = yes; then
9926
9927 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9928
9929 fi
9930 if test $gcc_cv_func_mmap_dev_zero = yes; then
9931
9932 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9933
9934 fi
9935 if test $gcc_cv_func_mmap_anon = yes; then
9936
9937 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9938
9939 fi
9940
9941
9942 case "${host}" in
9943 *-*-*vms*)
9944 # Under VMS, vfork works very differently than on Unix. The standard test
9945 # won't work, and it isn't easily adaptable. It makes more sense to
9946 # just force it.
9947 ac_cv_func_vfork_works=yes
9948 ;;
9949 esac
9950 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9951 if test "x$ac_cv_type_pid_t" = x""yes; then :
9952
9953 else
9954
9955 cat >>confdefs.h <<_ACEOF
9956 #define pid_t int
9957 _ACEOF
9958
9959 fi
9960
9961 for ac_header in vfork.h
9962 do :
9963 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9964 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9965 cat >>confdefs.h <<_ACEOF
9966 #define HAVE_VFORK_H 1
9967 _ACEOF
9968
9969 fi
9970 done
9971
9972 for ac_func in fork vfork
9973 do :
9974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9975 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9976 eval as_val=\$$as_ac_var
9977 if test "x$as_val" = x""yes; then :
9978 cat >>confdefs.h <<_ACEOF
9979 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9980 _ACEOF
9981
9982 fi
9983 done
9984
9985 if test "x$ac_cv_func_fork" = xyes; then
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9987 $as_echo_n "checking for working fork... " >&6; }
9988 if test "${ac_cv_func_fork_works+set}" = set; then :
9989 $as_echo_n "(cached) " >&6
9990 else
9991 if test "$cross_compiling" = yes; then :
9992 ac_cv_func_fork_works=cross
9993 else
9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995 /* end confdefs.h. */
9996 $ac_includes_default
9997 int
9998 main ()
9999 {
10000
10001 /* By Ruediger Kuhlmann. */
10002 return fork () < 0;
10003
10004 ;
10005 return 0;
10006 }
10007 _ACEOF
10008 if ac_fn_cxx_try_run "$LINENO"; then :
10009 ac_cv_func_fork_works=yes
10010 else
10011 ac_cv_func_fork_works=no
10012 fi
10013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10014 conftest.$ac_objext conftest.beam conftest.$ac_ext
10015 fi
10016
10017 fi
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10019 $as_echo "$ac_cv_func_fork_works" >&6; }
10020
10021 else
10022 ac_cv_func_fork_works=$ac_cv_func_fork
10023 fi
10024 if test "x$ac_cv_func_fork_works" = xcross; then
10025 case $host in
10026 *-*-amigaos* | *-*-msdosdjgpp*)
10027 # Override, as these systems have only a dummy fork() stub
10028 ac_cv_func_fork_works=no
10029 ;;
10030 *)
10031 ac_cv_func_fork_works=yes
10032 ;;
10033 esac
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10035 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10036 fi
10037 ac_cv_func_vfork_works=$ac_cv_func_vfork
10038 if test "x$ac_cv_func_vfork" = xyes; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10040 $as_echo_n "checking for working vfork... " >&6; }
10041 if test "${ac_cv_func_vfork_works+set}" = set; then :
10042 $as_echo_n "(cached) " >&6
10043 else
10044 if test "$cross_compiling" = yes; then :
10045 ac_cv_func_vfork_works=cross
10046 else
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10049 /* Thanks to Paul Eggert for this test. */
10050 $ac_includes_default
10051 #include <sys/wait.h>
10052 #ifdef HAVE_VFORK_H
10053 # include <vfork.h>
10054 #endif
10055 /* On some sparc systems, changes by the child to local and incoming
10056 argument registers are propagated back to the parent. The compiler
10057 is told about this with #include <vfork.h>, but some compilers
10058 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10059 static variable whose address is put into a register that is
10060 clobbered by the vfork. */
10061 static void
10062 #ifdef __cplusplus
10063 sparc_address_test (int arg)
10064 # else
10065 sparc_address_test (arg) int arg;
10066 #endif
10067 {
10068 static pid_t child;
10069 if (!child) {
10070 child = vfork ();
10071 if (child < 0) {
10072 perror ("vfork");
10073 _exit(2);
10074 }
10075 if (!child) {
10076 arg = getpid();
10077 write(-1, "", 0);
10078 _exit (arg);
10079 }
10080 }
10081 }
10082
10083 int
10084 main ()
10085 {
10086 pid_t parent = getpid ();
10087 pid_t child;
10088
10089 sparc_address_test (0);
10090
10091 child = vfork ();
10092
10093 if (child == 0) {
10094 /* Here is another test for sparc vfork register problems. This
10095 test uses lots of local variables, at least as many local
10096 variables as main has allocated so far including compiler
10097 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10098 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10099 reuse the register of parent for one of the local variables,
10100 since it will think that parent can't possibly be used any more
10101 in this routine. Assigning to the local variable will thus
10102 munge parent in the parent process. */
10103 pid_t
10104 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10105 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10106 /* Convince the compiler that p..p7 are live; otherwise, it might
10107 use the same hardware register for all 8 local variables. */
10108 if (p != p1 || p != p2 || p != p3 || p != p4
10109 || p != p5 || p != p6 || p != p7)
10110 _exit(1);
10111
10112 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10113 from child file descriptors. If the child closes a descriptor
10114 before it execs or exits, this munges the parent's descriptor
10115 as well. Test for this by closing stdout in the child. */
10116 _exit(close(fileno(stdout)) != 0);
10117 } else {
10118 int status;
10119 struct stat st;
10120
10121 while (wait(&status) != child)
10122 ;
10123 return (
10124 /* Was there some problem with vforking? */
10125 child < 0
10126
10127 /* Did the child fail? (This shouldn't happen.) */
10128 || status
10129
10130 /* Did the vfork/compiler bug occur? */
10131 || parent != getpid()
10132
10133 /* Did the file descriptor bug occur? */
10134 || fstat(fileno(stdout), &st) != 0
10135 );
10136 }
10137 }
10138 _ACEOF
10139 if ac_fn_cxx_try_run "$LINENO"; then :
10140 ac_cv_func_vfork_works=yes
10141 else
10142 ac_cv_func_vfork_works=no
10143 fi
10144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10145 conftest.$ac_objext conftest.beam conftest.$ac_ext
10146 fi
10147
10148 fi
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10150 $as_echo "$ac_cv_func_vfork_works" >&6; }
10151
10152 fi;
10153 if test "x$ac_cv_func_fork_works" = xcross; then
10154 ac_cv_func_vfork_works=$ac_cv_func_vfork
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10156 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10157 fi
10158
10159 if test "x$ac_cv_func_vfork_works" = xyes; then
10160
10161 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10162
10163 else
10164
10165 $as_echo "#define vfork fork" >>confdefs.h
10166
10167 fi
10168 if test "x$ac_cv_func_fork_works" = xyes; then
10169
10170 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10171
10172 fi
10173
10174
10175
10176 if test "X$prefix" = "XNONE"; then
10177 acl_final_prefix="$ac_default_prefix"
10178 else
10179 acl_final_prefix="$prefix"
10180 fi
10181 if test "X$exec_prefix" = "XNONE"; then
10182 acl_final_exec_prefix='${prefix}'
10183 else
10184 acl_final_exec_prefix="$exec_prefix"
10185 fi
10186 acl_save_prefix="$prefix"
10187 prefix="$acl_final_prefix"
10188 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10189 prefix="$acl_save_prefix"
10190
10191
10192 # Check whether --with-gnu-ld was given.
10193 if test "${with_gnu_ld+set}" = set; then :
10194 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10195 else
10196 with_gnu_ld=no
10197 fi
10198
10199 # Prepare PATH_SEPARATOR.
10200 # The user is always right.
10201 if test "${PATH_SEPARATOR+set}" != set; then
10202 echo "#! /bin/sh" >conf$$.sh
10203 echo "exit 0" >>conf$$.sh
10204 chmod +x conf$$.sh
10205 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10206 PATH_SEPARATOR=';'
10207 else
10208 PATH_SEPARATOR=:
10209 fi
10210 rm -f conf$$.sh
10211 fi
10212 ac_prog=ld
10213 if test "$GCC" = yes; then
10214 # Check if gcc -print-prog-name=ld gives a path.
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10216 $as_echo_n "checking for ld used by GCC... " >&6; }
10217 case $host in
10218 *-*-mingw*)
10219 # gcc leaves a trailing carriage return which upsets mingw
10220 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10221 *)
10222 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10223 esac
10224 case $ac_prog in
10225 # Accept absolute paths.
10226 [\\/]* | [A-Za-z]:[\\/]*)
10227 re_direlt='/[^/][^/]*/\.\./'
10228 # Canonicalize the path of ld
10229 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10230 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10231 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10232 done
10233 test -z "$LD" && LD="$ac_prog"
10234 ;;
10235 "")
10236 # If it fails, then pretend we aren't using GCC.
10237 ac_prog=ld
10238 ;;
10239 *)
10240 # If it is relative, then search for the first ld in PATH.
10241 with_gnu_ld=unknown
10242 ;;
10243 esac
10244 elif test "$with_gnu_ld" = yes; then
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10246 $as_echo_n "checking for GNU ld... " >&6; }
10247 else
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10249 $as_echo_n "checking for non-GNU ld... " >&6; }
10250 fi
10251 if test "${acl_cv_path_LD+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
10253 else
10254 if test -z "$LD"; then
10255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10256 for ac_dir in $PATH; do
10257 test -z "$ac_dir" && ac_dir=.
10258 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10259 acl_cv_path_LD="$ac_dir/$ac_prog"
10260 # Check to see if the program is GNU ld. I'd rather use --version,
10261 # but apparently some GNU ld's only accept -v.
10262 # Break only if it was the GNU/non-GNU ld that we prefer.
10263 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10264 test "$with_gnu_ld" != no && break
10265 else
10266 test "$with_gnu_ld" != yes && break
10267 fi
10268 fi
10269 done
10270 IFS="$ac_save_ifs"
10271 else
10272 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10273 fi
10274 fi
10275
10276 LD="$acl_cv_path_LD"
10277 if test -n "$LD"; then
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10279 $as_echo "$LD" >&6; }
10280 else
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282 $as_echo "no" >&6; }
10283 fi
10284 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10286 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10287 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10288 $as_echo_n "(cached) " >&6
10289 else
10290 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10291 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10292 acl_cv_prog_gnu_ld=yes
10293 else
10294 acl_cv_prog_gnu_ld=no
10295 fi
10296 fi
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10298 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10299 with_gnu_ld=$acl_cv_prog_gnu_ld
10300
10301
10302
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10304 $as_echo_n "checking for shared library run path origin... " >&6; }
10305 if test "${acl_cv_rpath+set}" = set; then :
10306 $as_echo_n "(cached) " >&6
10307 else
10308
10309 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10310 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10311 . ./conftest.sh
10312 rm -f ./conftest.sh
10313 acl_cv_rpath=done
10314
10315 fi
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10317 $as_echo "$acl_cv_rpath" >&6; }
10318 wl="$acl_cv_wl"
10319 libext="$acl_cv_libext"
10320 shlibext="$acl_cv_shlibext"
10321 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10322 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10323 hardcode_direct="$acl_cv_hardcode_direct"
10324 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10325 # Check whether --enable-rpath was given.
10326 if test "${enable_rpath+set}" = set; then :
10327 enableval=$enable_rpath; :
10328 else
10329 enable_rpath=yes
10330 fi
10331
10332
10333
10334
10335
10336
10337
10338
10339 use_additional=yes
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
10353 # Check whether --with-libiconv-prefix was given.
10354 if test "${with_libiconv_prefix+set}" = set; then :
10355 withval=$with_libiconv_prefix;
10356 if test "X$withval" = "Xno"; then
10357 use_additional=no
10358 else
10359 if test "X$withval" = "X"; then
10360
10361 acl_save_prefix="$prefix"
10362 prefix="$acl_final_prefix"
10363 acl_save_exec_prefix="$exec_prefix"
10364 exec_prefix="$acl_final_exec_prefix"
10365
10366 eval additional_includedir=\"$includedir\"
10367 eval additional_libdir=\"$libdir\"
10368
10369 exec_prefix="$acl_save_exec_prefix"
10370 prefix="$acl_save_prefix"
10371
10372 else
10373 additional_includedir="$withval/include"
10374 additional_libdir="$withval/lib"
10375 fi
10376 fi
10377
10378 fi
10379
10380 LIBICONV=
10381 LTLIBICONV=
10382 INCICONV=
10383 rpathdirs=
10384 ltrpathdirs=
10385 names_already_handled=
10386 names_next_round='iconv '
10387 while test -n "$names_next_round"; do
10388 names_this_round="$names_next_round"
10389 names_next_round=
10390 for name in $names_this_round; do
10391 already_handled=
10392 for n in $names_already_handled; do
10393 if test "$n" = "$name"; then
10394 already_handled=yes
10395 break
10396 fi
10397 done
10398 if test -z "$already_handled"; then
10399 names_already_handled="$names_already_handled $name"
10400 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10401 eval value=\"\$HAVE_LIB$uppername\"
10402 if test -n "$value"; then
10403 if test "$value" = yes; then
10404 eval value=\"\$LIB$uppername\"
10405 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10406 eval value=\"\$LTLIB$uppername\"
10407 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10408 else
10409 :
10410 fi
10411 else
10412 found_dir=
10413 found_la=
10414 found_so=
10415 found_a=
10416 if test $use_additional = yes; then
10417 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10418 found_dir="$additional_libdir"
10419 found_so="$additional_libdir/lib$name.$shlibext"
10420 if test -f "$additional_libdir/lib$name.la"; then
10421 found_la="$additional_libdir/lib$name.la"
10422 fi
10423 else
10424 if test -f "$additional_libdir/lib$name.$libext"; then
10425 found_dir="$additional_libdir"
10426 found_a="$additional_libdir/lib$name.$libext"
10427 if test -f "$additional_libdir/lib$name.la"; then
10428 found_la="$additional_libdir/lib$name.la"
10429 fi
10430 fi
10431 fi
10432 fi
10433 if test "X$found_dir" = "X"; then
10434 for x in $LDFLAGS $LTLIBICONV; do
10435
10436 acl_save_prefix="$prefix"
10437 prefix="$acl_final_prefix"
10438 acl_save_exec_prefix="$exec_prefix"
10439 exec_prefix="$acl_final_exec_prefix"
10440 eval x=\"$x\"
10441 exec_prefix="$acl_save_exec_prefix"
10442 prefix="$acl_save_prefix"
10443
10444 case "$x" in
10445 -L*)
10446 dir=`echo "X$x" | sed -e 's/^X-L//'`
10447 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10448 found_dir="$dir"
10449 found_so="$dir/lib$name.$shlibext"
10450 if test -f "$dir/lib$name.la"; then
10451 found_la="$dir/lib$name.la"
10452 fi
10453 else
10454 if test -f "$dir/lib$name.$libext"; then
10455 found_dir="$dir"
10456 found_a="$dir/lib$name.$libext"
10457 if test -f "$dir/lib$name.la"; then
10458 found_la="$dir/lib$name.la"
10459 fi
10460 fi
10461 fi
10462 ;;
10463 esac
10464 if test "X$found_dir" != "X"; then
10465 break
10466 fi
10467 done
10468 fi
10469 if test "X$found_dir" != "X"; then
10470 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10471 if test "X$found_so" != "X"; then
10472 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10473 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10474 else
10475 haveit=
10476 for x in $ltrpathdirs; do
10477 if test "X$x" = "X$found_dir"; then
10478 haveit=yes
10479 break
10480 fi
10481 done
10482 if test -z "$haveit"; then
10483 ltrpathdirs="$ltrpathdirs $found_dir"
10484 fi
10485 if test "$hardcode_direct" = yes; then
10486 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10487 else
10488 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10489 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10490 haveit=
10491 for x in $rpathdirs; do
10492 if test "X$x" = "X$found_dir"; then
10493 haveit=yes
10494 break
10495 fi
10496 done
10497 if test -z "$haveit"; then
10498 rpathdirs="$rpathdirs $found_dir"
10499 fi
10500 else
10501 haveit=
10502 for x in $LDFLAGS $LIBICONV; do
10503
10504 acl_save_prefix="$prefix"
10505 prefix="$acl_final_prefix"
10506 acl_save_exec_prefix="$exec_prefix"
10507 exec_prefix="$acl_final_exec_prefix"
10508 eval x=\"$x\"
10509 exec_prefix="$acl_save_exec_prefix"
10510 prefix="$acl_save_prefix"
10511
10512 if test "X$x" = "X-L$found_dir"; then
10513 haveit=yes
10514 break
10515 fi
10516 done
10517 if test -z "$haveit"; then
10518 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10519 fi
10520 if test "$hardcode_minus_L" != no; then
10521 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10522 else
10523 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10524 fi
10525 fi
10526 fi
10527 fi
10528 else
10529 if test "X$found_a" != "X"; then
10530 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10531 else
10532 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10533 fi
10534 fi
10535 additional_includedir=
10536 case "$found_dir" in
10537 */lib | */lib/)
10538 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10539 additional_includedir="$basedir/include"
10540 ;;
10541 esac
10542 if test "X$additional_includedir" != "X"; then
10543 if test "X$additional_includedir" != "X/usr/include"; then
10544 haveit=
10545 if test "X$additional_includedir" = "X/usr/local/include"; then
10546 if test -n "$GCC"; then
10547 case $host_os in
10548 linux*) haveit=yes;;
10549 esac
10550 fi
10551 fi
10552 if test -z "$haveit"; then
10553 for x in $CPPFLAGS $INCICONV; do
10554
10555 acl_save_prefix="$prefix"
10556 prefix="$acl_final_prefix"
10557 acl_save_exec_prefix="$exec_prefix"
10558 exec_prefix="$acl_final_exec_prefix"
10559 eval x=\"$x\"
10560 exec_prefix="$acl_save_exec_prefix"
10561 prefix="$acl_save_prefix"
10562
10563 if test "X$x" = "X-I$additional_includedir"; then
10564 haveit=yes
10565 break
10566 fi
10567 done
10568 if test -z "$haveit"; then
10569 if test -d "$additional_includedir"; then
10570 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10571 fi
10572 fi
10573 fi
10574 fi
10575 fi
10576 if test -n "$found_la"; then
10577 save_libdir="$libdir"
10578 case "$found_la" in
10579 */* | *\\*) . "$found_la" ;;
10580 *) . "./$found_la" ;;
10581 esac
10582 libdir="$save_libdir"
10583 for dep in $dependency_libs; do
10584 case "$dep" in
10585 -L*)
10586 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10587 if test "X$additional_libdir" != "X/usr/lib"; then
10588 haveit=
10589 if test "X$additional_libdir" = "X/usr/local/lib"; then
10590 if test -n "$GCC"; then
10591 case $host_os in
10592 linux*) haveit=yes;;
10593 esac
10594 fi
10595 fi
10596 if test -z "$haveit"; then
10597 haveit=
10598 for x in $LDFLAGS $LIBICONV; do
10599
10600 acl_save_prefix="$prefix"
10601 prefix="$acl_final_prefix"
10602 acl_save_exec_prefix="$exec_prefix"
10603 exec_prefix="$acl_final_exec_prefix"
10604 eval x=\"$x\"
10605 exec_prefix="$acl_save_exec_prefix"
10606 prefix="$acl_save_prefix"
10607
10608 if test "X$x" = "X-L$additional_libdir"; then
10609 haveit=yes
10610 break
10611 fi
10612 done
10613 if test -z "$haveit"; then
10614 if test -d "$additional_libdir"; then
10615 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10616 fi
10617 fi
10618 haveit=
10619 for x in $LDFLAGS $LTLIBICONV; do
10620
10621 acl_save_prefix="$prefix"
10622 prefix="$acl_final_prefix"
10623 acl_save_exec_prefix="$exec_prefix"
10624 exec_prefix="$acl_final_exec_prefix"
10625 eval x=\"$x\"
10626 exec_prefix="$acl_save_exec_prefix"
10627 prefix="$acl_save_prefix"
10628
10629 if test "X$x" = "X-L$additional_libdir"; then
10630 haveit=yes
10631 break
10632 fi
10633 done
10634 if test -z "$haveit"; then
10635 if test -d "$additional_libdir"; then
10636 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10637 fi
10638 fi
10639 fi
10640 fi
10641 ;;
10642 -R*)
10643 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10644 if test "$enable_rpath" != no; then
10645 haveit=
10646 for x in $rpathdirs; do
10647 if test "X$x" = "X$dir"; then
10648 haveit=yes
10649 break
10650 fi
10651 done
10652 if test -z "$haveit"; then
10653 rpathdirs="$rpathdirs $dir"
10654 fi
10655 haveit=
10656 for x in $ltrpathdirs; do
10657 if test "X$x" = "X$dir"; then
10658 haveit=yes
10659 break
10660 fi
10661 done
10662 if test -z "$haveit"; then
10663 ltrpathdirs="$ltrpathdirs $dir"
10664 fi
10665 fi
10666 ;;
10667 -l*)
10668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10669 ;;
10670 *.la)
10671 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10672 ;;
10673 *)
10674 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10675 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10676 ;;
10677 esac
10678 done
10679 fi
10680 else
10681 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10682 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10683 fi
10684 fi
10685 fi
10686 done
10687 done
10688 if test "X$rpathdirs" != "X"; then
10689 if test -n "$hardcode_libdir_separator"; then
10690 alldirs=
10691 for found_dir in $rpathdirs; do
10692 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10693 done
10694 acl_save_libdir="$libdir"
10695 libdir="$alldirs"
10696 eval flag=\"$hardcode_libdir_flag_spec\"
10697 libdir="$acl_save_libdir"
10698 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10699 else
10700 for found_dir in $rpathdirs; do
10701 acl_save_libdir="$libdir"
10702 libdir="$found_dir"
10703 eval flag=\"$hardcode_libdir_flag_spec\"
10704 libdir="$acl_save_libdir"
10705 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10706 done
10707 fi
10708 fi
10709 if test "X$ltrpathdirs" != "X"; then
10710 for found_dir in $ltrpathdirs; do
10711 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10712 done
10713 fi
10714
10715
10716
10717
10718
10719
10720
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10722 $as_echo_n "checking for iconv... " >&6; }
10723 if test "${am_cv_func_iconv+set}" = set; then :
10724 $as_echo_n "(cached) " >&6
10725 else
10726
10727 am_cv_func_iconv="no, consider installing GNU libiconv"
10728 am_cv_lib_iconv=no
10729 am_save_CPPFLAGS="$CPPFLAGS"
10730 CPPFLAGS="$CPPFLAGS $INCICONV"
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10733 #include <stdlib.h>
10734 #include <iconv.h>
10735 int
10736 main ()
10737 {
10738 iconv_t cd = iconv_open("","");
10739 iconv(cd,NULL,NULL,NULL,NULL);
10740 iconv_close(cd);
10741 ;
10742 return 0;
10743 }
10744 _ACEOF
10745 if ac_fn_cxx_try_link "$LINENO"; then :
10746 am_cv_func_iconv=yes
10747 fi
10748 rm -f core conftest.err conftest.$ac_objext \
10749 conftest$ac_exeext conftest.$ac_ext
10750 CPPFLAGS="$am_save_CPPFLAGS"
10751
10752 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10753 for _libs in .libs _libs; do
10754 am_save_CPPFLAGS="$CPPFLAGS"
10755 am_save_LIBS="$LIBS"
10756 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10757 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759 /* end confdefs.h. */
10760 #include <stdlib.h>
10761 #include <iconv.h>
10762 int
10763 main ()
10764 {
10765 iconv_t cd = iconv_open("","");
10766 iconv(cd,NULL,NULL,NULL,NULL);
10767 iconv_close(cd);
10768 ;
10769 return 0;
10770 }
10771 _ACEOF
10772 if ac_fn_cxx_try_link "$LINENO"; then :
10773 INCICONV="-I../libiconv/include"
10774 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10775 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10776 am_cv_lib_iconv=yes
10777 am_cv_func_iconv=yes
10778 fi
10779 rm -f core conftest.err conftest.$ac_objext \
10780 conftest$ac_exeext conftest.$ac_ext
10781 CPPFLAGS="$am_save_CPPFLAGS"
10782 LIBS="$am_save_LIBS"
10783 if test "$am_cv_func_iconv" = "yes"; then
10784 break
10785 fi
10786 done
10787 fi
10788
10789 if test "$am_cv_func_iconv" != yes; then
10790 am_save_CPPFLAGS="$CPPFLAGS"
10791 am_save_LIBS="$LIBS"
10792 CPPFLAGS="$LIBS $INCICONV"
10793 LIBS="$LIBS $LIBICONV"
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10796 #include <stdlib.h>
10797 #include <iconv.h>
10798 int
10799 main ()
10800 {
10801 iconv_t cd = iconv_open("","");
10802 iconv(cd,NULL,NULL,NULL,NULL);
10803 iconv_close(cd);
10804 ;
10805 return 0;
10806 }
10807 _ACEOF
10808 if ac_fn_cxx_try_link "$LINENO"; then :
10809 am_cv_lib_iconv=yes
10810 am_cv_func_iconv=yes
10811 fi
10812 rm -f core conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext conftest.$ac_ext
10814 CPPFLAGS="$am_save_CPPFLAGS"
10815 LIBS="$am_save_LIBS"
10816 fi
10817
10818 fi
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10820 $as_echo "$am_cv_func_iconv" >&6; }
10821 if test "$am_cv_func_iconv" = yes; then
10822
10823 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10824
10825 fi
10826 if test "$am_cv_lib_iconv" = yes; then
10827
10828 for element in $INCICONV; do
10829 haveit=
10830 for x in $CPPFLAGS; do
10831
10832 acl_save_prefix="$prefix"
10833 prefix="$acl_final_prefix"
10834 acl_save_exec_prefix="$exec_prefix"
10835 exec_prefix="$acl_final_exec_prefix"
10836 eval x=\"$x\"
10837 exec_prefix="$acl_save_exec_prefix"
10838 prefix="$acl_save_prefix"
10839
10840 if test "X$x" = "X$element"; then
10841 haveit=yes
10842 break
10843 fi
10844 done
10845 if test -z "$haveit"; then
10846 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10847 fi
10848 done
10849
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10851 $as_echo_n "checking how to link with libiconv... " >&6; }
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10853 $as_echo "$LIBICONV" >&6; }
10854 else
10855 LIBICONV=
10856 LTLIBICONV=
10857 fi
10858
10859
10860
10861 if test "$am_cv_func_iconv" = yes; then
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10863 $as_echo_n "checking for iconv declaration... " >&6; }
10864 if test "${am_cv_proto_iconv+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
10866 else
10867
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10870
10871 #include <stdlib.h>
10872 #include <iconv.h>
10873 extern
10874 #ifdef __cplusplus
10875 "C"
10876 #endif
10877 #if defined(__STDC__) || defined(__cplusplus)
10878 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10879 #else
10880 size_t iconv();
10881 #endif
10882
10883 int
10884 main ()
10885 {
10886
10887 ;
10888 return 0;
10889 }
10890 _ACEOF
10891 if ac_fn_cxx_try_compile "$LINENO"; then :
10892 am_cv_proto_iconv_arg1=""
10893 else
10894 am_cv_proto_iconv_arg1="const"
10895 fi
10896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10897 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);"
10898 fi
10899
10900 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10902 }$am_cv_proto_iconv" >&5
10903 $as_echo "${ac_t:-
10904 }$am_cv_proto_iconv" >&6; }
10905
10906 cat >>confdefs.h <<_ACEOF
10907 #define ICONV_CONST $am_cv_proto_iconv_arg1
10908 _ACEOF
10909
10910 fi
10911
10912
10913 # Until we have in-tree GNU iconv:
10914 LIBICONV_DEP=
10915 if test -f "$LTLIBICONV"; then
10916 LIBICONV_DEP=$LTLIBICONV
10917 fi
10918
10919
10920
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10922 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10923 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10924 $as_echo_n "(cached) " >&6
10925 else
10926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h. */
10928 #include <locale.h>
10929 int
10930 main ()
10931 {
10932 return LC_MESSAGES
10933 ;
10934 return 0;
10935 }
10936 _ACEOF
10937 if ac_fn_cxx_try_link "$LINENO"; then :
10938 am_cv_val_LC_MESSAGES=yes
10939 else
10940 am_cv_val_LC_MESSAGES=no
10941 fi
10942 rm -f core conftest.err conftest.$ac_objext \
10943 conftest$ac_exeext conftest.$ac_ext
10944 fi
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10946 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10947 if test $am_cv_val_LC_MESSAGES = yes; then
10948
10949 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10950
10951 fi
10952
10953
10954
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10956 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10957 if test "${am_cv_langinfo_codeset+set}" = set; then :
10958 $as_echo_n "(cached) " >&6
10959 else
10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10962 #include <langinfo.h>
10963 int
10964 main ()
10965 {
10966 char* cs = nl_langinfo(CODESET);
10967 ;
10968 return 0;
10969 }
10970 _ACEOF
10971 if ac_fn_cxx_try_link "$LINENO"; then :
10972 am_cv_langinfo_codeset=yes
10973 else
10974 am_cv_langinfo_codeset=no
10975 fi
10976 rm -f core conftest.err conftest.$ac_objext \
10977 conftest$ac_exeext conftest.$ac_ext
10978
10979 fi
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10981 $as_echo "$am_cv_langinfo_codeset" >&6; }
10982 if test $am_cv_langinfo_codeset = yes; then
10983
10984 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10985
10986 fi
10987
10988
10989 # We will need to find libiberty.h and ansidecl.h
10990 saved_CFLAGS="$CFLAGS"
10991 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10992 saved_CXXFLAGS="$CXXFLAGS"
10993 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10994
10995 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10996 # normal autoconf function for these. But force definition of
10997 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10998 # basename handling in libiberty.h.
10999 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
11000 #undef HAVE_DECL_BASENAME
11001 #define HAVE_DECL_BASENAME 1
11002 #include \"ansidecl.h\"
11003 #include \"system.h\"
11004 "
11005 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
11006 ac_have_decl=1
11007 else
11008 ac_have_decl=0
11009 fi
11010
11011 cat >>confdefs.h <<_ACEOF
11012 #define HAVE_DECL_BASENAME $ac_have_decl
11013 _ACEOF
11014 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
11015 #undef HAVE_DECL_BASENAME
11016 #define HAVE_DECL_BASENAME 1
11017 #include \"ansidecl.h\"
11018 #include \"system.h\"
11019 "
11020 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
11021 ac_have_decl=1
11022 else
11023 ac_have_decl=0
11024 fi
11025
11026 cat >>confdefs.h <<_ACEOF
11027 #define HAVE_DECL_STRSTR $ac_have_decl
11028 _ACEOF
11029
11030
11031 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11032 madvise stpcpy strnlen strsignal strverscmp \
11033 strtol strtoul strtoll strtoull setenv unsetenv \
11034 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11035 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
11036 do
11037 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11039 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11040 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11041 $as_echo_n "(cached) " >&6
11042 else
11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11045 #undef $ac_tr_decl
11046 #define $ac_tr_decl 1
11047
11048 #include "ansidecl.h"
11049 #include "system.h"
11050
11051 int
11052 main ()
11053 {
11054 #ifndef $ac_func
11055 char *(*pfn) = (char *(*)) $ac_func ;
11056 #endif
11057 ;
11058 return 0;
11059 }
11060 _ACEOF
11061 if ac_fn_cxx_try_compile "$LINENO"; then :
11062 eval "gcc_cv_have_decl_$ac_func=yes"
11063 else
11064 eval "gcc_cv_have_decl_$ac_func=no"
11065 fi
11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067 fi
11068
11069 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11071 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11072 #define $ac_tr_decl 1
11073 _ACEOF
11074
11075 else
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11078 #define $ac_tr_decl 0
11079 _ACEOF
11080
11081 fi
11082
11083 done
11084
11085
11086 for ac_func in getrlimit setrlimit getrusage
11087 do
11088 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11090 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11091 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11092 $as_echo_n "(cached) " >&6
11093 else
11094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11095 /* end confdefs.h. */
11096 #undef $ac_tr_decl
11097 #define $ac_tr_decl 1
11098
11099 #include "ansidecl.h"
11100 #include "system.h"
11101 #ifdef HAVE_SYS_RESOURCE_H
11102 #include <sys/resource.h>
11103 #endif
11104
11105
11106 int
11107 main ()
11108 {
11109 #ifndef $ac_func
11110 char *(*pfn) = (char *(*)) $ac_func ;
11111 #endif
11112 ;
11113 return 0;
11114 }
11115 _ACEOF
11116 if ac_fn_cxx_try_compile "$LINENO"; then :
11117 eval "gcc_cv_have_decl_$ac_func=yes"
11118 else
11119 eval "gcc_cv_have_decl_$ac_func=no"
11120 fi
11121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122 fi
11123
11124 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11126 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11127 #define $ac_tr_decl 1
11128 _ACEOF
11129
11130 else
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11133 #define $ac_tr_decl 0
11134 _ACEOF
11135
11136 fi
11137
11138 done
11139
11140
11141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h. */
11143
11144 #include "ansidecl.h"
11145 #include "system.h"
11146 #ifdef HAVE_SYS_RESOURCE_H
11147 #include <sys/resource.h>
11148 #endif
11149
11150 int
11151 main ()
11152 {
11153 rlim_t l = 0;
11154 ;
11155 return 0;
11156 }
11157 _ACEOF
11158 if ac_fn_cxx_try_compile "$LINENO"; then :
11159
11160 else
11161
11162 $as_echo "#define rlim_t long" >>confdefs.h
11163
11164 fi
11165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11166
11167 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11168 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11169 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11170 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11171 for ac_func in ldgetname
11172 do
11173 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11175 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11176 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11177 $as_echo_n "(cached) " >&6
11178 else
11179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180 /* end confdefs.h. */
11181 #undef $ac_tr_decl
11182 #define $ac_tr_decl 1
11183
11184 #include "ansidecl.h"
11185 #include "system.h"
11186 #ifdef HAVE_LDFCN_H
11187 #undef FREAD
11188 #undef FWRITE
11189 #include <ldfcn.h>
11190 #endif
11191
11192
11193 int
11194 main ()
11195 {
11196 #ifndef $ac_func
11197 char *(*pfn) = (char *(*)) $ac_func ;
11198 #endif
11199 ;
11200 return 0;
11201 }
11202 _ACEOF
11203 if ac_fn_cxx_try_compile "$LINENO"; then :
11204 eval "gcc_cv_have_decl_$ac_func=yes"
11205 else
11206 eval "gcc_cv_have_decl_$ac_func=no"
11207 fi
11208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11209 fi
11210
11211 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11213 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11214 #define $ac_tr_decl 1
11215 _ACEOF
11216
11217 else
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11220 #define $ac_tr_decl 0
11221 _ACEOF
11222
11223 fi
11224
11225 done
11226
11227
11228 for ac_func in times
11229 do
11230 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11232 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11233 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11234 $as_echo_n "(cached) " >&6
11235 else
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11238 #undef $ac_tr_decl
11239 #define $ac_tr_decl 1
11240
11241 #include "ansidecl.h"
11242 #include "system.h"
11243 #ifdef HAVE_SYS_TIMES_H
11244 #include <sys/times.h>
11245 #endif
11246
11247
11248 int
11249 main ()
11250 {
11251 #ifndef $ac_func
11252 char *(*pfn) = (char *(*)) $ac_func ;
11253 #endif
11254 ;
11255 return 0;
11256 }
11257 _ACEOF
11258 if ac_fn_cxx_try_compile "$LINENO"; then :
11259 eval "gcc_cv_have_decl_$ac_func=yes"
11260 else
11261 eval "gcc_cv_have_decl_$ac_func=no"
11262 fi
11263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11264 fi
11265
11266 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11268 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11269 #define $ac_tr_decl 1
11270 _ACEOF
11271
11272 else
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11275 #define $ac_tr_decl 0
11276 _ACEOF
11277
11278 fi
11279
11280 done
11281
11282
11283 for ac_func in sigaltstack
11284 do
11285 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11287 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11288 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11289 $as_echo_n "(cached) " >&6
11290 else
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h. */
11293 #undef $ac_tr_decl
11294 #define $ac_tr_decl 1
11295
11296 #include "ansidecl.h"
11297 #include "system.h"
11298 #include <signal.h>
11299
11300
11301 int
11302 main ()
11303 {
11304 #ifndef $ac_func
11305 char *(*pfn) = (char *(*)) $ac_func ;
11306 #endif
11307 ;
11308 return 0;
11309 }
11310 _ACEOF
11311 if ac_fn_cxx_try_compile "$LINENO"; then :
11312 eval "gcc_cv_have_decl_$ac_func=yes"
11313 else
11314 eval "gcc_cv_have_decl_$ac_func=no"
11315 fi
11316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11317 fi
11318
11319 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11321 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11322 #define $ac_tr_decl 1
11323 _ACEOF
11324
11325 else
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11327 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11328 #define $ac_tr_decl 0
11329 _ACEOF
11330
11331 fi
11332
11333 done
11334
11335
11336 # More time-related stuff.
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11338 $as_echo_n "checking for struct tms... " >&6; }
11339 if test "${ac_cv_struct_tms+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11345
11346 #include "ansidecl.h"
11347 #include "system.h"
11348 #ifdef HAVE_SYS_TIMES_H
11349 #include <sys/times.h>
11350 #endif
11351
11352 int
11353 main ()
11354 {
11355 struct tms tms;
11356 ;
11357 return 0;
11358 }
11359 _ACEOF
11360 if ac_fn_cxx_try_compile "$LINENO"; then :
11361 ac_cv_struct_tms=yes
11362 else
11363 ac_cv_struct_tms=no
11364 fi
11365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 fi
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11368 $as_echo "$ac_cv_struct_tms" >&6; }
11369 if test $ac_cv_struct_tms = yes; then
11370
11371 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11372
11373 fi
11374
11375 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11376 # revisit after autoconf 2.50.
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11378 $as_echo_n "checking for clock_t... " >&6; }
11379 if test "${gcc_cv_type_clock_t+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382
11383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384 /* end confdefs.h. */
11385
11386 #include "ansidecl.h"
11387 #include "system.h"
11388
11389 int
11390 main ()
11391 {
11392 clock_t x;
11393 ;
11394 return 0;
11395 }
11396 _ACEOF
11397 if ac_fn_cxx_try_compile "$LINENO"; then :
11398 gcc_cv_type_clock_t=yes
11399 else
11400 gcc_cv_type_clock_t=no
11401 fi
11402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11403 fi
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11405 $as_echo "$gcc_cv_type_clock_t" >&6; }
11406 if test $gcc_cv_type_clock_t = yes; then
11407
11408 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11409
11410 fi
11411
11412 # Check if F_SETLKW is supported by fcntl.
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11414 $as_echo_n "checking for F_SETLKW... " >&6; }
11415 if test "${ac_cv_f_setlkw+set}" = set; then :
11416 $as_echo_n "(cached) " >&6
11417 else
11418
11419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11421
11422 #include <fcntl.h>
11423 int
11424 main ()
11425 {
11426
11427 struct flock fl;
11428 fl.l_whence = 0;
11429 fl.l_start = 0;
11430 fl.l_len = 0;
11431 fl.l_pid = 0;
11432 return fcntl (1, F_SETLKW, &fl);
11433 ;
11434 return 0;
11435 }
11436 _ACEOF
11437 if ac_fn_cxx_try_compile "$LINENO"; then :
11438 ac_cv_f_setlkw=yes
11439 else
11440 ac_cv_f_setlkw=no
11441 fi
11442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443 fi
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11445 $as_echo "$ac_cv_f_setlkw" >&6; }
11446 if test $ac_cv_f_setlkw = yes; then
11447
11448 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11449
11450 fi
11451
11452 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11453 CFLAGS="$saved_CFLAGS"
11454 CXXFLAGS="$saved_CXXFLAGS"
11455
11456 # mkdir takes a single argument on some systems.
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11458 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11459 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11460 $as_echo_n "(cached) " >&6
11461 else
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464
11465 #include <sys/types.h>
11466 #ifdef HAVE_SYS_STAT_H
11467 # include <sys/stat.h>
11468 #endif
11469 #ifdef HAVE_UNISTD_H
11470 # include <unistd.h>
11471 #endif
11472 #ifdef HAVE_DIRECT_H
11473 # include <direct.h>
11474 #endif
11475 int
11476 main ()
11477 {
11478 mkdir ("foo", 0);
11479 ;
11480 return 0;
11481 }
11482 _ACEOF
11483 if ac_fn_cxx_try_compile "$LINENO"; then :
11484 gcc_cv_mkdir_takes_one_arg=no
11485 else
11486 gcc_cv_mkdir_takes_one_arg=yes
11487 fi
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 fi
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11491 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11492 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11493
11494 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11495
11496 fi
11497
11498
11499 # File extensions
11500 manext='.1'
11501 objext='.o'
11502
11503
11504
11505 # With Setjmp/Longjmp based exception handling.
11506 # Check whether --enable-sjlj-exceptions was given.
11507 if test "${enable_sjlj_exceptions+set}" = set; then :
11508 enableval=$enable_sjlj_exceptions; case $target in
11509 *-*-hpux10*)
11510 if test $enableval != yes; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11512 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11513 enableval=yes
11514 fi
11515 ;;
11516 esac
11517 force_sjlj_exceptions=yes
11518 else
11519 case $target in
11520 *-*-hpux10*)
11521 force_sjlj_exceptions=yes
11522 enableval=yes
11523 ;;
11524 lm32*-*-*)
11525 force_sjlj_exceptions=yes
11526 enableval=yes
11527 ;;
11528 *)
11529 force_sjlj_exceptions=no
11530 ;;
11531 esac
11532 fi
11533
11534 if test $force_sjlj_exceptions = yes; then
11535 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11536
11537 cat >>confdefs.h <<_ACEOF
11538 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11539 _ACEOF
11540
11541 fi
11542
11543 # --------------------------------------------------------
11544 # Build, host, and target specific configuration fragments
11545 # --------------------------------------------------------
11546
11547 # Collect build-machine-specific information.
11548 . ${srcdir}/config.build || exit 1
11549
11550 # Collect host-machine-specific information.
11551 . ${srcdir}/config.host || exit 1
11552
11553 target_gtfiles=
11554
11555 # Collect target-machine-specific information.
11556 . ${srcdir}/config.gcc || exit 1
11557
11558 extra_objs="${host_extra_objs} ${extra_objs}"
11559 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11560
11561 # Default the target-machine variables that were not explicitly set.
11562 if test x"$tm_file" = x
11563 then tm_file=$cpu_type/$cpu_type.h; fi
11564
11565 if test x"$extra_headers" = x
11566 then extra_headers=; fi
11567
11568 if test x$md_file = x
11569 then md_file=$cpu_type/$cpu_type.md; fi
11570
11571 if test x$out_file = x
11572 then out_file=$cpu_type/$cpu_type.c; fi
11573
11574 if test x"$tmake_file" = x
11575 then tmake_file=$cpu_type/t-$cpu_type
11576 fi
11577
11578 # Support --enable-initfini-array.
11579 if test x$enable_initfini_array != xno; then
11580 tm_file="${tm_file} initfini-array.h"
11581 fi
11582
11583 if test x"$dwarf2" = xyes
11584 then tm_file="$tm_file tm-dwarf2.h"
11585 fi
11586
11587 # Say what files are being used for the output code and MD file.
11588 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11589 echo "Using \`$srcdir/config/$md_file' as machine description file."
11590
11591 # If any of the xm_file variables contain nonexistent files, warn
11592 # about them and drop them.
11593
11594 bx=
11595 for x in $build_xm_file; do
11596 if test -f $srcdir/config/$x
11597 then bx="$bx $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 build_xm_file="$bx"
11603
11604 hx=
11605 for x in $host_xm_file; do
11606 if test -f $srcdir/config/$x
11607 then hx="$hx $x"
11608 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11609 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11610 fi
11611 done
11612 host_xm_file="$hx"
11613
11614 tx=
11615 for x in $xm_file; do
11616 if test -f $srcdir/config/$x
11617 then tx="$tx $x"
11618 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11619 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11620 fi
11621 done
11622 xm_file="$tx"
11623
11624 count=a
11625 for f in $tm_file; do
11626 count=${count}x
11627 done
11628 if test $count = ax; then
11629 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11630 else
11631 echo "Using the following target machine macro files:"
11632 for f in $tm_file; do
11633 echo " $srcdir/config/$f"
11634 done
11635 fi
11636
11637 if test x$use_long_long_for_widest_fast_int = xyes; then
11638
11639 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11640
11641 fi
11642
11643 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11644
11645 cat >>confdefs.h <<_ACEOF
11646 #define HAVE_GNU_LD $gnu_ld_bool
11647 _ACEOF
11648
11649
11650 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11651
11652 cat >>confdefs.h <<_ACEOF
11653 #define HAVE_GNU_AS $gnu_as_bool
11654 _ACEOF
11655
11656
11657 count=a
11658 for f in $host_xm_file; do
11659 count=${count}x
11660 done
11661 if test $count = a; then
11662 :
11663 elif test $count = ax; then
11664 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11665 else
11666 echo "Using the following host machine macro files:"
11667 for f in $host_xm_file; do
11668 echo " $srcdir/config/$f"
11669 done
11670 fi
11671 echo "Using ${out_host_hook_obj} for host machine hooks."
11672
11673 if test "$host_xm_file" != "$build_xm_file"; then
11674 count=a
11675 for f in $build_xm_file; do
11676 count=${count}x
11677 done
11678 if test $count = a; then
11679 :
11680 elif test $count = ax; then
11681 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11682 else
11683 echo "Using the following build machine macro files:"
11684 for f in $build_xm_file; do
11685 echo " $srcdir/config/$f"
11686 done
11687 fi
11688 fi
11689
11690 if test -n "$configured_native_system_header_dir"; then
11691 native_system_header_dir=$configured_native_system_header_dir
11692 fi
11693 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11694
11695
11696 case ${host} in
11697 powerpc*-*-darwin*)
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11699 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11700 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11701 $as_echo_n "(cached) " >&6
11702 else
11703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11704 /* end confdefs.h. */
11705
11706 #include <sys/cdefs.h>
11707 #include <sys/signal.h>
11708 #include <ucontext.h>
11709 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11710
11711 _ACEOF
11712 if ac_fn_cxx_try_compile "$LINENO"; then :
11713 gcc_cv_mcontext_underscores=no
11714 else
11715 gcc_cv_mcontext_underscores=yes
11716 fi
11717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11718 fi
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11720 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11721 if test $gcc_cv_mcontext_underscores = yes; then
11722
11723 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11724
11725 fi
11726 ;;
11727 esac
11728
11729 # ---------
11730 # Threading
11731 # ---------
11732
11733 # Check if a valid thread package
11734 case ${enable_threads} in
11735 "" | no)
11736 # No threads
11737 target_thread_file='single'
11738 ;;
11739 yes)
11740 # default
11741 target_thread_file='single'
11742 ;;
11743 aix | dce | lynx | mipssde | posix | rtems | \
11744 single | tpf | vxworks | win32)
11745 target_thread_file=${enable_threads}
11746 ;;
11747 *)
11748 echo "${enable_threads} is an unknown thread package" 1>&2
11749 exit 1
11750 ;;
11751 esac
11752
11753 if test x${thread_file} = x; then
11754 # No thread file set by target-specific clauses in config.gcc,
11755 # so use file chosen by default logic above
11756 thread_file=${target_thread_file}
11757 fi
11758
11759 # --------
11760 # UNSORTED
11761 # --------
11762
11763 use_cxa_atexit=no
11764 if test x$enable___cxa_atexit = xyes || \
11765 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11766 if test x$host = x$target; then
11767 case $host in
11768 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11769 # keyed to flag_use_cxa_atexit
11770 *-*-mingw32*)
11771 use_cxa_atexit=yes
11772 ;;
11773 powerpc-ibm-aix*)
11774 use_cxa_atexit=yes
11775 ;;
11776 *)
11777 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11778 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11779 use_cxa_atexit=yes
11780 else
11781 echo "__cxa_atexit can't be enabled on this target"
11782 fi
11783
11784 ;;
11785 esac
11786 else
11787 # We can't check for __cxa_atexit when building a cross, so assume
11788 # it is available
11789 use_cxa_atexit=yes
11790 fi
11791 if test x$use_cxa_atexit = xyes; then
11792
11793 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11794
11795 fi
11796 fi
11797
11798 # Look for a file containing extra machine modes.
11799 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11800 extra_modes_file='$(srcdir)'/config/${extra_modes}
11801
11802
11803 cat >>confdefs.h <<_ACEOF
11804 #define EXTRA_MODES_FILE "config/$extra_modes"
11805 _ACEOF
11806
11807 fi
11808
11809 # Convert extra_options into a form suitable for Makefile use.
11810 extra_opt_files=
11811 all_opt_files=
11812 for f in $extra_options; do
11813 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11814 all_opt_files="$all_opt_files $srcdir/config/$f"
11815 done
11816
11817
11818 # auto-host.h is the file containing items generated by autoconf and is
11819 # the first file included by config.h.
11820 # If host=build, it is correct to have bconfig include auto-host.h
11821 # as well. If host!=build, we are in error and need to do more
11822 # work to find out the build config parameters.
11823 if test x$host = x$build
11824 then
11825 build_auto=auto-host.h
11826 else
11827 # We create a subdir, then run autoconf in the subdir.
11828 # To prevent recursion we set host and build for the new
11829 # invocation of configure to the build for this invocation
11830 # of configure.
11831 tempdir=build.$$
11832 rm -rf $tempdir
11833 mkdir $tempdir
11834 cd $tempdir
11835 case ${srcdir} in
11836 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11837 *) realsrcdir=../${srcdir};;
11838 esac
11839 # Clearing GMPINC is necessary to prevent host headers being
11840 # used by the build compiler. Defining GENERATOR_FILE stops
11841 # system.h from including gmp.h.
11842 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11843 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11844 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11845 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11846 ${realsrcdir}/configure \
11847 --enable-languages=${enable_languages-all} \
11848 --target=$target_alias --host=$build_alias --build=$build_alias
11849
11850 # We just finished tests for the build machine, so rename
11851 # the file auto-build.h in the gcc directory.
11852 mv auto-host.h ../auto-build.h
11853 cd ..
11854 rm -rf $tempdir
11855 build_auto=auto-build.h
11856 fi
11857
11858
11859 tm_file="${tm_file} defaults.h"
11860 tm_p_file="${tm_p_file} tm-preds.h"
11861 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11862 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11863 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11864 # put this back in temporarily.
11865 xm_file="auto-host.h ansidecl.h ${xm_file}"
11866
11867 # --------
11868 # UNSORTED
11869 # --------
11870
11871 # Compile in configure arguments.
11872 if test -f configargs.h ; then
11873 # Being re-configured.
11874 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11875 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
11876 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
11877 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11878 fi
11879 else
11880 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11881 fi
11882
11883 # Double all backslashes and backslash all quotes to turn
11884 # gcc_config_arguments into a C string.
11885 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11886 $gcc_config_arguments
11887 EOF
11888 gcc_config_arguments_str=`cat conftest.out`
11889 rm -f conftest.out
11890
11891 cat > configargs.h <<EOF
11892 /* Generated automatically. */
11893 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11894 static const char thread_model[] = "$thread_file";
11895
11896 static const struct {
11897 const char *name, *value;
11898 } configure_default_options[] = $configure_default_options;
11899 EOF
11900
11901 gcc_BASEVER=`cat $srcdir/BASE-VER`
11902 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11903 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11904 if test -f $srcdir/REVISION ; then
11905 gcc_REVISION=`cat $srcdir/REVISION`
11906 else
11907 gcc_REVISION=""
11908 fi
11909 cat > plugin-version.h <<EOF
11910 #include "configargs.h"
11911
11912 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11913 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11914 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11915 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11916
11917 static char basever[] = "$gcc_BASEVER";
11918 static char datestamp[] = "$gcc_DATESTAMP";
11919 static char devphase[] = "$gcc_DEVPHASE";
11920 static char revision[] = "$gcc_REVISION";
11921
11922 /* FIXME plugins: We should make the version information more precise.
11923 One way to do is to add a checksum. */
11924
11925 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11926 devphase, revision,
11927 configuration_arguments};
11928 EOF
11929
11930 # Determine what GCC version number to use in filesystem paths.
11931
11932 get_gcc_base_ver="cat"
11933
11934 # Check whether --with-gcc-major-version-only was given.
11935 if test "${with_gcc_major_version_only+set}" = set; then :
11936 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11937 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
11938 fi
11939
11940 fi
11941
11942
11943
11944
11945 # Internationalization
11946 # If we haven't got the data from the intl directory,
11947 # assume NLS is disabled.
11948 USE_NLS=no
11949 LIBINTL=
11950 LIBINTL_DEP=
11951 INCINTL=
11952 XGETTEXT=
11953 GMSGFMT=
11954 POSUB=
11955
11956 if test -f ../intl/config.intl; then
11957 . ../intl/config.intl
11958 fi
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11960 $as_echo_n "checking whether NLS is requested... " >&6; }
11961 if test x"$USE_NLS" != xyes; then
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963 $as_echo "no" >&6; }
11964 else
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11966 $as_echo "yes" >&6; }
11967
11968 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11969
11970
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11972 $as_echo_n "checking for catalogs to be installed... " >&6; }
11973 # Look for .po and .gmo files in the source directory.
11974 CATALOGS=
11975 XLINGUAS=
11976 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11977 # If there aren't any .gmo files the shell will give us the
11978 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11979 # weeded out.
11980 case "$cat" in *\**)
11981 continue;;
11982 esac
11983 # The quadruple backslash is collapsed to a double backslash
11984 # by the backticks, then collapsed again by the double quotes,
11985 # leaving us with one backslash in the sed expression (right
11986 # before the dot that mustn't act as a wildcard).
11987 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11988 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11989 # The user is allowed to set LINGUAS to a list of languages to
11990 # install catalogs for. If it's empty that means "all of them."
11991 if test "x$LINGUAS" = x; then
11992 CATALOGS="$CATALOGS $cat"
11993 XLINGUAS="$XLINGUAS $lang"
11994 else
11995 case "$LINGUAS" in *$lang*)
11996 CATALOGS="$CATALOGS $cat"
11997 XLINGUAS="$XLINGUAS $lang"
11998 ;;
11999 esac
12000 fi
12001 done
12002 LINGUAS="$XLINGUAS"
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12004 $as_echo "$LINGUAS" >&6; }
12005
12006
12007 DATADIRNAME=share
12008
12009 INSTOBJEXT=.mo
12010
12011 GENCAT=gencat
12012
12013 CATOBJEXT=.gmo
12014
12015 fi
12016
12017 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12018 # -liconv on the link line twice.
12019 case "$LIBINTL" in *$LIBICONV*)
12020 LIBICONV= ;;
12021 esac
12022
12023 # Check whether --enable-secureplt was given.
12024 if test "${enable_secureplt+set}" = set; then :
12025 enableval=$enable_secureplt;
12026 fi
12027
12028
12029 # Check whether --enable-mingw-wildcard was given.
12030 if test "${enable_mingw_wildcard+set}" = set; then :
12031 enableval=$enable_mingw_wildcard;
12032 else
12033 enable_mingw_wildcard=platform
12034 fi
12035
12036 if test x"$enable_mingw_wildcard" != xplatform ; then :
12037
12038 cat >>confdefs.h <<_ACEOF
12039 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12040 _ACEOF
12041
12042 fi
12043
12044 # Check whether --enable-large-address-aware was given.
12045 if test "${enable_large_address_aware+set}" = set; then :
12046 enableval=$enable_large_address_aware;
12047 fi
12048
12049 if test x"$enable_large_address_aware" = xyes; then :
12050
12051 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12052
12053 fi
12054
12055 # Check whether --enable-leading-mingw64-underscores was given.
12056 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12057 enableval=$enable_leading_mingw64_underscores;
12058 fi
12059
12060 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12061
12062 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12063
12064 fi
12065
12066 # Check whether --enable-cld was given.
12067 if test "${enable_cld+set}" = set; then :
12068 enableval=$enable_cld;
12069 else
12070 enable_cld=no
12071 fi
12072
12073
12074 # Check whether --enable-frame-pointer was given.
12075 if test "${enable_frame_pointer+set}" = set; then :
12076 enableval=$enable_frame_pointer;
12077 else
12078
12079 case $target_os in
12080 linux* | darwin[8912]*)
12081 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12082 # DWARF2.
12083 enable_frame_pointer=no
12084 ;;
12085 *)
12086 enable_frame_pointer=yes
12087 ;;
12088 esac
12089
12090 fi
12091
12092
12093 # Windows32 Registry support for specifying GCC installation paths.
12094 # Check whether --enable-win32-registry was given.
12095 if test "${enable_win32_registry+set}" = set; then :
12096 enableval=$enable_win32_registry;
12097 fi
12098
12099
12100 case $host_os in
12101 win32 | pe | cygwin* | mingw32*)
12102 if test "x$enable_win32_registry" != xno; then
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12104 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12105 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12106 $as_echo_n "(cached) " >&6
12107 else
12108 ac_func_search_save_LIBS=$LIBS
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12111
12112 /* Override any GCC internal prototype to avoid an error.
12113 Use char because int might match the return type of a GCC
12114 builtin and then its argument prototype would still apply. */
12115 #ifdef __cplusplus
12116 extern "C"
12117 #endif
12118 char RegOpenKeyExA ();
12119 int
12120 main ()
12121 {
12122 return RegOpenKeyExA ();
12123 ;
12124 return 0;
12125 }
12126 _ACEOF
12127 for ac_lib in '' advapi32; do
12128 if test -z "$ac_lib"; then
12129 ac_res="none required"
12130 else
12131 ac_res=-l$ac_lib
12132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12133 fi
12134 if ac_fn_cxx_try_link "$LINENO"; then :
12135 ac_cv_search_RegOpenKeyExA=$ac_res
12136 fi
12137 rm -f core conftest.err conftest.$ac_objext \
12138 conftest$ac_exeext
12139 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12140 break
12141 fi
12142 done
12143 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12144
12145 else
12146 ac_cv_search_RegOpenKeyExA=no
12147 fi
12148 rm conftest.$ac_ext
12149 LIBS=$ac_func_search_save_LIBS
12150 fi
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12152 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12153 ac_res=$ac_cv_search_RegOpenKeyExA
12154 if test "$ac_res" != no; then :
12155 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12156
12157 else
12158 enable_win32_registry=no
12159 fi
12160
12161 fi
12162
12163 if test "x$enable_win32_registry" != xno; then
12164
12165 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12166
12167
12168 if test "x$enable_win32_registry" != xyes \
12169 && test "x$enable_win32_registry" != x; then
12170
12171 cat >>confdefs.h <<_ACEOF
12172 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12173 _ACEOF
12174
12175 fi
12176 fi
12177 ;;
12178 esac
12179
12180 # Get an absolute path to the GCC top-level source directory
12181 holddir=`${PWDCMD-pwd}`
12182 cd $srcdir
12183 topdir=`${PWDCMD-pwd}`
12184 cd $holddir
12185
12186 # Conditionalize the makefile for this host machine.
12187 xmake_file=
12188 for f in ${host_xmake_file}
12189 do
12190 if test -f ${srcdir}/config/$f
12191 then
12192 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12193 fi
12194 done
12195
12196 # Conditionalize the makefile for this target machine.
12197 tmake_file_=
12198 for f in ${tmake_file}
12199 do
12200 if test -f ${srcdir}/config/$f
12201 then
12202 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12203 fi
12204 done
12205 tmake_file="${tmake_file_}"
12206
12207 out_object_file=`basename $out_file .c`.o
12208 common_out_object_file=`basename $common_out_file .c`.o
12209
12210 tm_file_list="options.h"
12211 tm_include_list="options.h insn-constants.h"
12212 for f in $tm_file; do
12213 case $f in
12214 ./* )
12215 f=`echo $f | sed 's/^..//'`
12216 tm_file_list="${tm_file_list} $f"
12217 tm_include_list="${tm_include_list} $f"
12218 ;;
12219 defaults.h )
12220 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12221 tm_include_list="${tm_include_list} $f"
12222 ;;
12223 * )
12224 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12225 tm_include_list="${tm_include_list} config/$f"
12226 ;;
12227 esac
12228 done
12229
12230 tm_p_file_list=
12231 tm_p_include_list=
12232 for f in $tm_p_file; do
12233 case $f in
12234 tm-preds.h )
12235 tm_p_file_list="${tm_p_file_list} $f"
12236 tm_p_include_list="${tm_p_include_list} $f"
12237 ;;
12238 * )
12239 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12240 tm_p_include_list="${tm_p_include_list} config/$f"
12241 esac
12242 done
12243
12244 xm_file_list=
12245 xm_include_list=
12246 for f in $xm_file; do
12247 case $f in
12248 ansidecl.h )
12249 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12250 xm_include_list="${xm_include_list} $f"
12251 ;;
12252 auto-host.h )
12253 xm_file_list="${xm_file_list} $f"
12254 xm_include_list="${xm_include_list} $f"
12255 ;;
12256 * )
12257 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12258 xm_include_list="${xm_include_list} config/$f"
12259 ;;
12260 esac
12261 done
12262
12263 host_xm_file_list=
12264 host_xm_include_list=
12265 for f in $host_xm_file; do
12266 case $f in
12267 ansidecl.h )
12268 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12269 host_xm_include_list="${host_xm_include_list} $f"
12270 ;;
12271 auto-host.h )
12272 host_xm_file_list="${host_xm_file_list} $f"
12273 host_xm_include_list="${host_xm_include_list} $f"
12274 ;;
12275 * )
12276 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12277 host_xm_include_list="${host_xm_include_list} config/$f"
12278 ;;
12279 esac
12280 done
12281
12282 build_xm_file_list=
12283 for f in $build_xm_file; do
12284 case $f in
12285 ansidecl.h )
12286 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12287 build_xm_include_list="${build_xm_include_list} $f"
12288 ;;
12289 auto-build.h | auto-host.h )
12290 build_xm_file_list="${build_xm_file_list} $f"
12291 build_xm_include_list="${build_xm_include_list} $f"
12292 ;;
12293 * )
12294 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12295 build_xm_include_list="${build_xm_include_list} config/$f"
12296 ;;
12297 esac
12298 done
12299
12300 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12301 # cross-compiler which does not use the native headers and libraries.
12302 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12303 CROSS=
12304 ALL=all.internal
12305 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12306 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12307
12308 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12309 test x$build != x$host || test "x$with_build_sysroot" != x; then
12310 if test "x$with_build_sysroot" != x; then
12311 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12312 else
12313 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12314 fi
12315
12316 if test x$host != x$target
12317 then
12318 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12319 ALL=all.cross
12320 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12321 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12322 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12323 fi
12324
12325 if test "x$with_build_sysroot" != "x"; then
12326 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12327 elif test "x$with_sysroot" = x; then
12328 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12329 elif test "x$with_sysroot" = xyes; then
12330 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12331 else
12332 target_header_dir="${with_sysroot}${native_system_header_dir}"
12333 fi
12334 else
12335 target_header_dir=${native_system_header_dir}
12336 fi
12337
12338 # If this is a cross-compiler that does not
12339 # have its own set of headers then define
12340 # inhibit_libc
12341
12342 # If this is using newlib, without having the headers available now,
12343 # then define inhibit_libc in LIBGCC2_CFLAGS.
12344 # This prevents libgcc2 from containing any code which requires libc
12345 # support.
12346 : ${inhibit_libc=false}
12347 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12348 test x$with_newlib = xyes ; } &&
12349 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12350 inhibit_libc=true
12351 fi
12352
12353
12354 # When building gcc with a cross-compiler, we need to adjust things so
12355 # that the generator programs are still built with the native compiler.
12356 # Also, we cannot run fixincludes.
12357
12358 # These are the normal (build=host) settings:
12359 CC_FOR_BUILD='$(CC)'
12360 CXX_FOR_BUILD='$(CXX)'
12361 BUILD_CFLAGS='$(ALL_CFLAGS)'
12362 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12363 BUILD_LDFLAGS='$(LDFLAGS)'
12364 STMP_FIXINC=stmp-fixinc
12365
12366 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12367 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12368
12369 # And these apply if build != host, or we are generating coverage data
12370 if test x$build != x$host || test "x$coverage_flags" != x
12371 then
12372 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12373 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12374 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12375
12376 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12377 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12378 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12379 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12380 fi
12381
12382
12383
12384 # Expand extra_headers to include complete path.
12385 # This substitutes for lots of t-* files.
12386 extra_headers_list=
12387 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12388 for file in ${extra_headers} ; do
12389 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12390 done
12391
12392 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12393 if test x"$use_gcc_tgmath" = xyes
12394 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12395 fi
12396
12397 # Define collect2 in Makefile.
12398 case $host_can_use_collect2 in
12399 no) collect2= ;;
12400 *) collect2='collect2$(exeext)' ;;
12401 esac
12402
12403
12404 # Add a definition of USE_COLLECT2 if system wants one.
12405 case $use_collect2 in
12406 no) use_collect2= ;;
12407 "") ;;
12408 *)
12409 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12410 xm_defines="${xm_defines} USE_COLLECT2"
12411 case $host_can_use_collect2 in
12412 no)
12413 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12414 ;;
12415 esac
12416 ;;
12417 esac
12418
12419
12420 cat >>confdefs.h <<_ACEOF
12421 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12422 _ACEOF
12423
12424
12425 # ---------------------------
12426 # Assembler & linker features
12427 # ---------------------------
12428
12429 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12430 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12431 # However when ld-new is first executed from the build tree, libtool will
12432 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12433 # to the build tree. While doing this we need to use the previous-stage
12434 # linker, or we have an infinite loop. The presence of a shell script as
12435 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12436 # the gcc/collect-ld script. So we need to know how libtool works, or
12437 # exec-tool will fail.
12438
12439
12440 case `pwd` in
12441 *\ * | *\ *)
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12443 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12444 esac
12445
12446
12447
12448 macro_version='2.2.7a'
12449 macro_revision='1.3134'
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463 ltmain="$ac_aux_dir/ltmain.sh"
12464
12465 # Backslashify metacharacters that are still active within
12466 # double-quoted strings.
12467 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12468
12469 # Same as above, but do not quote variable references.
12470 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12471
12472 # Sed substitution to delay expansion of an escaped shell variable in a
12473 # double_quote_subst'ed string.
12474 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12475
12476 # Sed substitution to delay expansion of an escaped single quote.
12477 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12478
12479 # Sed substitution to avoid accidental globbing in evaled expressions
12480 no_glob_subst='s/\*/\\\*/g'
12481
12482 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12483 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12484 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12485
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12487 $as_echo_n "checking how to print strings... " >&6; }
12488 # Test print first, because it will be a builtin if present.
12489 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12490 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12491 ECHO='print -r --'
12492 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12493 ECHO='printf %s\n'
12494 else
12495 # Use this function as a fallback that always works.
12496 func_fallback_echo ()
12497 {
12498 eval 'cat <<_LTECHO_EOF
12499 $1
12500 _LTECHO_EOF'
12501 }
12502 ECHO='func_fallback_echo'
12503 fi
12504
12505 # func_echo_all arg...
12506 # Invoke $ECHO with all args, space-separated.
12507 func_echo_all ()
12508 {
12509 $ECHO ""
12510 }
12511
12512 case "$ECHO" in
12513 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12514 $as_echo "printf" >&6; } ;;
12515 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12516 $as_echo "print -r" >&6; } ;;
12517 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12518 $as_echo "cat" >&6; } ;;
12519 esac
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12535 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12536 if test "${ac_cv_path_SED+set}" = set; then :
12537 $as_echo_n "(cached) " >&6
12538 else
12539 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12540 for ac_i in 1 2 3 4 5 6 7; do
12541 ac_script="$ac_script$as_nl$ac_script"
12542 done
12543 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12544 { ac_script=; unset ac_script;}
12545 if test -z "$SED"; then
12546 ac_path_SED_found=false
12547 # Loop through the user's path and test for each of PROGNAME-LIST
12548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549 for as_dir in $PATH
12550 do
12551 IFS=$as_save_IFS
12552 test -z "$as_dir" && as_dir=.
12553 for ac_prog in sed gsed; do
12554 for ac_exec_ext in '' $ac_executable_extensions; do
12555 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12556 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12557 # Check for GNU ac_path_SED and select it if it is found.
12558 # Check for GNU $ac_path_SED
12559 case `"$ac_path_SED" --version 2>&1` in
12560 *GNU*)
12561 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12562 *)
12563 ac_count=0
12564 $as_echo_n 0123456789 >"conftest.in"
12565 while :
12566 do
12567 cat "conftest.in" "conftest.in" >"conftest.tmp"
12568 mv "conftest.tmp" "conftest.in"
12569 cp "conftest.in" "conftest.nl"
12570 $as_echo '' >> "conftest.nl"
12571 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12573 as_fn_arith $ac_count + 1 && ac_count=$as_val
12574 if test $ac_count -gt ${ac_path_SED_max-0}; then
12575 # Best one so far, save it but keep looking for a better one
12576 ac_cv_path_SED="$ac_path_SED"
12577 ac_path_SED_max=$ac_count
12578 fi
12579 # 10*(2^10) chars as input seems more than enough
12580 test $ac_count -gt 10 && break
12581 done
12582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12583 esac
12584
12585 $ac_path_SED_found && break 3
12586 done
12587 done
12588 done
12589 IFS=$as_save_IFS
12590 if test -z "$ac_cv_path_SED"; then
12591 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12592 fi
12593 else
12594 ac_cv_path_SED=$SED
12595 fi
12596
12597 fi
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12599 $as_echo "$ac_cv_path_SED" >&6; }
12600 SED="$ac_cv_path_SED"
12601 rm -f conftest.sed
12602
12603 test -z "$SED" && SED=sed
12604 Xsed="$SED -e 1s/^X//"
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12617 $as_echo_n "checking for fgrep... " >&6; }
12618 if test "${ac_cv_path_FGREP+set}" = set; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12622 then ac_cv_path_FGREP="$GREP -F"
12623 else
12624 if test -z "$FGREP"; then
12625 ac_path_FGREP_found=false
12626 # Loop through the user's path and test for each of PROGNAME-LIST
12627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12629 do
12630 IFS=$as_save_IFS
12631 test -z "$as_dir" && as_dir=.
12632 for ac_prog in fgrep; do
12633 for ac_exec_ext in '' $ac_executable_extensions; do
12634 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12635 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12636 # Check for GNU ac_path_FGREP and select it if it is found.
12637 # Check for GNU $ac_path_FGREP
12638 case `"$ac_path_FGREP" --version 2>&1` in
12639 *GNU*)
12640 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12641 *)
12642 ac_count=0
12643 $as_echo_n 0123456789 >"conftest.in"
12644 while :
12645 do
12646 cat "conftest.in" "conftest.in" >"conftest.tmp"
12647 mv "conftest.tmp" "conftest.in"
12648 cp "conftest.in" "conftest.nl"
12649 $as_echo 'FGREP' >> "conftest.nl"
12650 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12652 as_fn_arith $ac_count + 1 && ac_count=$as_val
12653 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12654 # Best one so far, save it but keep looking for a better one
12655 ac_cv_path_FGREP="$ac_path_FGREP"
12656 ac_path_FGREP_max=$ac_count
12657 fi
12658 # 10*(2^10) chars as input seems more than enough
12659 test $ac_count -gt 10 && break
12660 done
12661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12662 esac
12663
12664 $ac_path_FGREP_found && break 3
12665 done
12666 done
12667 done
12668 IFS=$as_save_IFS
12669 if test -z "$ac_cv_path_FGREP"; then
12670 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12671 fi
12672 else
12673 ac_cv_path_FGREP=$FGREP
12674 fi
12675
12676 fi
12677 fi
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12679 $as_echo "$ac_cv_path_FGREP" >&6; }
12680 FGREP="$ac_cv_path_FGREP"
12681
12682
12683 test -z "$GREP" && GREP=grep
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703 # Check whether --with-gnu-ld was given.
12704 if test "${with_gnu_ld+set}" = set; then :
12705 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12706 else
12707 with_gnu_ld=no
12708 fi
12709
12710 ac_prog=ld
12711 if test "$GCC" = yes; then
12712 # Check if gcc -print-prog-name=ld gives a path.
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12714 $as_echo_n "checking for ld used by $CC... " >&6; }
12715 case $host in
12716 *-*-mingw*)
12717 # gcc leaves a trailing carriage return which upsets mingw
12718 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12719 *)
12720 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12721 esac
12722 case $ac_prog in
12723 # Accept absolute paths.
12724 [\\/]* | ?:[\\/]*)
12725 re_direlt='/[^/][^/]*/\.\./'
12726 # Canonicalize the pathname of ld
12727 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12728 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12729 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12730 done
12731 test -z "$LD" && LD="$ac_prog"
12732 ;;
12733 "")
12734 # If it fails, then pretend we aren't using GCC.
12735 ac_prog=ld
12736 ;;
12737 *)
12738 # If it is relative, then search for the first ld in PATH.
12739 with_gnu_ld=unknown
12740 ;;
12741 esac
12742 elif test "$with_gnu_ld" = yes; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12744 $as_echo_n "checking for GNU ld... " >&6; }
12745 else
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12747 $as_echo_n "checking for non-GNU ld... " >&6; }
12748 fi
12749 if test "${lt_cv_path_LD+set}" = set; then :
12750 $as_echo_n "(cached) " >&6
12751 else
12752 if test -z "$LD"; then
12753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12754 for ac_dir in $PATH; do
12755 IFS="$lt_save_ifs"
12756 test -z "$ac_dir" && ac_dir=.
12757 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12758 lt_cv_path_LD="$ac_dir/$ac_prog"
12759 # Check to see if the program is GNU ld. I'd rather use --version,
12760 # but apparently some variants of GNU ld only accept -v.
12761 # Break only if it was the GNU/non-GNU ld that we prefer.
12762 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12763 *GNU* | *'with BFD'*)
12764 test "$with_gnu_ld" != no && break
12765 ;;
12766 *)
12767 test "$with_gnu_ld" != yes && break
12768 ;;
12769 esac
12770 fi
12771 done
12772 IFS="$lt_save_ifs"
12773 else
12774 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12775 fi
12776 fi
12777
12778 LD="$lt_cv_path_LD"
12779 if test -n "$LD"; then
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12781 $as_echo "$LD" >&6; }
12782 else
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784 $as_echo "no" >&6; }
12785 fi
12786 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12788 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12789 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12790 $as_echo_n "(cached) " >&6
12791 else
12792 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12793 case `$LD -v 2>&1 </dev/null` in
12794 *GNU* | *'with BFD'*)
12795 lt_cv_prog_gnu_ld=yes
12796 ;;
12797 *)
12798 lt_cv_prog_gnu_ld=no
12799 ;;
12800 esac
12801 fi
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12803 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12804 with_gnu_ld=$lt_cv_prog_gnu_ld
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12815 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12816 if test "${lt_cv_path_NM+set}" = set; then :
12817 $as_echo_n "(cached) " >&6
12818 else
12819 if test -n "$NM"; then
12820 # Let the user override the test.
12821 lt_cv_path_NM="$NM"
12822 else
12823 lt_nm_to_check="${ac_tool_prefix}nm"
12824 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12825 lt_nm_to_check="$lt_nm_to_check nm"
12826 fi
12827 for lt_tmp_nm in $lt_nm_to_check; do
12828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12829 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12830 IFS="$lt_save_ifs"
12831 test -z "$ac_dir" && ac_dir=.
12832 tmp_nm="$ac_dir/$lt_tmp_nm"
12833 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12834 # Check to see if the nm accepts a BSD-compat flag.
12835 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12836 # nm: unknown option "B" ignored
12837 # Tru64's nm complains that /dev/null is an invalid object file
12838 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12839 */dev/null* | *'Invalid file or object type'*)
12840 lt_cv_path_NM="$tmp_nm -B"
12841 break
12842 ;;
12843 *)
12844 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12845 */dev/null*)
12846 lt_cv_path_NM="$tmp_nm -p"
12847 break
12848 ;;
12849 *)
12850 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12851 continue # so that we can try to find one that supports BSD flags
12852 ;;
12853 esac
12854 ;;
12855 esac
12856 fi
12857 done
12858 IFS="$lt_save_ifs"
12859 done
12860 : ${lt_cv_path_NM=no}
12861 fi
12862 fi
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12864 $as_echo "$lt_cv_path_NM" >&6; }
12865 if test "$lt_cv_path_NM" != "no"; then
12866 NM="$lt_cv_path_NM"
12867 else
12868 # Didn't find any BSD compatible name lister, look for dumpbin.
12869 if test -n "$DUMPBIN"; then :
12870 # Let the user override the test.
12871 else
12872 if test -n "$ac_tool_prefix"; then
12873 for ac_prog in dumpbin "link -dump"
12874 do
12875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12878 $as_echo_n "checking for $ac_word... " >&6; }
12879 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12880 $as_echo_n "(cached) " >&6
12881 else
12882 if test -n "$DUMPBIN"; then
12883 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12884 else
12885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886 for as_dir in $PATH
12887 do
12888 IFS=$as_save_IFS
12889 test -z "$as_dir" && as_dir=.
12890 for ac_exec_ext in '' $ac_executable_extensions; do
12891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12892 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12894 break 2
12895 fi
12896 done
12897 done
12898 IFS=$as_save_IFS
12899
12900 fi
12901 fi
12902 DUMPBIN=$ac_cv_prog_DUMPBIN
12903 if test -n "$DUMPBIN"; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12905 $as_echo "$DUMPBIN" >&6; }
12906 else
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908 $as_echo "no" >&6; }
12909 fi
12910
12911
12912 test -n "$DUMPBIN" && break
12913 done
12914 fi
12915 if test -z "$DUMPBIN"; then
12916 ac_ct_DUMPBIN=$DUMPBIN
12917 for ac_prog in dumpbin "link -dump"
12918 do
12919 # Extract the first word of "$ac_prog", so it can be a program name with args.
12920 set dummy $ac_prog; ac_word=$2
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12922 $as_echo_n "checking for $ac_word... " >&6; }
12923 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12924 $as_echo_n "(cached) " >&6
12925 else
12926 if test -n "$ac_ct_DUMPBIN"; then
12927 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12928 else
12929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12930 for as_dir in $PATH
12931 do
12932 IFS=$as_save_IFS
12933 test -z "$as_dir" && as_dir=.
12934 for ac_exec_ext in '' $ac_executable_extensions; do
12935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12936 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12938 break 2
12939 fi
12940 done
12941 done
12942 IFS=$as_save_IFS
12943
12944 fi
12945 fi
12946 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12947 if test -n "$ac_ct_DUMPBIN"; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12949 $as_echo "$ac_ct_DUMPBIN" >&6; }
12950 else
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12952 $as_echo "no" >&6; }
12953 fi
12954
12955
12956 test -n "$ac_ct_DUMPBIN" && break
12957 done
12958
12959 if test "x$ac_ct_DUMPBIN" = x; then
12960 DUMPBIN=":"
12961 else
12962 case $cross_compiling:$ac_tool_warned in
12963 yes:)
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12966 ac_tool_warned=yes ;;
12967 esac
12968 DUMPBIN=$ac_ct_DUMPBIN
12969 fi
12970 fi
12971
12972 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12973 *COFF*)
12974 DUMPBIN="$DUMPBIN -symbols"
12975 ;;
12976 *)
12977 DUMPBIN=:
12978 ;;
12979 esac
12980 fi
12981
12982 if test "$DUMPBIN" != ":"; then
12983 NM="$DUMPBIN"
12984 fi
12985 fi
12986 test -z "$NM" && NM=nm
12987
12988
12989
12990
12991
12992
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12994 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12995 if test "${lt_cv_nm_interface+set}" = set; then :
12996 $as_echo_n "(cached) " >&6
12997 else
12998 lt_cv_nm_interface="BSD nm"
12999 echo "int some_variable = 0;" > conftest.$ac_ext
13000 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13001 (eval "$ac_compile" 2>conftest.err)
13002 cat conftest.err >&5
13003 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13004 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13005 cat conftest.err >&5
13006 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13007 cat conftest.out >&5
13008 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13009 lt_cv_nm_interface="MS dumpbin"
13010 fi
13011 rm -f conftest*
13012 fi
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13014 $as_echo "$lt_cv_nm_interface" >&6; }
13015
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13017 $as_echo_n "checking whether ln -s works... " >&6; }
13018 LN_S=$as_ln_s
13019 if test "$LN_S" = "ln -s"; then
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13021 $as_echo "yes" >&6; }
13022 else
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13024 $as_echo "no, using $LN_S" >&6; }
13025 fi
13026
13027 # find the maximum length of command line arguments
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13029 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13030 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
13031 $as_echo_n "(cached) " >&6
13032 else
13033 i=0
13034 teststring="ABCD"
13035
13036 case $build_os in
13037 msdosdjgpp*)
13038 # On DJGPP, this test can blow up pretty badly due to problems in libc
13039 # (any single argument exceeding 2000 bytes causes a buffer overrun
13040 # during glob expansion). Even if it were fixed, the result of this
13041 # check would be larger than it should be.
13042 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13043 ;;
13044
13045 gnu*)
13046 # Under GNU Hurd, this test is not required because there is
13047 # no limit to the length of command line arguments.
13048 # Libtool will interpret -1 as no limit whatsoever
13049 lt_cv_sys_max_cmd_len=-1;
13050 ;;
13051
13052 cygwin* | mingw* | cegcc*)
13053 # On Win9x/ME, this test blows up -- it succeeds, but takes
13054 # about 5 minutes as the teststring grows exponentially.
13055 # Worse, since 9x/ME are not pre-emptively multitasking,
13056 # you end up with a "frozen" computer, even though with patience
13057 # the test eventually succeeds (with a max line length of 256k).
13058 # Instead, let's just punt: use the minimum linelength reported by
13059 # all of the supported platforms: 8192 (on NT/2K/XP).
13060 lt_cv_sys_max_cmd_len=8192;
13061 ;;
13062
13063 mint*)
13064 # On MiNT this can take a long time and run out of memory.
13065 lt_cv_sys_max_cmd_len=8192;
13066 ;;
13067
13068 amigaos*)
13069 # On AmigaOS with pdksh, this test takes hours, literally.
13070 # So we just punt and use a minimum line length of 8192.
13071 lt_cv_sys_max_cmd_len=8192;
13072 ;;
13073
13074 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13075 # This has been around since 386BSD, at least. Likely further.
13076 if test -x /sbin/sysctl; then
13077 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13078 elif test -x /usr/sbin/sysctl; then
13079 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13080 else
13081 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13082 fi
13083 # And add a safety zone
13084 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13085 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13086 ;;
13087
13088 interix*)
13089 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13090 lt_cv_sys_max_cmd_len=196608
13091 ;;
13092
13093 osf*)
13094 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13095 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13096 # nice to cause kernel panics so lets avoid the loop below.
13097 # First set a reasonable default.
13098 lt_cv_sys_max_cmd_len=16384
13099 #
13100 if test -x /sbin/sysconfig; then
13101 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13102 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13103 esac
13104 fi
13105 ;;
13106 sco3.2v5*)
13107 lt_cv_sys_max_cmd_len=102400
13108 ;;
13109 sysv5* | sco5v6* | sysv4.2uw2*)
13110 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13111 if test -n "$kargmax"; then
13112 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13113 else
13114 lt_cv_sys_max_cmd_len=32768
13115 fi
13116 ;;
13117 *)
13118 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13119 if test -n "$lt_cv_sys_max_cmd_len"; then
13120 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13121 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13122 else
13123 # Make teststring a little bigger before we do anything with it.
13124 # a 1K string should be a reasonable start.
13125 for i in 1 2 3 4 5 6 7 8 ; do
13126 teststring=$teststring$teststring
13127 done
13128 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13129 # If test is not a shell built-in, we'll probably end up computing a
13130 # maximum length that is only half of the actual maximum length, but
13131 # we can't tell.
13132 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13133 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13134 test $i != 17 # 1/2 MB should be enough
13135 do
13136 i=`expr $i + 1`
13137 teststring=$teststring$teststring
13138 done
13139 # Only check the string length outside the loop.
13140 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13141 teststring=
13142 # Add a significant safety factor because C++ compilers can tack on
13143 # massive amounts of additional arguments before passing them to the
13144 # linker. It appears as though 1/2 is a usable value.
13145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13146 fi
13147 ;;
13148 esac
13149
13150 fi
13151
13152 if test -n $lt_cv_sys_max_cmd_len ; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13154 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13155 else
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13157 $as_echo "none" >&6; }
13158 fi
13159 max_cmd_len=$lt_cv_sys_max_cmd_len
13160
13161
13162
13163
13164
13165
13166 : ${CP="cp -f"}
13167 : ${MV="mv -f"}
13168 : ${RM="rm -f"}
13169
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13171 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13172 # Try some XSI features
13173 xsi_shell=no
13174 ( _lt_dummy="a/b/c"
13175 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13176 = c,a/b,, \
13177 && eval 'test $(( 1 + 1 )) -eq 2 \
13178 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13179 && xsi_shell=yes
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13181 $as_echo "$xsi_shell" >&6; }
13182
13183
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13185 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13186 lt_shell_append=no
13187 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13188 >/dev/null 2>&1 \
13189 && lt_shell_append=yes
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13191 $as_echo "$lt_shell_append" >&6; }
13192
13193
13194 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13195 lt_unset=unset
13196 else
13197 lt_unset=false
13198 fi
13199
13200
13201
13202
13203
13204 # test EBCDIC or ASCII
13205 case `echo X|tr X '\101'` in
13206 A) # ASCII based system
13207 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13208 lt_SP2NL='tr \040 \012'
13209 lt_NL2SP='tr \015\012 \040\040'
13210 ;;
13211 *) # EBCDIC based system
13212 lt_SP2NL='tr \100 \n'
13213 lt_NL2SP='tr \r\n \100\100'
13214 ;;
13215 esac
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13226 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13227 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
13229 else
13230 lt_cv_ld_reload_flag='-r'
13231 fi
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13233 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13234 reload_flag=$lt_cv_ld_reload_flag
13235 case $reload_flag in
13236 "" | " "*) ;;
13237 *) reload_flag=" $reload_flag" ;;
13238 esac
13239 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13240 case $host_os in
13241 darwin*)
13242 if test "$GCC" = yes; then
13243 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13244 else
13245 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13246 fi
13247 ;;
13248 esac
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258 if test -n "$ac_tool_prefix"; then
13259 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13260 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13262 $as_echo_n "checking for $ac_word... " >&6; }
13263 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13264 $as_echo_n "(cached) " >&6
13265 else
13266 if test -n "$OBJDUMP"; then
13267 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13268 else
13269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13270 for as_dir in $PATH
13271 do
13272 IFS=$as_save_IFS
13273 test -z "$as_dir" && as_dir=.
13274 for ac_exec_ext in '' $ac_executable_extensions; do
13275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13276 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13278 break 2
13279 fi
13280 done
13281 done
13282 IFS=$as_save_IFS
13283
13284 fi
13285 fi
13286 OBJDUMP=$ac_cv_prog_OBJDUMP
13287 if test -n "$OBJDUMP"; then
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13289 $as_echo "$OBJDUMP" >&6; }
13290 else
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13292 $as_echo "no" >&6; }
13293 fi
13294
13295
13296 fi
13297 if test -z "$ac_cv_prog_OBJDUMP"; then
13298 ac_ct_OBJDUMP=$OBJDUMP
13299 # Extract the first word of "objdump", so it can be a program name with args.
13300 set dummy objdump; ac_word=$2
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13302 $as_echo_n "checking for $ac_word... " >&6; }
13303 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13304 $as_echo_n "(cached) " >&6
13305 else
13306 if test -n "$ac_ct_OBJDUMP"; then
13307 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13308 else
13309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310 for as_dir in $PATH
13311 do
13312 IFS=$as_save_IFS
13313 test -z "$as_dir" && as_dir=.
13314 for ac_exec_ext in '' $ac_executable_extensions; do
13315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13316 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13318 break 2
13319 fi
13320 done
13321 done
13322 IFS=$as_save_IFS
13323
13324 fi
13325 fi
13326 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13327 if test -n "$ac_ct_OBJDUMP"; then
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13329 $as_echo "$ac_ct_OBJDUMP" >&6; }
13330 else
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13332 $as_echo "no" >&6; }
13333 fi
13334
13335 if test "x$ac_ct_OBJDUMP" = x; then
13336 OBJDUMP="false"
13337 else
13338 case $cross_compiling:$ac_tool_warned in
13339 yes:)
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13342 ac_tool_warned=yes ;;
13343 esac
13344 OBJDUMP=$ac_ct_OBJDUMP
13345 fi
13346 else
13347 OBJDUMP="$ac_cv_prog_OBJDUMP"
13348 fi
13349
13350 test -z "$OBJDUMP" && OBJDUMP=objdump
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13361 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13362 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13363 $as_echo_n "(cached) " >&6
13364 else
13365 lt_cv_file_magic_cmd='$MAGIC_CMD'
13366 lt_cv_file_magic_test_file=
13367 lt_cv_deplibs_check_method='unknown'
13368 # Need to set the preceding variable on all platforms that support
13369 # interlibrary dependencies.
13370 # 'none' -- dependencies not supported.
13371 # `unknown' -- same as none, but documents that we really don't know.
13372 # 'pass_all' -- all dependencies passed with no checks.
13373 # 'test_compile' -- check by making test program.
13374 # 'file_magic [[regex]]' -- check by looking for files in library path
13375 # which responds to the $file_magic_cmd with a given extended regex.
13376 # If you have `file' or equivalent on your system and you're not sure
13377 # whether `pass_all' will *always* work, you probably want this one.
13378
13379 case $host_os in
13380 aix[4-9]*)
13381 lt_cv_deplibs_check_method=pass_all
13382 ;;
13383
13384 beos*)
13385 lt_cv_deplibs_check_method=pass_all
13386 ;;
13387
13388 bsdi[45]*)
13389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13390 lt_cv_file_magic_cmd='/usr/bin/file -L'
13391 lt_cv_file_magic_test_file=/shlib/libc.so
13392 ;;
13393
13394 cygwin*)
13395 # func_win32_libid is a shell function defined in ltmain.sh
13396 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13397 lt_cv_file_magic_cmd='func_win32_libid'
13398 ;;
13399
13400 mingw* | pw32*)
13401 # Base MSYS/MinGW do not provide the 'file' command needed by
13402 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13403 # unless we find 'file', for example because we are cross-compiling.
13404 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13405 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13406 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13407 lt_cv_file_magic_cmd='func_win32_libid'
13408 else
13409 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13410 lt_cv_file_magic_cmd='$OBJDUMP -f'
13411 fi
13412 ;;
13413
13414 cegcc*)
13415 # use the weaker test based on 'objdump'. See mingw*.
13416 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13417 lt_cv_file_magic_cmd='$OBJDUMP -f'
13418 ;;
13419
13420 darwin* | rhapsody*)
13421 lt_cv_deplibs_check_method=pass_all
13422 ;;
13423
13424 freebsd* | dragonfly*)
13425 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13426 case $host_cpu in
13427 i*86 )
13428 # Not sure whether the presence of OpenBSD here was a mistake.
13429 # Let's accept both of them until this is cleared up.
13430 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13431 lt_cv_file_magic_cmd=/usr/bin/file
13432 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13433 ;;
13434 esac
13435 else
13436 lt_cv_deplibs_check_method=pass_all
13437 fi
13438 ;;
13439
13440 gnu*)
13441 lt_cv_deplibs_check_method=pass_all
13442 ;;
13443
13444 haiku*)
13445 lt_cv_deplibs_check_method=pass_all
13446 ;;
13447
13448 hpux10.20* | hpux11*)
13449 lt_cv_file_magic_cmd=/usr/bin/file
13450 case $host_cpu in
13451 ia64*)
13452 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13453 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13454 ;;
13455 hppa*64*)
13456 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]'
13457 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13458 ;;
13459 *)
13460 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13461 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13462 ;;
13463 esac
13464 ;;
13465
13466 interix[3-9]*)
13467 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13469 ;;
13470
13471 irix5* | irix6* | nonstopux*)
13472 case $LD in
13473 *-32|*"-32 ") libmagic=32-bit;;
13474 *-n32|*"-n32 ") libmagic=N32;;
13475 *-64|*"-64 ") libmagic=64-bit;;
13476 *) libmagic=never-match;;
13477 esac
13478 lt_cv_deplibs_check_method=pass_all
13479 ;;
13480
13481 # This must be Linux ELF.
13482 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13483 lt_cv_deplibs_check_method=pass_all
13484 ;;
13485
13486 netbsd*)
13487 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13489 else
13490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13491 fi
13492 ;;
13493
13494 newos6*)
13495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13496 lt_cv_file_magic_cmd=/usr/bin/file
13497 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13498 ;;
13499
13500 *nto* | *qnx*)
13501 lt_cv_deplibs_check_method=pass_all
13502 ;;
13503
13504 openbsd*)
13505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13507 else
13508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13509 fi
13510 ;;
13511
13512 osf3* | osf4* | osf5*)
13513 lt_cv_deplibs_check_method=pass_all
13514 ;;
13515
13516 rdos*)
13517 lt_cv_deplibs_check_method=pass_all
13518 ;;
13519
13520 solaris*)
13521 lt_cv_deplibs_check_method=pass_all
13522 ;;
13523
13524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13525 lt_cv_deplibs_check_method=pass_all
13526 ;;
13527
13528 sysv4 | sysv4.3*)
13529 case $host_vendor in
13530 motorola)
13531 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]'
13532 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13533 ;;
13534 ncr)
13535 lt_cv_deplibs_check_method=pass_all
13536 ;;
13537 sequent)
13538 lt_cv_file_magic_cmd='/bin/file'
13539 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13540 ;;
13541 sni)
13542 lt_cv_file_magic_cmd='/bin/file'
13543 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13544 lt_cv_file_magic_test_file=/lib/libc.so
13545 ;;
13546 siemens)
13547 lt_cv_deplibs_check_method=pass_all
13548 ;;
13549 pc)
13550 lt_cv_deplibs_check_method=pass_all
13551 ;;
13552 esac
13553 ;;
13554
13555 tpf*)
13556 lt_cv_deplibs_check_method=pass_all
13557 ;;
13558 esac
13559
13560 fi
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13562 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13563 file_magic_cmd=$lt_cv_file_magic_cmd
13564 deplibs_check_method=$lt_cv_deplibs_check_method
13565 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578 if test -n "$ac_tool_prefix"; then
13579 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13580 set dummy ${ac_tool_prefix}ar; ac_word=$2
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13582 $as_echo_n "checking for $ac_word... " >&6; }
13583 if test "${ac_cv_prog_AR+set}" = set; then :
13584 $as_echo_n "(cached) " >&6
13585 else
13586 if test -n "$AR"; then
13587 ac_cv_prog_AR="$AR" # Let the user override the test.
13588 else
13589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590 for as_dir in $PATH
13591 do
13592 IFS=$as_save_IFS
13593 test -z "$as_dir" && as_dir=.
13594 for ac_exec_ext in '' $ac_executable_extensions; do
13595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13596 ac_cv_prog_AR="${ac_tool_prefix}ar"
13597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13598 break 2
13599 fi
13600 done
13601 done
13602 IFS=$as_save_IFS
13603
13604 fi
13605 fi
13606 AR=$ac_cv_prog_AR
13607 if test -n "$AR"; then
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13609 $as_echo "$AR" >&6; }
13610 else
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13612 $as_echo "no" >&6; }
13613 fi
13614
13615
13616 fi
13617 if test -z "$ac_cv_prog_AR"; then
13618 ac_ct_AR=$AR
13619 # Extract the first word of "ar", so it can be a program name with args.
13620 set dummy ar; ac_word=$2
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13622 $as_echo_n "checking for $ac_word... " >&6; }
13623 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13624 $as_echo_n "(cached) " >&6
13625 else
13626 if test -n "$ac_ct_AR"; then
13627 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13628 else
13629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630 for as_dir in $PATH
13631 do
13632 IFS=$as_save_IFS
13633 test -z "$as_dir" && as_dir=.
13634 for ac_exec_ext in '' $ac_executable_extensions; do
13635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13636 ac_cv_prog_ac_ct_AR="ar"
13637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13638 break 2
13639 fi
13640 done
13641 done
13642 IFS=$as_save_IFS
13643
13644 fi
13645 fi
13646 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13647 if test -n "$ac_ct_AR"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13649 $as_echo "$ac_ct_AR" >&6; }
13650 else
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13653 fi
13654
13655 if test "x$ac_ct_AR" = x; then
13656 AR="false"
13657 else
13658 case $cross_compiling:$ac_tool_warned in
13659 yes:)
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13662 ac_tool_warned=yes ;;
13663 esac
13664 AR=$ac_ct_AR
13665 fi
13666 else
13667 AR="$ac_cv_prog_AR"
13668 fi
13669
13670 test -z "$AR" && AR=ar
13671 test -z "$AR_FLAGS" && AR_FLAGS=cru
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683 if test -n "$ac_tool_prefix"; then
13684 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13685 set dummy ${ac_tool_prefix}strip; ac_word=$2
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13687 $as_echo_n "checking for $ac_word... " >&6; }
13688 if test "${ac_cv_prog_STRIP+set}" = set; then :
13689 $as_echo_n "(cached) " >&6
13690 else
13691 if test -n "$STRIP"; then
13692 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13693 else
13694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13695 for as_dir in $PATH
13696 do
13697 IFS=$as_save_IFS
13698 test -z "$as_dir" && as_dir=.
13699 for ac_exec_ext in '' $ac_executable_extensions; do
13700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13701 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13703 break 2
13704 fi
13705 done
13706 done
13707 IFS=$as_save_IFS
13708
13709 fi
13710 fi
13711 STRIP=$ac_cv_prog_STRIP
13712 if test -n "$STRIP"; then
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13714 $as_echo "$STRIP" >&6; }
13715 else
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13717 $as_echo "no" >&6; }
13718 fi
13719
13720
13721 fi
13722 if test -z "$ac_cv_prog_STRIP"; then
13723 ac_ct_STRIP=$STRIP
13724 # Extract the first word of "strip", so it can be a program name with args.
13725 set dummy strip; ac_word=$2
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13727 $as_echo_n "checking for $ac_word... " >&6; }
13728 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13729 $as_echo_n "(cached) " >&6
13730 else
13731 if test -n "$ac_ct_STRIP"; then
13732 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13733 else
13734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13735 for as_dir in $PATH
13736 do
13737 IFS=$as_save_IFS
13738 test -z "$as_dir" && as_dir=.
13739 for ac_exec_ext in '' $ac_executable_extensions; do
13740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13741 ac_cv_prog_ac_ct_STRIP="strip"
13742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13743 break 2
13744 fi
13745 done
13746 done
13747 IFS=$as_save_IFS
13748
13749 fi
13750 fi
13751 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13752 if test -n "$ac_ct_STRIP"; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13754 $as_echo "$ac_ct_STRIP" >&6; }
13755 else
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757 $as_echo "no" >&6; }
13758 fi
13759
13760 if test "x$ac_ct_STRIP" = x; then
13761 STRIP=":"
13762 else
13763 case $cross_compiling:$ac_tool_warned in
13764 yes:)
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13767 ac_tool_warned=yes ;;
13768 esac
13769 STRIP=$ac_ct_STRIP
13770 fi
13771 else
13772 STRIP="$ac_cv_prog_STRIP"
13773 fi
13774
13775 test -z "$STRIP" && STRIP=:
13776
13777
13778
13779
13780
13781
13782 if test -n "$ac_tool_prefix"; then
13783 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13784 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13786 $as_echo_n "checking for $ac_word... " >&6; }
13787 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13788 $as_echo_n "(cached) " >&6
13789 else
13790 if test -n "$RANLIB"; then
13791 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13792 else
13793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13794 for as_dir in $PATH
13795 do
13796 IFS=$as_save_IFS
13797 test -z "$as_dir" && as_dir=.
13798 for ac_exec_ext in '' $ac_executable_extensions; do
13799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13800 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13802 break 2
13803 fi
13804 done
13805 done
13806 IFS=$as_save_IFS
13807
13808 fi
13809 fi
13810 RANLIB=$ac_cv_prog_RANLIB
13811 if test -n "$RANLIB"; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13813 $as_echo "$RANLIB" >&6; }
13814 else
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13816 $as_echo "no" >&6; }
13817 fi
13818
13819
13820 fi
13821 if test -z "$ac_cv_prog_RANLIB"; then
13822 ac_ct_RANLIB=$RANLIB
13823 # Extract the first word of "ranlib", so it can be a program name with args.
13824 set dummy ranlib; ac_word=$2
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13826 $as_echo_n "checking for $ac_word... " >&6; }
13827 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13828 $as_echo_n "(cached) " >&6
13829 else
13830 if test -n "$ac_ct_RANLIB"; then
13831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13832 else
13833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13834 for as_dir in $PATH
13835 do
13836 IFS=$as_save_IFS
13837 test -z "$as_dir" && as_dir=.
13838 for ac_exec_ext in '' $ac_executable_extensions; do
13839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13840 ac_cv_prog_ac_ct_RANLIB="ranlib"
13841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13842 break 2
13843 fi
13844 done
13845 done
13846 IFS=$as_save_IFS
13847
13848 fi
13849 fi
13850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13851 if test -n "$ac_ct_RANLIB"; then
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13853 $as_echo "$ac_ct_RANLIB" >&6; }
13854 else
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13856 $as_echo "no" >&6; }
13857 fi
13858
13859 if test "x$ac_ct_RANLIB" = x; then
13860 RANLIB=":"
13861 else
13862 case $cross_compiling:$ac_tool_warned in
13863 yes:)
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13866 ac_tool_warned=yes ;;
13867 esac
13868 RANLIB=$ac_ct_RANLIB
13869 fi
13870 else
13871 RANLIB="$ac_cv_prog_RANLIB"
13872 fi
13873
13874 test -z "$RANLIB" && RANLIB=:
13875
13876
13877
13878
13879
13880
13881 # Determine commands to create old-style static archives.
13882 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13883 old_postinstall_cmds='chmod 644 $oldlib'
13884 old_postuninstall_cmds=
13885
13886 if test -n "$RANLIB"; then
13887 case $host_os in
13888 openbsd*)
13889 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13890 ;;
13891 *)
13892 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13893 ;;
13894 esac
13895 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13896 fi
13897
13898 case $host_os in
13899 darwin*)
13900 lock_old_archive_extraction=yes ;;
13901 *)
13902 lock_old_archive_extraction=no ;;
13903 esac
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943 # If no C compiler was specified, use CC.
13944 LTCC=${LTCC-"$CC"}
13945
13946 # If no C compiler flags were specified, use CFLAGS.
13947 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13948
13949 # Allow CC to be a program name with arguments.
13950 compiler=$CC
13951
13952
13953 # Check for command to grab the raw symbol name followed by C symbol from nm.
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13955 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13956 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13957 $as_echo_n "(cached) " >&6
13958 else
13959
13960 # These are sane defaults that work on at least a few old systems.
13961 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13962
13963 # Character class describing NM global symbol codes.
13964 symcode='[BCDEGRST]'
13965
13966 # Regexp to match symbols that can be accessed directly from C.
13967 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13968
13969 # Define system-specific variables.
13970 case $host_os in
13971 aix*)
13972 symcode='[BCDT]'
13973 ;;
13974 cygwin* | mingw* | pw32* | cegcc*)
13975 symcode='[ABCDGISTW]'
13976 ;;
13977 hpux*)
13978 if test "$host_cpu" = ia64; then
13979 symcode='[ABCDEGRST]'
13980 fi
13981 ;;
13982 irix* | nonstopux*)
13983 symcode='[BCDEGRST]'
13984 ;;
13985 osf*)
13986 symcode='[BCDEGQRST]'
13987 ;;
13988 solaris*)
13989 symcode='[BDRT]'
13990 ;;
13991 sco3.2v5*)
13992 symcode='[DT]'
13993 ;;
13994 sysv4.2uw2*)
13995 symcode='[DT]'
13996 ;;
13997 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13998 symcode='[ABDT]'
13999 ;;
14000 sysv4)
14001 symcode='[DFNSTU]'
14002 ;;
14003 esac
14004
14005 # If we're using GNU nm, then use its standard symbol codes.
14006 case `$NM -V 2>&1` in
14007 *GNU* | *'with BFD'*)
14008 symcode='[ABCDGIRSTW]' ;;
14009 esac
14010
14011 # Transform an extracted symbol line into a proper C declaration.
14012 # Some systems (esp. on ia64) link data and code symbols differently,
14013 # so use this general approach.
14014 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14015
14016 # Transform an extracted symbol line into symbol name and symbol address
14017 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14018 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'"
14019
14020 # Handle CRLF in mingw tool chain
14021 opt_cr=
14022 case $build_os in
14023 mingw*)
14024 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14025 ;;
14026 esac
14027
14028 # Try without a prefix underscore, then with it.
14029 for ac_symprfx in "" "_"; do
14030
14031 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14032 symxfrm="\\1 $ac_symprfx\\2 \\2"
14033
14034 # Write the raw and C identifiers.
14035 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14036 # Fake it for dumpbin and say T for any non-static function
14037 # and D for any global variable.
14038 # Also find C++ and __fastcall symbols from MSVC++,
14039 # which start with @ or ?.
14040 lt_cv_sys_global_symbol_pipe="$AWK '"\
14041 " {last_section=section; section=\$ 3};"\
14042 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14043 " \$ 0!~/External *\|/{next};"\
14044 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14045 " {if(hide[section]) next};"\
14046 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14047 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14048 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14049 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14050 " ' prfx=^$ac_symprfx"
14051 else
14052 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14053 fi
14054
14055 # Check to see that the pipe works correctly.
14056 pipe_works=no
14057
14058 rm -f conftest*
14059 cat > conftest.$ac_ext <<_LT_EOF
14060 #ifdef __cplusplus
14061 extern "C" {
14062 #endif
14063 char nm_test_var;
14064 void nm_test_func(void);
14065 void nm_test_func(void){}
14066 #ifdef __cplusplus
14067 }
14068 #endif
14069 int main(){nm_test_var='a';nm_test_func();return(0);}
14070 _LT_EOF
14071
14072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14073 (eval $ac_compile) 2>&5
14074 ac_status=$?
14075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14076 test $ac_status = 0; }; then
14077 # Now try to grab the symbols.
14078 nlist=conftest.nm
14079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14080 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14081 ac_status=$?
14082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14083 test $ac_status = 0; } && test -s "$nlist"; then
14084 # Try sorting and uniquifying the output.
14085 if sort "$nlist" | uniq > "$nlist"T; then
14086 mv -f "$nlist"T "$nlist"
14087 else
14088 rm -f "$nlist"T
14089 fi
14090
14091 # Make sure that we snagged all the symbols we need.
14092 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14093 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14094 cat <<_LT_EOF > conftest.$ac_ext
14095 #ifdef __cplusplus
14096 extern "C" {
14097 #endif
14098
14099 _LT_EOF
14100 # Now generate the symbol file.
14101 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14102
14103 cat <<_LT_EOF >> conftest.$ac_ext
14104
14105 /* The mapping between symbol names and symbols. */
14106 const struct {
14107 const char *name;
14108 void *address;
14109 }
14110 lt__PROGRAM__LTX_preloaded_symbols[] =
14111 {
14112 { "@PROGRAM@", (void *) 0 },
14113 _LT_EOF
14114 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14115 cat <<\_LT_EOF >> conftest.$ac_ext
14116 {0, (void *) 0}
14117 };
14118
14119 /* This works around a problem in FreeBSD linker */
14120 #ifdef FREEBSD_WORKAROUND
14121 static const void *lt_preloaded_setup() {
14122 return lt__PROGRAM__LTX_preloaded_symbols;
14123 }
14124 #endif
14125
14126 #ifdef __cplusplus
14127 }
14128 #endif
14129 _LT_EOF
14130 # Now try linking the two files.
14131 mv conftest.$ac_objext conftstm.$ac_objext
14132 lt_save_LIBS="$LIBS"
14133 lt_save_CFLAGS="$CFLAGS"
14134 LIBS="conftstm.$ac_objext"
14135 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14137 (eval $ac_link) 2>&5
14138 ac_status=$?
14139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14140 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14141 pipe_works=yes
14142 fi
14143 LIBS="$lt_save_LIBS"
14144 CFLAGS="$lt_save_CFLAGS"
14145 else
14146 echo "cannot find nm_test_func in $nlist" >&5
14147 fi
14148 else
14149 echo "cannot find nm_test_var in $nlist" >&5
14150 fi
14151 else
14152 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14153 fi
14154 else
14155 echo "$progname: failed program was:" >&5
14156 cat conftest.$ac_ext >&5
14157 fi
14158 rm -rf conftest* conftst*
14159
14160 # Do not use the global_symbol_pipe unless it works.
14161 if test "$pipe_works" = yes; then
14162 break
14163 else
14164 lt_cv_sys_global_symbol_pipe=
14165 fi
14166 done
14167
14168 fi
14169
14170 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14171 lt_cv_sys_global_symbol_to_cdecl=
14172 fi
14173 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14175 $as_echo "failed" >&6; }
14176 else
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14178 $as_echo "ok" >&6; }
14179 fi
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202 # Check whether --enable-libtool-lock was given.
14203 if test "${enable_libtool_lock+set}" = set; then :
14204 enableval=$enable_libtool_lock;
14205 fi
14206
14207 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14208
14209 # Some flags need to be propagated to the compiler or linker for good
14210 # libtool support.
14211 case $host in
14212 ia64-*-hpux*)
14213 # Find out which ABI we are using.
14214 echo 'int i;' > conftest.$ac_ext
14215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14216 (eval $ac_compile) 2>&5
14217 ac_status=$?
14218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14219 test $ac_status = 0; }; then
14220 case `/usr/bin/file conftest.$ac_objext` in
14221 *ELF-32*)
14222 HPUX_IA64_MODE="32"
14223 ;;
14224 *ELF-64*)
14225 HPUX_IA64_MODE="64"
14226 ;;
14227 esac
14228 fi
14229 rm -rf conftest*
14230 ;;
14231 *-*-irix6*)
14232 # Find out which ABI we are using.
14233 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14235 (eval $ac_compile) 2>&5
14236 ac_status=$?
14237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14238 test $ac_status = 0; }; then
14239 if test "$lt_cv_prog_gnu_ld" = yes; then
14240 case `/usr/bin/file conftest.$ac_objext` in
14241 *32-bit*)
14242 LD="${LD-ld} -melf32bsmip"
14243 ;;
14244 *N32*)
14245 LD="${LD-ld} -melf32bmipn32"
14246 ;;
14247 *64-bit*)
14248 LD="${LD-ld} -melf64bmip"
14249 ;;
14250 esac
14251 else
14252 case `/usr/bin/file conftest.$ac_objext` in
14253 *32-bit*)
14254 LD="${LD-ld} -32"
14255 ;;
14256 *N32*)
14257 LD="${LD-ld} -n32"
14258 ;;
14259 *64-bit*)
14260 LD="${LD-ld} -64"
14261 ;;
14262 esac
14263 fi
14264 fi
14265 rm -rf conftest*
14266 ;;
14267
14268 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14269 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14270 # Find out which ABI we are using.
14271 echo 'int i;' > conftest.$ac_ext
14272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14273 (eval $ac_compile) 2>&5
14274 ac_status=$?
14275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14276 test $ac_status = 0; }; then
14277 case `/usr/bin/file conftest.o` in
14278 *32-bit*)
14279 case $host in
14280 x86_64-*kfreebsd*-gnu)
14281 LD="${LD-ld} -m elf_i386_fbsd"
14282 ;;
14283 x86_64-*linux*)
14284 case `/usr/bin/file conftest.o` in
14285 *x86-64*)
14286 LD="${LD-ld} -m elf32_x86_64"
14287 ;;
14288 *)
14289 LD="${LD-ld} -m elf_i386"
14290 ;;
14291 esac
14292 ;;
14293 powerpc64le-*linux*)
14294 LD="${LD-ld} -m elf32lppclinux"
14295 ;;
14296 powerpc64-*linux*)
14297 LD="${LD-ld} -m elf32ppclinux"
14298 ;;
14299 s390x-*linux*)
14300 LD="${LD-ld} -m elf_s390"
14301 ;;
14302 sparc64-*linux*)
14303 LD="${LD-ld} -m elf32_sparc"
14304 ;;
14305 esac
14306 ;;
14307 *64-bit*)
14308 case $host in
14309 x86_64-*kfreebsd*-gnu)
14310 LD="${LD-ld} -m elf_x86_64_fbsd"
14311 ;;
14312 x86_64-*linux*)
14313 LD="${LD-ld} -m elf_x86_64"
14314 ;;
14315 powerpcle-*linux*)
14316 LD="${LD-ld} -m elf64lppc"
14317 ;;
14318 powerpc-*linux*)
14319 LD="${LD-ld} -m elf64ppc"
14320 ;;
14321 s390*-*linux*|s390*-*tpf*)
14322 LD="${LD-ld} -m elf64_s390"
14323 ;;
14324 sparc*-*linux*)
14325 LD="${LD-ld} -m elf64_sparc"
14326 ;;
14327 esac
14328 ;;
14329 esac
14330 fi
14331 rm -rf conftest*
14332 ;;
14333
14334 *-*-sco3.2v5*)
14335 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14336 SAVE_CFLAGS="$CFLAGS"
14337 CFLAGS="$CFLAGS -belf"
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14339 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14340 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14341 $as_echo_n "(cached) " >&6
14342 else
14343 ac_ext=c
14344 ac_cpp='$CPP $CPPFLAGS'
14345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14348
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14351
14352 int
14353 main ()
14354 {
14355
14356 ;
14357 return 0;
14358 }
14359 _ACEOF
14360 if ac_fn_c_try_link "$LINENO"; then :
14361 lt_cv_cc_needs_belf=yes
14362 else
14363 lt_cv_cc_needs_belf=no
14364 fi
14365 rm -f core conftest.err conftest.$ac_objext \
14366 conftest$ac_exeext conftest.$ac_ext
14367 ac_ext=c
14368 ac_cpp='$CPP $CPPFLAGS'
14369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14372
14373 fi
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14375 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14376 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14377 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14378 CFLAGS="$SAVE_CFLAGS"
14379 fi
14380 ;;
14381 sparc*-*solaris*)
14382 # Find out which ABI we are using.
14383 echo 'int i;' > conftest.$ac_ext
14384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14385 (eval $ac_compile) 2>&5
14386 ac_status=$?
14387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14388 test $ac_status = 0; }; then
14389 case `/usr/bin/file conftest.o` in
14390 *64-bit*)
14391 case $lt_cv_prog_gnu_ld in
14392 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14393 *)
14394 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14395 LD="${LD-ld} -64"
14396 fi
14397 ;;
14398 esac
14399 ;;
14400 esac
14401 fi
14402 rm -rf conftest*
14403 ;;
14404 esac
14405
14406 need_locks="$enable_libtool_lock"
14407
14408
14409 case $host_os in
14410 rhapsody* | darwin*)
14411 if test -n "$ac_tool_prefix"; then
14412 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14413 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14415 $as_echo_n "checking for $ac_word... " >&6; }
14416 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14417 $as_echo_n "(cached) " >&6
14418 else
14419 if test -n "$DSYMUTIL"; then
14420 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14421 else
14422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14423 for as_dir in $PATH
14424 do
14425 IFS=$as_save_IFS
14426 test -z "$as_dir" && as_dir=.
14427 for ac_exec_ext in '' $ac_executable_extensions; do
14428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14429 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14431 break 2
14432 fi
14433 done
14434 done
14435 IFS=$as_save_IFS
14436
14437 fi
14438 fi
14439 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14440 if test -n "$DSYMUTIL"; then
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14442 $as_echo "$DSYMUTIL" >&6; }
14443 else
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14445 $as_echo "no" >&6; }
14446 fi
14447
14448
14449 fi
14450 if test -z "$ac_cv_prog_DSYMUTIL"; then
14451 ac_ct_DSYMUTIL=$DSYMUTIL
14452 # Extract the first word of "dsymutil", so it can be a program name with args.
14453 set dummy dsymutil; ac_word=$2
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14455 $as_echo_n "checking for $ac_word... " >&6; }
14456 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14457 $as_echo_n "(cached) " >&6
14458 else
14459 if test -n "$ac_ct_DSYMUTIL"; then
14460 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14461 else
14462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14463 for as_dir in $PATH
14464 do
14465 IFS=$as_save_IFS
14466 test -z "$as_dir" && as_dir=.
14467 for ac_exec_ext in '' $ac_executable_extensions; do
14468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14469 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14471 break 2
14472 fi
14473 done
14474 done
14475 IFS=$as_save_IFS
14476
14477 fi
14478 fi
14479 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14480 if test -n "$ac_ct_DSYMUTIL"; then
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14482 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14483 else
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14485 $as_echo "no" >&6; }
14486 fi
14487
14488 if test "x$ac_ct_DSYMUTIL" = x; then
14489 DSYMUTIL=":"
14490 else
14491 case $cross_compiling:$ac_tool_warned in
14492 yes:)
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14495 ac_tool_warned=yes ;;
14496 esac
14497 DSYMUTIL=$ac_ct_DSYMUTIL
14498 fi
14499 else
14500 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14501 fi
14502
14503 if test -n "$ac_tool_prefix"; then
14504 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14505 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14507 $as_echo_n "checking for $ac_word... " >&6; }
14508 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14509 $as_echo_n "(cached) " >&6
14510 else
14511 if test -n "$NMEDIT"; then
14512 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14513 else
14514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14515 for as_dir in $PATH
14516 do
14517 IFS=$as_save_IFS
14518 test -z "$as_dir" && as_dir=.
14519 for ac_exec_ext in '' $ac_executable_extensions; do
14520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14521 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14523 break 2
14524 fi
14525 done
14526 done
14527 IFS=$as_save_IFS
14528
14529 fi
14530 fi
14531 NMEDIT=$ac_cv_prog_NMEDIT
14532 if test -n "$NMEDIT"; then
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14534 $as_echo "$NMEDIT" >&6; }
14535 else
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14537 $as_echo "no" >&6; }
14538 fi
14539
14540
14541 fi
14542 if test -z "$ac_cv_prog_NMEDIT"; then
14543 ac_ct_NMEDIT=$NMEDIT
14544 # Extract the first word of "nmedit", so it can be a program name with args.
14545 set dummy nmedit; ac_word=$2
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14547 $as_echo_n "checking for $ac_word... " >&6; }
14548 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14549 $as_echo_n "(cached) " >&6
14550 else
14551 if test -n "$ac_ct_NMEDIT"; then
14552 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14553 else
14554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14555 for as_dir in $PATH
14556 do
14557 IFS=$as_save_IFS
14558 test -z "$as_dir" && as_dir=.
14559 for ac_exec_ext in '' $ac_executable_extensions; do
14560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14561 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14563 break 2
14564 fi
14565 done
14566 done
14567 IFS=$as_save_IFS
14568
14569 fi
14570 fi
14571 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14572 if test -n "$ac_ct_NMEDIT"; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14574 $as_echo "$ac_ct_NMEDIT" >&6; }
14575 else
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14577 $as_echo "no" >&6; }
14578 fi
14579
14580 if test "x$ac_ct_NMEDIT" = x; then
14581 NMEDIT=":"
14582 else
14583 case $cross_compiling:$ac_tool_warned in
14584 yes:)
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14587 ac_tool_warned=yes ;;
14588 esac
14589 NMEDIT=$ac_ct_NMEDIT
14590 fi
14591 else
14592 NMEDIT="$ac_cv_prog_NMEDIT"
14593 fi
14594
14595 if test -n "$ac_tool_prefix"; then
14596 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14597 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14599 $as_echo_n "checking for $ac_word... " >&6; }
14600 if test "${ac_cv_prog_LIPO+set}" = set; then :
14601 $as_echo_n "(cached) " >&6
14602 else
14603 if test -n "$LIPO"; then
14604 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14605 else
14606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14607 for as_dir in $PATH
14608 do
14609 IFS=$as_save_IFS
14610 test -z "$as_dir" && as_dir=.
14611 for ac_exec_ext in '' $ac_executable_extensions; do
14612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14613 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14615 break 2
14616 fi
14617 done
14618 done
14619 IFS=$as_save_IFS
14620
14621 fi
14622 fi
14623 LIPO=$ac_cv_prog_LIPO
14624 if test -n "$LIPO"; then
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14626 $as_echo "$LIPO" >&6; }
14627 else
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14629 $as_echo "no" >&6; }
14630 fi
14631
14632
14633 fi
14634 if test -z "$ac_cv_prog_LIPO"; then
14635 ac_ct_LIPO=$LIPO
14636 # Extract the first word of "lipo", so it can be a program name with args.
14637 set dummy lipo; ac_word=$2
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14639 $as_echo_n "checking for $ac_word... " >&6; }
14640 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14641 $as_echo_n "(cached) " >&6
14642 else
14643 if test -n "$ac_ct_LIPO"; then
14644 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14645 else
14646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14647 for as_dir in $PATH
14648 do
14649 IFS=$as_save_IFS
14650 test -z "$as_dir" && as_dir=.
14651 for ac_exec_ext in '' $ac_executable_extensions; do
14652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14653 ac_cv_prog_ac_ct_LIPO="lipo"
14654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14655 break 2
14656 fi
14657 done
14658 done
14659 IFS=$as_save_IFS
14660
14661 fi
14662 fi
14663 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14664 if test -n "$ac_ct_LIPO"; then
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14666 $as_echo "$ac_ct_LIPO" >&6; }
14667 else
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14669 $as_echo "no" >&6; }
14670 fi
14671
14672 if test "x$ac_ct_LIPO" = x; then
14673 LIPO=":"
14674 else
14675 case $cross_compiling:$ac_tool_warned in
14676 yes:)
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14679 ac_tool_warned=yes ;;
14680 esac
14681 LIPO=$ac_ct_LIPO
14682 fi
14683 else
14684 LIPO="$ac_cv_prog_LIPO"
14685 fi
14686
14687 if test -n "$ac_tool_prefix"; then
14688 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14689 set dummy ${ac_tool_prefix}otool; ac_word=$2
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14691 $as_echo_n "checking for $ac_word... " >&6; }
14692 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14693 $as_echo_n "(cached) " >&6
14694 else
14695 if test -n "$OTOOL"; then
14696 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14697 else
14698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14699 for as_dir in $PATH
14700 do
14701 IFS=$as_save_IFS
14702 test -z "$as_dir" && as_dir=.
14703 for ac_exec_ext in '' $ac_executable_extensions; do
14704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14705 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14707 break 2
14708 fi
14709 done
14710 done
14711 IFS=$as_save_IFS
14712
14713 fi
14714 fi
14715 OTOOL=$ac_cv_prog_OTOOL
14716 if test -n "$OTOOL"; then
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14718 $as_echo "$OTOOL" >&6; }
14719 else
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14721 $as_echo "no" >&6; }
14722 fi
14723
14724
14725 fi
14726 if test -z "$ac_cv_prog_OTOOL"; then
14727 ac_ct_OTOOL=$OTOOL
14728 # Extract the first word of "otool", so it can be a program name with args.
14729 set dummy otool; ac_word=$2
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14731 $as_echo_n "checking for $ac_word... " >&6; }
14732 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14733 $as_echo_n "(cached) " >&6
14734 else
14735 if test -n "$ac_ct_OTOOL"; then
14736 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14737 else
14738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14739 for as_dir in $PATH
14740 do
14741 IFS=$as_save_IFS
14742 test -z "$as_dir" && as_dir=.
14743 for ac_exec_ext in '' $ac_executable_extensions; do
14744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14745 ac_cv_prog_ac_ct_OTOOL="otool"
14746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14747 break 2
14748 fi
14749 done
14750 done
14751 IFS=$as_save_IFS
14752
14753 fi
14754 fi
14755 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14756 if test -n "$ac_ct_OTOOL"; then
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14758 $as_echo "$ac_ct_OTOOL" >&6; }
14759 else
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14761 $as_echo "no" >&6; }
14762 fi
14763
14764 if test "x$ac_ct_OTOOL" = x; then
14765 OTOOL=":"
14766 else
14767 case $cross_compiling:$ac_tool_warned in
14768 yes:)
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14771 ac_tool_warned=yes ;;
14772 esac
14773 OTOOL=$ac_ct_OTOOL
14774 fi
14775 else
14776 OTOOL="$ac_cv_prog_OTOOL"
14777 fi
14778
14779 if test -n "$ac_tool_prefix"; then
14780 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14781 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14783 $as_echo_n "checking for $ac_word... " >&6; }
14784 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14785 $as_echo_n "(cached) " >&6
14786 else
14787 if test -n "$OTOOL64"; then
14788 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14789 else
14790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14791 for as_dir in $PATH
14792 do
14793 IFS=$as_save_IFS
14794 test -z "$as_dir" && as_dir=.
14795 for ac_exec_ext in '' $ac_executable_extensions; do
14796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14797 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14799 break 2
14800 fi
14801 done
14802 done
14803 IFS=$as_save_IFS
14804
14805 fi
14806 fi
14807 OTOOL64=$ac_cv_prog_OTOOL64
14808 if test -n "$OTOOL64"; then
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14810 $as_echo "$OTOOL64" >&6; }
14811 else
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14813 $as_echo "no" >&6; }
14814 fi
14815
14816
14817 fi
14818 if test -z "$ac_cv_prog_OTOOL64"; then
14819 ac_ct_OTOOL64=$OTOOL64
14820 # Extract the first word of "otool64", so it can be a program name with args.
14821 set dummy otool64; ac_word=$2
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14823 $as_echo_n "checking for $ac_word... " >&6; }
14824 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14825 $as_echo_n "(cached) " >&6
14826 else
14827 if test -n "$ac_ct_OTOOL64"; then
14828 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14829 else
14830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14831 for as_dir in $PATH
14832 do
14833 IFS=$as_save_IFS
14834 test -z "$as_dir" && as_dir=.
14835 for ac_exec_ext in '' $ac_executable_extensions; do
14836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14837 ac_cv_prog_ac_ct_OTOOL64="otool64"
14838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14839 break 2
14840 fi
14841 done
14842 done
14843 IFS=$as_save_IFS
14844
14845 fi
14846 fi
14847 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14848 if test -n "$ac_ct_OTOOL64"; then
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14850 $as_echo "$ac_ct_OTOOL64" >&6; }
14851 else
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14853 $as_echo "no" >&6; }
14854 fi
14855
14856 if test "x$ac_ct_OTOOL64" = x; then
14857 OTOOL64=":"
14858 else
14859 case $cross_compiling:$ac_tool_warned in
14860 yes:)
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14863 ac_tool_warned=yes ;;
14864 esac
14865 OTOOL64=$ac_ct_OTOOL64
14866 fi
14867 else
14868 OTOOL64="$ac_cv_prog_OTOOL64"
14869 fi
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14898 $as_echo_n "checking for -single_module linker flag... " >&6; }
14899 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14900 $as_echo_n "(cached) " >&6
14901 else
14902 lt_cv_apple_cc_single_mod=no
14903 if test -z "${LT_MULTI_MODULE}"; then
14904 # By default we will add the -single_module flag. You can override
14905 # by either setting the environment variable LT_MULTI_MODULE
14906 # non-empty at configure time, or by adding -multi_module to the
14907 # link flags.
14908 rm -rf libconftest.dylib*
14909 echo "int foo(void){return 1;}" > conftest.c
14910 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14911 -dynamiclib -Wl,-single_module conftest.c" >&5
14912 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14913 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14914 _lt_result=$?
14915 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14916 lt_cv_apple_cc_single_mod=yes
14917 else
14918 cat conftest.err >&5
14919 fi
14920 rm -rf libconftest.dylib*
14921 rm -f conftest.*
14922 fi
14923 fi
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14925 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14927 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14928 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14929 $as_echo_n "(cached) " >&6
14930 else
14931 lt_cv_ld_exported_symbols_list=no
14932 save_LDFLAGS=$LDFLAGS
14933 echo "_main" > conftest.sym
14934 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h. */
14937
14938 int
14939 main ()
14940 {
14941
14942 ;
14943 return 0;
14944 }
14945 _ACEOF
14946 if ac_fn_c_try_link "$LINENO"; then :
14947 lt_cv_ld_exported_symbols_list=yes
14948 else
14949 lt_cv_ld_exported_symbols_list=no
14950 fi
14951 rm -f core conftest.err conftest.$ac_objext \
14952 conftest$ac_exeext conftest.$ac_ext
14953 LDFLAGS="$save_LDFLAGS"
14954
14955 fi
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14957 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14959 $as_echo_n "checking for -force_load linker flag... " >&6; }
14960 if test "${lt_cv_ld_force_load+set}" = set; then :
14961 $as_echo_n "(cached) " >&6
14962 else
14963 lt_cv_ld_force_load=no
14964 cat > conftest.c << _LT_EOF
14965 int forced_loaded() { return 2;}
14966 _LT_EOF
14967 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14968 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14969 echo "$AR cru libconftest.a conftest.o" >&5
14970 $AR cru libconftest.a conftest.o 2>&5
14971 cat > conftest.c << _LT_EOF
14972 int main() { return 0;}
14973 _LT_EOF
14974 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14975 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14976 _lt_result=$?
14977 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14978 lt_cv_ld_force_load=yes
14979 else
14980 cat conftest.err >&5
14981 fi
14982 rm -f conftest.err libconftest.a conftest conftest.c
14983 rm -rf conftest.dSYM
14984
14985 fi
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14987 $as_echo "$lt_cv_ld_force_load" >&6; }
14988 case $host_os in
14989 rhapsody* | darwin1.[012])
14990 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14991 darwin1.*)
14992 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14993 darwin*) # darwin 5.x on
14994 # if running on 10.5 or later, the deployment target defaults
14995 # to the OS version, if on x86, and 10.4, the deployment
14996 # target defaults to 10.4. Don't you love it?
14997 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14998 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14999 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15000 10.[012][,.]*)
15001 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15002 10.*)
15003 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15004 esac
15005 ;;
15006 esac
15007 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15008 _lt_dar_single_mod='$single_module'
15009 fi
15010 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15011 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15012 else
15013 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15014 fi
15015 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15016 _lt_dsymutil='~$DSYMUTIL $lib || :'
15017 else
15018 _lt_dsymutil=
15019 fi
15020 ;;
15021 esac
15022
15023
15024 for ac_header in dlfcn.h
15025 do :
15026 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15027 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15028 cat >>confdefs.h <<_ACEOF
15029 #define HAVE_DLFCN_H 1
15030 _ACEOF
15031
15032 fi
15033 done
15034
15035
15036
15037
15038
15039 # Set options
15040
15041
15042
15043 enable_dlopen=no
15044
15045
15046 enable_win32_dll=no
15047
15048
15049 # Check whether --enable-shared was given.
15050 if test "${enable_shared+set}" = set; then :
15051 enableval=$enable_shared; p=${PACKAGE-default}
15052 case $enableval in
15053 yes) enable_shared=yes ;;
15054 no) enable_shared=no ;;
15055 *)
15056 enable_shared=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_shared=yes
15063 fi
15064 done
15065 IFS="$lt_save_ifs"
15066 ;;
15067 esac
15068 else
15069 enable_shared=yes
15070 fi
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080 # Check whether --enable-static was given.
15081 if test "${enable_static+set}" = set; then :
15082 enableval=$enable_static; p=${PACKAGE-default}
15083 case $enableval in
15084 yes) enable_static=yes ;;
15085 no) enable_static=no ;;
15086 *)
15087 enable_static=no
15088 # Look at the argument we got. We use all the common list separators.
15089 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15090 for pkg in $enableval; do
15091 IFS="$lt_save_ifs"
15092 if test "X$pkg" = "X$p"; then
15093 enable_static=yes
15094 fi
15095 done
15096 IFS="$lt_save_ifs"
15097 ;;
15098 esac
15099 else
15100 enable_static=yes
15101 fi
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112 # Check whether --with-pic was given.
15113 if test "${with_pic+set}" = set; then :
15114 withval=$with_pic; pic_mode="$withval"
15115 else
15116 pic_mode=default
15117 fi
15118
15119
15120 test -z "$pic_mode" && pic_mode=default
15121
15122
15123
15124
15125
15126
15127
15128 # Check whether --enable-fast-install was given.
15129 if test "${enable_fast_install+set}" = set; then :
15130 enableval=$enable_fast_install; p=${PACKAGE-default}
15131 case $enableval in
15132 yes) enable_fast_install=yes ;;
15133 no) enable_fast_install=no ;;
15134 *)
15135 enable_fast_install=no
15136 # Look at the argument we got. We use all the common list separators.
15137 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15138 for pkg in $enableval; do
15139 IFS="$lt_save_ifs"
15140 if test "X$pkg" = "X$p"; then
15141 enable_fast_install=yes
15142 fi
15143 done
15144 IFS="$lt_save_ifs"
15145 ;;
15146 esac
15147 else
15148 enable_fast_install=yes
15149 fi
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161 # This can be used to rebuild libtool when needed
15162 LIBTOOL_DEPS="$ltmain"
15163
15164 # Always use our own libtool.
15165 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192 test -z "$LN_S" && LN_S="ln -s"
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207 if test -n "${ZSH_VERSION+set}" ; then
15208 setopt NO_GLOB_SUBST
15209 fi
15210
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15212 $as_echo_n "checking for objdir... " >&6; }
15213 if test "${lt_cv_objdir+set}" = set; then :
15214 $as_echo_n "(cached) " >&6
15215 else
15216 rm -f .libs 2>/dev/null
15217 mkdir .libs 2>/dev/null
15218 if test -d .libs; then
15219 lt_cv_objdir=.libs
15220 else
15221 # MS-DOS does not allow filenames that begin with a dot.
15222 lt_cv_objdir=_libs
15223 fi
15224 rmdir .libs 2>/dev/null
15225 fi
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15227 $as_echo "$lt_cv_objdir" >&6; }
15228 objdir=$lt_cv_objdir
15229
15230
15231
15232
15233
15234 cat >>confdefs.h <<_ACEOF
15235 #define LT_OBJDIR "$lt_cv_objdir/"
15236 _ACEOF
15237
15238
15239
15240
15241 case $host_os in
15242 aix3*)
15243 # AIX sometimes has problems with the GCC collect2 program. For some
15244 # reason, if we set the COLLECT_NAMES environment variable, the problems
15245 # vanish in a puff of smoke.
15246 if test "X${COLLECT_NAMES+set}" != Xset; then
15247 COLLECT_NAMES=
15248 export COLLECT_NAMES
15249 fi
15250 ;;
15251 esac
15252
15253 # Global variables:
15254 ofile=libtool
15255 can_build_shared=yes
15256
15257 # All known linkers require a `.a' archive for static linking (except MSVC,
15258 # which needs '.lib').
15259 libext=a
15260
15261 with_gnu_ld="$lt_cv_prog_gnu_ld"
15262
15263 old_CC="$CC"
15264 old_CFLAGS="$CFLAGS"
15265
15266 # Set sane defaults for various variables
15267 test -z "$CC" && CC=cc
15268 test -z "$LTCC" && LTCC=$CC
15269 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15270 test -z "$LD" && LD=ld
15271 test -z "$ac_objext" && ac_objext=o
15272
15273 for cc_temp in $compiler""; do
15274 case $cc_temp in
15275 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15276 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15277 \-*) ;;
15278 *) break;;
15279 esac
15280 done
15281 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15282
15283
15284 # Only perform the check for file, if the check method requires it
15285 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15286 case $deplibs_check_method in
15287 file_magic*)
15288 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15290 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15291 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15292 $as_echo_n "(cached) " >&6
15293 else
15294 case $MAGIC_CMD in
15295 [\\/*] | ?:[\\/]*)
15296 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15297 ;;
15298 *)
15299 lt_save_MAGIC_CMD="$MAGIC_CMD"
15300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15301 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15302 for ac_dir in $ac_dummy; do
15303 IFS="$lt_save_ifs"
15304 test -z "$ac_dir" && ac_dir=.
15305 if test -f $ac_dir/${ac_tool_prefix}file; then
15306 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15307 if test -n "$file_magic_test_file"; then
15308 case $deplibs_check_method in
15309 "file_magic "*)
15310 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15311 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15312 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15313 $EGREP "$file_magic_regex" > /dev/null; then
15314 :
15315 else
15316 cat <<_LT_EOF 1>&2
15317
15318 *** Warning: the command libtool uses to detect shared libraries,
15319 *** $file_magic_cmd, produces output that libtool cannot recognize.
15320 *** The result is that libtool may fail to recognize shared libraries
15321 *** as such. This will affect the creation of libtool libraries that
15322 *** depend on shared libraries, but programs linked with such libtool
15323 *** libraries will work regardless of this problem. Nevertheless, you
15324 *** may want to report the problem to your system manager and/or to
15325 *** bug-libtool@gnu.org
15326
15327 _LT_EOF
15328 fi ;;
15329 esac
15330 fi
15331 break
15332 fi
15333 done
15334 IFS="$lt_save_ifs"
15335 MAGIC_CMD="$lt_save_MAGIC_CMD"
15336 ;;
15337 esac
15338 fi
15339
15340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15341 if test -n "$MAGIC_CMD"; then
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15343 $as_echo "$MAGIC_CMD" >&6; }
15344 else
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15346 $as_echo "no" >&6; }
15347 fi
15348
15349
15350
15351
15352
15353 if test -z "$lt_cv_path_MAGIC_CMD"; then
15354 if test -n "$ac_tool_prefix"; then
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15356 $as_echo_n "checking for file... " >&6; }
15357 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15358 $as_echo_n "(cached) " >&6
15359 else
15360 case $MAGIC_CMD in
15361 [\\/*] | ?:[\\/]*)
15362 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15363 ;;
15364 *)
15365 lt_save_MAGIC_CMD="$MAGIC_CMD"
15366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15367 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15368 for ac_dir in $ac_dummy; do
15369 IFS="$lt_save_ifs"
15370 test -z "$ac_dir" && ac_dir=.
15371 if test -f $ac_dir/file; then
15372 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15373 if test -n "$file_magic_test_file"; then
15374 case $deplibs_check_method in
15375 "file_magic "*)
15376 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15378 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15379 $EGREP "$file_magic_regex" > /dev/null; then
15380 :
15381 else
15382 cat <<_LT_EOF 1>&2
15383
15384 *** Warning: the command libtool uses to detect shared libraries,
15385 *** $file_magic_cmd, produces output that libtool cannot recognize.
15386 *** The result is that libtool may fail to recognize shared libraries
15387 *** as such. This will affect the creation of libtool libraries that
15388 *** depend on shared libraries, but programs linked with such libtool
15389 *** libraries will work regardless of this problem. Nevertheless, you
15390 *** may want to report the problem to your system manager and/or to
15391 *** bug-libtool@gnu.org
15392
15393 _LT_EOF
15394 fi ;;
15395 esac
15396 fi
15397 break
15398 fi
15399 done
15400 IFS="$lt_save_ifs"
15401 MAGIC_CMD="$lt_save_MAGIC_CMD"
15402 ;;
15403 esac
15404 fi
15405
15406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15407 if test -n "$MAGIC_CMD"; then
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15409 $as_echo "$MAGIC_CMD" >&6; }
15410 else
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15412 $as_echo "no" >&6; }
15413 fi
15414
15415
15416 else
15417 MAGIC_CMD=:
15418 fi
15419 fi
15420
15421 fi
15422 ;;
15423 esac
15424
15425 # Use C for the default configuration in the libtool script
15426
15427 lt_save_CC="$CC"
15428 ac_ext=c
15429 ac_cpp='$CPP $CPPFLAGS'
15430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15433
15434
15435 # Source file extension for C test sources.
15436 ac_ext=c
15437
15438 # Object file extension for compiled C test sources.
15439 objext=o
15440 objext=$objext
15441
15442 # Code to be used in simple compile tests
15443 lt_simple_compile_test_code="int some_variable = 0;"
15444
15445 # Code to be used in simple link tests
15446 lt_simple_link_test_code='int main(){return(0);}'
15447
15448
15449
15450
15451
15452
15453
15454 # If no C compiler was specified, use CC.
15455 LTCC=${LTCC-"$CC"}
15456
15457 # If no C compiler flags were specified, use CFLAGS.
15458 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15459
15460 # Allow CC to be a program name with arguments.
15461 compiler=$CC
15462
15463 # Save the default compiler, since it gets overwritten when the other
15464 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15465 compiler_DEFAULT=$CC
15466
15467 # save warnings/boilerplate of simple test code
15468 ac_outfile=conftest.$ac_objext
15469 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15470 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15471 _lt_compiler_boilerplate=`cat conftest.err`
15472 $RM conftest*
15473
15474 ac_outfile=conftest.$ac_objext
15475 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15476 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15477 _lt_linker_boilerplate=`cat conftest.err`
15478 $RM -r conftest*
15479
15480
15481 ## CAVEAT EMPTOR:
15482 ## There is no encapsulation within the following macros, do not change
15483 ## the running order or otherwise move them around unless you know exactly
15484 ## what you are doing...
15485 if test -n "$compiler"; then
15486
15487 lt_prog_compiler_no_builtin_flag=
15488
15489 if test "$GCC" = yes; then
15490 case $cc_basename in
15491 nvcc*)
15492 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15493 *)
15494 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15495 esac
15496
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15498 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15499 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15500 $as_echo_n "(cached) " >&6
15501 else
15502 lt_cv_prog_compiler_rtti_exceptions=no
15503 ac_outfile=conftest.$ac_objext
15504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15505 lt_compiler_flag="-fno-rtti -fno-exceptions"
15506 # Insert the option either (1) after the last *FLAGS variable, or
15507 # (2) before a word containing "conftest.", or (3) at the end.
15508 # Note that $ac_compile itself does not contain backslashes and begins
15509 # with a dollar sign (not a hyphen), so the echo should work correctly.
15510 # The option is referenced via a variable to avoid confusing sed.
15511 lt_compile=`echo "$ac_compile" | $SED \
15512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15514 -e 's:$: $lt_compiler_flag:'`
15515 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15516 (eval "$lt_compile" 2>conftest.err)
15517 ac_status=$?
15518 cat conftest.err >&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 if (exit $ac_status) && test -s "$ac_outfile"; then
15521 # The compiler can only warn and ignore the option if not recognized
15522 # So say no if there are warnings other than the usual output.
15523 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15525 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15526 lt_cv_prog_compiler_rtti_exceptions=yes
15527 fi
15528 fi
15529 $RM conftest*
15530
15531 fi
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15533 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15534
15535 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15536 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15537 else
15538 :
15539 fi
15540
15541 fi
15542
15543
15544
15545
15546
15547
15548 lt_prog_compiler_wl=
15549 lt_prog_compiler_pic=
15550 lt_prog_compiler_static=
15551
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15553 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15554
15555 if test "$GCC" = yes; then
15556 lt_prog_compiler_wl='-Wl,'
15557 lt_prog_compiler_static='-static'
15558
15559 case $host_os in
15560 aix*)
15561 # All AIX code is PIC.
15562 if test "$host_cpu" = ia64; then
15563 # AIX 5 now supports IA64 processor
15564 lt_prog_compiler_static='-Bstatic'
15565 fi
15566 lt_prog_compiler_pic='-fPIC'
15567 ;;
15568
15569 amigaos*)
15570 case $host_cpu in
15571 powerpc)
15572 # see comment about AmigaOS4 .so support
15573 lt_prog_compiler_pic='-fPIC'
15574 ;;
15575 m68k)
15576 # FIXME: we need at least 68020 code to build shared libraries, but
15577 # adding the `-m68020' flag to GCC prevents building anything better,
15578 # like `-m68040'.
15579 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15580 ;;
15581 esac
15582 ;;
15583
15584 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15585 # PIC is the default for these OSes.
15586 ;;
15587
15588 mingw* | cygwin* | pw32* | os2* | cegcc*)
15589 # This hack is so that the source file can tell whether it is being
15590 # built for inclusion in a dll (and should export symbols for example).
15591 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15592 # (--disable-auto-import) libraries
15593 lt_prog_compiler_pic='-DDLL_EXPORT'
15594 ;;
15595
15596 darwin* | rhapsody*)
15597 # PIC is the default on this platform
15598 # Common symbols not allowed in MH_DYLIB files
15599 lt_prog_compiler_pic='-fno-common'
15600 ;;
15601
15602 haiku*)
15603 # PIC is the default for Haiku.
15604 # The "-static" flag exists, but is broken.
15605 lt_prog_compiler_static=
15606 ;;
15607
15608 hpux*)
15609 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15610 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15611 # sets the default TLS model and affects inlining.
15612 case $host_cpu in
15613 hppa*64*)
15614 # +Z the default
15615 ;;
15616 *)
15617 lt_prog_compiler_pic='-fPIC'
15618 ;;
15619 esac
15620 ;;
15621
15622 interix[3-9]*)
15623 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15624 # Instead, we relocate shared libraries at runtime.
15625 ;;
15626
15627 msdosdjgpp*)
15628 # Just because we use GCC doesn't mean we suddenly get shared libraries
15629 # on systems that don't support them.
15630 lt_prog_compiler_can_build_shared=no
15631 enable_shared=no
15632 ;;
15633
15634 *nto* | *qnx*)
15635 # QNX uses GNU C++, but need to define -shared option too, otherwise
15636 # it will coredump.
15637 lt_prog_compiler_pic='-fPIC -shared'
15638 ;;
15639
15640 sysv4*MP*)
15641 if test -d /usr/nec; then
15642 lt_prog_compiler_pic=-Kconform_pic
15643 fi
15644 ;;
15645
15646 *)
15647 lt_prog_compiler_pic='-fPIC'
15648 ;;
15649 esac
15650
15651 case $cc_basename in
15652 nvcc*) # Cuda Compiler Driver 2.2
15653 lt_prog_compiler_wl='-Xlinker '
15654 lt_prog_compiler_pic='-Xcompiler -fPIC'
15655 ;;
15656 esac
15657 else
15658 # PORTME Check for flag to pass linker flags through the system compiler.
15659 case $host_os in
15660 aix*)
15661 lt_prog_compiler_wl='-Wl,'
15662 if test "$host_cpu" = ia64; then
15663 # AIX 5 now supports IA64 processor
15664 lt_prog_compiler_static='-Bstatic'
15665 else
15666 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15667 fi
15668 ;;
15669
15670 mingw* | cygwin* | pw32* | os2* | cegcc*)
15671 # This hack is so that the source file can tell whether it is being
15672 # built for inclusion in a dll (and should export symbols for example).
15673 lt_prog_compiler_pic='-DDLL_EXPORT'
15674 ;;
15675
15676 hpux9* | hpux10* | hpux11*)
15677 lt_prog_compiler_wl='-Wl,'
15678 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15679 # not for PA HP-UX.
15680 case $host_cpu in
15681 hppa*64*|ia64*)
15682 # +Z the default
15683 ;;
15684 *)
15685 lt_prog_compiler_pic='+Z'
15686 ;;
15687 esac
15688 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15689 lt_prog_compiler_static='${wl}-a ${wl}archive'
15690 ;;
15691
15692 irix5* | irix6* | nonstopux*)
15693 lt_prog_compiler_wl='-Wl,'
15694 # PIC (with -KPIC) is the default.
15695 lt_prog_compiler_static='-non_shared'
15696 ;;
15697
15698 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15699 case $cc_basename in
15700 # old Intel for x86_64 which still supported -KPIC.
15701 ecc*)
15702 lt_prog_compiler_wl='-Wl,'
15703 lt_prog_compiler_pic='-KPIC'
15704 lt_prog_compiler_static='-static'
15705 ;;
15706 # icc used to be incompatible with GCC.
15707 # ICC 10 doesn't accept -KPIC any more.
15708 icc* | ifort*)
15709 lt_prog_compiler_wl='-Wl,'
15710 lt_prog_compiler_pic='-fPIC'
15711 lt_prog_compiler_static='-static'
15712 ;;
15713 # Lahey Fortran 8.1.
15714 lf95*)
15715 lt_prog_compiler_wl='-Wl,'
15716 lt_prog_compiler_pic='--shared'
15717 lt_prog_compiler_static='--static'
15718 ;;
15719 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15720 # Portland Group compilers (*not* the Pentium gcc compiler,
15721 # which looks to be a dead project)
15722 lt_prog_compiler_wl='-Wl,'
15723 lt_prog_compiler_pic='-fpic'
15724 lt_prog_compiler_static='-Bstatic'
15725 ;;
15726 ccc*)
15727 lt_prog_compiler_wl='-Wl,'
15728 # All Alpha code is PIC.
15729 lt_prog_compiler_static='-non_shared'
15730 ;;
15731 xl* | bgxl* | bgf* | mpixl*)
15732 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15733 lt_prog_compiler_wl='-Wl,'
15734 lt_prog_compiler_pic='-qpic'
15735 lt_prog_compiler_static='-qstaticlink'
15736 ;;
15737 *)
15738 case `$CC -V 2>&1 | sed 5q` in
15739 *Sun\ F* | *Sun*Fortran*)
15740 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15741 lt_prog_compiler_pic='-KPIC'
15742 lt_prog_compiler_static='-Bstatic'
15743 lt_prog_compiler_wl=''
15744 ;;
15745 *Sun\ C*)
15746 # Sun C 5.9
15747 lt_prog_compiler_pic='-KPIC'
15748 lt_prog_compiler_static='-Bstatic'
15749 lt_prog_compiler_wl='-Wl,'
15750 ;;
15751 esac
15752 ;;
15753 esac
15754 ;;
15755
15756 newsos6)
15757 lt_prog_compiler_pic='-KPIC'
15758 lt_prog_compiler_static='-Bstatic'
15759 ;;
15760
15761 *nto* | *qnx*)
15762 # QNX uses GNU C++, but need to define -shared option too, otherwise
15763 # it will coredump.
15764 lt_prog_compiler_pic='-fPIC -shared'
15765 ;;
15766
15767 osf3* | osf4* | osf5*)
15768 lt_prog_compiler_wl='-Wl,'
15769 # All OSF/1 code is PIC.
15770 lt_prog_compiler_static='-non_shared'
15771 ;;
15772
15773 rdos*)
15774 lt_prog_compiler_static='-non_shared'
15775 ;;
15776
15777 solaris*)
15778 lt_prog_compiler_pic='-KPIC'
15779 lt_prog_compiler_static='-Bstatic'
15780 case $cc_basename in
15781 f77* | f90* | f95*)
15782 lt_prog_compiler_wl='-Qoption ld ';;
15783 *)
15784 lt_prog_compiler_wl='-Wl,';;
15785 esac
15786 ;;
15787
15788 sunos4*)
15789 lt_prog_compiler_wl='-Qoption ld '
15790 lt_prog_compiler_pic='-PIC'
15791 lt_prog_compiler_static='-Bstatic'
15792 ;;
15793
15794 sysv4 | sysv4.2uw2* | sysv4.3*)
15795 lt_prog_compiler_wl='-Wl,'
15796 lt_prog_compiler_pic='-KPIC'
15797 lt_prog_compiler_static='-Bstatic'
15798 ;;
15799
15800 sysv4*MP*)
15801 if test -d /usr/nec ;then
15802 lt_prog_compiler_pic='-Kconform_pic'
15803 lt_prog_compiler_static='-Bstatic'
15804 fi
15805 ;;
15806
15807 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15808 lt_prog_compiler_wl='-Wl,'
15809 lt_prog_compiler_pic='-KPIC'
15810 lt_prog_compiler_static='-Bstatic'
15811 ;;
15812
15813 unicos*)
15814 lt_prog_compiler_wl='-Wl,'
15815 lt_prog_compiler_can_build_shared=no
15816 ;;
15817
15818 uts4*)
15819 lt_prog_compiler_pic='-pic'
15820 lt_prog_compiler_static='-Bstatic'
15821 ;;
15822
15823 *)
15824 lt_prog_compiler_can_build_shared=no
15825 ;;
15826 esac
15827 fi
15828
15829 case $host_os in
15830 # For platforms which do not support PIC, -DPIC is meaningless:
15831 *djgpp*)
15832 lt_prog_compiler_pic=
15833 ;;
15834 *)
15835 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15836 ;;
15837 esac
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15839 $as_echo "$lt_prog_compiler_pic" >&6; }
15840
15841
15842
15843
15844
15845
15846 #
15847 # Check to make sure the PIC flag actually works.
15848 #
15849 if test -n "$lt_prog_compiler_pic"; then
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15851 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15852 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15853 $as_echo_n "(cached) " >&6
15854 else
15855 lt_cv_prog_compiler_pic_works=no
15856 ac_outfile=conftest.$ac_objext
15857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15858 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15859 # Insert the option either (1) after the last *FLAGS variable, or
15860 # (2) before a word containing "conftest.", or (3) at the end.
15861 # Note that $ac_compile itself does not contain backslashes and begins
15862 # with a dollar sign (not a hyphen), so the echo should work correctly.
15863 # The option is referenced via a variable to avoid confusing sed.
15864 lt_compile=`echo "$ac_compile" | $SED \
15865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15867 -e 's:$: $lt_compiler_flag:'`
15868 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15869 (eval "$lt_compile" 2>conftest.err)
15870 ac_status=$?
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 if (exit $ac_status) && test -s "$ac_outfile"; then
15874 # The compiler can only warn and ignore the option if not recognized
15875 # So say no if there are warnings other than the usual output.
15876 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15878 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15879 lt_cv_prog_compiler_pic_works=yes
15880 fi
15881 fi
15882 $RM conftest*
15883
15884 fi
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15886 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15887
15888 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15889 case $lt_prog_compiler_pic in
15890 "" | " "*) ;;
15891 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15892 esac
15893 else
15894 lt_prog_compiler_pic=
15895 lt_prog_compiler_can_build_shared=no
15896 fi
15897
15898 fi
15899
15900
15901
15902
15903
15904
15905 #
15906 # Check to make sure the static flag actually works.
15907 #
15908 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15910 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15911 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15912 $as_echo_n "(cached) " >&6
15913 else
15914 lt_cv_prog_compiler_static_works=no
15915 save_LDFLAGS="$LDFLAGS"
15916 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15917 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15918 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15919 # The linker can only warn and ignore the option if not recognized
15920 # So say no if there are warnings
15921 if test -s conftest.err; then
15922 # Append any errors to the config.log.
15923 cat conftest.err 1>&5
15924 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15926 if diff conftest.exp conftest.er2 >/dev/null; then
15927 lt_cv_prog_compiler_static_works=yes
15928 fi
15929 else
15930 lt_cv_prog_compiler_static_works=yes
15931 fi
15932 fi
15933 $RM -r conftest*
15934 LDFLAGS="$save_LDFLAGS"
15935
15936 fi
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15938 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15939
15940 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15941 :
15942 else
15943 lt_prog_compiler_static=
15944 fi
15945
15946
15947
15948
15949
15950
15951
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15953 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15954 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15955 $as_echo_n "(cached) " >&6
15956 else
15957 lt_cv_prog_compiler_c_o=no
15958 $RM -r conftest 2>/dev/null
15959 mkdir conftest
15960 cd conftest
15961 mkdir out
15962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15963
15964 lt_compiler_flag="-o out/conftest2.$ac_objext"
15965 # Insert the option either (1) after the last *FLAGS variable, or
15966 # (2) before a word containing "conftest.", or (3) at the end.
15967 # Note that $ac_compile itself does not contain backslashes and begins
15968 # with a dollar sign (not a hyphen), so the echo should work correctly.
15969 lt_compile=`echo "$ac_compile" | $SED \
15970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15972 -e 's:$: $lt_compiler_flag:'`
15973 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15974 (eval "$lt_compile" 2>out/conftest.err)
15975 ac_status=$?
15976 cat out/conftest.err >&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15979 then
15980 # The compiler can only warn and ignore the option if not recognized
15981 # So say no if there are warnings
15982 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15983 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15984 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15985 lt_cv_prog_compiler_c_o=yes
15986 fi
15987 fi
15988 chmod u+w . 2>&5
15989 $RM conftest*
15990 # SGI C++ compiler will create directory out/ii_files/ for
15991 # template instantiation
15992 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15993 $RM out/* && rmdir out
15994 cd ..
15995 $RM -r conftest
15996 $RM conftest*
15997
15998 fi
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16000 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16001
16002
16003
16004
16005
16006
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16008 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16009 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
16010 $as_echo_n "(cached) " >&6
16011 else
16012 lt_cv_prog_compiler_c_o=no
16013 $RM -r conftest 2>/dev/null
16014 mkdir conftest
16015 cd conftest
16016 mkdir out
16017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16018
16019 lt_compiler_flag="-o out/conftest2.$ac_objext"
16020 # Insert the option either (1) after the last *FLAGS variable, or
16021 # (2) before a word containing "conftest.", or (3) at the end.
16022 # Note that $ac_compile itself does not contain backslashes and begins
16023 # with a dollar sign (not a hyphen), so the echo should work correctly.
16024 lt_compile=`echo "$ac_compile" | $SED \
16025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16027 -e 's:$: $lt_compiler_flag:'`
16028 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16029 (eval "$lt_compile" 2>out/conftest.err)
16030 ac_status=$?
16031 cat out/conftest.err >&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16034 then
16035 # The compiler can only warn and ignore the option if not recognized
16036 # So say no if there are warnings
16037 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16038 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16039 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16040 lt_cv_prog_compiler_c_o=yes
16041 fi
16042 fi
16043 chmod u+w . 2>&5
16044 $RM conftest*
16045 # SGI C++ compiler will create directory out/ii_files/ for
16046 # template instantiation
16047 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16048 $RM out/* && rmdir out
16049 cd ..
16050 $RM -r conftest
16051 $RM conftest*
16052
16053 fi
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16055 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16056
16057
16058
16059
16060 hard_links="nottested"
16061 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16062 # do not overwrite the value of need_locks provided by the user
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16064 $as_echo_n "checking if we can lock with hard links... " >&6; }
16065 hard_links=yes
16066 $RM conftest*
16067 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16068 touch conftest.a
16069 ln conftest.a conftest.b 2>&5 || hard_links=no
16070 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16072 $as_echo "$hard_links" >&6; }
16073 if test "$hard_links" = no; then
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16075 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16076 need_locks=warn
16077 fi
16078 else
16079 need_locks=no
16080 fi
16081
16082
16083
16084
16085
16086
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16088 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16089
16090 runpath_var=
16091 allow_undefined_flag=
16092 always_export_symbols=no
16093 archive_cmds=
16094 archive_expsym_cmds=
16095 compiler_needs_object=no
16096 enable_shared_with_static_runtimes=no
16097 export_dynamic_flag_spec=
16098 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16099 hardcode_automatic=no
16100 hardcode_direct=no
16101 hardcode_direct_absolute=no
16102 hardcode_libdir_flag_spec=
16103 hardcode_libdir_flag_spec_ld=
16104 hardcode_libdir_separator=
16105 hardcode_minus_L=no
16106 hardcode_shlibpath_var=unsupported
16107 inherit_rpath=no
16108 link_all_deplibs=unknown
16109 module_cmds=
16110 module_expsym_cmds=
16111 old_archive_from_new_cmds=
16112 old_archive_from_expsyms_cmds=
16113 thread_safe_flag_spec=
16114 whole_archive_flag_spec=
16115 # include_expsyms should be a list of space-separated symbols to be *always*
16116 # included in the symbol list
16117 include_expsyms=
16118 # exclude_expsyms can be an extended regexp of symbols to exclude
16119 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16120 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16121 # as well as any symbol that contains `d'.
16122 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16123 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16124 # platforms (ab)use it in PIC code, but their linkers get confused if
16125 # the symbol is explicitly referenced. Since portable code cannot
16126 # rely on this symbol name, it's probably fine to never include it in
16127 # preloaded symbol tables.
16128 # Exclude shared library initialization/finalization symbols.
16129 extract_expsyms_cmds=
16130
16131 case $host_os in
16132 cygwin* | mingw* | pw32* | cegcc*)
16133 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16134 # When not using gcc, we currently assume that we are using
16135 # Microsoft Visual C++.
16136 if test "$GCC" != yes; then
16137 with_gnu_ld=no
16138 fi
16139 ;;
16140 interix*)
16141 # we just hope/assume this is gcc and not c89 (= MSVC++)
16142 with_gnu_ld=yes
16143 ;;
16144 openbsd*)
16145 with_gnu_ld=no
16146 ;;
16147 esac
16148
16149 ld_shlibs=yes
16150
16151 # On some targets, GNU ld is compatible enough with the native linker
16152 # that we're better off using the native interface for both.
16153 lt_use_gnu_ld_interface=no
16154 if test "$with_gnu_ld" = yes; then
16155 case $host_os in
16156 aix*)
16157 # The AIX port of GNU ld has always aspired to compatibility
16158 # with the native linker. However, as the warning in the GNU ld
16159 # block says, versions before 2.19.5* couldn't really create working
16160 # shared libraries, regardless of the interface used.
16161 case `$LD -v 2>&1` in
16162 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16163 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16164 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16165 *)
16166 lt_use_gnu_ld_interface=yes
16167 ;;
16168 esac
16169 ;;
16170 *)
16171 lt_use_gnu_ld_interface=yes
16172 ;;
16173 esac
16174 fi
16175
16176 if test "$lt_use_gnu_ld_interface" = yes; then
16177 # If archive_cmds runs LD, not CC, wlarc should be empty
16178 wlarc='${wl}'
16179
16180 # Set some defaults for GNU ld with shared library support. These
16181 # are reset later if shared libraries are not supported. Putting them
16182 # here allows them to be overridden if necessary.
16183 runpath_var=LD_RUN_PATH
16184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16185 export_dynamic_flag_spec='${wl}--export-dynamic'
16186 # ancient GNU ld didn't support --whole-archive et. al.
16187 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16188 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16189 else
16190 whole_archive_flag_spec=
16191 fi
16192 supports_anon_versioning=no
16193 case `$LD -v 2>&1` in
16194 *GNU\ gold*) supports_anon_versioning=yes ;;
16195 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16196 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16197 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16198 *\ 2.11.*) ;; # other 2.11 versions
16199 *) supports_anon_versioning=yes ;;
16200 esac
16201
16202 # See if GNU ld supports shared libraries.
16203 case $host_os in
16204 aix[3-9]*)
16205 # On AIX/PPC, the GNU linker is very broken
16206 if test "$host_cpu" != ia64; then
16207 ld_shlibs=no
16208 cat <<_LT_EOF 1>&2
16209
16210 *** Warning: the GNU linker, at least up to release 2.19, is reported
16211 *** to be unable to reliably create shared libraries on AIX.
16212 *** Therefore, libtool is disabling shared libraries support. If you
16213 *** really care for shared libraries, you may want to install binutils
16214 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16215 *** You will then need to restart the configuration process.
16216
16217 _LT_EOF
16218 fi
16219 ;;
16220
16221 amigaos*)
16222 case $host_cpu in
16223 powerpc)
16224 # see comment about AmigaOS4 .so support
16225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16226 archive_expsym_cmds=''
16227 ;;
16228 m68k)
16229 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)'
16230 hardcode_libdir_flag_spec='-L$libdir'
16231 hardcode_minus_L=yes
16232 ;;
16233 esac
16234 ;;
16235
16236 beos*)
16237 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16238 allow_undefined_flag=unsupported
16239 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16240 # support --undefined. This deserves some investigation. FIXME
16241 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16242 else
16243 ld_shlibs=no
16244 fi
16245 ;;
16246
16247 cygwin* | mingw* | pw32* | cegcc*)
16248 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16249 # as there is no search path for DLLs.
16250 hardcode_libdir_flag_spec='-L$libdir'
16251 export_dynamic_flag_spec='${wl}--export-all-symbols'
16252 allow_undefined_flag=unsupported
16253 always_export_symbols=no
16254 enable_shared_with_static_runtimes=yes
16255 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16256
16257 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16259 # If the export-symbols file already is a .def file (1st line
16260 # is EXPORTS), use it as is; otherwise, prepend...
16261 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16262 cp $export_symbols $output_objdir/$soname.def;
16263 else
16264 echo EXPORTS > $output_objdir/$soname.def;
16265 cat $export_symbols >> $output_objdir/$soname.def;
16266 fi~
16267 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16268 else
16269 ld_shlibs=no
16270 fi
16271 ;;
16272
16273 haiku*)
16274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16275 link_all_deplibs=yes
16276 ;;
16277
16278 interix[3-9]*)
16279 hardcode_direct=no
16280 hardcode_shlibpath_var=no
16281 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16282 export_dynamic_flag_spec='${wl}-E'
16283 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16284 # Instead, shared libraries are loaded at an image base (0x10000000 by
16285 # default) and relocated if they conflict, which is a slow very memory
16286 # consuming and fragmenting process. To avoid this, we pick a random,
16287 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16288 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16289 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16290 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'
16291 ;;
16292
16293 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16294 tmp_diet=no
16295 if test "$host_os" = linux-dietlibc; then
16296 case $cc_basename in
16297 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16298 esac
16299 fi
16300 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16301 && test "$tmp_diet" = no
16302 then
16303 tmp_addflag=' $pic_flag'
16304 tmp_sharedflag='-shared'
16305 case $cc_basename,$host_cpu in
16306 pgcc*) # Portland Group C compiler
16307 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'
16308 tmp_addflag=' $pic_flag'
16309 ;;
16310 pgf77* | pgf90* | pgf95* | pgfortran*)
16311 # Portland Group f77 and f90 compilers
16312 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'
16313 tmp_addflag=' $pic_flag -Mnomain' ;;
16314 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16315 tmp_addflag=' -i_dynamic' ;;
16316 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16317 tmp_addflag=' -i_dynamic -nofor_main' ;;
16318 ifc* | ifort*) # Intel Fortran compiler
16319 tmp_addflag=' -nofor_main' ;;
16320 lf95*) # Lahey Fortran 8.1
16321 whole_archive_flag_spec=
16322 tmp_sharedflag='--shared' ;;
16323 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16324 tmp_sharedflag='-qmkshrobj'
16325 tmp_addflag= ;;
16326 nvcc*) # Cuda Compiler Driver 2.2
16327 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'
16328 compiler_needs_object=yes
16329 ;;
16330 esac
16331 case `$CC -V 2>&1 | sed 5q` in
16332 *Sun\ C*) # Sun C 5.9
16333 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'
16334 compiler_needs_object=yes
16335 tmp_sharedflag='-G' ;;
16336 *Sun\ F*) # Sun Fortran 8.3
16337 tmp_sharedflag='-G' ;;
16338 esac
16339 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16340
16341 if test "x$supports_anon_versioning" = xyes; then
16342 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16343 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16344 echo "local: *; };" >> $output_objdir/$libname.ver~
16345 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16346 fi
16347
16348 case $cc_basename in
16349 xlf* | bgf* | bgxlf* | mpixlf*)
16350 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16351 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16352 hardcode_libdir_flag_spec=
16353 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16354 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16355 if test "x$supports_anon_versioning" = xyes; then
16356 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16357 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16358 echo "local: *; };" >> $output_objdir/$libname.ver~
16359 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16360 fi
16361 ;;
16362 esac
16363 else
16364 ld_shlibs=no
16365 fi
16366 ;;
16367
16368 netbsd*)
16369 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16370 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16371 wlarc=
16372 else
16373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16375 fi
16376 ;;
16377
16378 solaris*)
16379 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16380 ld_shlibs=no
16381 cat <<_LT_EOF 1>&2
16382
16383 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16384 *** create shared libraries on Solaris systems. Therefore, libtool
16385 *** is disabling shared libraries support. We urge you to upgrade GNU
16386 *** binutils to release 2.9.1 or newer. Another option is to modify
16387 *** your PATH or compiler configuration so that the native linker is
16388 *** used, and then restart.
16389
16390 _LT_EOF
16391 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16394 else
16395 ld_shlibs=no
16396 fi
16397 ;;
16398
16399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16400 case `$LD -v 2>&1` in
16401 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16402 ld_shlibs=no
16403 cat <<_LT_EOF 1>&2
16404
16405 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16406 *** reliably create shared libraries on SCO systems. Therefore, libtool
16407 *** is disabling shared libraries support. We urge you to upgrade GNU
16408 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16409 *** your PATH or compiler configuration so that the native linker is
16410 *** used, and then restart.
16411
16412 _LT_EOF
16413 ;;
16414 *)
16415 # For security reasons, it is highly recommended that you always
16416 # use absolute paths for naming shared libraries, and exclude the
16417 # DT_RUNPATH tag from executables and libraries. But doing so
16418 # requires that you compile everything twice, which is a pain.
16419 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16423 else
16424 ld_shlibs=no
16425 fi
16426 ;;
16427 esac
16428 ;;
16429
16430 sunos4*)
16431 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16432 wlarc=
16433 hardcode_direct=yes
16434 hardcode_shlibpath_var=no
16435 ;;
16436
16437 *)
16438 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16440 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16441 else
16442 ld_shlibs=no
16443 fi
16444 ;;
16445 esac
16446
16447 if test "$ld_shlibs" = no; then
16448 runpath_var=
16449 hardcode_libdir_flag_spec=
16450 export_dynamic_flag_spec=
16451 whole_archive_flag_spec=
16452 fi
16453 else
16454 # PORTME fill in a description of your system's linker (not GNU ld)
16455 case $host_os in
16456 aix3*)
16457 allow_undefined_flag=unsupported
16458 always_export_symbols=yes
16459 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'
16460 # Note: this linker hardcodes the directories in LIBPATH if there
16461 # are no directories specified by -L.
16462 hardcode_minus_L=yes
16463 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16464 # Neither direct hardcoding nor static linking is supported with a
16465 # broken collect2.
16466 hardcode_direct=unsupported
16467 fi
16468 ;;
16469
16470 aix[4-9]*)
16471 if test "$host_cpu" = ia64; then
16472 # On IA64, the linker does run time linking by default, so we don't
16473 # have to do anything special.
16474 aix_use_runtimelinking=no
16475 exp_sym_flag='-Bexport'
16476 no_entry_flag=""
16477 else
16478 # If we're using GNU nm, then we don't want the "-C" option.
16479 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16480 # Also, AIX nm treats weak defined symbols like other global
16481 # defined symbols, whereas GNU nm marks them as "W".
16482 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16483 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'
16484 else
16485 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'
16486 fi
16487 aix_use_runtimelinking=no
16488
16489 # Test if we are trying to use run time linking or normal
16490 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16491 # need to do runtime linking.
16492 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16493 for ld_flag in $LDFLAGS; do
16494 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16495 aix_use_runtimelinking=yes
16496 break
16497 fi
16498 done
16499 ;;
16500 esac
16501
16502 exp_sym_flag='-bexport'
16503 no_entry_flag='-bnoentry'
16504 fi
16505
16506 # When large executables or shared objects are built, AIX ld can
16507 # have problems creating the table of contents. If linking a library
16508 # or program results in "error TOC overflow" add -mminimal-toc to
16509 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16510 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16511
16512 archive_cmds=''
16513 hardcode_direct=yes
16514 hardcode_direct_absolute=yes
16515 hardcode_libdir_separator=':'
16516 link_all_deplibs=yes
16517 file_list_spec='${wl}-f,'
16518
16519 if test "$GCC" = yes; then
16520 case $host_os in aix4.[012]|aix4.[012].*)
16521 # We only want to do this on AIX 4.2 and lower, the check
16522 # below for broken collect2 doesn't work under 4.3+
16523 collect2name=`${CC} -print-prog-name=collect2`
16524 if test -f "$collect2name" &&
16525 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16526 then
16527 # We have reworked collect2
16528 :
16529 else
16530 # We have old collect2
16531 hardcode_direct=unsupported
16532 # It fails to find uninstalled libraries when the uninstalled
16533 # path is not listed in the libpath. Setting hardcode_minus_L
16534 # to unsupported forces relinking
16535 hardcode_minus_L=yes
16536 hardcode_libdir_flag_spec='-L$libdir'
16537 hardcode_libdir_separator=
16538 fi
16539 ;;
16540 esac
16541 shared_flag='-shared'
16542 if test "$aix_use_runtimelinking" = yes; then
16543 shared_flag="$shared_flag "'${wl}-G'
16544 fi
16545 else
16546 # not using gcc
16547 if test "$host_cpu" = ia64; then
16548 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16549 # chokes on -Wl,-G. The following line is correct:
16550 shared_flag='-G'
16551 else
16552 if test "$aix_use_runtimelinking" = yes; then
16553 shared_flag='${wl}-G'
16554 else
16555 shared_flag='${wl}-bM:SRE'
16556 fi
16557 fi
16558 fi
16559
16560 export_dynamic_flag_spec='${wl}-bexpall'
16561 # It seems that -bexpall does not export symbols beginning with
16562 # underscore (_), so it is better to generate a list of symbols to export.
16563 always_export_symbols=yes
16564 if test "$aix_use_runtimelinking" = yes; then
16565 # Warning - without using the other runtime loading flags (-brtl),
16566 # -berok will link without error, but may produce a broken library.
16567 allow_undefined_flag='-berok'
16568 # Determine the default libpath from the value encoded in an
16569 # empty executable.
16570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16571 /* end confdefs.h. */
16572
16573 int
16574 main ()
16575 {
16576
16577 ;
16578 return 0;
16579 }
16580 _ACEOF
16581 if ac_fn_c_try_link "$LINENO"; then :
16582
16583 lt_aix_libpath_sed='
16584 /Import File Strings/,/^$/ {
16585 /^0/ {
16586 s/^0 *\(.*\)$/\1/
16587 p
16588 }
16589 }'
16590 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16591 # Check for a 64-bit object if we didn't find anything.
16592 if test -z "$aix_libpath"; then
16593 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16594 fi
16595 fi
16596 rm -f core conftest.err conftest.$ac_objext \
16597 conftest$ac_exeext conftest.$ac_ext
16598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16599
16600 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16601 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"
16602 else
16603 if test "$host_cpu" = ia64; then
16604 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16605 allow_undefined_flag="-z nodefs"
16606 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"
16607 else
16608 # Determine the default libpath from the value encoded in an
16609 # empty executable.
16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16612
16613 int
16614 main ()
16615 {
16616
16617 ;
16618 return 0;
16619 }
16620 _ACEOF
16621 if ac_fn_c_try_link "$LINENO"; then :
16622
16623 lt_aix_libpath_sed='
16624 /Import File Strings/,/^$/ {
16625 /^0/ {
16626 s/^0 *\(.*\)$/\1/
16627 p
16628 }
16629 }'
16630 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16631 # Check for a 64-bit object if we didn't find anything.
16632 if test -z "$aix_libpath"; then
16633 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16634 fi
16635 fi
16636 rm -f core conftest.err conftest.$ac_objext \
16637 conftest$ac_exeext conftest.$ac_ext
16638 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16639
16640 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16641 # Warning - without using the other run time loading flags,
16642 # -berok will link without error, but may produce a broken library.
16643 no_undefined_flag=' ${wl}-bernotok'
16644 allow_undefined_flag=' ${wl}-berok'
16645 if test "$with_gnu_ld" = yes; then
16646 # We only use this code for GNU lds that support --whole-archive.
16647 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16648 else
16649 # Exported symbols can be pulled into shared objects from archives
16650 whole_archive_flag_spec='$convenience'
16651 fi
16652 archive_cmds_need_lc=yes
16653 # This is similar to how AIX traditionally builds its shared libraries.
16654 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'
16655 fi
16656 fi
16657 ;;
16658
16659 amigaos*)
16660 case $host_cpu in
16661 powerpc)
16662 # see comment about AmigaOS4 .so support
16663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16664 archive_expsym_cmds=''
16665 ;;
16666 m68k)
16667 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)'
16668 hardcode_libdir_flag_spec='-L$libdir'
16669 hardcode_minus_L=yes
16670 ;;
16671 esac
16672 ;;
16673
16674 bsdi[45]*)
16675 export_dynamic_flag_spec=-rdynamic
16676 ;;
16677
16678 cygwin* | mingw* | pw32* | cegcc*)
16679 # When not using gcc, we currently assume that we are using
16680 # Microsoft Visual C++.
16681 # hardcode_libdir_flag_spec is actually meaningless, as there is
16682 # no search path for DLLs.
16683 hardcode_libdir_flag_spec=' '
16684 allow_undefined_flag=unsupported
16685 # Tell ltmain to make .lib files, not .a files.
16686 libext=lib
16687 # Tell ltmain to make .dll files, not .so files.
16688 shrext_cmds=".dll"
16689 # FIXME: Setting linknames here is a bad hack.
16690 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16691 # The linker will automatically build a .lib file if we build a DLL.
16692 old_archive_from_new_cmds='true'
16693 # FIXME: Should let the user specify the lib program.
16694 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16695 fix_srcfile_path='`cygpath -w "$srcfile"`'
16696 enable_shared_with_static_runtimes=yes
16697 ;;
16698
16699 darwin* | rhapsody*)
16700
16701
16702 archive_cmds_need_lc=no
16703 hardcode_direct=no
16704 hardcode_automatic=yes
16705 hardcode_shlibpath_var=unsupported
16706 if test "$lt_cv_ld_force_load" = "yes"; then
16707 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\"`'
16708 else
16709 whole_archive_flag_spec=''
16710 fi
16711 link_all_deplibs=yes
16712 allow_undefined_flag="$_lt_dar_allow_undefined"
16713 case $cc_basename in
16714 ifort*) _lt_dar_can_shared=yes ;;
16715 *) _lt_dar_can_shared=$GCC ;;
16716 esac
16717 if test "$_lt_dar_can_shared" = "yes"; then
16718 output_verbose_link_cmd=func_echo_all
16719 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16720 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16721 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}"
16722 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}"
16723
16724 else
16725 ld_shlibs=no
16726 fi
16727
16728 ;;
16729
16730 dgux*)
16731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16732 hardcode_libdir_flag_spec='-L$libdir'
16733 hardcode_shlibpath_var=no
16734 ;;
16735
16736 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16737 # support. Future versions do this automatically, but an explicit c++rt0.o
16738 # does not break anything, and helps significantly (at the cost of a little
16739 # extra space).
16740 freebsd2.2*)
16741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16742 hardcode_libdir_flag_spec='-R$libdir'
16743 hardcode_direct=yes
16744 hardcode_shlibpath_var=no
16745 ;;
16746
16747 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16748 freebsd2.*)
16749 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16750 hardcode_direct=yes
16751 hardcode_minus_L=yes
16752 hardcode_shlibpath_var=no
16753 ;;
16754
16755 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16756 freebsd* | dragonfly*)
16757 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16758 hardcode_libdir_flag_spec='-R$libdir'
16759 hardcode_direct=yes
16760 hardcode_shlibpath_var=no
16761 ;;
16762
16763 hpux9*)
16764 if test "$GCC" = yes; then
16765 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'
16766 else
16767 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'
16768 fi
16769 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16770 hardcode_libdir_separator=:
16771 hardcode_direct=yes
16772
16773 # hardcode_minus_L: Not really in the search PATH,
16774 # but as the default location of the library.
16775 hardcode_minus_L=yes
16776 export_dynamic_flag_spec='${wl}-E'
16777 ;;
16778
16779 hpux10*)
16780 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16781 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16782 else
16783 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16784 fi
16785 if test "$with_gnu_ld" = no; then
16786 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16787 hardcode_libdir_flag_spec_ld='+b $libdir'
16788 hardcode_libdir_separator=:
16789 hardcode_direct=yes
16790 hardcode_direct_absolute=yes
16791 export_dynamic_flag_spec='${wl}-E'
16792 # hardcode_minus_L: Not really in the search PATH,
16793 # but as the default location of the library.
16794 hardcode_minus_L=yes
16795 fi
16796 ;;
16797
16798 hpux11*)
16799 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16800 case $host_cpu in
16801 hppa*64*)
16802 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16803 ;;
16804 ia64*)
16805 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16806 ;;
16807 *)
16808 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16809 ;;
16810 esac
16811 else
16812 case $host_cpu in
16813 hppa*64*)
16814 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16815 ;;
16816 ia64*)
16817 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16818 ;;
16819 *)
16820
16821 # Older versions of the 11.00 compiler do not understand -b yet
16822 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16824 $as_echo_n "checking if $CC understands -b... " >&6; }
16825 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16826 $as_echo_n "(cached) " >&6
16827 else
16828 lt_cv_prog_compiler__b=no
16829 save_LDFLAGS="$LDFLAGS"
16830 LDFLAGS="$LDFLAGS -b"
16831 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16832 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16833 # The linker can only warn and ignore the option if not recognized
16834 # So say no if there are warnings
16835 if test -s conftest.err; then
16836 # Append any errors to the config.log.
16837 cat conftest.err 1>&5
16838 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16840 if diff conftest.exp conftest.er2 >/dev/null; then
16841 lt_cv_prog_compiler__b=yes
16842 fi
16843 else
16844 lt_cv_prog_compiler__b=yes
16845 fi
16846 fi
16847 $RM -r conftest*
16848 LDFLAGS="$save_LDFLAGS"
16849
16850 fi
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16852 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16853
16854 if test x"$lt_cv_prog_compiler__b" = xyes; then
16855 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16856 else
16857 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16858 fi
16859
16860 ;;
16861 esac
16862 fi
16863 if test "$with_gnu_ld" = no; then
16864 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16865 hardcode_libdir_separator=:
16866
16867 case $host_cpu in
16868 hppa*64*|ia64*)
16869 hardcode_direct=no
16870 hardcode_shlibpath_var=no
16871 ;;
16872 *)
16873 hardcode_direct=yes
16874 hardcode_direct_absolute=yes
16875 export_dynamic_flag_spec='${wl}-E'
16876
16877 # hardcode_minus_L: Not really in the search PATH,
16878 # but as the default location of the library.
16879 hardcode_minus_L=yes
16880 ;;
16881 esac
16882 fi
16883 ;;
16884
16885 irix5* | irix6* | nonstopux*)
16886 if test "$GCC" = yes; then
16887 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'
16888 # Try to use the -exported_symbol ld option, if it does not
16889 # work, assume that -exports_file does not work either and
16890 # implicitly export all symbols.
16891 save_LDFLAGS="$LDFLAGS"
16892 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16894 /* end confdefs.h. */
16895 int foo(void) {}
16896 _ACEOF
16897 if ac_fn_c_try_link "$LINENO"; then :
16898 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'
16899
16900 fi
16901 rm -f core conftest.err conftest.$ac_objext \
16902 conftest$ac_exeext conftest.$ac_ext
16903 LDFLAGS="$save_LDFLAGS"
16904 else
16905 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'
16906 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'
16907 fi
16908 archive_cmds_need_lc='no'
16909 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16910 hardcode_libdir_separator=:
16911 inherit_rpath=yes
16912 link_all_deplibs=yes
16913 ;;
16914
16915 netbsd*)
16916 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16917 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16918 else
16919 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16920 fi
16921 hardcode_libdir_flag_spec='-R$libdir'
16922 hardcode_direct=yes
16923 hardcode_shlibpath_var=no
16924 ;;
16925
16926 newsos6)
16927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16928 hardcode_direct=yes
16929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16930 hardcode_libdir_separator=:
16931 hardcode_shlibpath_var=no
16932 ;;
16933
16934 *nto* | *qnx*)
16935 ;;
16936
16937 openbsd*)
16938 if test -f /usr/libexec/ld.so; then
16939 hardcode_direct=yes
16940 hardcode_shlibpath_var=no
16941 hardcode_direct_absolute=yes
16942 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16943 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16944 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16945 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16946 export_dynamic_flag_spec='${wl}-E'
16947 else
16948 case $host_os in
16949 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16950 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16951 hardcode_libdir_flag_spec='-R$libdir'
16952 ;;
16953 *)
16954 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16955 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16956 ;;
16957 esac
16958 fi
16959 else
16960 ld_shlibs=no
16961 fi
16962 ;;
16963
16964 os2*)
16965 hardcode_libdir_flag_spec='-L$libdir'
16966 hardcode_minus_L=yes
16967 allow_undefined_flag=unsupported
16968 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'
16969 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16970 ;;
16971
16972 osf3*)
16973 if test "$GCC" = yes; then
16974 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16975 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'
16976 else
16977 allow_undefined_flag=' -expect_unresolved \*'
16978 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'
16979 fi
16980 archive_cmds_need_lc='no'
16981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16982 hardcode_libdir_separator=:
16983 ;;
16984
16985 osf4* | osf5*) # as osf3* with the addition of -msym flag
16986 if test "$GCC" = yes; then
16987 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16988 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'
16989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16990 else
16991 allow_undefined_flag=' -expect_unresolved \*'
16992 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'
16993 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~
16994 $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'
16995
16996 # Both c and cxx compiler support -rpath directly
16997 hardcode_libdir_flag_spec='-rpath $libdir'
16998 fi
16999 archive_cmds_need_lc='no'
17000 hardcode_libdir_separator=:
17001 ;;
17002
17003 solaris*)
17004 no_undefined_flag=' -z defs'
17005 if test "$GCC" = yes; then
17006 wlarc='${wl}'
17007 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17008 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17009 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17010 else
17011 case `$CC -V 2>&1` in
17012 *"Compilers 5.0"*)
17013 wlarc=''
17014 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17015 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17016 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17017 ;;
17018 *)
17019 wlarc='${wl}'
17020 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17021 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17022 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17023 ;;
17024 esac
17025 fi
17026 hardcode_libdir_flag_spec='-R$libdir'
17027 hardcode_shlibpath_var=no
17028 case $host_os in
17029 solaris2.[0-5] | solaris2.[0-5].*) ;;
17030 *)
17031 # The compiler driver will combine and reorder linker options,
17032 # but understands `-z linker_flag'. GCC discards it without `$wl',
17033 # but is careful enough not to reorder.
17034 # Supported since Solaris 2.6 (maybe 2.5.1?)
17035 if test "$GCC" = yes; then
17036 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17037 else
17038 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17039 fi
17040 ;;
17041 esac
17042 link_all_deplibs=yes
17043 ;;
17044
17045 sunos4*)
17046 if test "x$host_vendor" = xsequent; then
17047 # Use $CC to link under sequent, because it throws in some extra .o
17048 # files that make .init and .fini sections work.
17049 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17050 else
17051 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17052 fi
17053 hardcode_libdir_flag_spec='-L$libdir'
17054 hardcode_direct=yes
17055 hardcode_minus_L=yes
17056 hardcode_shlibpath_var=no
17057 ;;
17058
17059 sysv4)
17060 case $host_vendor in
17061 sni)
17062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17063 hardcode_direct=yes # is this really true???
17064 ;;
17065 siemens)
17066 ## LD is ld it makes a PLAMLIB
17067 ## CC just makes a GrossModule.
17068 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17069 reload_cmds='$CC -r -o $output$reload_objs'
17070 hardcode_direct=no
17071 ;;
17072 motorola)
17073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17074 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17075 ;;
17076 esac
17077 runpath_var='LD_RUN_PATH'
17078 hardcode_shlibpath_var=no
17079 ;;
17080
17081 sysv4.3*)
17082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17083 hardcode_shlibpath_var=no
17084 export_dynamic_flag_spec='-Bexport'
17085 ;;
17086
17087 sysv4*MP*)
17088 if test -d /usr/nec; then
17089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17090 hardcode_shlibpath_var=no
17091 runpath_var=LD_RUN_PATH
17092 hardcode_runpath_var=yes
17093 ld_shlibs=yes
17094 fi
17095 ;;
17096
17097 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17098 no_undefined_flag='${wl}-z,text'
17099 archive_cmds_need_lc=no
17100 hardcode_shlibpath_var=no
17101 runpath_var='LD_RUN_PATH'
17102
17103 if test "$GCC" = yes; then
17104 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17105 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17106 else
17107 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17108 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17109 fi
17110 ;;
17111
17112 sysv5* | sco3.2v5* | sco5v6*)
17113 # Note: We can NOT use -z defs as we might desire, because we do not
17114 # link with -lc, and that would cause any symbols used from libc to
17115 # always be unresolved, which means just about no library would
17116 # ever link correctly. If we're not using GNU ld we use -z text
17117 # though, which does catch some bad symbols but isn't as heavy-handed
17118 # as -z defs.
17119 no_undefined_flag='${wl}-z,text'
17120 allow_undefined_flag='${wl}-z,nodefs'
17121 archive_cmds_need_lc=no
17122 hardcode_shlibpath_var=no
17123 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17124 hardcode_libdir_separator=':'
17125 link_all_deplibs=yes
17126 export_dynamic_flag_spec='${wl}-Bexport'
17127 runpath_var='LD_RUN_PATH'
17128
17129 if test "$GCC" = yes; then
17130 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17131 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17132 else
17133 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17134 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17135 fi
17136 ;;
17137
17138 uts4*)
17139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17140 hardcode_libdir_flag_spec='-L$libdir'
17141 hardcode_shlibpath_var=no
17142 ;;
17143
17144 *)
17145 ld_shlibs=no
17146 ;;
17147 esac
17148
17149 if test x$host_vendor = xsni; then
17150 case $host in
17151 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17152 export_dynamic_flag_spec='${wl}-Blargedynsym'
17153 ;;
17154 esac
17155 fi
17156 fi
17157
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17159 $as_echo "$ld_shlibs" >&6; }
17160 test "$ld_shlibs" = no && can_build_shared=no
17161
17162 with_gnu_ld=$with_gnu_ld
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178 #
17179 # Do we need to explicitly link libc?
17180 #
17181 case "x$archive_cmds_need_lc" in
17182 x|xyes)
17183 # Assume -lc should be added
17184 archive_cmds_need_lc=yes
17185
17186 if test "$enable_shared" = yes && test "$GCC" = yes; then
17187 case $archive_cmds in
17188 *'~'*)
17189 # FIXME: we may have to deal with multi-command sequences.
17190 ;;
17191 '$CC '*)
17192 # Test whether the compiler implicitly links with -lc since on some
17193 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17194 # to ld, don't add -lc before -lgcc.
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17196 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17197 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17198 $as_echo_n "(cached) " >&6
17199 else
17200 $RM conftest*
17201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17202
17203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17204 (eval $ac_compile) 2>&5
17205 ac_status=$?
17206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17207 test $ac_status = 0; } 2>conftest.err; then
17208 soname=conftest
17209 lib=conftest
17210 libobjs=conftest.$ac_objext
17211 deplibs=
17212 wl=$lt_prog_compiler_wl
17213 pic_flag=$lt_prog_compiler_pic
17214 compiler_flags=-v
17215 linker_flags=-v
17216 verstring=
17217 output_objdir=.
17218 libname=conftest
17219 lt_save_allow_undefined_flag=$allow_undefined_flag
17220 allow_undefined_flag=
17221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17222 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17223 ac_status=$?
17224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17225 test $ac_status = 0; }
17226 then
17227 lt_cv_archive_cmds_need_lc=no
17228 else
17229 lt_cv_archive_cmds_need_lc=yes
17230 fi
17231 allow_undefined_flag=$lt_save_allow_undefined_flag
17232 else
17233 cat conftest.err 1>&5
17234 fi
17235 $RM conftest*
17236
17237 fi
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17239 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17240 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17241 ;;
17242 esac
17243 fi
17244 ;;
17245 esac
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
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17404 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17405
17406 if test "$GCC" = yes; then
17407 case $host_os in
17408 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17409 *) lt_awk_arg="/^libraries:/" ;;
17410 esac
17411 case $host_os in
17412 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17413 *) lt_sed_strip_eq="s,=/,/,g" ;;
17414 esac
17415 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17416 case $lt_search_path_spec in
17417 *\;*)
17418 # if the path contains ";" then we assume it to be the separator
17419 # otherwise default to the standard path separator (i.e. ":") - it is
17420 # assumed that no part of a normal pathname contains ";" but that should
17421 # okay in the real world where ";" in dirpaths is itself problematic.
17422 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17423 ;;
17424 *)
17425 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17426 ;;
17427 esac
17428 # Ok, now we have the path, separated by spaces, we can step through it
17429 # and add multilib dir if necessary.
17430 lt_tmp_lt_search_path_spec=
17431 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17432 for lt_sys_path in $lt_search_path_spec; do
17433 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17434 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17435 else
17436 test -d "$lt_sys_path" && \
17437 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17438 fi
17439 done
17440 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17441 BEGIN {RS=" "; FS="/|\n";} {
17442 lt_foo="";
17443 lt_count=0;
17444 for (lt_i = NF; lt_i > 0; lt_i--) {
17445 if ($lt_i != "" && $lt_i != ".") {
17446 if ($lt_i == "..") {
17447 lt_count++;
17448 } else {
17449 if (lt_count == 0) {
17450 lt_foo="/" $lt_i lt_foo;
17451 } else {
17452 lt_count--;
17453 }
17454 }
17455 }
17456 }
17457 if (lt_foo != "") { lt_freq[lt_foo]++; }
17458 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17459 }'`
17460 # AWK program above erroneously prepends '/' to C:/dos/paths
17461 # for these hosts.
17462 case $host_os in
17463 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17464 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17465 esac
17466 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17467 else
17468 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17469 fi
17470 library_names_spec=
17471 libname_spec='lib$name'
17472 soname_spec=
17473 shrext_cmds=".so"
17474 postinstall_cmds=
17475 postuninstall_cmds=
17476 finish_cmds=
17477 finish_eval=
17478 shlibpath_var=
17479 shlibpath_overrides_runpath=unknown
17480 version_type=none
17481 dynamic_linker="$host_os ld.so"
17482 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17483 need_lib_prefix=unknown
17484 hardcode_into_libs=no
17485
17486 # when you set need_version to no, make sure it does not cause -set_version
17487 # flags to be left without arguments
17488 need_version=unknown
17489
17490 case $host_os in
17491 aix3*)
17492 version_type=linux
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17494 shlibpath_var=LIBPATH
17495
17496 # AIX 3 has no versioning support, so we append a major version to the name.
17497 soname_spec='${libname}${release}${shared_ext}$major'
17498 ;;
17499
17500 aix[4-9]*)
17501 version_type=linux
17502 need_lib_prefix=no
17503 need_version=no
17504 hardcode_into_libs=yes
17505 if test "$host_cpu" = ia64; then
17506 # AIX 5 supports IA64
17507 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17508 shlibpath_var=LD_LIBRARY_PATH
17509 else
17510 # With GCC up to 2.95.x, collect2 would create an import file
17511 # for dependence libraries. The import file would start with
17512 # the line `#! .'. This would cause the generated library to
17513 # depend on `.', always an invalid library. This was fixed in
17514 # development snapshots of GCC prior to 3.0.
17515 case $host_os in
17516 aix4 | aix4.[01] | aix4.[01].*)
17517 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17518 echo ' yes '
17519 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17520 :
17521 else
17522 can_build_shared=no
17523 fi
17524 ;;
17525 esac
17526 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17527 # soname into executable. Probably we can add versioning support to
17528 # collect2, so additional links can be useful in future.
17529 if test "$aix_use_runtimelinking" = yes; then
17530 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17531 # instead of lib<name>.a to let people know that these are not
17532 # typical AIX shared libraries.
17533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17534 else
17535 # We preserve .a as extension for shared libraries through AIX4.2
17536 # and later when we are not doing run time linking.
17537 library_names_spec='${libname}${release}.a $libname.a'
17538 soname_spec='${libname}${release}${shared_ext}$major'
17539 fi
17540 shlibpath_var=LIBPATH
17541 fi
17542 ;;
17543
17544 amigaos*)
17545 case $host_cpu in
17546 powerpc)
17547 # Since July 2007 AmigaOS4 officially supports .so libraries.
17548 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17550 ;;
17551 m68k)
17552 library_names_spec='$libname.ixlibrary $libname.a'
17553 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17554 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'
17555 ;;
17556 esac
17557 ;;
17558
17559 beos*)
17560 library_names_spec='${libname}${shared_ext}'
17561 dynamic_linker="$host_os ld.so"
17562 shlibpath_var=LIBRARY_PATH
17563 ;;
17564
17565 bsdi[45]*)
17566 version_type=linux
17567 need_version=no
17568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17569 soname_spec='${libname}${release}${shared_ext}$major'
17570 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17571 shlibpath_var=LD_LIBRARY_PATH
17572 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17573 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17574 # the default ld.so.conf also contains /usr/contrib/lib and
17575 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17576 # libtool to hard-code these into programs
17577 ;;
17578
17579 cygwin* | mingw* | pw32* | cegcc*)
17580 version_type=windows
17581 shrext_cmds=".dll"
17582 need_version=no
17583 need_lib_prefix=no
17584
17585 case $GCC,$host_os in
17586 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17587 library_names_spec='$libname.dll.a'
17588 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17589 postinstall_cmds='base_file=`basename \${file}`~
17590 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17591 dldir=$destdir/`dirname \$dlpath`~
17592 test -d \$dldir || mkdir -p \$dldir~
17593 $install_prog $dir/$dlname \$dldir/$dlname~
17594 chmod a+x \$dldir/$dlname~
17595 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17596 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17597 fi'
17598 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17599 dlpath=$dir/\$dldll~
17600 $RM \$dlpath'
17601 shlibpath_overrides_runpath=yes
17602
17603 case $host_os in
17604 cygwin*)
17605 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17606 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17607
17608 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17609 ;;
17610 mingw* | cegcc*)
17611 # MinGW DLLs use traditional 'lib' prefix
17612 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17613 ;;
17614 pw32*)
17615 # pw32 DLLs use 'pw' prefix rather than 'lib'
17616 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17617 ;;
17618 esac
17619 ;;
17620
17621 *)
17622 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17623 ;;
17624 esac
17625 dynamic_linker='Win32 ld.exe'
17626 # FIXME: first we should search . and the directory the executable is in
17627 shlibpath_var=PATH
17628 ;;
17629
17630 darwin* | rhapsody*)
17631 dynamic_linker="$host_os dyld"
17632 version_type=darwin
17633 need_lib_prefix=no
17634 need_version=no
17635 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17636 soname_spec='${libname}${release}${major}$shared_ext'
17637 shlibpath_overrides_runpath=yes
17638 shlibpath_var=DYLD_LIBRARY_PATH
17639 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17640
17641 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17642 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17643 ;;
17644
17645 dgux*)
17646 version_type=linux
17647 need_lib_prefix=no
17648 need_version=no
17649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17650 soname_spec='${libname}${release}${shared_ext}$major'
17651 shlibpath_var=LD_LIBRARY_PATH
17652 ;;
17653
17654 freebsd* | dragonfly*)
17655 # DragonFly does not have aout. When/if they implement a new
17656 # versioning mechanism, adjust this.
17657 if test -x /usr/bin/objformat; then
17658 objformat=`/usr/bin/objformat`
17659 else
17660 case $host_os in
17661 freebsd[23].*) objformat=aout ;;
17662 *) objformat=elf ;;
17663 esac
17664 fi
17665 version_type=freebsd-$objformat
17666 case $version_type in
17667 freebsd-elf*)
17668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17669 need_version=no
17670 need_lib_prefix=no
17671 ;;
17672 freebsd-*)
17673 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17674 need_version=yes
17675 ;;
17676 esac
17677 shlibpath_var=LD_LIBRARY_PATH
17678 case $host_os in
17679 freebsd2.*)
17680 shlibpath_overrides_runpath=yes
17681 ;;
17682 freebsd3.[01]* | freebsdelf3.[01]*)
17683 shlibpath_overrides_runpath=yes
17684 hardcode_into_libs=yes
17685 ;;
17686 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17687 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17688 shlibpath_overrides_runpath=no
17689 hardcode_into_libs=yes
17690 ;;
17691 *) # from 4.6 on, and DragonFly
17692 shlibpath_overrides_runpath=yes
17693 hardcode_into_libs=yes
17694 ;;
17695 esac
17696 ;;
17697
17698 gnu*)
17699 version_type=linux
17700 need_lib_prefix=no
17701 need_version=no
17702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17703 soname_spec='${libname}${release}${shared_ext}$major'
17704 shlibpath_var=LD_LIBRARY_PATH
17705 hardcode_into_libs=yes
17706 ;;
17707
17708 haiku*)
17709 version_type=linux
17710 need_lib_prefix=no
17711 need_version=no
17712 dynamic_linker="$host_os runtime_loader"
17713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17714 soname_spec='${libname}${release}${shared_ext}$major'
17715 shlibpath_var=LIBRARY_PATH
17716 shlibpath_overrides_runpath=yes
17717 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17718 hardcode_into_libs=yes
17719 ;;
17720
17721 hpux9* | hpux10* | hpux11*)
17722 # Give a soname corresponding to the major version so that dld.sl refuses to
17723 # link against other versions.
17724 version_type=sunos
17725 need_lib_prefix=no
17726 need_version=no
17727 case $host_cpu in
17728 ia64*)
17729 shrext_cmds='.so'
17730 hardcode_into_libs=yes
17731 dynamic_linker="$host_os dld.so"
17732 shlibpath_var=LD_LIBRARY_PATH
17733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17735 soname_spec='${libname}${release}${shared_ext}$major'
17736 if test "X$HPUX_IA64_MODE" = X32; then
17737 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17738 else
17739 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17740 fi
17741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17742 ;;
17743 hppa*64*)
17744 shrext_cmds='.sl'
17745 hardcode_into_libs=yes
17746 dynamic_linker="$host_os dld.sl"
17747 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17748 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17750 soname_spec='${libname}${release}${shared_ext}$major'
17751 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17753 ;;
17754 *)
17755 shrext_cmds='.sl'
17756 dynamic_linker="$host_os dld.sl"
17757 shlibpath_var=SHLIB_PATH
17758 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17760 soname_spec='${libname}${release}${shared_ext}$major'
17761 ;;
17762 esac
17763 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17764 postinstall_cmds='chmod 555 $lib'
17765 # or fails outright, so override atomically:
17766 install_override_mode=555
17767 ;;
17768
17769 interix[3-9]*)
17770 version_type=linux
17771 need_lib_prefix=no
17772 need_version=no
17773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17774 soname_spec='${libname}${release}${shared_ext}$major'
17775 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17776 shlibpath_var=LD_LIBRARY_PATH
17777 shlibpath_overrides_runpath=no
17778 hardcode_into_libs=yes
17779 ;;
17780
17781 irix5* | irix6* | nonstopux*)
17782 case $host_os in
17783 nonstopux*) version_type=nonstopux ;;
17784 *)
17785 if test "$lt_cv_prog_gnu_ld" = yes; then
17786 version_type=linux
17787 else
17788 version_type=irix
17789 fi ;;
17790 esac
17791 need_lib_prefix=no
17792 need_version=no
17793 soname_spec='${libname}${release}${shared_ext}$major'
17794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17795 case $host_os in
17796 irix5* | nonstopux*)
17797 libsuff= shlibsuff=
17798 ;;
17799 *)
17800 case $LD in # libtool.m4 will add one of these switches to LD
17801 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17802 libsuff= shlibsuff= libmagic=32-bit;;
17803 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17804 libsuff=32 shlibsuff=N32 libmagic=N32;;
17805 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17806 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17807 *) libsuff= shlibsuff= libmagic=never-match;;
17808 esac
17809 ;;
17810 esac
17811 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17812 shlibpath_overrides_runpath=no
17813 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17814 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17815 hardcode_into_libs=yes
17816 ;;
17817
17818 # No shared lib support for Linux oldld, aout, or coff.
17819 linux*oldld* | linux*aout* | linux*coff*)
17820 dynamic_linker=no
17821 ;;
17822
17823 # This must be Linux ELF.
17824 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17825 version_type=linux
17826 need_lib_prefix=no
17827 need_version=no
17828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17829 soname_spec='${libname}${release}${shared_ext}$major'
17830 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17831 shlibpath_var=LD_LIBRARY_PATH
17832 shlibpath_overrides_runpath=no
17833
17834 # Some binutils ld are patched to set DT_RUNPATH
17835 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17836 $as_echo_n "(cached) " >&6
17837 else
17838 lt_cv_shlibpath_overrides_runpath=no
17839 save_LDFLAGS=$LDFLAGS
17840 save_libdir=$libdir
17841 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17842 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17844 /* end confdefs.h. */
17845
17846 int
17847 main ()
17848 {
17849
17850 ;
17851 return 0;
17852 }
17853 _ACEOF
17854 if ac_fn_c_try_link "$LINENO"; then :
17855 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17856 lt_cv_shlibpath_overrides_runpath=yes
17857 fi
17858 fi
17859 rm -f core conftest.err conftest.$ac_objext \
17860 conftest$ac_exeext conftest.$ac_ext
17861 LDFLAGS=$save_LDFLAGS
17862 libdir=$save_libdir
17863
17864 fi
17865
17866 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17867
17868 # This implies no fast_install, which is unacceptable.
17869 # Some rework will be needed to allow for fast_install
17870 # before this can be enabled.
17871 hardcode_into_libs=yes
17872
17873 # Append ld.so.conf contents to the search path
17874 if test -f /etc/ld.so.conf; then
17875 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' ' '`
17876 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17877 fi
17878
17879 # We used to test for /lib/ld.so.1 and disable shared libraries on
17880 # powerpc, because MkLinux only supported shared libraries with the
17881 # GNU dynamic linker. Since this was broken with cross compilers,
17882 # most powerpc-linux boxes support dynamic linking these days and
17883 # people can always --disable-shared, the test was removed, and we
17884 # assume the GNU/Linux dynamic linker is in use.
17885 dynamic_linker='GNU/Linux ld.so'
17886 ;;
17887
17888 netbsd*)
17889 version_type=sunos
17890 need_lib_prefix=no
17891 need_version=no
17892 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17895 dynamic_linker='NetBSD (a.out) ld.so'
17896 else
17897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17898 soname_spec='${libname}${release}${shared_ext}$major'
17899 dynamic_linker='NetBSD ld.elf_so'
17900 fi
17901 shlibpath_var=LD_LIBRARY_PATH
17902 shlibpath_overrides_runpath=yes
17903 hardcode_into_libs=yes
17904 ;;
17905
17906 newsos6)
17907 version_type=linux
17908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17909 shlibpath_var=LD_LIBRARY_PATH
17910 shlibpath_overrides_runpath=yes
17911 ;;
17912
17913 *nto* | *qnx*)
17914 version_type=qnx
17915 need_lib_prefix=no
17916 need_version=no
17917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17918 soname_spec='${libname}${release}${shared_ext}$major'
17919 shlibpath_var=LD_LIBRARY_PATH
17920 shlibpath_overrides_runpath=no
17921 hardcode_into_libs=yes
17922 dynamic_linker='ldqnx.so'
17923 ;;
17924
17925 openbsd*)
17926 version_type=sunos
17927 sys_lib_dlsearch_path_spec="/usr/lib"
17928 need_lib_prefix=no
17929 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17930 case $host_os in
17931 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17932 *) need_version=no ;;
17933 esac
17934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17936 shlibpath_var=LD_LIBRARY_PATH
17937 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17938 case $host_os in
17939 openbsd2.[89] | openbsd2.[89].*)
17940 shlibpath_overrides_runpath=no
17941 ;;
17942 *)
17943 shlibpath_overrides_runpath=yes
17944 ;;
17945 esac
17946 else
17947 shlibpath_overrides_runpath=yes
17948 fi
17949 ;;
17950
17951 os2*)
17952 libname_spec='$name'
17953 shrext_cmds=".dll"
17954 need_lib_prefix=no
17955 library_names_spec='$libname${shared_ext} $libname.a'
17956 dynamic_linker='OS/2 ld.exe'
17957 shlibpath_var=LIBPATH
17958 ;;
17959
17960 osf3* | osf4* | osf5*)
17961 version_type=osf
17962 need_lib_prefix=no
17963 need_version=no
17964 soname_spec='${libname}${release}${shared_ext}$major'
17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17966 shlibpath_var=LD_LIBRARY_PATH
17967 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17968 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17969 ;;
17970
17971 rdos*)
17972 dynamic_linker=no
17973 ;;
17974
17975 solaris*)
17976 version_type=linux
17977 need_lib_prefix=no
17978 need_version=no
17979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17980 soname_spec='${libname}${release}${shared_ext}$major'
17981 shlibpath_var=LD_LIBRARY_PATH
17982 shlibpath_overrides_runpath=yes
17983 hardcode_into_libs=yes
17984 # ldd complains unless libraries are executable
17985 postinstall_cmds='chmod +x $lib'
17986 ;;
17987
17988 sunos4*)
17989 version_type=sunos
17990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17991 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17992 shlibpath_var=LD_LIBRARY_PATH
17993 shlibpath_overrides_runpath=yes
17994 if test "$with_gnu_ld" = yes; then
17995 need_lib_prefix=no
17996 fi
17997 need_version=yes
17998 ;;
17999
18000 sysv4 | sysv4.3*)
18001 version_type=linux
18002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18003 soname_spec='${libname}${release}${shared_ext}$major'
18004 shlibpath_var=LD_LIBRARY_PATH
18005 case $host_vendor in
18006 sni)
18007 shlibpath_overrides_runpath=no
18008 need_lib_prefix=no
18009 runpath_var=LD_RUN_PATH
18010 ;;
18011 siemens)
18012 need_lib_prefix=no
18013 ;;
18014 motorola)
18015 need_lib_prefix=no
18016 need_version=no
18017 shlibpath_overrides_runpath=no
18018 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18019 ;;
18020 esac
18021 ;;
18022
18023 sysv4*MP*)
18024 if test -d /usr/nec ;then
18025 version_type=linux
18026 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18027 soname_spec='$libname${shared_ext}.$major'
18028 shlibpath_var=LD_LIBRARY_PATH
18029 fi
18030 ;;
18031
18032 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18033 version_type=freebsd-elf
18034 need_lib_prefix=no
18035 need_version=no
18036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18037 soname_spec='${libname}${release}${shared_ext}$major'
18038 shlibpath_var=LD_LIBRARY_PATH
18039 shlibpath_overrides_runpath=yes
18040 hardcode_into_libs=yes
18041 if test "$with_gnu_ld" = yes; then
18042 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18043 else
18044 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18045 case $host_os in
18046 sco3.2v5*)
18047 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18048 ;;
18049 esac
18050 fi
18051 sys_lib_dlsearch_path_spec='/usr/lib'
18052 ;;
18053
18054 tpf*)
18055 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18056 version_type=linux
18057 need_lib_prefix=no
18058 need_version=no
18059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18060 shlibpath_var=LD_LIBRARY_PATH
18061 shlibpath_overrides_runpath=no
18062 hardcode_into_libs=yes
18063 ;;
18064
18065 uts4*)
18066 version_type=linux
18067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18068 soname_spec='${libname}${release}${shared_ext}$major'
18069 shlibpath_var=LD_LIBRARY_PATH
18070 ;;
18071
18072 *)
18073 dynamic_linker=no
18074 ;;
18075 esac
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18077 $as_echo "$dynamic_linker" >&6; }
18078 test "$dynamic_linker" = no && can_build_shared=no
18079
18080 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18081 if test "$GCC" = yes; then
18082 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18083 fi
18084
18085 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18086 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18087 fi
18088 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18089 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18090 fi
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
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18184 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18185 hardcode_action=
18186 if test -n "$hardcode_libdir_flag_spec" ||
18187 test -n "$runpath_var" ||
18188 test "X$hardcode_automatic" = "Xyes" ; then
18189
18190 # We can hardcode non-existent directories.
18191 if test "$hardcode_direct" != no &&
18192 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18193 # have to relink, otherwise we might link with an installed library
18194 # when we should be linking with a yet-to-be-installed one
18195 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18196 test "$hardcode_minus_L" != no; then
18197 # Linking always hardcodes the temporary library directory.
18198 hardcode_action=relink
18199 else
18200 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18201 hardcode_action=immediate
18202 fi
18203 else
18204 # We cannot hardcode anything, or else we can only hardcode existing
18205 # directories.
18206 hardcode_action=unsupported
18207 fi
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18209 $as_echo "$hardcode_action" >&6; }
18210
18211 if test "$hardcode_action" = relink ||
18212 test "$inherit_rpath" = yes; then
18213 # Fast installation is not supported
18214 enable_fast_install=no
18215 elif test "$shlibpath_overrides_runpath" = yes ||
18216 test "$enable_shared" = no; then
18217 # Fast installation is not necessary
18218 enable_fast_install=needless
18219 fi
18220
18221
18222
18223
18224
18225
18226 if test "x$enable_dlopen" != xyes; then
18227 enable_dlopen=unknown
18228 enable_dlopen_self=unknown
18229 enable_dlopen_self_static=unknown
18230 else
18231 lt_cv_dlopen=no
18232 lt_cv_dlopen_libs=
18233
18234 case $host_os in
18235 beos*)
18236 lt_cv_dlopen="load_add_on"
18237 lt_cv_dlopen_libs=
18238 lt_cv_dlopen_self=yes
18239 ;;
18240
18241 mingw* | pw32* | cegcc*)
18242 lt_cv_dlopen="LoadLibrary"
18243 lt_cv_dlopen_libs=
18244 ;;
18245
18246 cygwin*)
18247 lt_cv_dlopen="dlopen"
18248 lt_cv_dlopen_libs=
18249 ;;
18250
18251 darwin*)
18252 # if libdl is installed we need to link against it
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18254 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18255 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18256 $as_echo_n "(cached) " >&6
18257 else
18258 ac_check_lib_save_LIBS=$LIBS
18259 LIBS="-ldl $LIBS"
18260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18261 /* end confdefs.h. */
18262
18263 /* Override any GCC internal prototype to avoid an error.
18264 Use char because int might match the return type of a GCC
18265 builtin and then its argument prototype would still apply. */
18266 #ifdef __cplusplus
18267 extern "C"
18268 #endif
18269 char dlopen ();
18270 int
18271 main ()
18272 {
18273 return dlopen ();
18274 ;
18275 return 0;
18276 }
18277 _ACEOF
18278 if ac_fn_c_try_link "$LINENO"; then :
18279 ac_cv_lib_dl_dlopen=yes
18280 else
18281 ac_cv_lib_dl_dlopen=no
18282 fi
18283 rm -f core conftest.err conftest.$ac_objext \
18284 conftest$ac_exeext conftest.$ac_ext
18285 LIBS=$ac_check_lib_save_LIBS
18286 fi
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18288 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18289 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18290 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18291 else
18292
18293 lt_cv_dlopen="dyld"
18294 lt_cv_dlopen_libs=
18295 lt_cv_dlopen_self=yes
18296
18297 fi
18298
18299 ;;
18300
18301 *)
18302 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18303 if test "x$ac_cv_func_shl_load" = x""yes; then :
18304 lt_cv_dlopen="shl_load"
18305 else
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18307 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18308 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18309 $as_echo_n "(cached) " >&6
18310 else
18311 ac_check_lib_save_LIBS=$LIBS
18312 LIBS="-ldld $LIBS"
18313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18314 /* end confdefs.h. */
18315
18316 /* Override any GCC internal prototype to avoid an error.
18317 Use char because int might match the return type of a GCC
18318 builtin and then its argument prototype would still apply. */
18319 #ifdef __cplusplus
18320 extern "C"
18321 #endif
18322 char shl_load ();
18323 int
18324 main ()
18325 {
18326 return shl_load ();
18327 ;
18328 return 0;
18329 }
18330 _ACEOF
18331 if ac_fn_c_try_link "$LINENO"; then :
18332 ac_cv_lib_dld_shl_load=yes
18333 else
18334 ac_cv_lib_dld_shl_load=no
18335 fi
18336 rm -f core conftest.err conftest.$ac_objext \
18337 conftest$ac_exeext conftest.$ac_ext
18338 LIBS=$ac_check_lib_save_LIBS
18339 fi
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18341 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18342 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18343 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18344 else
18345 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18346 if test "x$ac_cv_func_dlopen" = x""yes; then :
18347 lt_cv_dlopen="dlopen"
18348 else
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18350 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18351 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18352 $as_echo_n "(cached) " >&6
18353 else
18354 ac_check_lib_save_LIBS=$LIBS
18355 LIBS="-ldl $LIBS"
18356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357 /* end confdefs.h. */
18358
18359 /* Override any GCC internal prototype to avoid an error.
18360 Use char because int might match the return type of a GCC
18361 builtin and then its argument prototype would still apply. */
18362 #ifdef __cplusplus
18363 extern "C"
18364 #endif
18365 char dlopen ();
18366 int
18367 main ()
18368 {
18369 return dlopen ();
18370 ;
18371 return 0;
18372 }
18373 _ACEOF
18374 if ac_fn_c_try_link "$LINENO"; then :
18375 ac_cv_lib_dl_dlopen=yes
18376 else
18377 ac_cv_lib_dl_dlopen=no
18378 fi
18379 rm -f core conftest.err conftest.$ac_objext \
18380 conftest$ac_exeext conftest.$ac_ext
18381 LIBS=$ac_check_lib_save_LIBS
18382 fi
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18384 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18385 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18386 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18387 else
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18389 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18390 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18391 $as_echo_n "(cached) " >&6
18392 else
18393 ac_check_lib_save_LIBS=$LIBS
18394 LIBS="-lsvld $LIBS"
18395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18396 /* end confdefs.h. */
18397
18398 /* Override any GCC internal prototype to avoid an error.
18399 Use char because int might match the return type of a GCC
18400 builtin and then its argument prototype would still apply. */
18401 #ifdef __cplusplus
18402 extern "C"
18403 #endif
18404 char dlopen ();
18405 int
18406 main ()
18407 {
18408 return dlopen ();
18409 ;
18410 return 0;
18411 }
18412 _ACEOF
18413 if ac_fn_c_try_link "$LINENO"; then :
18414 ac_cv_lib_svld_dlopen=yes
18415 else
18416 ac_cv_lib_svld_dlopen=no
18417 fi
18418 rm -f core conftest.err conftest.$ac_objext \
18419 conftest$ac_exeext conftest.$ac_ext
18420 LIBS=$ac_check_lib_save_LIBS
18421 fi
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18423 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18424 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18425 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18426 else
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18428 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18429 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18430 $as_echo_n "(cached) " >&6
18431 else
18432 ac_check_lib_save_LIBS=$LIBS
18433 LIBS="-ldld $LIBS"
18434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18435 /* end confdefs.h. */
18436
18437 /* Override any GCC internal prototype to avoid an error.
18438 Use char because int might match the return type of a GCC
18439 builtin and then its argument prototype would still apply. */
18440 #ifdef __cplusplus
18441 extern "C"
18442 #endif
18443 char dld_link ();
18444 int
18445 main ()
18446 {
18447 return dld_link ();
18448 ;
18449 return 0;
18450 }
18451 _ACEOF
18452 if ac_fn_c_try_link "$LINENO"; then :
18453 ac_cv_lib_dld_dld_link=yes
18454 else
18455 ac_cv_lib_dld_dld_link=no
18456 fi
18457 rm -f core conftest.err conftest.$ac_objext \
18458 conftest$ac_exeext conftest.$ac_ext
18459 LIBS=$ac_check_lib_save_LIBS
18460 fi
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18462 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18463 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18464 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18465 fi
18466
18467
18468 fi
18469
18470
18471 fi
18472
18473
18474 fi
18475
18476
18477 fi
18478
18479
18480 fi
18481
18482 ;;
18483 esac
18484
18485 if test "x$lt_cv_dlopen" != xno; then
18486 enable_dlopen=yes
18487 else
18488 enable_dlopen=no
18489 fi
18490
18491 case $lt_cv_dlopen in
18492 dlopen)
18493 save_CPPFLAGS="$CPPFLAGS"
18494 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18495
18496 save_LDFLAGS="$LDFLAGS"
18497 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18498
18499 save_LIBS="$LIBS"
18500 LIBS="$lt_cv_dlopen_libs $LIBS"
18501
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18503 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18504 if test "${lt_cv_dlopen_self+set}" = set; then :
18505 $as_echo_n "(cached) " >&6
18506 else
18507 if test "$cross_compiling" = yes; then :
18508 lt_cv_dlopen_self=cross
18509 else
18510 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18511 lt_status=$lt_dlunknown
18512 cat > conftest.$ac_ext <<_LT_EOF
18513 #line 18513 "configure"
18514 #include "confdefs.h"
18515
18516 #if HAVE_DLFCN_H
18517 #include <dlfcn.h>
18518 #endif
18519
18520 #include <stdio.h>
18521
18522 #ifdef RTLD_GLOBAL
18523 # define LT_DLGLOBAL RTLD_GLOBAL
18524 #else
18525 # ifdef DL_GLOBAL
18526 # define LT_DLGLOBAL DL_GLOBAL
18527 # else
18528 # define LT_DLGLOBAL 0
18529 # endif
18530 #endif
18531
18532 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18533 find out it does not work in some platform. */
18534 #ifndef LT_DLLAZY_OR_NOW
18535 # ifdef RTLD_LAZY
18536 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18537 # else
18538 # ifdef DL_LAZY
18539 # define LT_DLLAZY_OR_NOW DL_LAZY
18540 # else
18541 # ifdef RTLD_NOW
18542 # define LT_DLLAZY_OR_NOW RTLD_NOW
18543 # else
18544 # ifdef DL_NOW
18545 # define LT_DLLAZY_OR_NOW DL_NOW
18546 # else
18547 # define LT_DLLAZY_OR_NOW 0
18548 # endif
18549 # endif
18550 # endif
18551 # endif
18552 #endif
18553
18554 /* When -fvisbility=hidden is used, assume the code has been annotated
18555 correspondingly for the symbols needed. */
18556 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18557 void fnord () __attribute__((visibility("default")));
18558 #endif
18559
18560 void fnord () { int i=42; }
18561 int main ()
18562 {
18563 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18564 int status = $lt_dlunknown;
18565
18566 if (self)
18567 {
18568 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18569 else
18570 {
18571 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18572 else puts (dlerror ());
18573 }
18574 /* dlclose (self); */
18575 }
18576 else
18577 puts (dlerror ());
18578
18579 return status;
18580 }
18581 _LT_EOF
18582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18583 (eval $ac_link) 2>&5
18584 ac_status=$?
18585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18586 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18587 (./conftest; exit; ) >&5 2>/dev/null
18588 lt_status=$?
18589 case x$lt_status in
18590 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18591 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18592 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18593 esac
18594 else :
18595 # compilation failed
18596 lt_cv_dlopen_self=no
18597 fi
18598 fi
18599 rm -fr conftest*
18600
18601
18602 fi
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18604 $as_echo "$lt_cv_dlopen_self" >&6; }
18605
18606 if test "x$lt_cv_dlopen_self" = xyes; then
18607 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18609 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18610 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18611 $as_echo_n "(cached) " >&6
18612 else
18613 if test "$cross_compiling" = yes; then :
18614 lt_cv_dlopen_self_static=cross
18615 else
18616 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18617 lt_status=$lt_dlunknown
18618 cat > conftest.$ac_ext <<_LT_EOF
18619 #line 18619 "configure"
18620 #include "confdefs.h"
18621
18622 #if HAVE_DLFCN_H
18623 #include <dlfcn.h>
18624 #endif
18625
18626 #include <stdio.h>
18627
18628 #ifdef RTLD_GLOBAL
18629 # define LT_DLGLOBAL RTLD_GLOBAL
18630 #else
18631 # ifdef DL_GLOBAL
18632 # define LT_DLGLOBAL DL_GLOBAL
18633 # else
18634 # define LT_DLGLOBAL 0
18635 # endif
18636 #endif
18637
18638 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18639 find out it does not work in some platform. */
18640 #ifndef LT_DLLAZY_OR_NOW
18641 # ifdef RTLD_LAZY
18642 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18643 # else
18644 # ifdef DL_LAZY
18645 # define LT_DLLAZY_OR_NOW DL_LAZY
18646 # else
18647 # ifdef RTLD_NOW
18648 # define LT_DLLAZY_OR_NOW RTLD_NOW
18649 # else
18650 # ifdef DL_NOW
18651 # define LT_DLLAZY_OR_NOW DL_NOW
18652 # else
18653 # define LT_DLLAZY_OR_NOW 0
18654 # endif
18655 # endif
18656 # endif
18657 # endif
18658 #endif
18659
18660 /* When -fvisbility=hidden is used, assume the code has been annotated
18661 correspondingly for the symbols needed. */
18662 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18663 void fnord () __attribute__((visibility("default")));
18664 #endif
18665
18666 void fnord () { int i=42; }
18667 int main ()
18668 {
18669 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18670 int status = $lt_dlunknown;
18671
18672 if (self)
18673 {
18674 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18675 else
18676 {
18677 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18678 else puts (dlerror ());
18679 }
18680 /* dlclose (self); */
18681 }
18682 else
18683 puts (dlerror ());
18684
18685 return status;
18686 }
18687 _LT_EOF
18688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18689 (eval $ac_link) 2>&5
18690 ac_status=$?
18691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18692 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18693 (./conftest; exit; ) >&5 2>/dev/null
18694 lt_status=$?
18695 case x$lt_status in
18696 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18697 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18698 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18699 esac
18700 else :
18701 # compilation failed
18702 lt_cv_dlopen_self_static=no
18703 fi
18704 fi
18705 rm -fr conftest*
18706
18707
18708 fi
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18710 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18711 fi
18712
18713 CPPFLAGS="$save_CPPFLAGS"
18714 LDFLAGS="$save_LDFLAGS"
18715 LIBS="$save_LIBS"
18716 ;;
18717 esac
18718
18719 case $lt_cv_dlopen_self in
18720 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18721 *) enable_dlopen_self=unknown ;;
18722 esac
18723
18724 case $lt_cv_dlopen_self_static in
18725 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18726 *) enable_dlopen_self_static=unknown ;;
18727 esac
18728 fi
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746 striplib=
18747 old_striplib=
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18749 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18750 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18751 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18752 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18754 $as_echo "yes" >&6; }
18755 else
18756 # FIXME - insert some real tests, host_os isn't really good enough
18757 case $host_os in
18758 darwin*)
18759 if test -n "$STRIP" ; then
18760 striplib="$STRIP -x"
18761 old_striplib="$STRIP -S"
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18763 $as_echo "yes" >&6; }
18764 else
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18766 $as_echo "no" >&6; }
18767 fi
18768 ;;
18769 *)
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18771 $as_echo "no" >&6; }
18772 ;;
18773 esac
18774 fi
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787 # Report which library types will actually be built
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18789 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18791 $as_echo "$can_build_shared" >&6; }
18792
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18794 $as_echo_n "checking whether to build shared libraries... " >&6; }
18795 test "$can_build_shared" = "no" && enable_shared=no
18796
18797 # On AIX, shared libraries and static libraries use the same namespace, and
18798 # are all built from PIC.
18799 case $host_os in
18800 aix3*)
18801 test "$enable_shared" = yes && enable_static=no
18802 if test -n "$RANLIB"; then
18803 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18804 postinstall_cmds='$RANLIB $lib'
18805 fi
18806 ;;
18807
18808 aix[4-9]*)
18809 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18810 test "$enable_shared" = yes && enable_static=no
18811 fi
18812 ;;
18813 esac
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18815 $as_echo "$enable_shared" >&6; }
18816
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18818 $as_echo_n "checking whether to build static libraries... " >&6; }
18819 # Make sure either enable_shared or enable_static is yes.
18820 test "$enable_shared" = yes || enable_static=yes
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18822 $as_echo "$enable_static" >&6; }
18823
18824
18825
18826
18827 fi
18828 ac_ext=cpp
18829 ac_cpp='$CXXCPP $CPPFLAGS'
18830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18833
18834 CC="$lt_save_CC"
18835
18836 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18837 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18838 (test "X$CXX" != "Xg++"))) ; then
18839 ac_ext=cpp
18840 ac_cpp='$CXXCPP $CPPFLAGS'
18841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18845 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18846 if test -z "$CXXCPP"; then
18847 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18848 $as_echo_n "(cached) " >&6
18849 else
18850 # Double quotes because CXXCPP needs to be expanded
18851 for CXXCPP in "$CXX -E" "/lib/cpp"
18852 do
18853 ac_preproc_ok=false
18854 for ac_cxx_preproc_warn_flag in '' yes
18855 do
18856 # Use a header file that comes with gcc, so configuring glibc
18857 # with a fresh cross-compiler works.
18858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18859 # <limits.h> exists even on freestanding compilers.
18860 # On the NeXT, cc -E runs the code through the compiler's parser,
18861 # not just through cpp. "Syntax error" is here to catch this case.
18862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18863 /* end confdefs.h. */
18864 #ifdef __STDC__
18865 # include <limits.h>
18866 #else
18867 # include <assert.h>
18868 #endif
18869 Syntax error
18870 _ACEOF
18871 if ac_fn_cxx_try_cpp "$LINENO"; then :
18872
18873 else
18874 # Broken: fails on valid input.
18875 continue
18876 fi
18877 rm -f conftest.err conftest.$ac_ext
18878
18879 # OK, works on sane cases. Now check whether nonexistent headers
18880 # can be detected and how.
18881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18882 /* end confdefs.h. */
18883 #include <ac_nonexistent.h>
18884 _ACEOF
18885 if ac_fn_cxx_try_cpp "$LINENO"; then :
18886 # Broken: success on invalid input.
18887 continue
18888 else
18889 # Passes both tests.
18890 ac_preproc_ok=:
18891 break
18892 fi
18893 rm -f conftest.err conftest.$ac_ext
18894
18895 done
18896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18897 rm -f conftest.err conftest.$ac_ext
18898 if $ac_preproc_ok; then :
18899 break
18900 fi
18901
18902 done
18903 ac_cv_prog_CXXCPP=$CXXCPP
18904
18905 fi
18906 CXXCPP=$ac_cv_prog_CXXCPP
18907 else
18908 ac_cv_prog_CXXCPP=$CXXCPP
18909 fi
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18911 $as_echo "$CXXCPP" >&6; }
18912 ac_preproc_ok=false
18913 for ac_cxx_preproc_warn_flag in '' yes
18914 do
18915 # Use a header file that comes with gcc, so configuring glibc
18916 # with a fresh cross-compiler works.
18917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18918 # <limits.h> exists even on freestanding compilers.
18919 # On the NeXT, cc -E runs the code through the compiler's parser,
18920 # not just through cpp. "Syntax error" is here to catch this case.
18921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18922 /* end confdefs.h. */
18923 #ifdef __STDC__
18924 # include <limits.h>
18925 #else
18926 # include <assert.h>
18927 #endif
18928 Syntax error
18929 _ACEOF
18930 if ac_fn_cxx_try_cpp "$LINENO"; then :
18931
18932 else
18933 # Broken: fails on valid input.
18934 continue
18935 fi
18936 rm -f conftest.err conftest.$ac_ext
18937
18938 # OK, works on sane cases. Now check whether nonexistent headers
18939 # can be detected and how.
18940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18941 /* end confdefs.h. */
18942 #include <ac_nonexistent.h>
18943 _ACEOF
18944 if ac_fn_cxx_try_cpp "$LINENO"; then :
18945 # Broken: success on invalid input.
18946 continue
18947 else
18948 # Passes both tests.
18949 ac_preproc_ok=:
18950 break
18951 fi
18952 rm -f conftest.err conftest.$ac_ext
18953
18954 done
18955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18956 rm -f conftest.err conftest.$ac_ext
18957 if $ac_preproc_ok; then :
18958
18959 else
18960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18962 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18963 See \`config.log' for more details." "$LINENO" 5; }
18964 fi
18965
18966 ac_ext=cpp
18967 ac_cpp='$CXXCPP $CPPFLAGS'
18968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18971
18972 else
18973 _lt_caught_CXX_error=yes
18974 fi
18975
18976 ac_ext=cpp
18977 ac_cpp='$CXXCPP $CPPFLAGS'
18978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18981
18982 archive_cmds_need_lc_CXX=no
18983 allow_undefined_flag_CXX=
18984 always_export_symbols_CXX=no
18985 archive_expsym_cmds_CXX=
18986 compiler_needs_object_CXX=no
18987 export_dynamic_flag_spec_CXX=
18988 hardcode_direct_CXX=no
18989 hardcode_direct_absolute_CXX=no
18990 hardcode_libdir_flag_spec_CXX=
18991 hardcode_libdir_flag_spec_ld_CXX=
18992 hardcode_libdir_separator_CXX=
18993 hardcode_minus_L_CXX=no
18994 hardcode_shlibpath_var_CXX=unsupported
18995 hardcode_automatic_CXX=no
18996 inherit_rpath_CXX=no
18997 module_cmds_CXX=
18998 module_expsym_cmds_CXX=
18999 link_all_deplibs_CXX=unknown
19000 old_archive_cmds_CXX=$old_archive_cmds
19001 reload_flag_CXX=$reload_flag
19002 reload_cmds_CXX=$reload_cmds
19003 no_undefined_flag_CXX=
19004 whole_archive_flag_spec_CXX=
19005 enable_shared_with_static_runtimes_CXX=no
19006
19007 # Source file extension for C++ test sources.
19008 ac_ext=cpp
19009
19010 # Object file extension for compiled C++ test sources.
19011 objext=o
19012 objext_CXX=$objext
19013
19014 # No sense in running all these tests if we already determined that
19015 # the CXX compiler isn't working. Some variables (like enable_shared)
19016 # are currently assumed to apply to all compilers on this platform,
19017 # and will be corrupted by setting them based on a non-working compiler.
19018 if test "$_lt_caught_CXX_error" != yes; then
19019 # Code to be used in simple compile tests
19020 lt_simple_compile_test_code="int some_variable = 0;"
19021
19022 # Code to be used in simple link tests
19023 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19024
19025 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19026
19027
19028
19029
19030
19031
19032 # If no C compiler was specified, use CC.
19033 LTCC=${LTCC-"$CC"}
19034
19035 # If no C compiler flags were specified, use CFLAGS.
19036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19037
19038 # Allow CC to be a program name with arguments.
19039 compiler=$CC
19040
19041
19042 # save warnings/boilerplate of simple test code
19043 ac_outfile=conftest.$ac_objext
19044 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19045 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19046 _lt_compiler_boilerplate=`cat conftest.err`
19047 $RM conftest*
19048
19049 ac_outfile=conftest.$ac_objext
19050 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19051 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19052 _lt_linker_boilerplate=`cat conftest.err`
19053 $RM -r conftest*
19054
19055
19056 # Allow CC to be a program name with arguments.
19057 lt_save_CC=$CC
19058 lt_save_LD=$LD
19059 lt_save_GCC=$GCC
19060 GCC=$GXX
19061 lt_save_with_gnu_ld=$with_gnu_ld
19062 lt_save_path_LD=$lt_cv_path_LD
19063 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19064 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19065 else
19066 $as_unset lt_cv_prog_gnu_ld
19067 fi
19068 if test -n "${lt_cv_path_LDCXX+set}"; then
19069 lt_cv_path_LD=$lt_cv_path_LDCXX
19070 else
19071 $as_unset lt_cv_path_LD
19072 fi
19073 test -z "${LDCXX+set}" || LD=$LDCXX
19074 CC=${CXX-"c++"}
19075 compiler=$CC
19076 compiler_CXX=$CC
19077 for cc_temp in $compiler""; do
19078 case $cc_temp in
19079 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19080 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19081 \-*) ;;
19082 *) break;;
19083 esac
19084 done
19085 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19086
19087
19088 if test -n "$compiler"; then
19089 # We don't want -fno-exception when compiling C++ code, so set the
19090 # no_builtin_flag separately
19091 if test "$GXX" = yes; then
19092 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19093 else
19094 lt_prog_compiler_no_builtin_flag_CXX=
19095 fi
19096
19097 if test "$GXX" = yes; then
19098 # Set up default GNU C++ configuration
19099
19100
19101
19102 # Check whether --with-gnu-ld was given.
19103 if test "${with_gnu_ld+set}" = set; then :
19104 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19105 else
19106 with_gnu_ld=no
19107 fi
19108
19109 ac_prog=ld
19110 if test "$GCC" = yes; then
19111 # Check if gcc -print-prog-name=ld gives a path.
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19113 $as_echo_n "checking for ld used by $CC... " >&6; }
19114 case $host in
19115 *-*-mingw*)
19116 # gcc leaves a trailing carriage return which upsets mingw
19117 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19118 *)
19119 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19120 esac
19121 case $ac_prog in
19122 # Accept absolute paths.
19123 [\\/]* | ?:[\\/]*)
19124 re_direlt='/[^/][^/]*/\.\./'
19125 # Canonicalize the pathname of ld
19126 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19127 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19128 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19129 done
19130 test -z "$LD" && LD="$ac_prog"
19131 ;;
19132 "")
19133 # If it fails, then pretend we aren't using GCC.
19134 ac_prog=ld
19135 ;;
19136 *)
19137 # If it is relative, then search for the first ld in PATH.
19138 with_gnu_ld=unknown
19139 ;;
19140 esac
19141 elif test "$with_gnu_ld" = yes; then
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19143 $as_echo_n "checking for GNU ld... " >&6; }
19144 else
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19146 $as_echo_n "checking for non-GNU ld... " >&6; }
19147 fi
19148 if test "${lt_cv_path_LD+set}" = set; then :
19149 $as_echo_n "(cached) " >&6
19150 else
19151 if test -z "$LD"; then
19152 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19153 for ac_dir in $PATH; do
19154 IFS="$lt_save_ifs"
19155 test -z "$ac_dir" && ac_dir=.
19156 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19157 lt_cv_path_LD="$ac_dir/$ac_prog"
19158 # Check to see if the program is GNU ld. I'd rather use --version,
19159 # but apparently some variants of GNU ld only accept -v.
19160 # Break only if it was the GNU/non-GNU ld that we prefer.
19161 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19162 *GNU* | *'with BFD'*)
19163 test "$with_gnu_ld" != no && break
19164 ;;
19165 *)
19166 test "$with_gnu_ld" != yes && break
19167 ;;
19168 esac
19169 fi
19170 done
19171 IFS="$lt_save_ifs"
19172 else
19173 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19174 fi
19175 fi
19176
19177 LD="$lt_cv_path_LD"
19178 if test -n "$LD"; then
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19180 $as_echo "$LD" >&6; }
19181 else
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19183 $as_echo "no" >&6; }
19184 fi
19185 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19187 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19188 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19189 $as_echo_n "(cached) " >&6
19190 else
19191 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19192 case `$LD -v 2>&1 </dev/null` in
19193 *GNU* | *'with BFD'*)
19194 lt_cv_prog_gnu_ld=yes
19195 ;;
19196 *)
19197 lt_cv_prog_gnu_ld=no
19198 ;;
19199 esac
19200 fi
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19202 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19203 with_gnu_ld=$lt_cv_prog_gnu_ld
19204
19205
19206
19207
19208
19209
19210
19211 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19212 # archiving commands below assume that GNU ld is being used.
19213 if test "$with_gnu_ld" = yes; then
19214 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19215 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'
19216
19217 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19218 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19219
19220 # If archive_cmds runs LD, not CC, wlarc should be empty
19221 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19222 # investigate it a little bit more. (MM)
19223 wlarc='${wl}'
19224
19225 # ancient GNU ld didn't support --whole-archive et. al.
19226 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19227 $GREP 'no-whole-archive' > /dev/null; then
19228 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19229 else
19230 whole_archive_flag_spec_CXX=
19231 fi
19232 else
19233 with_gnu_ld=no
19234 wlarc=
19235
19236 # A generic and very simple default shared library creation
19237 # command for GNU C++ for the case where it uses the native
19238 # linker, instead of GNU ld. If possible, this setting should
19239 # overridden to take advantage of the native linker features on
19240 # the platform it is being used on.
19241 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19242 fi
19243
19244 # Commands to make compiler produce verbose output that lists
19245 # what "hidden" libraries, object files and flags are used when
19246 # linking a shared library.
19247 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19248
19249 else
19250 GXX=no
19251 with_gnu_ld=no
19252 wlarc=
19253 fi
19254
19255 # PORTME: fill in a description of your system's C++ link characteristics
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19257 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19258 ld_shlibs_CXX=yes
19259 case $host_os in
19260 aix3*)
19261 # FIXME: insert proper C++ library support
19262 ld_shlibs_CXX=no
19263 ;;
19264 aix[4-9]*)
19265 if test "$host_cpu" = ia64; then
19266 # On IA64, the linker does run time linking by default, so we don't
19267 # have to do anything special.
19268 aix_use_runtimelinking=no
19269 exp_sym_flag='-Bexport'
19270 no_entry_flag=""
19271 else
19272 aix_use_runtimelinking=no
19273
19274 # Test if we are trying to use run time linking or normal
19275 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19276 # need to do runtime linking.
19277 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19278 for ld_flag in $LDFLAGS; do
19279 case $ld_flag in
19280 *-brtl*)
19281 aix_use_runtimelinking=yes
19282 break
19283 ;;
19284 esac
19285 done
19286 ;;
19287 esac
19288
19289 exp_sym_flag='-bexport'
19290 no_entry_flag='-bnoentry'
19291 fi
19292
19293 # When large executables or shared objects are built, AIX ld can
19294 # have problems creating the table of contents. If linking a library
19295 # or program results in "error TOC overflow" add -mminimal-toc to
19296 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19297 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19298
19299 archive_cmds_CXX=''
19300 hardcode_direct_CXX=yes
19301 hardcode_direct_absolute_CXX=yes
19302 hardcode_libdir_separator_CXX=':'
19303 link_all_deplibs_CXX=yes
19304 file_list_spec_CXX='${wl}-f,'
19305
19306 if test "$GXX" = yes; then
19307 case $host_os in aix4.[012]|aix4.[012].*)
19308 # We only want to do this on AIX 4.2 and lower, the check
19309 # below for broken collect2 doesn't work under 4.3+
19310 collect2name=`${CC} -print-prog-name=collect2`
19311 if test -f "$collect2name" &&
19312 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19313 then
19314 # We have reworked collect2
19315 :
19316 else
19317 # We have old collect2
19318 hardcode_direct_CXX=unsupported
19319 # It fails to find uninstalled libraries when the uninstalled
19320 # path is not listed in the libpath. Setting hardcode_minus_L
19321 # to unsupported forces relinking
19322 hardcode_minus_L_CXX=yes
19323 hardcode_libdir_flag_spec_CXX='-L$libdir'
19324 hardcode_libdir_separator_CXX=
19325 fi
19326 esac
19327 shared_flag='-shared'
19328 if test "$aix_use_runtimelinking" = yes; then
19329 shared_flag="$shared_flag "'${wl}-G'
19330 fi
19331 else
19332 # not using gcc
19333 if test "$host_cpu" = ia64; then
19334 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19335 # chokes on -Wl,-G. The following line is correct:
19336 shared_flag='-G'
19337 else
19338 if test "$aix_use_runtimelinking" = yes; then
19339 shared_flag='${wl}-G'
19340 else
19341 shared_flag='${wl}-bM:SRE'
19342 fi
19343 fi
19344 fi
19345
19346 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19347 # It seems that -bexpall does not export symbols beginning with
19348 # underscore (_), so it is better to generate a list of symbols to
19349 # export.
19350 always_export_symbols_CXX=yes
19351 if test "$aix_use_runtimelinking" = yes; then
19352 # Warning - without using the other runtime loading flags (-brtl),
19353 # -berok will link without error, but may produce a broken library.
19354 allow_undefined_flag_CXX='-berok'
19355 # Determine the default libpath from the value encoded in an empty
19356 # executable.
19357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19358 /* end confdefs.h. */
19359
19360 int
19361 main ()
19362 {
19363
19364 ;
19365 return 0;
19366 }
19367 _ACEOF
19368 if ac_fn_cxx_try_link "$LINENO"; then :
19369
19370 lt_aix_libpath_sed='
19371 /Import File Strings/,/^$/ {
19372 /^0/ {
19373 s/^0 *\(.*\)$/\1/
19374 p
19375 }
19376 }'
19377 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19378 # Check for a 64-bit object if we didn't find anything.
19379 if test -z "$aix_libpath"; then
19380 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19381 fi
19382 fi
19383 rm -f core conftest.err conftest.$ac_objext \
19384 conftest$ac_exeext conftest.$ac_ext
19385 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19386
19387 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19388
19389 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"
19390 else
19391 if test "$host_cpu" = ia64; then
19392 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19393 allow_undefined_flag_CXX="-z nodefs"
19394 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"
19395 else
19396 # Determine the default libpath from the value encoded in an
19397 # empty executable.
19398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19399 /* end confdefs.h. */
19400
19401 int
19402 main ()
19403 {
19404
19405 ;
19406 return 0;
19407 }
19408 _ACEOF
19409 if ac_fn_cxx_try_link "$LINENO"; then :
19410
19411 lt_aix_libpath_sed='
19412 /Import File Strings/,/^$/ {
19413 /^0/ {
19414 s/^0 *\(.*\)$/\1/
19415 p
19416 }
19417 }'
19418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19419 # Check for a 64-bit object if we didn't find anything.
19420 if test -z "$aix_libpath"; then
19421 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19422 fi
19423 fi
19424 rm -f core conftest.err conftest.$ac_objext \
19425 conftest$ac_exeext conftest.$ac_ext
19426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19427
19428 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19429 # Warning - without using the other run time loading flags,
19430 # -berok will link without error, but may produce a broken library.
19431 no_undefined_flag_CXX=' ${wl}-bernotok'
19432 allow_undefined_flag_CXX=' ${wl}-berok'
19433 if test "$with_gnu_ld" = yes; then
19434 # We only use this code for GNU lds that support --whole-archive.
19435 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19436 else
19437 # Exported symbols can be pulled into shared objects from archives
19438 whole_archive_flag_spec_CXX='$convenience'
19439 fi
19440 archive_cmds_need_lc_CXX=yes
19441 # This is similar to how AIX traditionally builds its shared
19442 # libraries.
19443 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'
19444 fi
19445 fi
19446 ;;
19447
19448 beos*)
19449 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19450 allow_undefined_flag_CXX=unsupported
19451 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19452 # support --undefined. This deserves some investigation. FIXME
19453 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19454 else
19455 ld_shlibs_CXX=no
19456 fi
19457 ;;
19458
19459 chorus*)
19460 case $cc_basename in
19461 *)
19462 # FIXME: insert proper C++ library support
19463 ld_shlibs_CXX=no
19464 ;;
19465 esac
19466 ;;
19467
19468 cygwin* | mingw* | pw32* | cegcc*)
19469 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19470 # as there is no search path for DLLs.
19471 hardcode_libdir_flag_spec_CXX='-L$libdir'
19472 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19473 allow_undefined_flag_CXX=unsupported
19474 always_export_symbols_CXX=no
19475 enable_shared_with_static_runtimes_CXX=yes
19476
19477 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19478 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'
19479 # If the export-symbols file already is a .def file (1st line
19480 # is EXPORTS), use it as is; otherwise, prepend...
19481 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19482 cp $export_symbols $output_objdir/$soname.def;
19483 else
19484 echo EXPORTS > $output_objdir/$soname.def;
19485 cat $export_symbols >> $output_objdir/$soname.def;
19486 fi~
19487 $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'
19488 else
19489 ld_shlibs_CXX=no
19490 fi
19491 ;;
19492 darwin* | rhapsody*)
19493
19494
19495 archive_cmds_need_lc_CXX=no
19496 hardcode_direct_CXX=no
19497 hardcode_automatic_CXX=yes
19498 hardcode_shlibpath_var_CXX=unsupported
19499 if test "$lt_cv_ld_force_load" = "yes"; then
19500 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\"`'
19501 else
19502 whole_archive_flag_spec_CXX=''
19503 fi
19504 link_all_deplibs_CXX=yes
19505 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19506 case $cc_basename in
19507 ifort*) _lt_dar_can_shared=yes ;;
19508 *) _lt_dar_can_shared=$GCC ;;
19509 esac
19510 if test "$_lt_dar_can_shared" = "yes"; then
19511 output_verbose_link_cmd=func_echo_all
19512 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}"
19513 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19514 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}"
19515 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}"
19516 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19517 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}"
19518 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}"
19519 fi
19520
19521 else
19522 ld_shlibs_CXX=no
19523 fi
19524
19525 ;;
19526
19527 dgux*)
19528 case $cc_basename in
19529 ec++*)
19530 # FIXME: insert proper C++ library support
19531 ld_shlibs_CXX=no
19532 ;;
19533 ghcx*)
19534 # Green Hills C++ Compiler
19535 # FIXME: insert proper C++ library support
19536 ld_shlibs_CXX=no
19537 ;;
19538 *)
19539 # FIXME: insert proper C++ library support
19540 ld_shlibs_CXX=no
19541 ;;
19542 esac
19543 ;;
19544
19545 freebsd2.*)
19546 # C++ shared libraries reported to be fairly broken before
19547 # switch to ELF
19548 ld_shlibs_CXX=no
19549 ;;
19550
19551 freebsd-elf*)
19552 archive_cmds_need_lc_CXX=no
19553 ;;
19554
19555 freebsd* | dragonfly*)
19556 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19557 # conventions
19558 ld_shlibs_CXX=yes
19559 ;;
19560
19561 gnu*)
19562 ;;
19563
19564 haiku*)
19565 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19566 link_all_deplibs_CXX=yes
19567 ;;
19568
19569 hpux9*)
19570 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19571 hardcode_libdir_separator_CXX=:
19572 export_dynamic_flag_spec_CXX='${wl}-E'
19573 hardcode_direct_CXX=yes
19574 hardcode_minus_L_CXX=yes # Not in the search PATH,
19575 # but as the default
19576 # location of the library.
19577
19578 case $cc_basename in
19579 CC*)
19580 # FIXME: insert proper C++ library support
19581 ld_shlibs_CXX=no
19582 ;;
19583 aCC*)
19584 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'
19585 # Commands to make compiler produce verbose output that lists
19586 # what "hidden" libraries, object files and flags are used when
19587 # linking a shared library.
19588 #
19589 # There doesn't appear to be a way to prevent this compiler from
19590 # explicitly linking system object files so we need to strip them
19591 # from the output so that they don't get included in the library
19592 # dependencies.
19593 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"'
19594 ;;
19595 *)
19596 if test "$GXX" = yes; then
19597 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'
19598 else
19599 # FIXME: insert proper C++ library support
19600 ld_shlibs_CXX=no
19601 fi
19602 ;;
19603 esac
19604 ;;
19605
19606 hpux10*|hpux11*)
19607 if test $with_gnu_ld = no; then
19608 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19609 hardcode_libdir_separator_CXX=:
19610
19611 case $host_cpu in
19612 hppa*64*|ia64*)
19613 ;;
19614 *)
19615 export_dynamic_flag_spec_CXX='${wl}-E'
19616 ;;
19617 esac
19618 fi
19619 case $host_cpu in
19620 hppa*64*|ia64*)
19621 hardcode_direct_CXX=no
19622 hardcode_shlibpath_var_CXX=no
19623 ;;
19624 *)
19625 hardcode_direct_CXX=yes
19626 hardcode_direct_absolute_CXX=yes
19627 hardcode_minus_L_CXX=yes # Not in the search PATH,
19628 # but as the default
19629 # location of the library.
19630 ;;
19631 esac
19632
19633 case $cc_basename in
19634 CC*)
19635 # FIXME: insert proper C++ library support
19636 ld_shlibs_CXX=no
19637 ;;
19638 aCC*)
19639 case $host_cpu in
19640 hppa*64*)
19641 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19642 ;;
19643 ia64*)
19644 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19645 ;;
19646 *)
19647 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19648 ;;
19649 esac
19650 # Commands to make compiler produce verbose output that lists
19651 # what "hidden" libraries, object files and flags are used when
19652 # linking a shared library.
19653 #
19654 # There doesn't appear to be a way to prevent this compiler from
19655 # explicitly linking system object files so we need to strip them
19656 # from the output so that they don't get included in the library
19657 # dependencies.
19658 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"'
19659 ;;
19660 *)
19661 if test "$GXX" = yes; then
19662 if test $with_gnu_ld = no; then
19663 case $host_cpu in
19664 hppa*64*)
19665 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19666 ;;
19667 ia64*)
19668 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19669 ;;
19670 *)
19671 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'
19672 ;;
19673 esac
19674 fi
19675 else
19676 # FIXME: insert proper C++ library support
19677 ld_shlibs_CXX=no
19678 fi
19679 ;;
19680 esac
19681 ;;
19682
19683 interix[3-9]*)
19684 hardcode_direct_CXX=no
19685 hardcode_shlibpath_var_CXX=no
19686 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19687 export_dynamic_flag_spec_CXX='${wl}-E'
19688 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19689 # Instead, shared libraries are loaded at an image base (0x10000000 by
19690 # default) and relocated if they conflict, which is a slow very memory
19691 # consuming and fragmenting process. To avoid this, we pick a random,
19692 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19693 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19694 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'
19695 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'
19696 ;;
19697 irix5* | irix6*)
19698 case $cc_basename in
19699 CC*)
19700 # SGI C++
19701 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'
19702
19703 # Archives containing C++ object files must be created using
19704 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19705 # necessary to make sure instantiated templates are included
19706 # in the archive.
19707 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19708 ;;
19709 *)
19710 if test "$GXX" = yes; then
19711 if test "$with_gnu_ld" = no; then
19712 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'
19713 else
19714 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'
19715 fi
19716 fi
19717 link_all_deplibs_CXX=yes
19718 ;;
19719 esac
19720 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19721 hardcode_libdir_separator_CXX=:
19722 inherit_rpath_CXX=yes
19723 ;;
19724
19725 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19726 case $cc_basename in
19727 KCC*)
19728 # Kuck and Associates, Inc. (KAI) C++ Compiler
19729
19730 # KCC will only create a shared library if the output file
19731 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19732 # to its proper name (with version) after linking.
19733 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'
19734 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'
19735 # Commands to make compiler produce verbose output that lists
19736 # what "hidden" libraries, object files and flags are used when
19737 # linking a shared library.
19738 #
19739 # There doesn't appear to be a way to prevent this compiler from
19740 # explicitly linking system object files so we need to strip them
19741 # from the output so that they don't get included in the library
19742 # dependencies.
19743 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"'
19744
19745 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19746 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19747
19748 # Archives containing C++ object files must be created using
19749 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19750 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19751 ;;
19752 icpc* | ecpc* )
19753 # Intel C++
19754 with_gnu_ld=yes
19755 # version 8.0 and above of icpc choke on multiply defined symbols
19756 # if we add $predep_objects and $postdep_objects, however 7.1 and
19757 # earlier do not add the objects themselves.
19758 case `$CC -V 2>&1` in
19759 *"Version 7."*)
19760 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19761 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'
19762 ;;
19763 *) # Version 8.0 or newer
19764 tmp_idyn=
19765 case $host_cpu in
19766 ia64*) tmp_idyn=' -i_dynamic';;
19767 esac
19768 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19769 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'
19770 ;;
19771 esac
19772 archive_cmds_need_lc_CXX=no
19773 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19774 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19775 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19776 ;;
19777 pgCC* | pgcpp*)
19778 # Portland Group C++ compiler
19779 case `$CC -V` in
19780 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19781 prelink_cmds_CXX='tpldir=Template.dir~
19782 rm -rf $tpldir~
19783 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19784 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19785 old_archive_cmds_CXX='tpldir=Template.dir~
19786 rm -rf $tpldir~
19787 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19788 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19789 $RANLIB $oldlib'
19790 archive_cmds_CXX='tpldir=Template.dir~
19791 rm -rf $tpldir~
19792 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19793 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19794 archive_expsym_cmds_CXX='tpldir=Template.dir~
19795 rm -rf $tpldir~
19796 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19797 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19798 ;;
19799 *) # Version 6 and above use weak symbols
19800 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19801 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'
19802 ;;
19803 esac
19804
19805 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19806 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19807 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'
19808 ;;
19809 cxx*)
19810 # Compaq C++
19811 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19812 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'
19813
19814 runpath_var=LD_RUN_PATH
19815 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19816 hardcode_libdir_separator_CXX=:
19817
19818 # Commands to make compiler produce verbose output that lists
19819 # what "hidden" libraries, object files and flags are used when
19820 # linking a shared library.
19821 #
19822 # There doesn't appear to be a way to prevent this compiler from
19823 # explicitly linking system object files so we need to strip them
19824 # from the output so that they don't get included in the library
19825 # dependencies.
19826 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'
19827 ;;
19828 xl* | mpixl* | bgxl*)
19829 # IBM XL 8.0 on PPC, with GNU ld
19830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19831 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19832 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19833 if test "x$supports_anon_versioning" = xyes; then
19834 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19835 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19836 echo "local: *; };" >> $output_objdir/$libname.ver~
19837 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19838 fi
19839 ;;
19840 *)
19841 case `$CC -V 2>&1 | sed 5q` in
19842 *Sun\ C*)
19843 # Sun C++ 5.9
19844 no_undefined_flag_CXX=' -zdefs'
19845 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19846 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'
19847 hardcode_libdir_flag_spec_CXX='-R$libdir'
19848 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'
19849 compiler_needs_object_CXX=yes
19850
19851 # Not sure whether something based on
19852 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19853 # would be better.
19854 output_verbose_link_cmd='func_echo_all'
19855
19856 # Archives containing C++ object files must be created using
19857 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19858 # necessary to make sure instantiated templates are included
19859 # in the archive.
19860 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19861 ;;
19862 esac
19863 ;;
19864 esac
19865 ;;
19866
19867 lynxos*)
19868 # FIXME: insert proper C++ library support
19869 ld_shlibs_CXX=no
19870 ;;
19871
19872 m88k*)
19873 # FIXME: insert proper C++ library support
19874 ld_shlibs_CXX=no
19875 ;;
19876
19877 mvs*)
19878 case $cc_basename in
19879 cxx*)
19880 # FIXME: insert proper C++ library support
19881 ld_shlibs_CXX=no
19882 ;;
19883 *)
19884 # FIXME: insert proper C++ library support
19885 ld_shlibs_CXX=no
19886 ;;
19887 esac
19888 ;;
19889
19890 netbsd*)
19891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19892 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19893 wlarc=
19894 hardcode_libdir_flag_spec_CXX='-R$libdir'
19895 hardcode_direct_CXX=yes
19896 hardcode_shlibpath_var_CXX=no
19897 fi
19898 # Workaround some broken pre-1.5 toolchains
19899 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19900 ;;
19901
19902 *nto* | *qnx*)
19903 ld_shlibs_CXX=yes
19904 ;;
19905
19906 openbsd2*)
19907 # C++ shared libraries are fairly broken
19908 ld_shlibs_CXX=no
19909 ;;
19910
19911 openbsd*)
19912 if test -f /usr/libexec/ld.so; then
19913 hardcode_direct_CXX=yes
19914 hardcode_shlibpath_var_CXX=no
19915 hardcode_direct_absolute_CXX=yes
19916 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19917 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19918 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19919 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19920 export_dynamic_flag_spec_CXX='${wl}-E'
19921 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19922 fi
19923 output_verbose_link_cmd=func_echo_all
19924 else
19925 ld_shlibs_CXX=no
19926 fi
19927 ;;
19928
19929 osf3* | osf4* | osf5*)
19930 case $cc_basename in
19931 KCC*)
19932 # Kuck and Associates, Inc. (KAI) C++ Compiler
19933
19934 # KCC will only create a shared library if the output file
19935 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19936 # to its proper name (with version) after linking.
19937 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'
19938
19939 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19940 hardcode_libdir_separator_CXX=:
19941
19942 # Archives containing C++ object files must be created using
19943 # the KAI C++ compiler.
19944 case $host in
19945 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19946 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19947 esac
19948 ;;
19949 RCC*)
19950 # Rational C++ 2.4.1
19951 # FIXME: insert proper C++ library support
19952 ld_shlibs_CXX=no
19953 ;;
19954 cxx*)
19955 case $host in
19956 osf3*)
19957 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19958 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'
19959 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19960 ;;
19961 *)
19962 allow_undefined_flag_CXX=' -expect_unresolved \*'
19963 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'
19964 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19965 echo "-hidden">> $lib.exp~
19966 $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~
19967 $RM $lib.exp'
19968 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19969 ;;
19970 esac
19971
19972 hardcode_libdir_separator_CXX=:
19973
19974 # Commands to make compiler produce verbose output that lists
19975 # what "hidden" libraries, object files and flags are used when
19976 # linking a shared library.
19977 #
19978 # There doesn't appear to be a way to prevent this compiler from
19979 # explicitly linking system object files so we need to strip them
19980 # from the output so that they don't get included in the library
19981 # dependencies.
19982 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"'
19983 ;;
19984 *)
19985 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19986 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19987 case $host in
19988 osf3*)
19989 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'
19990 ;;
19991 *)
19992 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'
19993 ;;
19994 esac
19995
19996 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19997 hardcode_libdir_separator_CXX=:
19998
19999 # Commands to make compiler produce verbose output that lists
20000 # what "hidden" libraries, object files and flags are used when
20001 # linking a shared library.
20002 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20003
20004 else
20005 # FIXME: insert proper C++ library support
20006 ld_shlibs_CXX=no
20007 fi
20008 ;;
20009 esac
20010 ;;
20011
20012 psos*)
20013 # FIXME: insert proper C++ library support
20014 ld_shlibs_CXX=no
20015 ;;
20016
20017 sunos4*)
20018 case $cc_basename in
20019 CC*)
20020 # Sun C++ 4.x
20021 # FIXME: insert proper C++ library support
20022 ld_shlibs_CXX=no
20023 ;;
20024 lcc*)
20025 # Lucid
20026 # FIXME: insert proper C++ library support
20027 ld_shlibs_CXX=no
20028 ;;
20029 *)
20030 # FIXME: insert proper C++ library support
20031 ld_shlibs_CXX=no
20032 ;;
20033 esac
20034 ;;
20035
20036 solaris*)
20037 case $cc_basename in
20038 CC*)
20039 # Sun C++ 4.2, 5.x and Centerline C++
20040 archive_cmds_need_lc_CXX=yes
20041 no_undefined_flag_CXX=' -zdefs'
20042 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20043 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20044 $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'
20045
20046 hardcode_libdir_flag_spec_CXX='-R$libdir'
20047 hardcode_shlibpath_var_CXX=no
20048 case $host_os in
20049 solaris2.[0-5] | solaris2.[0-5].*) ;;
20050 *)
20051 # The compiler driver will combine and reorder linker options,
20052 # but understands `-z linker_flag'.
20053 # Supported since Solaris 2.6 (maybe 2.5.1?)
20054 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20055 ;;
20056 esac
20057 link_all_deplibs_CXX=yes
20058
20059 output_verbose_link_cmd='func_echo_all'
20060
20061 # Archives containing C++ object files must be created using
20062 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20063 # necessary to make sure instantiated templates are included
20064 # in the archive.
20065 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20066 ;;
20067 gcx*)
20068 # Green Hills C++ Compiler
20069 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20070
20071 # The C++ compiler must be used to create the archive.
20072 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20073 ;;
20074 *)
20075 # GNU C++ compiler with Solaris linker
20076 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20077 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20078 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20079 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20080 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20081 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20082
20083 # Commands to make compiler produce verbose output that lists
20084 # what "hidden" libraries, object files and flags are used when
20085 # linking a shared library.
20086 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20087 else
20088 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20089 # platform.
20090 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20091 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20092 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20093
20094 # Commands to make compiler produce verbose output that lists
20095 # what "hidden" libraries, object files and flags are used when
20096 # linking a shared library.
20097 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20098 fi
20099
20100 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20101 case $host_os in
20102 solaris2.[0-5] | solaris2.[0-5].*) ;;
20103 *)
20104 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20105 ;;
20106 esac
20107 fi
20108 ;;
20109 esac
20110 ;;
20111
20112 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20113 no_undefined_flag_CXX='${wl}-z,text'
20114 archive_cmds_need_lc_CXX=no
20115 hardcode_shlibpath_var_CXX=no
20116 runpath_var='LD_RUN_PATH'
20117
20118 case $cc_basename in
20119 CC*)
20120 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20121 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20122 ;;
20123 *)
20124 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20125 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20126 ;;
20127 esac
20128 ;;
20129
20130 sysv5* | sco3.2v5* | sco5v6*)
20131 # Note: We can NOT use -z defs as we might desire, because we do not
20132 # link with -lc, and that would cause any symbols used from libc to
20133 # always be unresolved, which means just about no library would
20134 # ever link correctly. If we're not using GNU ld we use -z text
20135 # though, which does catch some bad symbols but isn't as heavy-handed
20136 # as -z defs.
20137 no_undefined_flag_CXX='${wl}-z,text'
20138 allow_undefined_flag_CXX='${wl}-z,nodefs'
20139 archive_cmds_need_lc_CXX=no
20140 hardcode_shlibpath_var_CXX=no
20141 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20142 hardcode_libdir_separator_CXX=':'
20143 link_all_deplibs_CXX=yes
20144 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20145 runpath_var='LD_RUN_PATH'
20146
20147 case $cc_basename in
20148 CC*)
20149 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20150 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20151 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20152 '"$old_archive_cmds_CXX"
20153 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20154 '"$reload_cmds_CXX"
20155 ;;
20156 *)
20157 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20158 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20159 ;;
20160 esac
20161 ;;
20162
20163 tandem*)
20164 case $cc_basename in
20165 NCC*)
20166 # NonStop-UX NCC 3.20
20167 # FIXME: insert proper C++ library support
20168 ld_shlibs_CXX=no
20169 ;;
20170 *)
20171 # FIXME: insert proper C++ library support
20172 ld_shlibs_CXX=no
20173 ;;
20174 esac
20175 ;;
20176
20177 vxworks*)
20178 # FIXME: insert proper C++ library support
20179 ld_shlibs_CXX=no
20180 ;;
20181
20182 *)
20183 # FIXME: insert proper C++ library support
20184 ld_shlibs_CXX=no
20185 ;;
20186 esac
20187
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20189 $as_echo "$ld_shlibs_CXX" >&6; }
20190 test "$ld_shlibs_CXX" = no && can_build_shared=no
20191
20192 GCC_CXX="$GXX"
20193 LD_CXX="$LD"
20194
20195 ## CAVEAT EMPTOR:
20196 ## There is no encapsulation within the following macros, do not change
20197 ## the running order or otherwise move them around unless you know exactly
20198 ## what you are doing...
20199 # Dependencies to place before and after the object being linked:
20200 predep_objects_CXX=
20201 postdep_objects_CXX=
20202 predeps_CXX=
20203 postdeps_CXX=
20204 compiler_lib_search_path_CXX=
20205
20206 cat > conftest.$ac_ext <<_LT_EOF
20207 class Foo
20208 {
20209 public:
20210 Foo (void) { a = 0; }
20211 private:
20212 int a;
20213 };
20214 _LT_EOF
20215
20216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20217 (eval $ac_compile) 2>&5
20218 ac_status=$?
20219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20220 test $ac_status = 0; }; then
20221 # Parse the compiler output and extract the necessary
20222 # objects, libraries and library flags.
20223
20224 # Sentinel used to keep track of whether or not we are before
20225 # the conftest object file.
20226 pre_test_object_deps_done=no
20227
20228 for p in `eval "$output_verbose_link_cmd"`; do
20229 case $p in
20230
20231 -L* | -R* | -l*)
20232 # Some compilers place space between "-{L,R}" and the path.
20233 # Remove the space.
20234 if test $p = "-L" ||
20235 test $p = "-R"; then
20236 prev=$p
20237 continue
20238 else
20239 prev=
20240 fi
20241
20242 if test "$pre_test_object_deps_done" = no; then
20243 case $p in
20244 -L* | -R*)
20245 # Internal compiler library paths should come after those
20246 # provided the user. The postdeps already come after the
20247 # user supplied libs so there is no need to process them.
20248 if test -z "$compiler_lib_search_path_CXX"; then
20249 compiler_lib_search_path_CXX="${prev}${p}"
20250 else
20251 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20252 fi
20253 ;;
20254 # The "-l" case would never come before the object being
20255 # linked, so don't bother handling this case.
20256 esac
20257 else
20258 if test -z "$postdeps_CXX"; then
20259 postdeps_CXX="${prev}${p}"
20260 else
20261 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20262 fi
20263 fi
20264 ;;
20265
20266 *.$objext)
20267 # This assumes that the test object file only shows up
20268 # once in the compiler output.
20269 if test "$p" = "conftest.$objext"; then
20270 pre_test_object_deps_done=yes
20271 continue
20272 fi
20273
20274 if test "$pre_test_object_deps_done" = no; then
20275 if test -z "$predep_objects_CXX"; then
20276 predep_objects_CXX="$p"
20277 else
20278 predep_objects_CXX="$predep_objects_CXX $p"
20279 fi
20280 else
20281 if test -z "$postdep_objects_CXX"; then
20282 postdep_objects_CXX="$p"
20283 else
20284 postdep_objects_CXX="$postdep_objects_CXX $p"
20285 fi
20286 fi
20287 ;;
20288
20289 *) ;; # Ignore the rest.
20290
20291 esac
20292 done
20293
20294 # Clean up.
20295 rm -f a.out a.exe
20296 else
20297 echo "libtool.m4: error: problem compiling CXX test program"
20298 fi
20299
20300 $RM -f confest.$objext
20301
20302 # PORTME: override above test on systems where it is broken
20303 case $host_os in
20304 interix[3-9]*)
20305 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20306 # hack all around it, let's just trust "g++" to DTRT.
20307 predep_objects_CXX=
20308 postdep_objects_CXX=
20309 postdeps_CXX=
20310 ;;
20311
20312 linux*)
20313 case `$CC -V 2>&1 | sed 5q` in
20314 *Sun\ C*)
20315 # Sun C++ 5.9
20316
20317 # The more standards-conforming stlport4 library is
20318 # incompatible with the Cstd library. Avoid specifying
20319 # it if it's in CXXFLAGS. Ignore libCrun as
20320 # -library=stlport4 depends on it.
20321 case " $CXX $CXXFLAGS " in
20322 *" -library=stlport4 "*)
20323 solaris_use_stlport4=yes
20324 ;;
20325 esac
20326
20327 if test "$solaris_use_stlport4" != yes; then
20328 postdeps_CXX='-library=Cstd -library=Crun'
20329 fi
20330 ;;
20331 esac
20332 ;;
20333
20334 solaris*)
20335 case $cc_basename in
20336 CC*)
20337 # The more standards-conforming stlport4 library is
20338 # incompatible with the Cstd library. Avoid specifying
20339 # it if it's in CXXFLAGS. Ignore libCrun as
20340 # -library=stlport4 depends on it.
20341 case " $CXX $CXXFLAGS " in
20342 *" -library=stlport4 "*)
20343 solaris_use_stlport4=yes
20344 ;;
20345 esac
20346
20347 # Adding this requires a known-good setup of shared libraries for
20348 # Sun compiler versions before 5.6, else PIC objects from an old
20349 # archive will be linked into the output, leading to subtle bugs.
20350 if test "$solaris_use_stlport4" != yes; then
20351 postdeps_CXX='-library=Cstd -library=Crun'
20352 fi
20353 ;;
20354 esac
20355 ;;
20356 esac
20357
20358
20359 case " $postdeps_CXX " in
20360 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20361 esac
20362 compiler_lib_search_dirs_CXX=
20363 if test -n "${compiler_lib_search_path_CXX}"; then
20364 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20365 fi
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397 lt_prog_compiler_wl_CXX=
20398 lt_prog_compiler_pic_CXX=
20399 lt_prog_compiler_static_CXX=
20400
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20402 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20403
20404 # C++ specific cases for pic, static, wl, etc.
20405 if test "$GXX" = yes; then
20406 lt_prog_compiler_wl_CXX='-Wl,'
20407 lt_prog_compiler_static_CXX='-static'
20408
20409 case $host_os in
20410 aix*)
20411 # All AIX code is PIC.
20412 if test "$host_cpu" = ia64; then
20413 # AIX 5 now supports IA64 processor
20414 lt_prog_compiler_static_CXX='-Bstatic'
20415 fi
20416 lt_prog_compiler_pic_CXX='-fPIC'
20417 ;;
20418
20419 amigaos*)
20420 case $host_cpu in
20421 powerpc)
20422 # see comment about AmigaOS4 .so support
20423 lt_prog_compiler_pic_CXX='-fPIC'
20424 ;;
20425 m68k)
20426 # FIXME: we need at least 68020 code to build shared libraries, but
20427 # adding the `-m68020' flag to GCC prevents building anything better,
20428 # like `-m68040'.
20429 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20430 ;;
20431 esac
20432 ;;
20433
20434 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20435 # PIC is the default for these OSes.
20436 ;;
20437 mingw* | cygwin* | os2* | pw32* | cegcc*)
20438 # This hack is so that the source file can tell whether it is being
20439 # built for inclusion in a dll (and should export symbols for example).
20440 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20441 # (--disable-auto-import) libraries
20442 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20443 ;;
20444 darwin* | rhapsody*)
20445 # PIC is the default on this platform
20446 # Common symbols not allowed in MH_DYLIB files
20447 lt_prog_compiler_pic_CXX='-fno-common'
20448 ;;
20449 *djgpp*)
20450 # DJGPP does not support shared libraries at all
20451 lt_prog_compiler_pic_CXX=
20452 ;;
20453 haiku*)
20454 # PIC is the default for Haiku.
20455 # The "-static" flag exists, but is broken.
20456 lt_prog_compiler_static_CXX=
20457 ;;
20458 interix[3-9]*)
20459 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20460 # Instead, we relocate shared libraries at runtime.
20461 ;;
20462 sysv4*MP*)
20463 if test -d /usr/nec; then
20464 lt_prog_compiler_pic_CXX=-Kconform_pic
20465 fi
20466 ;;
20467 hpux*)
20468 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20469 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20470 # sets the default TLS model and affects inlining.
20471 case $host_cpu in
20472 hppa*64*)
20473 ;;
20474 *)
20475 lt_prog_compiler_pic_CXX='-fPIC'
20476 ;;
20477 esac
20478 ;;
20479 *qnx* | *nto*)
20480 # QNX uses GNU C++, but need to define -shared option too, otherwise
20481 # it will coredump.
20482 lt_prog_compiler_pic_CXX='-fPIC -shared'
20483 ;;
20484 *)
20485 lt_prog_compiler_pic_CXX='-fPIC'
20486 ;;
20487 esac
20488 else
20489 case $host_os in
20490 aix[4-9]*)
20491 # All AIX code is PIC.
20492 if test "$host_cpu" = ia64; then
20493 # AIX 5 now supports IA64 processor
20494 lt_prog_compiler_static_CXX='-Bstatic'
20495 else
20496 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20497 fi
20498 ;;
20499 chorus*)
20500 case $cc_basename in
20501 cxch68*)
20502 # Green Hills C++ Compiler
20503 # _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"
20504 ;;
20505 esac
20506 ;;
20507 dgux*)
20508 case $cc_basename in
20509 ec++*)
20510 lt_prog_compiler_pic_CXX='-KPIC'
20511 ;;
20512 ghcx*)
20513 # Green Hills C++ Compiler
20514 lt_prog_compiler_pic_CXX='-pic'
20515 ;;
20516 *)
20517 ;;
20518 esac
20519 ;;
20520 freebsd* | dragonfly*)
20521 # FreeBSD uses GNU C++
20522 ;;
20523 hpux9* | hpux10* | hpux11*)
20524 case $cc_basename in
20525 CC*)
20526 lt_prog_compiler_wl_CXX='-Wl,'
20527 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20528 if test "$host_cpu" != ia64; then
20529 lt_prog_compiler_pic_CXX='+Z'
20530 fi
20531 ;;
20532 aCC*)
20533 lt_prog_compiler_wl_CXX='-Wl,'
20534 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20535 case $host_cpu in
20536 hppa*64*|ia64*)
20537 # +Z the default
20538 ;;
20539 *)
20540 lt_prog_compiler_pic_CXX='+Z'
20541 ;;
20542 esac
20543 ;;
20544 *)
20545 ;;
20546 esac
20547 ;;
20548 interix*)
20549 # This is c89, which is MS Visual C++ (no shared libs)
20550 # Anyone wants to do a port?
20551 ;;
20552 irix5* | irix6* | nonstopux*)
20553 case $cc_basename in
20554 CC*)
20555 lt_prog_compiler_wl_CXX='-Wl,'
20556 lt_prog_compiler_static_CXX='-non_shared'
20557 # CC pic flag -KPIC is the default.
20558 ;;
20559 *)
20560 ;;
20561 esac
20562 ;;
20563 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20564 case $cc_basename in
20565 KCC*)
20566 # KAI C++ Compiler
20567 lt_prog_compiler_wl_CXX='--backend -Wl,'
20568 lt_prog_compiler_pic_CXX='-fPIC'
20569 ;;
20570 ecpc* )
20571 # old Intel C++ for x86_64 which still supported -KPIC.
20572 lt_prog_compiler_wl_CXX='-Wl,'
20573 lt_prog_compiler_pic_CXX='-KPIC'
20574 lt_prog_compiler_static_CXX='-static'
20575 ;;
20576 icpc* )
20577 # Intel C++, used to be incompatible with GCC.
20578 # ICC 10 doesn't accept -KPIC any more.
20579 lt_prog_compiler_wl_CXX='-Wl,'
20580 lt_prog_compiler_pic_CXX='-fPIC'
20581 lt_prog_compiler_static_CXX='-static'
20582 ;;
20583 pgCC* | pgcpp*)
20584 # Portland Group C++ compiler
20585 lt_prog_compiler_wl_CXX='-Wl,'
20586 lt_prog_compiler_pic_CXX='-fpic'
20587 lt_prog_compiler_static_CXX='-Bstatic'
20588 ;;
20589 cxx*)
20590 # Compaq C++
20591 # Make sure the PIC flag is empty. It appears that all Alpha
20592 # Linux and Compaq Tru64 Unix objects are PIC.
20593 lt_prog_compiler_pic_CXX=
20594 lt_prog_compiler_static_CXX='-non_shared'
20595 ;;
20596 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20597 # IBM XL 8.0, 9.0 on PPC and BlueGene
20598 lt_prog_compiler_wl_CXX='-Wl,'
20599 lt_prog_compiler_pic_CXX='-qpic'
20600 lt_prog_compiler_static_CXX='-qstaticlink'
20601 ;;
20602 *)
20603 case `$CC -V 2>&1 | sed 5q` in
20604 *Sun\ C*)
20605 # Sun C++ 5.9
20606 lt_prog_compiler_pic_CXX='-KPIC'
20607 lt_prog_compiler_static_CXX='-Bstatic'
20608 lt_prog_compiler_wl_CXX='-Qoption ld '
20609 ;;
20610 esac
20611 ;;
20612 esac
20613 ;;
20614 lynxos*)
20615 ;;
20616 m88k*)
20617 ;;
20618 mvs*)
20619 case $cc_basename in
20620 cxx*)
20621 lt_prog_compiler_pic_CXX='-W c,exportall'
20622 ;;
20623 *)
20624 ;;
20625 esac
20626 ;;
20627 netbsd*)
20628 ;;
20629 *qnx* | *nto*)
20630 # QNX uses GNU C++, but need to define -shared option too, otherwise
20631 # it will coredump.
20632 lt_prog_compiler_pic_CXX='-fPIC -shared'
20633 ;;
20634 osf3* | osf4* | osf5*)
20635 case $cc_basename in
20636 KCC*)
20637 lt_prog_compiler_wl_CXX='--backend -Wl,'
20638 ;;
20639 RCC*)
20640 # Rational C++ 2.4.1
20641 lt_prog_compiler_pic_CXX='-pic'
20642 ;;
20643 cxx*)
20644 # Digital/Compaq C++
20645 lt_prog_compiler_wl_CXX='-Wl,'
20646 # Make sure the PIC flag is empty. It appears that all Alpha
20647 # Linux and Compaq Tru64 Unix objects are PIC.
20648 lt_prog_compiler_pic_CXX=
20649 lt_prog_compiler_static_CXX='-non_shared'
20650 ;;
20651 *)
20652 ;;
20653 esac
20654 ;;
20655 psos*)
20656 ;;
20657 solaris*)
20658 case $cc_basename in
20659 CC*)
20660 # Sun C++ 4.2, 5.x and Centerline C++
20661 lt_prog_compiler_pic_CXX='-KPIC'
20662 lt_prog_compiler_static_CXX='-Bstatic'
20663 lt_prog_compiler_wl_CXX='-Qoption ld '
20664 ;;
20665 gcx*)
20666 # Green Hills C++ Compiler
20667 lt_prog_compiler_pic_CXX='-PIC'
20668 ;;
20669 *)
20670 ;;
20671 esac
20672 ;;
20673 sunos4*)
20674 case $cc_basename in
20675 CC*)
20676 # Sun C++ 4.x
20677 lt_prog_compiler_pic_CXX='-pic'
20678 lt_prog_compiler_static_CXX='-Bstatic'
20679 ;;
20680 lcc*)
20681 # Lucid
20682 lt_prog_compiler_pic_CXX='-pic'
20683 ;;
20684 *)
20685 ;;
20686 esac
20687 ;;
20688 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20689 case $cc_basename in
20690 CC*)
20691 lt_prog_compiler_wl_CXX='-Wl,'
20692 lt_prog_compiler_pic_CXX='-KPIC'
20693 lt_prog_compiler_static_CXX='-Bstatic'
20694 ;;
20695 esac
20696 ;;
20697 tandem*)
20698 case $cc_basename in
20699 NCC*)
20700 # NonStop-UX NCC 3.20
20701 lt_prog_compiler_pic_CXX='-KPIC'
20702 ;;
20703 *)
20704 ;;
20705 esac
20706 ;;
20707 vxworks*)
20708 ;;
20709 *)
20710 lt_prog_compiler_can_build_shared_CXX=no
20711 ;;
20712 esac
20713 fi
20714
20715 case $host_os in
20716 # For platforms which do not support PIC, -DPIC is meaningless:
20717 *djgpp*)
20718 lt_prog_compiler_pic_CXX=
20719 ;;
20720 *)
20721 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20722 ;;
20723 esac
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20725 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20726
20727
20728
20729 #
20730 # Check to make sure the PIC flag actually works.
20731 #
20732 if test -n "$lt_prog_compiler_pic_CXX"; then
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20734 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20735 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20736 $as_echo_n "(cached) " >&6
20737 else
20738 lt_cv_prog_compiler_pic_works_CXX=no
20739 ac_outfile=conftest.$ac_objext
20740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20741 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20742 # Insert the option either (1) after the last *FLAGS variable, or
20743 # (2) before a word containing "conftest.", or (3) at the end.
20744 # Note that $ac_compile itself does not contain backslashes and begins
20745 # with a dollar sign (not a hyphen), so the echo should work correctly.
20746 # The option is referenced via a variable to avoid confusing sed.
20747 lt_compile=`echo "$ac_compile" | $SED \
20748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20750 -e 's:$: $lt_compiler_flag:'`
20751 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20752 (eval "$lt_compile" 2>conftest.err)
20753 ac_status=$?
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 if (exit $ac_status) && test -s "$ac_outfile"; then
20757 # The compiler can only warn and ignore the option if not recognized
20758 # So say no if there are warnings other than the usual output.
20759 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20761 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20762 lt_cv_prog_compiler_pic_works_CXX=yes
20763 fi
20764 fi
20765 $RM conftest*
20766
20767 fi
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20769 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20770
20771 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20772 case $lt_prog_compiler_pic_CXX in
20773 "" | " "*) ;;
20774 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20775 esac
20776 else
20777 lt_prog_compiler_pic_CXX=
20778 lt_prog_compiler_can_build_shared_CXX=no
20779 fi
20780
20781 fi
20782
20783
20784
20785 #
20786 # Check to make sure the static flag actually works.
20787 #
20788 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20790 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20791 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20792 $as_echo_n "(cached) " >&6
20793 else
20794 lt_cv_prog_compiler_static_works_CXX=no
20795 save_LDFLAGS="$LDFLAGS"
20796 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20797 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20798 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20799 # The linker can only warn and ignore the option if not recognized
20800 # So say no if there are warnings
20801 if test -s conftest.err; then
20802 # Append any errors to the config.log.
20803 cat conftest.err 1>&5
20804 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20806 if diff conftest.exp conftest.er2 >/dev/null; then
20807 lt_cv_prog_compiler_static_works_CXX=yes
20808 fi
20809 else
20810 lt_cv_prog_compiler_static_works_CXX=yes
20811 fi
20812 fi
20813 $RM -r conftest*
20814 LDFLAGS="$save_LDFLAGS"
20815
20816 fi
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20818 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20819
20820 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20821 :
20822 else
20823 lt_prog_compiler_static_CXX=
20824 fi
20825
20826
20827
20828
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20830 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20831 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20832 $as_echo_n "(cached) " >&6
20833 else
20834 lt_cv_prog_compiler_c_o_CXX=no
20835 $RM -r conftest 2>/dev/null
20836 mkdir conftest
20837 cd conftest
20838 mkdir out
20839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20840
20841 lt_compiler_flag="-o out/conftest2.$ac_objext"
20842 # Insert the option either (1) after the last *FLAGS variable, or
20843 # (2) before a word containing "conftest.", or (3) at the end.
20844 # Note that $ac_compile itself does not contain backslashes and begins
20845 # with a dollar sign (not a hyphen), so the echo should work correctly.
20846 lt_compile=`echo "$ac_compile" | $SED \
20847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20849 -e 's:$: $lt_compiler_flag:'`
20850 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20851 (eval "$lt_compile" 2>out/conftest.err)
20852 ac_status=$?
20853 cat out/conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20856 then
20857 # The compiler can only warn and ignore the option if not recognized
20858 # So say no if there are warnings
20859 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20860 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20861 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20862 lt_cv_prog_compiler_c_o_CXX=yes
20863 fi
20864 fi
20865 chmod u+w . 2>&5
20866 $RM conftest*
20867 # SGI C++ compiler will create directory out/ii_files/ for
20868 # template instantiation
20869 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20870 $RM out/* && rmdir out
20871 cd ..
20872 $RM -r conftest
20873 $RM conftest*
20874
20875 fi
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20877 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20878
20879
20880
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20882 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20883 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20884 $as_echo_n "(cached) " >&6
20885 else
20886 lt_cv_prog_compiler_c_o_CXX=no
20887 $RM -r conftest 2>/dev/null
20888 mkdir conftest
20889 cd conftest
20890 mkdir out
20891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20892
20893 lt_compiler_flag="-o out/conftest2.$ac_objext"
20894 # Insert the option either (1) after the last *FLAGS variable, or
20895 # (2) before a word containing "conftest.", or (3) at the end.
20896 # Note that $ac_compile itself does not contain backslashes and begins
20897 # with a dollar sign (not a hyphen), so the echo should work correctly.
20898 lt_compile=`echo "$ac_compile" | $SED \
20899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20901 -e 's:$: $lt_compiler_flag:'`
20902 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20903 (eval "$lt_compile" 2>out/conftest.err)
20904 ac_status=$?
20905 cat out/conftest.err >&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20908 then
20909 # The compiler can only warn and ignore the option if not recognized
20910 # So say no if there are warnings
20911 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20913 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20914 lt_cv_prog_compiler_c_o_CXX=yes
20915 fi
20916 fi
20917 chmod u+w . 2>&5
20918 $RM conftest*
20919 # SGI C++ compiler will create directory out/ii_files/ for
20920 # template instantiation
20921 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20922 $RM out/* && rmdir out
20923 cd ..
20924 $RM -r conftest
20925 $RM conftest*
20926
20927 fi
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20929 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20930
20931
20932
20933
20934 hard_links="nottested"
20935 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20936 # do not overwrite the value of need_locks provided by the user
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20938 $as_echo_n "checking if we can lock with hard links... " >&6; }
20939 hard_links=yes
20940 $RM conftest*
20941 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20942 touch conftest.a
20943 ln conftest.a conftest.b 2>&5 || hard_links=no
20944 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20946 $as_echo "$hard_links" >&6; }
20947 if test "$hard_links" = no; then
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20949 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20950 need_locks=warn
20951 fi
20952 else
20953 need_locks=no
20954 fi
20955
20956
20957
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20959 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20960
20961 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20962 case $host_os in
20963 aix[4-9]*)
20964 # If we're using GNU nm, then we don't want the "-C" option.
20965 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20966 # Also, AIX nm treats weak defined symbols like other global defined
20967 # symbols, whereas GNU nm marks them as "W".
20968 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20969 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'
20970 else
20971 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'
20972 fi
20973 ;;
20974 pw32*)
20975 export_symbols_cmds_CXX="$ltdll_cmds"
20976 ;;
20977 cygwin* | mingw* | cegcc*)
20978 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'
20979 ;;
20980 *)
20981 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20982 ;;
20983 esac
20984 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20985
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20987 $as_echo "$ld_shlibs_CXX" >&6; }
20988 test "$ld_shlibs_CXX" = no && can_build_shared=no
20989
20990 with_gnu_ld_CXX=$with_gnu_ld
20991
20992
20993
20994
20995
20996
20997 #
20998 # Do we need to explicitly link libc?
20999 #
21000 case "x$archive_cmds_need_lc_CXX" in
21001 x|xyes)
21002 # Assume -lc should be added
21003 archive_cmds_need_lc_CXX=yes
21004
21005 if test "$enable_shared" = yes && test "$GCC" = yes; then
21006 case $archive_cmds_CXX in
21007 *'~'*)
21008 # FIXME: we may have to deal with multi-command sequences.
21009 ;;
21010 '$CC '*)
21011 # Test whether the compiler implicitly links with -lc since on some
21012 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21013 # to ld, don't add -lc before -lgcc.
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21015 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21016 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
21017 $as_echo_n "(cached) " >&6
21018 else
21019 $RM conftest*
21020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21021
21022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21023 (eval $ac_compile) 2>&5
21024 ac_status=$?
21025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21026 test $ac_status = 0; } 2>conftest.err; then
21027 soname=conftest
21028 lib=conftest
21029 libobjs=conftest.$ac_objext
21030 deplibs=
21031 wl=$lt_prog_compiler_wl_CXX
21032 pic_flag=$lt_prog_compiler_pic_CXX
21033 compiler_flags=-v
21034 linker_flags=-v
21035 verstring=
21036 output_objdir=.
21037 libname=conftest
21038 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21039 allow_undefined_flag_CXX=
21040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21041 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21042 ac_status=$?
21043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21044 test $ac_status = 0; }
21045 then
21046 lt_cv_archive_cmds_need_lc_CXX=no
21047 else
21048 lt_cv_archive_cmds_need_lc_CXX=yes
21049 fi
21050 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21051 else
21052 cat conftest.err 1>&5
21053 fi
21054 $RM conftest*
21055
21056 fi
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21058 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21059 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21060 ;;
21061 esac
21062 fi
21063 ;;
21064 esac
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
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21130 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21131
21132 library_names_spec=
21133 libname_spec='lib$name'
21134 soname_spec=
21135 shrext_cmds=".so"
21136 postinstall_cmds=
21137 postuninstall_cmds=
21138 finish_cmds=
21139 finish_eval=
21140 shlibpath_var=
21141 shlibpath_overrides_runpath=unknown
21142 version_type=none
21143 dynamic_linker="$host_os ld.so"
21144 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21145 need_lib_prefix=unknown
21146 hardcode_into_libs=no
21147
21148 # when you set need_version to no, make sure it does not cause -set_version
21149 # flags to be left without arguments
21150 need_version=unknown
21151
21152 case $host_os in
21153 aix3*)
21154 version_type=linux
21155 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21156 shlibpath_var=LIBPATH
21157
21158 # AIX 3 has no versioning support, so we append a major version to the name.
21159 soname_spec='${libname}${release}${shared_ext}$major'
21160 ;;
21161
21162 aix[4-9]*)
21163 version_type=linux
21164 need_lib_prefix=no
21165 need_version=no
21166 hardcode_into_libs=yes
21167 if test "$host_cpu" = ia64; then
21168 # AIX 5 supports IA64
21169 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21170 shlibpath_var=LD_LIBRARY_PATH
21171 else
21172 # With GCC up to 2.95.x, collect2 would create an import file
21173 # for dependence libraries. The import file would start with
21174 # the line `#! .'. This would cause the generated library to
21175 # depend on `.', always an invalid library. This was fixed in
21176 # development snapshots of GCC prior to 3.0.
21177 case $host_os in
21178 aix4 | aix4.[01] | aix4.[01].*)
21179 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21180 echo ' yes '
21181 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21182 :
21183 else
21184 can_build_shared=no
21185 fi
21186 ;;
21187 esac
21188 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21189 # soname into executable. Probably we can add versioning support to
21190 # collect2, so additional links can be useful in future.
21191 if test "$aix_use_runtimelinking" = yes; then
21192 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21193 # instead of lib<name>.a to let people know that these are not
21194 # typical AIX shared libraries.
21195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21196 else
21197 # We preserve .a as extension for shared libraries through AIX4.2
21198 # and later when we are not doing run time linking.
21199 library_names_spec='${libname}${release}.a $libname.a'
21200 soname_spec='${libname}${release}${shared_ext}$major'
21201 fi
21202 shlibpath_var=LIBPATH
21203 fi
21204 ;;
21205
21206 amigaos*)
21207 case $host_cpu in
21208 powerpc)
21209 # Since July 2007 AmigaOS4 officially supports .so libraries.
21210 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21212 ;;
21213 m68k)
21214 library_names_spec='$libname.ixlibrary $libname.a'
21215 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21216 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'
21217 ;;
21218 esac
21219 ;;
21220
21221 beos*)
21222 library_names_spec='${libname}${shared_ext}'
21223 dynamic_linker="$host_os ld.so"
21224 shlibpath_var=LIBRARY_PATH
21225 ;;
21226
21227 bsdi[45]*)
21228 version_type=linux
21229 need_version=no
21230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21231 soname_spec='${libname}${release}${shared_ext}$major'
21232 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21233 shlibpath_var=LD_LIBRARY_PATH
21234 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21235 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21236 # the default ld.so.conf also contains /usr/contrib/lib and
21237 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21238 # libtool to hard-code these into programs
21239 ;;
21240
21241 cygwin* | mingw* | pw32* | cegcc*)
21242 version_type=windows
21243 shrext_cmds=".dll"
21244 need_version=no
21245 need_lib_prefix=no
21246
21247 case $GCC,$host_os in
21248 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21249 library_names_spec='$libname.dll.a'
21250 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21251 postinstall_cmds='base_file=`basename \${file}`~
21252 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21253 dldir=$destdir/`dirname \$dlpath`~
21254 test -d \$dldir || mkdir -p \$dldir~
21255 $install_prog $dir/$dlname \$dldir/$dlname~
21256 chmod a+x \$dldir/$dlname~
21257 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21258 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21259 fi'
21260 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21261 dlpath=$dir/\$dldll~
21262 $RM \$dlpath'
21263 shlibpath_overrides_runpath=yes
21264
21265 case $host_os in
21266 cygwin*)
21267 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21268 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21269
21270 ;;
21271 mingw* | cegcc*)
21272 # MinGW DLLs use traditional 'lib' prefix
21273 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21274 ;;
21275 pw32*)
21276 # pw32 DLLs use 'pw' prefix rather than 'lib'
21277 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21278 ;;
21279 esac
21280 ;;
21281
21282 *)
21283 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21284 ;;
21285 esac
21286 dynamic_linker='Win32 ld.exe'
21287 # FIXME: first we should search . and the directory the executable is in
21288 shlibpath_var=PATH
21289 ;;
21290
21291 darwin* | rhapsody*)
21292 dynamic_linker="$host_os dyld"
21293 version_type=darwin
21294 need_lib_prefix=no
21295 need_version=no
21296 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21297 soname_spec='${libname}${release}${major}$shared_ext'
21298 shlibpath_overrides_runpath=yes
21299 shlibpath_var=DYLD_LIBRARY_PATH
21300 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21301
21302 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21303 ;;
21304
21305 dgux*)
21306 version_type=linux
21307 need_lib_prefix=no
21308 need_version=no
21309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21310 soname_spec='${libname}${release}${shared_ext}$major'
21311 shlibpath_var=LD_LIBRARY_PATH
21312 ;;
21313
21314 freebsd* | dragonfly*)
21315 # DragonFly does not have aout. When/if they implement a new
21316 # versioning mechanism, adjust this.
21317 if test -x /usr/bin/objformat; then
21318 objformat=`/usr/bin/objformat`
21319 else
21320 case $host_os in
21321 freebsd[23].*) objformat=aout ;;
21322 *) objformat=elf ;;
21323 esac
21324 fi
21325 version_type=freebsd-$objformat
21326 case $version_type in
21327 freebsd-elf*)
21328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21329 need_version=no
21330 need_lib_prefix=no
21331 ;;
21332 freebsd-*)
21333 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21334 need_version=yes
21335 ;;
21336 esac
21337 shlibpath_var=LD_LIBRARY_PATH
21338 case $host_os in
21339 freebsd2.*)
21340 shlibpath_overrides_runpath=yes
21341 ;;
21342 freebsd3.[01]* | freebsdelf3.[01]*)
21343 shlibpath_overrides_runpath=yes
21344 hardcode_into_libs=yes
21345 ;;
21346 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21347 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21348 shlibpath_overrides_runpath=no
21349 hardcode_into_libs=yes
21350 ;;
21351 *) # from 4.6 on, and DragonFly
21352 shlibpath_overrides_runpath=yes
21353 hardcode_into_libs=yes
21354 ;;
21355 esac
21356 ;;
21357
21358 gnu*)
21359 version_type=linux
21360 need_lib_prefix=no
21361 need_version=no
21362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21363 soname_spec='${libname}${release}${shared_ext}$major'
21364 shlibpath_var=LD_LIBRARY_PATH
21365 hardcode_into_libs=yes
21366 ;;
21367
21368 haiku*)
21369 version_type=linux
21370 need_lib_prefix=no
21371 need_version=no
21372 dynamic_linker="$host_os runtime_loader"
21373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21374 soname_spec='${libname}${release}${shared_ext}$major'
21375 shlibpath_var=LIBRARY_PATH
21376 shlibpath_overrides_runpath=yes
21377 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21378 hardcode_into_libs=yes
21379 ;;
21380
21381 hpux9* | hpux10* | hpux11*)
21382 # Give a soname corresponding to the major version so that dld.sl refuses to
21383 # link against other versions.
21384 version_type=sunos
21385 need_lib_prefix=no
21386 need_version=no
21387 case $host_cpu in
21388 ia64*)
21389 shrext_cmds='.so'
21390 hardcode_into_libs=yes
21391 dynamic_linker="$host_os dld.so"
21392 shlibpath_var=LD_LIBRARY_PATH
21393 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21395 soname_spec='${libname}${release}${shared_ext}$major'
21396 if test "X$HPUX_IA64_MODE" = X32; then
21397 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21398 else
21399 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21400 fi
21401 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21402 ;;
21403 hppa*64*)
21404 shrext_cmds='.sl'
21405 hardcode_into_libs=yes
21406 dynamic_linker="$host_os dld.sl"
21407 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21408 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21410 soname_spec='${libname}${release}${shared_ext}$major'
21411 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21412 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21413 ;;
21414 *)
21415 shrext_cmds='.sl'
21416 dynamic_linker="$host_os dld.sl"
21417 shlibpath_var=SHLIB_PATH
21418 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21420 soname_spec='${libname}${release}${shared_ext}$major'
21421 ;;
21422 esac
21423 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21424 postinstall_cmds='chmod 555 $lib'
21425 # or fails outright, so override atomically:
21426 install_override_mode=555
21427 ;;
21428
21429 interix[3-9]*)
21430 version_type=linux
21431 need_lib_prefix=no
21432 need_version=no
21433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21434 soname_spec='${libname}${release}${shared_ext}$major'
21435 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21436 shlibpath_var=LD_LIBRARY_PATH
21437 shlibpath_overrides_runpath=no
21438 hardcode_into_libs=yes
21439 ;;
21440
21441 irix5* | irix6* | nonstopux*)
21442 case $host_os in
21443 nonstopux*) version_type=nonstopux ;;
21444 *)
21445 if test "$lt_cv_prog_gnu_ld" = yes; then
21446 version_type=linux
21447 else
21448 version_type=irix
21449 fi ;;
21450 esac
21451 need_lib_prefix=no
21452 need_version=no
21453 soname_spec='${libname}${release}${shared_ext}$major'
21454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21455 case $host_os in
21456 irix5* | nonstopux*)
21457 libsuff= shlibsuff=
21458 ;;
21459 *)
21460 case $LD in # libtool.m4 will add one of these switches to LD
21461 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21462 libsuff= shlibsuff= libmagic=32-bit;;
21463 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21464 libsuff=32 shlibsuff=N32 libmagic=N32;;
21465 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21466 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21467 *) libsuff= shlibsuff= libmagic=never-match;;
21468 esac
21469 ;;
21470 esac
21471 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21472 shlibpath_overrides_runpath=no
21473 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21474 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21475 hardcode_into_libs=yes
21476 ;;
21477
21478 # No shared lib support for Linux oldld, aout, or coff.
21479 linux*oldld* | linux*aout* | linux*coff*)
21480 dynamic_linker=no
21481 ;;
21482
21483 # This must be Linux ELF.
21484 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21485 version_type=linux
21486 need_lib_prefix=no
21487 need_version=no
21488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21489 soname_spec='${libname}${release}${shared_ext}$major'
21490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21491 shlibpath_var=LD_LIBRARY_PATH
21492 shlibpath_overrides_runpath=no
21493
21494 # Some binutils ld are patched to set DT_RUNPATH
21495 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21496 $as_echo_n "(cached) " >&6
21497 else
21498 lt_cv_shlibpath_overrides_runpath=no
21499 save_LDFLAGS=$LDFLAGS
21500 save_libdir=$libdir
21501 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21502 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21504 /* end confdefs.h. */
21505
21506 int
21507 main ()
21508 {
21509
21510 ;
21511 return 0;
21512 }
21513 _ACEOF
21514 if ac_fn_cxx_try_link "$LINENO"; then :
21515 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21516 lt_cv_shlibpath_overrides_runpath=yes
21517 fi
21518 fi
21519 rm -f core conftest.err conftest.$ac_objext \
21520 conftest$ac_exeext conftest.$ac_ext
21521 LDFLAGS=$save_LDFLAGS
21522 libdir=$save_libdir
21523
21524 fi
21525
21526 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21527
21528 # This implies no fast_install, which is unacceptable.
21529 # Some rework will be needed to allow for fast_install
21530 # before this can be enabled.
21531 hardcode_into_libs=yes
21532
21533 # Append ld.so.conf contents to the search path
21534 if test -f /etc/ld.so.conf; then
21535 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' ' '`
21536 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21537 fi
21538
21539 # We used to test for /lib/ld.so.1 and disable shared libraries on
21540 # powerpc, because MkLinux only supported shared libraries with the
21541 # GNU dynamic linker. Since this was broken with cross compilers,
21542 # most powerpc-linux boxes support dynamic linking these days and
21543 # people can always --disable-shared, the test was removed, and we
21544 # assume the GNU/Linux dynamic linker is in use.
21545 dynamic_linker='GNU/Linux ld.so'
21546 ;;
21547
21548 netbsd*)
21549 version_type=sunos
21550 need_lib_prefix=no
21551 need_version=no
21552 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21555 dynamic_linker='NetBSD (a.out) ld.so'
21556 else
21557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21558 soname_spec='${libname}${release}${shared_ext}$major'
21559 dynamic_linker='NetBSD ld.elf_so'
21560 fi
21561 shlibpath_var=LD_LIBRARY_PATH
21562 shlibpath_overrides_runpath=yes
21563 hardcode_into_libs=yes
21564 ;;
21565
21566 newsos6)
21567 version_type=linux
21568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21569 shlibpath_var=LD_LIBRARY_PATH
21570 shlibpath_overrides_runpath=yes
21571 ;;
21572
21573 *nto* | *qnx*)
21574 version_type=qnx
21575 need_lib_prefix=no
21576 need_version=no
21577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21578 soname_spec='${libname}${release}${shared_ext}$major'
21579 shlibpath_var=LD_LIBRARY_PATH
21580 shlibpath_overrides_runpath=no
21581 hardcode_into_libs=yes
21582 dynamic_linker='ldqnx.so'
21583 ;;
21584
21585 openbsd*)
21586 version_type=sunos
21587 sys_lib_dlsearch_path_spec="/usr/lib"
21588 need_lib_prefix=no
21589 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21590 case $host_os in
21591 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21592 *) need_version=no ;;
21593 esac
21594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21596 shlibpath_var=LD_LIBRARY_PATH
21597 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21598 case $host_os in
21599 openbsd2.[89] | openbsd2.[89].*)
21600 shlibpath_overrides_runpath=no
21601 ;;
21602 *)
21603 shlibpath_overrides_runpath=yes
21604 ;;
21605 esac
21606 else
21607 shlibpath_overrides_runpath=yes
21608 fi
21609 ;;
21610
21611 os2*)
21612 libname_spec='$name'
21613 shrext_cmds=".dll"
21614 need_lib_prefix=no
21615 library_names_spec='$libname${shared_ext} $libname.a'
21616 dynamic_linker='OS/2 ld.exe'
21617 shlibpath_var=LIBPATH
21618 ;;
21619
21620 osf3* | osf4* | osf5*)
21621 version_type=osf
21622 need_lib_prefix=no
21623 need_version=no
21624 soname_spec='${libname}${release}${shared_ext}$major'
21625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21626 shlibpath_var=LD_LIBRARY_PATH
21627 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21628 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21629 ;;
21630
21631 rdos*)
21632 dynamic_linker=no
21633 ;;
21634
21635 solaris*)
21636 version_type=linux
21637 need_lib_prefix=no
21638 need_version=no
21639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21640 soname_spec='${libname}${release}${shared_ext}$major'
21641 shlibpath_var=LD_LIBRARY_PATH
21642 shlibpath_overrides_runpath=yes
21643 hardcode_into_libs=yes
21644 # ldd complains unless libraries are executable
21645 postinstall_cmds='chmod +x $lib'
21646 ;;
21647
21648 sunos4*)
21649 version_type=sunos
21650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21651 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21652 shlibpath_var=LD_LIBRARY_PATH
21653 shlibpath_overrides_runpath=yes
21654 if test "$with_gnu_ld" = yes; then
21655 need_lib_prefix=no
21656 fi
21657 need_version=yes
21658 ;;
21659
21660 sysv4 | sysv4.3*)
21661 version_type=linux
21662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21663 soname_spec='${libname}${release}${shared_ext}$major'
21664 shlibpath_var=LD_LIBRARY_PATH
21665 case $host_vendor in
21666 sni)
21667 shlibpath_overrides_runpath=no
21668 need_lib_prefix=no
21669 runpath_var=LD_RUN_PATH
21670 ;;
21671 siemens)
21672 need_lib_prefix=no
21673 ;;
21674 motorola)
21675 need_lib_prefix=no
21676 need_version=no
21677 shlibpath_overrides_runpath=no
21678 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21679 ;;
21680 esac
21681 ;;
21682
21683 sysv4*MP*)
21684 if test -d /usr/nec ;then
21685 version_type=linux
21686 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21687 soname_spec='$libname${shared_ext}.$major'
21688 shlibpath_var=LD_LIBRARY_PATH
21689 fi
21690 ;;
21691
21692 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21693 version_type=freebsd-elf
21694 need_lib_prefix=no
21695 need_version=no
21696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21697 soname_spec='${libname}${release}${shared_ext}$major'
21698 shlibpath_var=LD_LIBRARY_PATH
21699 shlibpath_overrides_runpath=yes
21700 hardcode_into_libs=yes
21701 if test "$with_gnu_ld" = yes; then
21702 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21703 else
21704 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21705 case $host_os in
21706 sco3.2v5*)
21707 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21708 ;;
21709 esac
21710 fi
21711 sys_lib_dlsearch_path_spec='/usr/lib'
21712 ;;
21713
21714 tpf*)
21715 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21716 version_type=linux
21717 need_lib_prefix=no
21718 need_version=no
21719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21720 shlibpath_var=LD_LIBRARY_PATH
21721 shlibpath_overrides_runpath=no
21722 hardcode_into_libs=yes
21723 ;;
21724
21725 uts4*)
21726 version_type=linux
21727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21728 soname_spec='${libname}${release}${shared_ext}$major'
21729 shlibpath_var=LD_LIBRARY_PATH
21730 ;;
21731
21732 *)
21733 dynamic_linker=no
21734 ;;
21735 esac
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21737 $as_echo "$dynamic_linker" >&6; }
21738 test "$dynamic_linker" = no && can_build_shared=no
21739
21740 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21741 if test "$GCC" = yes; then
21742 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21743 fi
21744
21745 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21746 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21747 fi
21748 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21749 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21750 fi
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787
21788
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21790 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21791 hardcode_action_CXX=
21792 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21793 test -n "$runpath_var_CXX" ||
21794 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21795
21796 # We can hardcode non-existent directories.
21797 if test "$hardcode_direct_CXX" != no &&
21798 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21799 # have to relink, otherwise we might link with an installed library
21800 # when we should be linking with a yet-to-be-installed one
21801 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21802 test "$hardcode_minus_L_CXX" != no; then
21803 # Linking always hardcodes the temporary library directory.
21804 hardcode_action_CXX=relink
21805 else
21806 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21807 hardcode_action_CXX=immediate
21808 fi
21809 else
21810 # We cannot hardcode anything, or else we can only hardcode existing
21811 # directories.
21812 hardcode_action_CXX=unsupported
21813 fi
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21815 $as_echo "$hardcode_action_CXX" >&6; }
21816
21817 if test "$hardcode_action_CXX" = relink ||
21818 test "$inherit_rpath_CXX" = yes; then
21819 # Fast installation is not supported
21820 enable_fast_install=no
21821 elif test "$shlibpath_overrides_runpath" = yes ||
21822 test "$enable_shared" = no; then
21823 # Fast installation is not necessary
21824 enable_fast_install=needless
21825 fi
21826
21827
21828
21829
21830
21831
21832
21833 fi # test -n "$compiler"
21834
21835 CC=$lt_save_CC
21836 LDCXX=$LD
21837 LD=$lt_save_LD
21838 GCC=$lt_save_GCC
21839 with_gnu_ld=$lt_save_with_gnu_ld
21840 lt_cv_path_LDCXX=$lt_cv_path_LD
21841 lt_cv_path_LD=$lt_save_path_LD
21842 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21843 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21844 fi # test "$_lt_caught_CXX_error" != yes
21845
21846 ac_ext=cpp
21847 ac_cpp='$CXXCPP $CPPFLAGS'
21848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867 # Only expand once:
21868
21869
21870
21871
21872
21873 # Identify the assembler which will work hand-in-glove with the newly
21874 # built GCC, so that we can examine its features. This is the assembler
21875 # which will be driven by the driver program.
21876 #
21877 # If build != host, and we aren't building gas in-tree, we identify a
21878 # build->target assembler and hope that it will have the same features
21879 # as the host->target assembler we'll be using.
21880 gcc_cv_gas_major_version=
21881 gcc_cv_gas_minor_version=
21882 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21883
21884 if test "${gcc_cv_as+set}" = set; then :
21885
21886 else
21887
21888 if test -x "$DEFAULT_ASSEMBLER"; then
21889 gcc_cv_as="$DEFAULT_ASSEMBLER"
21890 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21891 && test -f ../gas/Makefile \
21892 && test x$build = x$host; then
21893 gcc_cv_as=../gas/as-new$build_exeext
21894 elif test -x as$build_exeext; then
21895 # Build using assembler in the current directory.
21896 gcc_cv_as=./as$build_exeext
21897 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21898 gcc_cv_as="$AS_FOR_TARGET"
21899 else
21900 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21901 set dummy $AS_FOR_TARGET; ac_word=$2
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21903 $as_echo_n "checking for $ac_word... " >&6; }
21904 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21905 $as_echo_n "(cached) " >&6
21906 else
21907 case $gcc_cv_as in
21908 [\\/]* | ?:[\\/]*)
21909 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21910 ;;
21911 *)
21912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21913 for as_dir in $PATH
21914 do
21915 IFS=$as_save_IFS
21916 test -z "$as_dir" && as_dir=.
21917 for ac_exec_ext in '' $ac_executable_extensions; do
21918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21919 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21921 break 2
21922 fi
21923 done
21924 done
21925 IFS=$as_save_IFS
21926
21927 ;;
21928 esac
21929 fi
21930 gcc_cv_as=$ac_cv_path_gcc_cv_as
21931 if test -n "$gcc_cv_as"; then
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21933 $as_echo "$gcc_cv_as" >&6; }
21934 else
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21936 $as_echo "no" >&6; }
21937 fi
21938
21939
21940 fi
21941 fi
21942
21943 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21944
21945 case "$ORIGINAL_AS_FOR_TARGET" in
21946 ./as | ./as$build_exeext) ;;
21947 *) ac_config_files="$ac_config_files as:exec-tool.in"
21948 ;;
21949 esac
21950
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21952 $as_echo_n "checking what assembler to use... " >&6; }
21953 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21954 # Single tree build which includes gas. We want to prefer it
21955 # over whatever linker top-level may have detected, since
21956 # we'll use what we're building after installation anyway.
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21958 $as_echo "newly built gas" >&6; }
21959 in_tree_gas=yes
21960 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21961 for f in $gcc_cv_as_bfd_srcdir/configure \
21962 $gcc_cv_as_gas_srcdir/configure \
21963 $gcc_cv_as_gas_srcdir/configure.ac \
21964 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21965 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21966 if test x$gcc_cv_gas_version != x; then
21967 break
21968 fi
21969 done
21970 case $gcc_cv_gas_version in
21971 VERSION=[0-9]*) ;;
21972 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21973 esac
21974 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21975 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21976 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21977 case $gcc_cv_gas_patch_version in
21978 "") gcc_cv_gas_patch_version="0" ;;
21979 esac
21980 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21981 + $gcc_cv_gas_minor_version \) \* 1000 \
21982 + $gcc_cv_gas_patch_version`
21983
21984 in_tree_gas_is_elf=no
21985 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21986 || (grep 'obj_format = multi' ../gas/Makefile \
21987 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21988 then
21989 in_tree_gas_is_elf=yes
21990 fi
21991 else
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21993 $as_echo "$gcc_cv_as" >&6; }
21994 in_tree_gas=no
21995 fi
21996
21997 default_ld=
21998 # Check whether --enable-ld was given.
21999 if test "${enable_ld+set}" = set; then :
22000 enableval=$enable_ld; case "${enableval}" in
22001 no)
22002 default_ld=ld.gold
22003 ;;
22004 esac
22005 fi
22006
22007
22008 install_gold_as_default=no
22009 # Check whether --enable-gold was given.
22010 if test "${enable_gold+set}" = set; then :
22011 enableval=$enable_gold; case "${enableval}" in
22012 default)
22013 install_gold_as_default=yes
22014 ;;
22015 yes)
22016 if test x${default_ld} != x; then
22017 install_gold_as_default=yes
22018 fi
22019 ;;
22020 no)
22021 ;;
22022 *)
22023 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
22024 ;;
22025 esac
22026 fi
22027
22028
22029 # Identify the linker which will work hand-in-glove with the newly
22030 # built GCC, so that we can examine its features. This is the linker
22031 # which will be driven by the driver program.
22032 #
22033 # If build != host, and we aren't building gas in-tree, we identify a
22034 # build->target linker and hope that it will have the same features
22035 # as the host->target linker we'll be using.
22036 gcc_cv_gld_major_version=
22037 gcc_cv_gld_minor_version=
22038 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22039 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22040 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22041
22042 if test "${gcc_cv_ld+set}" = set; then :
22043
22044 else
22045
22046 if test -x "$DEFAULT_LINKER"; then
22047 gcc_cv_ld="$DEFAULT_LINKER"
22048 elif test $install_gold_as_default = yes \
22049 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22050 && test -f ../gold/Makefile \
22051 && test x$build = x$host; then
22052 gcc_cv_ld=../gold/ld-new$build_exeext
22053 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22054 && test -f ../ld/Makefile \
22055 && test x$build = x$host; then
22056 gcc_cv_ld=../ld/ld-new$build_exeext
22057 elif test -x collect-ld$build_exeext; then
22058 # Build using linker in the current directory.
22059 gcc_cv_ld=./collect-ld$build_exeext
22060 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22061 gcc_cv_ld="$LD_FOR_TARGET"
22062 else
22063 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22064 set dummy $LD_FOR_TARGET; ac_word=$2
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22066 $as_echo_n "checking for $ac_word... " >&6; }
22067 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22068 $as_echo_n "(cached) " >&6
22069 else
22070 case $gcc_cv_ld in
22071 [\\/]* | ?:[\\/]*)
22072 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22073 ;;
22074 *)
22075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22076 for as_dir in $PATH
22077 do
22078 IFS=$as_save_IFS
22079 test -z "$as_dir" && as_dir=.
22080 for ac_exec_ext in '' $ac_executable_extensions; do
22081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22082 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22084 break 2
22085 fi
22086 done
22087 done
22088 IFS=$as_save_IFS
22089
22090 ;;
22091 esac
22092 fi
22093 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22094 if test -n "$gcc_cv_ld"; then
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22096 $as_echo "$gcc_cv_ld" >&6; }
22097 else
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22099 $as_echo "no" >&6; }
22100 fi
22101
22102
22103 fi
22104 fi
22105
22106 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22107 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22108 # if the PLUGIN_LD is set ld-new, just have it as ld
22109 # as that is the installed named.
22110 if test x$PLUGIN_LD_SUFFIX = xld-new \
22111 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22112 PLUGIN_LD_SUFFIX=ld
22113 fi
22114
22115 # Check whether --with-plugin-ld was given.
22116 if test "${with_plugin_ld+set}" = set; then :
22117 withval=$with_plugin_ld; if test x"$withval" != x; then
22118 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22119 PLUGIN_LD_SUFFIX="$withval"
22120 fi
22121 fi
22122
22123
22124
22125 cat >>confdefs.h <<_ACEOF
22126 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22127 _ACEOF
22128
22129
22130 # Check to see if we are using gold instead of ld
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22132 $as_echo_n "checking whether we are using gold... " >&6; }
22133 ld_is_gold=no
22134 if test x$gcc_cv_ld != x; then
22135 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22136 | grep "GNU gold" > /dev/null; then
22137 ld_is_gold=yes
22138 fi
22139 fi
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22141 $as_echo "$ld_is_gold" >&6; }
22142
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22144 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22145 # Check to see if default ld is not gold, but gold is
22146 # available and has support for split stack. If gcc was configured
22147 # with gold then no checking is done.
22148 #
22149 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22150
22151 # For platforms other than powerpc64*, enable as appropriate.
22152
22153 gold_non_default=no
22154 ld_gold=`which ${gcc_cv_ld}.gold`
22155 # Make sure this gold has minimal split stack support
22156 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22157 ld_vers=`$ld_gold --version | sed 1q`
22158 gold_vers=`echo $ld_vers | sed -n \
22159 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22160 case $target in
22161 # check that the gold version contains the complete split stack support
22162 # on powerpc64 big and little endian
22163 powerpc64*-*-*)
22164 case "$gold_vers" in
22165 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22166 ;;
22167 *) gold_non_default=no
22168 ;;
22169 esac
22170 ;;
22171 esac
22172 fi
22173 if test $gold_non_default = yes; then
22174
22175 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22176
22177 fi
22178 fi
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22180 $as_echo "$gold_non_default" >&6; }
22181
22182 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22183
22184 case "$ORIGINAL_LD_FOR_TARGET" in
22185 ./collect-ld | ./collect-ld$build_exeext) ;;
22186 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22187 ;;
22188 esac
22189
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22191 $as_echo_n "checking what linker to use... " >&6; }
22192 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22193 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22194 # Single tree build which includes ld. We want to prefer it
22195 # over whatever linker top-level may have detected, since
22196 # we'll use what we're building after installation anyway.
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22198 $as_echo "newly built ld" >&6; }
22199 in_tree_ld=yes
22200 in_tree_ld_is_elf=no
22201 if (grep 'EMUL = .*elf' ../ld/Makefile \
22202 || grep 'EMUL = .*linux' ../ld/Makefile \
22203 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22204 in_tree_ld_is_elf=yes
22205 elif test "$ld_is_gold" = yes; then
22206 in_tree_ld_is_elf=yes
22207 fi
22208 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
22209 do
22210 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22211 if test x$gcc_cv_gld_version != x; then
22212 break
22213 fi
22214 done
22215 case $gcc_cv_gld_version in
22216 VERSION=[0-9]*) ;;
22217 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22218 esac
22219 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22220 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22221 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22222 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22223 else
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22225 $as_echo "$gcc_cv_ld" >&6; }
22226 in_tree_ld=no
22227 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22228 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22229 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22230 fi
22231
22232
22233
22234
22235 # Figure out what nm we will be using.
22236 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22237 if test "${gcc_cv_nm+set}" = set; then :
22238
22239 else
22240
22241 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22242 && test -f ../binutils/Makefile \
22243 && test x$build = x$host; then
22244 gcc_cv_nm=../binutils/nm-new$build_exeext
22245 elif test -x nm$build_exeext; then
22246 gcc_cv_nm=./nm$build_exeext
22247 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22248 gcc_cv_nm="$NM_FOR_TARGET"
22249 else
22250 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22251 set dummy $NM_FOR_TARGET; ac_word=$2
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22253 $as_echo_n "checking for $ac_word... " >&6; }
22254 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22255 $as_echo_n "(cached) " >&6
22256 else
22257 case $gcc_cv_nm in
22258 [\\/]* | ?:[\\/]*)
22259 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22260 ;;
22261 *)
22262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22263 for as_dir in $PATH
22264 do
22265 IFS=$as_save_IFS
22266 test -z "$as_dir" && as_dir=.
22267 for ac_exec_ext in '' $ac_executable_extensions; do
22268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22269 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22271 break 2
22272 fi
22273 done
22274 done
22275 IFS=$as_save_IFS
22276
22277 ;;
22278 esac
22279 fi
22280 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22281 if test -n "$gcc_cv_nm"; then
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22283 $as_echo "$gcc_cv_nm" >&6; }
22284 else
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22286 $as_echo "no" >&6; }
22287 fi
22288
22289
22290 fi
22291 fi
22292
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22294 $as_echo_n "checking what nm to use... " >&6; }
22295 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22296 # Single tree build which includes binutils.
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22298 $as_echo "newly built nm" >&6; }
22299 in_tree_nm=yes
22300 else
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22302 $as_echo "$gcc_cv_nm" >&6; }
22303 in_tree_nm=no
22304 fi
22305
22306 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22307
22308 case "$ORIGINAL_NM_FOR_TARGET" in
22309 ./nm | ./nm$build_exeext) ;;
22310 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22311 ;;
22312 esac
22313
22314
22315 # Figure out what objdump we will be using.
22316 if test "${gcc_cv_objdump+set}" = set; then :
22317
22318 else
22319
22320 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22321 && test -f ../binutils/Makefile \
22322 && test x$build = x$host; then
22323 # Single tree build which includes binutils.
22324 gcc_cv_objdump=../binutils/objdump$build_exeext
22325 elif test -x objdump$build_exeext; then
22326 gcc_cv_objdump=./objdump$build_exeext
22327 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22328 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22329 else
22330 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22331 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22333 $as_echo_n "checking for $ac_word... " >&6; }
22334 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22335 $as_echo_n "(cached) " >&6
22336 else
22337 case $gcc_cv_objdump in
22338 [\\/]* | ?:[\\/]*)
22339 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22340 ;;
22341 *)
22342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22343 for as_dir in $PATH
22344 do
22345 IFS=$as_save_IFS
22346 test -z "$as_dir" && as_dir=.
22347 for ac_exec_ext in '' $ac_executable_extensions; do
22348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22349 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22351 break 2
22352 fi
22353 done
22354 done
22355 IFS=$as_save_IFS
22356
22357 ;;
22358 esac
22359 fi
22360 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22361 if test -n "$gcc_cv_objdump"; then
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22363 $as_echo "$gcc_cv_objdump" >&6; }
22364 else
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22366 $as_echo "no" >&6; }
22367 fi
22368
22369
22370 fi
22371 fi
22372
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22374 $as_echo_n "checking what objdump to use... " >&6; }
22375 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22376 # Single tree build which includes binutils.
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22378 $as_echo "newly built objdump" >&6; }
22379 elif test x$gcc_cv_objdump = x; then
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22381 $as_echo "not found" >&6; }
22382 else
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22384 $as_echo "$gcc_cv_objdump" >&6; }
22385 fi
22386
22387 # Figure out what readelf we will be using.
22388 if test "${gcc_cv_readelf+set}" = set; then :
22389
22390 else
22391
22392 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22393 && test -f ../binutils/Makefile \
22394 && test x$build = x$host; then
22395 # Single tree build which includes binutils.
22396 gcc_cv_readelf=../binutils/readelf$build_exeext
22397 elif test -x readelf$build_exeext; then
22398 gcc_cv_readelf=./readelf$build_exeext
22399 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22400 gcc_cv_readelf="$READELF_FOR_TARGET"
22401 else
22402 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22403 set dummy $READELF_FOR_TARGET; ac_word=$2
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22405 $as_echo_n "checking for $ac_word... " >&6; }
22406 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22407 $as_echo_n "(cached) " >&6
22408 else
22409 case $gcc_cv_readelf in
22410 [\\/]* | ?:[\\/]*)
22411 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22412 ;;
22413 *)
22414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22415 for as_dir in $PATH
22416 do
22417 IFS=$as_save_IFS
22418 test -z "$as_dir" && as_dir=.
22419 for ac_exec_ext in '' $ac_executable_extensions; do
22420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22421 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22423 break 2
22424 fi
22425 done
22426 done
22427 IFS=$as_save_IFS
22428
22429 ;;
22430 esac
22431 fi
22432 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22433 if test -n "$gcc_cv_readelf"; then
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22435 $as_echo "$gcc_cv_readelf" >&6; }
22436 else
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22438 $as_echo "no" >&6; }
22439 fi
22440
22441
22442 fi
22443 fi
22444
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22446 $as_echo_n "checking what readelf to use... " >&6; }
22447 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22448 # Single tree build which includes binutils.
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22450 $as_echo "newly built readelf" >&6; }
22451 elif test x$gcc_cv_readelf = x; then
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22453 $as_echo "not found" >&6; }
22454 else
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22456 $as_echo "$gcc_cv_readelf" >&6; }
22457 fi
22458
22459 # Figure out what assembler alignment features are present.
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22461 $as_echo_n "checking assembler flags... " >&6; }
22462 if test "${gcc_cv_as_flags+set}" = set; then :
22463 $as_echo_n "(cached) " >&6
22464 else
22465 case "$target" in
22466 i[34567]86-*-linux*)
22467 gcc_cv_as_flags=--32
22468 ;;
22469 x86_64-*-linux-gnux32)
22470 gcc_cv_as_flags=--x32
22471 ;;
22472 x86_64-*-linux*)
22473 gcc_cv_as_flags=--64
22474 ;;
22475 powerpc*-*-darwin*)
22476 gcc_cv_as_flags="-arch ppc"
22477 ;;
22478 *)
22479 gcc_cv_as_flags=" "
22480 ;;
22481 esac
22482 fi
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22484 $as_echo "$gcc_cv_as_flags" >&6; }
22485
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22487 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22488 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22489 $as_echo_n "(cached) " >&6
22490 else
22491 gcc_cv_as_balign_and_p2align=no
22492 if test $in_tree_gas = yes; then
22493 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22494 then gcc_cv_as_balign_and_p2align=yes
22495 fi
22496 elif test x$gcc_cv_as != x; then
22497 $as_echo '.balign 4
22498 .p2align 2' > conftest.s
22499 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22501 (eval $ac_try) 2>&5
22502 ac_status=$?
22503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22504 test $ac_status = 0; }; }
22505 then
22506 gcc_cv_as_balign_and_p2align=yes
22507 else
22508 echo "configure: failed program was" >&5
22509 cat conftest.s >&5
22510 fi
22511 rm -f conftest.o conftest.s
22512 fi
22513 fi
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22515 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22516 if test $gcc_cv_as_balign_and_p2align = yes; then
22517
22518 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22519
22520 fi
22521
22522
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22524 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22525 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22526 $as_echo_n "(cached) " >&6
22527 else
22528 gcc_cv_as_max_skip_p2align=no
22529 if test $in_tree_gas = yes; then
22530 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22531 then gcc_cv_as_max_skip_p2align=yes
22532 fi
22533 elif test x$gcc_cv_as != x; then
22534 $as_echo '.p2align 4,,7' > conftest.s
22535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22537 (eval $ac_try) 2>&5
22538 ac_status=$?
22539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22540 test $ac_status = 0; }; }
22541 then
22542 gcc_cv_as_max_skip_p2align=yes
22543 else
22544 echo "configure: failed program was" >&5
22545 cat conftest.s >&5
22546 fi
22547 rm -f conftest.o conftest.s
22548 fi
22549 fi
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22551 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22552 if test $gcc_cv_as_max_skip_p2align = yes; then
22553
22554 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22555
22556 fi
22557
22558
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22560 $as_echo_n "checking assembler for .literal16... " >&6; }
22561 if test "${gcc_cv_as_literal16+set}" = set; then :
22562 $as_echo_n "(cached) " >&6
22563 else
22564 gcc_cv_as_literal16=no
22565 if test $in_tree_gas = yes; then
22566 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22567 then gcc_cv_as_literal16=yes
22568 fi
22569 elif test x$gcc_cv_as != x; then
22570 $as_echo '.literal16' > conftest.s
22571 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22573 (eval $ac_try) 2>&5
22574 ac_status=$?
22575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22576 test $ac_status = 0; }; }
22577 then
22578 gcc_cv_as_literal16=yes
22579 else
22580 echo "configure: failed program was" >&5
22581 cat conftest.s >&5
22582 fi
22583 rm -f conftest.o conftest.s
22584 fi
22585 fi
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22587 $as_echo "$gcc_cv_as_literal16" >&6; }
22588 if test $gcc_cv_as_literal16 = yes; then
22589
22590 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22591
22592 fi
22593
22594
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22596 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22597 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22598 $as_echo_n "(cached) " >&6
22599 else
22600 gcc_cv_as_subsection_m1=no
22601 if test $in_tree_gas = yes; then
22602 if test $in_tree_gas_is_elf = yes \
22603 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22604 then gcc_cv_as_subsection_m1=yes
22605 fi
22606 elif test x$gcc_cv_as != x; then
22607 $as_echo 'conftest_label1: .word 0
22608 .subsection -1
22609 conftest_label2: .word 0
22610 .previous' > conftest.s
22611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22613 (eval $ac_try) 2>&5
22614 ac_status=$?
22615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22616 test $ac_status = 0; }; }
22617 then
22618 if test x$gcc_cv_nm != x; then
22619 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22620 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22621 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22622 then :
22623 else gcc_cv_as_subsection_m1=yes
22624 fi
22625 rm -f conftest.nm1 conftest.nm2
22626 fi
22627 else
22628 echo "configure: failed program was" >&5
22629 cat conftest.s >&5
22630 fi
22631 rm -f conftest.o conftest.s
22632 fi
22633 fi
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22635 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22636 if test $gcc_cv_as_subsection_m1 = yes; then
22637
22638 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22639
22640 fi
22641
22642
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22644 $as_echo_n "checking assembler for .weak... " >&6; }
22645 if test "${gcc_cv_as_weak+set}" = set; then :
22646 $as_echo_n "(cached) " >&6
22647 else
22648 gcc_cv_as_weak=no
22649 if test $in_tree_gas = yes; then
22650 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22651 then gcc_cv_as_weak=yes
22652 fi
22653 elif test x$gcc_cv_as != x; then
22654 $as_echo ' .weak foobar' > 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_weak=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_weak" >&5
22671 $as_echo "$gcc_cv_as_weak" >&6; }
22672 if test $gcc_cv_as_weak = yes; then
22673
22674 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22675
22676 fi
22677
22678
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22680 $as_echo_n "checking assembler for .weakref... " >&6; }
22681 if test "${gcc_cv_as_weakref+set}" = set; then :
22682 $as_echo_n "(cached) " >&6
22683 else
22684 gcc_cv_as_weakref=no
22685 if test $in_tree_gas = yes; then
22686 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22687 then gcc_cv_as_weakref=yes
22688 fi
22689 elif test x$gcc_cv_as != x; then
22690 $as_echo ' .weakref foobar, barfnot' > 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_weakref=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_weakref" >&5
22707 $as_echo "$gcc_cv_as_weakref" >&6; }
22708 if test $gcc_cv_as_weakref = yes; then
22709
22710 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22711
22712 fi
22713
22714
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22716 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22717 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22718 $as_echo_n "(cached) " >&6
22719 else
22720 gcc_cv_as_nsubspa_comdat=no
22721 if test $in_tree_gas = yes; then
22722 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22723 then gcc_cv_as_nsubspa_comdat=yes
22724 fi
22725 elif test x$gcc_cv_as != x; then
22726 $as_echo ' .SPACE $TEXT$
22727 .NSUBSPA $CODE$,COMDAT' > conftest.s
22728 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22730 (eval $ac_try) 2>&5
22731 ac_status=$?
22732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22733 test $ac_status = 0; }; }
22734 then
22735 gcc_cv_as_nsubspa_comdat=yes
22736 else
22737 echo "configure: failed program was" >&5
22738 cat conftest.s >&5
22739 fi
22740 rm -f conftest.o conftest.s
22741 fi
22742 fi
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22744 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22745 if test $gcc_cv_as_nsubspa_comdat = yes; then
22746
22747 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22748
22749 fi
22750
22751
22752 # .hidden needs to be supported in both the assembler and the linker,
22753 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22754 # This is irritatingly difficult to feature test for; we have to check the
22755 # date string after the version number. If we've got an in-tree
22756 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22757 # to be safe.
22758 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22759 case "${target}" in
22760 *-*-aix*)
22761 conftest_s=' .globl foobar,hidden'
22762 ;;
22763 *)
22764 conftest_s=' .hidden foobar
22765 foobar:'
22766 ;;
22767 esac
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22769 $as_echo_n "checking assembler for .hidden... " >&6; }
22770 if test "${gcc_cv_as_hidden+set}" = set; then :
22771 $as_echo_n "(cached) " >&6
22772 else
22773 gcc_cv_as_hidden=no
22774 if test $in_tree_gas = yes; then
22775 if test $in_tree_gas_is_elf = yes \
22776 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22777 then gcc_cv_as_hidden=yes
22778 fi
22779 elif test x$gcc_cv_as != x; then
22780 $as_echo "$conftest_s" > conftest.s
22781 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22783 (eval $ac_try) 2>&5
22784 ac_status=$?
22785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22786 test $ac_status = 0; }; }
22787 then
22788 gcc_cv_as_hidden=yes
22789 else
22790 echo "configure: failed program was" >&5
22791 cat conftest.s >&5
22792 fi
22793 rm -f conftest.o conftest.s
22794 fi
22795 fi
22796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22797 $as_echo "$gcc_cv_as_hidden" >&6; }
22798
22799
22800 case "${target}" in
22801 *-*-darwin*)
22802 # Darwin as has some visibility support, though with a different syntax.
22803 gcc_cv_as_hidden=yes
22804 ;;
22805 esac
22806
22807 # gnu_indirect_function type is an extension proposed at
22808 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22809 # selection of function implementation
22810 # Check whether --enable-gnu-indirect-function was given.
22811 if test "${enable_gnu_indirect_function+set}" = set; then :
22812 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22813 yes | no) ;;
22814 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22815 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22816 esac
22817 else
22818 enable_gnu_indirect_function="$default_gnu_indirect_function"
22819 fi
22820
22821
22822 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22823
22824 cat >>confdefs.h <<_ACEOF
22825 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22826 _ACEOF
22827
22828
22829
22830 if test $in_tree_ld != yes ; then
22831 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22832 if echo "$ld_ver" | grep GNU > /dev/null; then
22833 if test x"$ld_is_gold" = xyes; then
22834 # GNU gold --version looks like this:
22835 #
22836 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22837 #
22838 # We extract the binutils version which is more familiar and specific
22839 # than the gold version.
22840 ld_vers=`echo $ld_ver | sed -n \
22841 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22842 else
22843 # GNU ld --version looks like this:
22844 #
22845 # GNU ld (GNU Binutils) 2.21.51.20110225
22846 ld_vers=`echo $ld_ver | sed -n \
22847 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22848 fi
22849 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'`
22850 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22851 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22852 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22853 else
22854 case "${target}" in
22855 *-*-solaris2*)
22856 # Solaris 2 ld -V output looks like this for a regular version:
22857 #
22858 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22859 #
22860 # but test versions add stuff at the end:
22861 #
22862 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22863 #
22864 # In Solaris 11.4, this was changed to
22865 #
22866 # ld: Solaris ELF Utilities: 11.4-1.3123
22867 #
22868 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
22869 # numbers can be used in ld.so.1 feature checks even if a different
22870 # linker is configured.
22871 ld_ver=`$gcc_cv_ld -V 2>&1`
22872 if echo "$ld_ver" | $EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev/null; then
22873 ld_vers=`echo $ld_ver | sed -n \
22874 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
22875 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22876 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22877 fi
22878 ;;
22879 esac
22880 fi
22881 fi
22882
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22884 $as_echo_n "checking linker for .hidden support... " >&6; }
22885 if test "${gcc_cv_ld_hidden+set}" = set; then :
22886 $as_echo_n "(cached) " >&6
22887 else
22888 if test $in_tree_ld = yes ; then
22889 gcc_cv_ld_hidden=no
22890 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 \
22891 && test $in_tree_ld_is_elf = yes; then
22892 gcc_cv_ld_hidden=yes
22893 fi
22894 else
22895 gcc_cv_ld_hidden=yes
22896 if test x"$ld_is_gold" = xyes; then
22897 :
22898 elif echo "$ld_ver" | grep GNU > /dev/null; then
22899 case "${target}" in
22900 mmix-knuth-mmixware)
22901 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22902 gcc_cv_ld_hidden=no
22903 ;;
22904 esac
22905 if test 0"$ld_date" -lt 20020404; then
22906 if test -n "$ld_date"; then
22907 # If there was date string, but was earlier than 2002-04-04, fail
22908 gcc_cv_ld_hidden=no
22909 elif test -z "$ld_vers"; then
22910 # If there was no date string nor ld version number, something is wrong
22911 gcc_cv_ld_hidden=no
22912 else
22913 test -z "$ld_vers_patch" && ld_vers_patch=0
22914 if test "$ld_vers_major" -lt 2; then
22915 gcc_cv_ld_hidden=no
22916 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22917 gcc_cv_ld_hidden="no"
22918 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22919 gcc_cv_ld_hidden=no
22920 fi
22921 fi
22922 fi
22923 else
22924 case "${target}" in
22925 *-*-aix[789]*)
22926 gcc_cv_ld_hidden=yes
22927 ;;
22928 *-*-darwin*)
22929 # Darwin ld has some visibility support.
22930 gcc_cv_ld_hidden=yes
22931 ;;
22932 hppa64*-*-hpux* | ia64*-*-hpux*)
22933 gcc_cv_ld_hidden=yes
22934 ;;
22935 *-*-solaris2.1[0-9]*)
22936 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22937 # .symbolic was only added in Solaris 9 12/02.
22938 gcc_cv_ld_hidden=yes
22939 ;;
22940 *)
22941 gcc_cv_ld_hidden=no
22942 ;;
22943 esac
22944 fi
22945 fi
22946 fi
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22948 $as_echo "$gcc_cv_ld_hidden" >&6; }
22949 libgcc_visibility=no
22950
22951
22952 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22953 libgcc_visibility=yes
22954
22955 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22956
22957 fi
22958
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22960 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22961 gcc_cv_ld_ro_rw_mix=unknown
22962 if test $in_tree_ld = yes ; then
22963 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 \
22964 && test $in_tree_ld_is_elf = yes; then
22965 gcc_cv_ld_ro_rw_mix=read-write
22966 fi
22967 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22968 echo '.section myfoosect, "a"' > conftest1.s
22969 echo '.section myfoosect, "aw"' > conftest2.s
22970 echo '.byte 1' >> conftest2.s
22971 echo '.section myfoosect, "a"' > conftest3.s
22972 echo '.byte 0' >> conftest3.s
22973 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22974 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22975 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22976 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22977 conftest2.o conftest3.o > /dev/null 2>&1; then
22978 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22979 | sed -e '/myfoosect/!d' -e N`
22980 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22981 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22982 gcc_cv_ld_ro_rw_mix=read-only
22983 else
22984 gcc_cv_ld_ro_rw_mix=read-write
22985 fi
22986 fi
22987 fi
22988 rm -f conftest.* conftest[123].*
22989 fi
22990 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22991
22992 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22993
22994 fi
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22996 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22997
22998 # Check whether --enable-initfini-array was given.
22999 if test "${enable_initfini_array+set}" = set; then :
23000 enableval=$enable_initfini_array;
23001 else
23002
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23004 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23005 if test "${gcc_cv_initfini_array+set}" = set; then :
23006 $as_echo_n "(cached) " >&6
23007 else
23008 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23009 case "${target}" in
23010 ia64-*)
23011 if test "$cross_compiling" = yes; then :
23012 gcc_cv_initfini_array=no
23013 else
23014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23015 /* end confdefs.h. */
23016
23017 #ifndef __ELF__
23018 #error Not an ELF OS
23019 #endif
23020 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23021 if it can be used. */
23022 static int x = -1;
23023 int main (void) { return x; }
23024 int foo (void) { x = 0; }
23025 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23026
23027 _ACEOF
23028 if ac_fn_cxx_try_run "$LINENO"; then :
23029 gcc_cv_initfini_array=yes
23030 else
23031 gcc_cv_initfini_array=no
23032 fi
23033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23034 conftest.$ac_objext conftest.beam conftest.$ac_ext
23035 fi
23036 ;;
23037 *)
23038 gcc_cv_initfini_array=no
23039 if test $in_tree_ld = yes ; then
23040 if test "$gcc_cv_gld_major_version" -eq 2 \
23041 -a "$gcc_cv_gld_minor_version" -ge 22 \
23042 -o "$gcc_cv_gld_major_version" -gt 2 \
23043 && test $in_tree_ld_is_elf = yes; then
23044 gcc_cv_initfini_array=yes
23045 fi
23046 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23047 case $target:$gas in
23048 *:yes)
23049 sh_flags='"a"'
23050 sh_type='%progbits'
23051 ;;
23052 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23053 sh_flags='"a"'
23054 sh_type='@progbits'
23055 ;;
23056 sparc*-*-solaris2*:no)
23057 sh_flags='#alloc'
23058 sh_type='#progbits'
23059 sh_quote='"'
23060 ;;
23061 esac
23062 case "$target:$gnu_ld" in
23063 *:yes)
23064 cat > conftest.s <<EOF
23065 .section .dtors,$sh_flags,$sh_type
23066 .balign 4
23067 .byte 'A', 'A', 'A', 'A'
23068 .section .ctors,$sh_flags,$sh_type
23069 .balign 4
23070 .byte 'B', 'B', 'B', 'B'
23071 .section .fini_array.65530,$sh_flags,$sh_type
23072 .balign 4
23073 .byte 'C', 'C', 'C', 'C'
23074 .section .init_array.65530,$sh_flags,$sh_type
23075 .balign 4
23076 .byte 'D', 'D', 'D', 'D'
23077 .section .dtors.64528,$sh_flags,$sh_type
23078 .balign 4
23079 .byte 'E', 'E', 'E', 'E'
23080 .section .ctors.64528,$sh_flags,$sh_type
23081 .balign 4
23082 .byte 'F', 'F', 'F', 'F'
23083 .section .fini_array.01005,$sh_flags,$sh_type
23084 .balign 4
23085 .byte 'G', 'G', 'G', 'G'
23086 .section .init_array.01005,$sh_flags,$sh_type
23087 .balign 4
23088 .byte 'H', 'H', 'H', 'H'
23089 .text
23090 .globl _start
23091 _start:
23092 EOF
23093 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23094 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23095 && $gcc_cv_objdump -s -j .init_array conftest \
23096 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23097 && $gcc_cv_objdump -s -j .fini_array conftest \
23098 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23099 gcc_cv_initfini_array=yes
23100 fi
23101 ;;
23102 *-*-solaris2*:no)
23103 # When Solaris ld added constructor priority support, it was
23104 # decided to only handle .init_array.N/.fini_array.N since
23105 # there was no need for backwards compatibility with
23106 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23107 # sections with correct execution order resp. to
23108 # .init_array/.fini_array, while gld merges them into
23109 # .init_array/.fini_array.
23110 cat > conftest.s <<EOF
23111 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23112 .align 4
23113 .byte 'C', 'C', 'C', 'C'
23114 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23115 .align 4
23116 .byte 'D', 'D', 'D', 'D'
23117 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23118 .align 4
23119 .byte 'G', 'G', 'G', 'G'
23120 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23121 .align 4
23122 .byte 'H', 'H', 'H', 'H'
23123 .text
23124 .globl _start
23125 _start:
23126 EOF
23127 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23128 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23129 && $gcc_cv_objdump -s -j .init_array conftest \
23130 | grep HHHHDDDD > /dev/null 2>&1 \
23131 && $gcc_cv_objdump -s -j .fini_array conftest \
23132 | grep GGGGCCCC > /dev/null 2>&1; then
23133 gcc_cv_initfini_array=yes
23134 fi
23135 ;;
23136 esac
23137 rm -f conftest conftest.*
23138 fi
23139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23140 /* end confdefs.h. */
23141
23142 #ifndef __ELF__
23143 # error Not an ELF OS
23144 #endif
23145 #include <stdlib.h>
23146 #if defined __GLIBC_PREREQ
23147 # if __GLIBC_PREREQ (2, 4)
23148 # else
23149 # error GLIBC 2.4 required
23150 # endif
23151 #else
23152 # if defined __sun__ && defined __svr4__
23153 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23154 # else
23155 # error The C library not known to support .init_array/.fini_array
23156 # endif
23157 #endif
23158
23159 _ACEOF
23160 if ac_fn_cxx_try_cpp "$LINENO"; then :
23161
23162 else
23163 gcc_cv_initfini_array=no
23164 fi
23165 rm -f conftest.err conftest.$ac_ext;;
23166 esac
23167 else
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23169 $as_echo_n "checking cross compile... guessing... " >&6; }
23170 gcc_cv_initfini_array=no
23171 fi
23172 fi
23173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23174 $as_echo "$gcc_cv_initfini_array" >&6; }
23175 enable_initfini_array=$gcc_cv_initfini_array
23176
23177 fi
23178
23179
23180 cat >>confdefs.h <<_ACEOF
23181 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23182 _ACEOF
23183
23184
23185
23186 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23188 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23189 if test "${gcc_cv_as_leb128+set}" = set; then :
23190 $as_echo_n "(cached) " >&6
23191 else
23192 gcc_cv_as_leb128=no
23193 if test $in_tree_gas = yes; then
23194 if test $in_tree_gas_is_elf = yes \
23195 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23196 then gcc_cv_as_leb128=yes
23197 fi
23198 elif test x$gcc_cv_as != x; then
23199 $as_echo ' .data
23200 .uleb128 L2 - L1
23201 L1:
23202 .uleb128 1280
23203 .sleb128 -1010
23204 L2:' > conftest.s
23205 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23207 (eval $ac_try) 2>&5
23208 ac_status=$?
23209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23210 test $ac_status = 0; }; }
23211 then
23212 # GAS versions before 2.11 do not support uleb128,
23213 # despite appearing to.
23214 # ??? There exists an elf-specific test that will crash
23215 # the assembler. Perhaps it's better to figure out whether
23216 # arbitrary sections are supported and try the test.
23217 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23218 if echo "$as_ver" | grep GNU > /dev/null; then
23219 as_vers=`echo $as_ver | sed -n \
23220 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23221 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23222 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23223 if test $as_major -eq 2 && test $as_minor -lt 11
23224 then :
23225 else gcc_cv_as_leb128=yes
23226 fi
23227 fi
23228 else
23229 echo "configure: failed program was" >&5
23230 cat conftest.s >&5
23231 fi
23232 rm -f conftest.o conftest.s
23233 fi
23234 fi
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23236 $as_echo "$gcc_cv_as_leb128" >&6; }
23237 if test $gcc_cv_as_leb128 = yes; then
23238
23239 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23240
23241 fi
23242 if test $gcc_cv_as_leb128 != yes; then
23243
23244 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23245
23246 fi
23247
23248 # Determine if an .eh_frame section is read-only.
23249 gcc_fn_eh_frame_ro () {
23250 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23251 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23252 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23253 }
23254
23255 # Check if we have assembler support for unwind directives.
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23257 $as_echo_n "checking assembler for cfi directives... " >&6; }
23258 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23259 $as_echo_n "(cached) " >&6
23260 else
23261 gcc_cv_as_cfi_directive=no
23262 if test x$gcc_cv_as != x; then
23263 $as_echo ' .text
23264 .cfi_startproc
23265 .cfi_offset 0, 0
23266 .cfi_same_value 1
23267 .cfi_def_cfa 1, 2
23268 .cfi_escape 1, 2, 3, 4, 5
23269 .cfi_endproc' > conftest.s
23270 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23272 (eval $ac_try) 2>&5
23273 ac_status=$?
23274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23275 test $ac_status = 0; }; }
23276 then
23277 case "$target" in
23278 *-*-solaris*)
23279 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23280 # read-only and read-write sections, we need to make sure that the
23281 # assembler used emits read-write .eh_frame sections.
23282 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23283 gcc_cv_as_cfi_directive=yes
23284 elif test "x$gcc_cv_objdump" = x; then
23285 # No objdump, err on the side of caution.
23286 gcc_cv_as_cfi_directive=no
23287 else
23288 if test x$gas = xyes; then
23289 as_32_opt="--32"
23290 as_64_opt="--64"
23291 else
23292 as_32_opt="-m32"
23293 as_64_opt="-m64"
23294 fi
23295 case "$target" in
23296 sparc*-*-solaris2.*)
23297 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23298 if gcc_fn_eh_frame_ro $as_32_opt \
23299 || gcc_fn_eh_frame_ro $as_64_opt; then
23300 gcc_cv_as_cfi_directive=no
23301 else
23302 gcc_cv_as_cfi_directive=yes
23303 fi
23304 ;;
23305 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23306 # On Solaris/x86, make sure that GCC and assembler agree on using
23307 # read-only .eh_frame sections for 64-bit.
23308 if gcc_fn_eh_frame_ro $as_32_opt; then
23309 gcc_cv_as_cfi_directive=no
23310 elif gcc_fn_eh_frame_ro $as_64_opt; then
23311 gcc_cv_as_cfi_directive=yes
23312 else
23313 gcc_cv_as_cfi_directive=no
23314 fi
23315 ;;
23316 esac
23317 fi
23318 ;;
23319 *-*-*)
23320 gcc_cv_as_cfi_directive=yes
23321 ;;
23322 esac
23323 else
23324 echo "configure: failed program was" >&5
23325 cat conftest.s >&5
23326 fi
23327 rm -f conftest.o conftest.s
23328 fi
23329 fi
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23331 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23332
23333
23334 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23336 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23337 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23338 $as_echo_n "(cached) " >&6
23339 else
23340 gcc_cv_as_cfi_advance_working=no
23341 if test x$gcc_cv_as != x; then
23342 $as_echo ' .text
23343 .cfi_startproc
23344 .cfi_adjust_cfa_offset 64
23345 .skip 75040, 0
23346 .cfi_adjust_cfa_offset 128
23347 .cfi_endproc' > conftest.s
23348 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23350 (eval $ac_try) 2>&5
23351 ac_status=$?
23352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23353 test $ac_status = 0; }; }
23354 then
23355
23356 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23357 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23358 gcc_cv_as_cfi_advance_working=yes
23359 fi
23360
23361 else
23362 echo "configure: failed program was" >&5
23363 cat conftest.s >&5
23364 fi
23365 rm -f conftest.o conftest.s
23366 fi
23367 fi
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23369 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23370
23371
23372 else
23373 # no objdump, err on the side of caution
23374 gcc_cv_as_cfi_advance_working=no
23375 fi
23376
23377
23378 cat >>confdefs.h <<_ACEOF
23379 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23380 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23381 _ACEOF
23382
23383
23384
23385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23386 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23387 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23388 $as_echo_n "(cached) " >&6
23389 else
23390 gcc_cv_as_cfi_personality_directive=no
23391 if test x$gcc_cv_as != x; then
23392 $as_echo ' .text
23393 .cfi_startproc
23394 .cfi_personality 0, symbol
23395 .cfi_endproc' > conftest.s
23396 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23398 (eval $ac_try) 2>&5
23399 ac_status=$?
23400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23401 test $ac_status = 0; }; }
23402 then
23403 gcc_cv_as_cfi_personality_directive=yes
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_personality_directive" >&5
23412 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23413
23414
23415
23416 cat >>confdefs.h <<_ACEOF
23417 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23418 then echo 1; else echo 0; fi`
23419 _ACEOF
23420
23421
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23423 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23424 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23425 $as_echo_n "(cached) " >&6
23426 else
23427 gcc_cv_as_cfi_sections_directive=no
23428 if test x$gcc_cv_as != x; then
23429 $as_echo ' .text
23430 .cfi_sections .debug_frame, .eh_frame
23431 .cfi_startproc
23432 .cfi_endproc' > conftest.s
23433 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23435 (eval $ac_try) 2>&5
23436 ac_status=$?
23437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23438 test $ac_status = 0; }; }
23439 then
23440 case $target_os in
23441 win32 | pe | cygwin* | mingw32*)
23442 # Need to check that we generated the correct relocation for the
23443 # .debug_frame section. This was fixed for binutils 2.21.
23444 gcc_cv_as_cfi_sections_directive=no
23445 if test "x$gcc_cv_objdump" != x; then
23446 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23447 grep secrel > /dev/null; then
23448 gcc_cv_as_cfi_sections_directive=yes
23449 fi
23450 fi
23451 ;;
23452 *)
23453 gcc_cv_as_cfi_sections_directive=yes
23454 ;;
23455 esac
23456 else
23457 echo "configure: failed program was" >&5
23458 cat conftest.s >&5
23459 fi
23460 rm -f conftest.o conftest.s
23461 fi
23462 fi
23463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23464 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23465
23466
23467
23468
23469 cat >>confdefs.h <<_ACEOF
23470 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23471 then echo 1; else echo 0; fi`
23472 _ACEOF
23473
23474
23475 # GAS versions up to and including 2.11.0 may mis-optimize
23476 # .eh_frame data.
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23478 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23479 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23480 $as_echo_n "(cached) " >&6
23481 else
23482 gcc_cv_as_eh_frame=no
23483 if test $in_tree_gas = yes; then
23484 if test $in_tree_gas_is_elf = yes \
23485 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23486 then gcc_cv_as_eh_frame=yes
23487 fi
23488 elif test x$gcc_cv_as != x; then
23489 $as_echo ' .text
23490 .LFB1:
23491 .4byte 0
23492 .L1:
23493 .4byte 0
23494 .LFE1:
23495 .section .eh_frame,"aw",@progbits
23496 __FRAME_BEGIN__:
23497 .4byte .LECIE1-.LSCIE1
23498 .LSCIE1:
23499 .4byte 0x0
23500 .byte 0x1
23501 .ascii "z\0"
23502 .byte 0x1
23503 .byte 0x78
23504 .byte 0x1a
23505 .byte 0x0
23506 .byte 0x4
23507 .4byte 1
23508 .p2align 1
23509 .LECIE1:
23510 .LSFDE1:
23511 .4byte .LEFDE1-.LASFDE1
23512 .LASFDE1:
23513 .4byte .LASFDE1-__FRAME_BEGIN__
23514 .4byte .LFB1
23515 .4byte .LFE1-.LFB1
23516 .byte 0x4
23517 .4byte .LFE1-.LFB1
23518 .byte 0x4
23519 .4byte .L1-.LFB1
23520 .LEFDE1:' > conftest.s
23521 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23523 (eval $ac_try) 2>&5
23524 ac_status=$?
23525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23526 test $ac_status = 0; }; }
23527 then
23528 cat > conftest.lit <<EOF
23529 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23530 0010 01000000 12000000 18000000 00000000 ................
23531 0020 08000000 04080000 0044 .........D
23532 EOF
23533 cat > conftest.big <<EOF
23534 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23535 0010 00000001 00000012 00000018 00000000 ................
23536 0020 00000008 04000000 0844 .........D
23537 EOF
23538 # If the assembler didn't choke, and we can objdump,
23539 # and we got the correct data, then succeed.
23540 # The text in the here-document typically retains its unix-style line
23541 # endings, while the output of objdump will use host line endings.
23542 # Therefore, use diff -b for the comparisons.
23543 if test x$gcc_cv_objdump != x \
23544 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23545 | tail -3 > conftest.got \
23546 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23547 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23548 then
23549 gcc_cv_as_eh_frame=yes
23550 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23552 (eval $ac_try) 2>&5
23553 ac_status=$?
23554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23555 test $ac_status = 0; }; }; then
23556 gcc_cv_as_eh_frame=buggy
23557 else
23558 # Uh oh, what do we do now?
23559 gcc_cv_as_eh_frame=no
23560 fi
23561 else
23562 echo "configure: failed program was" >&5
23563 cat conftest.s >&5
23564 fi
23565 rm -f conftest.o conftest.s
23566 fi
23567 fi
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23569 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23570
23571
23572
23573 if test $gcc_cv_as_eh_frame = buggy; then
23574
23575 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23576
23577 fi
23578
23579 # Test if the assembler supports the section flag 'e' or #exclude for
23580 # specifying an excluded section.
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23582 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23583 if test "${gcc_cv_as_section_exclude_e+set}" = set; then :
23584 $as_echo_n "(cached) " >&6
23585 else
23586 gcc_cv_as_section_exclude_e=no
23587 if test $in_tree_gas = yes; then
23588 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23589 then gcc_cv_as_section_exclude_e=yes
23590 fi
23591 elif test x$gcc_cv_as != x; then
23592 $as_echo '.section foo1,"e"
23593 .byte 0,0,0,0' > conftest.s
23594 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23596 (eval $ac_try) 2>&5
23597 ac_status=$?
23598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23599 test $ac_status = 0; }; }
23600 then
23601 gcc_cv_as_section_exclude_e=yes
23602 else
23603 echo "configure: failed program was" >&5
23604 cat conftest.s >&5
23605 fi
23606 rm -f conftest.o conftest.s
23607 fi
23608 fi
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23610 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23611
23612
23613 if test $gcc_cv_as_section_exclude_e = no; then
23614 case "${target}" in
23615 # Solaris as uses #exclude instead.
23616 *-*-solaris2*)
23617 case "${target}" in
23618 sparc*-*-solaris2*)
23619 conftest_s='.section "foo1", #exclude'
23620 ;;
23621 i?86-*-solaris2* | x86_64-*-solaris2*)
23622 conftest_s='.section foo1, #exclude'
23623 ;;
23624 esac
23625 ;;
23626 esac
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23628 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23629 if test "${gcc_cv_as_section_exclude_hash+set}" = set; then :
23630 $as_echo_n "(cached) " >&6
23631 else
23632 gcc_cv_as_section_exclude_hash=no
23633 if test x$gcc_cv_as != x; then
23634 $as_echo "$conftest_s
23635 .byte 0,0,0,0" > conftest.s
23636 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23638 (eval $ac_try) 2>&5
23639 ac_status=$?
23640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23641 test $ac_status = 0; }; }
23642 then
23643 gcc_cv_as_section_exclude_hash=yes
23644 else
23645 echo "configure: failed program was" >&5
23646 cat conftest.s >&5
23647 fi
23648 rm -f conftest.o conftest.s
23649 fi
23650 fi
23651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23652 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23653
23654
23655 fi
23656
23657 cat >>confdefs.h <<_ACEOF
23658 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_exclude_e = yes || test $gcc_cv_as_section_exclude_hash = yes; then echo 1; else echo 0; fi`
23659 _ACEOF
23660
23661
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23663 $as_echo_n "checking assembler for section merging support... " >&6; }
23664 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23665 $as_echo_n "(cached) " >&6
23666 else
23667 gcc_cv_as_shf_merge=no
23668 if test $in_tree_gas = yes; then
23669 if test $in_tree_gas_is_elf = yes \
23670 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23671 then gcc_cv_as_shf_merge=yes
23672 fi
23673 elif test x$gcc_cv_as != x; then
23674 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23675 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23677 (eval $ac_try) 2>&5
23678 ac_status=$?
23679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23680 test $ac_status = 0; }; }
23681 then
23682 gcc_cv_as_shf_merge=yes
23683 else
23684 echo "configure: failed program was" >&5
23685 cat conftest.s >&5
23686 fi
23687 rm -f conftest.o conftest.s
23688 fi
23689 fi
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23691 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23692
23693
23694 if test $gcc_cv_as_shf_merge = no; then
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23696 $as_echo_n "checking assembler for section merging support... " >&6; }
23697 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23698 $as_echo_n "(cached) " >&6
23699 else
23700 gcc_cv_as_shf_merge=no
23701 if test $in_tree_gas = yes; then
23702 if test $in_tree_gas_is_elf = yes \
23703 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23704 then gcc_cv_as_shf_merge=yes
23705 fi
23706 elif test x$gcc_cv_as != x; then
23707 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23708 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23710 (eval $ac_try) 2>&5
23711 ac_status=$?
23712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23713 test $ac_status = 0; }; }
23714 then
23715 gcc_cv_as_shf_merge=yes
23716 else
23717 echo "configure: failed program was" >&5
23718 cat conftest.s >&5
23719 fi
23720 rm -f conftest.o conftest.s
23721 fi
23722 fi
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23724 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23725
23726
23727 fi
23728 case "$target" in
23729 i?86-*-solaris2.10* | x86_64-*-solaris2.10*)
23730 # SHF_MERGE support in Solaris 10/x86 ld is broken.
23731 if test x"$gnu_ld" = xno; then
23732 gcc_cv_as_shf_merge=no
23733 fi
23734 ;;
23735 esac
23736
23737 cat >>confdefs.h <<_ACEOF
23738 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23739 _ACEOF
23740
23741
23742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23743 $as_echo_n "checking assembler for stabs directive... " >&6; }
23744 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23745 $as_echo_n "(cached) " >&6
23746 else
23747 gcc_cv_as_stabs_directive=no
23748 if test x$gcc_cv_as != x; then
23749 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23750 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23752 (eval $ac_try) 2>&5
23753 ac_status=$?
23754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23755 test $ac_status = 0; }; }
23756 then
23757 gcc_cv_as_stabs_directive=yes
23758 else
23759 echo "configure: failed program was" >&5
23760 cat conftest.s >&5
23761 fi
23762 rm -f conftest.o conftest.s
23763 fi
23764 fi
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23766 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23767 if test $gcc_cv_as_stabs_directive = yes; then
23768
23769 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23770
23771 fi
23772
23773
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23775 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23776 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23777 $as_echo_n "(cached) " >&6
23778 else
23779 gcc_cv_as_comdat_group=no
23780 if test $in_tree_gas = yes; then
23781 if test $in_tree_gas_is_elf = yes \
23782 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23783 then gcc_cv_as_comdat_group=yes
23784 fi
23785 elif test x$gcc_cv_as != x; then
23786 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23787 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23789 (eval $ac_try) 2>&5
23790 ac_status=$?
23791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23792 test $ac_status = 0; }; }
23793 then
23794 gcc_cv_as_comdat_group=yes
23795 else
23796 echo "configure: failed program was" >&5
23797 cat conftest.s >&5
23798 fi
23799 rm -f conftest.o conftest.s
23800 fi
23801 fi
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23803 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23804
23805
23806 if test $gcc_cv_as_comdat_group = yes; then
23807 gcc_cv_as_comdat_group_percent=no
23808 gcc_cv_as_comdat_group_group=no
23809 else
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23811 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23812 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23813 $as_echo_n "(cached) " >&6
23814 else
23815 gcc_cv_as_comdat_group_percent=no
23816 if test $in_tree_gas = yes; then
23817 if test $in_tree_gas_is_elf = yes \
23818 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23819 then gcc_cv_as_comdat_group_percent=yes
23820 fi
23821 elif test x$gcc_cv_as != x; then
23822 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23823 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23825 (eval $ac_try) 2>&5
23826 ac_status=$?
23827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23828 test $ac_status = 0; }; }
23829 then
23830 gcc_cv_as_comdat_group_percent=yes
23831 else
23832 echo "configure: failed program was" >&5
23833 cat conftest.s >&5
23834 fi
23835 rm -f conftest.o conftest.s
23836 fi
23837 fi
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23839 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23840
23841
23842 if test $gcc_cv_as_comdat_group_percent = yes; then
23843 gcc_cv_as_comdat_group_group=no
23844 else
23845 case "${target}" in
23846 # Sun as uses a completely different syntax.
23847 *-*-solaris2*)
23848 case "${target}" in
23849 sparc*-*-solaris2*)
23850 conftest_s='
23851 .group foo,".text%foo",#comdat
23852 .section ".text%foo", #alloc,#execinstr,#progbits
23853 .globl foo
23854 foo:
23855 '
23856 ;;
23857 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23858 conftest_s='
23859 .group foo,.text%foo,#comdat
23860 .section .text%foo, "ax", @progbits
23861 .globl foo
23862 foo:
23863 '
23864 ;;
23865 esac
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23867 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23868 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23869 $as_echo_n "(cached) " >&6
23870 else
23871 gcc_cv_as_comdat_group_group=no
23872 if test x$gcc_cv_as != x; then
23873 $as_echo "$conftest_s" > conftest.s
23874 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23876 (eval $ac_try) 2>&5
23877 ac_status=$?
23878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23879 test $ac_status = 0; }; }
23880 then
23881 gcc_cv_as_comdat_group_group=yes
23882 else
23883 echo "configure: failed program was" >&5
23884 cat conftest.s >&5
23885 fi
23886 rm -f conftest.o conftest.s
23887 fi
23888 fi
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23890 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23891
23892
23893 ;;
23894 esac
23895 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23896 gcc_cv_as_comdat_group_group=no
23897 fi
23898 fi
23899 fi
23900 if test x"$ld_is_gold" = xyes; then
23901 comdat_group=yes
23902 elif test $in_tree_ld = yes ; then
23903 comdat_group=no
23904 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 \
23905 && test $in_tree_ld_is_elf = yes; then
23906 comdat_group=yes
23907 fi
23908 elif echo "$ld_ver" | grep GNU > /dev/null; then
23909 comdat_group=yes
23910 if test 0"$ld_date" -lt 20050308; then
23911 if test -n "$ld_date"; then
23912 # If there was date string, but was earlier than 2005-03-08, fail
23913 comdat_group=no
23914 elif test "$ld_vers_major" -lt 2; then
23915 comdat_group=no
23916 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23917 comdat_group=no
23918 fi
23919 fi
23920 else
23921 case "${target}" in
23922 *-*-solaris2.1[1-9]*)
23923 comdat_group=no
23924 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23925 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23926 # version 1.688.
23927 #
23928 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23929 # least ld version 1.2267.
23930 if test "$ld_vers_major" -gt 1; then
23931 comdat_group=yes
23932 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23933 comdat_group=yes
23934 elif test "$ld_vers_minor" -ge 2267; then
23935 comdat_group=yes
23936 fi
23937 ;;
23938 *)
23939 # Assume linkers other than GNU ld don't support COMDAT group.
23940 comdat_group=no
23941 ;;
23942 esac
23943 fi
23944 # Allow overriding the automatic COMDAT group tests above.
23945 # Check whether --enable-comdat was given.
23946 if test "${enable_comdat+set}" = set; then :
23947 enableval=$enable_comdat; comdat_group="$enable_comdat"
23948 fi
23949
23950 if test $comdat_group = no; then
23951 gcc_cv_as_comdat_group=no
23952 gcc_cv_as_comdat_group_percent=no
23953 gcc_cv_as_comdat_group_group=no
23954 fi
23955
23956 cat >>confdefs.h <<_ACEOF
23957 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23958 || test $gcc_cv_as_comdat_group_percent = yes \
23959 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23960 _ACEOF
23961
23962
23963 # Restrict this test to Solaris/x86: other targets define this statically.
23964 case "${target}" in
23965 i?86-*-solaris2* | x86_64-*-solaris2*)
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
23967 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
23968 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
23969 hidden_linkonce=yes
23970 else
23971 case "${target}" in
23972 # Full support for hidden thunks in linkonce sections only appeared in
23973 # Solaris 11/OpenSolaris.
23974 *-*-solaris2.1[1-9]*)
23975 hidden_linkonce=yes
23976 ;;
23977 *)
23978 hidden_linkonce=no
23979 ;;
23980 esac
23981 fi
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
23983 $as_echo "$hidden_linkonce" >&6; }
23984
23985 cat >>confdefs.h <<_ACEOF
23986 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
23987 _ACEOF
23988
23989 ;;
23990 esac
23991
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
23993 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
23994 if test "${gcc_cv_as_is_stmt+set}" = set; then :
23995 $as_echo_n "(cached) " >&6
23996 else
23997 gcc_cv_as_is_stmt=no
23998 if test $in_tree_gas = yes; then
23999 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24000 then gcc_cv_as_is_stmt=yes
24001 fi
24002 elif test x$gcc_cv_as != x; then
24003 $as_echo ' .text
24004 .file 1 "conf.c"
24005 .loc 1 1 0 is_stmt 1' > conftest.s
24006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24008 (eval $ac_try) 2>&5
24009 ac_status=$?
24010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24011 test $ac_status = 0; }; }
24012 then
24013 gcc_cv_as_is_stmt=yes
24014 else
24015 echo "configure: failed program was" >&5
24016 cat conftest.s >&5
24017 fi
24018 rm -f conftest.o conftest.s
24019 fi
24020 fi
24021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24022 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24023 if test $gcc_cv_as_is_stmt = yes; then
24024
24025 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24026
24027 fi
24028
24029
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24031 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24032 if test "${gcc_cv_as_discriminator+set}" = set; then :
24033 $as_echo_n "(cached) " >&6
24034 else
24035 gcc_cv_as_discriminator=no
24036 if test $in_tree_gas = yes; then
24037 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24038 then gcc_cv_as_discriminator=yes
24039 fi
24040 elif test x$gcc_cv_as != x; then
24041 $as_echo ' .text
24042 .file 1 "conf.c"
24043 .loc 1 1 0 discriminator 1' > conftest.s
24044 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24046 (eval $ac_try) 2>&5
24047 ac_status=$?
24048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24049 test $ac_status = 0; }; }
24050 then
24051 gcc_cv_as_discriminator=yes
24052 else
24053 echo "configure: failed program was" >&5
24054 cat conftest.s >&5
24055 fi
24056 rm -f conftest.o conftest.s
24057 fi
24058 fi
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24060 $as_echo "$gcc_cv_as_discriminator" >&6; }
24061 if test $gcc_cv_as_discriminator = yes; then
24062
24063 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24064
24065 fi
24066
24067
24068 # Thread-local storage - the check is heavily parameterized.
24069 conftest_s=
24070 tls_first_major=
24071 tls_first_minor=
24072 tls_as_opt=
24073 case "$target" in
24074 alpha*-*-*)
24075 conftest_s='
24076 .section ".tdata","awT",@progbits
24077 foo: .long 25
24078 .text
24079 ldq $27,__tls_get_addr($29) !literal!1
24080 lda $16,foo($29) !tlsgd!1
24081 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24082 ldq $27,__tls_get_addr($29) !literal!2
24083 lda $16,foo($29) !tlsldm!2
24084 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24085 ldq $1,foo($29) !gotdtprel
24086 ldah $2,foo($29) !dtprelhi
24087 lda $3,foo($2) !dtprello
24088 lda $4,foo($29) !dtprel
24089 ldq $1,foo($29) !gottprel
24090 ldah $2,foo($29) !tprelhi
24091 lda $3,foo($2) !tprello
24092 lda $4,foo($29) !tprel'
24093 tls_first_major=2
24094 tls_first_minor=13
24095 tls_as_opt=--fatal-warnings
24096 ;;
24097 arc*-*-*)
24098 conftest_s='
24099 add_s r0,r0, @foo@tpoff'
24100 tls_first_major=2
24101 tls_first_minor=23
24102 ;;
24103 cris-*-*|crisv32-*-*)
24104 conftest_s='
24105 .section ".tdata","awT",@progbits
24106 x: .long 25
24107 .text
24108 move.d x:IE,$r10
24109 nop'
24110 tls_first_major=2
24111 tls_first_minor=20
24112 tls_as_opt=--fatal-warnings
24113 ;;
24114 frv*-*-*)
24115 conftest_s='
24116 .section ".tdata","awT",@progbits
24117 x: .long 25
24118 .text
24119 call #gettlsoff(x)'
24120 tls_first_major=2
24121 tls_first_minor=14
24122 ;;
24123 hppa*-*-linux*)
24124 conftest_s='
24125 t1: .reg %r20
24126 t2: .reg %r21
24127 gp: .reg %r19
24128 .section ".tdata","awT",@progbits
24129 foo: .long 25
24130 .text
24131 .align 4
24132 addil LT%foo-$tls_gdidx$,gp
24133 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24134 b __tls_get_addr
24135 nop
24136 addil LT%foo-$tls_ldidx$,gp
24137 b __tls_get_addr
24138 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24139 addil LR%foo-$tls_dtpoff$,%ret0
24140 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24141 mfctl %cr27,%t1
24142 addil LT%foo-$tls_ieoff$,gp
24143 ldw RT%foo-$tls_ieoff$(%r1),%t2
24144 add %t1,%t2,%t3
24145 mfctl %cr27,%t1
24146 addil LR%foo-$tls_leoff$,%t1
24147 ldo RR%foo-$tls_leoff$(%r1),%t2'
24148 tls_first_major=2
24149 tls_first_minor=15
24150 tls_as_opt=--fatal-warnings
24151 ;;
24152 arm*-*-*)
24153 conftest_s='
24154 .section ".tdata","awT",%progbits
24155 foo: .long 25
24156 .text
24157 .word foo(gottpoff)
24158 .word foo(tpoff)
24159 .word foo(tlsgd)
24160 .word foo(tlsldm)
24161 .word foo(tlsldo)'
24162 tls_first_major=2
24163 tls_first_minor=17
24164 ;;
24165 i[34567]86-*-* | x86_64-*-*)
24166 case "$target" in
24167 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
24168 on_solaris=yes
24169 ;;
24170 *)
24171 on_solaris=no
24172 ;;
24173 esac
24174 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24175 conftest_s='
24176 .section .tdata,"awt",@progbits'
24177 tls_first_major=0
24178 tls_first_minor=0
24179 tls_section_flag=t
24180
24181 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24182
24183 else
24184 conftest_s='
24185 .section ".tdata","awT",@progbits'
24186 tls_first_major=2
24187 tls_first_minor=14
24188 tls_section_flag=T
24189 tls_as_opt="--fatal-warnings"
24190 fi
24191 case "$target" in
24192 i[34567]86-*-*)
24193 conftest_s="$conftest_s
24194 foo: .long 25
24195 .text
24196 movl %gs:0, %eax
24197 leal foo@tlsgd(,%ebx,1), %eax
24198 leal foo@tlsldm(%ebx), %eax
24199 leal foo@dtpoff(%eax), %edx
24200 movl foo@gottpoff(%ebx), %eax
24201 subl foo@gottpoff(%ebx), %eax
24202 addl foo@gotntpoff(%ebx), %eax
24203 movl foo@indntpoff, %eax
24204 movl \$foo@tpoff, %eax
24205 subl \$foo@tpoff, %eax
24206 leal foo@ntpoff(%ecx), %eax"
24207 ;;
24208 x86_64-*-*)
24209 if test x$on_solaris = xyes; then
24210 case $gas_flag in
24211 yes) tls_as_opt="$tls_as_opt --64" ;;
24212 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24213 esac
24214 fi
24215 conftest_s="$conftest_s
24216 foo: .long 25
24217 .text
24218 movq %fs:0, %rax
24219 leaq foo@tlsgd(%rip), %rdi
24220 leaq foo@tlsld(%rip), %rdi
24221 leaq foo@dtpoff(%rax), %rdx
24222 movq foo@gottpoff(%rip), %rax
24223 movq \$foo@tpoff, %rax"
24224 ;;
24225 esac
24226 ;;
24227 ia64-*-*)
24228 conftest_s='
24229 .section ".tdata","awT",@progbits
24230 foo: data8 25
24231 .text
24232 addl r16 = @ltoff(@dtpmod(foo#)), gp
24233 addl r17 = @ltoff(@dtprel(foo#)), gp
24234 addl r18 = @ltoff(@tprel(foo#)), gp
24235 addl r19 = @dtprel(foo#), gp
24236 adds r21 = @dtprel(foo#), r13
24237 movl r23 = @dtprel(foo#)
24238 addl r20 = @tprel(foo#), gp
24239 adds r22 = @tprel(foo#), r13
24240 movl r24 = @tprel(foo#)'
24241 tls_first_major=2
24242 tls_first_minor=13
24243 tls_as_opt=--fatal-warnings
24244 ;;
24245 microblaze*-*-*)
24246 conftest_s='
24247 .section .tdata,"awT",@progbits
24248 x:
24249 .word 2
24250 .text
24251 addik r5,r20,x@TLSGD
24252 addik r5,r20,x@TLSLDM'
24253 tls_first_major=2
24254 tls_first_minor=20
24255 tls_as_opt='--fatal-warnings'
24256 ;;
24257 mips*-*-*)
24258 conftest_s='
24259 .section .tdata,"awT",@progbits
24260 x:
24261 .word 2
24262 .text
24263 addiu $4, $28, %tlsgd(x)
24264 addiu $4, $28, %tlsldm(x)
24265 lui $4, %dtprel_hi(x)
24266 addiu $4, $4, %dtprel_lo(x)
24267 lw $4, %gottprel(x)($28)
24268 lui $4, %tprel_hi(x)
24269 addiu $4, $4, %tprel_lo(x)'
24270 tls_first_major=2
24271 tls_first_minor=16
24272 tls_as_opt='-32 --fatal-warnings'
24273 ;;
24274 m68k-*-*)
24275 conftest_s='
24276 .section .tdata,"awT",@progbits
24277 x:
24278 .word 2
24279 .text
24280 foo:
24281 move.l x@TLSGD(%a5),%a0
24282 move.l x@TLSLDM(%a5),%a0
24283 move.l x@TLSLDO(%a5),%a0
24284 move.l x@TLSIE(%a5),%a0
24285 move.l x@TLSLE(%a5),%a0'
24286 tls_first_major=2
24287 tls_first_minor=19
24288 tls_as_opt='--fatal-warnings'
24289 ;;
24290 nios2-*-*)
24291 conftest_s='
24292 .section ".tdata","awT",@progbits'
24293 tls_first_major=2
24294 tls_first_minor=23
24295 tls_as_opt="--fatal-warnings"
24296 ;;
24297 aarch64*-*-*)
24298 conftest_s='
24299 .section ".tdata","awT",%progbits
24300 foo: .long 25
24301 .text
24302 adrp x0, :tlsgd:x
24303 add x0, x0, #:tlsgd_lo12:x
24304 bl __tls_get_addr
24305 nop'
24306 tls_first_major=2
24307 tls_first_minor=20
24308 tls_as_opt='--fatal-warnings'
24309 ;;
24310 powerpc-ibm-aix*)
24311 conftest_s='
24312 .extern __get_tpointer
24313 .toc
24314 LC..1:
24315 .tc a[TC],a[TL]@le
24316 .csect .text[PR]
24317 .tlstest:
24318 lwz 9,LC..1(2)
24319 bla __get_tpointer
24320 lwzx 3,9,3
24321 .globl a
24322 .csect a[TL],4
24323 a:
24324 .space 4'
24325 tls_first_major=0
24326 tls_first_minor=0
24327 ;;
24328 powerpc64*-*-*)
24329 conftest_s='
24330 .section ".tdata","awT",@progbits
24331 .align 3
24332 ld0: .space 8
24333 ld1: .space 8
24334 x1: .space 8
24335 x2: .space 8
24336 x3: .space 8
24337 .text
24338 addi 3,2,ld0@got@tlsgd
24339 bl .__tls_get_addr
24340 nop
24341 addi 3,2,ld1@toc
24342 bl .__tls_get_addr
24343 nop
24344 addi 3,2,x1@got@tlsld
24345 bl .__tls_get_addr
24346 nop
24347 addi 9,3,x1@dtprel
24348 bl .__tls_get_addr
24349 nop
24350 addis 9,3,x2@dtprel@ha
24351 addi 9,9,x2@dtprel@l
24352 bl .__tls_get_addr
24353 nop
24354 ld 9,x3@got@dtprel(2)
24355 add 9,9,3
24356 bl .__tls_get_addr
24357 nop'
24358 tls_first_major=2
24359 tls_first_minor=14
24360 tls_as_opt="-a64 --fatal-warnings"
24361 ;;
24362 powerpc*-*-*)
24363 conftest_s='
24364 .section ".tdata","awT",@progbits
24365 .align 2
24366 ld0: .space 4
24367 ld1: .space 4
24368 x1: .space 4
24369 x2: .space 4
24370 x3: .space 4
24371 .text
24372 addi 3,31,ld0@got@tlsgd
24373 bl __tls_get_addr
24374 addi 3,31,x1@got@tlsld
24375 bl __tls_get_addr
24376 addi 9,3,x1@dtprel
24377 addis 9,3,x2@dtprel@ha
24378 addi 9,9,x2@dtprel@l
24379 lwz 9,x3@got@tprel(31)
24380 add 9,9,x@tls
24381 addi 9,2,x1@tprel
24382 addis 9,2,x2@tprel@ha
24383 addi 9,9,x2@tprel@l'
24384 tls_first_major=2
24385 tls_first_minor=14
24386 tls_as_opt="-a32 --fatal-warnings"
24387 ;;
24388 riscv*-*-*)
24389 conftest_s='
24390 .section .tdata,"awT",@progbits
24391 x: .word 2
24392 .text
24393 la.tls.gd a0,x
24394 call __tls_get_addr'
24395 tls_first_major=2
24396 tls_first_minor=21
24397 tls_as_opt='--fatal-warnings'
24398 ;;
24399 s390-*-*)
24400 conftest_s='
24401 .section ".tdata","awT",@progbits
24402 foo: .long 25
24403 .text
24404 .long foo@TLSGD
24405 .long foo@TLSLDM
24406 .long foo@DTPOFF
24407 .long foo@NTPOFF
24408 .long foo@GOTNTPOFF
24409 .long foo@INDNTPOFF
24410 l %r1,foo@GOTNTPOFF(%r12)
24411 l %r1,0(%r1):tls_load:foo
24412 bas %r14,0(%r1,%r13):tls_gdcall:foo
24413 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24414 tls_first_major=2
24415 tls_first_minor=14
24416 tls_as_opt="-m31 --fatal-warnings"
24417 ;;
24418 s390x-*-*)
24419 conftest_s='
24420 .section ".tdata","awT",@progbits
24421 foo: .long 25
24422 .text
24423 .quad foo@TLSGD
24424 .quad foo@TLSLDM
24425 .quad foo@DTPOFF
24426 .quad foo@NTPOFF
24427 .quad foo@GOTNTPOFF
24428 lg %r1,foo@GOTNTPOFF(%r12)
24429 larl %r1,foo@INDNTPOFF
24430 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24431 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24432 tls_first_major=2
24433 tls_first_minor=14
24434 tls_as_opt="-m64 -Aesame --fatal-warnings"
24435 ;;
24436 sh-*-* | sh[123456789lbe]*-*-*)
24437 conftest_s='
24438 .section ".tdata","awT",@progbits
24439 foo: .long 25
24440 .text
24441 .long foo@TLSGD
24442 .long foo@TLSLDM
24443 .long foo@DTPOFF
24444 .long foo@GOTTPOFF
24445 .long foo@TPOFF'
24446 tls_first_major=2
24447 tls_first_minor=13
24448 tls_as_opt=--fatal-warnings
24449 ;;
24450 sparc*-*-*)
24451 case "$target" in
24452 sparc*-sun-solaris2.*)
24453 on_solaris=yes
24454 ;;
24455 *)
24456 on_solaris=no
24457 ;;
24458 esac
24459 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24460 conftest_s='
24461 .section ".tdata",#alloc,#write,#tls'
24462 tls_first_major=0
24463 tls_first_minor=0
24464 else
24465 conftest_s='
24466 .section ".tdata","awT",@progbits'
24467 tls_first_major=2
24468 tls_first_minor=14
24469 tls_as_opt="-32 --fatal-warnings"
24470 fi
24471 conftest_s="$conftest_s
24472 foo: .long 25
24473 .text
24474 sethi %tgd_hi22(foo), %o0
24475 add %o0, %tgd_lo10(foo), %o1
24476 add %l7, %o1, %o0, %tgd_add(foo)
24477 call __tls_get_addr, %tgd_call(foo)
24478 sethi %tldm_hi22(foo), %l1
24479 add %l1, %tldm_lo10(foo), %l2
24480 add %l7, %l2, %o0, %tldm_add(foo)
24481 call __tls_get_addr, %tldm_call(foo)
24482 sethi %tldo_hix22(foo), %l3
24483 xor %l3, %tldo_lox10(foo), %l4
24484 add %o0, %l4, %l5, %tldo_add(foo)
24485 sethi %tie_hi22(foo), %o3
24486 add %o3, %tie_lo10(foo), %o3
24487 ld [%l7 + %o3], %o2, %tie_ld(foo)
24488 add %g7, %o2, %o4, %tie_add(foo)
24489 sethi %tle_hix22(foo), %l1
24490 xor %l1, %tle_lox10(foo), %o5
24491 ld [%g7 + %o5], %o1"
24492 ;;
24493 tilepro*-*-*)
24494 conftest_s='
24495 .section ".tdata","awT",@progbits
24496 foo: .long 25
24497 .text
24498 addli r0, zero, tls_gd(foo)
24499 auli r0, zero, tls_gd_ha16(foo)
24500 addli r0, r0, tls_gd_lo16(foo)
24501 jal __tls_get_addr
24502 addli r0, zero, tls_ie(foo)
24503 auli r0, r0, tls_ie_ha16(foo)
24504 addli r0, r0, tls_ie_lo16(foo)'
24505 tls_first_major=2
24506 tls_first_minor=22
24507 tls_as_opt="--fatal-warnings"
24508 ;;
24509 tilegx*-*-*)
24510 conftest_s='
24511 .section ".tdata","awT",@progbits
24512 foo: .long 25
24513 .text
24514 shl16insli r0, zero, hw0_last_tls_gd(foo)
24515 shl16insli r0, zero, hw1_last_tls_gd(foo)
24516 shl16insli r0, r0, hw0_tls_gd(foo)
24517 jal __tls_get_addr
24518 shl16insli r0, zero, hw1_last_tls_ie(foo)
24519 shl16insli r0, r0, hw0_tls_ie(foo)'
24520 tls_first_major=2
24521 tls_first_minor=22
24522 tls_as_opt="--fatal-warnings"
24523 ;;
24524 xtensa*-*-*)
24525 conftest_s='
24526 .section ".tdata","awT",@progbits
24527 foo: .long 25
24528 .text
24529 movi a8, foo@TLSFUNC
24530 movi a10, foo@TLSARG
24531 callx8.tls a8, foo@TLSCALL'
24532 tls_first_major=2
24533 tls_first_minor=19
24534 ;;
24535 esac
24536 set_have_as_tls=no
24537 if test "x$enable_tls" = xno ; then
24538 : # TLS explicitly disabled.
24539 elif test "x$enable_tls" = xyes ; then
24540 set_have_as_tls=yes # TLS explicitly enabled.
24541 elif test -z "$tls_first_major"; then
24542 : # If we don't have a check, assume no support.
24543 else
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24545 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24546 if test "${gcc_cv_as_tls+set}" = set; then :
24547 $as_echo_n "(cached) " >&6
24548 else
24549 gcc_cv_as_tls=no
24550 if test $in_tree_gas = yes; then
24551 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24552 then gcc_cv_as_tls=yes
24553 fi
24554 elif test x$gcc_cv_as != x; then
24555 $as_echo "$conftest_s" > conftest.s
24556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -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_tls=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_tls" >&5
24572 $as_echo "$gcc_cv_as_tls" >&6; }
24573 if test $gcc_cv_as_tls = yes; then
24574 set_have_as_tls=yes
24575 fi
24576
24577 fi
24578 if test $set_have_as_tls = yes ; then
24579
24580 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24581
24582 fi
24583
24584 # Target-specific assembler checks.
24585
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24587 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24588 gcc_cv_ld_static_dynamic=no
24589 gcc_cv_ld_static_option='-Bstatic'
24590 gcc_cv_ld_dynamic_option='-Bdynamic'
24591 if test $in_tree_ld = yes ; then
24592 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
24593 gcc_cv_ld_static_dynamic=yes
24594 fi
24595 elif test x$gcc_cv_ld != x; then
24596 # Check if linker supports -Bstatic/-Bdynamic option
24597 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24598 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24599 gcc_cv_ld_static_dynamic=yes
24600 else
24601 case "$target" in
24602 # AIX ld uses -b flags
24603 *-*-aix4.[23]* | *-*-aix[5-9]*)
24604 gcc_cv_ld_static_dynamic=yes
24605 gcc_cv_ld_static_option="-bstatic"
24606 gcc_cv_ld_dynamic_option="-bdynamic"
24607 ;;
24608 # HP-UX ld uses -a flags to select between shared and archive.
24609 *-*-hpux*)
24610 if test x"$gnu_ld" = xno; then
24611 gcc_cv_ld_static_dynamic=yes
24612 gcc_cv_ld_static_option="-aarchive_shared"
24613 gcc_cv_ld_dynamic_option="-adefault"
24614 fi
24615 ;;
24616 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24617 *-*-solaris2*)
24618 gcc_cv_ld_static_dynamic=yes
24619 ;;
24620 esac
24621 fi
24622 fi
24623 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24624
24625 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24626
24627
24628 cat >>confdefs.h <<_ACEOF
24629 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24630 _ACEOF
24631
24632
24633 cat >>confdefs.h <<_ACEOF
24634 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24635 _ACEOF
24636
24637 fi
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24639 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24640
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24642 $as_echo_n "checking linker --version-script option... " >&6; }
24643 gcc_cv_ld_version_script=no
24644 ld_version_script_option=''
24645 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24646 gcc_cv_ld_version_script=yes
24647 ld_version_script_option='--version-script'
24648 elif test x$gcc_cv_ld != x; then
24649 case "$target" in
24650 # Solaris 2 ld always supports -M. It also supports a subset of
24651 # --version-script since Solaris 11.4, but requires
24652 # -z gnu-version-script-compat to activate.
24653 *-*-solaris2*)
24654 gcc_cv_ld_version_script=yes
24655 ld_version_script_option='-M'
24656 ;;
24657 esac
24658 fi
24659 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24661 $as_echo "$gcc_cv_ld_version_script" >&6; }
24662
24663
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24665 $as_echo_n "checking linker soname option... " >&6; }
24666 gcc_cv_ld_soname=no
24667 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24668 gcc_cv_ld_soname=yes
24669 ld_soname_option='-soname'
24670 elif test x$gcc_cv_ld != x; then
24671 case "$target" in
24672 *-*-darwin*)
24673 gcc_cv_ld_soname=yes
24674 ld_soname_option='-install_name'
24675 ;;
24676 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24677 # ld compatiblity since some Solaris 10 update.
24678 *-*-solaris2*)
24679 gcc_cv_ld_soname=yes
24680 ld_soname_option='-h'
24681 ;;
24682 esac
24683 fi
24684 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24686 $as_echo "$gcc_cv_ld_soname" >&6; }
24687
24688
24689 if test x"$demangler_in_ld" = xyes; then
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24691 $as_echo_n "checking linker --demangle support... " >&6; }
24692 gcc_cv_ld_demangle=no
24693 if test $in_tree_ld = yes; then
24694 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 \
24695 gcc_cv_ld_demangle=yes
24696 fi
24697 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24698 # Check if the GNU linker supports --demangle option
24699 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24700 gcc_cv_ld_demangle=yes
24701 fi
24702 fi
24703 if test x"$gcc_cv_ld_demangle" = xyes; then
24704
24705 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24706
24707 fi
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24709 $as_echo "$gcc_cv_ld_demangle" >&6; }
24710 fi
24711
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24713 $as_echo_n "checking linker plugin support... " >&6; }
24714 gcc_cv_lto_plugin=0
24715 if test -f liblto_plugin.la; then
24716 save_ld_ver="$ld_ver"
24717 save_ld_vers_major="$ld_vers_major"
24718 save_ld_vers_minor="$ld_vers_minor"
24719 save_ld_is_gold="$ld_is_gold"
24720
24721 ld_is_gold=no
24722
24723 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24724 ld_ver="GNU ld"
24725 # FIXME: ld_is_gold?
24726 ld_vers_major="$gcc_cv_gld_major_version"
24727 ld_vers_minor="$gcc_cv_gld_minor_version"
24728 else
24729 # Determine plugin linker version.
24730 # FIXME: Partial duplicate from above, generalize.
24731 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24732 if echo "$ld_ver" | grep GNU > /dev/null; then
24733 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24734 ld_is_gold=yes
24735 ld_vers=`echo $ld_ver | sed -n \
24736 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24737 else
24738 ld_vers=`echo $ld_ver | sed -n \
24739 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24740 fi
24741 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24742 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24743 fi
24744 fi
24745
24746 # Determine plugin support.
24747 if echo "$ld_ver" | grep GNU > /dev/null; then
24748 # Require GNU ld or gold 2.21+ for plugin support by default.
24749 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24750 gcc_cv_lto_plugin=2
24751 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24752 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24753 gcc_cv_lto_plugin=1
24754 fi
24755 fi
24756
24757 ld_ver="$save_ld_ver"
24758 ld_vers_major="$save_ld_vers_major"
24759 ld_vers_minor="$save_ld_vers_minor"
24760 ld_is_gold="$save_ld_is_gold"
24761 fi
24762
24763 cat >>confdefs.h <<_ACEOF
24764 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24765 _ACEOF
24766
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24768 $as_echo "$gcc_cv_lto_plugin" >&6; }
24769
24770 # Target OS-specific assembler checks.
24771
24772 case "$target_os" in
24773 darwin*)
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24775 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24776 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24777 $as_echo_n "(cached) " >&6
24778 else
24779 gcc_cv_as_mmacosx_version_min=no
24780 if test x$gcc_cv_as != x; then
24781 $as_echo '.text' > conftest.s
24782 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -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_mmacosx_version_min=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_mmacosx_version_min" >&5
24798 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24799 if test $gcc_cv_as_mmacosx_version_min = yes; then
24800
24801 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24802
24803 fi
24804
24805 ;;
24806 esac
24807
24808 # Target CPU-specific assembler checks.
24809
24810 case "$target" in
24811 aarch64*-*-*)
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24813 $as_echo_n "checking assembler for -mabi option... " >&6; }
24814 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24815 $as_echo_n "(cached) " >&6
24816 else
24817 gcc_cv_as_aarch64_mabi=no
24818 if test x$gcc_cv_as != x; then
24819 $as_echo '.text' > conftest.s
24820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24822 (eval $ac_try) 2>&5
24823 ac_status=$?
24824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24825 test $ac_status = 0; }; }
24826 then
24827 gcc_cv_as_aarch64_mabi=yes
24828 else
24829 echo "configure: failed program was" >&5
24830 cat conftest.s >&5
24831 fi
24832 rm -f conftest.o conftest.s
24833 fi
24834 fi
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24836 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24837
24838
24839 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24840
24841 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24842
24843 else
24844 if test x$with_abi = xilp32; then
24845 as_fn_error "Assembler does not support -mabi=ilp32.\
24846 Upgrade the Assembler." "$LINENO" 5
24847 fi
24848 if test x"$with_multilib_list" = xdefault; then
24849 TM_MULTILIB_CONFIG=lp64
24850 else
24851 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24852 for aarch64_multilib in ${aarch64_multilibs}; do
24853 case ${aarch64_multilib} in
24854 ilp32)
24855 as_fn_error "Assembler does not support -mabi=ilp32.\
24856 Upgrade the Assembler." "$LINENO" 5
24857 ;;
24858 *)
24859 ;;
24860 esac
24861 done
24862 fi
24863 fi
24864 # Check if we have binutils support for relocations types needed by -fpic
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24866 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24867 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24868 $as_echo_n "(cached) " >&6
24869 else
24870 gcc_cv_as_aarch64_picreloc=no
24871 if test x$gcc_cv_as != x; then
24872 $as_echo '
24873 .text
24874 ldr x0, [x2, #:gotpage_lo15:globalsym]
24875 ' > conftest.s
24876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24878 (eval $ac_try) 2>&5
24879 ac_status=$?
24880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24881 test $ac_status = 0; }; }
24882 then
24883 gcc_cv_as_aarch64_picreloc=yes
24884 else
24885 echo "configure: failed program was" >&5
24886 cat conftest.s >&5
24887 fi
24888 rm -f conftest.o conftest.s
24889 fi
24890 fi
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24892 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24893 if test $gcc_cv_as_aarch64_picreloc = yes; then
24894
24895 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24896
24897 fi
24898
24899 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24900 # Check whether --enable-fix-cortex-a53-835769 was given.
24901 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24902 enableval=$enable_fix_cortex_a53_835769;
24903 case $enableval in
24904 yes)
24905 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24906 ;;
24907 no)
24908 ;;
24909 *)
24910 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24911 Valid choices are 'yes' and 'no'." "$LINENO" 5
24912 ;;
24913
24914 esac
24915
24916 fi
24917
24918 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24919 # Check whether --enable-fix-cortex-a53-843419 was given.
24920 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24921 enableval=$enable_fix_cortex_a53_843419;
24922 case $enableval in
24923 yes)
24924 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24925 ;;
24926 no)
24927 ;;
24928 *)
24929 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24930 Valid choices are 'yes' and 'no'." "$LINENO" 5
24931 ;;
24932
24933 esac
24934
24935 fi
24936
24937 ;;
24938
24939 # All TARGET_ABI_OSF targets.
24940 alpha*-*-linux* | alpha*-*-*bsd*)
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24942 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24943 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24944 $as_echo_n "(cached) " >&6
24945 else
24946 gcc_cv_as_alpha_explicit_relocs=no
24947 if test $in_tree_gas = yes; then
24948 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24949 then gcc_cv_as_alpha_explicit_relocs=yes
24950 fi
24951 elif test x$gcc_cv_as != x; then
24952 $as_echo ' .set nomacro
24953 .text
24954 extbl $3, $2, $3 !lituse_bytoff!1
24955 ldq $2, a($29) !literal!1
24956 ldq $4, b($29) !literal!2
24957 ldq_u $3, 0($2) !lituse_base!1
24958 ldq $27, f($29) !literal!5
24959 jsr $26, ($27), f !lituse_jsr!5
24960 ldah $29, 0($26) !gpdisp!3
24961 lda $0, c($29) !gprel
24962 ldah $1, d($29) !gprelhigh
24963 lda $1, d($1) !gprellow
24964 lda $29, 0($29) !gpdisp!3' > conftest.s
24965 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24967 (eval $ac_try) 2>&5
24968 ac_status=$?
24969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24970 test $ac_status = 0; }; }
24971 then
24972 gcc_cv_as_alpha_explicit_relocs=yes
24973 else
24974 echo "configure: failed program was" >&5
24975 cat conftest.s >&5
24976 fi
24977 rm -f conftest.o conftest.s
24978 fi
24979 fi
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24981 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24982 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24983
24984 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24985
24986 fi
24987
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24989 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24990 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24991 $as_echo_n "(cached) " >&6
24992 else
24993 gcc_cv_as_alpha_jsrdirect_relocs=no
24994 if test $in_tree_gas = yes; then
24995 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24996 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24997 fi
24998 elif test x$gcc_cv_as != x; then
24999 $as_echo ' .set nomacro
25000 .text
25001 ldq $27, a($29) !literal!1
25002 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25003 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25005 (eval $ac_try) 2>&5
25006 ac_status=$?
25007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25008 test $ac_status = 0; }; }
25009 then
25010 gcc_cv_as_alpha_jsrdirect_relocs=yes
25011 else
25012 echo "configure: failed program was" >&5
25013 cat conftest.s >&5
25014 fi
25015 rm -f conftest.o conftest.s
25016 fi
25017 fi
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25019 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25020 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25021
25022 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25023
25024 fi
25025
25026 ;;
25027
25028 avr-*-*)
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25030 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25031 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
25032 $as_echo_n "(cached) " >&6
25033 else
25034 gcc_cv_as_avr_mlink_relax=no
25035 if test x$gcc_cv_as != x; then
25036 $as_echo '.text' > conftest.s
25037 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25039 (eval $ac_try) 2>&5
25040 ac_status=$?
25041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25042 test $ac_status = 0; }; }
25043 then
25044 gcc_cv_as_avr_mlink_relax=yes
25045 else
25046 echo "configure: failed program was" >&5
25047 cat conftest.s >&5
25048 fi
25049 rm -f conftest.o conftest.s
25050 fi
25051 fi
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25053 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25054 if test $gcc_cv_as_avr_mlink_relax = yes; then
25055
25056 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25057
25058 fi
25059
25060
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25062 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25063 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
25064 $as_echo_n "(cached) " >&6
25065 else
25066 gcc_cv_as_avr_mrmw=no
25067 if test x$gcc_cv_as != x; then
25068 $as_echo '.text' > conftest.s
25069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25071 (eval $ac_try) 2>&5
25072 ac_status=$?
25073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25074 test $ac_status = 0; }; }
25075 then
25076 gcc_cv_as_avr_mrmw=yes
25077 else
25078 echo "configure: failed program was" >&5
25079 cat conftest.s >&5
25080 fi
25081 rm -f conftest.o conftest.s
25082 fi
25083 fi
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25085 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25086 if test $gcc_cv_as_avr_mrmw = yes; then
25087
25088 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25089
25090 fi
25091
25092
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25094 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25095 if test "${gcc_cv_as_avr_mgccisr+set}" = set; then :
25096 $as_echo_n "(cached) " >&6
25097 else
25098 gcc_cv_as_avr_mgccisr=no
25099 if test x$gcc_cv_as != x; then
25100 $as_echo '.text
25101 __gcc_isr 1
25102 __gcc_isr 2
25103 __gcc_isr 0,r24
25104 ' > conftest.s
25105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25107 (eval $ac_try) 2>&5
25108 ac_status=$?
25109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25110 test $ac_status = 0; }; }
25111 then
25112 gcc_cv_as_avr_mgccisr=yes
25113 else
25114 echo "configure: failed program was" >&5
25115 cat conftest.s >&5
25116 fi
25117 rm -f conftest.o conftest.s
25118 fi
25119 fi
25120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25121 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25122 if test $gcc_cv_as_avr_mgccisr = yes; then
25123
25124 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25125
25126 fi
25127
25128
25129 # Check how default linker description file implements .rodata for
25130 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25131 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25133 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25134 cat > conftest.s <<EOF
25135 .section .rodata,"a",@progbits
25136 .global xxvaryy
25137 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25138 xxvaryy:
25139 .word 1
25140 EOF
25141 rm -f conftest.nm
25142 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25144 (eval $ac_try) 2>&5
25145 ac_status=$?
25146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25147 test $ac_status = 0; }; }
25148 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25150 (eval $ac_try) 2>&5
25151 ac_status=$?
25152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25153 test $ac_status = 0; }; }
25154 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25156 (eval $ac_try) 2>&5
25157 ac_status=$?
25158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25159 test $ac_status = 0; }; }
25160 if test -s conftest.nm
25161 then
25162 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25164 $as_echo "yes" >&6; }
25165
25166 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25167
25168 else
25169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25170 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25171 echo "$as_me: nm output was" >&5
25172 cat conftest.nm >&5
25173 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
25175 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25176 fi
25177 else
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25179 $as_echo "test failed" >&6; }
25180 echo "$as_me: failed program was" >&5
25181 cat conftest.s >&5
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25183 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25184 fi
25185 rm -f conftest.s conftest.o conftest.elf conftest.nm
25186 ;;
25187
25188 cris-*-*)
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25190 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25191 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
25192 $as_echo_n "(cached) " >&6
25193 else
25194 gcc_cv_as_cris_no_mul_bug=no
25195 if test $in_tree_gas = yes; then
25196 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25197 then gcc_cv_as_cris_no_mul_bug=yes
25198 fi
25199 elif test x$gcc_cv_as != x; then
25200 $as_echo '.text' > conftest.s
25201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25203 (eval $ac_try) 2>&5
25204 ac_status=$?
25205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25206 test $ac_status = 0; }; }
25207 then
25208 gcc_cv_as_cris_no_mul_bug=yes
25209 else
25210 echo "configure: failed program was" >&5
25211 cat conftest.s >&5
25212 fi
25213 rm -f conftest.o conftest.s
25214 fi
25215 fi
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25217 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25218 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25219
25220 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25221
25222 fi
25223
25224 ;;
25225
25226 sparc*-*-*)
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
25228 $as_echo_n "checking assembler for .register... " >&6; }
25229 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
25230 $as_echo_n "(cached) " >&6
25231 else
25232 gcc_cv_as_sparc_register_op=no
25233 if test x$gcc_cv_as != x; then
25234 $as_echo '.register %g2, #scratch' > conftest.s
25235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25237 (eval $ac_try) 2>&5
25238 ac_status=$?
25239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25240 test $ac_status = 0; }; }
25241 then
25242 gcc_cv_as_sparc_register_op=yes
25243 else
25244 echo "configure: failed program was" >&5
25245 cat conftest.s >&5
25246 fi
25247 rm -f conftest.o conftest.s
25248 fi
25249 fi
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
25251 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
25252 if test $gcc_cv_as_sparc_register_op = yes; then
25253
25254 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
25255
25256 fi
25257
25258
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25260 $as_echo_n "checking assembler for -relax option... " >&6; }
25261 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
25262 $as_echo_n "(cached) " >&6
25263 else
25264 gcc_cv_as_sparc_relax=no
25265 if test x$gcc_cv_as != x; then
25266 $as_echo '.text' > conftest.s
25267 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25269 (eval $ac_try) 2>&5
25270 ac_status=$?
25271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25272 test $ac_status = 0; }; }
25273 then
25274 gcc_cv_as_sparc_relax=yes
25275 else
25276 echo "configure: failed program was" >&5
25277 cat conftest.s >&5
25278 fi
25279 rm -f conftest.o conftest.s
25280 fi
25281 fi
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25283 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25284 if test $gcc_cv_as_sparc_relax = yes; then
25285
25286 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25287
25288 fi
25289
25290
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25292 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25293 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
25294 $as_echo_n "(cached) " >&6
25295 else
25296 gcc_cv_as_sparc_gotdata_op=no
25297 if test x$gcc_cv_as != x; then
25298 $as_echo '.text
25299 .align 4
25300 foo:
25301 nop
25302 bar:
25303 sethi %gdop_hix22(foo), %g1
25304 xor %g1, %gdop_lox10(foo), %g1
25305 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25306 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25308 (eval $ac_try) 2>&5
25309 ac_status=$?
25310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25311 test $ac_status = 0; }; }
25312 then
25313 if test x$gcc_cv_ld != x \
25314 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25315 if test x$gcc_cv_objdump != x; then
25316 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25317 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25318 gcc_cv_as_sparc_gotdata_op=no
25319 else
25320 gcc_cv_as_sparc_gotdata_op=yes
25321 fi
25322 fi
25323 fi
25324 rm -f conftest
25325 else
25326 echo "configure: failed program was" >&5
25327 cat conftest.s >&5
25328 fi
25329 rm -f conftest.o conftest.s
25330 fi
25331 fi
25332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25333 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25334 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25335
25336 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25337
25338 fi
25339
25340
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25342 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25343 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
25344 $as_echo_n "(cached) " >&6
25345 else
25346 gcc_cv_as_sparc_ua_pcrel=no
25347 if test x$gcc_cv_as != x; then
25348 $as_echo '.text
25349 foo:
25350 nop
25351 .data
25352 .align 4
25353 .byte 0
25354 .uaword %r_disp32(foo)' > conftest.s
25355 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25357 (eval $ac_try) 2>&5
25358 ac_status=$?
25359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25360 test $ac_status = 0; }; }
25361 then
25362 if test x$gcc_cv_ld != x \
25363 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25364 gcc_cv_as_sparc_ua_pcrel=yes
25365 fi
25366 rm -f conftest
25367 else
25368 echo "configure: failed program was" >&5
25369 cat conftest.s >&5
25370 fi
25371 rm -f conftest.o conftest.s
25372 fi
25373 fi
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25375 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25376 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25377
25378 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25379
25380
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25382 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25383 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25384 $as_echo_n "(cached) " >&6
25385 else
25386 gcc_cv_as_sparc_ua_pcrel_hidden=no
25387 if test x$gcc_cv_as != x; then
25388 $as_echo '.data
25389 .align 4
25390 .byte 0x31
25391 .uaword %r_disp32(foo)
25392 .byte 0x32, 0x33, 0x34
25393 .global foo
25394 .hidden foo
25395 foo:
25396 .skip 4' > conftest.s
25397 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25399 (eval $ac_try) 2>&5
25400 ac_status=$?
25401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25402 test $ac_status = 0; }; }
25403 then
25404 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25405 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25406 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25407 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25408 if $gcc_cv_objdump -R conftest 2> /dev/null \
25409 | grep 'DISP32' > /dev/null 2>&1; then
25410 :
25411 else
25412 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25413 fi
25414 fi
25415 rm -f conftest
25416 else
25417 echo "configure: failed program was" >&5
25418 cat conftest.s >&5
25419 fi
25420 rm -f conftest.o conftest.s
25421 fi
25422 fi
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25424 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25425 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25426
25427 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25428
25429 fi
25430
25431
25432 fi
25433 # unaligned pcrel relocs
25434
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25436 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25437 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25438 $as_echo_n "(cached) " >&6
25439 else
25440 gcc_cv_as_sparc_offsetable_lo10=no
25441 if test x$gcc_cv_as != x; then
25442 $as_echo '.text
25443 or %g1, %lo(ab) + 12, %g1
25444 or %g1, %lo(ab + 12), %g1' > conftest.s
25445 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25447 (eval $ac_try) 2>&5
25448 ac_status=$?
25449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25450 test $ac_status = 0; }; }
25451 then
25452 if test x$gcc_cv_objdump != x \
25453 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25454 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25455 gcc_cv_as_sparc_offsetable_lo10=yes
25456 fi
25457 else
25458 echo "configure: failed program was" >&5
25459 cat conftest.s >&5
25460 fi
25461 rm -f conftest.o conftest.s
25462 fi
25463 fi
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25465 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25466 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25467
25468 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25469
25470 fi
25471
25472
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25474 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25475 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25476 $as_echo_n "(cached) " >&6
25477 else
25478 gcc_cv_as_sparc_fmaf=no
25479 if test x$gcc_cv_as != x; then
25480 $as_echo '.text
25481 .register %g2, #scratch
25482 .register %g3, #scratch
25483 .align 4
25484 fmaddd %f0, %f2, %f4, %f6
25485 addxccc %g1, %g2, %g3
25486 fsrl32 %f2, %f4, %f8
25487 fnaddd %f10, %f12, %f14' > conftest.s
25488 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25490 (eval $ac_try) 2>&5
25491 ac_status=$?
25492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25493 test $ac_status = 0; }; }
25494 then
25495 gcc_cv_as_sparc_fmaf=yes
25496 else
25497 echo "configure: failed program was" >&5
25498 cat conftest.s >&5
25499 fi
25500 rm -f conftest.o conftest.s
25501 fi
25502 fi
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25504 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25505 if test $gcc_cv_as_sparc_fmaf = yes; then
25506
25507 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25508
25509 fi
25510
25511
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25513 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25514 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25515 $as_echo_n "(cached) " >&6
25516 else
25517 gcc_cv_as_sparc_sparc4=no
25518 if test x$gcc_cv_as != x; then
25519 $as_echo '.text
25520 .register %g2, #scratch
25521 .register %g3, #scratch
25522 .align 4
25523 cxbe %g2, %g3, 1f
25524 1: cwbneg %g2, %g3, 1f
25525 1: sha1
25526 md5
25527 aes_kexpand0 %f4, %f6, %f8
25528 des_round %f38, %f40, %f42, %f44
25529 camellia_f %f54, %f56, %f58, %f60
25530 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25531 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25533 (eval $ac_try) 2>&5
25534 ac_status=$?
25535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25536 test $ac_status = 0; }; }
25537 then
25538 gcc_cv_as_sparc_sparc4=yes
25539 else
25540 echo "configure: failed program was" >&5
25541 cat conftest.s >&5
25542 fi
25543 rm -f conftest.o conftest.s
25544 fi
25545 fi
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25547 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25548 if test $gcc_cv_as_sparc_sparc4 = yes; then
25549
25550 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25551
25552 fi
25553
25554
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25556 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25557 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25558 $as_echo_n "(cached) " >&6
25559 else
25560 gcc_cv_as_sparc_sparc5=no
25561 if test x$gcc_cv_as != x; then
25562 $as_echo '.text
25563 .register %g2, #scratch
25564 .register %g3, #scratch
25565 .align 4
25566 subxc %g1, %g2, %g3
25567 fpadd8 %f0, %f2, %f4' > conftest.s
25568 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25570 (eval $ac_try) 2>&5
25571 ac_status=$?
25572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25573 test $ac_status = 0; }; }
25574 then
25575 gcc_cv_as_sparc_sparc5=yes
25576 else
25577 echo "configure: failed program was" >&5
25578 cat conftest.s >&5
25579 fi
25580 rm -f conftest.o conftest.s
25581 fi
25582 fi
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25584 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25585 if test $gcc_cv_as_sparc_sparc5 = yes; then
25586
25587 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25588
25589 fi
25590
25591
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25593 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25594 if test "${gcc_cv_as_sparc_sparc6+set}" = set; then :
25595 $as_echo_n "(cached) " >&6
25596 else
25597 gcc_cv_as_sparc_sparc6=no
25598 if test x$gcc_cv_as != x; then
25599 $as_echo '.text
25600 .register %g2, #scratch
25601 .register %g3, #scratch
25602 .align 4
25603 rd %entropy, %g1
25604 fpsll64x %f0, %f2, %f4' > conftest.s
25605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25607 (eval $ac_try) 2>&5
25608 ac_status=$?
25609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25610 test $ac_status = 0; }; }
25611 then
25612 gcc_cv_as_sparc_sparc6=yes
25613 else
25614 echo "configure: failed program was" >&5
25615 cat conftest.s >&5
25616 fi
25617 rm -f conftest.o conftest.s
25618 fi
25619 fi
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25621 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25622 if test $gcc_cv_as_sparc_sparc6 = yes; then
25623
25624 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25625
25626 fi
25627
25628
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25630 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25631 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25632 $as_echo_n "(cached) " >&6
25633 else
25634 gcc_cv_as_sparc_leon=no
25635 if test x$gcc_cv_as != x; then
25636 $as_echo '.text
25637 .register %g2, #scratch
25638 .register %g3, #scratch
25639 .align 4
25640 smac %g2, %g3, %g1
25641 umac %g2, %g3, %g1
25642 casa [%g2] 0xb, %g3, %g1' > conftest.s
25643 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25645 (eval $ac_try) 2>&5
25646 ac_status=$?
25647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25648 test $ac_status = 0; }; }
25649 then
25650 gcc_cv_as_sparc_leon=yes
25651 else
25652 echo "configure: failed program was" >&5
25653 cat conftest.s >&5
25654 fi
25655 rm -f conftest.o conftest.s
25656 fi
25657 fi
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25659 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25660 if test $gcc_cv_as_sparc_leon = yes; then
25661
25662 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25663
25664 fi
25665
25666 ;;
25667
25668 i[34567]86-*-* | x86_64-*-*)
25669 case $target_os in
25670 cygwin*)
25671 # Full C++ conformance when using a shared libstdc++-v3 requires some
25672 # support from the Cygwin DLL, which in more recent versions exports
25673 # wrappers to aid in interposing and redirecting operators new, delete,
25674 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25675 # are configuring for a version of Cygwin that exports the wrappers.
25676 if test x$host = x$target && test x$host_cpu = xi686; then
25677 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25678 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25679 gcc_ac_cygwin_dll_wrappers=yes
25680 else
25681 gcc_ac_cygwin_dll_wrappers=no
25682 fi
25683
25684 else
25685 # Can't check presence of libc functions during cross-compile, so
25686 # we just have to assume we're building for an up-to-date target.
25687 gcc_ac_cygwin_dll_wrappers=yes
25688 fi
25689
25690 cat >>confdefs.h <<_ACEOF
25691 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25692 _ACEOF
25693
25694 esac
25695 case $target_os in
25696 cygwin* | pe | mingw32*)
25697 # Recent binutils allows the three-operand form of ".comm" on PE. This
25698 # definition is used unconditionally to initialise the default state of
25699 # the target option variable that governs usage of the feature.
25700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25701 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25702 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25703 $as_echo_n "(cached) " >&6
25704 else
25705 gcc_cv_as_comm_has_align=no
25706 if test $in_tree_gas = yes; then
25707 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25708 then gcc_cv_as_comm_has_align=yes
25709 fi
25710 elif test x$gcc_cv_as != x; then
25711 $as_echo '.comm foo,1,32' > conftest.s
25712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25714 (eval $ac_try) 2>&5
25715 ac_status=$?
25716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25717 test $ac_status = 0; }; }
25718 then
25719 gcc_cv_as_comm_has_align=yes
25720 else
25721 echo "configure: failed program was" >&5
25722 cat conftest.s >&5
25723 fi
25724 rm -f conftest.o conftest.s
25725 fi
25726 fi
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25728 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25729
25730
25731
25732 cat >>confdefs.h <<_ACEOF
25733 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25734 _ACEOF
25735
25736 # Used for DWARF 2 in PE
25737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25738 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25739 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25740 $as_echo_n "(cached) " >&6
25741 else
25742 gcc_cv_as_ix86_pe_secrel32=no
25743 if test $in_tree_gas = yes; then
25744 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25745 then gcc_cv_as_ix86_pe_secrel32=yes
25746 fi
25747 elif test x$gcc_cv_as != x; then
25748 $as_echo '.text
25749 foo: nop
25750 .data
25751 .secrel32 foo' > conftest.s
25752 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25754 (eval $ac_try) 2>&5
25755 ac_status=$?
25756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25757 test $ac_status = 0; }; }
25758 then
25759 if test x$gcc_cv_ld != x \
25760 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25761 gcc_cv_as_ix86_pe_secrel32=yes
25762 fi
25763 rm -f conftest
25764 else
25765 echo "configure: failed program was" >&5
25766 cat conftest.s >&5
25767 fi
25768 rm -f conftest.o conftest.s
25769 fi
25770 fi
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25772 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25773 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25774
25775 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25776
25777 fi
25778
25779 # Test if the assembler supports the extended form of the .section
25780 # directive that specifies section alignment. LTO support uses this,
25781 # but normally only after installation, so we warn but don't fail the
25782 # configure if LTO is enabled but the assembler does not support it.
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25784 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25785 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25786 $as_echo_n "(cached) " >&6
25787 else
25788 gcc_cv_as_section_has_align=no
25789 if test $in_tree_gas = yes; then
25790 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25791 then gcc_cv_as_section_has_align=yes
25792 fi
25793 elif test x$gcc_cv_as != x; then
25794 $as_echo '.section lto_test,"dr0"' > conftest.s
25795 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25797 (eval $ac_try) 2>&5
25798 ac_status=$?
25799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25800 test $ac_status = 0; }; }
25801 then
25802 gcc_cv_as_section_has_align=yes
25803 else
25804 echo "configure: failed program was" >&5
25805 cat conftest.s >&5
25806 fi
25807 rm -f conftest.o conftest.s
25808 fi
25809 fi
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25811 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25812
25813
25814 if test x$gcc_cv_as_section_has_align != xyes; then
25815 case ",$enable_languages," in
25816 *,lto,*)
25817 { $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
25818 $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;}
25819 ;;
25820 esac
25821 fi
25822 ;;
25823 esac
25824
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25826 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25827 if test "${gcc_cv_as_ix86_xbrace_comment+set}" = set; then :
25828 $as_echo_n "(cached) " >&6
25829 else
25830 gcc_cv_as_ix86_xbrace_comment=no
25831 if test x$gcc_cv_as != x; then
25832 $as_echo '.text' > conftest.s
25833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
25834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25835 (eval $ac_try) 2>&5
25836 ac_status=$?
25837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25838 test $ac_status = 0; }; }
25839 then
25840 gcc_cv_as_ix86_xbrace_comment=yes
25841 else
25842 echo "configure: failed program was" >&5
25843 cat conftest.s >&5
25844 fi
25845 rm -f conftest.o conftest.s
25846 fi
25847 fi
25848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
25849 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25850 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25851
25852 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25853
25854 fi
25855
25856
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25858 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25859 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25860 $as_echo_n "(cached) " >&6
25861 else
25862 gcc_cv_as_ix86_filds=no
25863 if test x$gcc_cv_as != x; then
25864 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25867 (eval $ac_try) 2>&5
25868 ac_status=$?
25869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25870 test $ac_status = 0; }; }
25871 then
25872 gcc_cv_as_ix86_filds=yes
25873 else
25874 echo "configure: failed program was" >&5
25875 cat conftest.s >&5
25876 fi
25877 rm -f conftest.o conftest.s
25878 fi
25879 fi
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25881 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25882 if test $gcc_cv_as_ix86_filds = yes; then
25883
25884 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25885
25886 fi
25887
25888
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25890 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25891 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25892 $as_echo_n "(cached) " >&6
25893 else
25894 gcc_cv_as_ix86_fildq=no
25895 if test x$gcc_cv_as != x; then
25896 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25897 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25899 (eval $ac_try) 2>&5
25900 ac_status=$?
25901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25902 test $ac_status = 0; }; }
25903 then
25904 gcc_cv_as_ix86_fildq=yes
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_fildq" >&5
25913 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25914 if test $gcc_cv_as_ix86_fildq = yes; then
25915
25916 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25917
25918 fi
25919
25920
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25922 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25923 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25924 $as_echo_n "(cached) " >&6
25925 else
25926 gcc_cv_as_ix86_cmov_sun_syntax=no
25927 if test x$gcc_cv_as != x; then
25928 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25929 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25931 (eval $ac_try) 2>&5
25932 ac_status=$?
25933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25934 test $ac_status = 0; }; }
25935 then
25936 gcc_cv_as_ix86_cmov_sun_syntax=yes
25937 else
25938 echo "configure: failed program was" >&5
25939 cat conftest.s >&5
25940 fi
25941 rm -f conftest.o conftest.s
25942 fi
25943 fi
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25945 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25946 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25947
25948 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25949
25950 fi
25951
25952
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25954 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25955 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25956 $as_echo_n "(cached) " >&6
25957 else
25958 gcc_cv_as_ix86_ffreep=no
25959 if test x$gcc_cv_as != x; then
25960 $as_echo 'ffreep %st(1)' > conftest.s
25961 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25963 (eval $ac_try) 2>&5
25964 ac_status=$?
25965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25966 test $ac_status = 0; }; }
25967 then
25968 gcc_cv_as_ix86_ffreep=yes
25969 else
25970 echo "configure: failed program was" >&5
25971 cat conftest.s >&5
25972 fi
25973 rm -f conftest.o conftest.s
25974 fi
25975 fi
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25977 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25978 if test $gcc_cv_as_ix86_ffreep = yes; then
25979
25980 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25981
25982 fi
25983
25984
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25986 $as_echo_n "checking assembler for .quad directive... " >&6; }
25987 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25988 $as_echo_n "(cached) " >&6
25989 else
25990 gcc_cv_as_ix86_quad=no
25991 if test x$gcc_cv_as != x; then
25992 $as_echo '.quad 0' > conftest.s
25993 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25995 (eval $ac_try) 2>&5
25996 ac_status=$?
25997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25998 test $ac_status = 0; }; }
25999 then
26000 gcc_cv_as_ix86_quad=yes
26001 else
26002 echo "configure: failed program was" >&5
26003 cat conftest.s >&5
26004 fi
26005 rm -f conftest.o conftest.s
26006 fi
26007 fi
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26009 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26010 if test $gcc_cv_as_ix86_quad = yes; then
26011
26012 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26013
26014 fi
26015
26016
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26018 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26019 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
26020 $as_echo_n "(cached) " >&6
26021 else
26022 gcc_cv_as_ix86_sahf=no
26023 if test x$gcc_cv_as != x; then
26024 $as_echo '.code64
26025 sahf' > conftest.s
26026 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26028 (eval $ac_try) 2>&5
26029 ac_status=$?
26030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26031 test $ac_status = 0; }; }
26032 then
26033 gcc_cv_as_ix86_sahf=yes
26034 else
26035 echo "configure: failed program was" >&5
26036 cat conftest.s >&5
26037 fi
26038 rm -f conftest.o conftest.s
26039 fi
26040 fi
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26042 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26043 if test $gcc_cv_as_ix86_sahf = yes; then
26044
26045 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26046
26047 fi
26048
26049
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26051 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26052 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
26053 $as_echo_n "(cached) " >&6
26054 else
26055 gcc_cv_as_ix86_interunit_movq=no
26056 if test x$gcc_cv_as != x; then
26057 $as_echo '.code64
26058 movq %mm0, %rax
26059 movq %rax, %xmm0' > conftest.s
26060 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26062 (eval $ac_try) 2>&5
26063 ac_status=$?
26064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26065 test $ac_status = 0; }; }
26066 then
26067 gcc_cv_as_ix86_interunit_movq=yes
26068 else
26069 echo "configure: failed program was" >&5
26070 cat conftest.s >&5
26071 fi
26072 rm -f conftest.o conftest.s
26073 fi
26074 fi
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26076 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26077
26078
26079
26080 cat >>confdefs.h <<_ACEOF
26081 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26082 _ACEOF
26083
26084
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26086 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26087 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
26088 $as_echo_n "(cached) " >&6
26089 else
26090 gcc_cv_as_ix86_hle=no
26091 if test x$gcc_cv_as != x; then
26092 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26093 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26095 (eval $ac_try) 2>&5
26096 ac_status=$?
26097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26098 test $ac_status = 0; }; }
26099 then
26100 gcc_cv_as_ix86_hle=yes
26101 else
26102 echo "configure: failed program was" >&5
26103 cat conftest.s >&5
26104 fi
26105 rm -f conftest.o conftest.s
26106 fi
26107 fi
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26109 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26110 if test $gcc_cv_as_ix86_hle = yes; then
26111
26112 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26113
26114 fi
26115
26116
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26118 $as_echo_n "checking assembler for swap suffix... " >&6; }
26119 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
26120 $as_echo_n "(cached) " >&6
26121 else
26122 gcc_cv_as_ix86_swap=no
26123 if test x$gcc_cv_as != x; then
26124 $as_echo 'movl.s %esp, %ebp' > conftest.s
26125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26127 (eval $ac_try) 2>&5
26128 ac_status=$?
26129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26130 test $ac_status = 0; }; }
26131 then
26132 gcc_cv_as_ix86_swap=yes
26133 else
26134 echo "configure: failed program was" >&5
26135 cat conftest.s >&5
26136 fi
26137 rm -f conftest.o conftest.s
26138 fi
26139 fi
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26141 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26142 if test $gcc_cv_as_ix86_swap = yes; then
26143
26144 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26145
26146 fi
26147
26148
26149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26150 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26151 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
26152 $as_echo_n "(cached) " >&6
26153 else
26154 gcc_cv_as_ix86_diff_sect_delta=no
26155 if test x$gcc_cv_as != x; then
26156 $as_echo '.section .rodata
26157 .L1:
26158 .long .L2-.L1
26159 .long .L3-.L1
26160 .text
26161 .L3: nop
26162 .L2: nop' > conftest.s
26163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26165 (eval $ac_try) 2>&5
26166 ac_status=$?
26167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26168 test $ac_status = 0; }; }
26169 then
26170 gcc_cv_as_ix86_diff_sect_delta=yes
26171 else
26172 echo "configure: failed program was" >&5
26173 cat conftest.s >&5
26174 fi
26175 rm -f conftest.o conftest.s
26176 fi
26177 fi
26178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26179 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26180 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26181
26182 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26183
26184 fi
26185
26186
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26188 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26189 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
26190 $as_echo_n "(cached) " >&6
26191 else
26192 gcc_cv_as_ix86_rep_lock_prefix=no
26193 if test x$gcc_cv_as != x; then
26194 $as_echo 'rep movsl
26195 rep ret
26196 rep nop
26197 rep bsf %ecx, %eax
26198 rep bsr %ecx, %eax
26199 lock addl %edi, (%eax,%esi)
26200 lock orl $0, (%esp)' > conftest.s
26201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26203 (eval $ac_try) 2>&5
26204 ac_status=$?
26205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26206 test $ac_status = 0; }; }
26207 then
26208 gcc_cv_as_ix86_rep_lock_prefix=yes
26209 else
26210 echo "configure: failed program was" >&5
26211 cat conftest.s >&5
26212 fi
26213 rm -f conftest.o conftest.s
26214 fi
26215 fi
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26217 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26218 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26219
26220 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26221
26222 fi
26223
26224
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26226 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26227 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
26228 $as_echo_n "(cached) " >&6
26229 else
26230 gcc_cv_as_ix86_ud2=no
26231 if test x$gcc_cv_as != x; then
26232 $as_echo 'ud2' > conftest.s
26233 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26235 (eval $ac_try) 2>&5
26236 ac_status=$?
26237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26238 test $ac_status = 0; }; }
26239 then
26240 gcc_cv_as_ix86_ud2=yes
26241 else
26242 echo "configure: failed program was" >&5
26243 cat conftest.s >&5
26244 fi
26245 rm -f conftest.o conftest.s
26246 fi
26247 fi
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26249 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26250 if test $gcc_cv_as_ix86_ud2 = yes; then
26251
26252 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26253
26254 fi
26255
26256
26257 # Enforce 32-bit output with gas and gld.
26258 if test x$gas = xyes; then
26259 as_ix86_gas_32_opt="--32"
26260 fi
26261 if echo "$ld_ver" | grep GNU > /dev/null; then
26262 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26263 ld_ix86_gld_32_opt="-melf_i386_sol2"
26264 else
26265 ld_ix86_gld_32_opt="-melf_i386"
26266 fi
26267 fi
26268
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26270 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26271 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
26272 $as_echo_n "(cached) " >&6
26273 else
26274 gcc_cv_as_ix86_tlsgdplt=no
26275 if test x$gcc_cv_as != x; then
26276 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26277 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26279 (eval $ac_try) 2>&5
26280 ac_status=$?
26281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26282 test $ac_status = 0; }; }
26283 then
26284 if test x$gcc_cv_ld != x \
26285 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26286 gcc_cv_as_ix86_tlsgdplt=yes
26287 fi
26288 rm -f conftest
26289 else
26290 echo "configure: failed program was" >&5
26291 cat conftest.s >&5
26292 fi
26293 rm -f conftest.o conftest.s
26294 fi
26295 fi
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26297 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26298 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26299
26300 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26301
26302 fi
26303
26304
26305 conftest_s='
26306 .section .tdata,"aw'$tls_section_flag'",@progbits
26307 tls_ld:
26308 .section .text,"ax",@progbits
26309 call tls_ld@tlsldmplt'
26310
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26312 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26313 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
26314 $as_echo_n "(cached) " >&6
26315 else
26316 gcc_cv_as_ix86_tlsldmplt=no
26317 if test x$gcc_cv_as != x; then
26318 $as_echo "$conftest_s" > conftest.s
26319 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26321 (eval $ac_try) 2>&5
26322 ac_status=$?
26323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26324 test $ac_status = 0; }; }
26325 then
26326 if test x$gcc_cv_ld != x \
26327 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26328 gcc_cv_as_ix86_tlsldmplt=yes
26329 fi
26330 rm -f conftest
26331 else
26332 echo "configure: failed program was" >&5
26333 cat conftest.s >&5
26334 fi
26335 rm -f conftest.o conftest.s
26336 fi
26337 fi
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26339 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26340
26341
26342
26343 cat >>confdefs.h <<_ACEOF
26344 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26345 _ACEOF
26346
26347
26348 conftest_s='
26349 .section .text,"ax",@progbits
26350 .globl _start
26351 .type _start, @function
26352 _start:
26353 leal value@tlsldm(%ebx), %eax
26354 call ___tls_get_addr@plt
26355
26356 .section .tdata,"aw'$tls_section_flag'",@progbits
26357 .type value, @object
26358 value:'
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26360 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26361 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
26362 $as_echo_n "(cached) " >&6
26363 else
26364 gcc_cv_as_ix86_tlsldm=no
26365 if test x$gcc_cv_as != x; then
26366 $as_echo "$conftest_s" > conftest.s
26367 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26369 (eval $ac_try) 2>&5
26370 ac_status=$?
26371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26372 test $ac_status = 0; }; }
26373 then
26374 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26375 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26376 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26377 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26378 gcc_cv_as_ix86_tlsldm=yes
26379 fi
26380 fi
26381 rm -f conftest
26382 else
26383 echo "configure: failed program was" >&5
26384 cat conftest.s >&5
26385 fi
26386 rm -f conftest.o conftest.s
26387 fi
26388 fi
26389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26390 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26391
26392
26393
26394 cat >>confdefs.h <<_ACEOF
26395 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26396 _ACEOF
26397
26398
26399 conftest_s='
26400 .data
26401 bar:
26402 .byte 1
26403 .text
26404 .global _start
26405 _start:
26406 cmpl $0, bar@GOT
26407 jmp *_start@GOT'
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26409 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26410 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26411 $as_echo_n "(cached) " >&6
26412 else
26413 gcc_cv_as_ix86_got32x=no
26414 if test x$gcc_cv_as != x; then
26415 $as_echo "$conftest_s" > conftest.s
26416 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26418 (eval $ac_try) 2>&5
26419 ac_status=$?
26420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26421 test $ac_status = 0; }; }
26422 then
26423 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26424 && test x$gcc_cv_readelf != x \
26425 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26426 | grep R_386_GOT32X > /dev/null 2>&1 \
26427 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26428 if $gcc_cv_objdump -dw conftest 2>&1 \
26429 | grep 0xffffff > /dev/null 2>&1; then
26430 gcc_cv_as_ix86_got32x=no
26431 else
26432 gcc_cv_as_ix86_got32x=yes
26433 fi
26434 fi
26435 rm -f conftest
26436 else
26437 echo "configure: failed program was" >&5
26438 cat conftest.s >&5
26439 fi
26440 rm -f conftest.o conftest.s
26441 fi
26442 fi
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26444 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26445
26446
26447
26448 cat >>confdefs.h <<_ACEOF
26449 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26450 _ACEOF
26451
26452
26453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26454 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26455 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26456 $as_echo_n "(cached) " >&6
26457 else
26458 gcc_cv_as_ix86_gotoff_in_data=no
26459 if test $in_tree_gas = yes; then
26460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26461 then gcc_cv_as_ix86_gotoff_in_data=yes
26462 fi
26463 elif test x$gcc_cv_as != x; then
26464 $as_echo ' .text
26465 .L0:
26466 nop
26467 .data
26468 .long .L0@GOTOFF' > conftest.s
26469 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26471 (eval $ac_try) 2>&5
26472 ac_status=$?
26473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26474 test $ac_status = 0; }; }
26475 then
26476 gcc_cv_as_ix86_gotoff_in_data=yes
26477 else
26478 echo "configure: failed program was" >&5
26479 cat conftest.s >&5
26480 fi
26481 rm -f conftest.o conftest.s
26482 fi
26483 fi
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26485 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26486
26487
26488
26489 cat >>confdefs.h <<_ACEOF
26490 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26491 _ACEOF
26492
26493
26494 conftest_s='
26495 .section .text,"ax",@progbits
26496 .globl _start
26497 .type _start, @function
26498 _start:
26499 leal ld@tlsldm(%ecx), %eax
26500 call *___tls_get_addr@GOT(%ecx)
26501 leal gd@tlsgd(%ecx), %eax
26502 call *___tls_get_addr@GOT(%ecx)
26503
26504 .section .tdata,"aw'$tls_section_flag'",@progbits
26505 .type ld, @object
26506 ld:
26507 .byte 0
26508 .globl gd
26509 .type gd, @object
26510 gd:
26511 .byte 0'
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26513 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26514 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26515 $as_echo_n "(cached) " >&6
26516 else
26517 gcc_cv_as_ix86_tls_get_addr_via_got=no
26518 if test x$gcc_cv_as != x; then
26519 $as_echo "$conftest_s" > conftest.s
26520 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26522 (eval $ac_try) 2>&5
26523 ac_status=$?
26524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26525 test $ac_status = 0; }; }
26526 then
26527 if test x$gcc_cv_ld != x \
26528 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26529 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26530 fi
26531 rm -f conftest
26532 else
26533 echo "configure: failed program was" >&5
26534 cat conftest.s >&5
26535 fi
26536 rm -f conftest.o conftest.s
26537 fi
26538 fi
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26540 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26541
26542
26543
26544 cat >>confdefs.h <<_ACEOF
26545 #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`
26546 _ACEOF
26547
26548 ;;
26549
26550 ia64*-*-*)
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26552 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26553 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26554 $as_echo_n "(cached) " >&6
26555 else
26556 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26557 if test $in_tree_gas = yes; then
26558 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26559 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26560 fi
26561 elif test x$gcc_cv_as != x; then
26562 $as_echo ' .text
26563 addl r15 = @ltoffx(x#), gp
26564 ;;
26565 ld8.mov r16 = [r15], x#' > conftest.s
26566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26568 (eval $ac_try) 2>&5
26569 ac_status=$?
26570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26571 test $ac_status = 0; }; }
26572 then
26573 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26574 else
26575 echo "configure: failed program was" >&5
26576 cat conftest.s >&5
26577 fi
26578 rm -f conftest.o conftest.s
26579 fi
26580 fi
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26582 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26583 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26584
26585 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26586
26587 fi
26588
26589
26590 ;;
26591
26592 powerpc*-*-*)
26593
26594 case $target in
26595 *-*-darwin*)
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26597 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26598 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26599 $as_echo_n "(cached) " >&6
26600 else
26601 gcc_cv_as_machine_directive=no
26602 if test x$gcc_cv_as != x; then
26603 $as_echo ' .machine ppc7400' > conftest.s
26604 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26606 (eval $ac_try) 2>&5
26607 ac_status=$?
26608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26609 test $ac_status = 0; }; }
26610 then
26611 gcc_cv_as_machine_directive=yes
26612 else
26613 echo "configure: failed program was" >&5
26614 cat conftest.s >&5
26615 fi
26616 rm -f conftest.o conftest.s
26617 fi
26618 fi
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26620 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26621
26622
26623 if test x$gcc_cv_as_machine_directive != xyes; then
26624 echo "*** This target requires an assembler supporting \".machine\"" >&2
26625 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26626 test x$build = x$target && exit 1
26627 fi
26628 ;;
26629 esac
26630
26631 case $target in
26632 *-*-aix*) conftest_s=' .machine "pwr5"
26633 .csect .text[PR]
26634 mfcr 3,128';;
26635 *-*-darwin*) conftest_s=' .text
26636 mfcr r3,128';;
26637 *) conftest_s=' .machine power4
26638 .text
26639 mfcr 3,128';;
26640 esac
26641
26642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26643 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26644 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26645 $as_echo_n "(cached) " >&6
26646 else
26647 gcc_cv_as_powerpc_mfcrf=no
26648 if test $in_tree_gas = yes; then
26649 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26650 then gcc_cv_as_powerpc_mfcrf=yes
26651 fi
26652 elif test x$gcc_cv_as != x; then
26653 $as_echo "$conftest_s" > conftest.s
26654 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26656 (eval $ac_try) 2>&5
26657 ac_status=$?
26658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26659 test $ac_status = 0; }; }
26660 then
26661 gcc_cv_as_powerpc_mfcrf=yes
26662 else
26663 echo "configure: failed program was" >&5
26664 cat conftest.s >&5
26665 fi
26666 rm -f conftest.o conftest.s
26667 fi
26668 fi
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26670 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26671 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26672
26673 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26674
26675 fi
26676
26677
26678 case $target in
26679 *-*-aix*) conftest_s=' .csect .text[PR]
26680 LCF..0:
26681 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26682 *-*-darwin*)
26683 conftest_s=' .text
26684 LCF0:
26685 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26686 *) conftest_s=' .text
26687 .LCF0:
26688 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26689 esac
26690
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26692 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26693 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26694 $as_echo_n "(cached) " >&6
26695 else
26696 gcc_cv_as_powerpc_rel16=no
26697 if test $in_tree_gas = yes; then
26698 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26699 then gcc_cv_as_powerpc_rel16=yes
26700 fi
26701 elif test x$gcc_cv_as != x; then
26702 $as_echo "$conftest_s" > conftest.s
26703 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26705 (eval $ac_try) 2>&5
26706 ac_status=$?
26707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26708 test $ac_status = 0; }; }
26709 then
26710 gcc_cv_as_powerpc_rel16=yes
26711 else
26712 echo "configure: failed program was" >&5
26713 cat conftest.s >&5
26714 fi
26715 rm -f conftest.o conftest.s
26716 fi
26717 fi
26718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26719 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26720 if test $gcc_cv_as_powerpc_rel16 = yes; then
26721
26722 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26723
26724 fi
26725
26726
26727 case $target in
26728 *-*-aix*) conftest_s=' .machine "pwr7"
26729 .csect .text[PR]
26730 lxvd2x 1,2,3';;
26731 *) conftest_s=' .machine power7
26732 .text
26733 lxvd2x 1,2,3';;
26734 esac
26735
26736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26737 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26738 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26739 $as_echo_n "(cached) " >&6
26740 else
26741 gcc_cv_as_powerpc_vsx=no
26742 if test $in_tree_gas = yes; then
26743 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26744 then gcc_cv_as_powerpc_vsx=yes
26745 fi
26746 elif test x$gcc_cv_as != x; then
26747 $as_echo "$conftest_s" > conftest.s
26748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26750 (eval $ac_try) 2>&5
26751 ac_status=$?
26752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26753 test $ac_status = 0; }; }
26754 then
26755 gcc_cv_as_powerpc_vsx=yes
26756 else
26757 echo "configure: failed program was" >&5
26758 cat conftest.s >&5
26759 fi
26760 rm -f conftest.o conftest.s
26761 fi
26762 fi
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26764 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26765 if test $gcc_cv_as_powerpc_vsx = yes; then
26766
26767 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26768
26769 fi
26770
26771
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26773 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26774 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26775 $as_echo_n "(cached) " >&6
26776 else
26777 gcc_cv_as_powerpc_gnu_attribute=no
26778 if test $in_tree_gas = yes; then
26779 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26780 then gcc_cv_as_powerpc_gnu_attribute=yes
26781 fi
26782 elif test x$gcc_cv_as != x; then
26783 $as_echo '.gnu_attribute 4,1' > conftest.s
26784 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26786 (eval $ac_try) 2>&5
26787 ac_status=$?
26788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26789 test $ac_status = 0; }; }
26790 then
26791 gcc_cv_as_powerpc_gnu_attribute=yes
26792 else
26793 echo "configure: failed program was" >&5
26794 cat conftest.s >&5
26795 fi
26796 rm -f conftest.o conftest.s
26797 fi
26798 fi
26799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26800 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26801 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26802
26803 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26804
26805 fi
26806
26807
26808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26809 $as_echo_n "checking assembler for tls marker support... " >&6; }
26810 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26811 $as_echo_n "(cached) " >&6
26812 else
26813 gcc_cv_as_powerpc_tls_markers=no
26814 if test $in_tree_gas = yes; then
26815 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26816 then gcc_cv_as_powerpc_tls_markers=yes
26817 fi
26818 elif test x$gcc_cv_as != x; then
26819 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26822 (eval $ac_try) 2>&5
26823 ac_status=$?
26824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26825 test $ac_status = 0; }; }
26826 then
26827 gcc_cv_as_powerpc_tls_markers=yes
26828 else
26829 echo "configure: failed program was" >&5
26830 cat conftest.s >&5
26831 fi
26832 rm -f conftest.o conftest.s
26833 fi
26834 fi
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26836 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26837 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26838
26839 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26840
26841 fi
26842
26843
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26845 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26846 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26847 $as_echo_n "(cached) " >&6
26848 else
26849 gcc_cv_as_powerpc_entry_markers=no
26850 if test $in_tree_gas = yes; then
26851 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26852 then gcc_cv_as_powerpc_entry_markers=yes
26853 fi
26854 elif test x$gcc_cv_as != x; then
26855 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26856 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26858 (eval $ac_try) 2>&5
26859 ac_status=$?
26860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26861 test $ac_status = 0; }; }
26862 then
26863 gcc_cv_as_powerpc_entry_markers=yes
26864 else
26865 echo "configure: failed program was" >&5
26866 cat conftest.s >&5
26867 fi
26868 rm -f conftest.o conftest.s
26869 fi
26870 fi
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26872 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26873 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26874
26875 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26876
26877 fi
26878
26879
26880 case $target in
26881 *-*-aix*)
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26883 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26884 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26885 $as_echo_n "(cached) " >&6
26886 else
26887 gcc_cv_as_aix_ref=no
26888 if test $in_tree_gas = yes; then
26889 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26890 then gcc_cv_as_aix_ref=yes
26891 fi
26892 elif test x$gcc_cv_as != x; then
26893 $as_echo ' .csect stuff[rw]
26894 stuff:
26895 .long 1
26896 .extern sym
26897 .ref sym
26898 ' > conftest.s
26899 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26901 (eval $ac_try) 2>&5
26902 ac_status=$?
26903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26904 test $ac_status = 0; }; }
26905 then
26906 gcc_cv_as_aix_ref=yes
26907 else
26908 echo "configure: failed program was" >&5
26909 cat conftest.s >&5
26910 fi
26911 rm -f conftest.o conftest.s
26912 fi
26913 fi
26914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26915 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26916 if test $gcc_cv_as_aix_ref = yes; then
26917
26918 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26919
26920 fi
26921
26922
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26924 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26925 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26926 $as_echo_n "(cached) " >&6
26927 else
26928 gcc_cv_as_aix_dwloc=no
26929 if test $in_tree_gas = yes; then
26930 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26931 then gcc_cv_as_aix_dwloc=yes
26932 fi
26933 elif test x$gcc_cv_as != x; then
26934 $as_echo ' .dwsect 0xA0000
26935 Lframe..0:
26936 .vbyte 4,Lframe..0
26937 ' > conftest.s
26938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26940 (eval $ac_try) 2>&5
26941 ac_status=$?
26942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26943 test $ac_status = 0; }; }
26944 then
26945 gcc_cv_as_aix_dwloc=yes
26946 else
26947 echo "configure: failed program was" >&5
26948 cat conftest.s >&5
26949 fi
26950 rm -f conftest.o conftest.s
26951 fi
26952 fi
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26954 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26955 if test $gcc_cv_as_aix_dwloc = yes; then
26956
26957 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26958
26959 fi
26960
26961 ;;
26962 esac
26963 ;;
26964
26965 mips*-*-*)
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26967 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26968 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26969 $as_echo_n "(cached) " >&6
26970 else
26971 gcc_cv_as_mips_explicit_relocs=no
26972 if test $in_tree_gas = yes; then
26973 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26974 then gcc_cv_as_mips_explicit_relocs=yes
26975 fi
26976 elif test x$gcc_cv_as != x; then
26977 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26980 (eval $ac_try) 2>&5
26981 ac_status=$?
26982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26983 test $ac_status = 0; }; }
26984 then
26985 gcc_cv_as_mips_explicit_relocs=yes
26986 else
26987 echo "configure: failed program was" >&5
26988 cat conftest.s >&5
26989 fi
26990 rm -f conftest.o conftest.s
26991 fi
26992 fi
26993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26994 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26995 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26996 if test x$target_cpu_default = x
26997 then target_cpu_default=MASK_EXPLICIT_RELOCS
26998 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26999 fi
27000 fi
27001
27002
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27004 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27005 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27006 $as_echo_n "(cached) " >&6
27007 else
27008 gcc_cv_as_mips_no_shared=no
27009 if test $in_tree_gas = yes; then
27010 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27011 then gcc_cv_as_mips_no_shared=yes
27012 fi
27013 elif test x$gcc_cv_as != x; then
27014 $as_echo 'nop' > conftest.s
27015 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27017 (eval $ac_try) 2>&5
27018 ac_status=$?
27019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27020 test $ac_status = 0; }; }
27021 then
27022 gcc_cv_as_mips_no_shared=yes
27023 else
27024 echo "configure: failed program was" >&5
27025 cat conftest.s >&5
27026 fi
27027 rm -f conftest.o conftest.s
27028 fi
27029 fi
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27031 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27032 if test $gcc_cv_as_mips_no_shared = yes; then
27033
27034 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27035
27036 fi
27037
27038
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27040 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27041 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27042 $as_echo_n "(cached) " >&6
27043 else
27044 gcc_cv_as_mips_gnu_attribute=no
27045 if test $in_tree_gas = yes; then
27046 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27047 then gcc_cv_as_mips_gnu_attribute=yes
27048 fi
27049 elif test x$gcc_cv_as != x; then
27050 $as_echo '.gnu_attribute 4,1' > conftest.s
27051 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27053 (eval $ac_try) 2>&5
27054 ac_status=$?
27055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27056 test $ac_status = 0; }; }
27057 then
27058 gcc_cv_as_mips_gnu_attribute=yes
27059 else
27060 echo "configure: failed program was" >&5
27061 cat conftest.s >&5
27062 fi
27063 rm -f conftest.o conftest.s
27064 fi
27065 fi
27066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27067 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27068 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27069
27070 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27071
27072 fi
27073
27074
27075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27076 $as_echo_n "checking assembler for .module support... " >&6; }
27077 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27078 $as_echo_n "(cached) " >&6
27079 else
27080 gcc_cv_as_mips_dot_module=no
27081 if test x$gcc_cv_as != x; then
27082 $as_echo '.module mips2
27083 .module fp=xx' > conftest.s
27084 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27086 (eval $ac_try) 2>&5
27087 ac_status=$?
27088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27089 test $ac_status = 0; }; }
27090 then
27091 gcc_cv_as_mips_dot_module=yes
27092 else
27093 echo "configure: failed program was" >&5
27094 cat conftest.s >&5
27095 fi
27096 rm -f conftest.o conftest.s
27097 fi
27098 fi
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27100 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27101 if test $gcc_cv_as_mips_dot_module = yes; then
27102
27103 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27104
27105 fi
27106
27107 if test x$gcc_cv_as_mips_dot_module = xno \
27108 && test x$with_fp_32 != x; then
27109 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27110 fi
27111
27112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27113 $as_echo_n "checking assembler for .micromips support... " >&6; }
27114 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27115 $as_echo_n "(cached) " >&6
27116 else
27117 gcc_cv_as_micromips_support=no
27118 if test x$gcc_cv_as != x; then
27119 $as_echo '.set micromips' > conftest.s
27120 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27122 (eval $ac_try) 2>&5
27123 ac_status=$?
27124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27125 test $ac_status = 0; }; }
27126 then
27127 gcc_cv_as_micromips_support=yes
27128 else
27129 echo "configure: failed program was" >&5
27130 cat conftest.s >&5
27131 fi
27132 rm -f conftest.o conftest.s
27133 fi
27134 fi
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27136 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27137 if test $gcc_cv_as_micromips_support = yes; then
27138
27139 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27140
27141 fi
27142
27143
27144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27145 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27146 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27147 $as_echo_n "(cached) " >&6
27148 else
27149 gcc_cv_as_mips_dtprelword=no
27150 if test $in_tree_gas = yes; then
27151 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27152 then gcc_cv_as_mips_dtprelword=yes
27153 fi
27154 elif test x$gcc_cv_as != x; then
27155 $as_echo '.section .tdata,"awT",@progbits
27156 x:
27157 .word 2
27158 .text
27159 .dtprelword x+0x8000' > conftest.s
27160 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27162 (eval $ac_try) 2>&5
27163 ac_status=$?
27164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27165 test $ac_status = 0; }; }
27166 then
27167 gcc_cv_as_mips_dtprelword=yes
27168 else
27169 echo "configure: failed program was" >&5
27170 cat conftest.s >&5
27171 fi
27172 rm -f conftest.o conftest.s
27173 fi
27174 fi
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27176 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27177 if test $gcc_cv_as_mips_dtprelword = yes; then
27178
27179 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27180
27181 fi
27182
27183
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27185 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27186 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27187 $as_echo_n "(cached) " >&6
27188 else
27189 gcc_cv_as_mips_dspr1_mult=no
27190 if test x$gcc_cv_as != x; then
27191 $as_echo ' .set mips32r2
27192 .set nodspr2
27193 .set dsp
27194 madd $ac3,$4,$5
27195 maddu $ac3,$4,$5
27196 msub $ac3,$4,$5
27197 msubu $ac3,$4,$5
27198 mult $ac3,$4,$5
27199 multu $ac3,$4,$5' > conftest.s
27200 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27202 (eval $ac_try) 2>&5
27203 ac_status=$?
27204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27205 test $ac_status = 0; }; }
27206 then
27207 gcc_cv_as_mips_dspr1_mult=yes
27208 else
27209 echo "configure: failed program was" >&5
27210 cat conftest.s >&5
27211 fi
27212 rm -f conftest.o conftest.s
27213 fi
27214 fi
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27216 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27217 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27218
27219 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27220
27221 fi
27222
27223
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27225 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27226 gcc_cv_as_ld_jalr_reloc=no
27227 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27228 if test $in_tree_ld = yes ; then
27229 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 \
27230 && test $in_tree_ld_is_elf = yes; then
27231 gcc_cv_as_ld_jalr_reloc=yes
27232 fi
27233 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27234 echo ' .ent x' > conftest.s
27235 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27236 echo ' lw $25,%call16(y)($28)' >> conftest.s
27237 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27238 echo '1: jalr $25' >> conftest.s
27239 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27240 echo '1: jalr $25' >> conftest.s
27241 echo ' .end x' >> conftest.s
27242 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27243 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27244 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27245 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27246 gcc_cv_as_ld_jalr_reloc=yes
27247 fi
27248 fi
27249 rm -f conftest.*
27250 fi
27251 fi
27252 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27253 if test x$target_cpu_default = x; then
27254 target_cpu_default=MASK_RELAX_PIC_CALLS
27255 else
27256 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27257 fi
27258 fi
27259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27260 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27261
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27263 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27264 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27265 $as_echo_n "(cached) " >&6
27266 else
27267 gcc_cv_ld_mips_personality_relaxation=no
27268 if test $in_tree_ld = yes ; then
27269 if test "$gcc_cv_gld_major_version" -eq 2 \
27270 -a "$gcc_cv_gld_minor_version" -ge 21 \
27271 -o "$gcc_cv_gld_major_version" -gt 2; then
27272 gcc_cv_ld_mips_personality_relaxation=yes
27273 fi
27274 elif test x$gcc_cv_as != x \
27275 -a x$gcc_cv_ld != x \
27276 -a x$gcc_cv_readelf != x ; then
27277 cat > conftest.s <<EOF
27278 .cfi_startproc
27279 .cfi_personality 0x80,indirect_ptr
27280 .ent test
27281 test:
27282 nop
27283 .end test
27284 .cfi_endproc
27285
27286 .section .data,"aw",@progbits
27287 indirect_ptr:
27288 .dc.a personality
27289 EOF
27290 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27291 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27292 if $gcc_cv_readelf -d conftest 2>&1 \
27293 | grep TEXTREL > /dev/null 2>&1; then
27294 :
27295 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27296 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27297 :
27298 else
27299 gcc_cv_ld_mips_personality_relaxation=yes
27300 fi
27301 fi
27302 fi
27303 rm -f conftest.s conftest.o conftest
27304 fi
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27306 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27307 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27308
27309 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27310
27311 fi
27312
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27314 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27315 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27316 $as_echo_n "(cached) " >&6
27317 else
27318 gcc_cv_as_mips_nan=no
27319 if test x$gcc_cv_as != x; then
27320 $as_echo '' > conftest.s
27321 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27323 (eval $ac_try) 2>&5
27324 ac_status=$?
27325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27326 test $ac_status = 0; }; }
27327 then
27328 gcc_cv_as_mips_nan=yes
27329 else
27330 echo "configure: failed program was" >&5
27331 cat conftest.s >&5
27332 fi
27333 rm -f conftest.o conftest.s
27334 fi
27335 fi
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27337 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27338 if test $gcc_cv_as_mips_nan = yes; then
27339
27340 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27341
27342 fi
27343
27344 if test x$gcc_cv_as_mips_nan = xno \
27345 && test x$with_nan != x; then
27346 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27347 fi
27348 ;;
27349 s390*-*-*)
27350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27351 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27352 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27353 $as_echo_n "(cached) " >&6
27354 else
27355 gcc_cv_as_s390_gnu_attribute=no
27356 if test $in_tree_gas = yes; then
27357 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27358 then gcc_cv_as_s390_gnu_attribute=yes
27359 fi
27360 elif test x$gcc_cv_as != x; then
27361 $as_echo '.gnu_attribute 8,1' > conftest.s
27362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27364 (eval $ac_try) 2>&5
27365 ac_status=$?
27366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27367 test $ac_status = 0; }; }
27368 then
27369 gcc_cv_as_s390_gnu_attribute=yes
27370 else
27371 echo "configure: failed program was" >&5
27372 cat conftest.s >&5
27373 fi
27374 rm -f conftest.o conftest.s
27375 fi
27376 fi
27377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27378 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27379 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27380
27381 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27382
27383 fi
27384
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27386 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27387 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27388 $as_echo_n "(cached) " >&6
27389 else
27390 gcc_cv_as_s390_machine_machinemode=no
27391 if test $in_tree_gas = yes; then
27392 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27393 then gcc_cv_as_s390_machine_machinemode=yes
27394 fi
27395 elif test x$gcc_cv_as != x; then
27396 $as_echo ' .machinemode push
27397 .machinemode pop
27398 .machine push
27399 .machine pop' > conftest.s
27400 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27402 (eval $ac_try) 2>&5
27403 ac_status=$?
27404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27405 test $ac_status = 0; }; }
27406 then
27407 gcc_cv_as_s390_machine_machinemode=yes
27408 else
27409 echo "configure: failed program was" >&5
27410 cat conftest.s >&5
27411 fi
27412 rm -f conftest.o conftest.s
27413 fi
27414 fi
27415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27416 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27417 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27418
27419 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27420
27421 fi
27422
27423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27424 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27425 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27426 $as_echo_n "(cached) " >&6
27427 else
27428 gcc_cv_as_s390_architecture_modifiers=no
27429 if test $in_tree_gas = yes; then
27430 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27431 then gcc_cv_as_s390_architecture_modifiers=yes
27432 fi
27433 elif test x$gcc_cv_as != x; then
27434 $as_echo ' .machine z13+vx ' > conftest.s
27435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27437 (eval $ac_try) 2>&5
27438 ac_status=$?
27439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27440 test $ac_status = 0; }; }
27441 then
27442 gcc_cv_as_s390_architecture_modifiers=yes
27443 else
27444 echo "configure: failed program was" >&5
27445 cat conftest.s >&5
27446 fi
27447 rm -f conftest.o conftest.s
27448 fi
27449 fi
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27451 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27452 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27453
27454 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27455
27456 fi
27457
27458 ;;
27459 esac
27460
27461 # Mips and HP-UX need the GNU assembler.
27462 # Linux on IA64 might be able to use the Intel assembler.
27463
27464 case "$target" in
27465 mips*-*-* | *-*-hpux* )
27466 if test x$gas_flag = xyes \
27467 || test x"$host" != x"$build" \
27468 || test ! -x "$gcc_cv_as" \
27469 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27470 :
27471 else
27472 echo "*** This configuration requires the GNU assembler" >&2
27473 exit 1
27474 fi
27475 ;;
27476 esac
27477
27478 # ??? Not all targets support dwarf2 debug_line, even within a version
27479 # of gas. Moreover, we need to emit a valid instruction to trigger any
27480 # info to the output file. So, as supported targets are added to gas 2.11,
27481 # add some instruction here to (also) show we expect this might work.
27482 # ??? Once 2.11 is released, probably need to add first known working
27483 # version to the per-target configury.
27484 case "$cpu_type" in
27485 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27486 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27487 | tilegx | tilepro | visium | xstormy16 | xtensa)
27488 insn="nop"
27489 ;;
27490 ia64 | s390)
27491 insn="nop 0"
27492 ;;
27493 mmix)
27494 insn="swym 0"
27495 ;;
27496 esac
27497 if test x"$insn" != x; then
27498 conftest_s="\
27499 .file 1 \"conftest.s\"
27500 .loc 1 3 0
27501 $insn"
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27503 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27504 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27505 $as_echo_n "(cached) " >&6
27506 else
27507 gcc_cv_as_dwarf2_debug_line=no
27508 if test $in_tree_gas = yes; then
27509 if test $in_tree_gas_is_elf = yes \
27510 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27511 then gcc_cv_as_dwarf2_debug_line=yes
27512 fi
27513 elif test x$gcc_cv_as != x; then
27514 $as_echo "$conftest_s" > conftest.s
27515 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27517 (eval $ac_try) 2>&5
27518 ac_status=$?
27519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27520 test $ac_status = 0; }; }
27521 then
27522 if test x$gcc_cv_objdump != x \
27523 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27524 | grep debug_line > /dev/null 2>&1; then
27525 gcc_cv_as_dwarf2_debug_line=yes
27526 fi
27527 else
27528 echo "configure: failed program was" >&5
27529 cat conftest.s >&5
27530 fi
27531 rm -f conftest.o conftest.s
27532 fi
27533 fi
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27535 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27536
27537
27538
27539 # The .debug_line file table must be in the exact order that
27540 # we specified the files, since these indices are also used
27541 # by DW_AT_decl_file. Approximate this test by testing if
27542 # the assembler bitches if the same index is assigned twice.
27543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27544 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27545 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27546 $as_echo_n "(cached) " >&6
27547 else
27548 gcc_cv_as_dwarf2_file_buggy=no
27549 if test x$gcc_cv_as != x; then
27550 $as_echo ' .file 1 "foo.s"
27551 .file 1 "bar.s"' > conftest.s
27552 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27554 (eval $ac_try) 2>&5
27555 ac_status=$?
27556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27557 test $ac_status = 0; }; }
27558 then
27559 gcc_cv_as_dwarf2_file_buggy=yes
27560 else
27561 echo "configure: failed program was" >&5
27562 cat conftest.s >&5
27563 fi
27564 rm -f conftest.o conftest.s
27565 fi
27566 fi
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27568 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27569
27570
27571
27572 if test $gcc_cv_as_dwarf2_debug_line = yes \
27573 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27574
27575 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27576
27577
27578 if test $gcc_cv_as_leb128 = yes; then
27579 conftest_s="\
27580 .file 1 \"conftest.s\"
27581 .loc 1 3 0 view .LVU1
27582 $insn
27583 .data
27584 .uleb128 .LVU1
27585 .uleb128 .LVU1
27586 "
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27588 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27589 if test "${gcc_cv_as_dwarf2_debug_view+set}" = set; then :
27590 $as_echo_n "(cached) " >&6
27591 else
27592 gcc_cv_as_dwarf2_debug_view=no
27593 if test $in_tree_gas = yes; then
27594 if test $in_tree_gas_is_elf = yes \
27595 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27596 then gcc_cv_as_dwarf2_debug_view=yes
27597 fi
27598 elif test x$gcc_cv_as != x; then
27599 $as_echo "$conftest_s" > conftest.s
27600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27602 (eval $ac_try) 2>&5
27603 ac_status=$?
27604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27605 test $ac_status = 0; }; }
27606 then
27607 gcc_cv_as_dwarf2_debug_view=yes
27608 else
27609 echo "configure: failed program was" >&5
27610 cat conftest.s >&5
27611 fi
27612 rm -f conftest.o conftest.s
27613 fi
27614 fi
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27616 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27617 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27618
27619 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27620
27621 fi
27622
27623 fi
27624 fi
27625
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27627 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27628 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27629 $as_echo_n "(cached) " >&6
27630 else
27631 gcc_cv_as_gdwarf2_flag=no
27632 if test $in_tree_gas = yes; then
27633 if test $in_tree_gas_is_elf = yes \
27634 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27635 then gcc_cv_as_gdwarf2_flag=yes
27636 fi
27637 elif test x$gcc_cv_as != x; then
27638 $as_echo "$insn" > conftest.s
27639 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27641 (eval $ac_try) 2>&5
27642 ac_status=$?
27643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27644 test $ac_status = 0; }; }
27645 then
27646 gcc_cv_as_gdwarf2_flag=yes
27647 else
27648 echo "configure: failed program was" >&5
27649 cat conftest.s >&5
27650 fi
27651 rm -f conftest.o conftest.s
27652 fi
27653 fi
27654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27655 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27656 if test $gcc_cv_as_gdwarf2_flag = yes; then
27657
27658 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27659
27660 fi
27661
27662
27663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27664 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27665 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27666 $as_echo_n "(cached) " >&6
27667 else
27668 gcc_cv_as_gstabs_flag=no
27669 if test $in_tree_gas = yes; then
27670 if test $in_tree_gas_is_elf = yes \
27671 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27672 then gcc_cv_as_gstabs_flag=yes
27673 fi
27674 elif test x$gcc_cv_as != x; then
27675 $as_echo "$insn" > conftest.s
27676 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27678 (eval $ac_try) 2>&5
27679 ac_status=$?
27680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27681 test $ac_status = 0; }; }
27682 then
27683 gcc_cv_as_gstabs_flag=yes
27684 else
27685 echo "configure: failed program was" >&5
27686 cat conftest.s >&5
27687 fi
27688 rm -f conftest.o conftest.s
27689 fi
27690 fi
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27692 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27693 if test $gcc_cv_as_gstabs_flag = yes; then
27694
27695 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27696
27697 fi
27698
27699
27700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27701 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27702 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27703 $as_echo_n "(cached) " >&6
27704 else
27705 gcc_cv_as_debug_prefix_map_flag=no
27706 if test $in_tree_gas = yes; then
27707 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27708 then gcc_cv_as_debug_prefix_map_flag=yes
27709 fi
27710 elif test x$gcc_cv_as != x; then
27711 $as_echo "$insn" > conftest.s
27712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27714 (eval $ac_try) 2>&5
27715 ac_status=$?
27716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27717 test $ac_status = 0; }; }
27718 then
27719 gcc_cv_as_debug_prefix_map_flag=yes
27720 else
27721 echo "configure: failed program was" >&5
27722 cat conftest.s >&5
27723 fi
27724 rm -f conftest.o conftest.s
27725 fi
27726 fi
27727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27728 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27729 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27730
27731 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27732
27733 fi
27734
27735 fi
27736
27737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27738 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27739 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27740 $as_echo_n "(cached) " >&6
27741 else
27742 gcc_cv_as_compress_debug=no
27743 if test x$gcc_cv_as != x; then
27744 $as_echo '' > conftest.s
27745 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27747 (eval $ac_try) 2>&5
27748 ac_status=$?
27749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27750 test $ac_status = 0; }; }
27751 then
27752 # gas compiled without zlib cannot compress debug sections and warns
27753 # about it, but still exits successfully. So check for this, too.
27754 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27755 then
27756 gcc_cv_as_compress_debug=0
27757 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27758 # defaulting to the ELF gABI format.
27759 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27760 then
27761 gcc_cv_as_compress_debug=2
27762 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27763 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27764 # Before binutils 2.26, gas only supported --compress-debug-options and
27765 # emitted the traditional GNU format.
27766 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27767 then
27768 gcc_cv_as_compress_debug=1
27769 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27770 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27771 else
27772 gcc_cv_as_compress_debug=0
27773 fi
27774 else
27775 echo "configure: failed program was" >&5
27776 cat conftest.s >&5
27777 fi
27778 rm -f conftest.o conftest.s
27779 fi
27780 fi
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27782 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27783
27784
27785
27786 cat >>confdefs.h <<_ACEOF
27787 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27788 _ACEOF
27789
27790
27791 cat >>confdefs.h <<_ACEOF
27792 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27793 _ACEOF
27794
27795
27796 cat >>confdefs.h <<_ACEOF
27797 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27798 _ACEOF
27799
27800
27801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27802 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27803 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27804 $as_echo_n "(cached) " >&6
27805 else
27806 gcc_cv_as_lcomm_with_alignment=no
27807 if test x$gcc_cv_as != x; then
27808 $as_echo '.lcomm bar,4,16' > conftest.s
27809 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27811 (eval $ac_try) 2>&5
27812 ac_status=$?
27813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27814 test $ac_status = 0; }; }
27815 then
27816 gcc_cv_as_lcomm_with_alignment=yes
27817 else
27818 echo "configure: failed program was" >&5
27819 cat conftest.s >&5
27820 fi
27821 rm -f conftest.o conftest.s
27822 fi
27823 fi
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27825 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27826 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27827
27828 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27829
27830 fi
27831
27832
27833 if test x$with_sysroot = x && test x$host = x$target \
27834 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27835 && test "$prefix" != "NONE"; then
27836
27837 cat >>confdefs.h <<_ACEOF
27838 #define PREFIX_INCLUDE_DIR "$prefix/include"
27839 _ACEOF
27840
27841 fi
27842
27843 # Determine the version of glibc, if any, used on the target.
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27845 $as_echo_n "checking for target glibc version... " >&6; }
27846
27847 # Check whether --with-glibc-version was given.
27848 if test "${with_glibc_version+set}" = set; then :
27849 withval=$with_glibc_version;
27850 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27851 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27852 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27853 else
27854 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27855 fi
27856 else
27857
27858 glibc_version_major=0
27859 glibc_version_minor=0
27860 if test -f $target_header_dir/features.h \
27861 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27862 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27863 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27864 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27865 fi
27866 fi
27867
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27869 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27870
27871 cat >>confdefs.h <<_ACEOF
27872 #define TARGET_GLIBC_MAJOR $glibc_version_major
27873 _ACEOF
27874
27875
27876 cat >>confdefs.h <<_ACEOF
27877 #define TARGET_GLIBC_MINOR $glibc_version_minor
27878 _ACEOF
27879
27880
27881 # Check whether --enable-gnu-unique-object was given.
27882 if test "${enable_gnu_unique_object+set}" = set; then :
27883 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27884 yes | no) ;;
27885 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27886 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27887 esac
27888 else
27889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27890 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27891 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27892 $as_echo_n "(cached) " >&6
27893 else
27894 gcc_cv_as_gnu_unique_object=no
27895 if test $in_tree_gas = yes; then
27896 if test $in_tree_gas_is_elf = yes \
27897 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27898 then gcc_cv_as_gnu_unique_object=yes
27899 fi
27900 elif test x$gcc_cv_as != x; then
27901 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27902 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27904 (eval $ac_try) 2>&5
27905 ac_status=$?
27906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27907 test $ac_status = 0; }; }
27908 then
27909 gcc_cv_as_gnu_unique_object=yes
27910 else
27911 echo "configure: failed program was" >&5
27912 cat conftest.s >&5
27913 fi
27914 rm -f conftest.o conftest.s
27915 fi
27916 fi
27917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27918 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27919 if test $gcc_cv_as_gnu_unique_object = yes; then
27920 # We need to unquote above to to use the definition from config.gcc.
27921 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27922
27923 if test $glibc_version_major -gt 2 \
27924 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27925 enable_gnu_unique_object=yes
27926 fi
27927
27928 fi
27929
27930 fi
27931
27932 if test x$enable_gnu_unique_object = xyes; then
27933
27934 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27935
27936 fi
27937
27938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27939 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27940 if test "${gcc_cv_as_line_zero+set}" = set; then :
27941 $as_echo_n "(cached) " >&6
27942 else
27943 gcc_cv_as_line_zero=no
27944 if test $in_tree_gas = yes; then
27945 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27946 then gcc_cv_as_line_zero=yes
27947 fi
27948 elif test "x$gcc_cv_as" != x; then
27949 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27950 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27952 (eval $ac_try) 2>&5
27953 ac_status=$?
27954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27955 test $ac_status = 0; }; } &&
27956 test "x`cat conftest.out`" = x
27957 then
27958 gcc_cv_as_line_zero=yes
27959 else
27960 echo "configure: failed program was" >&5
27961 cat conftest.s >&5
27962 echo "configure: error output was" >&5
27963 cat conftest.out >&5
27964 fi
27965 rm -f conftest.o conftest.s conftest.out
27966 fi
27967 fi
27968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27969 $as_echo "$gcc_cv_as_line_zero" >&6; }
27970 if test "x$gcc_cv_as_line_zero" = xyes; then
27971
27972 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27973
27974 fi
27975
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
27977 $as_echo_n "checking support for thin archives... " >&6; }
27978 thin_archive_support=no
27979 echo 'int main (void) { return 0; }' > conftest.c
27980 if ($AR --version | sed 1q | grep "GNU ar" \
27981 && $CC $CFLAGS -c conftest.c \
27982 && $AR rcT conftest.a conftest.o \
27983 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
27984 thin_archive_support=yes
27985 fi
27986 rm -f conftest.c conftest.o conftest.a conftest
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
27988 $as_echo "$thin_archive_support" >&6; }
27989
27990
27991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27992 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27993 gcc_cv_ld_eh_frame_hdr=no
27994 if test $in_tree_ld = yes ; then
27995 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 \
27996 && test $in_tree_ld_is_elf = yes; then
27997 gcc_cv_ld_eh_frame_hdr=yes
27998 fi
27999 elif test x$gcc_cv_ld != x; then
28000 if echo "$ld_ver" | grep GNU > /dev/null; then
28001 # Check if linker supports --eh-frame-hdr option
28002 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28003 gcc_cv_ld_eh_frame_hdr=yes
28004 fi
28005 else
28006 case "$target" in
28007 *-*-solaris2*)
28008 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28009 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28010 gcc_cv_ld_eh_frame_hdr=yes
28011 fi
28012 ;;
28013 esac
28014 fi
28015 fi
28016
28017 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28018
28019 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28020
28021 fi
28022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28023 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28024
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28026 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28027 gcc_cv_ld_eh_frame_ciev3=no
28028 if test $in_tree_ld = yes ; then
28029 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 \
28030 && test $in_tree_ld_is_elf = yes; then
28031 gcc_cv_ld_eh_frame_ciev3=yes
28032 fi
28033 elif test x$gcc_cv_ld != x; then
28034 if echo "$ld_ver" | grep GNU > /dev/null; then
28035 gcc_cv_ld_eh_frame_ciev3=yes
28036 if test 0"$ld_date" -lt 20040513; then
28037 if test -n "$ld_date"; then
28038 # If there was date string, but was earlier than 2004-05-13, fail
28039 gcc_cv_ld_eh_frame_ciev3=no
28040 elif test "$ld_vers_major" -lt 2; then
28041 gcc_cv_ld_eh_frame_ciev3=no
28042 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28043 gcc_cv_ld_eh_frame_ciev3=no
28044 fi
28045 fi
28046 else
28047 case "$target" in
28048 *-*-solaris2*)
28049 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28050 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28051 gcc_cv_ld_eh_frame_ciev3=yes
28052 fi
28053 ;;
28054 esac
28055 fi
28056 fi
28057
28058 cat >>confdefs.h <<_ACEOF
28059 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28060 _ACEOF
28061
28062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28063 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28064
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28066 $as_echo_n "checking linker position independent executable support... " >&6; }
28067 gcc_cv_ld_pie=no
28068 if test $in_tree_ld = yes ; then
28069 case "$target" in
28070 # Full PIE support on Solaris was only introduced in gld 2.26.
28071 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28072 *) gcc_gld_pie_min_version=15 ;;
28073 esac
28074 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 \
28075 && test $in_tree_ld_is_elf = yes; then
28076 gcc_cv_ld_pie=yes
28077 fi
28078 elif test x$gcc_cv_ld != x; then
28079 # Check if linker supports -pie option
28080 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28081 gcc_cv_ld_pie=yes
28082 case "$target" in
28083 *-*-solaris2*)
28084 if echo "$ld_ver" | grep GNU > /dev/null \
28085 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28086 gcc_cv_ld_pie=no
28087 fi
28088 ;;
28089 esac
28090 else
28091 case "$target" in
28092 *-*-solaris2.1[1-9]*)
28093 # Solaris 11.3 added PIE support.
28094 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28095 gcc_cv_ld_pie=yes
28096 fi
28097 ;;
28098 esac
28099 fi
28100 fi
28101 if test x"$gcc_cv_ld_pie" = xyes; then
28102
28103 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28104
28105 fi
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28107 $as_echo "$gcc_cv_ld_pie" >&6; }
28108
28109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28110 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28111 gcc_cv_ld_pie_copyreloc=no
28112 if test $gcc_cv_ld_pie = yes ; then
28113 if test $in_tree_ld = yes ; then
28114 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
28115 gcc_cv_ld_pie_copyreloc=yes
28116 fi
28117 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28118 # Check if linker supports -pie option with copy reloc
28119 case "$target" in
28120 i?86-*-linux* | x86_64-*-linux*)
28121 cat > conftest1.s <<EOF
28122 .globl a_glob
28123 .data
28124 .type a_glob, @object
28125 .size a_glob, 4
28126 a_glob:
28127 .long 2
28128 EOF
28129 cat > conftest2.s <<EOF
28130 .text
28131 .globl main
28132 .type main, @function
28133 main:
28134 movl %eax, a_glob(%rip)
28135 .size main, .-main
28136 .globl ptr
28137 .section .data.rel,"aw",@progbits
28138 .type ptr, @object
28139 ptr:
28140 .quad a_glob
28141 EOF
28142 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28143 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28144 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28145 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28146 gcc_cv_ld_pie_copyreloc=yes
28147 fi
28148 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28149 ;;
28150 esac
28151 fi
28152 fi
28153
28154 cat >>confdefs.h <<_ACEOF
28155 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28156 _ACEOF
28157
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28159 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28160
28161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28162 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28163 gcc_cv_ld_eh_gc_sections=no
28164 if test $in_tree_ld = yes ; then
28165 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 \
28166 && test $in_tree_ld_is_elf = yes; then
28167 gcc_cv_ld_eh_gc_sections=yes
28168 fi
28169 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28170 cat > conftest.s <<EOF
28171 .section .text
28172 .globl _start
28173 .type _start, @function
28174 _start:
28175 .long foo
28176 .size _start, .-_start
28177 .section .text.foo,"ax",@progbits
28178 .type foo, @function
28179 foo:
28180 .long 0
28181 .size foo, .-foo
28182 .section .gcc_except_table.foo,"a",@progbits
28183 .L0:
28184 .long 0
28185 .section .eh_frame,"a",@progbits
28186 .long .L0
28187 EOF
28188 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28189 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28190 | grep "gc-sections option ignored" > /dev/null; then
28191 gcc_cv_ld_eh_gc_sections=no
28192 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28193 | grep gcc_except_table > /dev/null; then
28194 gcc_cv_ld_eh_gc_sections=yes
28195 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28196 if test x$gcc_cv_as_comdat_group != xyes; then
28197 gcc_cv_ld_eh_gc_sections=no
28198 cat > conftest.s <<EOF
28199 .section .text
28200 .globl _start
28201 .type _start, @function
28202 _start:
28203 .long foo
28204 .size _start, .-_start
28205 .section .gnu.linkonce.t.foo,"ax",@progbits
28206 .type foo, @function
28207 foo:
28208 .long 0
28209 .size foo, .-foo
28210 .section .gcc_except_table.foo,"a",@progbits
28211 .L0:
28212 .long 0
28213 .section .eh_frame,"a",@progbits
28214 .long .L0
28215 EOF
28216 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28217 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28218 | grep "gc-sections option ignored" > /dev/null; then
28219 gcc_cv_ld_eh_gc_sections=no
28220 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28221 | grep gcc_except_table > /dev/null; then
28222 gcc_cv_ld_eh_gc_sections=yes
28223 fi
28224 fi
28225 fi
28226 fi
28227 fi
28228 rm -f conftest.s conftest.o conftest
28229 fi
28230 case "$target" in
28231 hppa*-*-linux*)
28232 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28233 gcc_cv_ld_eh_gc_sections=no
28234 ;;
28235 esac
28236 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28237
28238 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28239
28240 fi
28241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28242 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28243
28244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28245 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28246 gcc_cv_ld_eh_gc_sections_bug=no
28247 if test $in_tree_ld = yes ; then
28248 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 \
28249 && test $in_tree_ld_is_elf = yes; then
28250 gcc_cv_ld_eh_gc_sections_bug=yes
28251 fi
28252 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
28253 gcc_cv_ld_eh_gc_sections_bug=yes
28254 cat > conftest.s <<EOF
28255 .section .text
28256 .globl _start
28257 .type _start, @function
28258 _start:
28259 .long foo
28260 .size _start, .-_start
28261 .section .text.startup.foo,"ax",@progbits
28262 .type foo, @function
28263 foo:
28264 .long 0
28265 .size foo, .-foo
28266 .section .gcc_except_table.foo,"a",@progbits
28267 .L0:
28268 .long 0
28269 .section .eh_frame,"a",@progbits
28270 .long .L0
28271 EOF
28272 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28273 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28274 | grep "gc-sections option ignored" > /dev/null; then
28275 :
28276 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28277 | grep gcc_except_table > /dev/null; then
28278 gcc_cv_ld_eh_gc_sections_bug=no
28279 fi
28280 fi
28281 rm -f conftest.s conftest.o conftest
28282 fi
28283 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28284
28285 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28286
28287 fi
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28289 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28290
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28292 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28293 # gold/gld support compressed debug sections since binutils 2.19/2.21
28294 # In binutils 2.26, gld gained support for the ELF gABI format.
28295 if test $in_tree_ld = yes ; then
28296 gcc_cv_ld_compress_debug=0
28297 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 \
28298 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28299 gcc_cv_ld_compress_debug=2
28300 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28301 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 \
28302 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28303 gcc_cv_ld_compress_debug=3
28304 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28305 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 \
28306 && test $in_tree_ld_is_elf = yes; then
28307 gcc_cv_ld_compress_debug=1
28308 fi
28309 elif echo "$ld_ver" | grep GNU > /dev/null; then
28310 if test "$ld_vers_major" -lt 2 \
28311 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28312 gcc_cv_ld_compress_debug=0
28313 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28314 gcc_cv_ld_compress_debug=1
28315 else
28316 gcc_cv_ld_compress_debug=3
28317 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28318 fi
28319 if test $ld_is_gold = yes; then
28320 gcc_cv_ld_compress_debug=2
28321 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28322 fi
28323 else
28324 case "${target}" in
28325 *-*-solaris2*)
28326 # Introduced in Solaris 11.2.
28327 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28328 gcc_cv_ld_compress_debug=3
28329 gcc_cv_ld_compress_debug_option="-z compress-sections"
28330 else
28331 gcc_cv_ld_compress_debug=0
28332 fi
28333 ;;
28334 *)
28335 # Assume linkers other than GNU ld don't support compessed debug
28336 # sections.
28337 gcc_cv_ld_compress_debug=0
28338 ;;
28339 esac
28340 fi
28341
28342 cat >>confdefs.h <<_ACEOF
28343 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28344 _ACEOF
28345
28346
28347 cat >>confdefs.h <<_ACEOF
28348 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28349 _ACEOF
28350
28351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28352 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28353
28354 if test x"$ld64_flag" = x"yes"; then
28355
28356 # Set defaults for possibly untestable items.
28357 gcc_cv_ld64_export_dynamic=0
28358
28359 if test "$build" = "$host"; then
28360 darwin_try_test=1
28361 else
28362 darwin_try_test=0
28363 fi
28364
28365 # On Darwin, because of FAT library support, it is often possible to execute
28366 # exes from compatible archs even when the host differs from the build system.
28367 case "$build","$host" in
28368 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28369 darwin_try_test=1;;
28370 *) ;;
28371 esac
28372
28373 # If the configurer specified a minimum ld64 version to be supported, then use
28374 # that to determine feature support.
28375 if test x"${gcc_cv_ld64_version}" != x; then
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28377 $as_echo_n "checking ld64 specified version... " >&6; }
28378 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28380 $as_echo "$gcc_cv_ld64_major" >&6; }
28381 if test "$gcc_cv_ld64_major" -ge 236; then
28382 gcc_cv_ld64_export_dynamic=1
28383 fi
28384 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28385 # If the version was not specified, try to find it.
28386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28387 $as_echo_n "checking linker version... " >&6; }
28388 if test x"${gcc_cv_ld64_version}" = x; then
28389 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28390 fi
28391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28392 $as_echo "$gcc_cv_ld64_version" >&6; }
28393
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28395 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28396 gcc_cv_ld64_export_dynamic=1
28397 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28398 gcc_cv_ld64_export_dynamic=0
28399 fi
28400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28401 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28402 fi
28403
28404 if test x"${gcc_cv_ld64_version}" != x; then
28405
28406 cat >>confdefs.h <<_ACEOF
28407 #define LD64_VERSION "${gcc_cv_ld64_version}"
28408 _ACEOF
28409
28410 fi
28411
28412
28413 cat >>confdefs.h <<_ACEOF
28414 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28415 _ACEOF
28416
28417 fi
28418
28419 # --------
28420 # UNSORTED
28421 # --------
28422
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28424 $as_echo_n "checking linker --as-needed support... " >&6; }
28425 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28426 $as_echo_n "(cached) " >&6
28427 else
28428 gcc_cv_ld_as_needed=no
28429 gcc_cv_ld_as_needed_option='--as-needed'
28430 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28431 if test $in_tree_ld = yes ; then
28432 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 \
28433 && test $in_tree_ld_is_elf = yes; then
28434 gcc_cv_ld_as_needed=yes
28435 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28436 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28437 gcc_cv_ld_no_as_needed_option='--pop-state'
28438 fi
28439 fi
28440 elif test x$gcc_cv_ld != x; then
28441 # Check if linker supports --as-needed and --no-as-needed options
28442 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28443 gcc_cv_ld_as_needed=yes
28444 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
28445 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
28446 && echo "$ld_ver" | grep GNU > /dev/null \
28447 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28448 # Use these options only when both ld.bfd and ld.gold support
28449 # --push-state/--pop-state, which unfortunately wasn't added
28450 # at the same time.
28451 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28452 gcc_cv_ld_no_as_needed_option='--pop-state'
28453 fi
28454 fi
28455 case "$target:$gnu_ld" in
28456 *-*-solaris2*:no)
28457 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28458 # forms.
28459 gcc_cv_ld_as_needed=yes
28460 gcc_cv_ld_as_needed_option="-z ignore"
28461 gcc_cv_ld_no_as_needed_option="-z record"
28462 ;;
28463 esac
28464 fi
28465 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28466 # dl_iterate_phdr, i.e. since Solaris 11.
28467 case "$target" in
28468 *-*-solaris2.1[1-9]*)
28469 case "$target" in
28470 i?86-*-* | x86_64-*-*)
28471 if echo "$ld_ver" | grep GNU > /dev/null; then
28472 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28473 gcc_cv_ld_as_needed=no
28474 fi
28475 ;;
28476 esac
28477 ;;
28478 *-*-solaris2*)
28479 gcc_cv_ld_as_needed=no
28480 ;;
28481 esac
28482
28483 fi
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28485 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28486 if test x"$gcc_cv_ld_as_needed" = xyes; then
28487
28488 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28489
28490
28491 cat >>confdefs.h <<_ACEOF
28492 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28493 _ACEOF
28494
28495
28496 cat >>confdefs.h <<_ACEOF
28497 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28498 _ACEOF
28499
28500 fi
28501
28502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28503 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28504 saved_LDFLAGS="$LDFLAGS"
28505 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28506 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28508 /* end confdefs.h. */
28509 int main(void) {return 0;}
28510 _ACEOF
28511 if ac_fn_cxx_try_link "$LINENO"; then :
28512 gcc_cv_ld_clearcap=yes; break
28513 else
28514 gcc_cv_ld_clearcap=no
28515 fi
28516 rm -f core conftest.err conftest.$ac_objext \
28517 conftest$ac_exeext conftest.$ac_ext
28518 done
28519 LDFLAGS="$saved_LDFLAGS"
28520 if test "x$gcc_cv_ld_clearcap" = xyes; then
28521
28522 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28523
28524 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28525
28526 fi
28527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28528 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28529
28530 case "$target" in
28531 powerpc*-*-*)
28532 case "$target" in
28533 *le-*-linux*)
28534 emul_name="-melf32lppc"
28535 ;;
28536 *)
28537 emul_name="-melf32ppc"
28538 ;;
28539 esac
28540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28541 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28542 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28543 $as_echo_n "(cached) " >&6
28544 else
28545 gcc_cv_ld_ppc_attr=no
28546 if test x"$ld_is_gold" = xyes; then
28547 gcc_cv_ld_ppc_attr=yes
28548 elif test $in_tree_ld = yes ; then
28549 if test "$gcc_cv_gld_major_version" -eq 2 \
28550 -a "$gcc_cv_gld_minor_version" -ge 28 \
28551 -o "$gcc_cv_gld_major_version" -gt 2; then
28552 gcc_cv_ld_ppc_attr=yes
28553 fi
28554 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28555 # check that merging the long double .gnu_attribute doesn't warn
28556 cat > conftest1.s <<EOF
28557 .gnu_attribute 4,1
28558 EOF
28559 cat > conftest2.s <<EOF
28560 .gnu_attribute 4,9
28561 EOF
28562 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28563 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28564 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28565 && test ! -s conftest.err; then
28566 gcc_cv_ld_ppc_attr=yes
28567 fi
28568 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28569 fi
28570
28571 fi
28572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28573 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28574 if test x$gcc_cv_ld_ppc_attr = xyes; then
28575
28576 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28577
28578 fi
28579 ;;
28580 esac
28581
28582 case "$target:$tm_file" in
28583 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28584 case "$target" in
28585 *le-*-linux*)
28586 emul_name="-melf64lppc"
28587 ;;
28588 *-*-linux*)
28589 emul_name="-melf64ppc"
28590 ;;
28591 *-*-freebsd*)
28592 emul_name="-melf64ppc_fbsd"
28593 ;;
28594 esac
28595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28596 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28597 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28598 $as_echo_n "(cached) " >&6
28599 else
28600 gcc_cv_ld_no_dot_syms=no
28601 if test x"$ld_is_gold" = xyes; then
28602 gcc_cv_ld_no_dot_syms=yes
28603 elif test $in_tree_ld = yes ; then
28604 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
28605 gcc_cv_ld_no_dot_syms=yes
28606 fi
28607 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28608 cat > conftest1.s <<EOF
28609 .text
28610 bl .foo
28611 EOF
28612 cat > conftest2.s <<EOF
28613 .section ".opd","aw"
28614 .align 3
28615 .globl foo
28616 .type foo,@function
28617 foo:
28618 .quad .LEfoo,.TOC.@tocbase,0
28619 .text
28620 .LEfoo:
28621 blr
28622 .size foo,.-.LEfoo
28623 EOF
28624 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28625 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28626 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28627 gcc_cv_ld_no_dot_syms=yes
28628 fi
28629 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28630 fi
28631
28632 fi
28633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28634 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28635 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28636
28637 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28638
28639 fi
28640
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28642 $as_echo_n "checking linker large toc support... " >&6; }
28643 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28644 $as_echo_n "(cached) " >&6
28645 else
28646 gcc_cv_ld_large_toc=no
28647 if test x"$ld_is_gold" = xyes; then
28648 gcc_cv_ld_large_toc=yes
28649 elif test $in_tree_ld = yes ; then
28650 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
28651 gcc_cv_ld_large_toc=yes
28652 fi
28653 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28654 cat > conftest.s <<EOF
28655 .section ".tbss","awT",@nobits
28656 .align 3
28657 ie0: .space 8
28658 .global _start
28659 .text
28660 _start:
28661 addis 9,13,ie0@got@tprel@ha
28662 ld 9,ie0@got@tprel@l(9)
28663 EOF
28664 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28665 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28666 gcc_cv_ld_large_toc=yes
28667 fi
28668 rm -f conftest conftest.o conftest.s
28669 fi
28670
28671 fi
28672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28673 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28674 if test x"$gcc_cv_ld_large_toc" = xyes; then
28675
28676 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28677
28678 fi
28679
28680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28681 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28682 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28683 $as_echo_n "(cached) " >&6
28684 else
28685 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28686 cat > conftest.s <<EOF
28687 .global _start
28688 .text
28689 _start:
28690 addis 9,2,x@got@ha
28691 .section .data.rel.ro,"aw",@progbits
28692 .p2align 16
28693 .space 32768
28694 x: .quad .TOC.
28695 EOF
28696 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28697 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28698 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)) }'`
28699 fi
28700 rm -f conftest conftest.o conftest.s
28701 fi
28702
28703 fi
28704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28705 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28706 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28707
28708 cat >>confdefs.h <<_ACEOF
28709 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28710 _ACEOF
28711
28712 fi
28713 ;;
28714 esac
28715
28716 case "$target" in
28717 *-*-aix*)
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28719 $as_echo_n "checking linker large toc support... " >&6; }
28720 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28721 $as_echo_n "(cached) " >&6
28722 else
28723 gcc_cv_ld_large_toc=no
28724 if test x$gcc_cv_as != x ; then
28725 cat > conftest.s <<EOF
28726 .toc
28727 LC..1:
28728 .tc a[TC],a[RW]
28729 .extern a[RW]
28730 .csect .text[PR]
28731 .largetoctest:
28732 addis 9,LC..1@u(2)
28733 ld 3,LC..1@l(9)
28734 EOF
28735 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28736 gcc_cv_ld_large_toc=yes
28737 fi
28738 rm -f conftest conftest.o conftest.s
28739 fi
28740
28741 fi
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28743 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28744 if test x"$gcc_cv_ld_large_toc" = xyes; then
28745
28746 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28747
28748 fi
28749 ;;
28750 esac
28751
28752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28753 $as_echo_n "checking linker --build-id support... " >&6; }
28754 if test "${gcc_cv_ld_buildid+set}" = set; then :
28755 $as_echo_n "(cached) " >&6
28756 else
28757 gcc_cv_ld_buildid=no
28758 if test $in_tree_ld = yes ; then
28759 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28760 "$gcc_cv_gld_minor_version" -ge 18 -o \
28761 "$gcc_cv_gld_major_version" -gt 2 \
28762 && test $in_tree_ld_is_elf = yes; then
28763 gcc_cv_ld_buildid=yes
28764 fi
28765 elif test x$gcc_cv_ld != x; then
28766 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
28767 gcc_cv_ld_buildid=yes
28768 fi
28769 fi
28770 fi
28771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28772 $as_echo "$gcc_cv_ld_buildid" >&6; }
28773 if test x"$gcc_cv_ld_buildid" = xyes; then
28774
28775 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28776
28777 fi
28778
28779 # Check whether --enable-linker-build-id was given.
28780 if test "${enable_linker_build_id+set}" = set; then :
28781 enableval=$enable_linker_build_id;
28782 else
28783 enable_linker_build_id=no
28784 fi
28785
28786
28787 if test x"$enable_linker_build_id" = xyes; then
28788 if test x"$gcc_cv_ld_buildid" = xyes; then
28789
28790 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28791
28792 else
28793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28794 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28795 fi
28796 fi
28797
28798 # In binutils 2.21, GNU ld gained support for new emulations fully
28799 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28801 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28802 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28803 $as_echo_n "(cached) " >&6
28804 else
28805 gcc_cv_ld_sol2_emulation=no
28806 if test $in_tree_ld = yes ; then
28807 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28808 "$gcc_cv_gld_minor_version" -ge 21 -o \
28809 "$gcc_cv_gld_major_version" -gt 2 \
28810 && test $in_tree_ld_is_elf = yes; then
28811 gcc_cv_ld_sol2_emulation=yes
28812 fi
28813 elif test x$gcc_cv_ld != x; then
28814 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28815 grep _sol2 > /dev/null; then
28816 gcc_cv_ld_sol2_emulation=yes
28817 fi
28818 fi
28819 fi
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28821 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28822 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28823
28824 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28825
28826 fi
28827
28828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28829 $as_echo_n "checking linker --sysroot support... " >&6; }
28830 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28831 $as_echo_n "(cached) " >&6
28832 else
28833 gcc_cv_ld_sysroot=no
28834 if test $in_tree_ld = yes ; then
28835 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
28836 gcc_cv_ld_sysroot=yes
28837 fi
28838 elif test x$gcc_cv_ld != x; then
28839 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
28840 gcc_cv_ld_sysroot=yes
28841 fi
28842 fi
28843 fi
28844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28845 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28846 if test x"$gcc_cv_ld_sysroot" = xyes; then
28847
28848 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28849
28850 fi
28851
28852 case $target in
28853 *-*-solaris2*)
28854 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28856 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28857 if test "${gcc_cv_solaris_crts+set}" = set; then :
28858 $as_echo_n "(cached) " >&6
28859 else
28860 gcc_cv_solaris_crts=no
28861 if test x$host != x$target; then
28862 if test "x$with_sysroot" = xyes; then
28863 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28864 else
28865 target_sysroot="${with_sysroot}"
28866 fi
28867 fi
28868 target_libdir="$target_sysroot/usr/lib"
28869 # At the time they were added, gcrt1.o became a symlink for backwards
28870 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28871 case $target in
28872 i?86-*-solaris2* | x86_64-*-solaris2*)
28873 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28874 ;;
28875 sparc*-*-solaris2*)
28876 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28877 ;;
28878 esac
28879 fi
28880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28881 $as_echo "$gcc_cv_solaris_crts" >&6; }
28882 ;;
28883 esac
28884 if test x$gcc_cv_solaris_crts = xyes; then
28885
28886 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28887
28888 fi
28889
28890 # Check whether --enable-libssp was given.
28891 if test "${enable_libssp+set}" = set; then :
28892 enableval=$enable_libssp; case "${enableval}" in
28893 yes|no)
28894 ;;
28895 *)
28896 as_fn_error "unknown libssp setting $enableval" "$LINENO" 5
28897 ;;
28898 esac
28899 fi
28900
28901
28902 # Test for stack protector support in target C library.
28903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28904 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28905 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28906 $as_echo_n "(cached) " >&6
28907 else
28908 gcc_cv_libc_provides_ssp=no
28909 if test "x$enable_libssp" = "xno"; then
28910 gcc_cv_libc_provides_ssp=yes
28911 elif test "x$enable_libssp" = "xyes"; then
28912 gcc_cv_libc_provides_ssp=no
28913 else
28914 case "$target" in
28915 *-*-musl*)
28916 # All versions of musl provide stack protector
28917 gcc_cv_libc_provides_ssp=yes;;
28918 *-*-linux* | *-*-kfreebsd*-gnu)
28919 # glibc 2.4 and later provides __stack_chk_fail and
28920 # either __stack_chk_guard, or TLS access to stack guard canary.
28921
28922 if test $glibc_version_major -gt 2 \
28923 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28924 gcc_cv_libc_provides_ssp=yes
28925 else
28926
28927 if test -f $target_header_dir/features.h \
28928 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28929 $target_header_dir/features.h > /dev/null; then
28930 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28931 $target_header_dir/features.h > /dev/null && \
28932 test -f $target_header_dir/bits/uClibc_config.h && \
28933 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28934 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28935 gcc_cv_libc_provides_ssp=yes
28936 fi
28937 # all versions of Bionic support stack protector
28938 elif test -f $target_header_dir/sys/cdefs.h \
28939 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28940 $target_header_dir/sys/cdefs.h > /dev/null; then
28941 gcc_cv_libc_provides_ssp=yes
28942 fi
28943 fi
28944 ;;
28945 *-*-gnu*)
28946 # Avoid complicated tests (see
28947 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28948 # simply assert that glibc does provide this, which is true for all
28949 # realistically usable GNU/Hurd configurations.
28950 # All supported versions of musl provide it as well
28951 gcc_cv_libc_provides_ssp=yes;;
28952 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28953 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28954 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28955 gcc_cv_libc_provides_ssp=yes
28956 else
28957 echo "no __stack_chk_fail on this target"
28958 fi
28959
28960 ;;
28961 *) gcc_cv_libc_provides_ssp=no ;;
28962 esac
28963 fi
28964 fi
28965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28966 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28967
28968 if test x$gcc_cv_libc_provides_ssp = xyes; then
28969
28970 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28971
28972 fi
28973
28974 # Check whether --enable-default-ssp was given.
28975 # Check whether --enable-default-ssp was given.
28976 if test "${enable_default_ssp+set}" = set; then :
28977 enableval=$enable_default_ssp;
28978 if test x$gcc_cv_libc_provides_ssp = xyes; then
28979 case "$target" in
28980 ia64*-*-*) enable_default_ssp=no ;;
28981 *) enable_default_ssp=$enableval ;;
28982 esac
28983 else
28984 enable_default_ssp=no
28985 fi
28986 else
28987 enable_default_ssp=no
28988 fi
28989
28990 if test x$enable_default_ssp = xyes ; then
28991
28992 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28993
28994 fi
28995
28996
28997 # Test for <sys/sdt.h> on the target.
28998
28999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29000 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29001 have_sys_sdt_h=no
29002 if test -f $target_header_dir/sys/sdt.h; then
29003 have_sys_sdt_h=yes
29004
29005 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29006
29007 fi
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29009 $as_echo "$have_sys_sdt_h" >&6; }
29010
29011 # Check if TFmode long double should be used by default or not.
29012 # Some glibc targets used DFmode long double, but with glibc 2.4
29013 # and later they can use TFmode.
29014 case "$target" in
29015 powerpc*-*-linux* | \
29016 sparc*-*-linux* | \
29017 s390*-*-linux* | \
29018 alpha*-*-linux*)
29019
29020 # Check whether --with-long-double-128 was given.
29021 if test "${with_long_double_128+set}" = set; then :
29022 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29023 else
29024
29025 if test $glibc_version_major -gt 2 \
29026 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29027 gcc_cv_target_ldbl128=yes
29028 else
29029
29030 gcc_cv_target_ldbl128=no
29031 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29032 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29033 && gcc_cv_target_ldbl128=yes
29034
29035 fi
29036 fi
29037
29038 ;;
29039 esac
29040 if test x$gcc_cv_target_ldbl128 = xyes; then
29041
29042 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29043
29044 fi
29045
29046 # Check if TFmode long double target should use the IBM extended double or IEEE
29047 # 128-bit floating point formats if long doubles are 128-bits long. The long
29048 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29049 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29050 # libgcc.
29051
29052 # Check whether --with-long-double-format was given.
29053 if test "${with_long_double_format+set}" = set; then :
29054 withval=$with_long_double_format;
29055 case "$target:$with_long_double_format" in
29056 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29057 :
29058 ;;
29059 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29060 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29061 case "$with_cpu" in
29062 power7 | power8 | power9 | power1*)
29063 :
29064 ;;
29065 *)
29066 as_fn_error "Configuration option --with-long-double-format is only \
29067 supported if the default cpu is power7 or newer" "$LINENO" 5
29068 with_long_double_format=""
29069 ;;
29070 esac
29071 ;;
29072 xpowerpc64*-*-linux*:*)
29073 as_fn_error "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29074 with_long_double_format=""
29075 ;;
29076 *)
29077 as_fn_error "Configure option --with-long-double-format is only supported \
29078 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29079 with_long_double_format=""
29080 ;;
29081 esac
29082 fi
29083
29084
29085 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29086 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29087 gcc_cv_libc_provides_hwcap_in_tcb=no
29088 case "$target" in
29089 powerpc*-*-linux*)
29090
29091 if test $glibc_version_major -gt 2 \
29092 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29093 gcc_cv_libc_provides_hwcap_in_tcb=yes
29094 fi
29095 ;;
29096 esac
29097 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29098
29099 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29100
29101 fi
29102
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29104 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29105 gcc_cv_target_dl_iterate_phdr=unknown
29106 case "$target" in
29107 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29108 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29109 # libdl there, both complicating its use and breaking compatibility
29110 # between Solaris 10 updates.
29111 *-*-solaris2.1[1-9]*)
29112 # <link.h> needs both a dl_iterate_phdr declaration and support for
29113 # compilation with largefile support.
29114 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29115 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29116 gcc_cv_target_dl_iterate_phdr=yes
29117 else
29118 gcc_cv_target_dl_iterate_phdr=no
29119 fi
29120 ;;
29121 *-*-dragonfly* | *-*-freebsd*)
29122 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29123 gcc_cv_target_dl_iterate_phdr=yes
29124 else
29125 gcc_cv_target_dl_iterate_phdr=no
29126 fi
29127 ;;
29128 *-linux-musl*)
29129 gcc_cv_target_dl_iterate_phdr=yes
29130 ;;
29131 esac
29132
29133 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29134
29135 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29136
29137 fi
29138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29139 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29140
29141 # We no longer support different GC mechanisms. Emit an error if
29142 # the user configures with --with-gc.
29143
29144 # Check whether --with-gc was given.
29145 if test "${with_gc+set}" = set; then :
29146 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29147 fi
29148
29149
29150 # Libraries to use on the host. This will normally be set by the top
29151 # level Makefile. Here we simply capture the value for our Makefile.
29152 if test -z "${HOST_LIBS+set}"; then
29153 HOST_LIBS=
29154 fi
29155
29156
29157 # Use the system's zlib library.
29158
29159 # Use the system's zlib library.
29160 zlibdir="-L\$(top_builddir)/../zlib"
29161 zlibinc="-I\$(top_srcdir)/../zlib"
29162
29163 # Check whether --with-system-zlib was given.
29164 if test "${with_system_zlib+set}" = set; then :
29165 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29166 zlibdir=
29167 zlibinc=
29168 fi
29169
29170 fi
29171
29172
29173
29174
29175
29176
29177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29178 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29179 # Check whether --enable-maintainer-mode was given.
29180 if test "${enable_maintainer_mode+set}" = set; then :
29181 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29182 else
29183 maintainer_mode=no
29184 fi
29185
29186
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29188 $as_echo "$maintainer_mode" >&6; }
29189
29190 if test "$maintainer_mode" = "yes"; then
29191 MAINT=''
29192 else
29193 MAINT='#'
29194 fi
29195
29196
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29198 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29199 # Check whether --enable-link-mutex was given.
29200 if test "${enable_link_mutex+set}" = set; then :
29201 enableval=$enable_link_mutex; do_link_mutex=$enableval
29202 else
29203 do_link_mutex=no
29204 fi
29205
29206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29207 $as_echo "$do_link_mutex" >&6; }
29208
29209 if test "$do_link_mutex" = "yes"; then
29210 DO_LINK_MUTEX=true
29211 else
29212 DO_LINK_MUTEX=false
29213 fi
29214
29215
29216 # --------------
29217 # Language hooks
29218 # --------------
29219
29220 # Make empty files to contain the specs and options for each language.
29221 # Then add #include lines to for a compiler that has specs and/or options.
29222
29223 subdirs=
29224 lang_opt_files=
29225 lang_specs_files=
29226 lang_tree_files=
29227 # These (without "all_") are set in each config-lang.in.
29228 # `language' must be a single word so is spelled singularly.
29229 all_languages=
29230 all_compilers=
29231 all_outputs='Makefile'
29232 # List of language makefile fragments.
29233 all_lang_makefrags=
29234 # Additional files for gengtype
29235 all_gtfiles="$target_gtfiles"
29236
29237 # These are the languages that are set in --enable-languages,
29238 # and are available in the GCC tree.
29239 all_selected_languages=
29240
29241 # Add the language fragments.
29242 # Languages are added via two mechanisms. Some information must be
29243 # recorded in makefile variables, these are defined in config-lang.in.
29244 # We accumulate them and plug them into the main Makefile.
29245 # The other mechanism is a set of hooks for each of the main targets
29246 # like `clean', `install', etc.
29247
29248 language_hooks="Make-hooks"
29249
29250 for lang in ${srcdir}/*/config-lang.in
29251 do
29252 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29253
29254 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29255 if test "x$lang_alias" = x
29256 then
29257 echo "$lang doesn't set \$language." 1>&2
29258 exit 1
29259 fi
29260 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29261 subdirs="$subdirs $subdir"
29262
29263 # $gcc_subdir is where the gcc integration files are to be found
29264 # for a language, both for internal compiler purposes (compiler
29265 # sources implementing front-end to GCC tree converters), and for
29266 # build infrastructure purposes (Make-lang.in, etc.)
29267 #
29268 # This will be <subdir> (relative to $srcdir) if a line like
29269 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29270 # is found in <langdir>/config-lang.in, and will remain <langdir>
29271 # otherwise.
29272 #
29273 # Except for the language alias (fetched above), the regular
29274 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29275 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29276 # only this and the language alias.
29277
29278 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29279 if [ "$gcc_subdir" = "" ]; then
29280 gcc_subdir="$subdir"
29281 fi
29282
29283 case ",$enable_languages," in
29284 *,$lang_alias,*)
29285 all_selected_languages="$all_selected_languages $lang_alias"
29286 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29287 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29288 fi
29289 ;;
29290 esac
29291
29292 language=
29293 boot_language=
29294 compilers=
29295 outputs=
29296 gtfiles=
29297 subdir_requires=
29298 . ${srcdir}/$gcc_subdir/config-lang.in
29299 if test "x$language" = x
29300 then
29301 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29302 exit 1
29303 fi
29304
29305 ok=:
29306 case ",$enable_languages," in
29307 *,$lang_alias,*) ;;
29308 *)
29309 for i in $subdir_requires; do
29310 test -f "${srcdir}/$i/config-lang.in" && continue
29311 ok=false
29312 break
29313 done
29314 ;;
29315 esac
29316 $ok || continue
29317
29318 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29319 if test -f $srcdir/$gcc_subdir/lang.opt; then
29320 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29321 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29322 fi
29323 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29324 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29325 fi
29326 all_languages="$all_languages $language"
29327 all_compilers="$all_compilers $compilers"
29328 all_outputs="$all_outputs $outputs"
29329 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29330 case ",$enable_languages," in
29331 *,lto,*)
29332
29333 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29334
29335 enable_lto=yes
29336
29337 ;;
29338 *) ;;
29339 esac
29340 done
29341
29342 check_languages=
29343 for language in $all_selected_languages
29344 do
29345 check_languages="$check_languages check-$language"
29346 done
29347
29348 selftest_languages=
29349 for language in $all_selected_languages
29350 do
29351 selftest_languages="$selftest_languages selftest-$language"
29352 done
29353
29354 # We link each language in with a set of hooks, reached indirectly via
29355 # lang.${target}. Only do so for selected languages.
29356
29357 rm -f Make-hooks
29358 touch Make-hooks
29359 target_list="all.cross start.encap rest.encap tags \
29360 install-common install-man install-info install-pdf install-html dvi \
29361 pdf html uninstall info man srcextra srcman srcinfo \
29362 mostlyclean clean distclean maintainer-clean install-plugin"
29363
29364 for t in $target_list
29365 do
29366 x=
29367 for lang in $all_selected_languages
29368 do
29369 x="$x $lang.$t"
29370 done
29371 echo "lang.$t: $x" >> Make-hooks
29372 done
29373
29374 # --------
29375 # Option include files
29376 # --------
29377
29378 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29379 option_includes="option-includes.mk"
29380
29381
29382 # --------
29383 # UNSORTED
29384 # --------
29385
29386 # Create .gdbinit.
29387
29388 echo "dir ." > .gdbinit
29389 echo "dir ${srcdir}" >> .gdbinit
29390 if test x$gdb_needs_out_file_path = xyes
29391 then
29392 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29393 fi
29394 if test "x$subdirs" != x; then
29395 for s in $subdirs
29396 do
29397 echo "dir ${srcdir}/$s" >> .gdbinit
29398 done
29399 fi
29400 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29401 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29402
29403 # Put a breakpoint on __asan_report_error to help with debugging buffer
29404 # overflow.
29405 case "$CFLAGS" in
29406 *-fsanitize=address*)
29407 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29408 ;;
29409 esac
29410
29411 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29412
29413
29414
29415 # Find a directory in which to install a shared libgcc.
29416
29417 # Check whether --enable-version-specific-runtime-libs was given.
29418 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29419 enableval=$enable_version_specific_runtime_libs;
29420 fi
29421
29422
29423 # Substitute configuration variables
29424
29425
29426
29427
29428
29429
29430
29431
29432
29433
29434
29435
29436
29437
29438
29439
29440
29441
29442
29443
29444
29445
29446
29447
29448
29449
29450
29451
29452
29453
29454
29455
29456
29457
29458
29459
29460
29461
29462
29463
29464
29465
29466
29467
29468
29469
29470
29471
29472
29473
29474
29475
29476
29477
29478
29479
29480
29481
29482
29483
29484
29485
29486
29487 # Echo link setup.
29488 if test x${build} = x${host} ; then
29489 if test x${host} = x${target} ; then
29490 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29491 else
29492 echo "Links are now set up to build a cross-compiler" 1>&2
29493 echo " from ${host} to ${target}." 1>&2
29494 fi
29495 else
29496 if test x${host} = x${target} ; then
29497 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29498 echo " for ${target}." 1>&2
29499 else
29500 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29501 echo " from ${host} to ${target}." 1>&2
29502 fi
29503 fi
29504
29505
29506
29507
29508
29509
29510 if test "x${ISLLIBS}" != "x" ; then
29511
29512 $as_echo "#define HAVE_isl 1" >>confdefs.h
29513
29514 fi
29515
29516 # Check for plugin support
29517 # Check whether --enable-plugin was given.
29518 if test "${enable_plugin+set}" = set; then :
29519 enableval=$enable_plugin; enable_plugin=$enableval
29520 else
29521 enable_plugin=yes; default_plugin=yes
29522 fi
29523
29524
29525 pluginlibs=
29526 plugin_check=yes
29527
29528 case "${host}" in
29529 *-*-mingw*)
29530 # Since plugin support under MinGW is not as straightforward as on
29531 # other platforms (e.g., we have to link import library, etc), we
29532 # only enable it if explicitly requested.
29533 if test x"$default_plugin" = x"yes"; then
29534 enable_plugin=no
29535 elif test x"$enable_plugin" = x"yes"; then
29536 # Use make's target variable to derive import library name.
29537 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29538 plugin_check=no
29539 fi
29540 ;;
29541 *-*-darwin*)
29542 if test x$build = x$host; then
29543 export_sym_check="nm${exeext} -g"
29544 elif test x$host = x$target; then
29545 export_sym_check="$gcc_cv_nm -g"
29546 else
29547 export_sym_check=
29548 fi
29549 ;;
29550 *)
29551 if test x$build = x$host; then
29552 export_sym_check="objdump${exeext} -T"
29553 elif test x$host = x$target; then
29554 export_sym_check="$gcc_cv_objdump -T"
29555 else
29556 export_sym_check=
29557 fi
29558 ;;
29559 esac
29560
29561 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
29562
29563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29564 $as_echo_n "checking for exported symbols... " >&6; }
29565 if test "x$export_sym_check" != x; then
29566 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29567 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29568 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29569 : # No need to use a flag
29570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29571 $as_echo "yes" >&6; }
29572 else
29573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29574 $as_echo "yes" >&6; }
29575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29576 $as_echo_n "checking for -rdynamic... " >&6; }
29577 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29578 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29579 plugin_rdynamic=yes
29580 pluginlibs="-rdynamic"
29581 else
29582 plugin_rdynamic=no
29583 enable_plugin=no
29584 fi
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29586 $as_echo "$plugin_rdynamic" >&6; }
29587 fi
29588 else
29589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29590 $as_echo "unable to check" >&6; }
29591 fi
29592
29593 # Check -ldl
29594 saved_LIBS="$LIBS"
29595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29596 $as_echo_n "checking for library containing dlopen... " >&6; }
29597 if test "${ac_cv_search_dlopen+set}" = set; then :
29598 $as_echo_n "(cached) " >&6
29599 else
29600 ac_func_search_save_LIBS=$LIBS
29601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29602 /* end confdefs.h. */
29603
29604 /* Override any GCC internal prototype to avoid an error.
29605 Use char because int might match the return type of a GCC
29606 builtin and then its argument prototype would still apply. */
29607 #ifdef __cplusplus
29608 extern "C"
29609 #endif
29610 char dlopen ();
29611 int
29612 main ()
29613 {
29614 return dlopen ();
29615 ;
29616 return 0;
29617 }
29618 _ACEOF
29619 for ac_lib in '' dl; do
29620 if test -z "$ac_lib"; then
29621 ac_res="none required"
29622 else
29623 ac_res=-l$ac_lib
29624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29625 fi
29626 if ac_fn_cxx_try_link "$LINENO"; then :
29627 ac_cv_search_dlopen=$ac_res
29628 fi
29629 rm -f core conftest.err conftest.$ac_objext \
29630 conftest$ac_exeext
29631 if test "${ac_cv_search_dlopen+set}" = set; then :
29632 break
29633 fi
29634 done
29635 if test "${ac_cv_search_dlopen+set}" = set; then :
29636
29637 else
29638 ac_cv_search_dlopen=no
29639 fi
29640 rm conftest.$ac_ext
29641 LIBS=$ac_func_search_save_LIBS
29642 fi
29643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29644 $as_echo "$ac_cv_search_dlopen" >&6; }
29645 ac_res=$ac_cv_search_dlopen
29646 if test "$ac_res" != no; then :
29647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29648
29649 fi
29650
29651 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29652 pluginlibs="$pluginlibs -ldl"
29653 fi
29654 LIBS="$saved_LIBS"
29655
29656 # Check that we can build shared objects with -fPIC -shared
29657 saved_LDFLAGS="$LDFLAGS"
29658 saved_CFLAGS="$CFLAGS"
29659 case "${host}" in
29660 *-*-darwin*)
29661 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29662 CFLAGS="$CFLAGS -fPIC"
29663 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29664 ;;
29665 *)
29666 CFLAGS="$CFLAGS -fPIC"
29667 LDFLAGS="$LDFLAGS -fPIC -shared"
29668 ;;
29669 esac
29670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29671 $as_echo_n "checking for -fPIC -shared... " >&6; }
29672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29673 /* end confdefs.h. */
29674 extern int X;
29675 int
29676 main ()
29677 {
29678 return X == 0;
29679 ;
29680 return 0;
29681 }
29682 _ACEOF
29683 if ac_fn_cxx_try_link "$LINENO"; then :
29684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29685 $as_echo "yes" >&6; }; have_pic_shared=yes
29686 else
29687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29688 $as_echo "no" >&6; }; have_pic_shared=no
29689 fi
29690 rm -f core conftest.err conftest.$ac_objext \
29691 conftest$ac_exeext conftest.$ac_ext
29692 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29693 pluginlibs=
29694 enable_plugin=no
29695 fi
29696 LDFLAGS="$saved_LDFLAGS"
29697 CFLAGS="$saved_CFLAGS"
29698
29699 # If plugin support had been requested but not available, fail.
29700 if test x"$enable_plugin" = x"no" ; then
29701 if test x"$default_plugin" != x"yes"; then
29702 as_fn_error "
29703 Building GCC with plugin support requires a host that supports
29704 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29705 fi
29706 fi
29707 fi
29708
29709
29710
29711 if test x"$enable_plugin" = x"yes"; then
29712
29713 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29714
29715 fi
29716
29717
29718 # Enable --enable-host-shared
29719 # Check whether --enable-host-shared was given.
29720 if test "${enable_host_shared+set}" = set; then :
29721 enableval=$enable_host_shared; PICFLAG=-fPIC
29722 else
29723 PICFLAG=
29724 fi
29725
29726
29727
29728
29729
29730 # Check whether --enable-libquadmath-support was given.
29731 if test "${enable_libquadmath_support+set}" = set; then :
29732 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29733 else
29734 ENABLE_LIBQUADMATH_SUPPORT=yes
29735 fi
29736
29737 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29738
29739 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29740
29741 fi
29742
29743
29744 # Specify what hash style to use by default.
29745
29746 # Check whether --with-linker-hash-style was given.
29747 if test "${with_linker_hash_style+set}" = set; then :
29748 withval=$with_linker_hash_style; case x"$withval" in
29749 xsysv)
29750 LINKER_HASH_STYLE=sysv
29751 ;;
29752 xgnu)
29753 LINKER_HASH_STYLE=gnu
29754 ;;
29755 xboth)
29756 LINKER_HASH_STYLE=both
29757 ;;
29758 *)
29759 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29760 ;;
29761 esac
29762 else
29763 LINKER_HASH_STYLE=''
29764 fi
29765
29766 if test x"${LINKER_HASH_STYLE}" != x; then
29767
29768 cat >>confdefs.h <<_ACEOF
29769 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29770 _ACEOF
29771
29772 fi
29773
29774 # Specify what should be the default of -fdiagnostics-color option.
29775
29776 # Check whether --with-diagnostics-color was given.
29777 if test "${with_diagnostics_color+set}" = set; then :
29778 withval=$with_diagnostics_color; case x"$withval" in
29779 xnever)
29780 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29781 ;;
29782 xauto)
29783 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29784 ;;
29785 xauto-if-env)
29786 DIAGNOSTICS_COLOR_DEFAULT=-1
29787 ;;
29788 xalways)
29789 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29790 ;;
29791 *)
29792 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29793 ;;
29794 esac
29795 else
29796 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29797 fi
29798
29799
29800 cat >>confdefs.h <<_ACEOF
29801 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29802 _ACEOF
29803
29804
29805 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29806 # of jit/jit-playback.c.
29807 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
29808 echo "gcc_driver_version: ${gcc_driver_version}"
29809 cat > gcc-driver-name.h <<EOF
29810 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
29811 EOF
29812
29813 # Check whether --enable-default-pie was given.
29814 # Check whether --enable-default-pie was given.
29815 if test "${enable_default_pie+set}" = set; then :
29816 enableval=$enable_default_pie; enable_default_pie=$enableval
29817 else
29818 enable_default_pie=no
29819 fi
29820
29821 if test x$enable_default_pie = xyes ; then
29822
29823 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29824
29825 fi
29826
29827
29828 # Check if -fno-PIE works.
29829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29830 $as_echo_n "checking for -fno-PIE option... " >&6; }
29831 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29832 $as_echo_n "(cached) " >&6
29833 else
29834 saved_CXXFLAGS="$CXXFLAGS"
29835 CXXFLAGS="$CXXFLAGS -fno-PIE"
29836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29837 /* end confdefs.h. */
29838 int main(void) {return 0;}
29839 _ACEOF
29840 if ac_fn_cxx_try_compile "$LINENO"; then :
29841 gcc_cv_c_no_fpie=yes
29842 else
29843 gcc_cv_c_no_fpie=no
29844 fi
29845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29846 CXXFLAGS="$saved_CXXFLAGS"
29847 fi
29848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29849 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29850 if test "$gcc_cv_c_no_fpie" = "yes"; then
29851 NO_PIE_CFLAGS="-fno-PIE"
29852 fi
29853
29854
29855 # Check if -no-pie works.
29856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29857 $as_echo_n "checking for -no-pie option... " >&6; }
29858 if test "${gcc_cv_no_pie+set}" = set; then :
29859 $as_echo_n "(cached) " >&6
29860 else
29861 saved_LDFLAGS="$LDFLAGS"
29862 LDFLAGS="$LDFLAGS -no-pie"
29863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29864 /* end confdefs.h. */
29865 int main(void) {return 0;}
29866 _ACEOF
29867 if ac_fn_cxx_try_link "$LINENO"; then :
29868 gcc_cv_no_pie=yes
29869 else
29870 gcc_cv_no_pie=no
29871 fi
29872 rm -f core conftest.err conftest.$ac_objext \
29873 conftest$ac_exeext conftest.$ac_ext
29874 LDFLAGS="$saved_LDFLAGS"
29875 fi
29876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29877 $as_echo "$gcc_cv_no_pie" >&6; }
29878 if test "$gcc_cv_no_pie" = "yes"; then
29879 NO_PIE_FLAG="-no-pie"
29880 fi
29881
29882
29883 # Check linker supports '-z bndplt'
29884 ld_bndplt_support=no
29885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29886 $as_echo_n "checking linker -z bndplt option... " >&6; }
29887 if test x"$ld_is_gold" = xno; then
29888 if test $in_tree_ld = yes ; then
29889 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
29890 ld_bndplt_support=yes
29891 fi
29892 elif test x$gcc_cv_ld != x; then
29893 # Check if linker supports -a bndplt option
29894 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
29895 ld_bndplt_support=yes
29896 fi
29897 fi
29898 fi
29899 if test x"$ld_bndplt_support" = xyes; then
29900
29901 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29902
29903 fi
29904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29905 $as_echo "$ld_bndplt_support" >&6; }
29906
29907 # Check linker supports '--push-state'/'--pop-state'
29908 ld_pushpopstate_support=no
29909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29910 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29911 if test x"$ld_is_gold" = xno; then
29912 if test $in_tree_ld = yes ; then
29913 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
29914 ld_pushpopstate_support=yes
29915 fi
29916 elif test x$gcc_cv_ld != x; then
29917 # Check if linker supports --push-state/--pop-state options
29918 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
29919 ld_pushpopstate_support=yes
29920 fi
29921 fi
29922 fi
29923 if test x"$ld_pushpopstate_support" = xyes; then
29924
29925 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29926
29927 fi
29928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29929 $as_echo "$ld_pushpopstate_support" >&6; }
29930
29931 # Configure the subdirectories
29932 # AC_CONFIG_SUBDIRS($subdirs)
29933
29934 # Create the Makefile
29935 # and configure language subdirectories
29936 ac_config_files="$ac_config_files $all_outputs"
29937
29938
29939 ac_config_commands="$ac_config_commands default"
29940
29941 cat >confcache <<\_ACEOF
29942 # This file is a shell script that caches the results of configure
29943 # tests run on this system so they can be shared between configure
29944 # scripts and configure runs, see configure's option --config-cache.
29945 # It is not useful on other systems. If it contains results you don't
29946 # want to keep, you may remove or edit it.
29947 #
29948 # config.status only pays attention to the cache file if you give it
29949 # the --recheck option to rerun configure.
29950 #
29951 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29952 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29953 # following values.
29954
29955 _ACEOF
29956
29957 # The following way of writing the cache mishandles newlines in values,
29958 # but we know of no workaround that is simple, portable, and efficient.
29959 # So, we kill variables containing newlines.
29960 # Ultrix sh set writes to stderr and can't be redirected directly,
29961 # and sets the high bit in the cache file unless we assign to the vars.
29962 (
29963 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29964 eval ac_val=\$$ac_var
29965 case $ac_val in #(
29966 *${as_nl}*)
29967 case $ac_var in #(
29968 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29969 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29970 esac
29971 case $ac_var in #(
29972 _ | IFS | as_nl) ;; #(
29973 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29974 *) { eval $ac_var=; unset $ac_var;} ;;
29975 esac ;;
29976 esac
29977 done
29978
29979 (set) 2>&1 |
29980 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29981 *${as_nl}ac_space=\ *)
29982 # `set' does not quote correctly, so add quotes: double-quote
29983 # substitution turns \\\\ into \\, and sed turns \\ into \.
29984 sed -n \
29985 "s/'/'\\\\''/g;
29986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29987 ;; #(
29988 *)
29989 # `set' quotes correctly as required by POSIX, so do not add quotes.
29990 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29991 ;;
29992 esac |
29993 sort
29994 ) |
29995 sed '
29996 /^ac_cv_env_/b end
29997 t clear
29998 :clear
29999 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30000 t end
30001 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30002 :end' >>confcache
30003 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30004 if test -w "$cache_file"; then
30005 test "x$cache_file" != "x/dev/null" &&
30006 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30007 $as_echo "$as_me: updating cache $cache_file" >&6;}
30008 cat confcache >$cache_file
30009 else
30010 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30011 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30012 fi
30013 fi
30014 rm -f confcache
30015
30016 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30017 # Let make expand exec_prefix.
30018 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30019
30020 DEFS=-DHAVE_CONFIG_H
30021
30022 ac_libobjs=
30023 ac_ltlibobjs=
30024 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30025 # 1. Remove the extension, and $U if already installed.
30026 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30027 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30028 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30029 # will be set to the directory where LIBOBJS objects are built.
30030 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30031 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30032 done
30033 LIBOBJS=$ac_libobjs
30034
30035 LTLIBOBJS=$ac_ltlibobjs
30036
30037
30038
30039
30040 : ${CONFIG_STATUS=./config.status}
30041 ac_write_fail=0
30042 ac_clean_files_save=$ac_clean_files
30043 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30044 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30045 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30046 as_write_fail=0
30047 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30048 #! $SHELL
30049 # Generated by $as_me.
30050 # Run this file to recreate the current configuration.
30051 # Compiler output produced by configure, useful for debugging
30052 # configure, is in config.log if it exists.
30053
30054 debug=false
30055 ac_cs_recheck=false
30056 ac_cs_silent=false
30057
30058 SHELL=\${CONFIG_SHELL-$SHELL}
30059 export SHELL
30060 _ASEOF
30061 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30062 ## -------------------- ##
30063 ## M4sh Initialization. ##
30064 ## -------------------- ##
30065
30066 # Be more Bourne compatible
30067 DUALCASE=1; export DUALCASE # for MKS sh
30068 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30069 emulate sh
30070 NULLCMD=:
30071 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30072 # is contrary to our usage. Disable this feature.
30073 alias -g '${1+"$@"}'='"$@"'
30074 setopt NO_GLOB_SUBST
30075 else
30076 case `(set -o) 2>/dev/null` in #(
30077 *posix*) :
30078 set -o posix ;; #(
30079 *) :
30080 ;;
30081 esac
30082 fi
30083
30084
30085 as_nl='
30086 '
30087 export as_nl
30088 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30089 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30090 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30091 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30092 # Prefer a ksh shell builtin over an external printf program on Solaris,
30093 # but without wasting forks for bash or zsh.
30094 if test -z "$BASH_VERSION$ZSH_VERSION" \
30095 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30096 as_echo='print -r --'
30097 as_echo_n='print -rn --'
30098 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30099 as_echo='printf %s\n'
30100 as_echo_n='printf %s'
30101 else
30102 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30103 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30104 as_echo_n='/usr/ucb/echo -n'
30105 else
30106 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30107 as_echo_n_body='eval
30108 arg=$1;
30109 case $arg in #(
30110 *"$as_nl"*)
30111 expr "X$arg" : "X\\(.*\\)$as_nl";
30112 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30113 esac;
30114 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30115 '
30116 export as_echo_n_body
30117 as_echo_n='sh -c $as_echo_n_body as_echo'
30118 fi
30119 export as_echo_body
30120 as_echo='sh -c $as_echo_body as_echo'
30121 fi
30122
30123 # The user is always right.
30124 if test "${PATH_SEPARATOR+set}" != set; then
30125 PATH_SEPARATOR=:
30126 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30127 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30128 PATH_SEPARATOR=';'
30129 }
30130 fi
30131
30132
30133 # IFS
30134 # We need space, tab and new line, in precisely that order. Quoting is
30135 # there to prevent editors from complaining about space-tab.
30136 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30137 # splitting by setting IFS to empty value.)
30138 IFS=" "" $as_nl"
30139
30140 # Find who we are. Look in the path if we contain no directory separator.
30141 case $0 in #((
30142 *[\\/]* ) as_myself=$0 ;;
30143 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30144 for as_dir in $PATH
30145 do
30146 IFS=$as_save_IFS
30147 test -z "$as_dir" && as_dir=.
30148 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30149 done
30150 IFS=$as_save_IFS
30151
30152 ;;
30153 esac
30154 # We did not find ourselves, most probably we were run as `sh COMMAND'
30155 # in which case we are not to be found in the path.
30156 if test "x$as_myself" = x; then
30157 as_myself=$0
30158 fi
30159 if test ! -f "$as_myself"; then
30160 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30161 exit 1
30162 fi
30163
30164 # Unset variables that we do not need and which cause bugs (e.g. in
30165 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30166 # suppresses any "Segmentation fault" message there. '((' could
30167 # trigger a bug in pdksh 5.2.14.
30168 for as_var in BASH_ENV ENV MAIL MAILPATH
30169 do eval test x\${$as_var+set} = xset \
30170 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30171 done
30172 PS1='$ '
30173 PS2='> '
30174 PS4='+ '
30175
30176 # NLS nuisances.
30177 LC_ALL=C
30178 export LC_ALL
30179 LANGUAGE=C
30180 export LANGUAGE
30181
30182 # CDPATH.
30183 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30184
30185
30186 # as_fn_error ERROR [LINENO LOG_FD]
30187 # ---------------------------------
30188 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30189 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30190 # script with status $?, using 1 if that was 0.
30191 as_fn_error ()
30192 {
30193 as_status=$?; test $as_status -eq 0 && as_status=1
30194 if test "$3"; then
30195 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30196 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30197 fi
30198 $as_echo "$as_me: error: $1" >&2
30199 as_fn_exit $as_status
30200 } # as_fn_error
30201
30202
30203 # as_fn_set_status STATUS
30204 # -----------------------
30205 # Set $? to STATUS, without forking.
30206 as_fn_set_status ()
30207 {
30208 return $1
30209 } # as_fn_set_status
30210
30211 # as_fn_exit STATUS
30212 # -----------------
30213 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30214 as_fn_exit ()
30215 {
30216 set +e
30217 as_fn_set_status $1
30218 exit $1
30219 } # as_fn_exit
30220
30221 # as_fn_unset VAR
30222 # ---------------
30223 # Portably unset VAR.
30224 as_fn_unset ()
30225 {
30226 { eval $1=; unset $1;}
30227 }
30228 as_unset=as_fn_unset
30229 # as_fn_append VAR VALUE
30230 # ----------------------
30231 # Append the text in VALUE to the end of the definition contained in VAR. Take
30232 # advantage of any shell optimizations that allow amortized linear growth over
30233 # repeated appends, instead of the typical quadratic growth present in naive
30234 # implementations.
30235 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30236 eval 'as_fn_append ()
30237 {
30238 eval $1+=\$2
30239 }'
30240 else
30241 as_fn_append ()
30242 {
30243 eval $1=\$$1\$2
30244 }
30245 fi # as_fn_append
30246
30247 # as_fn_arith ARG...
30248 # ------------------
30249 # Perform arithmetic evaluation on the ARGs, and store the result in the
30250 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30251 # must be portable across $(()) and expr.
30252 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30253 eval 'as_fn_arith ()
30254 {
30255 as_val=$(( $* ))
30256 }'
30257 else
30258 as_fn_arith ()
30259 {
30260 as_val=`expr "$@" || test $? -eq 1`
30261 }
30262 fi # as_fn_arith
30263
30264
30265 if expr a : '\(a\)' >/dev/null 2>&1 &&
30266 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30267 as_expr=expr
30268 else
30269 as_expr=false
30270 fi
30271
30272 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30273 as_basename=basename
30274 else
30275 as_basename=false
30276 fi
30277
30278 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30279 as_dirname=dirname
30280 else
30281 as_dirname=false
30282 fi
30283
30284 as_me=`$as_basename -- "$0" ||
30285 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30286 X"$0" : 'X\(//\)$' \| \
30287 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30288 $as_echo X/"$0" |
30289 sed '/^.*\/\([^/][^/]*\)\/*$/{
30290 s//\1/
30291 q
30292 }
30293 /^X\/\(\/\/\)$/{
30294 s//\1/
30295 q
30296 }
30297 /^X\/\(\/\).*/{
30298 s//\1/
30299 q
30300 }
30301 s/.*/./; q'`
30302
30303 # Avoid depending upon Character Ranges.
30304 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30305 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30306 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30307 as_cr_digits='0123456789'
30308 as_cr_alnum=$as_cr_Letters$as_cr_digits
30309
30310 ECHO_C= ECHO_N= ECHO_T=
30311 case `echo -n x` in #(((((
30312 -n*)
30313 case `echo 'xy\c'` in
30314 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30315 xy) ECHO_C='\c';;
30316 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30317 ECHO_T=' ';;
30318 esac;;
30319 *)
30320 ECHO_N='-n';;
30321 esac
30322
30323 rm -f conf$$ conf$$.exe conf$$.file
30324 if test -d conf$$.dir; then
30325 rm -f conf$$.dir/conf$$.file
30326 else
30327 rm -f conf$$.dir
30328 mkdir conf$$.dir 2>/dev/null
30329 fi
30330 if (echo >conf$$.file) 2>/dev/null; then
30331 if ln -s conf$$.file conf$$ 2>/dev/null; then
30332 as_ln_s='ln -s'
30333 # ... but there are two gotchas:
30334 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30335 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30336 # In both cases, we have to default to `cp -p'.
30337 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30338 as_ln_s='cp -p'
30339 elif ln conf$$.file conf$$ 2>/dev/null; then
30340 as_ln_s=ln
30341 else
30342 as_ln_s='cp -p'
30343 fi
30344 else
30345 as_ln_s='cp -p'
30346 fi
30347 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30348 rmdir conf$$.dir 2>/dev/null
30349
30350
30351 # as_fn_mkdir_p
30352 # -------------
30353 # Create "$as_dir" as a directory, including parents if necessary.
30354 as_fn_mkdir_p ()
30355 {
30356
30357 case $as_dir in #(
30358 -*) as_dir=./$as_dir;;
30359 esac
30360 test -d "$as_dir" || eval $as_mkdir_p || {
30361 as_dirs=
30362 while :; do
30363 case $as_dir in #(
30364 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30365 *) as_qdir=$as_dir;;
30366 esac
30367 as_dirs="'$as_qdir' $as_dirs"
30368 as_dir=`$as_dirname -- "$as_dir" ||
30369 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30370 X"$as_dir" : 'X\(//\)[^/]' \| \
30371 X"$as_dir" : 'X\(//\)$' \| \
30372 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30373 $as_echo X"$as_dir" |
30374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30375 s//\1/
30376 q
30377 }
30378 /^X\(\/\/\)[^/].*/{
30379 s//\1/
30380 q
30381 }
30382 /^X\(\/\/\)$/{
30383 s//\1/
30384 q
30385 }
30386 /^X\(\/\).*/{
30387 s//\1/
30388 q
30389 }
30390 s/.*/./; q'`
30391 test -d "$as_dir" && break
30392 done
30393 test -z "$as_dirs" || eval "mkdir $as_dirs"
30394 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30395
30396
30397 } # as_fn_mkdir_p
30398 if mkdir -p . 2>/dev/null; then
30399 as_mkdir_p='mkdir -p "$as_dir"'
30400 else
30401 test -d ./-p && rmdir ./-p
30402 as_mkdir_p=false
30403 fi
30404
30405 if test -x / >/dev/null 2>&1; then
30406 as_test_x='test -x'
30407 else
30408 if ls -dL / >/dev/null 2>&1; then
30409 as_ls_L_option=L
30410 else
30411 as_ls_L_option=
30412 fi
30413 as_test_x='
30414 eval sh -c '\''
30415 if test -d "$1"; then
30416 test -d "$1/.";
30417 else
30418 case $1 in #(
30419 -*)set "./$1";;
30420 esac;
30421 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30422 ???[sx]*):;;*)false;;esac;fi
30423 '\'' sh
30424 '
30425 fi
30426 as_executable_p=$as_test_x
30427
30428 # Sed expression to map a string onto a valid CPP name.
30429 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30430
30431 # Sed expression to map a string onto a valid variable name.
30432 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30433
30434
30435 exec 6>&1
30436 ## ----------------------------------- ##
30437 ## Main body of $CONFIG_STATUS script. ##
30438 ## ----------------------------------- ##
30439 _ASEOF
30440 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30441
30442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30443 # Save the log message, to keep $0 and so on meaningful, and to
30444 # report actual input values of CONFIG_FILES etc. instead of their
30445 # values after options handling.
30446 ac_log="
30447 This file was extended by $as_me, which was
30448 generated by GNU Autoconf 2.64. Invocation command line was
30449
30450 CONFIG_FILES = $CONFIG_FILES
30451 CONFIG_HEADERS = $CONFIG_HEADERS
30452 CONFIG_LINKS = $CONFIG_LINKS
30453 CONFIG_COMMANDS = $CONFIG_COMMANDS
30454 $ $0 $@
30455
30456 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30457 "
30458
30459 _ACEOF
30460
30461 case $ac_config_files in *"
30462 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30463 esac
30464
30465 case $ac_config_headers in *"
30466 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30467 esac
30468
30469
30470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30471 # Files that config.status was made for.
30472 config_files="$ac_config_files"
30473 config_headers="$ac_config_headers"
30474 config_links="$ac_config_links"
30475 config_commands="$ac_config_commands"
30476
30477 _ACEOF
30478
30479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30480 ac_cs_usage="\
30481 \`$as_me' instantiates files and other configuration actions
30482 from templates according to the current configuration. Unless the files
30483 and actions are specified as TAGs, all are instantiated by default.
30484
30485 Usage: $0 [OPTION]... [TAG]...
30486
30487 -h, --help print this help, then exit
30488 -V, --version print version number and configuration settings, then exit
30489 -q, --quiet, --silent
30490 do not print progress messages
30491 -d, --debug don't remove temporary files
30492 --recheck update $as_me by reconfiguring in the same conditions
30493 --file=FILE[:TEMPLATE]
30494 instantiate the configuration file FILE
30495 --header=FILE[:TEMPLATE]
30496 instantiate the configuration header FILE
30497
30498 Configuration files:
30499 $config_files
30500
30501 Configuration headers:
30502 $config_headers
30503
30504 Configuration links:
30505 $config_links
30506
30507 Configuration commands:
30508 $config_commands
30509
30510 Report bugs to the package provider."
30511
30512 _ACEOF
30513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30514 ac_cs_version="\\
30515 config.status
30516 configured by $0, generated by GNU Autoconf 2.64,
30517 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30518
30519 Copyright (C) 2009 Free Software Foundation, Inc.
30520 This config.status script is free software; the Free Software Foundation
30521 gives unlimited permission to copy, distribute and modify it."
30522
30523 ac_pwd='$ac_pwd'
30524 srcdir='$srcdir'
30525 AWK='$AWK'
30526 test -n "\$AWK" || AWK=awk
30527 _ACEOF
30528
30529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30530 # The default lists apply if the user does not specify any file.
30531 ac_need_defaults=:
30532 while test $# != 0
30533 do
30534 case $1 in
30535 --*=*)
30536 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30537 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30538 ac_shift=:
30539 ;;
30540 *)
30541 ac_option=$1
30542 ac_optarg=$2
30543 ac_shift=shift
30544 ;;
30545 esac
30546
30547 case $ac_option in
30548 # Handling of the options.
30549 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30550 ac_cs_recheck=: ;;
30551 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30552 $as_echo "$ac_cs_version"; exit ;;
30553 --debug | --debu | --deb | --de | --d | -d )
30554 debug=: ;;
30555 --file | --fil | --fi | --f )
30556 $ac_shift
30557 case $ac_optarg in
30558 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30559 esac
30560 as_fn_append CONFIG_FILES " '$ac_optarg'"
30561 ac_need_defaults=false;;
30562 --header | --heade | --head | --hea )
30563 $ac_shift
30564 case $ac_optarg in
30565 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30566 esac
30567 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30568 ac_need_defaults=false;;
30569 --he | --h)
30570 # Conflict between --help and --header
30571 as_fn_error "ambiguous option: \`$1'
30572 Try \`$0 --help' for more information.";;
30573 --help | --hel | -h )
30574 $as_echo "$ac_cs_usage"; exit ;;
30575 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30576 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30577 ac_cs_silent=: ;;
30578
30579 # This is an error.
30580 -*) as_fn_error "unrecognized option: \`$1'
30581 Try \`$0 --help' for more information." ;;
30582
30583 *) as_fn_append ac_config_targets " $1"
30584 ac_need_defaults=false ;;
30585
30586 esac
30587 shift
30588 done
30589
30590 ac_configure_extra_args=
30591
30592 if $ac_cs_silent; then
30593 exec 6>/dev/null
30594 ac_configure_extra_args="$ac_configure_extra_args --silent"
30595 fi
30596
30597 _ACEOF
30598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30599 if \$ac_cs_recheck; then
30600 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30601 shift
30602 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30603 CONFIG_SHELL='$SHELL'
30604 export CONFIG_SHELL
30605 exec "\$@"
30606 fi
30607
30608 _ACEOF
30609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30610 exec 5>>config.log
30611 {
30612 echo
30613 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30614 ## Running $as_me. ##
30615 _ASBOX
30616 $as_echo "$ac_log"
30617 } >&5
30618
30619 _ACEOF
30620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30621 #
30622 # INIT-COMMANDS
30623 #
30624 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30625 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30626 subdirs='$subdirs'
30627
30628 _ACEOF
30629
30630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30631
30632 # Handling of arguments.
30633 for ac_config_target in $ac_config_targets
30634 do
30635 case $ac_config_target in
30636 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30637 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30638 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30639 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30640 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30641 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30642 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30643 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30644 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30645
30646 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30647 esac
30648 done
30649
30650
30651 # If the user did not use the arguments to specify the items to instantiate,
30652 # then the envvar interface is used. Set only those that are not.
30653 # We use the long form for the default assignment because of an extremely
30654 # bizarre bug on SunOS 4.1.3.
30655 if $ac_need_defaults; then
30656 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30657 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30658 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30659 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30660 fi
30661
30662 # Have a temporary directory for convenience. Make it in the build tree
30663 # simply because there is no reason against having it here, and in addition,
30664 # creating and moving files from /tmp can sometimes cause problems.
30665 # Hook for its removal unless debugging.
30666 # Note that there is a small window in which the directory will not be cleaned:
30667 # after its creation but before its name has been assigned to `$tmp'.
30668 $debug ||
30669 {
30670 tmp=
30671 trap 'exit_status=$?
30672 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30673 ' 0
30674 trap 'as_fn_exit 1' 1 2 13 15
30675 }
30676 # Create a (secure) tmp directory for tmp files.
30677
30678 {
30679 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30680 test -n "$tmp" && test -d "$tmp"
30681 } ||
30682 {
30683 tmp=./conf$$-$RANDOM
30684 (umask 077 && mkdir "$tmp")
30685 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30686
30687 # Set up the scripts for CONFIG_FILES section.
30688 # No need to generate them if there are no CONFIG_FILES.
30689 # This happens for instance with `./config.status config.h'.
30690 if test -n "$CONFIG_FILES"; then
30691
30692 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30693 ac_cs_awk_getline=:
30694 ac_cs_awk_pipe_init=
30695 ac_cs_awk_read_file='
30696 while ((getline aline < (F[key])) > 0)
30697 print(aline)
30698 close(F[key])'
30699 ac_cs_awk_pipe_fini=
30700 else
30701 ac_cs_awk_getline=false
30702 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30703 ac_cs_awk_read_file='
30704 print "|#_!!_#|"
30705 print "cat " F[key] " &&"
30706 '$ac_cs_awk_pipe_init
30707 # The final `:' finishes the AND list.
30708 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30709 fi
30710 ac_cr=`echo X | tr X '\015'`
30711 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30712 # But we know of no other shell where ac_cr would be empty at this
30713 # point, so we can use a bashism as a fallback.
30714 if test "x$ac_cr" = x; then
30715 eval ac_cr=\$\'\\r\'
30716 fi
30717 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30718 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30719 ac_cs_awk_cr='\r'
30720 else
30721 ac_cs_awk_cr=$ac_cr
30722 fi
30723
30724 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30725 _ACEOF
30726
30727 # Create commands to substitute file output variables.
30728 {
30729 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30730 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30731 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30732 echo "_ACAWK" &&
30733 echo "_ACEOF"
30734 } >conf$$files.sh &&
30735 . ./conf$$files.sh ||
30736 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30737 rm -f conf$$files.sh
30738
30739 {
30740 echo "cat >conf$$subs.awk <<_ACEOF" &&
30741 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30742 echo "_ACEOF"
30743 } >conf$$subs.sh ||
30744 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30745 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30746 ac_delim='%!_!# '
30747 for ac_last_try in false false false false false :; do
30748 . ./conf$$subs.sh ||
30749 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30750
30751 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30752 if test $ac_delim_n = $ac_delim_num; then
30753 break
30754 elif $ac_last_try; then
30755 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30756 else
30757 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30758 fi
30759 done
30760 rm -f conf$$subs.sh
30761
30762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30763 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30764 _ACEOF
30765 sed -n '
30766 h
30767 s/^/S["/; s/!.*/"]=/
30768 p
30769 g
30770 s/^[^!]*!//
30771 :repl
30772 t repl
30773 s/'"$ac_delim"'$//
30774 t delim
30775 :nl
30776 h
30777 s/\(.\{148\}\).*/\1/
30778 t more1
30779 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30780 p
30781 n
30782 b repl
30783 :more1
30784 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30785 p
30786 g
30787 s/.\{148\}//
30788 t nl
30789 :delim
30790 h
30791 s/\(.\{148\}\).*/\1/
30792 t more2
30793 s/["\\]/\\&/g; s/^/"/; s/$/"/
30794 p
30795 b
30796 :more2
30797 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30798 p
30799 g
30800 s/.\{148\}//
30801 t delim
30802 ' <conf$$subs.awk | sed '
30803 /^[^""]/{
30804 N
30805 s/\n//
30806 }
30807 ' >>$CONFIG_STATUS || ac_write_fail=1
30808 rm -f conf$$subs.awk
30809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30810 _ACAWK
30811 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30812 for (key in S) S_is_set[key] = 1
30813 FS = "\a"
30814 \$ac_cs_awk_pipe_init
30815 }
30816 {
30817 line = $ 0
30818 nfields = split(line, field, "@")
30819 substed = 0
30820 len = length(field[1])
30821 for (i = 2; i < nfields; i++) {
30822 key = field[i]
30823 keylen = length(key)
30824 if (S_is_set[key]) {
30825 value = S[key]
30826 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30827 len += length(value) + length(field[++i])
30828 substed = 1
30829 } else
30830 len += 1 + keylen
30831 }
30832 if (nfields == 3 && !substed) {
30833 key = field[2]
30834 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30835 \$ac_cs_awk_read_file
30836 next
30837 }
30838 }
30839 print line
30840 }
30841 \$ac_cs_awk_pipe_fini
30842 _ACAWK
30843 _ACEOF
30844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30845 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30846 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30847 else
30848 cat
30849 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30850 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30851 _ACEOF
30852
30853 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30854 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30855 # trailing colons and then remove the whole line if VPATH becomes empty
30856 # (actually we leave an empty line to preserve line numbers).
30857 if test "x$srcdir" = x.; then
30858 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30859 s/:*\$(srcdir):*/:/
30860 s/:*\${srcdir}:*/:/
30861 s/:*@srcdir@:*/:/
30862 s/^\([^=]*=[ ]*\):*/\1/
30863 s/:*$//
30864 s/^[^=]*=[ ]*$//
30865 }'
30866 fi
30867
30868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30869 fi # test -n "$CONFIG_FILES"
30870
30871 # Set up the scripts for CONFIG_HEADERS section.
30872 # No need to generate them if there are no CONFIG_HEADERS.
30873 # This happens for instance with `./config.status Makefile'.
30874 if test -n "$CONFIG_HEADERS"; then
30875 cat >"$tmp/defines.awk" <<\_ACAWK ||
30876 BEGIN {
30877 _ACEOF
30878
30879 # Transform confdefs.h into an awk script `defines.awk', embedded as
30880 # here-document in config.status, that substitutes the proper values into
30881 # config.h.in to produce config.h.
30882
30883 # Create a delimiter string that does not exist in confdefs.h, to ease
30884 # handling of long lines.
30885 ac_delim='%!_!# '
30886 for ac_last_try in false false :; do
30887 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30888 if test -z "$ac_t"; then
30889 break
30890 elif $ac_last_try; then
30891 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30892 else
30893 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30894 fi
30895 done
30896
30897 # For the awk script, D is an array of macro values keyed by name,
30898 # likewise P contains macro parameters if any. Preserve backslash
30899 # newline sequences.
30900
30901 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30902 sed -n '
30903 s/.\{148\}/&'"$ac_delim"'/g
30904 t rset
30905 :rset
30906 s/^[ ]*#[ ]*define[ ][ ]*/ /
30907 t def
30908 d
30909 :def
30910 s/\\$//
30911 t bsnl
30912 s/["\\]/\\&/g
30913 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30914 D["\1"]=" \3"/p
30915 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30916 d
30917 :bsnl
30918 s/["\\]/\\&/g
30919 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30920 D["\1"]=" \3\\\\\\n"\\/p
30921 t cont
30922 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30923 t cont
30924 d
30925 :cont
30926 n
30927 s/.\{148\}/&'"$ac_delim"'/g
30928 t clear
30929 :clear
30930 s/\\$//
30931 t bsnlc
30932 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30933 d
30934 :bsnlc
30935 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30936 b cont
30937 ' <confdefs.h | sed '
30938 s/'"$ac_delim"'/"\\\
30939 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30940
30941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30942 for (key in D) D_is_set[key] = 1
30943 FS = "\a"
30944 }
30945 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30946 line = \$ 0
30947 split(line, arg, " ")
30948 if (arg[1] == "#") {
30949 defundef = arg[2]
30950 mac1 = arg[3]
30951 } else {
30952 defundef = substr(arg[1], 2)
30953 mac1 = arg[2]
30954 }
30955 split(mac1, mac2, "(") #)
30956 macro = mac2[1]
30957 prefix = substr(line, 1, index(line, defundef) - 1)
30958 if (D_is_set[macro]) {
30959 # Preserve the white space surrounding the "#".
30960 print prefix "define", macro P[macro] D[macro]
30961 next
30962 } else {
30963 # Replace #undef with comments. This is necessary, for example,
30964 # in the case of _POSIX_SOURCE, which is predefined and required
30965 # on some systems where configure will not decide to define it.
30966 if (defundef == "undef") {
30967 print "/*", prefix defundef, macro, "*/"
30968 next
30969 }
30970 }
30971 }
30972 { print }
30973 _ACAWK
30974 _ACEOF
30975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30976 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30977 fi # test -n "$CONFIG_HEADERS"
30978
30979
30980 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30981 shift
30982 for ac_tag
30983 do
30984 case $ac_tag in
30985 :[FHLC]) ac_mode=$ac_tag; continue;;
30986 esac
30987 case $ac_mode$ac_tag in
30988 :[FHL]*:*);;
30989 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30990 :[FH]-) ac_tag=-:-;;
30991 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30992 esac
30993 ac_save_IFS=$IFS
30994 IFS=:
30995 set x $ac_tag
30996 IFS=$ac_save_IFS
30997 shift
30998 ac_file=$1
30999 shift
31000
31001 case $ac_mode in
31002 :L) ac_source=$1;;
31003 :[FH])
31004 ac_file_inputs=
31005 for ac_f
31006 do
31007 case $ac_f in
31008 -) ac_f="$tmp/stdin";;
31009 *) # Look for the file first in the build tree, then in the source tree
31010 # (if the path is not absolute). The absolute path cannot be DOS-style,
31011 # because $ac_f cannot contain `:'.
31012 test -f "$ac_f" ||
31013 case $ac_f in
31014 [\\/$]*) false;;
31015 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31016 esac ||
31017 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31018 esac
31019 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31020 as_fn_append ac_file_inputs " '$ac_f'"
31021 done
31022
31023 # Let's still pretend it is `configure' which instantiates (i.e., don't
31024 # use $as_me), people would be surprised to read:
31025 # /* config.h. Generated by config.status. */
31026 configure_input='Generated from '`
31027 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31028 `' by configure.'
31029 if test x"$ac_file" != x-; then
31030 configure_input="$ac_file. $configure_input"
31031 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31032 $as_echo "$as_me: creating $ac_file" >&6;}
31033 fi
31034 # Neutralize special characters interpreted by sed in replacement strings.
31035 case $configure_input in #(
31036 *\&* | *\|* | *\\* )
31037 ac_sed_conf_input=`$as_echo "$configure_input" |
31038 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31039 *) ac_sed_conf_input=$configure_input;;
31040 esac
31041
31042 case $ac_tag in
31043 *:-:* | *:-) cat >"$tmp/stdin" \
31044 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31045 esac
31046 ;;
31047 esac
31048
31049 ac_dir=`$as_dirname -- "$ac_file" ||
31050 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31051 X"$ac_file" : 'X\(//\)[^/]' \| \
31052 X"$ac_file" : 'X\(//\)$' \| \
31053 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31054 $as_echo X"$ac_file" |
31055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31056 s//\1/
31057 q
31058 }
31059 /^X\(\/\/\)[^/].*/{
31060 s//\1/
31061 q
31062 }
31063 /^X\(\/\/\)$/{
31064 s//\1/
31065 q
31066 }
31067 /^X\(\/\).*/{
31068 s//\1/
31069 q
31070 }
31071 s/.*/./; q'`
31072 as_dir="$ac_dir"; as_fn_mkdir_p
31073 ac_builddir=.
31074
31075 case "$ac_dir" in
31076 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31077 *)
31078 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31079 # A ".." for each directory in $ac_dir_suffix.
31080 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31081 case $ac_top_builddir_sub in
31082 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31083 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31084 esac ;;
31085 esac
31086 ac_abs_top_builddir=$ac_pwd
31087 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31088 # for backward compatibility:
31089 ac_top_builddir=$ac_top_build_prefix
31090
31091 case $srcdir in
31092 .) # We are building in place.
31093 ac_srcdir=.
31094 ac_top_srcdir=$ac_top_builddir_sub
31095 ac_abs_top_srcdir=$ac_pwd ;;
31096 [\\/]* | ?:[\\/]* ) # Absolute name.
31097 ac_srcdir=$srcdir$ac_dir_suffix;
31098 ac_top_srcdir=$srcdir
31099 ac_abs_top_srcdir=$srcdir ;;
31100 *) # Relative name.
31101 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31102 ac_top_srcdir=$ac_top_build_prefix$srcdir
31103 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31104 esac
31105 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31106
31107
31108 case $ac_mode in
31109 :F)
31110 #
31111 # CONFIG_FILE
31112 #
31113
31114 _ACEOF
31115
31116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31117 # If the template does not know about datarootdir, expand it.
31118 # FIXME: This hack should be removed a few years after 2.60.
31119 ac_datarootdir_hack=; ac_datarootdir_seen=
31120 ac_sed_dataroot='
31121 /datarootdir/ {
31122 p
31123 q
31124 }
31125 /@datadir@/p
31126 /@docdir@/p
31127 /@infodir@/p
31128 /@localedir@/p
31129 /@mandir@/p'
31130 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31131 *datarootdir*) ac_datarootdir_seen=yes;;
31132 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31134 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31135 _ACEOF
31136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31137 ac_datarootdir_hack='
31138 s&@datadir@&$datadir&g
31139 s&@docdir@&$docdir&g
31140 s&@infodir@&$infodir&g
31141 s&@localedir@&$localedir&g
31142 s&@mandir@&$mandir&g
31143 s&\\\${datarootdir}&$datarootdir&g' ;;
31144 esac
31145 _ACEOF
31146
31147 # Neutralize VPATH when `$srcdir' = `.'.
31148 # Shell code in configure.ac might set extrasub.
31149 # FIXME: do we really want to maintain this feature?
31150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31151 ac_sed_extra="$ac_vpsub
31152 $extrasub
31153 _ACEOF
31154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31155 :t
31156 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31157 s|@configure_input@|$ac_sed_conf_input|;t t
31158 s&@top_builddir@&$ac_top_builddir_sub&;t t
31159 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31160 s&@srcdir@&$ac_srcdir&;t t
31161 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31162 s&@top_srcdir@&$ac_top_srcdir&;t t
31163 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31164 s&@builddir@&$ac_builddir&;t t
31165 s&@abs_builddir@&$ac_abs_builddir&;t t
31166 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31167 $ac_datarootdir_hack
31168 "
31169 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31170 if $ac_cs_awk_getline; then
31171 $AWK -f "$tmp/subs.awk"
31172 else
31173 $AWK -f "$tmp/subs.awk" | $SHELL
31174 fi >$tmp/out \
31175 || as_fn_error "could not create $ac_file" "$LINENO" 5
31176
31177 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31178 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31179 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31181 which seems to be undefined. Please make sure it is defined." >&5
31182 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31183 which seems to be undefined. Please make sure it is defined." >&2;}
31184
31185 rm -f "$tmp/stdin"
31186 case $ac_file in
31187 -) cat "$tmp/out" && rm -f "$tmp/out";;
31188 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31189 esac \
31190 || as_fn_error "could not create $ac_file" "$LINENO" 5
31191 ;;
31192 :H)
31193 #
31194 # CONFIG_HEADER
31195 #
31196 if test x"$ac_file" != x-; then
31197 {
31198 $as_echo "/* $configure_input */" \
31199 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31200 } >"$tmp/config.h" \
31201 || as_fn_error "could not create $ac_file" "$LINENO" 5
31202 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31203 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31204 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31205 else
31206 rm -f "$ac_file"
31207 mv "$tmp/config.h" "$ac_file" \
31208 || as_fn_error "could not create $ac_file" "$LINENO" 5
31209 fi
31210 else
31211 $as_echo "/* $configure_input */" \
31212 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31213 || as_fn_error "could not create -" "$LINENO" 5
31214 fi
31215 ;;
31216 :L)
31217 #
31218 # CONFIG_LINK
31219 #
31220
31221 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31222 :
31223 else
31224 # Prefer the file from the source tree if names are identical.
31225 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31226 ac_source=$srcdir/$ac_source
31227 fi
31228
31229 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31230 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31231
31232 if test ! -r "$ac_source"; then
31233 as_fn_error "$ac_source: file not found" "$LINENO" 5
31234 fi
31235 rm -f "$ac_file"
31236
31237 # Try a relative symlink, then a hard link, then a copy.
31238 case $srcdir in
31239 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31240 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31241 esac
31242 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31243 ln "$ac_source" "$ac_file" 2>/dev/null ||
31244 cp -p "$ac_source" "$ac_file" ||
31245 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31246 fi
31247 ;;
31248 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31249 $as_echo "$as_me: executing $ac_file commands" >&6;}
31250 ;;
31251 esac
31252
31253
31254 case $ac_file$ac_mode in
31255 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31256 "gccdepdir":C)
31257 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31258 for lang in $subdirs c-family common
31259 do
31260 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31261 done ;;
31262 "as":F) chmod +x as ;;
31263 "collect-ld":F) chmod +x collect-ld ;;
31264 "nm":F) chmod +x nm ;;
31265 "default":C)
31266 case ${CONFIG_HEADERS} in
31267 *auto-host.h:config.in*)
31268 echo > cstamp-h ;;
31269 esac
31270 # Make sure all the subdirs exist.
31271 for d in $subdirs doc build common c-family
31272 do
31273 test -d $d || mkdir $d
31274 done
31275 ;;
31276
31277 esac
31278 done # for ac_tag
31279
31280
31281 as_fn_exit 0
31282 _ACEOF
31283 ac_clean_files=$ac_clean_files_save
31284
31285 test $ac_write_fail = 0 ||
31286 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31287
31288
31289 # configure is writing to config.log, and then calls config.status.
31290 # config.status does its own redirection, appending to config.log.
31291 # Unfortunately, on DOS this fails, as config.log is still kept open
31292 # by configure, so config.status won't be able to write to it; its
31293 # output is simply discarded. So we exec the FD to /dev/null,
31294 # effectively closing config.log, so it can be properly (re)opened and
31295 # appended to by config.status. When coming back to configure, we
31296 # need to make the FD available again.
31297 if test "$no_create" != yes; then
31298 ac_cs_success=:
31299 ac_config_status_args=
31300 test "$silent" = yes &&
31301 ac_config_status_args="$ac_config_status_args --quiet"
31302 exec 5>/dev/null
31303 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31304 exec 5>>config.log
31305 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31306 # would make configure fail if this is the last instruction.
31307 $ac_cs_success || as_fn_exit $?
31308 fi
31309 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31311 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31312 fi
31313
31314