]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
Disable string merging with alignment > 1 before Solaris 11.4/SPARC
[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 gcc_cv_ld_aligned_shf_merge=yes
23743 case "$target" in
23744 # While Solaris 10/SPARC ld isn't affected, disable to avoid problems
23745 # relinking on Solaris 11 < 11.4.
23746 sparc*-*-solaris2.10*)
23747 if test x"$gnu_ld" = xno; then
23748 gcc_cv_ld_aligned_shf_merge=no
23749 fi
23750 ;;
23751 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
23752 # alignment > 1.
23753 sparc*-*-solaris2.11*)
23754 if test x"$gnu_ld" = xno \
23755 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
23756 gcc_cv_ld_aligned_shf_merge=no
23757 fi
23758 ;;
23759 esac
23760
23761 cat >>confdefs.h <<_ACEOF
23762 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
23763 _ACEOF
23764
23765
23766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23767 $as_echo_n "checking assembler for stabs directive... " >&6; }
23768 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23769 $as_echo_n "(cached) " >&6
23770 else
23771 gcc_cv_as_stabs_directive=no
23772 if test x$gcc_cv_as != x; then
23773 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23774 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23776 (eval $ac_try) 2>&5
23777 ac_status=$?
23778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23779 test $ac_status = 0; }; }
23780 then
23781 gcc_cv_as_stabs_directive=yes
23782 else
23783 echo "configure: failed program was" >&5
23784 cat conftest.s >&5
23785 fi
23786 rm -f conftest.o conftest.s
23787 fi
23788 fi
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23790 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23791 if test $gcc_cv_as_stabs_directive = yes; then
23792
23793 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23794
23795 fi
23796
23797
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23799 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23800 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23801 $as_echo_n "(cached) " >&6
23802 else
23803 gcc_cv_as_comdat_group=no
23804 if test $in_tree_gas = yes; then
23805 if test $in_tree_gas_is_elf = yes \
23806 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23807 then gcc_cv_as_comdat_group=yes
23808 fi
23809 elif test x$gcc_cv_as != x; then
23810 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23811 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23813 (eval $ac_try) 2>&5
23814 ac_status=$?
23815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23816 test $ac_status = 0; }; }
23817 then
23818 gcc_cv_as_comdat_group=yes
23819 else
23820 echo "configure: failed program was" >&5
23821 cat conftest.s >&5
23822 fi
23823 rm -f conftest.o conftest.s
23824 fi
23825 fi
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23827 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23828
23829
23830 if test $gcc_cv_as_comdat_group = yes; then
23831 gcc_cv_as_comdat_group_percent=no
23832 gcc_cv_as_comdat_group_group=no
23833 else
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23835 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23836 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23837 $as_echo_n "(cached) " >&6
23838 else
23839 gcc_cv_as_comdat_group_percent=no
23840 if test $in_tree_gas = yes; then
23841 if test $in_tree_gas_is_elf = yes \
23842 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23843 then gcc_cv_as_comdat_group_percent=yes
23844 fi
23845 elif test x$gcc_cv_as != x; then
23846 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23847 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23849 (eval $ac_try) 2>&5
23850 ac_status=$?
23851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23852 test $ac_status = 0; }; }
23853 then
23854 gcc_cv_as_comdat_group_percent=yes
23855 else
23856 echo "configure: failed program was" >&5
23857 cat conftest.s >&5
23858 fi
23859 rm -f conftest.o conftest.s
23860 fi
23861 fi
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23863 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23864
23865
23866 if test $gcc_cv_as_comdat_group_percent = yes; then
23867 gcc_cv_as_comdat_group_group=no
23868 else
23869 case "${target}" in
23870 # Sun as uses a completely different syntax.
23871 *-*-solaris2*)
23872 case "${target}" in
23873 sparc*-*-solaris2*)
23874 conftest_s='
23875 .group foo,".text%foo",#comdat
23876 .section ".text%foo", #alloc,#execinstr,#progbits
23877 .globl foo
23878 foo:
23879 '
23880 ;;
23881 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23882 conftest_s='
23883 .group foo,.text%foo,#comdat
23884 .section .text%foo, "ax", @progbits
23885 .globl foo
23886 foo:
23887 '
23888 ;;
23889 esac
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23891 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23892 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23893 $as_echo_n "(cached) " >&6
23894 else
23895 gcc_cv_as_comdat_group_group=no
23896 if test x$gcc_cv_as != x; then
23897 $as_echo "$conftest_s" > conftest.s
23898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23900 (eval $ac_try) 2>&5
23901 ac_status=$?
23902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23903 test $ac_status = 0; }; }
23904 then
23905 gcc_cv_as_comdat_group_group=yes
23906 else
23907 echo "configure: failed program was" >&5
23908 cat conftest.s >&5
23909 fi
23910 rm -f conftest.o conftest.s
23911 fi
23912 fi
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23914 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23915
23916
23917 ;;
23918 esac
23919 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23920 gcc_cv_as_comdat_group_group=no
23921 fi
23922 fi
23923 fi
23924 if test x"$ld_is_gold" = xyes; then
23925 comdat_group=yes
23926 elif test $in_tree_ld = yes ; then
23927 comdat_group=no
23928 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 \
23929 && test $in_tree_ld_is_elf = yes; then
23930 comdat_group=yes
23931 fi
23932 elif echo "$ld_ver" | grep GNU > /dev/null; then
23933 comdat_group=yes
23934 if test 0"$ld_date" -lt 20050308; then
23935 if test -n "$ld_date"; then
23936 # If there was date string, but was earlier than 2005-03-08, fail
23937 comdat_group=no
23938 elif test "$ld_vers_major" -lt 2; then
23939 comdat_group=no
23940 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23941 comdat_group=no
23942 fi
23943 fi
23944 else
23945 case "${target}" in
23946 *-*-solaris2.1[1-9]*)
23947 comdat_group=no
23948 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23949 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23950 # version 1.688.
23951 #
23952 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23953 # least ld version 1.2267.
23954 if test "$ld_vers_major" -gt 1; then
23955 comdat_group=yes
23956 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23957 comdat_group=yes
23958 elif test "$ld_vers_minor" -ge 2267; then
23959 comdat_group=yes
23960 fi
23961 ;;
23962 *)
23963 # Assume linkers other than GNU ld don't support COMDAT group.
23964 comdat_group=no
23965 ;;
23966 esac
23967 fi
23968 # Allow overriding the automatic COMDAT group tests above.
23969 # Check whether --enable-comdat was given.
23970 if test "${enable_comdat+set}" = set; then :
23971 enableval=$enable_comdat; comdat_group="$enable_comdat"
23972 fi
23973
23974 if test $comdat_group = no; then
23975 gcc_cv_as_comdat_group=no
23976 gcc_cv_as_comdat_group_percent=no
23977 gcc_cv_as_comdat_group_group=no
23978 fi
23979
23980 cat >>confdefs.h <<_ACEOF
23981 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23982 || test $gcc_cv_as_comdat_group_percent = yes \
23983 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23984 _ACEOF
23985
23986
23987 # Restrict this test to Solaris/x86: other targets define this statically.
23988 case "${target}" in
23989 i?86-*-solaris2* | x86_64-*-solaris2*)
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
23991 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
23992 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
23993 hidden_linkonce=yes
23994 else
23995 case "${target}" in
23996 # Full support for hidden thunks in linkonce sections only appeared in
23997 # Solaris 11/OpenSolaris.
23998 *-*-solaris2.1[1-9]*)
23999 hidden_linkonce=yes
24000 ;;
24001 *)
24002 hidden_linkonce=no
24003 ;;
24004 esac
24005 fi
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24007 $as_echo "$hidden_linkonce" >&6; }
24008
24009 cat >>confdefs.h <<_ACEOF
24010 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24011 _ACEOF
24012
24013 ;;
24014 esac
24015
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24017 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24018 if test "${gcc_cv_as_is_stmt+set}" = set; then :
24019 $as_echo_n "(cached) " >&6
24020 else
24021 gcc_cv_as_is_stmt=no
24022 if test $in_tree_gas = yes; then
24023 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24024 then gcc_cv_as_is_stmt=yes
24025 fi
24026 elif test x$gcc_cv_as != x; then
24027 $as_echo ' .text
24028 .file 1 "conf.c"
24029 .loc 1 1 0 is_stmt 1' > conftest.s
24030 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24032 (eval $ac_try) 2>&5
24033 ac_status=$?
24034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24035 test $ac_status = 0; }; }
24036 then
24037 gcc_cv_as_is_stmt=yes
24038 else
24039 echo "configure: failed program was" >&5
24040 cat conftest.s >&5
24041 fi
24042 rm -f conftest.o conftest.s
24043 fi
24044 fi
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24046 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24047 if test $gcc_cv_as_is_stmt = yes; then
24048
24049 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24050
24051 fi
24052
24053
24054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24055 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24056 if test "${gcc_cv_as_discriminator+set}" = set; then :
24057 $as_echo_n "(cached) " >&6
24058 else
24059 gcc_cv_as_discriminator=no
24060 if test $in_tree_gas = yes; then
24061 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24062 then gcc_cv_as_discriminator=yes
24063 fi
24064 elif test x$gcc_cv_as != x; then
24065 $as_echo ' .text
24066 .file 1 "conf.c"
24067 .loc 1 1 0 discriminator 1' > conftest.s
24068 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24070 (eval $ac_try) 2>&5
24071 ac_status=$?
24072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24073 test $ac_status = 0; }; }
24074 then
24075 gcc_cv_as_discriminator=yes
24076 else
24077 echo "configure: failed program was" >&5
24078 cat conftest.s >&5
24079 fi
24080 rm -f conftest.o conftest.s
24081 fi
24082 fi
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24084 $as_echo "$gcc_cv_as_discriminator" >&6; }
24085 if test $gcc_cv_as_discriminator = yes; then
24086
24087 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24088
24089 fi
24090
24091
24092 # Thread-local storage - the check is heavily parameterized.
24093 conftest_s=
24094 tls_first_major=
24095 tls_first_minor=
24096 tls_as_opt=
24097 case "$target" in
24098 alpha*-*-*)
24099 conftest_s='
24100 .section ".tdata","awT",@progbits
24101 foo: .long 25
24102 .text
24103 ldq $27,__tls_get_addr($29) !literal!1
24104 lda $16,foo($29) !tlsgd!1
24105 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24106 ldq $27,__tls_get_addr($29) !literal!2
24107 lda $16,foo($29) !tlsldm!2
24108 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24109 ldq $1,foo($29) !gotdtprel
24110 ldah $2,foo($29) !dtprelhi
24111 lda $3,foo($2) !dtprello
24112 lda $4,foo($29) !dtprel
24113 ldq $1,foo($29) !gottprel
24114 ldah $2,foo($29) !tprelhi
24115 lda $3,foo($2) !tprello
24116 lda $4,foo($29) !tprel'
24117 tls_first_major=2
24118 tls_first_minor=13
24119 tls_as_opt=--fatal-warnings
24120 ;;
24121 arc*-*-*)
24122 conftest_s='
24123 add_s r0,r0, @foo@tpoff'
24124 tls_first_major=2
24125 tls_first_minor=23
24126 ;;
24127 cris-*-*|crisv32-*-*)
24128 conftest_s='
24129 .section ".tdata","awT",@progbits
24130 x: .long 25
24131 .text
24132 move.d x:IE,$r10
24133 nop'
24134 tls_first_major=2
24135 tls_first_minor=20
24136 tls_as_opt=--fatal-warnings
24137 ;;
24138 frv*-*-*)
24139 conftest_s='
24140 .section ".tdata","awT",@progbits
24141 x: .long 25
24142 .text
24143 call #gettlsoff(x)'
24144 tls_first_major=2
24145 tls_first_minor=14
24146 ;;
24147 hppa*-*-linux*)
24148 conftest_s='
24149 t1: .reg %r20
24150 t2: .reg %r21
24151 gp: .reg %r19
24152 .section ".tdata","awT",@progbits
24153 foo: .long 25
24154 .text
24155 .align 4
24156 addil LT%foo-$tls_gdidx$,gp
24157 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24158 b __tls_get_addr
24159 nop
24160 addil LT%foo-$tls_ldidx$,gp
24161 b __tls_get_addr
24162 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24163 addil LR%foo-$tls_dtpoff$,%ret0
24164 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24165 mfctl %cr27,%t1
24166 addil LT%foo-$tls_ieoff$,gp
24167 ldw RT%foo-$tls_ieoff$(%r1),%t2
24168 add %t1,%t2,%t3
24169 mfctl %cr27,%t1
24170 addil LR%foo-$tls_leoff$,%t1
24171 ldo RR%foo-$tls_leoff$(%r1),%t2'
24172 tls_first_major=2
24173 tls_first_minor=15
24174 tls_as_opt=--fatal-warnings
24175 ;;
24176 arm*-*-*)
24177 conftest_s='
24178 .section ".tdata","awT",%progbits
24179 foo: .long 25
24180 .text
24181 .word foo(gottpoff)
24182 .word foo(tpoff)
24183 .word foo(tlsgd)
24184 .word foo(tlsldm)
24185 .word foo(tlsldo)'
24186 tls_first_major=2
24187 tls_first_minor=17
24188 ;;
24189 i[34567]86-*-* | x86_64-*-*)
24190 case "$target" in
24191 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
24192 on_solaris=yes
24193 ;;
24194 *)
24195 on_solaris=no
24196 ;;
24197 esac
24198 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24199 conftest_s='
24200 .section .tdata,"awt",@progbits'
24201 tls_first_major=0
24202 tls_first_minor=0
24203 tls_section_flag=t
24204
24205 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24206
24207 else
24208 conftest_s='
24209 .section ".tdata","awT",@progbits'
24210 tls_first_major=2
24211 tls_first_minor=14
24212 tls_section_flag=T
24213 tls_as_opt="--fatal-warnings"
24214 fi
24215 case "$target" in
24216 i[34567]86-*-*)
24217 conftest_s="$conftest_s
24218 foo: .long 25
24219 .text
24220 movl %gs:0, %eax
24221 leal foo@tlsgd(,%ebx,1), %eax
24222 leal foo@tlsldm(%ebx), %eax
24223 leal foo@dtpoff(%eax), %edx
24224 movl foo@gottpoff(%ebx), %eax
24225 subl foo@gottpoff(%ebx), %eax
24226 addl foo@gotntpoff(%ebx), %eax
24227 movl foo@indntpoff, %eax
24228 movl \$foo@tpoff, %eax
24229 subl \$foo@tpoff, %eax
24230 leal foo@ntpoff(%ecx), %eax"
24231 ;;
24232 x86_64-*-*)
24233 if test x$on_solaris = xyes; then
24234 case $gas_flag in
24235 yes) tls_as_opt="$tls_as_opt --64" ;;
24236 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24237 esac
24238 fi
24239 conftest_s="$conftest_s
24240 foo: .long 25
24241 .text
24242 movq %fs:0, %rax
24243 leaq foo@tlsgd(%rip), %rdi
24244 leaq foo@tlsld(%rip), %rdi
24245 leaq foo@dtpoff(%rax), %rdx
24246 movq foo@gottpoff(%rip), %rax
24247 movq \$foo@tpoff, %rax"
24248 ;;
24249 esac
24250 ;;
24251 ia64-*-*)
24252 conftest_s='
24253 .section ".tdata","awT",@progbits
24254 foo: data8 25
24255 .text
24256 addl r16 = @ltoff(@dtpmod(foo#)), gp
24257 addl r17 = @ltoff(@dtprel(foo#)), gp
24258 addl r18 = @ltoff(@tprel(foo#)), gp
24259 addl r19 = @dtprel(foo#), gp
24260 adds r21 = @dtprel(foo#), r13
24261 movl r23 = @dtprel(foo#)
24262 addl r20 = @tprel(foo#), gp
24263 adds r22 = @tprel(foo#), r13
24264 movl r24 = @tprel(foo#)'
24265 tls_first_major=2
24266 tls_first_minor=13
24267 tls_as_opt=--fatal-warnings
24268 ;;
24269 microblaze*-*-*)
24270 conftest_s='
24271 .section .tdata,"awT",@progbits
24272 x:
24273 .word 2
24274 .text
24275 addik r5,r20,x@TLSGD
24276 addik r5,r20,x@TLSLDM'
24277 tls_first_major=2
24278 tls_first_minor=20
24279 tls_as_opt='--fatal-warnings'
24280 ;;
24281 mips*-*-*)
24282 conftest_s='
24283 .section .tdata,"awT",@progbits
24284 x:
24285 .word 2
24286 .text
24287 addiu $4, $28, %tlsgd(x)
24288 addiu $4, $28, %tlsldm(x)
24289 lui $4, %dtprel_hi(x)
24290 addiu $4, $4, %dtprel_lo(x)
24291 lw $4, %gottprel(x)($28)
24292 lui $4, %tprel_hi(x)
24293 addiu $4, $4, %tprel_lo(x)'
24294 tls_first_major=2
24295 tls_first_minor=16
24296 tls_as_opt='-32 --fatal-warnings'
24297 ;;
24298 m68k-*-*)
24299 conftest_s='
24300 .section .tdata,"awT",@progbits
24301 x:
24302 .word 2
24303 .text
24304 foo:
24305 move.l x@TLSGD(%a5),%a0
24306 move.l x@TLSLDM(%a5),%a0
24307 move.l x@TLSLDO(%a5),%a0
24308 move.l x@TLSIE(%a5),%a0
24309 move.l x@TLSLE(%a5),%a0'
24310 tls_first_major=2
24311 tls_first_minor=19
24312 tls_as_opt='--fatal-warnings'
24313 ;;
24314 nios2-*-*)
24315 conftest_s='
24316 .section ".tdata","awT",@progbits'
24317 tls_first_major=2
24318 tls_first_minor=23
24319 tls_as_opt="--fatal-warnings"
24320 ;;
24321 aarch64*-*-*)
24322 conftest_s='
24323 .section ".tdata","awT",%progbits
24324 foo: .long 25
24325 .text
24326 adrp x0, :tlsgd:x
24327 add x0, x0, #:tlsgd_lo12:x
24328 bl __tls_get_addr
24329 nop'
24330 tls_first_major=2
24331 tls_first_minor=20
24332 tls_as_opt='--fatal-warnings'
24333 ;;
24334 powerpc-ibm-aix*)
24335 conftest_s='
24336 .extern __get_tpointer
24337 .toc
24338 LC..1:
24339 .tc a[TC],a[TL]@le
24340 .csect .text[PR]
24341 .tlstest:
24342 lwz 9,LC..1(2)
24343 bla __get_tpointer
24344 lwzx 3,9,3
24345 .globl a
24346 .csect a[TL],4
24347 a:
24348 .space 4'
24349 tls_first_major=0
24350 tls_first_minor=0
24351 ;;
24352 powerpc64*-*-*)
24353 conftest_s='
24354 .section ".tdata","awT",@progbits
24355 .align 3
24356 ld0: .space 8
24357 ld1: .space 8
24358 x1: .space 8
24359 x2: .space 8
24360 x3: .space 8
24361 .text
24362 addi 3,2,ld0@got@tlsgd
24363 bl .__tls_get_addr
24364 nop
24365 addi 3,2,ld1@toc
24366 bl .__tls_get_addr
24367 nop
24368 addi 3,2,x1@got@tlsld
24369 bl .__tls_get_addr
24370 nop
24371 addi 9,3,x1@dtprel
24372 bl .__tls_get_addr
24373 nop
24374 addis 9,3,x2@dtprel@ha
24375 addi 9,9,x2@dtprel@l
24376 bl .__tls_get_addr
24377 nop
24378 ld 9,x3@got@dtprel(2)
24379 add 9,9,3
24380 bl .__tls_get_addr
24381 nop'
24382 tls_first_major=2
24383 tls_first_minor=14
24384 tls_as_opt="-a64 --fatal-warnings"
24385 ;;
24386 powerpc*-*-*)
24387 conftest_s='
24388 .section ".tdata","awT",@progbits
24389 .align 2
24390 ld0: .space 4
24391 ld1: .space 4
24392 x1: .space 4
24393 x2: .space 4
24394 x3: .space 4
24395 .text
24396 addi 3,31,ld0@got@tlsgd
24397 bl __tls_get_addr
24398 addi 3,31,x1@got@tlsld
24399 bl __tls_get_addr
24400 addi 9,3,x1@dtprel
24401 addis 9,3,x2@dtprel@ha
24402 addi 9,9,x2@dtprel@l
24403 lwz 9,x3@got@tprel(31)
24404 add 9,9,x@tls
24405 addi 9,2,x1@tprel
24406 addis 9,2,x2@tprel@ha
24407 addi 9,9,x2@tprel@l'
24408 tls_first_major=2
24409 tls_first_minor=14
24410 tls_as_opt="-a32 --fatal-warnings"
24411 ;;
24412 riscv*-*-*)
24413 conftest_s='
24414 .section .tdata,"awT",@progbits
24415 x: .word 2
24416 .text
24417 la.tls.gd a0,x
24418 call __tls_get_addr'
24419 tls_first_major=2
24420 tls_first_minor=21
24421 tls_as_opt='--fatal-warnings'
24422 ;;
24423 s390-*-*)
24424 conftest_s='
24425 .section ".tdata","awT",@progbits
24426 foo: .long 25
24427 .text
24428 .long foo@TLSGD
24429 .long foo@TLSLDM
24430 .long foo@DTPOFF
24431 .long foo@NTPOFF
24432 .long foo@GOTNTPOFF
24433 .long foo@INDNTPOFF
24434 l %r1,foo@GOTNTPOFF(%r12)
24435 l %r1,0(%r1):tls_load:foo
24436 bas %r14,0(%r1,%r13):tls_gdcall:foo
24437 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24438 tls_first_major=2
24439 tls_first_minor=14
24440 tls_as_opt="-m31 --fatal-warnings"
24441 ;;
24442 s390x-*-*)
24443 conftest_s='
24444 .section ".tdata","awT",@progbits
24445 foo: .long 25
24446 .text
24447 .quad foo@TLSGD
24448 .quad foo@TLSLDM
24449 .quad foo@DTPOFF
24450 .quad foo@NTPOFF
24451 .quad foo@GOTNTPOFF
24452 lg %r1,foo@GOTNTPOFF(%r12)
24453 larl %r1,foo@INDNTPOFF
24454 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24455 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24456 tls_first_major=2
24457 tls_first_minor=14
24458 tls_as_opt="-m64 -Aesame --fatal-warnings"
24459 ;;
24460 sh-*-* | sh[123456789lbe]*-*-*)
24461 conftest_s='
24462 .section ".tdata","awT",@progbits
24463 foo: .long 25
24464 .text
24465 .long foo@TLSGD
24466 .long foo@TLSLDM
24467 .long foo@DTPOFF
24468 .long foo@GOTTPOFF
24469 .long foo@TPOFF'
24470 tls_first_major=2
24471 tls_first_minor=13
24472 tls_as_opt=--fatal-warnings
24473 ;;
24474 sparc*-*-*)
24475 case "$target" in
24476 sparc*-sun-solaris2.*)
24477 on_solaris=yes
24478 ;;
24479 *)
24480 on_solaris=no
24481 ;;
24482 esac
24483 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24484 conftest_s='
24485 .section ".tdata",#alloc,#write,#tls'
24486 tls_first_major=0
24487 tls_first_minor=0
24488 else
24489 conftest_s='
24490 .section ".tdata","awT",@progbits'
24491 tls_first_major=2
24492 tls_first_minor=14
24493 tls_as_opt="-32 --fatal-warnings"
24494 fi
24495 conftest_s="$conftest_s
24496 foo: .long 25
24497 .text
24498 sethi %tgd_hi22(foo), %o0
24499 add %o0, %tgd_lo10(foo), %o1
24500 add %l7, %o1, %o0, %tgd_add(foo)
24501 call __tls_get_addr, %tgd_call(foo)
24502 sethi %tldm_hi22(foo), %l1
24503 add %l1, %tldm_lo10(foo), %l2
24504 add %l7, %l2, %o0, %tldm_add(foo)
24505 call __tls_get_addr, %tldm_call(foo)
24506 sethi %tldo_hix22(foo), %l3
24507 xor %l3, %tldo_lox10(foo), %l4
24508 add %o0, %l4, %l5, %tldo_add(foo)
24509 sethi %tie_hi22(foo), %o3
24510 add %o3, %tie_lo10(foo), %o3
24511 ld [%l7 + %o3], %o2, %tie_ld(foo)
24512 add %g7, %o2, %o4, %tie_add(foo)
24513 sethi %tle_hix22(foo), %l1
24514 xor %l1, %tle_lox10(foo), %o5
24515 ld [%g7 + %o5], %o1"
24516 ;;
24517 tilepro*-*-*)
24518 conftest_s='
24519 .section ".tdata","awT",@progbits
24520 foo: .long 25
24521 .text
24522 addli r0, zero, tls_gd(foo)
24523 auli r0, zero, tls_gd_ha16(foo)
24524 addli r0, r0, tls_gd_lo16(foo)
24525 jal __tls_get_addr
24526 addli r0, zero, tls_ie(foo)
24527 auli r0, r0, tls_ie_ha16(foo)
24528 addli r0, r0, tls_ie_lo16(foo)'
24529 tls_first_major=2
24530 tls_first_minor=22
24531 tls_as_opt="--fatal-warnings"
24532 ;;
24533 tilegx*-*-*)
24534 conftest_s='
24535 .section ".tdata","awT",@progbits
24536 foo: .long 25
24537 .text
24538 shl16insli r0, zero, hw0_last_tls_gd(foo)
24539 shl16insli r0, zero, hw1_last_tls_gd(foo)
24540 shl16insli r0, r0, hw0_tls_gd(foo)
24541 jal __tls_get_addr
24542 shl16insli r0, zero, hw1_last_tls_ie(foo)
24543 shl16insli r0, r0, hw0_tls_ie(foo)'
24544 tls_first_major=2
24545 tls_first_minor=22
24546 tls_as_opt="--fatal-warnings"
24547 ;;
24548 xtensa*-*-*)
24549 conftest_s='
24550 .section ".tdata","awT",@progbits
24551 foo: .long 25
24552 .text
24553 movi a8, foo@TLSFUNC
24554 movi a10, foo@TLSARG
24555 callx8.tls a8, foo@TLSCALL'
24556 tls_first_major=2
24557 tls_first_minor=19
24558 ;;
24559 esac
24560 set_have_as_tls=no
24561 if test "x$enable_tls" = xno ; then
24562 : # TLS explicitly disabled.
24563 elif test "x$enable_tls" = xyes ; then
24564 set_have_as_tls=yes # TLS explicitly enabled.
24565 elif test -z "$tls_first_major"; then
24566 : # If we don't have a check, assume no support.
24567 else
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24569 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24570 if test "${gcc_cv_as_tls+set}" = set; then :
24571 $as_echo_n "(cached) " >&6
24572 else
24573 gcc_cv_as_tls=no
24574 if test $in_tree_gas = yes; then
24575 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24576 then gcc_cv_as_tls=yes
24577 fi
24578 elif test x$gcc_cv_as != x; then
24579 $as_echo "$conftest_s" > conftest.s
24580 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24582 (eval $ac_try) 2>&5
24583 ac_status=$?
24584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24585 test $ac_status = 0; }; }
24586 then
24587 gcc_cv_as_tls=yes
24588 else
24589 echo "configure: failed program was" >&5
24590 cat conftest.s >&5
24591 fi
24592 rm -f conftest.o conftest.s
24593 fi
24594 fi
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24596 $as_echo "$gcc_cv_as_tls" >&6; }
24597 if test $gcc_cv_as_tls = yes; then
24598 set_have_as_tls=yes
24599 fi
24600
24601 fi
24602 if test $set_have_as_tls = yes ; then
24603
24604 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24605
24606 fi
24607
24608 # Target-specific assembler checks.
24609
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24611 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24612 gcc_cv_ld_static_dynamic=no
24613 gcc_cv_ld_static_option='-Bstatic'
24614 gcc_cv_ld_dynamic_option='-Bdynamic'
24615 if test $in_tree_ld = yes ; then
24616 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
24617 gcc_cv_ld_static_dynamic=yes
24618 fi
24619 elif test x$gcc_cv_ld != x; then
24620 # Check if linker supports -Bstatic/-Bdynamic option
24621 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24622 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24623 gcc_cv_ld_static_dynamic=yes
24624 else
24625 case "$target" in
24626 # AIX ld uses -b flags
24627 *-*-aix4.[23]* | *-*-aix[5-9]*)
24628 gcc_cv_ld_static_dynamic=yes
24629 gcc_cv_ld_static_option="-bstatic"
24630 gcc_cv_ld_dynamic_option="-bdynamic"
24631 ;;
24632 # HP-UX ld uses -a flags to select between shared and archive.
24633 *-*-hpux*)
24634 if test x"$gnu_ld" = xno; then
24635 gcc_cv_ld_static_dynamic=yes
24636 gcc_cv_ld_static_option="-aarchive_shared"
24637 gcc_cv_ld_dynamic_option="-adefault"
24638 fi
24639 ;;
24640 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24641 *-*-solaris2*)
24642 gcc_cv_ld_static_dynamic=yes
24643 ;;
24644 esac
24645 fi
24646 fi
24647 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24648
24649 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24650
24651
24652 cat >>confdefs.h <<_ACEOF
24653 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24654 _ACEOF
24655
24656
24657 cat >>confdefs.h <<_ACEOF
24658 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24659 _ACEOF
24660
24661 fi
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24663 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24664
24665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24666 $as_echo_n "checking linker --version-script option... " >&6; }
24667 gcc_cv_ld_version_script=no
24668 ld_version_script_option=''
24669 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24670 gcc_cv_ld_version_script=yes
24671 ld_version_script_option='--version-script'
24672 elif test x$gcc_cv_ld != x; then
24673 case "$target" in
24674 # Solaris 2 ld always supports -M. It also supports a subset of
24675 # --version-script since Solaris 11.4, but requires
24676 # -z gnu-version-script-compat to activate.
24677 *-*-solaris2*)
24678 gcc_cv_ld_version_script=yes
24679 ld_version_script_option='-M'
24680 ;;
24681 esac
24682 fi
24683 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24685 $as_echo "$gcc_cv_ld_version_script" >&6; }
24686
24687
24688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24689 $as_echo_n "checking linker soname option... " >&6; }
24690 gcc_cv_ld_soname=no
24691 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24692 gcc_cv_ld_soname=yes
24693 ld_soname_option='-soname'
24694 elif test x$gcc_cv_ld != x; then
24695 case "$target" in
24696 *-*-darwin*)
24697 gcc_cv_ld_soname=yes
24698 ld_soname_option='-install_name'
24699 ;;
24700 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24701 # ld compatiblity since some Solaris 10 update.
24702 *-*-solaris2*)
24703 gcc_cv_ld_soname=yes
24704 ld_soname_option='-h'
24705 ;;
24706 esac
24707 fi
24708 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24710 $as_echo "$gcc_cv_ld_soname" >&6; }
24711
24712
24713 if test x"$demangler_in_ld" = xyes; then
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24715 $as_echo_n "checking linker --demangle support... " >&6; }
24716 gcc_cv_ld_demangle=no
24717 if test $in_tree_ld = yes; then
24718 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 \
24719 gcc_cv_ld_demangle=yes
24720 fi
24721 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24722 # Check if the GNU linker supports --demangle option
24723 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24724 gcc_cv_ld_demangle=yes
24725 fi
24726 fi
24727 if test x"$gcc_cv_ld_demangle" = xyes; then
24728
24729 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24730
24731 fi
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24733 $as_echo "$gcc_cv_ld_demangle" >&6; }
24734 fi
24735
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24737 $as_echo_n "checking linker plugin support... " >&6; }
24738 gcc_cv_lto_plugin=0
24739 if test -f liblto_plugin.la; then
24740 save_ld_ver="$ld_ver"
24741 save_ld_vers_major="$ld_vers_major"
24742 save_ld_vers_minor="$ld_vers_minor"
24743 save_ld_is_gold="$ld_is_gold"
24744
24745 ld_is_gold=no
24746
24747 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24748 ld_ver="GNU ld"
24749 # FIXME: ld_is_gold?
24750 ld_vers_major="$gcc_cv_gld_major_version"
24751 ld_vers_minor="$gcc_cv_gld_minor_version"
24752 else
24753 # Determine plugin linker version.
24754 # FIXME: Partial duplicate from above, generalize.
24755 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24756 if echo "$ld_ver" | grep GNU > /dev/null; then
24757 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24758 ld_is_gold=yes
24759 ld_vers=`echo $ld_ver | sed -n \
24760 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24761 else
24762 ld_vers=`echo $ld_ver | sed -n \
24763 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24764 fi
24765 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24766 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24767 fi
24768 fi
24769
24770 # Determine plugin support.
24771 if echo "$ld_ver" | grep GNU > /dev/null; then
24772 # Require GNU ld or gold 2.21+ for plugin support by default.
24773 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24774 gcc_cv_lto_plugin=2
24775 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24776 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24777 gcc_cv_lto_plugin=1
24778 fi
24779 fi
24780
24781 ld_ver="$save_ld_ver"
24782 ld_vers_major="$save_ld_vers_major"
24783 ld_vers_minor="$save_ld_vers_minor"
24784 ld_is_gold="$save_ld_is_gold"
24785 fi
24786
24787 cat >>confdefs.h <<_ACEOF
24788 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24789 _ACEOF
24790
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24792 $as_echo "$gcc_cv_lto_plugin" >&6; }
24793
24794 # Target OS-specific assembler checks.
24795
24796 case "$target_os" in
24797 darwin*)
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24799 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24800 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24801 $as_echo_n "(cached) " >&6
24802 else
24803 gcc_cv_as_mmacosx_version_min=no
24804 if test x$gcc_cv_as != x; then
24805 $as_echo '.text' > conftest.s
24806 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24808 (eval $ac_try) 2>&5
24809 ac_status=$?
24810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24811 test $ac_status = 0; }; }
24812 then
24813 gcc_cv_as_mmacosx_version_min=yes
24814 else
24815 echo "configure: failed program was" >&5
24816 cat conftest.s >&5
24817 fi
24818 rm -f conftest.o conftest.s
24819 fi
24820 fi
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24822 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24823 if test $gcc_cv_as_mmacosx_version_min = yes; then
24824
24825 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24826
24827 fi
24828
24829 ;;
24830 esac
24831
24832 # Target CPU-specific assembler checks.
24833
24834 case "$target" in
24835 aarch64*-*-*)
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24837 $as_echo_n "checking assembler for -mabi option... " >&6; }
24838 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24839 $as_echo_n "(cached) " >&6
24840 else
24841 gcc_cv_as_aarch64_mabi=no
24842 if test x$gcc_cv_as != x; then
24843 $as_echo '.text' > conftest.s
24844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24846 (eval $ac_try) 2>&5
24847 ac_status=$?
24848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24849 test $ac_status = 0; }; }
24850 then
24851 gcc_cv_as_aarch64_mabi=yes
24852 else
24853 echo "configure: failed program was" >&5
24854 cat conftest.s >&5
24855 fi
24856 rm -f conftest.o conftest.s
24857 fi
24858 fi
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24860 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24861
24862
24863 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24864
24865 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24866
24867 else
24868 if test x$with_abi = xilp32; then
24869 as_fn_error "Assembler does not support -mabi=ilp32.\
24870 Upgrade the Assembler." "$LINENO" 5
24871 fi
24872 if test x"$with_multilib_list" = xdefault; then
24873 TM_MULTILIB_CONFIG=lp64
24874 else
24875 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24876 for aarch64_multilib in ${aarch64_multilibs}; do
24877 case ${aarch64_multilib} in
24878 ilp32)
24879 as_fn_error "Assembler does not support -mabi=ilp32.\
24880 Upgrade the Assembler." "$LINENO" 5
24881 ;;
24882 *)
24883 ;;
24884 esac
24885 done
24886 fi
24887 fi
24888 # Check if we have binutils support for relocations types needed by -fpic
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24890 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24891 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24892 $as_echo_n "(cached) " >&6
24893 else
24894 gcc_cv_as_aarch64_picreloc=no
24895 if test x$gcc_cv_as != x; then
24896 $as_echo '
24897 .text
24898 ldr x0, [x2, #:gotpage_lo15:globalsym]
24899 ' > conftest.s
24900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24902 (eval $ac_try) 2>&5
24903 ac_status=$?
24904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24905 test $ac_status = 0; }; }
24906 then
24907 gcc_cv_as_aarch64_picreloc=yes
24908 else
24909 echo "configure: failed program was" >&5
24910 cat conftest.s >&5
24911 fi
24912 rm -f conftest.o conftest.s
24913 fi
24914 fi
24915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24916 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24917 if test $gcc_cv_as_aarch64_picreloc = yes; then
24918
24919 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24920
24921 fi
24922
24923 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24924 # Check whether --enable-fix-cortex-a53-835769 was given.
24925 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24926 enableval=$enable_fix_cortex_a53_835769;
24927 case $enableval in
24928 yes)
24929 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24930 ;;
24931 no)
24932 ;;
24933 *)
24934 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24935 Valid choices are 'yes' and 'no'." "$LINENO" 5
24936 ;;
24937
24938 esac
24939
24940 fi
24941
24942 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24943 # Check whether --enable-fix-cortex-a53-843419 was given.
24944 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24945 enableval=$enable_fix_cortex_a53_843419;
24946 case $enableval in
24947 yes)
24948 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24949 ;;
24950 no)
24951 ;;
24952 *)
24953 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24954 Valid choices are 'yes' and 'no'." "$LINENO" 5
24955 ;;
24956
24957 esac
24958
24959 fi
24960
24961 ;;
24962
24963 # All TARGET_ABI_OSF targets.
24964 alpha*-*-linux* | alpha*-*-*bsd*)
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24966 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24967 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24968 $as_echo_n "(cached) " >&6
24969 else
24970 gcc_cv_as_alpha_explicit_relocs=no
24971 if test $in_tree_gas = yes; then
24972 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24973 then gcc_cv_as_alpha_explicit_relocs=yes
24974 fi
24975 elif test x$gcc_cv_as != x; then
24976 $as_echo ' .set nomacro
24977 .text
24978 extbl $3, $2, $3 !lituse_bytoff!1
24979 ldq $2, a($29) !literal!1
24980 ldq $4, b($29) !literal!2
24981 ldq_u $3, 0($2) !lituse_base!1
24982 ldq $27, f($29) !literal!5
24983 jsr $26, ($27), f !lituse_jsr!5
24984 ldah $29, 0($26) !gpdisp!3
24985 lda $0, c($29) !gprel
24986 ldah $1, d($29) !gprelhigh
24987 lda $1, d($1) !gprellow
24988 lda $29, 0($29) !gpdisp!3' > conftest.s
24989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24991 (eval $ac_try) 2>&5
24992 ac_status=$?
24993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24994 test $ac_status = 0; }; }
24995 then
24996 gcc_cv_as_alpha_explicit_relocs=yes
24997 else
24998 echo "configure: failed program was" >&5
24999 cat conftest.s >&5
25000 fi
25001 rm -f conftest.o conftest.s
25002 fi
25003 fi
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25005 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25006 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25007
25008 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25009
25010 fi
25011
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25013 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25014 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
25015 $as_echo_n "(cached) " >&6
25016 else
25017 gcc_cv_as_alpha_jsrdirect_relocs=no
25018 if test $in_tree_gas = yes; then
25019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25020 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25021 fi
25022 elif test x$gcc_cv_as != x; then
25023 $as_echo ' .set nomacro
25024 .text
25025 ldq $27, a($29) !literal!1
25026 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25027 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25029 (eval $ac_try) 2>&5
25030 ac_status=$?
25031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25032 test $ac_status = 0; }; }
25033 then
25034 gcc_cv_as_alpha_jsrdirect_relocs=yes
25035 else
25036 echo "configure: failed program was" >&5
25037 cat conftest.s >&5
25038 fi
25039 rm -f conftest.o conftest.s
25040 fi
25041 fi
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25043 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25044 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25045
25046 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25047
25048 fi
25049
25050 ;;
25051
25052 avr-*-*)
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25054 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25055 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
25056 $as_echo_n "(cached) " >&6
25057 else
25058 gcc_cv_as_avr_mlink_relax=no
25059 if test x$gcc_cv_as != x; then
25060 $as_echo '.text' > conftest.s
25061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25063 (eval $ac_try) 2>&5
25064 ac_status=$?
25065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25066 test $ac_status = 0; }; }
25067 then
25068 gcc_cv_as_avr_mlink_relax=yes
25069 else
25070 echo "configure: failed program was" >&5
25071 cat conftest.s >&5
25072 fi
25073 rm -f conftest.o conftest.s
25074 fi
25075 fi
25076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25077 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25078 if test $gcc_cv_as_avr_mlink_relax = yes; then
25079
25080 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25081
25082 fi
25083
25084
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25086 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25087 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
25088 $as_echo_n "(cached) " >&6
25089 else
25090 gcc_cv_as_avr_mrmw=no
25091 if test x$gcc_cv_as != x; then
25092 $as_echo '.text' > conftest.s
25093 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25095 (eval $ac_try) 2>&5
25096 ac_status=$?
25097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25098 test $ac_status = 0; }; }
25099 then
25100 gcc_cv_as_avr_mrmw=yes
25101 else
25102 echo "configure: failed program was" >&5
25103 cat conftest.s >&5
25104 fi
25105 rm -f conftest.o conftest.s
25106 fi
25107 fi
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25109 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25110 if test $gcc_cv_as_avr_mrmw = yes; then
25111
25112 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25113
25114 fi
25115
25116
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25118 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25119 if test "${gcc_cv_as_avr_mgccisr+set}" = set; then :
25120 $as_echo_n "(cached) " >&6
25121 else
25122 gcc_cv_as_avr_mgccisr=no
25123 if test x$gcc_cv_as != x; then
25124 $as_echo '.text
25125 __gcc_isr 1
25126 __gcc_isr 2
25127 __gcc_isr 0,r24
25128 ' > conftest.s
25129 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25131 (eval $ac_try) 2>&5
25132 ac_status=$?
25133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25134 test $ac_status = 0; }; }
25135 then
25136 gcc_cv_as_avr_mgccisr=yes
25137 else
25138 echo "configure: failed program was" >&5
25139 cat conftest.s >&5
25140 fi
25141 rm -f conftest.o conftest.s
25142 fi
25143 fi
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25145 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25146 if test $gcc_cv_as_avr_mgccisr = yes; then
25147
25148 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25149
25150 fi
25151
25152
25153 # Check how default linker description file implements .rodata for
25154 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25155 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25157 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25158 cat > conftest.s <<EOF
25159 .section .rodata,"a",@progbits
25160 .global xxvaryy
25161 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25162 xxvaryy:
25163 .word 1
25164 EOF
25165 rm -f conftest.nm
25166 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25168 (eval $ac_try) 2>&5
25169 ac_status=$?
25170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25171 test $ac_status = 0; }; }
25172 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25174 (eval $ac_try) 2>&5
25175 ac_status=$?
25176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25177 test $ac_status = 0; }; }
25178 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25180 (eval $ac_try) 2>&5
25181 ac_status=$?
25182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25183 test $ac_status = 0; }; }
25184 if test -s conftest.nm
25185 then
25186 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25188 $as_echo "yes" >&6; }
25189
25190 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25191
25192 else
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25194 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25195 echo "$as_me: nm output was" >&5
25196 cat conftest.nm >&5
25197 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25198 { $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
25199 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25200 fi
25201 else
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25203 $as_echo "test failed" >&6; }
25204 echo "$as_me: failed program was" >&5
25205 cat conftest.s >&5
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25207 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25208 fi
25209 rm -f conftest.s conftest.o conftest.elf conftest.nm
25210 ;;
25211
25212 cris-*-*)
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25214 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25215 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
25216 $as_echo_n "(cached) " >&6
25217 else
25218 gcc_cv_as_cris_no_mul_bug=no
25219 if test $in_tree_gas = yes; then
25220 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25221 then gcc_cv_as_cris_no_mul_bug=yes
25222 fi
25223 elif test x$gcc_cv_as != x; then
25224 $as_echo '.text' > conftest.s
25225 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25227 (eval $ac_try) 2>&5
25228 ac_status=$?
25229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25230 test $ac_status = 0; }; }
25231 then
25232 gcc_cv_as_cris_no_mul_bug=yes
25233 else
25234 echo "configure: failed program was" >&5
25235 cat conftest.s >&5
25236 fi
25237 rm -f conftest.o conftest.s
25238 fi
25239 fi
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25241 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25242 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25243
25244 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25245
25246 fi
25247
25248 ;;
25249
25250 sparc*-*-*)
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
25252 $as_echo_n "checking assembler for .register... " >&6; }
25253 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
25254 $as_echo_n "(cached) " >&6
25255 else
25256 gcc_cv_as_sparc_register_op=no
25257 if test x$gcc_cv_as != x; then
25258 $as_echo '.register %g2, #scratch' > conftest.s
25259 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25261 (eval $ac_try) 2>&5
25262 ac_status=$?
25263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25264 test $ac_status = 0; }; }
25265 then
25266 gcc_cv_as_sparc_register_op=yes
25267 else
25268 echo "configure: failed program was" >&5
25269 cat conftest.s >&5
25270 fi
25271 rm -f conftest.o conftest.s
25272 fi
25273 fi
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
25275 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
25276 if test $gcc_cv_as_sparc_register_op = yes; then
25277
25278 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
25279
25280 fi
25281
25282
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25284 $as_echo_n "checking assembler for -relax option... " >&6; }
25285 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
25286 $as_echo_n "(cached) " >&6
25287 else
25288 gcc_cv_as_sparc_relax=no
25289 if test x$gcc_cv_as != x; then
25290 $as_echo '.text' > conftest.s
25291 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25293 (eval $ac_try) 2>&5
25294 ac_status=$?
25295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25296 test $ac_status = 0; }; }
25297 then
25298 gcc_cv_as_sparc_relax=yes
25299 else
25300 echo "configure: failed program was" >&5
25301 cat conftest.s >&5
25302 fi
25303 rm -f conftest.o conftest.s
25304 fi
25305 fi
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25307 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25308 if test $gcc_cv_as_sparc_relax = yes; then
25309
25310 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25311
25312 fi
25313
25314
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25316 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25317 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
25318 $as_echo_n "(cached) " >&6
25319 else
25320 gcc_cv_as_sparc_gotdata_op=no
25321 if test x$gcc_cv_as != x; then
25322 $as_echo '.text
25323 .align 4
25324 foo:
25325 nop
25326 bar:
25327 sethi %gdop_hix22(foo), %g1
25328 xor %g1, %gdop_lox10(foo), %g1
25329 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25330 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25332 (eval $ac_try) 2>&5
25333 ac_status=$?
25334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25335 test $ac_status = 0; }; }
25336 then
25337 if test x$gcc_cv_ld != x \
25338 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25339 if test x$gcc_cv_objdump != x; then
25340 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25341 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25342 gcc_cv_as_sparc_gotdata_op=no
25343 else
25344 gcc_cv_as_sparc_gotdata_op=yes
25345 fi
25346 fi
25347 fi
25348 rm -f conftest
25349 else
25350 echo "configure: failed program was" >&5
25351 cat conftest.s >&5
25352 fi
25353 rm -f conftest.o conftest.s
25354 fi
25355 fi
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25357 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25358 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25359
25360 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25361
25362 fi
25363
25364
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25366 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25367 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
25368 $as_echo_n "(cached) " >&6
25369 else
25370 gcc_cv_as_sparc_ua_pcrel=no
25371 if test x$gcc_cv_as != x; then
25372 $as_echo '.text
25373 foo:
25374 nop
25375 .data
25376 .align 4
25377 .byte 0
25378 .uaword %r_disp32(foo)' > conftest.s
25379 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25381 (eval $ac_try) 2>&5
25382 ac_status=$?
25383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25384 test $ac_status = 0; }; }
25385 then
25386 if test x$gcc_cv_ld != x \
25387 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25388 gcc_cv_as_sparc_ua_pcrel=yes
25389 fi
25390 rm -f conftest
25391 else
25392 echo "configure: failed program was" >&5
25393 cat conftest.s >&5
25394 fi
25395 rm -f conftest.o conftest.s
25396 fi
25397 fi
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25399 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25400 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25401
25402 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25403
25404
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25406 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25407 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25408 $as_echo_n "(cached) " >&6
25409 else
25410 gcc_cv_as_sparc_ua_pcrel_hidden=no
25411 if test x$gcc_cv_as != x; then
25412 $as_echo '.data
25413 .align 4
25414 .byte 0x31
25415 .uaword %r_disp32(foo)
25416 .byte 0x32, 0x33, 0x34
25417 .global foo
25418 .hidden foo
25419 foo:
25420 .skip 4' > conftest.s
25421 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25423 (eval $ac_try) 2>&5
25424 ac_status=$?
25425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25426 test $ac_status = 0; }; }
25427 then
25428 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25429 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25430 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25431 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25432 if $gcc_cv_objdump -R conftest 2> /dev/null \
25433 | grep 'DISP32' > /dev/null 2>&1; then
25434 :
25435 else
25436 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25437 fi
25438 fi
25439 rm -f conftest
25440 else
25441 echo "configure: failed program was" >&5
25442 cat conftest.s >&5
25443 fi
25444 rm -f conftest.o conftest.s
25445 fi
25446 fi
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25448 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25449 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25450
25451 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25452
25453 fi
25454
25455
25456 fi
25457 # unaligned pcrel relocs
25458
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25460 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25461 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25462 $as_echo_n "(cached) " >&6
25463 else
25464 gcc_cv_as_sparc_offsetable_lo10=no
25465 if test x$gcc_cv_as != x; then
25466 $as_echo '.text
25467 or %g1, %lo(ab) + 12, %g1
25468 or %g1, %lo(ab + 12), %g1' > conftest.s
25469 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25471 (eval $ac_try) 2>&5
25472 ac_status=$?
25473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25474 test $ac_status = 0; }; }
25475 then
25476 if test x$gcc_cv_objdump != x \
25477 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25478 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25479 gcc_cv_as_sparc_offsetable_lo10=yes
25480 fi
25481 else
25482 echo "configure: failed program was" >&5
25483 cat conftest.s >&5
25484 fi
25485 rm -f conftest.o conftest.s
25486 fi
25487 fi
25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25489 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25490 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25491
25492 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25493
25494 fi
25495
25496
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25498 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25499 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25500 $as_echo_n "(cached) " >&6
25501 else
25502 gcc_cv_as_sparc_fmaf=no
25503 if test x$gcc_cv_as != x; then
25504 $as_echo '.text
25505 .register %g2, #scratch
25506 .register %g3, #scratch
25507 .align 4
25508 fmaddd %f0, %f2, %f4, %f6
25509 addxccc %g1, %g2, %g3
25510 fsrl32 %f2, %f4, %f8
25511 fnaddd %f10, %f12, %f14' > conftest.s
25512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25514 (eval $ac_try) 2>&5
25515 ac_status=$?
25516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25517 test $ac_status = 0; }; }
25518 then
25519 gcc_cv_as_sparc_fmaf=yes
25520 else
25521 echo "configure: failed program was" >&5
25522 cat conftest.s >&5
25523 fi
25524 rm -f conftest.o conftest.s
25525 fi
25526 fi
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25528 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25529 if test $gcc_cv_as_sparc_fmaf = yes; then
25530
25531 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25532
25533 fi
25534
25535
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25537 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25538 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25539 $as_echo_n "(cached) " >&6
25540 else
25541 gcc_cv_as_sparc_sparc4=no
25542 if test x$gcc_cv_as != x; then
25543 $as_echo '.text
25544 .register %g2, #scratch
25545 .register %g3, #scratch
25546 .align 4
25547 cxbe %g2, %g3, 1f
25548 1: cwbneg %g2, %g3, 1f
25549 1: sha1
25550 md5
25551 aes_kexpand0 %f4, %f6, %f8
25552 des_round %f38, %f40, %f42, %f44
25553 camellia_f %f54, %f56, %f58, %f60
25554 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25555 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25557 (eval $ac_try) 2>&5
25558 ac_status=$?
25559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25560 test $ac_status = 0; }; }
25561 then
25562 gcc_cv_as_sparc_sparc4=yes
25563 else
25564 echo "configure: failed program was" >&5
25565 cat conftest.s >&5
25566 fi
25567 rm -f conftest.o conftest.s
25568 fi
25569 fi
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25571 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25572 if test $gcc_cv_as_sparc_sparc4 = yes; then
25573
25574 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25575
25576 fi
25577
25578
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25580 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25581 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25582 $as_echo_n "(cached) " >&6
25583 else
25584 gcc_cv_as_sparc_sparc5=no
25585 if test x$gcc_cv_as != x; then
25586 $as_echo '.text
25587 .register %g2, #scratch
25588 .register %g3, #scratch
25589 .align 4
25590 subxc %g1, %g2, %g3
25591 fpadd8 %f0, %f2, %f4' > conftest.s
25592 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25594 (eval $ac_try) 2>&5
25595 ac_status=$?
25596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25597 test $ac_status = 0; }; }
25598 then
25599 gcc_cv_as_sparc_sparc5=yes
25600 else
25601 echo "configure: failed program was" >&5
25602 cat conftest.s >&5
25603 fi
25604 rm -f conftest.o conftest.s
25605 fi
25606 fi
25607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25608 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25609 if test $gcc_cv_as_sparc_sparc5 = yes; then
25610
25611 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25612
25613 fi
25614
25615
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25617 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25618 if test "${gcc_cv_as_sparc_sparc6+set}" = set; then :
25619 $as_echo_n "(cached) " >&6
25620 else
25621 gcc_cv_as_sparc_sparc6=no
25622 if test x$gcc_cv_as != x; then
25623 $as_echo '.text
25624 .register %g2, #scratch
25625 .register %g3, #scratch
25626 .align 4
25627 rd %entropy, %g1
25628 fpsll64x %f0, %f2, %f4' > conftest.s
25629 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25631 (eval $ac_try) 2>&5
25632 ac_status=$?
25633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25634 test $ac_status = 0; }; }
25635 then
25636 gcc_cv_as_sparc_sparc6=yes
25637 else
25638 echo "configure: failed program was" >&5
25639 cat conftest.s >&5
25640 fi
25641 rm -f conftest.o conftest.s
25642 fi
25643 fi
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25645 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25646 if test $gcc_cv_as_sparc_sparc6 = yes; then
25647
25648 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25649
25650 fi
25651
25652
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25654 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25655 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25656 $as_echo_n "(cached) " >&6
25657 else
25658 gcc_cv_as_sparc_leon=no
25659 if test x$gcc_cv_as != x; then
25660 $as_echo '.text
25661 .register %g2, #scratch
25662 .register %g3, #scratch
25663 .align 4
25664 smac %g2, %g3, %g1
25665 umac %g2, %g3, %g1
25666 casa [%g2] 0xb, %g3, %g1' > conftest.s
25667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25669 (eval $ac_try) 2>&5
25670 ac_status=$?
25671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25672 test $ac_status = 0; }; }
25673 then
25674 gcc_cv_as_sparc_leon=yes
25675 else
25676 echo "configure: failed program was" >&5
25677 cat conftest.s >&5
25678 fi
25679 rm -f conftest.o conftest.s
25680 fi
25681 fi
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25683 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25684 if test $gcc_cv_as_sparc_leon = yes; then
25685
25686 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25687
25688 fi
25689
25690 ;;
25691
25692 i[34567]86-*-* | x86_64-*-*)
25693 case $target_os in
25694 cygwin*)
25695 # Full C++ conformance when using a shared libstdc++-v3 requires some
25696 # support from the Cygwin DLL, which in more recent versions exports
25697 # wrappers to aid in interposing and redirecting operators new, delete,
25698 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25699 # are configuring for a version of Cygwin that exports the wrappers.
25700 if test x$host = x$target && test x$host_cpu = xi686; then
25701 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25702 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25703 gcc_ac_cygwin_dll_wrappers=yes
25704 else
25705 gcc_ac_cygwin_dll_wrappers=no
25706 fi
25707
25708 else
25709 # Can't check presence of libc functions during cross-compile, so
25710 # we just have to assume we're building for an up-to-date target.
25711 gcc_ac_cygwin_dll_wrappers=yes
25712 fi
25713
25714 cat >>confdefs.h <<_ACEOF
25715 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25716 _ACEOF
25717
25718 esac
25719 case $target_os in
25720 cygwin* | pe | mingw32*)
25721 # Recent binutils allows the three-operand form of ".comm" on PE. This
25722 # definition is used unconditionally to initialise the default state of
25723 # the target option variable that governs usage of the feature.
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25725 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25726 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25727 $as_echo_n "(cached) " >&6
25728 else
25729 gcc_cv_as_comm_has_align=no
25730 if test $in_tree_gas = yes; then
25731 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25732 then gcc_cv_as_comm_has_align=yes
25733 fi
25734 elif test x$gcc_cv_as != x; then
25735 $as_echo '.comm foo,1,32' > conftest.s
25736 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25738 (eval $ac_try) 2>&5
25739 ac_status=$?
25740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25741 test $ac_status = 0; }; }
25742 then
25743 gcc_cv_as_comm_has_align=yes
25744 else
25745 echo "configure: failed program was" >&5
25746 cat conftest.s >&5
25747 fi
25748 rm -f conftest.o conftest.s
25749 fi
25750 fi
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25752 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25753
25754
25755
25756 cat >>confdefs.h <<_ACEOF
25757 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25758 _ACEOF
25759
25760 # Used for DWARF 2 in PE
25761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25762 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25763 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25764 $as_echo_n "(cached) " >&6
25765 else
25766 gcc_cv_as_ix86_pe_secrel32=no
25767 if test $in_tree_gas = yes; then
25768 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25769 then gcc_cv_as_ix86_pe_secrel32=yes
25770 fi
25771 elif test x$gcc_cv_as != x; then
25772 $as_echo '.text
25773 foo: nop
25774 .data
25775 .secrel32 foo' > conftest.s
25776 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25778 (eval $ac_try) 2>&5
25779 ac_status=$?
25780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25781 test $ac_status = 0; }; }
25782 then
25783 if test x$gcc_cv_ld != x \
25784 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25785 gcc_cv_as_ix86_pe_secrel32=yes
25786 fi
25787 rm -f conftest
25788 else
25789 echo "configure: failed program was" >&5
25790 cat conftest.s >&5
25791 fi
25792 rm -f conftest.o conftest.s
25793 fi
25794 fi
25795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25796 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25797 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25798
25799 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25800
25801 fi
25802
25803 # Test if the assembler supports the extended form of the .section
25804 # directive that specifies section alignment. LTO support uses this,
25805 # but normally only after installation, so we warn but don't fail the
25806 # configure if LTO is enabled but the assembler does not support it.
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25808 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25809 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25810 $as_echo_n "(cached) " >&6
25811 else
25812 gcc_cv_as_section_has_align=no
25813 if test $in_tree_gas = yes; then
25814 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25815 then gcc_cv_as_section_has_align=yes
25816 fi
25817 elif test x$gcc_cv_as != x; then
25818 $as_echo '.section lto_test,"dr0"' > conftest.s
25819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25821 (eval $ac_try) 2>&5
25822 ac_status=$?
25823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25824 test $ac_status = 0; }; }
25825 then
25826 gcc_cv_as_section_has_align=yes
25827 else
25828 echo "configure: failed program was" >&5
25829 cat conftest.s >&5
25830 fi
25831 rm -f conftest.o conftest.s
25832 fi
25833 fi
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25835 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25836
25837
25838 if test x$gcc_cv_as_section_has_align != xyes; then
25839 case ",$enable_languages," in
25840 *,lto,*)
25841 { $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
25842 $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;}
25843 ;;
25844 esac
25845 fi
25846 ;;
25847 esac
25848
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25850 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25851 if test "${gcc_cv_as_ix86_xbrace_comment+set}" = set; then :
25852 $as_echo_n "(cached) " >&6
25853 else
25854 gcc_cv_as_ix86_xbrace_comment=no
25855 if test x$gcc_cv_as != x; then
25856 $as_echo '.text' > conftest.s
25857 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
25858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25859 (eval $ac_try) 2>&5
25860 ac_status=$?
25861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25862 test $ac_status = 0; }; }
25863 then
25864 gcc_cv_as_ix86_xbrace_comment=yes
25865 else
25866 echo "configure: failed program was" >&5
25867 cat conftest.s >&5
25868 fi
25869 rm -f conftest.o conftest.s
25870 fi
25871 fi
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
25873 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25874 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25875
25876 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25877
25878 fi
25879
25880
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25882 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25883 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25884 $as_echo_n "(cached) " >&6
25885 else
25886 gcc_cv_as_ix86_filds=no
25887 if test x$gcc_cv_as != x; then
25888 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25891 (eval $ac_try) 2>&5
25892 ac_status=$?
25893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25894 test $ac_status = 0; }; }
25895 then
25896 gcc_cv_as_ix86_filds=yes
25897 else
25898 echo "configure: failed program was" >&5
25899 cat conftest.s >&5
25900 fi
25901 rm -f conftest.o conftest.s
25902 fi
25903 fi
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25905 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25906 if test $gcc_cv_as_ix86_filds = yes; then
25907
25908 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25909
25910 fi
25911
25912
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25914 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25915 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25916 $as_echo_n "(cached) " >&6
25917 else
25918 gcc_cv_as_ix86_fildq=no
25919 if test x$gcc_cv_as != x; then
25920 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25923 (eval $ac_try) 2>&5
25924 ac_status=$?
25925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25926 test $ac_status = 0; }; }
25927 then
25928 gcc_cv_as_ix86_fildq=yes
25929 else
25930 echo "configure: failed program was" >&5
25931 cat conftest.s >&5
25932 fi
25933 rm -f conftest.o conftest.s
25934 fi
25935 fi
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25937 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25938 if test $gcc_cv_as_ix86_fildq = yes; then
25939
25940 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25941
25942 fi
25943
25944
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25946 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25947 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25948 $as_echo_n "(cached) " >&6
25949 else
25950 gcc_cv_as_ix86_cmov_sun_syntax=no
25951 if test x$gcc_cv_as != x; then
25952 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25955 (eval $ac_try) 2>&5
25956 ac_status=$?
25957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25958 test $ac_status = 0; }; }
25959 then
25960 gcc_cv_as_ix86_cmov_sun_syntax=yes
25961 else
25962 echo "configure: failed program was" >&5
25963 cat conftest.s >&5
25964 fi
25965 rm -f conftest.o conftest.s
25966 fi
25967 fi
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25969 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25970 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25971
25972 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25973
25974 fi
25975
25976
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25978 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25979 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25980 $as_echo_n "(cached) " >&6
25981 else
25982 gcc_cv_as_ix86_ffreep=no
25983 if test x$gcc_cv_as != x; then
25984 $as_echo 'ffreep %st(1)' > conftest.s
25985 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25987 (eval $ac_try) 2>&5
25988 ac_status=$?
25989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25990 test $ac_status = 0; }; }
25991 then
25992 gcc_cv_as_ix86_ffreep=yes
25993 else
25994 echo "configure: failed program was" >&5
25995 cat conftest.s >&5
25996 fi
25997 rm -f conftest.o conftest.s
25998 fi
25999 fi
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26001 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26002 if test $gcc_cv_as_ix86_ffreep = yes; then
26003
26004 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26005
26006 fi
26007
26008
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26010 $as_echo_n "checking assembler for .quad directive... " >&6; }
26011 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
26012 $as_echo_n "(cached) " >&6
26013 else
26014 gcc_cv_as_ix86_quad=no
26015 if test x$gcc_cv_as != x; then
26016 $as_echo '.quad 0' > conftest.s
26017 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26019 (eval $ac_try) 2>&5
26020 ac_status=$?
26021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26022 test $ac_status = 0; }; }
26023 then
26024 gcc_cv_as_ix86_quad=yes
26025 else
26026 echo "configure: failed program was" >&5
26027 cat conftest.s >&5
26028 fi
26029 rm -f conftest.o conftest.s
26030 fi
26031 fi
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26033 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26034 if test $gcc_cv_as_ix86_quad = yes; then
26035
26036 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26037
26038 fi
26039
26040
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26042 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26043 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
26044 $as_echo_n "(cached) " >&6
26045 else
26046 gcc_cv_as_ix86_sahf=no
26047 if test x$gcc_cv_as != x; then
26048 $as_echo '.code64
26049 sahf' > conftest.s
26050 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26052 (eval $ac_try) 2>&5
26053 ac_status=$?
26054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26055 test $ac_status = 0; }; }
26056 then
26057 gcc_cv_as_ix86_sahf=yes
26058 else
26059 echo "configure: failed program was" >&5
26060 cat conftest.s >&5
26061 fi
26062 rm -f conftest.o conftest.s
26063 fi
26064 fi
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26066 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26067 if test $gcc_cv_as_ix86_sahf = yes; then
26068
26069 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26070
26071 fi
26072
26073
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26075 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26076 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
26077 $as_echo_n "(cached) " >&6
26078 else
26079 gcc_cv_as_ix86_interunit_movq=no
26080 if test x$gcc_cv_as != x; then
26081 $as_echo '.code64
26082 movq %mm0, %rax
26083 movq %rax, %xmm0' > conftest.s
26084 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26086 (eval $ac_try) 2>&5
26087 ac_status=$?
26088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26089 test $ac_status = 0; }; }
26090 then
26091 gcc_cv_as_ix86_interunit_movq=yes
26092 else
26093 echo "configure: failed program was" >&5
26094 cat conftest.s >&5
26095 fi
26096 rm -f conftest.o conftest.s
26097 fi
26098 fi
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26100 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26101
26102
26103
26104 cat >>confdefs.h <<_ACEOF
26105 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26106 _ACEOF
26107
26108
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26110 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26111 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
26112 $as_echo_n "(cached) " >&6
26113 else
26114 gcc_cv_as_ix86_hle=no
26115 if test x$gcc_cv_as != x; then
26116 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26119 (eval $ac_try) 2>&5
26120 ac_status=$?
26121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26122 test $ac_status = 0; }; }
26123 then
26124 gcc_cv_as_ix86_hle=yes
26125 else
26126 echo "configure: failed program was" >&5
26127 cat conftest.s >&5
26128 fi
26129 rm -f conftest.o conftest.s
26130 fi
26131 fi
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26133 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26134 if test $gcc_cv_as_ix86_hle = yes; then
26135
26136 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26137
26138 fi
26139
26140
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26142 $as_echo_n "checking assembler for swap suffix... " >&6; }
26143 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
26144 $as_echo_n "(cached) " >&6
26145 else
26146 gcc_cv_as_ix86_swap=no
26147 if test x$gcc_cv_as != x; then
26148 $as_echo 'movl.s %esp, %ebp' > conftest.s
26149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26151 (eval $ac_try) 2>&5
26152 ac_status=$?
26153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26154 test $ac_status = 0; }; }
26155 then
26156 gcc_cv_as_ix86_swap=yes
26157 else
26158 echo "configure: failed program was" >&5
26159 cat conftest.s >&5
26160 fi
26161 rm -f conftest.o conftest.s
26162 fi
26163 fi
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26165 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26166 if test $gcc_cv_as_ix86_swap = yes; then
26167
26168 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26169
26170 fi
26171
26172
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26174 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26175 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
26176 $as_echo_n "(cached) " >&6
26177 else
26178 gcc_cv_as_ix86_diff_sect_delta=no
26179 if test x$gcc_cv_as != x; then
26180 $as_echo '.section .rodata
26181 .L1:
26182 .long .L2-.L1
26183 .long .L3-.L1
26184 .text
26185 .L3: nop
26186 .L2: nop' > conftest.s
26187 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26189 (eval $ac_try) 2>&5
26190 ac_status=$?
26191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26192 test $ac_status = 0; }; }
26193 then
26194 gcc_cv_as_ix86_diff_sect_delta=yes
26195 else
26196 echo "configure: failed program was" >&5
26197 cat conftest.s >&5
26198 fi
26199 rm -f conftest.o conftest.s
26200 fi
26201 fi
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26203 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26204 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26205
26206 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26207
26208 fi
26209
26210
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26212 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26213 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
26214 $as_echo_n "(cached) " >&6
26215 else
26216 gcc_cv_as_ix86_rep_lock_prefix=no
26217 if test x$gcc_cv_as != x; then
26218 $as_echo 'rep movsl
26219 rep ret
26220 rep nop
26221 rep bsf %ecx, %eax
26222 rep bsr %ecx, %eax
26223 lock addl %edi, (%eax,%esi)
26224 lock orl $0, (%esp)' > conftest.s
26225 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26227 (eval $ac_try) 2>&5
26228 ac_status=$?
26229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26230 test $ac_status = 0; }; }
26231 then
26232 gcc_cv_as_ix86_rep_lock_prefix=yes
26233 else
26234 echo "configure: failed program was" >&5
26235 cat conftest.s >&5
26236 fi
26237 rm -f conftest.o conftest.s
26238 fi
26239 fi
26240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26241 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26242 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26243
26244 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26245
26246 fi
26247
26248
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26250 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26251 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
26252 $as_echo_n "(cached) " >&6
26253 else
26254 gcc_cv_as_ix86_ud2=no
26255 if test x$gcc_cv_as != x; then
26256 $as_echo 'ud2' > conftest.s
26257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26259 (eval $ac_try) 2>&5
26260 ac_status=$?
26261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26262 test $ac_status = 0; }; }
26263 then
26264 gcc_cv_as_ix86_ud2=yes
26265 else
26266 echo "configure: failed program was" >&5
26267 cat conftest.s >&5
26268 fi
26269 rm -f conftest.o conftest.s
26270 fi
26271 fi
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26273 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26274 if test $gcc_cv_as_ix86_ud2 = yes; then
26275
26276 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26277
26278 fi
26279
26280
26281 # Enforce 32-bit output with gas and gld.
26282 if test x$gas = xyes; then
26283 as_ix86_gas_32_opt="--32"
26284 fi
26285 if echo "$ld_ver" | grep GNU > /dev/null; then
26286 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26287 ld_ix86_gld_32_opt="-melf_i386_sol2"
26288 else
26289 ld_ix86_gld_32_opt="-melf_i386"
26290 fi
26291 fi
26292
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26294 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26295 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
26296 $as_echo_n "(cached) " >&6
26297 else
26298 gcc_cv_as_ix86_tlsgdplt=no
26299 if test x$gcc_cv_as != x; then
26300 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26303 (eval $ac_try) 2>&5
26304 ac_status=$?
26305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26306 test $ac_status = 0; }; }
26307 then
26308 if test x$gcc_cv_ld != x \
26309 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26310 gcc_cv_as_ix86_tlsgdplt=yes
26311 fi
26312 rm -f conftest
26313 else
26314 echo "configure: failed program was" >&5
26315 cat conftest.s >&5
26316 fi
26317 rm -f conftest.o conftest.s
26318 fi
26319 fi
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26321 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26322 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26323
26324 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26325
26326 fi
26327
26328
26329 conftest_s='
26330 .section .tdata,"aw'$tls_section_flag'",@progbits
26331 tls_ld:
26332 .section .text,"ax",@progbits
26333 call tls_ld@tlsldmplt'
26334
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26336 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26337 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
26338 $as_echo_n "(cached) " >&6
26339 else
26340 gcc_cv_as_ix86_tlsldmplt=no
26341 if test x$gcc_cv_as != x; then
26342 $as_echo "$conftest_s" > conftest.s
26343 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26345 (eval $ac_try) 2>&5
26346 ac_status=$?
26347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26348 test $ac_status = 0; }; }
26349 then
26350 if test x$gcc_cv_ld != x \
26351 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26352 gcc_cv_as_ix86_tlsldmplt=yes
26353 fi
26354 rm -f conftest
26355 else
26356 echo "configure: failed program was" >&5
26357 cat conftest.s >&5
26358 fi
26359 rm -f conftest.o conftest.s
26360 fi
26361 fi
26362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26363 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26364
26365
26366
26367 cat >>confdefs.h <<_ACEOF
26368 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26369 _ACEOF
26370
26371
26372 conftest_s='
26373 .section .text,"ax",@progbits
26374 .globl _start
26375 .type _start, @function
26376 _start:
26377 leal value@tlsldm(%ebx), %eax
26378 call ___tls_get_addr@plt
26379
26380 .section .tdata,"aw'$tls_section_flag'",@progbits
26381 .type value, @object
26382 value:'
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26384 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26385 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
26386 $as_echo_n "(cached) " >&6
26387 else
26388 gcc_cv_as_ix86_tlsldm=no
26389 if test x$gcc_cv_as != x; then
26390 $as_echo "$conftest_s" > conftest.s
26391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26393 (eval $ac_try) 2>&5
26394 ac_status=$?
26395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26396 test $ac_status = 0; }; }
26397 then
26398 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26399 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26400 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26401 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26402 gcc_cv_as_ix86_tlsldm=yes
26403 fi
26404 fi
26405 rm -f conftest
26406 else
26407 echo "configure: failed program was" >&5
26408 cat conftest.s >&5
26409 fi
26410 rm -f conftest.o conftest.s
26411 fi
26412 fi
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26414 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26415
26416
26417
26418 cat >>confdefs.h <<_ACEOF
26419 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26420 _ACEOF
26421
26422
26423 conftest_s='
26424 .data
26425 bar:
26426 .byte 1
26427 .text
26428 .global _start
26429 _start:
26430 cmpl $0, bar@GOT
26431 jmp *_start@GOT'
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26433 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26434 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26435 $as_echo_n "(cached) " >&6
26436 else
26437 gcc_cv_as_ix86_got32x=no
26438 if test x$gcc_cv_as != x; then
26439 $as_echo "$conftest_s" > conftest.s
26440 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26442 (eval $ac_try) 2>&5
26443 ac_status=$?
26444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26445 test $ac_status = 0; }; }
26446 then
26447 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26448 && test x$gcc_cv_readelf != x \
26449 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26450 | grep R_386_GOT32X > /dev/null 2>&1 \
26451 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26452 if $gcc_cv_objdump -dw conftest 2>&1 \
26453 | grep 0xffffff > /dev/null 2>&1; then
26454 gcc_cv_as_ix86_got32x=no
26455 else
26456 gcc_cv_as_ix86_got32x=yes
26457 fi
26458 fi
26459 rm -f conftest
26460 else
26461 echo "configure: failed program was" >&5
26462 cat conftest.s >&5
26463 fi
26464 rm -f conftest.o conftest.s
26465 fi
26466 fi
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26468 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26469
26470
26471
26472 cat >>confdefs.h <<_ACEOF
26473 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26474 _ACEOF
26475
26476
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26478 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26479 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26480 $as_echo_n "(cached) " >&6
26481 else
26482 gcc_cv_as_ix86_gotoff_in_data=no
26483 if test $in_tree_gas = yes; then
26484 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26485 then gcc_cv_as_ix86_gotoff_in_data=yes
26486 fi
26487 elif test x$gcc_cv_as != x; then
26488 $as_echo ' .text
26489 .L0:
26490 nop
26491 .data
26492 .long .L0@GOTOFF' > conftest.s
26493 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26495 (eval $ac_try) 2>&5
26496 ac_status=$?
26497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26498 test $ac_status = 0; }; }
26499 then
26500 gcc_cv_as_ix86_gotoff_in_data=yes
26501 else
26502 echo "configure: failed program was" >&5
26503 cat conftest.s >&5
26504 fi
26505 rm -f conftest.o conftest.s
26506 fi
26507 fi
26508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26509 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26510
26511
26512
26513 cat >>confdefs.h <<_ACEOF
26514 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26515 _ACEOF
26516
26517
26518 conftest_s='
26519 .section .text,"ax",@progbits
26520 .globl _start
26521 .type _start, @function
26522 _start:
26523 leal ld@tlsldm(%ecx), %eax
26524 call *___tls_get_addr@GOT(%ecx)
26525 leal gd@tlsgd(%ecx), %eax
26526 call *___tls_get_addr@GOT(%ecx)
26527
26528 .section .tdata,"aw'$tls_section_flag'",@progbits
26529 .type ld, @object
26530 ld:
26531 .byte 0
26532 .globl gd
26533 .type gd, @object
26534 gd:
26535 .byte 0'
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26537 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26538 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26539 $as_echo_n "(cached) " >&6
26540 else
26541 gcc_cv_as_ix86_tls_get_addr_via_got=no
26542 if test x$gcc_cv_as != x; then
26543 $as_echo "$conftest_s" > conftest.s
26544 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26546 (eval $ac_try) 2>&5
26547 ac_status=$?
26548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26549 test $ac_status = 0; }; }
26550 then
26551 if test x$gcc_cv_ld != x \
26552 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26553 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26554 fi
26555 rm -f conftest
26556 else
26557 echo "configure: failed program was" >&5
26558 cat conftest.s >&5
26559 fi
26560 rm -f conftest.o conftest.s
26561 fi
26562 fi
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26564 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26565
26566
26567
26568 cat >>confdefs.h <<_ACEOF
26569 #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`
26570 _ACEOF
26571
26572 ;;
26573
26574 ia64*-*-*)
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26576 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26577 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26578 $as_echo_n "(cached) " >&6
26579 else
26580 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26581 if test $in_tree_gas = yes; then
26582 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26583 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26584 fi
26585 elif test x$gcc_cv_as != x; then
26586 $as_echo ' .text
26587 addl r15 = @ltoffx(x#), gp
26588 ;;
26589 ld8.mov r16 = [r15], x#' > conftest.s
26590 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26592 (eval $ac_try) 2>&5
26593 ac_status=$?
26594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26595 test $ac_status = 0; }; }
26596 then
26597 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26598 else
26599 echo "configure: failed program was" >&5
26600 cat conftest.s >&5
26601 fi
26602 rm -f conftest.o conftest.s
26603 fi
26604 fi
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26606 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26607 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26608
26609 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26610
26611 fi
26612
26613
26614 ;;
26615
26616 powerpc*-*-*)
26617
26618 case $target in
26619 *-*-darwin*)
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26621 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26622 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26623 $as_echo_n "(cached) " >&6
26624 else
26625 gcc_cv_as_machine_directive=no
26626 if test x$gcc_cv_as != x; then
26627 $as_echo ' .machine ppc7400' > conftest.s
26628 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26630 (eval $ac_try) 2>&5
26631 ac_status=$?
26632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26633 test $ac_status = 0; }; }
26634 then
26635 gcc_cv_as_machine_directive=yes
26636 else
26637 echo "configure: failed program was" >&5
26638 cat conftest.s >&5
26639 fi
26640 rm -f conftest.o conftest.s
26641 fi
26642 fi
26643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26644 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26645
26646
26647 if test x$gcc_cv_as_machine_directive != xyes; then
26648 echo "*** This target requires an assembler supporting \".machine\"" >&2
26649 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26650 test x$build = x$target && exit 1
26651 fi
26652 ;;
26653 esac
26654
26655 case $target in
26656 *-*-aix*) conftest_s=' .machine "pwr5"
26657 .csect .text[PR]
26658 mfcr 3,128';;
26659 *-*-darwin*) conftest_s=' .text
26660 mfcr r3,128';;
26661 *) conftest_s=' .machine power4
26662 .text
26663 mfcr 3,128';;
26664 esac
26665
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26667 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26668 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26669 $as_echo_n "(cached) " >&6
26670 else
26671 gcc_cv_as_powerpc_mfcrf=no
26672 if test $in_tree_gas = yes; then
26673 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26674 then gcc_cv_as_powerpc_mfcrf=yes
26675 fi
26676 elif test x$gcc_cv_as != x; then
26677 $as_echo "$conftest_s" > conftest.s
26678 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26680 (eval $ac_try) 2>&5
26681 ac_status=$?
26682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26683 test $ac_status = 0; }; }
26684 then
26685 gcc_cv_as_powerpc_mfcrf=yes
26686 else
26687 echo "configure: failed program was" >&5
26688 cat conftest.s >&5
26689 fi
26690 rm -f conftest.o conftest.s
26691 fi
26692 fi
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26694 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26695 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26696
26697 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26698
26699 fi
26700
26701
26702 case $target in
26703 *-*-aix*) conftest_s=' .csect .text[PR]
26704 LCF..0:
26705 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26706 *-*-darwin*)
26707 conftest_s=' .text
26708 LCF0:
26709 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26710 *) conftest_s=' .text
26711 .LCF0:
26712 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26713 esac
26714
26715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26716 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26717 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26718 $as_echo_n "(cached) " >&6
26719 else
26720 gcc_cv_as_powerpc_rel16=no
26721 if test $in_tree_gas = yes; then
26722 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26723 then gcc_cv_as_powerpc_rel16=yes
26724 fi
26725 elif test x$gcc_cv_as != x; then
26726 $as_echo "$conftest_s" > conftest.s
26727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26729 (eval $ac_try) 2>&5
26730 ac_status=$?
26731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26732 test $ac_status = 0; }; }
26733 then
26734 gcc_cv_as_powerpc_rel16=yes
26735 else
26736 echo "configure: failed program was" >&5
26737 cat conftest.s >&5
26738 fi
26739 rm -f conftest.o conftest.s
26740 fi
26741 fi
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26743 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26744 if test $gcc_cv_as_powerpc_rel16 = yes; then
26745
26746 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26747
26748 fi
26749
26750
26751 case $target in
26752 *-*-aix*) conftest_s=' .machine "pwr7"
26753 .csect .text[PR]
26754 lxvd2x 1,2,3';;
26755 *) conftest_s=' .machine power7
26756 .text
26757 lxvd2x 1,2,3';;
26758 esac
26759
26760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26761 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26762 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26763 $as_echo_n "(cached) " >&6
26764 else
26765 gcc_cv_as_powerpc_vsx=no
26766 if test $in_tree_gas = yes; then
26767 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26768 then gcc_cv_as_powerpc_vsx=yes
26769 fi
26770 elif test x$gcc_cv_as != x; then
26771 $as_echo "$conftest_s" > conftest.s
26772 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26774 (eval $ac_try) 2>&5
26775 ac_status=$?
26776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26777 test $ac_status = 0; }; }
26778 then
26779 gcc_cv_as_powerpc_vsx=yes
26780 else
26781 echo "configure: failed program was" >&5
26782 cat conftest.s >&5
26783 fi
26784 rm -f conftest.o conftest.s
26785 fi
26786 fi
26787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26788 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26789 if test $gcc_cv_as_powerpc_vsx = yes; then
26790
26791 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26792
26793 fi
26794
26795
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26797 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26798 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26799 $as_echo_n "(cached) " >&6
26800 else
26801 gcc_cv_as_powerpc_gnu_attribute=no
26802 if test $in_tree_gas = yes; then
26803 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26804 then gcc_cv_as_powerpc_gnu_attribute=yes
26805 fi
26806 elif test x$gcc_cv_as != x; then
26807 $as_echo '.gnu_attribute 4,1' > conftest.s
26808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26810 (eval $ac_try) 2>&5
26811 ac_status=$?
26812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26813 test $ac_status = 0; }; }
26814 then
26815 gcc_cv_as_powerpc_gnu_attribute=yes
26816 else
26817 echo "configure: failed program was" >&5
26818 cat conftest.s >&5
26819 fi
26820 rm -f conftest.o conftest.s
26821 fi
26822 fi
26823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26824 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26825 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26826
26827 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26828
26829 fi
26830
26831
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26833 $as_echo_n "checking assembler for tls marker support... " >&6; }
26834 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26835 $as_echo_n "(cached) " >&6
26836 else
26837 gcc_cv_as_powerpc_tls_markers=no
26838 if test $in_tree_gas = yes; then
26839 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26840 then gcc_cv_as_powerpc_tls_markers=yes
26841 fi
26842 elif test x$gcc_cv_as != x; then
26843 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26846 (eval $ac_try) 2>&5
26847 ac_status=$?
26848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26849 test $ac_status = 0; }; }
26850 then
26851 gcc_cv_as_powerpc_tls_markers=yes
26852 else
26853 echo "configure: failed program was" >&5
26854 cat conftest.s >&5
26855 fi
26856 rm -f conftest.o conftest.s
26857 fi
26858 fi
26859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26860 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26861 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26862
26863 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26864
26865 fi
26866
26867
26868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26869 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26870 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26871 $as_echo_n "(cached) " >&6
26872 else
26873 gcc_cv_as_powerpc_entry_markers=no
26874 if test $in_tree_gas = yes; then
26875 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26876 then gcc_cv_as_powerpc_entry_markers=yes
26877 fi
26878 elif test x$gcc_cv_as != x; then
26879 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26882 (eval $ac_try) 2>&5
26883 ac_status=$?
26884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26885 test $ac_status = 0; }; }
26886 then
26887 gcc_cv_as_powerpc_entry_markers=yes
26888 else
26889 echo "configure: failed program was" >&5
26890 cat conftest.s >&5
26891 fi
26892 rm -f conftest.o conftest.s
26893 fi
26894 fi
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26896 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26897 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26898
26899 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26900
26901 fi
26902
26903
26904 case $target in
26905 *-*-aix*)
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26907 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26908 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26909 $as_echo_n "(cached) " >&6
26910 else
26911 gcc_cv_as_aix_ref=no
26912 if test $in_tree_gas = yes; then
26913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26914 then gcc_cv_as_aix_ref=yes
26915 fi
26916 elif test x$gcc_cv_as != x; then
26917 $as_echo ' .csect stuff[rw]
26918 stuff:
26919 .long 1
26920 .extern sym
26921 .ref sym
26922 ' > conftest.s
26923 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26925 (eval $ac_try) 2>&5
26926 ac_status=$?
26927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26928 test $ac_status = 0; }; }
26929 then
26930 gcc_cv_as_aix_ref=yes
26931 else
26932 echo "configure: failed program was" >&5
26933 cat conftest.s >&5
26934 fi
26935 rm -f conftest.o conftest.s
26936 fi
26937 fi
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26939 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26940 if test $gcc_cv_as_aix_ref = yes; then
26941
26942 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26943
26944 fi
26945
26946
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26948 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26949 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26950 $as_echo_n "(cached) " >&6
26951 else
26952 gcc_cv_as_aix_dwloc=no
26953 if test $in_tree_gas = yes; then
26954 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26955 then gcc_cv_as_aix_dwloc=yes
26956 fi
26957 elif test x$gcc_cv_as != x; then
26958 $as_echo ' .dwsect 0xA0000
26959 Lframe..0:
26960 .vbyte 4,Lframe..0
26961 ' > conftest.s
26962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26964 (eval $ac_try) 2>&5
26965 ac_status=$?
26966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26967 test $ac_status = 0; }; }
26968 then
26969 gcc_cv_as_aix_dwloc=yes
26970 else
26971 echo "configure: failed program was" >&5
26972 cat conftest.s >&5
26973 fi
26974 rm -f conftest.o conftest.s
26975 fi
26976 fi
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26978 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26979 if test $gcc_cv_as_aix_dwloc = yes; then
26980
26981 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26982
26983 fi
26984
26985 ;;
26986 esac
26987 ;;
26988
26989 mips*-*-*)
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26991 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26992 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26993 $as_echo_n "(cached) " >&6
26994 else
26995 gcc_cv_as_mips_explicit_relocs=no
26996 if test $in_tree_gas = yes; then
26997 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26998 then gcc_cv_as_mips_explicit_relocs=yes
26999 fi
27000 elif test x$gcc_cv_as != x; then
27001 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27002 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27004 (eval $ac_try) 2>&5
27005 ac_status=$?
27006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27007 test $ac_status = 0; }; }
27008 then
27009 gcc_cv_as_mips_explicit_relocs=yes
27010 else
27011 echo "configure: failed program was" >&5
27012 cat conftest.s >&5
27013 fi
27014 rm -f conftest.o conftest.s
27015 fi
27016 fi
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27018 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27019 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27020 if test x$target_cpu_default = x
27021 then target_cpu_default=MASK_EXPLICIT_RELOCS
27022 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27023 fi
27024 fi
27025
27026
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27028 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27029 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27030 $as_echo_n "(cached) " >&6
27031 else
27032 gcc_cv_as_mips_no_shared=no
27033 if test $in_tree_gas = yes; then
27034 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27035 then gcc_cv_as_mips_no_shared=yes
27036 fi
27037 elif test x$gcc_cv_as != x; then
27038 $as_echo 'nop' > conftest.s
27039 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27041 (eval $ac_try) 2>&5
27042 ac_status=$?
27043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27044 test $ac_status = 0; }; }
27045 then
27046 gcc_cv_as_mips_no_shared=yes
27047 else
27048 echo "configure: failed program was" >&5
27049 cat conftest.s >&5
27050 fi
27051 rm -f conftest.o conftest.s
27052 fi
27053 fi
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27055 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27056 if test $gcc_cv_as_mips_no_shared = yes; then
27057
27058 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27059
27060 fi
27061
27062
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27064 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27065 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27066 $as_echo_n "(cached) " >&6
27067 else
27068 gcc_cv_as_mips_gnu_attribute=no
27069 if test $in_tree_gas = yes; then
27070 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27071 then gcc_cv_as_mips_gnu_attribute=yes
27072 fi
27073 elif test x$gcc_cv_as != x; then
27074 $as_echo '.gnu_attribute 4,1' > conftest.s
27075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27077 (eval $ac_try) 2>&5
27078 ac_status=$?
27079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27080 test $ac_status = 0; }; }
27081 then
27082 gcc_cv_as_mips_gnu_attribute=yes
27083 else
27084 echo "configure: failed program was" >&5
27085 cat conftest.s >&5
27086 fi
27087 rm -f conftest.o conftest.s
27088 fi
27089 fi
27090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27091 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27092 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27093
27094 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27095
27096 fi
27097
27098
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27100 $as_echo_n "checking assembler for .module support... " >&6; }
27101 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27102 $as_echo_n "(cached) " >&6
27103 else
27104 gcc_cv_as_mips_dot_module=no
27105 if test x$gcc_cv_as != x; then
27106 $as_echo '.module mips2
27107 .module fp=xx' > conftest.s
27108 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27110 (eval $ac_try) 2>&5
27111 ac_status=$?
27112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27113 test $ac_status = 0; }; }
27114 then
27115 gcc_cv_as_mips_dot_module=yes
27116 else
27117 echo "configure: failed program was" >&5
27118 cat conftest.s >&5
27119 fi
27120 rm -f conftest.o conftest.s
27121 fi
27122 fi
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27124 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27125 if test $gcc_cv_as_mips_dot_module = yes; then
27126
27127 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27128
27129 fi
27130
27131 if test x$gcc_cv_as_mips_dot_module = xno \
27132 && test x$with_fp_32 != x; then
27133 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27134 fi
27135
27136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27137 $as_echo_n "checking assembler for .micromips support... " >&6; }
27138 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27139 $as_echo_n "(cached) " >&6
27140 else
27141 gcc_cv_as_micromips_support=no
27142 if test x$gcc_cv_as != x; then
27143 $as_echo '.set micromips' > conftest.s
27144 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27146 (eval $ac_try) 2>&5
27147 ac_status=$?
27148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27149 test $ac_status = 0; }; }
27150 then
27151 gcc_cv_as_micromips_support=yes
27152 else
27153 echo "configure: failed program was" >&5
27154 cat conftest.s >&5
27155 fi
27156 rm -f conftest.o conftest.s
27157 fi
27158 fi
27159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27160 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27161 if test $gcc_cv_as_micromips_support = yes; then
27162
27163 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27164
27165 fi
27166
27167
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27169 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27170 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27171 $as_echo_n "(cached) " >&6
27172 else
27173 gcc_cv_as_mips_dtprelword=no
27174 if test $in_tree_gas = yes; then
27175 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27176 then gcc_cv_as_mips_dtprelword=yes
27177 fi
27178 elif test x$gcc_cv_as != x; then
27179 $as_echo '.section .tdata,"awT",@progbits
27180 x:
27181 .word 2
27182 .text
27183 .dtprelword x+0x8000' > conftest.s
27184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27186 (eval $ac_try) 2>&5
27187 ac_status=$?
27188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27189 test $ac_status = 0; }; }
27190 then
27191 gcc_cv_as_mips_dtprelword=yes
27192 else
27193 echo "configure: failed program was" >&5
27194 cat conftest.s >&5
27195 fi
27196 rm -f conftest.o conftest.s
27197 fi
27198 fi
27199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27200 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27201 if test $gcc_cv_as_mips_dtprelword = yes; then
27202
27203 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27204
27205 fi
27206
27207
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27209 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27210 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27211 $as_echo_n "(cached) " >&6
27212 else
27213 gcc_cv_as_mips_dspr1_mult=no
27214 if test x$gcc_cv_as != x; then
27215 $as_echo ' .set mips32r2
27216 .set nodspr2
27217 .set dsp
27218 madd $ac3,$4,$5
27219 maddu $ac3,$4,$5
27220 msub $ac3,$4,$5
27221 msubu $ac3,$4,$5
27222 mult $ac3,$4,$5
27223 multu $ac3,$4,$5' > conftest.s
27224 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27226 (eval $ac_try) 2>&5
27227 ac_status=$?
27228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27229 test $ac_status = 0; }; }
27230 then
27231 gcc_cv_as_mips_dspr1_mult=yes
27232 else
27233 echo "configure: failed program was" >&5
27234 cat conftest.s >&5
27235 fi
27236 rm -f conftest.o conftest.s
27237 fi
27238 fi
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27240 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27241 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27242
27243 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27244
27245 fi
27246
27247
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27249 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27250 gcc_cv_as_ld_jalr_reloc=no
27251 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27252 if test $in_tree_ld = yes ; then
27253 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 \
27254 && test $in_tree_ld_is_elf = yes; then
27255 gcc_cv_as_ld_jalr_reloc=yes
27256 fi
27257 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27258 echo ' .ent x' > conftest.s
27259 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27260 echo ' lw $25,%call16(y)($28)' >> conftest.s
27261 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27262 echo '1: jalr $25' >> conftest.s
27263 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27264 echo '1: jalr $25' >> conftest.s
27265 echo ' .end x' >> conftest.s
27266 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27267 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27268 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27269 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27270 gcc_cv_as_ld_jalr_reloc=yes
27271 fi
27272 fi
27273 rm -f conftest.*
27274 fi
27275 fi
27276 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27277 if test x$target_cpu_default = x; then
27278 target_cpu_default=MASK_RELAX_PIC_CALLS
27279 else
27280 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27281 fi
27282 fi
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27284 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27285
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27287 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27288 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27289 $as_echo_n "(cached) " >&6
27290 else
27291 gcc_cv_ld_mips_personality_relaxation=no
27292 if test $in_tree_ld = yes ; then
27293 if test "$gcc_cv_gld_major_version" -eq 2 \
27294 -a "$gcc_cv_gld_minor_version" -ge 21 \
27295 -o "$gcc_cv_gld_major_version" -gt 2; then
27296 gcc_cv_ld_mips_personality_relaxation=yes
27297 fi
27298 elif test x$gcc_cv_as != x \
27299 -a x$gcc_cv_ld != x \
27300 -a x$gcc_cv_readelf != x ; then
27301 cat > conftest.s <<EOF
27302 .cfi_startproc
27303 .cfi_personality 0x80,indirect_ptr
27304 .ent test
27305 test:
27306 nop
27307 .end test
27308 .cfi_endproc
27309
27310 .section .data,"aw",@progbits
27311 indirect_ptr:
27312 .dc.a personality
27313 EOF
27314 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27315 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27316 if $gcc_cv_readelf -d conftest 2>&1 \
27317 | grep TEXTREL > /dev/null 2>&1; then
27318 :
27319 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27320 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27321 :
27322 else
27323 gcc_cv_ld_mips_personality_relaxation=yes
27324 fi
27325 fi
27326 fi
27327 rm -f conftest.s conftest.o conftest
27328 fi
27329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27330 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27331 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27332
27333 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27334
27335 fi
27336
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27338 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27339 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27340 $as_echo_n "(cached) " >&6
27341 else
27342 gcc_cv_as_mips_nan=no
27343 if test x$gcc_cv_as != x; then
27344 $as_echo '' > conftest.s
27345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27347 (eval $ac_try) 2>&5
27348 ac_status=$?
27349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27350 test $ac_status = 0; }; }
27351 then
27352 gcc_cv_as_mips_nan=yes
27353 else
27354 echo "configure: failed program was" >&5
27355 cat conftest.s >&5
27356 fi
27357 rm -f conftest.o conftest.s
27358 fi
27359 fi
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27361 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27362 if test $gcc_cv_as_mips_nan = yes; then
27363
27364 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27365
27366 fi
27367
27368 if test x$gcc_cv_as_mips_nan = xno \
27369 && test x$with_nan != x; then
27370 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27371 fi
27372 ;;
27373 s390*-*-*)
27374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27375 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27376 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27377 $as_echo_n "(cached) " >&6
27378 else
27379 gcc_cv_as_s390_gnu_attribute=no
27380 if test $in_tree_gas = yes; then
27381 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27382 then gcc_cv_as_s390_gnu_attribute=yes
27383 fi
27384 elif test x$gcc_cv_as != x; then
27385 $as_echo '.gnu_attribute 8,1' > conftest.s
27386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27388 (eval $ac_try) 2>&5
27389 ac_status=$?
27390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27391 test $ac_status = 0; }; }
27392 then
27393 gcc_cv_as_s390_gnu_attribute=yes
27394 else
27395 echo "configure: failed program was" >&5
27396 cat conftest.s >&5
27397 fi
27398 rm -f conftest.o conftest.s
27399 fi
27400 fi
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27402 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27403 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27404
27405 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27406
27407 fi
27408
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27410 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27411 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27412 $as_echo_n "(cached) " >&6
27413 else
27414 gcc_cv_as_s390_machine_machinemode=no
27415 if test $in_tree_gas = yes; then
27416 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27417 then gcc_cv_as_s390_machine_machinemode=yes
27418 fi
27419 elif test x$gcc_cv_as != x; then
27420 $as_echo ' .machinemode push
27421 .machinemode pop
27422 .machine push
27423 .machine pop' > conftest.s
27424 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27426 (eval $ac_try) 2>&5
27427 ac_status=$?
27428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27429 test $ac_status = 0; }; }
27430 then
27431 gcc_cv_as_s390_machine_machinemode=yes
27432 else
27433 echo "configure: failed program was" >&5
27434 cat conftest.s >&5
27435 fi
27436 rm -f conftest.o conftest.s
27437 fi
27438 fi
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27440 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27441 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27442
27443 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27444
27445 fi
27446
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27448 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27449 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27450 $as_echo_n "(cached) " >&6
27451 else
27452 gcc_cv_as_s390_architecture_modifiers=no
27453 if test $in_tree_gas = yes; then
27454 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27455 then gcc_cv_as_s390_architecture_modifiers=yes
27456 fi
27457 elif test x$gcc_cv_as != x; then
27458 $as_echo ' .machine z13+vx ' > conftest.s
27459 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27461 (eval $ac_try) 2>&5
27462 ac_status=$?
27463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27464 test $ac_status = 0; }; }
27465 then
27466 gcc_cv_as_s390_architecture_modifiers=yes
27467 else
27468 echo "configure: failed program was" >&5
27469 cat conftest.s >&5
27470 fi
27471 rm -f conftest.o conftest.s
27472 fi
27473 fi
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27475 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27476 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27477
27478 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27479
27480 fi
27481
27482 ;;
27483 esac
27484
27485 # Mips and HP-UX need the GNU assembler.
27486 # Linux on IA64 might be able to use the Intel assembler.
27487
27488 case "$target" in
27489 mips*-*-* | *-*-hpux* )
27490 if test x$gas_flag = xyes \
27491 || test x"$host" != x"$build" \
27492 || test ! -x "$gcc_cv_as" \
27493 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27494 :
27495 else
27496 echo "*** This configuration requires the GNU assembler" >&2
27497 exit 1
27498 fi
27499 ;;
27500 esac
27501
27502 # ??? Not all targets support dwarf2 debug_line, even within a version
27503 # of gas. Moreover, we need to emit a valid instruction to trigger any
27504 # info to the output file. So, as supported targets are added to gas 2.11,
27505 # add some instruction here to (also) show we expect this might work.
27506 # ??? Once 2.11 is released, probably need to add first known working
27507 # version to the per-target configury.
27508 case "$cpu_type" in
27509 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27510 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27511 | tilegx | tilepro | visium | xstormy16 | xtensa)
27512 insn="nop"
27513 ;;
27514 ia64 | s390)
27515 insn="nop 0"
27516 ;;
27517 mmix)
27518 insn="swym 0"
27519 ;;
27520 esac
27521 if test x"$insn" != x; then
27522 conftest_s="\
27523 .file 1 \"conftest.s\"
27524 .loc 1 3 0
27525 $insn"
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27527 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27528 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27529 $as_echo_n "(cached) " >&6
27530 else
27531 gcc_cv_as_dwarf2_debug_line=no
27532 if test $in_tree_gas = yes; then
27533 if test $in_tree_gas_is_elf = yes \
27534 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27535 then gcc_cv_as_dwarf2_debug_line=yes
27536 fi
27537 elif test x$gcc_cv_as != x; then
27538 $as_echo "$conftest_s" > conftest.s
27539 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27541 (eval $ac_try) 2>&5
27542 ac_status=$?
27543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27544 test $ac_status = 0; }; }
27545 then
27546 if test x$gcc_cv_objdump != x \
27547 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27548 | grep debug_line > /dev/null 2>&1; then
27549 gcc_cv_as_dwarf2_debug_line=yes
27550 fi
27551 else
27552 echo "configure: failed program was" >&5
27553 cat conftest.s >&5
27554 fi
27555 rm -f conftest.o conftest.s
27556 fi
27557 fi
27558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27559 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27560
27561
27562
27563 # The .debug_line file table must be in the exact order that
27564 # we specified the files, since these indices are also used
27565 # by DW_AT_decl_file. Approximate this test by testing if
27566 # the assembler bitches if the same index is assigned twice.
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27568 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27569 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27570 $as_echo_n "(cached) " >&6
27571 else
27572 gcc_cv_as_dwarf2_file_buggy=no
27573 if test x$gcc_cv_as != x; then
27574 $as_echo ' .file 1 "foo.s"
27575 .file 1 "bar.s"' > conftest.s
27576 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27578 (eval $ac_try) 2>&5
27579 ac_status=$?
27580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27581 test $ac_status = 0; }; }
27582 then
27583 gcc_cv_as_dwarf2_file_buggy=yes
27584 else
27585 echo "configure: failed program was" >&5
27586 cat conftest.s >&5
27587 fi
27588 rm -f conftest.o conftest.s
27589 fi
27590 fi
27591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27592 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27593
27594
27595
27596 if test $gcc_cv_as_dwarf2_debug_line = yes \
27597 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27598
27599 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27600
27601
27602 if test $gcc_cv_as_leb128 = yes; then
27603 conftest_s="\
27604 .file 1 \"conftest.s\"
27605 .loc 1 3 0 view .LVU1
27606 $insn
27607 .data
27608 .uleb128 .LVU1
27609 .uleb128 .LVU1
27610 "
27611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27612 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27613 if test "${gcc_cv_as_dwarf2_debug_view+set}" = set; then :
27614 $as_echo_n "(cached) " >&6
27615 else
27616 gcc_cv_as_dwarf2_debug_view=no
27617 if test $in_tree_gas = yes; then
27618 if test $in_tree_gas_is_elf = yes \
27619 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27620 then gcc_cv_as_dwarf2_debug_view=yes
27621 fi
27622 elif test x$gcc_cv_as != x; then
27623 $as_echo "$conftest_s" > conftest.s
27624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27626 (eval $ac_try) 2>&5
27627 ac_status=$?
27628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27629 test $ac_status = 0; }; }
27630 then
27631 gcc_cv_as_dwarf2_debug_view=yes
27632 else
27633 echo "configure: failed program was" >&5
27634 cat conftest.s >&5
27635 fi
27636 rm -f conftest.o conftest.s
27637 fi
27638 fi
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27640 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27641 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27642
27643 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27644
27645 fi
27646
27647 fi
27648 fi
27649
27650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27651 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27652 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27653 $as_echo_n "(cached) " >&6
27654 else
27655 gcc_cv_as_gdwarf2_flag=no
27656 if test $in_tree_gas = yes; then
27657 if test $in_tree_gas_is_elf = yes \
27658 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27659 then gcc_cv_as_gdwarf2_flag=yes
27660 fi
27661 elif test x$gcc_cv_as != x; then
27662 $as_echo "$insn" > conftest.s
27663 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27665 (eval $ac_try) 2>&5
27666 ac_status=$?
27667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27668 test $ac_status = 0; }; }
27669 then
27670 gcc_cv_as_gdwarf2_flag=yes
27671 else
27672 echo "configure: failed program was" >&5
27673 cat conftest.s >&5
27674 fi
27675 rm -f conftest.o conftest.s
27676 fi
27677 fi
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27679 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27680 if test $gcc_cv_as_gdwarf2_flag = yes; then
27681
27682 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27683
27684 fi
27685
27686
27687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27688 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27689 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27690 $as_echo_n "(cached) " >&6
27691 else
27692 gcc_cv_as_gstabs_flag=no
27693 if test $in_tree_gas = yes; then
27694 if test $in_tree_gas_is_elf = yes \
27695 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27696 then gcc_cv_as_gstabs_flag=yes
27697 fi
27698 elif test x$gcc_cv_as != x; then
27699 $as_echo "$insn" > conftest.s
27700 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27702 (eval $ac_try) 2>&5
27703 ac_status=$?
27704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27705 test $ac_status = 0; }; }
27706 then
27707 gcc_cv_as_gstabs_flag=yes
27708 else
27709 echo "configure: failed program was" >&5
27710 cat conftest.s >&5
27711 fi
27712 rm -f conftest.o conftest.s
27713 fi
27714 fi
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27716 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27717 if test $gcc_cv_as_gstabs_flag = yes; then
27718
27719 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27720
27721 fi
27722
27723
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27725 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27726 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27727 $as_echo_n "(cached) " >&6
27728 else
27729 gcc_cv_as_debug_prefix_map_flag=no
27730 if test $in_tree_gas = yes; then
27731 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27732 then gcc_cv_as_debug_prefix_map_flag=yes
27733 fi
27734 elif test x$gcc_cv_as != x; then
27735 $as_echo "$insn" > conftest.s
27736 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27738 (eval $ac_try) 2>&5
27739 ac_status=$?
27740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27741 test $ac_status = 0; }; }
27742 then
27743 gcc_cv_as_debug_prefix_map_flag=yes
27744 else
27745 echo "configure: failed program was" >&5
27746 cat conftest.s >&5
27747 fi
27748 rm -f conftest.o conftest.s
27749 fi
27750 fi
27751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27752 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27753 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27754
27755 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27756
27757 fi
27758
27759 fi
27760
27761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27762 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27763 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27764 $as_echo_n "(cached) " >&6
27765 else
27766 gcc_cv_as_compress_debug=no
27767 if test x$gcc_cv_as != x; then
27768 $as_echo '' > conftest.s
27769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27771 (eval $ac_try) 2>&5
27772 ac_status=$?
27773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27774 test $ac_status = 0; }; }
27775 then
27776 # gas compiled without zlib cannot compress debug sections and warns
27777 # about it, but still exits successfully. So check for this, too.
27778 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27779 then
27780 gcc_cv_as_compress_debug=0
27781 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27782 # defaulting to the ELF gABI format.
27783 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27784 then
27785 gcc_cv_as_compress_debug=2
27786 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27787 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27788 # Before binutils 2.26, gas only supported --compress-debug-options and
27789 # emitted the traditional GNU format.
27790 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27791 then
27792 gcc_cv_as_compress_debug=1
27793 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27794 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27795 else
27796 gcc_cv_as_compress_debug=0
27797 fi
27798 else
27799 echo "configure: failed program was" >&5
27800 cat conftest.s >&5
27801 fi
27802 rm -f conftest.o conftest.s
27803 fi
27804 fi
27805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27806 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27807
27808
27809
27810 cat >>confdefs.h <<_ACEOF
27811 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27812 _ACEOF
27813
27814
27815 cat >>confdefs.h <<_ACEOF
27816 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27817 _ACEOF
27818
27819
27820 cat >>confdefs.h <<_ACEOF
27821 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27822 _ACEOF
27823
27824
27825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27826 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27827 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27828 $as_echo_n "(cached) " >&6
27829 else
27830 gcc_cv_as_lcomm_with_alignment=no
27831 if test x$gcc_cv_as != x; then
27832 $as_echo '.lcomm bar,4,16' > conftest.s
27833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27835 (eval $ac_try) 2>&5
27836 ac_status=$?
27837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27838 test $ac_status = 0; }; }
27839 then
27840 gcc_cv_as_lcomm_with_alignment=yes
27841 else
27842 echo "configure: failed program was" >&5
27843 cat conftest.s >&5
27844 fi
27845 rm -f conftest.o conftest.s
27846 fi
27847 fi
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27849 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27850 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27851
27852 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27853
27854 fi
27855
27856
27857 if test x$with_sysroot = x && test x$host = x$target \
27858 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27859 && test "$prefix" != "NONE"; then
27860
27861 cat >>confdefs.h <<_ACEOF
27862 #define PREFIX_INCLUDE_DIR "$prefix/include"
27863 _ACEOF
27864
27865 fi
27866
27867 # Determine the version of glibc, if any, used on the target.
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27869 $as_echo_n "checking for target glibc version... " >&6; }
27870
27871 # Check whether --with-glibc-version was given.
27872 if test "${with_glibc_version+set}" = set; then :
27873 withval=$with_glibc_version;
27874 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27875 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27876 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27877 else
27878 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27879 fi
27880 else
27881
27882 glibc_version_major=0
27883 glibc_version_minor=0
27884 if test -f $target_header_dir/features.h \
27885 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27886 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27887 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27888 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27889 fi
27890 fi
27891
27892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27893 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27894
27895 cat >>confdefs.h <<_ACEOF
27896 #define TARGET_GLIBC_MAJOR $glibc_version_major
27897 _ACEOF
27898
27899
27900 cat >>confdefs.h <<_ACEOF
27901 #define TARGET_GLIBC_MINOR $glibc_version_minor
27902 _ACEOF
27903
27904
27905 # Check whether --enable-gnu-unique-object was given.
27906 if test "${enable_gnu_unique_object+set}" = set; then :
27907 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27908 yes | no) ;;
27909 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27910 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27911 esac
27912 else
27913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27914 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27915 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27916 $as_echo_n "(cached) " >&6
27917 else
27918 gcc_cv_as_gnu_unique_object=no
27919 if test $in_tree_gas = yes; then
27920 if test $in_tree_gas_is_elf = yes \
27921 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27922 then gcc_cv_as_gnu_unique_object=yes
27923 fi
27924 elif test x$gcc_cv_as != x; then
27925 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27926 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27928 (eval $ac_try) 2>&5
27929 ac_status=$?
27930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27931 test $ac_status = 0; }; }
27932 then
27933 gcc_cv_as_gnu_unique_object=yes
27934 else
27935 echo "configure: failed program was" >&5
27936 cat conftest.s >&5
27937 fi
27938 rm -f conftest.o conftest.s
27939 fi
27940 fi
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27942 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27943 if test $gcc_cv_as_gnu_unique_object = yes; then
27944 # We need to unquote above to to use the definition from config.gcc.
27945 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27946
27947 if test $glibc_version_major -gt 2 \
27948 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27949 enable_gnu_unique_object=yes
27950 fi
27951
27952 fi
27953
27954 fi
27955
27956 if test x$enable_gnu_unique_object = xyes; then
27957
27958 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27959
27960 fi
27961
27962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27963 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27964 if test "${gcc_cv_as_line_zero+set}" = set; then :
27965 $as_echo_n "(cached) " >&6
27966 else
27967 gcc_cv_as_line_zero=no
27968 if test $in_tree_gas = yes; then
27969 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27970 then gcc_cv_as_line_zero=yes
27971 fi
27972 elif test "x$gcc_cv_as" != x; then
27973 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27974 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27976 (eval $ac_try) 2>&5
27977 ac_status=$?
27978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27979 test $ac_status = 0; }; } &&
27980 test "x`cat conftest.out`" = x
27981 then
27982 gcc_cv_as_line_zero=yes
27983 else
27984 echo "configure: failed program was" >&5
27985 cat conftest.s >&5
27986 echo "configure: error output was" >&5
27987 cat conftest.out >&5
27988 fi
27989 rm -f conftest.o conftest.s conftest.out
27990 fi
27991 fi
27992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27993 $as_echo "$gcc_cv_as_line_zero" >&6; }
27994 if test "x$gcc_cv_as_line_zero" = xyes; then
27995
27996 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27997
27998 fi
27999
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28001 $as_echo_n "checking support for thin archives... " >&6; }
28002 thin_archive_support=no
28003 echo 'int main (void) { return 0; }' > conftest.c
28004 if ($AR --version | sed 1q | grep "GNU ar" \
28005 && $CC $CFLAGS -c conftest.c \
28006 && $AR rcT conftest.a conftest.o \
28007 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28008 thin_archive_support=yes
28009 fi
28010 rm -f conftest.c conftest.o conftest.a conftest
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28012 $as_echo "$thin_archive_support" >&6; }
28013
28014
28015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28016 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28017 gcc_cv_ld_eh_frame_hdr=no
28018 if test $in_tree_ld = yes ; then
28019 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 \
28020 && test $in_tree_ld_is_elf = yes; then
28021 gcc_cv_ld_eh_frame_hdr=yes
28022 fi
28023 elif test x$gcc_cv_ld != x; then
28024 if echo "$ld_ver" | grep GNU > /dev/null; then
28025 # Check if linker supports --eh-frame-hdr option
28026 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28027 gcc_cv_ld_eh_frame_hdr=yes
28028 fi
28029 else
28030 case "$target" in
28031 *-*-solaris2*)
28032 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28033 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28034 gcc_cv_ld_eh_frame_hdr=yes
28035 fi
28036 ;;
28037 esac
28038 fi
28039 fi
28040
28041 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28042
28043 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28044
28045 fi
28046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28047 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28048
28049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28050 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28051 gcc_cv_ld_eh_frame_ciev3=no
28052 if test $in_tree_ld = yes ; then
28053 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 \
28054 && test $in_tree_ld_is_elf = yes; then
28055 gcc_cv_ld_eh_frame_ciev3=yes
28056 fi
28057 elif test x$gcc_cv_ld != x; then
28058 if echo "$ld_ver" | grep GNU > /dev/null; then
28059 gcc_cv_ld_eh_frame_ciev3=yes
28060 if test 0"$ld_date" -lt 20040513; then
28061 if test -n "$ld_date"; then
28062 # If there was date string, but was earlier than 2004-05-13, fail
28063 gcc_cv_ld_eh_frame_ciev3=no
28064 elif test "$ld_vers_major" -lt 2; then
28065 gcc_cv_ld_eh_frame_ciev3=no
28066 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28067 gcc_cv_ld_eh_frame_ciev3=no
28068 fi
28069 fi
28070 else
28071 case "$target" in
28072 *-*-solaris2*)
28073 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28074 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28075 gcc_cv_ld_eh_frame_ciev3=yes
28076 fi
28077 ;;
28078 esac
28079 fi
28080 fi
28081
28082 cat >>confdefs.h <<_ACEOF
28083 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28084 _ACEOF
28085
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28087 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28088
28089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28090 $as_echo_n "checking linker position independent executable support... " >&6; }
28091 gcc_cv_ld_pie=no
28092 if test $in_tree_ld = yes ; then
28093 case "$target" in
28094 # Full PIE support on Solaris was only introduced in gld 2.26.
28095 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28096 *) gcc_gld_pie_min_version=15 ;;
28097 esac
28098 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 \
28099 && test $in_tree_ld_is_elf = yes; then
28100 gcc_cv_ld_pie=yes
28101 fi
28102 elif test x$gcc_cv_ld != x; then
28103 # Check if linker supports -pie option
28104 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28105 gcc_cv_ld_pie=yes
28106 case "$target" in
28107 *-*-solaris2*)
28108 if echo "$ld_ver" | grep GNU > /dev/null \
28109 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28110 gcc_cv_ld_pie=no
28111 fi
28112 ;;
28113 esac
28114 else
28115 case "$target" in
28116 *-*-solaris2.1[1-9]*)
28117 # Solaris 11.3 added PIE support.
28118 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28119 gcc_cv_ld_pie=yes
28120 fi
28121 ;;
28122 esac
28123 fi
28124 fi
28125 if test x"$gcc_cv_ld_pie" = xyes; then
28126
28127 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28128
28129 fi
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28131 $as_echo "$gcc_cv_ld_pie" >&6; }
28132
28133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28134 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28135 gcc_cv_ld_pie_copyreloc=no
28136 if test $gcc_cv_ld_pie = yes ; then
28137 if test $in_tree_ld = yes ; then
28138 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
28139 gcc_cv_ld_pie_copyreloc=yes
28140 fi
28141 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28142 # Check if linker supports -pie option with copy reloc
28143 case "$target" in
28144 i?86-*-linux* | x86_64-*-linux*)
28145 cat > conftest1.s <<EOF
28146 .globl a_glob
28147 .data
28148 .type a_glob, @object
28149 .size a_glob, 4
28150 a_glob:
28151 .long 2
28152 EOF
28153 cat > conftest2.s <<EOF
28154 .text
28155 .globl main
28156 .type main, @function
28157 main:
28158 movl %eax, a_glob(%rip)
28159 .size main, .-main
28160 .globl ptr
28161 .section .data.rel,"aw",@progbits
28162 .type ptr, @object
28163 ptr:
28164 .quad a_glob
28165 EOF
28166 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28167 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28168 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28169 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28170 gcc_cv_ld_pie_copyreloc=yes
28171 fi
28172 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28173 ;;
28174 esac
28175 fi
28176 fi
28177
28178 cat >>confdefs.h <<_ACEOF
28179 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28180 _ACEOF
28181
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28183 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28184
28185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28186 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28187 gcc_cv_ld_eh_gc_sections=no
28188 if test $in_tree_ld = yes ; then
28189 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 \
28190 && test $in_tree_ld_is_elf = yes; then
28191 gcc_cv_ld_eh_gc_sections=yes
28192 fi
28193 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28194 cat > conftest.s <<EOF
28195 .section .text
28196 .globl _start
28197 .type _start, @function
28198 _start:
28199 .long foo
28200 .size _start, .-_start
28201 .section .text.foo,"ax",@progbits
28202 .type foo, @function
28203 foo:
28204 .long 0
28205 .size foo, .-foo
28206 .section .gcc_except_table.foo,"a",@progbits
28207 .L0:
28208 .long 0
28209 .section .eh_frame,"a",@progbits
28210 .long .L0
28211 EOF
28212 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28213 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28214 | grep "gc-sections option ignored" > /dev/null; then
28215 gcc_cv_ld_eh_gc_sections=no
28216 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28217 | grep gcc_except_table > /dev/null; then
28218 gcc_cv_ld_eh_gc_sections=yes
28219 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28220 if test x$gcc_cv_as_comdat_group != xyes; then
28221 gcc_cv_ld_eh_gc_sections=no
28222 cat > conftest.s <<EOF
28223 .section .text
28224 .globl _start
28225 .type _start, @function
28226 _start:
28227 .long foo
28228 .size _start, .-_start
28229 .section .gnu.linkonce.t.foo,"ax",@progbits
28230 .type foo, @function
28231 foo:
28232 .long 0
28233 .size foo, .-foo
28234 .section .gcc_except_table.foo,"a",@progbits
28235 .L0:
28236 .long 0
28237 .section .eh_frame,"a",@progbits
28238 .long .L0
28239 EOF
28240 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28241 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28242 | grep "gc-sections option ignored" > /dev/null; then
28243 gcc_cv_ld_eh_gc_sections=no
28244 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28245 | grep gcc_except_table > /dev/null; then
28246 gcc_cv_ld_eh_gc_sections=yes
28247 fi
28248 fi
28249 fi
28250 fi
28251 fi
28252 rm -f conftest.s conftest.o conftest
28253 fi
28254 case "$target" in
28255 hppa*-*-linux*)
28256 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28257 gcc_cv_ld_eh_gc_sections=no
28258 ;;
28259 esac
28260 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28261
28262 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28263
28264 fi
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28266 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28267
28268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28269 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28270 gcc_cv_ld_eh_gc_sections_bug=no
28271 if test $in_tree_ld = yes ; then
28272 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 \
28273 && test $in_tree_ld_is_elf = yes; then
28274 gcc_cv_ld_eh_gc_sections_bug=yes
28275 fi
28276 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
28277 gcc_cv_ld_eh_gc_sections_bug=yes
28278 cat > conftest.s <<EOF
28279 .section .text
28280 .globl _start
28281 .type _start, @function
28282 _start:
28283 .long foo
28284 .size _start, .-_start
28285 .section .text.startup.foo,"ax",@progbits
28286 .type foo, @function
28287 foo:
28288 .long 0
28289 .size foo, .-foo
28290 .section .gcc_except_table.foo,"a",@progbits
28291 .L0:
28292 .long 0
28293 .section .eh_frame,"a",@progbits
28294 .long .L0
28295 EOF
28296 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28297 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28298 | grep "gc-sections option ignored" > /dev/null; then
28299 :
28300 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28301 | grep gcc_except_table > /dev/null; then
28302 gcc_cv_ld_eh_gc_sections_bug=no
28303 fi
28304 fi
28305 rm -f conftest.s conftest.o conftest
28306 fi
28307 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28308
28309 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28310
28311 fi
28312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28313 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28314
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28316 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28317 # gold/gld support compressed debug sections since binutils 2.19/2.21
28318 # In binutils 2.26, gld gained support for the ELF gABI format.
28319 if test $in_tree_ld = yes ; then
28320 gcc_cv_ld_compress_debug=0
28321 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 \
28322 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28323 gcc_cv_ld_compress_debug=2
28324 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28325 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 \
28326 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28327 gcc_cv_ld_compress_debug=3
28328 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28329 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 \
28330 && test $in_tree_ld_is_elf = yes; then
28331 gcc_cv_ld_compress_debug=1
28332 fi
28333 elif echo "$ld_ver" | grep GNU > /dev/null; then
28334 if test "$ld_vers_major" -lt 2 \
28335 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28336 gcc_cv_ld_compress_debug=0
28337 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28338 gcc_cv_ld_compress_debug=1
28339 else
28340 gcc_cv_ld_compress_debug=3
28341 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28342 fi
28343 if test $ld_is_gold = yes; then
28344 gcc_cv_ld_compress_debug=2
28345 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28346 fi
28347 else
28348 case "${target}" in
28349 *-*-solaris2*)
28350 # Introduced in Solaris 11.2.
28351 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28352 gcc_cv_ld_compress_debug=3
28353 gcc_cv_ld_compress_debug_option="-z compress-sections"
28354 else
28355 gcc_cv_ld_compress_debug=0
28356 fi
28357 ;;
28358 *)
28359 # Assume linkers other than GNU ld don't support compessed debug
28360 # sections.
28361 gcc_cv_ld_compress_debug=0
28362 ;;
28363 esac
28364 fi
28365
28366 cat >>confdefs.h <<_ACEOF
28367 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28368 _ACEOF
28369
28370
28371 cat >>confdefs.h <<_ACEOF
28372 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28373 _ACEOF
28374
28375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28376 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28377
28378 if test x"$ld64_flag" = x"yes"; then
28379
28380 # Set defaults for possibly untestable items.
28381 gcc_cv_ld64_export_dynamic=0
28382
28383 if test "$build" = "$host"; then
28384 darwin_try_test=1
28385 else
28386 darwin_try_test=0
28387 fi
28388
28389 # On Darwin, because of FAT library support, it is often possible to execute
28390 # exes from compatible archs even when the host differs from the build system.
28391 case "$build","$host" in
28392 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28393 darwin_try_test=1;;
28394 *) ;;
28395 esac
28396
28397 # If the configurer specified a minimum ld64 version to be supported, then use
28398 # that to determine feature support.
28399 if test x"${gcc_cv_ld64_version}" != x; then
28400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28401 $as_echo_n "checking ld64 specified version... " >&6; }
28402 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28404 $as_echo "$gcc_cv_ld64_major" >&6; }
28405 if test "$gcc_cv_ld64_major" -ge 236; then
28406 gcc_cv_ld64_export_dynamic=1
28407 fi
28408 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28409 # If the version was not specified, try to find it.
28410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28411 $as_echo_n "checking linker version... " >&6; }
28412 if test x"${gcc_cv_ld64_version}" = x; then
28413 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28414 fi
28415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28416 $as_echo "$gcc_cv_ld64_version" >&6; }
28417
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28419 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28420 gcc_cv_ld64_export_dynamic=1
28421 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28422 gcc_cv_ld64_export_dynamic=0
28423 fi
28424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28425 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28426 fi
28427
28428 if test x"${gcc_cv_ld64_version}" != x; then
28429
28430 cat >>confdefs.h <<_ACEOF
28431 #define LD64_VERSION "${gcc_cv_ld64_version}"
28432 _ACEOF
28433
28434 fi
28435
28436
28437 cat >>confdefs.h <<_ACEOF
28438 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28439 _ACEOF
28440
28441 fi
28442
28443 # --------
28444 # UNSORTED
28445 # --------
28446
28447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28448 $as_echo_n "checking linker --as-needed support... " >&6; }
28449 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28450 $as_echo_n "(cached) " >&6
28451 else
28452 gcc_cv_ld_as_needed=no
28453 gcc_cv_ld_as_needed_option='--as-needed'
28454 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28455 if test $in_tree_ld = yes ; then
28456 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 \
28457 && test $in_tree_ld_is_elf = yes; then
28458 gcc_cv_ld_as_needed=yes
28459 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28460 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28461 gcc_cv_ld_no_as_needed_option='--pop-state'
28462 fi
28463 fi
28464 elif test x$gcc_cv_ld != x; then
28465 # Check if linker supports --as-needed and --no-as-needed options
28466 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28467 gcc_cv_ld_as_needed=yes
28468 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
28469 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
28470 && echo "$ld_ver" | grep GNU > /dev/null \
28471 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28472 # Use these options only when both ld.bfd and ld.gold support
28473 # --push-state/--pop-state, which unfortunately wasn't added
28474 # at the same time.
28475 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28476 gcc_cv_ld_no_as_needed_option='--pop-state'
28477 fi
28478 fi
28479 case "$target:$gnu_ld" in
28480 *-*-solaris2*:no)
28481 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28482 # forms.
28483 gcc_cv_ld_as_needed=yes
28484 gcc_cv_ld_as_needed_option="-z ignore"
28485 gcc_cv_ld_no_as_needed_option="-z record"
28486 ;;
28487 esac
28488 fi
28489 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28490 # dl_iterate_phdr, i.e. since Solaris 11.
28491 case "$target" in
28492 *-*-solaris2.1[1-9]*)
28493 case "$target" in
28494 i?86-*-* | x86_64-*-*)
28495 if echo "$ld_ver" | grep GNU > /dev/null; then
28496 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28497 gcc_cv_ld_as_needed=no
28498 fi
28499 ;;
28500 esac
28501 ;;
28502 *-*-solaris2*)
28503 gcc_cv_ld_as_needed=no
28504 ;;
28505 esac
28506
28507 fi
28508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28509 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28510 if test x"$gcc_cv_ld_as_needed" = xyes; then
28511
28512 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28513
28514
28515 cat >>confdefs.h <<_ACEOF
28516 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28517 _ACEOF
28518
28519
28520 cat >>confdefs.h <<_ACEOF
28521 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28522 _ACEOF
28523
28524 fi
28525
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28527 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28528 saved_LDFLAGS="$LDFLAGS"
28529 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28530 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28532 /* end confdefs.h. */
28533 int main(void) {return 0;}
28534 _ACEOF
28535 if ac_fn_cxx_try_link "$LINENO"; then :
28536 gcc_cv_ld_clearcap=yes; break
28537 else
28538 gcc_cv_ld_clearcap=no
28539 fi
28540 rm -f core conftest.err conftest.$ac_objext \
28541 conftest$ac_exeext conftest.$ac_ext
28542 done
28543 LDFLAGS="$saved_LDFLAGS"
28544 if test "x$gcc_cv_ld_clearcap" = xyes; then
28545
28546 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28547
28548 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28549
28550 fi
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28552 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28553
28554 case "$target" in
28555 powerpc*-*-*)
28556 case "$target" in
28557 *le-*-linux*)
28558 emul_name="-melf32lppc"
28559 ;;
28560 *)
28561 emul_name="-melf32ppc"
28562 ;;
28563 esac
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28565 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28566 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28567 $as_echo_n "(cached) " >&6
28568 else
28569 gcc_cv_ld_ppc_attr=no
28570 if test x"$ld_is_gold" = xyes; then
28571 gcc_cv_ld_ppc_attr=yes
28572 elif test $in_tree_ld = yes ; then
28573 if test "$gcc_cv_gld_major_version" -eq 2 \
28574 -a "$gcc_cv_gld_minor_version" -ge 28 \
28575 -o "$gcc_cv_gld_major_version" -gt 2; then
28576 gcc_cv_ld_ppc_attr=yes
28577 fi
28578 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28579 # check that merging the long double .gnu_attribute doesn't warn
28580 cat > conftest1.s <<EOF
28581 .gnu_attribute 4,1
28582 EOF
28583 cat > conftest2.s <<EOF
28584 .gnu_attribute 4,9
28585 EOF
28586 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28587 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28588 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28589 && test ! -s conftest.err; then
28590 gcc_cv_ld_ppc_attr=yes
28591 fi
28592 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28593 fi
28594
28595 fi
28596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28597 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28598 if test x$gcc_cv_ld_ppc_attr = xyes; then
28599
28600 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28601
28602 fi
28603 ;;
28604 esac
28605
28606 case "$target:$tm_file" in
28607 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28608 case "$target" in
28609 *le-*-linux*)
28610 emul_name="-melf64lppc"
28611 ;;
28612 *-*-linux*)
28613 emul_name="-melf64ppc"
28614 ;;
28615 *-*-freebsd*)
28616 emul_name="-melf64ppc_fbsd"
28617 ;;
28618 esac
28619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28620 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28621 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28622 $as_echo_n "(cached) " >&6
28623 else
28624 gcc_cv_ld_no_dot_syms=no
28625 if test x"$ld_is_gold" = xyes; then
28626 gcc_cv_ld_no_dot_syms=yes
28627 elif test $in_tree_ld = yes ; then
28628 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
28629 gcc_cv_ld_no_dot_syms=yes
28630 fi
28631 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28632 cat > conftest1.s <<EOF
28633 .text
28634 bl .foo
28635 EOF
28636 cat > conftest2.s <<EOF
28637 .section ".opd","aw"
28638 .align 3
28639 .globl foo
28640 .type foo,@function
28641 foo:
28642 .quad .LEfoo,.TOC.@tocbase,0
28643 .text
28644 .LEfoo:
28645 blr
28646 .size foo,.-.LEfoo
28647 EOF
28648 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28649 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28650 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28651 gcc_cv_ld_no_dot_syms=yes
28652 fi
28653 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28654 fi
28655
28656 fi
28657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28658 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28659 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28660
28661 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28662
28663 fi
28664
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28666 $as_echo_n "checking linker large toc support... " >&6; }
28667 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28668 $as_echo_n "(cached) " >&6
28669 else
28670 gcc_cv_ld_large_toc=no
28671 if test x"$ld_is_gold" = xyes; then
28672 gcc_cv_ld_large_toc=yes
28673 elif test $in_tree_ld = yes ; then
28674 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
28675 gcc_cv_ld_large_toc=yes
28676 fi
28677 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28678 cat > conftest.s <<EOF
28679 .section ".tbss","awT",@nobits
28680 .align 3
28681 ie0: .space 8
28682 .global _start
28683 .text
28684 _start:
28685 addis 9,13,ie0@got@tprel@ha
28686 ld 9,ie0@got@tprel@l(9)
28687 EOF
28688 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28689 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28690 gcc_cv_ld_large_toc=yes
28691 fi
28692 rm -f conftest conftest.o conftest.s
28693 fi
28694
28695 fi
28696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28697 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28698 if test x"$gcc_cv_ld_large_toc" = xyes; then
28699
28700 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28701
28702 fi
28703
28704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28705 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28706 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28707 $as_echo_n "(cached) " >&6
28708 else
28709 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28710 cat > conftest.s <<EOF
28711 .global _start
28712 .text
28713 _start:
28714 addis 9,2,x@got@ha
28715 .section .data.rel.ro,"aw",@progbits
28716 .p2align 16
28717 .space 32768
28718 x: .quad .TOC.
28719 EOF
28720 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28721 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28722 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)) }'`
28723 fi
28724 rm -f conftest conftest.o conftest.s
28725 fi
28726
28727 fi
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28729 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28730 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28731
28732 cat >>confdefs.h <<_ACEOF
28733 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28734 _ACEOF
28735
28736 fi
28737 ;;
28738 esac
28739
28740 case "$target" in
28741 *-*-aix*)
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28743 $as_echo_n "checking linker large toc support... " >&6; }
28744 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28745 $as_echo_n "(cached) " >&6
28746 else
28747 gcc_cv_ld_large_toc=no
28748 if test x$gcc_cv_as != x ; then
28749 cat > conftest.s <<EOF
28750 .toc
28751 LC..1:
28752 .tc a[TC],a[RW]
28753 .extern a[RW]
28754 .csect .text[PR]
28755 .largetoctest:
28756 addis 9,LC..1@u(2)
28757 ld 3,LC..1@l(9)
28758 EOF
28759 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28760 gcc_cv_ld_large_toc=yes
28761 fi
28762 rm -f conftest conftest.o conftest.s
28763 fi
28764
28765 fi
28766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28767 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28768 if test x"$gcc_cv_ld_large_toc" = xyes; then
28769
28770 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28771
28772 fi
28773 ;;
28774 esac
28775
28776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28777 $as_echo_n "checking linker --build-id support... " >&6; }
28778 if test "${gcc_cv_ld_buildid+set}" = set; then :
28779 $as_echo_n "(cached) " >&6
28780 else
28781 gcc_cv_ld_buildid=no
28782 if test $in_tree_ld = yes ; then
28783 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28784 "$gcc_cv_gld_minor_version" -ge 18 -o \
28785 "$gcc_cv_gld_major_version" -gt 2 \
28786 && test $in_tree_ld_is_elf = yes; then
28787 gcc_cv_ld_buildid=yes
28788 fi
28789 elif test x$gcc_cv_ld != x; then
28790 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
28791 gcc_cv_ld_buildid=yes
28792 fi
28793 fi
28794 fi
28795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28796 $as_echo "$gcc_cv_ld_buildid" >&6; }
28797 if test x"$gcc_cv_ld_buildid" = xyes; then
28798
28799 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28800
28801 fi
28802
28803 # Check whether --enable-linker-build-id was given.
28804 if test "${enable_linker_build_id+set}" = set; then :
28805 enableval=$enable_linker_build_id;
28806 else
28807 enable_linker_build_id=no
28808 fi
28809
28810
28811 if test x"$enable_linker_build_id" = xyes; then
28812 if test x"$gcc_cv_ld_buildid" = xyes; then
28813
28814 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28815
28816 else
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28818 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28819 fi
28820 fi
28821
28822 # In binutils 2.21, GNU ld gained support for new emulations fully
28823 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28825 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28826 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28827 $as_echo_n "(cached) " >&6
28828 else
28829 gcc_cv_ld_sol2_emulation=no
28830 if test $in_tree_ld = yes ; then
28831 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28832 "$gcc_cv_gld_minor_version" -ge 21 -o \
28833 "$gcc_cv_gld_major_version" -gt 2 \
28834 && test $in_tree_ld_is_elf = yes; then
28835 gcc_cv_ld_sol2_emulation=yes
28836 fi
28837 elif test x$gcc_cv_ld != x; then
28838 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28839 grep _sol2 > /dev/null; then
28840 gcc_cv_ld_sol2_emulation=yes
28841 fi
28842 fi
28843 fi
28844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28845 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28846 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28847
28848 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28849
28850 fi
28851
28852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28853 $as_echo_n "checking linker --sysroot support... " >&6; }
28854 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28855 $as_echo_n "(cached) " >&6
28856 else
28857 gcc_cv_ld_sysroot=no
28858 if test $in_tree_ld = yes ; then
28859 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
28860 gcc_cv_ld_sysroot=yes
28861 fi
28862 elif test x$gcc_cv_ld != x; then
28863 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
28864 gcc_cv_ld_sysroot=yes
28865 fi
28866 fi
28867 fi
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28869 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28870 if test x"$gcc_cv_ld_sysroot" = xyes; then
28871
28872 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28873
28874 fi
28875
28876 case $target in
28877 *-*-solaris2*)
28878 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28880 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28881 if test "${gcc_cv_solaris_crts+set}" = set; then :
28882 $as_echo_n "(cached) " >&6
28883 else
28884 gcc_cv_solaris_crts=no
28885 if test x$host != x$target; then
28886 if test "x$with_sysroot" = xyes; then
28887 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28888 else
28889 target_sysroot="${with_sysroot}"
28890 fi
28891 fi
28892 target_libdir="$target_sysroot/usr/lib"
28893 # At the time they were added, gcrt1.o became a symlink for backwards
28894 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28895 case $target in
28896 i?86-*-solaris2* | x86_64-*-solaris2*)
28897 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28898 ;;
28899 sparc*-*-solaris2*)
28900 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28901 ;;
28902 esac
28903 fi
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28905 $as_echo "$gcc_cv_solaris_crts" >&6; }
28906 ;;
28907 esac
28908 if test x$gcc_cv_solaris_crts = xyes; then
28909
28910 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28911
28912 fi
28913
28914 # Check whether --enable-libssp was given.
28915 if test "${enable_libssp+set}" = set; then :
28916 enableval=$enable_libssp; case "${enableval}" in
28917 yes|no)
28918 ;;
28919 *)
28920 as_fn_error "unknown libssp setting $enableval" "$LINENO" 5
28921 ;;
28922 esac
28923 fi
28924
28925
28926 # Test for stack protector support in target C library.
28927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28928 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28929 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28930 $as_echo_n "(cached) " >&6
28931 else
28932 gcc_cv_libc_provides_ssp=no
28933 if test "x$enable_libssp" = "xno"; then
28934 gcc_cv_libc_provides_ssp=yes
28935 elif test "x$enable_libssp" = "xyes"; then
28936 gcc_cv_libc_provides_ssp=no
28937 else
28938 case "$target" in
28939 *-*-musl*)
28940 # All versions of musl provide stack protector
28941 gcc_cv_libc_provides_ssp=yes;;
28942 *-*-linux* | *-*-kfreebsd*-gnu)
28943 # glibc 2.4 and later provides __stack_chk_fail and
28944 # either __stack_chk_guard, or TLS access to stack guard canary.
28945
28946 if test $glibc_version_major -gt 2 \
28947 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28948 gcc_cv_libc_provides_ssp=yes
28949 else
28950
28951 if test -f $target_header_dir/features.h \
28952 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28953 $target_header_dir/features.h > /dev/null; then
28954 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28955 $target_header_dir/features.h > /dev/null && \
28956 test -f $target_header_dir/bits/uClibc_config.h && \
28957 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28958 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28959 gcc_cv_libc_provides_ssp=yes
28960 fi
28961 # all versions of Bionic support stack protector
28962 elif test -f $target_header_dir/sys/cdefs.h \
28963 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28964 $target_header_dir/sys/cdefs.h > /dev/null; then
28965 gcc_cv_libc_provides_ssp=yes
28966 fi
28967 fi
28968 ;;
28969 *-*-gnu*)
28970 # Avoid complicated tests (see
28971 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28972 # simply assert that glibc does provide this, which is true for all
28973 # realistically usable GNU/Hurd configurations.
28974 # All supported versions of musl provide it as well
28975 gcc_cv_libc_provides_ssp=yes;;
28976 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28977 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28978 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28979 gcc_cv_libc_provides_ssp=yes
28980 else
28981 echo "no __stack_chk_fail on this target"
28982 fi
28983
28984 ;;
28985 *) gcc_cv_libc_provides_ssp=no ;;
28986 esac
28987 fi
28988 fi
28989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28990 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28991
28992 if test x$gcc_cv_libc_provides_ssp = xyes; then
28993
28994 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28995
28996 fi
28997
28998 # Check whether --enable-default-ssp was given.
28999 # Check whether --enable-default-ssp was given.
29000 if test "${enable_default_ssp+set}" = set; then :
29001 enableval=$enable_default_ssp;
29002 if test x$gcc_cv_libc_provides_ssp = xyes; then
29003 case "$target" in
29004 ia64*-*-*) enable_default_ssp=no ;;
29005 *) enable_default_ssp=$enableval ;;
29006 esac
29007 else
29008 enable_default_ssp=no
29009 fi
29010 else
29011 enable_default_ssp=no
29012 fi
29013
29014 if test x$enable_default_ssp = xyes ; then
29015
29016 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29017
29018 fi
29019
29020
29021 # Test for <sys/sdt.h> on the target.
29022
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29024 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29025 have_sys_sdt_h=no
29026 if test -f $target_header_dir/sys/sdt.h; then
29027 have_sys_sdt_h=yes
29028
29029 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29030
29031 fi
29032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29033 $as_echo "$have_sys_sdt_h" >&6; }
29034
29035 # Check if TFmode long double should be used by default or not.
29036 # Some glibc targets used DFmode long double, but with glibc 2.4
29037 # and later they can use TFmode.
29038 case "$target" in
29039 powerpc*-*-linux* | \
29040 sparc*-*-linux* | \
29041 s390*-*-linux* | \
29042 alpha*-*-linux*)
29043
29044 # Check whether --with-long-double-128 was given.
29045 if test "${with_long_double_128+set}" = set; then :
29046 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29047 else
29048
29049 if test $glibc_version_major -gt 2 \
29050 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29051 gcc_cv_target_ldbl128=yes
29052 else
29053
29054 gcc_cv_target_ldbl128=no
29055 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29056 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29057 && gcc_cv_target_ldbl128=yes
29058
29059 fi
29060 fi
29061
29062 ;;
29063 esac
29064 if test x$gcc_cv_target_ldbl128 = xyes; then
29065
29066 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29067
29068 fi
29069
29070 # Check if TFmode long double target should use the IBM extended double or IEEE
29071 # 128-bit floating point formats if long doubles are 128-bits long. The long
29072 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29073 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29074 # libgcc.
29075
29076 # Check whether --with-long-double-format was given.
29077 if test "${with_long_double_format+set}" = set; then :
29078 withval=$with_long_double_format;
29079 case "$target:$with_long_double_format" in
29080 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29081 :
29082 ;;
29083 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29084 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29085 case "$with_cpu" in
29086 power7 | power8 | power9 | power1*)
29087 :
29088 ;;
29089 *)
29090 as_fn_error "Configuration option --with-long-double-format is only \
29091 supported if the default cpu is power7 or newer" "$LINENO" 5
29092 with_long_double_format=""
29093 ;;
29094 esac
29095 ;;
29096 xpowerpc64*-*-linux*:*)
29097 as_fn_error "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29098 with_long_double_format=""
29099 ;;
29100 *)
29101 as_fn_error "Configure option --with-long-double-format is only supported \
29102 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29103 with_long_double_format=""
29104 ;;
29105 esac
29106 fi
29107
29108
29109 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29110 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29111 gcc_cv_libc_provides_hwcap_in_tcb=no
29112 case "$target" in
29113 powerpc*-*-linux*)
29114
29115 if test $glibc_version_major -gt 2 \
29116 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29117 gcc_cv_libc_provides_hwcap_in_tcb=yes
29118 fi
29119 ;;
29120 esac
29121 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29122
29123 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29124
29125 fi
29126
29127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29128 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29129 gcc_cv_target_dl_iterate_phdr=unknown
29130 case "$target" in
29131 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29132 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29133 # libdl there, both complicating its use and breaking compatibility
29134 # between Solaris 10 updates.
29135 *-*-solaris2.1[1-9]*)
29136 # <link.h> needs both a dl_iterate_phdr declaration and support for
29137 # compilation with largefile support.
29138 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29139 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29140 gcc_cv_target_dl_iterate_phdr=yes
29141 else
29142 gcc_cv_target_dl_iterate_phdr=no
29143 fi
29144 ;;
29145 *-*-dragonfly* | *-*-freebsd*)
29146 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29147 gcc_cv_target_dl_iterate_phdr=yes
29148 else
29149 gcc_cv_target_dl_iterate_phdr=no
29150 fi
29151 ;;
29152 *-linux-musl*)
29153 gcc_cv_target_dl_iterate_phdr=yes
29154 ;;
29155 esac
29156
29157 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29158
29159 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29160
29161 fi
29162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29163 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29164
29165 # We no longer support different GC mechanisms. Emit an error if
29166 # the user configures with --with-gc.
29167
29168 # Check whether --with-gc was given.
29169 if test "${with_gc+set}" = set; then :
29170 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29171 fi
29172
29173
29174 # Libraries to use on the host. This will normally be set by the top
29175 # level Makefile. Here we simply capture the value for our Makefile.
29176 if test -z "${HOST_LIBS+set}"; then
29177 HOST_LIBS=
29178 fi
29179
29180
29181 # Use the system's zlib library.
29182
29183 # Use the system's zlib library.
29184 zlibdir="-L\$(top_builddir)/../zlib"
29185 zlibinc="-I\$(top_srcdir)/../zlib"
29186
29187 # Check whether --with-system-zlib was given.
29188 if test "${with_system_zlib+set}" = set; then :
29189 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29190 zlibdir=
29191 zlibinc=
29192 fi
29193
29194 fi
29195
29196
29197
29198
29199
29200
29201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29202 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29203 # Check whether --enable-maintainer-mode was given.
29204 if test "${enable_maintainer_mode+set}" = set; then :
29205 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29206 else
29207 maintainer_mode=no
29208 fi
29209
29210
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29212 $as_echo "$maintainer_mode" >&6; }
29213
29214 if test "$maintainer_mode" = "yes"; then
29215 MAINT=''
29216 else
29217 MAINT='#'
29218 fi
29219
29220
29221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29222 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29223 # Check whether --enable-link-mutex was given.
29224 if test "${enable_link_mutex+set}" = set; then :
29225 enableval=$enable_link_mutex; do_link_mutex=$enableval
29226 else
29227 do_link_mutex=no
29228 fi
29229
29230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29231 $as_echo "$do_link_mutex" >&6; }
29232
29233 if test "$do_link_mutex" = "yes"; then
29234 DO_LINK_MUTEX=true
29235 else
29236 DO_LINK_MUTEX=false
29237 fi
29238
29239
29240 # --------------
29241 # Language hooks
29242 # --------------
29243
29244 # Make empty files to contain the specs and options for each language.
29245 # Then add #include lines to for a compiler that has specs and/or options.
29246
29247 subdirs=
29248 lang_opt_files=
29249 lang_specs_files=
29250 lang_tree_files=
29251 # These (without "all_") are set in each config-lang.in.
29252 # `language' must be a single word so is spelled singularly.
29253 all_languages=
29254 all_compilers=
29255 all_outputs='Makefile'
29256 # List of language makefile fragments.
29257 all_lang_makefrags=
29258 # Additional files for gengtype
29259 all_gtfiles="$target_gtfiles"
29260
29261 # These are the languages that are set in --enable-languages,
29262 # and are available in the GCC tree.
29263 all_selected_languages=
29264
29265 # Add the language fragments.
29266 # Languages are added via two mechanisms. Some information must be
29267 # recorded in makefile variables, these are defined in config-lang.in.
29268 # We accumulate them and plug them into the main Makefile.
29269 # The other mechanism is a set of hooks for each of the main targets
29270 # like `clean', `install', etc.
29271
29272 language_hooks="Make-hooks"
29273
29274 for lang in ${srcdir}/*/config-lang.in
29275 do
29276 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29277
29278 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29279 if test "x$lang_alias" = x
29280 then
29281 echo "$lang doesn't set \$language." 1>&2
29282 exit 1
29283 fi
29284 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29285 subdirs="$subdirs $subdir"
29286
29287 # $gcc_subdir is where the gcc integration files are to be found
29288 # for a language, both for internal compiler purposes (compiler
29289 # sources implementing front-end to GCC tree converters), and for
29290 # build infrastructure purposes (Make-lang.in, etc.)
29291 #
29292 # This will be <subdir> (relative to $srcdir) if a line like
29293 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29294 # is found in <langdir>/config-lang.in, and will remain <langdir>
29295 # otherwise.
29296 #
29297 # Except for the language alias (fetched above), the regular
29298 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29299 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29300 # only this and the language alias.
29301
29302 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29303 if [ "$gcc_subdir" = "" ]; then
29304 gcc_subdir="$subdir"
29305 fi
29306
29307 case ",$enable_languages," in
29308 *,$lang_alias,*)
29309 all_selected_languages="$all_selected_languages $lang_alias"
29310 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29311 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29312 fi
29313 ;;
29314 esac
29315
29316 language=
29317 boot_language=
29318 compilers=
29319 outputs=
29320 gtfiles=
29321 subdir_requires=
29322 . ${srcdir}/$gcc_subdir/config-lang.in
29323 if test "x$language" = x
29324 then
29325 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29326 exit 1
29327 fi
29328
29329 ok=:
29330 case ",$enable_languages," in
29331 *,$lang_alias,*) ;;
29332 *)
29333 for i in $subdir_requires; do
29334 test -f "${srcdir}/$i/config-lang.in" && continue
29335 ok=false
29336 break
29337 done
29338 ;;
29339 esac
29340 $ok || continue
29341
29342 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29343 if test -f $srcdir/$gcc_subdir/lang.opt; then
29344 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29345 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29346 fi
29347 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29348 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29349 fi
29350 all_languages="$all_languages $language"
29351 all_compilers="$all_compilers $compilers"
29352 all_outputs="$all_outputs $outputs"
29353 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29354 case ",$enable_languages," in
29355 *,lto,*)
29356
29357 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29358
29359 enable_lto=yes
29360
29361 ;;
29362 *) ;;
29363 esac
29364 done
29365
29366 check_languages=
29367 for language in $all_selected_languages
29368 do
29369 check_languages="$check_languages check-$language"
29370 done
29371
29372 selftest_languages=
29373 for language in $all_selected_languages
29374 do
29375 selftest_languages="$selftest_languages selftest-$language"
29376 done
29377
29378 # We link each language in with a set of hooks, reached indirectly via
29379 # lang.${target}. Only do so for selected languages.
29380
29381 rm -f Make-hooks
29382 touch Make-hooks
29383 target_list="all.cross start.encap rest.encap tags \
29384 install-common install-man install-info install-pdf install-html dvi \
29385 pdf html uninstall info man srcextra srcman srcinfo \
29386 mostlyclean clean distclean maintainer-clean install-plugin"
29387
29388 for t in $target_list
29389 do
29390 x=
29391 for lang in $all_selected_languages
29392 do
29393 x="$x $lang.$t"
29394 done
29395 echo "lang.$t: $x" >> Make-hooks
29396 done
29397
29398 # --------
29399 # Option include files
29400 # --------
29401
29402 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29403 option_includes="option-includes.mk"
29404
29405
29406 # --------
29407 # UNSORTED
29408 # --------
29409
29410 # Create .gdbinit.
29411
29412 echo "dir ." > .gdbinit
29413 echo "dir ${srcdir}" >> .gdbinit
29414 if test x$gdb_needs_out_file_path = xyes
29415 then
29416 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29417 fi
29418 if test "x$subdirs" != x; then
29419 for s in $subdirs
29420 do
29421 echo "dir ${srcdir}/$s" >> .gdbinit
29422 done
29423 fi
29424 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29425 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29426
29427 # Put a breakpoint on __asan_report_error to help with debugging buffer
29428 # overflow.
29429 case "$CFLAGS" in
29430 *-fsanitize=address*)
29431 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29432 ;;
29433 esac
29434
29435 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29436
29437
29438
29439 # Find a directory in which to install a shared libgcc.
29440
29441 # Check whether --enable-version-specific-runtime-libs was given.
29442 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29443 enableval=$enable_version_specific_runtime_libs;
29444 fi
29445
29446
29447 # Substitute configuration variables
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
29488
29489
29490
29491
29492
29493
29494
29495
29496
29497
29498
29499
29500
29501
29502
29503
29504
29505
29506
29507
29508
29509
29510
29511 # Echo link setup.
29512 if test x${build} = x${host} ; then
29513 if test x${host} = x${target} ; then
29514 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29515 else
29516 echo "Links are now set up to build a cross-compiler" 1>&2
29517 echo " from ${host} to ${target}." 1>&2
29518 fi
29519 else
29520 if test x${host} = x${target} ; then
29521 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29522 echo " for ${target}." 1>&2
29523 else
29524 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29525 echo " from ${host} to ${target}." 1>&2
29526 fi
29527 fi
29528
29529
29530
29531
29532
29533
29534 if test "x${ISLLIBS}" != "x" ; then
29535
29536 $as_echo "#define HAVE_isl 1" >>confdefs.h
29537
29538 fi
29539
29540 # Check for plugin support
29541 # Check whether --enable-plugin was given.
29542 if test "${enable_plugin+set}" = set; then :
29543 enableval=$enable_plugin; enable_plugin=$enableval
29544 else
29545 enable_plugin=yes; default_plugin=yes
29546 fi
29547
29548
29549 pluginlibs=
29550 plugin_check=yes
29551
29552 case "${host}" in
29553 *-*-mingw*)
29554 # Since plugin support under MinGW is not as straightforward as on
29555 # other platforms (e.g., we have to link import library, etc), we
29556 # only enable it if explicitly requested.
29557 if test x"$default_plugin" = x"yes"; then
29558 enable_plugin=no
29559 elif test x"$enable_plugin" = x"yes"; then
29560 # Use make's target variable to derive import library name.
29561 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29562 plugin_check=no
29563 fi
29564 ;;
29565 *-*-darwin*)
29566 if test x$build = x$host; then
29567 export_sym_check="nm${exeext} -g"
29568 elif test x$host = x$target; then
29569 export_sym_check="$gcc_cv_nm -g"
29570 else
29571 export_sym_check=
29572 fi
29573 ;;
29574 *)
29575 if test x$build = x$host; then
29576 export_sym_check="objdump${exeext} -T"
29577 elif test x$host = x$target; then
29578 export_sym_check="$gcc_cv_objdump -T"
29579 else
29580 export_sym_check=
29581 fi
29582 ;;
29583 esac
29584
29585 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
29586
29587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29588 $as_echo_n "checking for exported symbols... " >&6; }
29589 if test "x$export_sym_check" != x; then
29590 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29591 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29592 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29593 : # No need to use a flag
29594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29595 $as_echo "yes" >&6; }
29596 else
29597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29598 $as_echo "yes" >&6; }
29599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29600 $as_echo_n "checking for -rdynamic... " >&6; }
29601 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29602 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29603 plugin_rdynamic=yes
29604 pluginlibs="-rdynamic"
29605 else
29606 plugin_rdynamic=no
29607 enable_plugin=no
29608 fi
29609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29610 $as_echo "$plugin_rdynamic" >&6; }
29611 fi
29612 else
29613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29614 $as_echo "unable to check" >&6; }
29615 fi
29616
29617 # Check -ldl
29618 saved_LIBS="$LIBS"
29619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29620 $as_echo_n "checking for library containing dlopen... " >&6; }
29621 if test "${ac_cv_search_dlopen+set}" = set; then :
29622 $as_echo_n "(cached) " >&6
29623 else
29624 ac_func_search_save_LIBS=$LIBS
29625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29626 /* end confdefs.h. */
29627
29628 /* Override any GCC internal prototype to avoid an error.
29629 Use char because int might match the return type of a GCC
29630 builtin and then its argument prototype would still apply. */
29631 #ifdef __cplusplus
29632 extern "C"
29633 #endif
29634 char dlopen ();
29635 int
29636 main ()
29637 {
29638 return dlopen ();
29639 ;
29640 return 0;
29641 }
29642 _ACEOF
29643 for ac_lib in '' dl; do
29644 if test -z "$ac_lib"; then
29645 ac_res="none required"
29646 else
29647 ac_res=-l$ac_lib
29648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29649 fi
29650 if ac_fn_cxx_try_link "$LINENO"; then :
29651 ac_cv_search_dlopen=$ac_res
29652 fi
29653 rm -f core conftest.err conftest.$ac_objext \
29654 conftest$ac_exeext
29655 if test "${ac_cv_search_dlopen+set}" = set; then :
29656 break
29657 fi
29658 done
29659 if test "${ac_cv_search_dlopen+set}" = set; then :
29660
29661 else
29662 ac_cv_search_dlopen=no
29663 fi
29664 rm conftest.$ac_ext
29665 LIBS=$ac_func_search_save_LIBS
29666 fi
29667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29668 $as_echo "$ac_cv_search_dlopen" >&6; }
29669 ac_res=$ac_cv_search_dlopen
29670 if test "$ac_res" != no; then :
29671 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29672
29673 fi
29674
29675 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29676 pluginlibs="$pluginlibs -ldl"
29677 fi
29678 LIBS="$saved_LIBS"
29679
29680 # Check that we can build shared objects with -fPIC -shared
29681 saved_LDFLAGS="$LDFLAGS"
29682 saved_CFLAGS="$CFLAGS"
29683 case "${host}" in
29684 *-*-darwin*)
29685 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29686 CFLAGS="$CFLAGS -fPIC"
29687 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29688 ;;
29689 *)
29690 CFLAGS="$CFLAGS -fPIC"
29691 LDFLAGS="$LDFLAGS -fPIC -shared"
29692 ;;
29693 esac
29694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29695 $as_echo_n "checking for -fPIC -shared... " >&6; }
29696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29697 /* end confdefs.h. */
29698 extern int X;
29699 int
29700 main ()
29701 {
29702 return X == 0;
29703 ;
29704 return 0;
29705 }
29706 _ACEOF
29707 if ac_fn_cxx_try_link "$LINENO"; then :
29708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29709 $as_echo "yes" >&6; }; have_pic_shared=yes
29710 else
29711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29712 $as_echo "no" >&6; }; have_pic_shared=no
29713 fi
29714 rm -f core conftest.err conftest.$ac_objext \
29715 conftest$ac_exeext conftest.$ac_ext
29716 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29717 pluginlibs=
29718 enable_plugin=no
29719 fi
29720 LDFLAGS="$saved_LDFLAGS"
29721 CFLAGS="$saved_CFLAGS"
29722
29723 # If plugin support had been requested but not available, fail.
29724 if test x"$enable_plugin" = x"no" ; then
29725 if test x"$default_plugin" != x"yes"; then
29726 as_fn_error "
29727 Building GCC with plugin support requires a host that supports
29728 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29729 fi
29730 fi
29731 fi
29732
29733
29734
29735 if test x"$enable_plugin" = x"yes"; then
29736
29737 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29738
29739 fi
29740
29741
29742 # Enable --enable-host-shared
29743 # Check whether --enable-host-shared was given.
29744 if test "${enable_host_shared+set}" = set; then :
29745 enableval=$enable_host_shared; PICFLAG=-fPIC
29746 else
29747 PICFLAG=
29748 fi
29749
29750
29751
29752
29753
29754 # Check whether --enable-libquadmath-support was given.
29755 if test "${enable_libquadmath_support+set}" = set; then :
29756 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29757 else
29758 ENABLE_LIBQUADMATH_SUPPORT=yes
29759 fi
29760
29761 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29762
29763 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29764
29765 fi
29766
29767
29768 # Specify what hash style to use by default.
29769
29770 # Check whether --with-linker-hash-style was given.
29771 if test "${with_linker_hash_style+set}" = set; then :
29772 withval=$with_linker_hash_style; case x"$withval" in
29773 xsysv)
29774 LINKER_HASH_STYLE=sysv
29775 ;;
29776 xgnu)
29777 LINKER_HASH_STYLE=gnu
29778 ;;
29779 xboth)
29780 LINKER_HASH_STYLE=both
29781 ;;
29782 *)
29783 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29784 ;;
29785 esac
29786 else
29787 LINKER_HASH_STYLE=''
29788 fi
29789
29790 if test x"${LINKER_HASH_STYLE}" != x; then
29791
29792 cat >>confdefs.h <<_ACEOF
29793 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29794 _ACEOF
29795
29796 fi
29797
29798 # Specify what should be the default of -fdiagnostics-color option.
29799
29800 # Check whether --with-diagnostics-color was given.
29801 if test "${with_diagnostics_color+set}" = set; then :
29802 withval=$with_diagnostics_color; case x"$withval" in
29803 xnever)
29804 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29805 ;;
29806 xauto)
29807 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29808 ;;
29809 xauto-if-env)
29810 DIAGNOSTICS_COLOR_DEFAULT=-1
29811 ;;
29812 xalways)
29813 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29814 ;;
29815 *)
29816 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29817 ;;
29818 esac
29819 else
29820 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29821 fi
29822
29823
29824 cat >>confdefs.h <<_ACEOF
29825 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29826 _ACEOF
29827
29828
29829 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29830 # of jit/jit-playback.c.
29831 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
29832 echo "gcc_driver_version: ${gcc_driver_version}"
29833 cat > gcc-driver-name.h <<EOF
29834 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
29835 EOF
29836
29837 # Check whether --enable-default-pie was given.
29838 # Check whether --enable-default-pie was given.
29839 if test "${enable_default_pie+set}" = set; then :
29840 enableval=$enable_default_pie; enable_default_pie=$enableval
29841 else
29842 enable_default_pie=no
29843 fi
29844
29845 if test x$enable_default_pie = xyes ; then
29846
29847 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29848
29849 fi
29850
29851
29852 # Check if -fno-PIE works.
29853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29854 $as_echo_n "checking for -fno-PIE option... " >&6; }
29855 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29856 $as_echo_n "(cached) " >&6
29857 else
29858 saved_CXXFLAGS="$CXXFLAGS"
29859 CXXFLAGS="$CXXFLAGS -fno-PIE"
29860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29861 /* end confdefs.h. */
29862 int main(void) {return 0;}
29863 _ACEOF
29864 if ac_fn_cxx_try_compile "$LINENO"; then :
29865 gcc_cv_c_no_fpie=yes
29866 else
29867 gcc_cv_c_no_fpie=no
29868 fi
29869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29870 CXXFLAGS="$saved_CXXFLAGS"
29871 fi
29872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29873 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29874 if test "$gcc_cv_c_no_fpie" = "yes"; then
29875 NO_PIE_CFLAGS="-fno-PIE"
29876 fi
29877
29878
29879 # Check if -no-pie works.
29880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29881 $as_echo_n "checking for -no-pie option... " >&6; }
29882 if test "${gcc_cv_no_pie+set}" = set; then :
29883 $as_echo_n "(cached) " >&6
29884 else
29885 saved_LDFLAGS="$LDFLAGS"
29886 LDFLAGS="$LDFLAGS -no-pie"
29887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29888 /* end confdefs.h. */
29889 int main(void) {return 0;}
29890 _ACEOF
29891 if ac_fn_cxx_try_link "$LINENO"; then :
29892 gcc_cv_no_pie=yes
29893 else
29894 gcc_cv_no_pie=no
29895 fi
29896 rm -f core conftest.err conftest.$ac_objext \
29897 conftest$ac_exeext conftest.$ac_ext
29898 LDFLAGS="$saved_LDFLAGS"
29899 fi
29900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29901 $as_echo "$gcc_cv_no_pie" >&6; }
29902 if test "$gcc_cv_no_pie" = "yes"; then
29903 NO_PIE_FLAG="-no-pie"
29904 fi
29905
29906
29907 # Check linker supports '-z bndplt'
29908 ld_bndplt_support=no
29909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29910 $as_echo_n "checking linker -z bndplt option... " >&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_bndplt_support=yes
29915 fi
29916 elif test x$gcc_cv_ld != x; then
29917 # Check if linker supports -a bndplt option
29918 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
29919 ld_bndplt_support=yes
29920 fi
29921 fi
29922 fi
29923 if test x"$ld_bndplt_support" = xyes; then
29924
29925 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29926
29927 fi
29928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29929 $as_echo "$ld_bndplt_support" >&6; }
29930
29931 # Check linker supports '--push-state'/'--pop-state'
29932 ld_pushpopstate_support=no
29933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29934 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29935 if test x"$ld_is_gold" = xno; then
29936 if test $in_tree_ld = yes ; then
29937 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
29938 ld_pushpopstate_support=yes
29939 fi
29940 elif test x$gcc_cv_ld != x; then
29941 # Check if linker supports --push-state/--pop-state options
29942 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
29943 ld_pushpopstate_support=yes
29944 fi
29945 fi
29946 fi
29947 if test x"$ld_pushpopstate_support" = xyes; then
29948
29949 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29950
29951 fi
29952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29953 $as_echo "$ld_pushpopstate_support" >&6; }
29954
29955 # Configure the subdirectories
29956 # AC_CONFIG_SUBDIRS($subdirs)
29957
29958 # Create the Makefile
29959 # and configure language subdirectories
29960 ac_config_files="$ac_config_files $all_outputs"
29961
29962
29963 ac_config_commands="$ac_config_commands default"
29964
29965 cat >confcache <<\_ACEOF
29966 # This file is a shell script that caches the results of configure
29967 # tests run on this system so they can be shared between configure
29968 # scripts and configure runs, see configure's option --config-cache.
29969 # It is not useful on other systems. If it contains results you don't
29970 # want to keep, you may remove or edit it.
29971 #
29972 # config.status only pays attention to the cache file if you give it
29973 # the --recheck option to rerun configure.
29974 #
29975 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29976 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29977 # following values.
29978
29979 _ACEOF
29980
29981 # The following way of writing the cache mishandles newlines in values,
29982 # but we know of no workaround that is simple, portable, and efficient.
29983 # So, we kill variables containing newlines.
29984 # Ultrix sh set writes to stderr and can't be redirected directly,
29985 # and sets the high bit in the cache file unless we assign to the vars.
29986 (
29987 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29988 eval ac_val=\$$ac_var
29989 case $ac_val in #(
29990 *${as_nl}*)
29991 case $ac_var in #(
29992 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29993 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29994 esac
29995 case $ac_var in #(
29996 _ | IFS | as_nl) ;; #(
29997 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29998 *) { eval $ac_var=; unset $ac_var;} ;;
29999 esac ;;
30000 esac
30001 done
30002
30003 (set) 2>&1 |
30004 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30005 *${as_nl}ac_space=\ *)
30006 # `set' does not quote correctly, so add quotes: double-quote
30007 # substitution turns \\\\ into \\, and sed turns \\ into \.
30008 sed -n \
30009 "s/'/'\\\\''/g;
30010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30011 ;; #(
30012 *)
30013 # `set' quotes correctly as required by POSIX, so do not add quotes.
30014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30015 ;;
30016 esac |
30017 sort
30018 ) |
30019 sed '
30020 /^ac_cv_env_/b end
30021 t clear
30022 :clear
30023 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30024 t end
30025 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30026 :end' >>confcache
30027 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30028 if test -w "$cache_file"; then
30029 test "x$cache_file" != "x/dev/null" &&
30030 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30031 $as_echo "$as_me: updating cache $cache_file" >&6;}
30032 cat confcache >$cache_file
30033 else
30034 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30035 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30036 fi
30037 fi
30038 rm -f confcache
30039
30040 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30041 # Let make expand exec_prefix.
30042 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30043
30044 DEFS=-DHAVE_CONFIG_H
30045
30046 ac_libobjs=
30047 ac_ltlibobjs=
30048 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30049 # 1. Remove the extension, and $U if already installed.
30050 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30051 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30053 # will be set to the directory where LIBOBJS objects are built.
30054 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30055 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30056 done
30057 LIBOBJS=$ac_libobjs
30058
30059 LTLIBOBJS=$ac_ltlibobjs
30060
30061
30062
30063
30064 : ${CONFIG_STATUS=./config.status}
30065 ac_write_fail=0
30066 ac_clean_files_save=$ac_clean_files
30067 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30069 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30070 as_write_fail=0
30071 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30072 #! $SHELL
30073 # Generated by $as_me.
30074 # Run this file to recreate the current configuration.
30075 # Compiler output produced by configure, useful for debugging
30076 # configure, is in config.log if it exists.
30077
30078 debug=false
30079 ac_cs_recheck=false
30080 ac_cs_silent=false
30081
30082 SHELL=\${CONFIG_SHELL-$SHELL}
30083 export SHELL
30084 _ASEOF
30085 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30086 ## -------------------- ##
30087 ## M4sh Initialization. ##
30088 ## -------------------- ##
30089
30090 # Be more Bourne compatible
30091 DUALCASE=1; export DUALCASE # for MKS sh
30092 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30093 emulate sh
30094 NULLCMD=:
30095 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30096 # is contrary to our usage. Disable this feature.
30097 alias -g '${1+"$@"}'='"$@"'
30098 setopt NO_GLOB_SUBST
30099 else
30100 case `(set -o) 2>/dev/null` in #(
30101 *posix*) :
30102 set -o posix ;; #(
30103 *) :
30104 ;;
30105 esac
30106 fi
30107
30108
30109 as_nl='
30110 '
30111 export as_nl
30112 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30113 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30116 # Prefer a ksh shell builtin over an external printf program on Solaris,
30117 # but without wasting forks for bash or zsh.
30118 if test -z "$BASH_VERSION$ZSH_VERSION" \
30119 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30120 as_echo='print -r --'
30121 as_echo_n='print -rn --'
30122 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30123 as_echo='printf %s\n'
30124 as_echo_n='printf %s'
30125 else
30126 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30127 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30128 as_echo_n='/usr/ucb/echo -n'
30129 else
30130 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30131 as_echo_n_body='eval
30132 arg=$1;
30133 case $arg in #(
30134 *"$as_nl"*)
30135 expr "X$arg" : "X\\(.*\\)$as_nl";
30136 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30137 esac;
30138 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30139 '
30140 export as_echo_n_body
30141 as_echo_n='sh -c $as_echo_n_body as_echo'
30142 fi
30143 export as_echo_body
30144 as_echo='sh -c $as_echo_body as_echo'
30145 fi
30146
30147 # The user is always right.
30148 if test "${PATH_SEPARATOR+set}" != set; then
30149 PATH_SEPARATOR=:
30150 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30151 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30152 PATH_SEPARATOR=';'
30153 }
30154 fi
30155
30156
30157 # IFS
30158 # We need space, tab and new line, in precisely that order. Quoting is
30159 # there to prevent editors from complaining about space-tab.
30160 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30161 # splitting by setting IFS to empty value.)
30162 IFS=" "" $as_nl"
30163
30164 # Find who we are. Look in the path if we contain no directory separator.
30165 case $0 in #((
30166 *[\\/]* ) as_myself=$0 ;;
30167 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30168 for as_dir in $PATH
30169 do
30170 IFS=$as_save_IFS
30171 test -z "$as_dir" && as_dir=.
30172 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30173 done
30174 IFS=$as_save_IFS
30175
30176 ;;
30177 esac
30178 # We did not find ourselves, most probably we were run as `sh COMMAND'
30179 # in which case we are not to be found in the path.
30180 if test "x$as_myself" = x; then
30181 as_myself=$0
30182 fi
30183 if test ! -f "$as_myself"; then
30184 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30185 exit 1
30186 fi
30187
30188 # Unset variables that we do not need and which cause bugs (e.g. in
30189 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30190 # suppresses any "Segmentation fault" message there. '((' could
30191 # trigger a bug in pdksh 5.2.14.
30192 for as_var in BASH_ENV ENV MAIL MAILPATH
30193 do eval test x\${$as_var+set} = xset \
30194 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30195 done
30196 PS1='$ '
30197 PS2='> '
30198 PS4='+ '
30199
30200 # NLS nuisances.
30201 LC_ALL=C
30202 export LC_ALL
30203 LANGUAGE=C
30204 export LANGUAGE
30205
30206 # CDPATH.
30207 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30208
30209
30210 # as_fn_error ERROR [LINENO LOG_FD]
30211 # ---------------------------------
30212 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30213 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30214 # script with status $?, using 1 if that was 0.
30215 as_fn_error ()
30216 {
30217 as_status=$?; test $as_status -eq 0 && as_status=1
30218 if test "$3"; then
30219 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30220 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30221 fi
30222 $as_echo "$as_me: error: $1" >&2
30223 as_fn_exit $as_status
30224 } # as_fn_error
30225
30226
30227 # as_fn_set_status STATUS
30228 # -----------------------
30229 # Set $? to STATUS, without forking.
30230 as_fn_set_status ()
30231 {
30232 return $1
30233 } # as_fn_set_status
30234
30235 # as_fn_exit STATUS
30236 # -----------------
30237 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30238 as_fn_exit ()
30239 {
30240 set +e
30241 as_fn_set_status $1
30242 exit $1
30243 } # as_fn_exit
30244
30245 # as_fn_unset VAR
30246 # ---------------
30247 # Portably unset VAR.
30248 as_fn_unset ()
30249 {
30250 { eval $1=; unset $1;}
30251 }
30252 as_unset=as_fn_unset
30253 # as_fn_append VAR VALUE
30254 # ----------------------
30255 # Append the text in VALUE to the end of the definition contained in VAR. Take
30256 # advantage of any shell optimizations that allow amortized linear growth over
30257 # repeated appends, instead of the typical quadratic growth present in naive
30258 # implementations.
30259 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30260 eval 'as_fn_append ()
30261 {
30262 eval $1+=\$2
30263 }'
30264 else
30265 as_fn_append ()
30266 {
30267 eval $1=\$$1\$2
30268 }
30269 fi # as_fn_append
30270
30271 # as_fn_arith ARG...
30272 # ------------------
30273 # Perform arithmetic evaluation on the ARGs, and store the result in the
30274 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30275 # must be portable across $(()) and expr.
30276 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30277 eval 'as_fn_arith ()
30278 {
30279 as_val=$(( $* ))
30280 }'
30281 else
30282 as_fn_arith ()
30283 {
30284 as_val=`expr "$@" || test $? -eq 1`
30285 }
30286 fi # as_fn_arith
30287
30288
30289 if expr a : '\(a\)' >/dev/null 2>&1 &&
30290 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30291 as_expr=expr
30292 else
30293 as_expr=false
30294 fi
30295
30296 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30297 as_basename=basename
30298 else
30299 as_basename=false
30300 fi
30301
30302 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30303 as_dirname=dirname
30304 else
30305 as_dirname=false
30306 fi
30307
30308 as_me=`$as_basename -- "$0" ||
30309 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30310 X"$0" : 'X\(//\)$' \| \
30311 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30312 $as_echo X/"$0" |
30313 sed '/^.*\/\([^/][^/]*\)\/*$/{
30314 s//\1/
30315 q
30316 }
30317 /^X\/\(\/\/\)$/{
30318 s//\1/
30319 q
30320 }
30321 /^X\/\(\/\).*/{
30322 s//\1/
30323 q
30324 }
30325 s/.*/./; q'`
30326
30327 # Avoid depending upon Character Ranges.
30328 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30329 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30330 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30331 as_cr_digits='0123456789'
30332 as_cr_alnum=$as_cr_Letters$as_cr_digits
30333
30334 ECHO_C= ECHO_N= ECHO_T=
30335 case `echo -n x` in #(((((
30336 -n*)
30337 case `echo 'xy\c'` in
30338 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30339 xy) ECHO_C='\c';;
30340 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30341 ECHO_T=' ';;
30342 esac;;
30343 *)
30344 ECHO_N='-n';;
30345 esac
30346
30347 rm -f conf$$ conf$$.exe conf$$.file
30348 if test -d conf$$.dir; then
30349 rm -f conf$$.dir/conf$$.file
30350 else
30351 rm -f conf$$.dir
30352 mkdir conf$$.dir 2>/dev/null
30353 fi
30354 if (echo >conf$$.file) 2>/dev/null; then
30355 if ln -s conf$$.file conf$$ 2>/dev/null; then
30356 as_ln_s='ln -s'
30357 # ... but there are two gotchas:
30358 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30359 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30360 # In both cases, we have to default to `cp -p'.
30361 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30362 as_ln_s='cp -p'
30363 elif ln conf$$.file conf$$ 2>/dev/null; then
30364 as_ln_s=ln
30365 else
30366 as_ln_s='cp -p'
30367 fi
30368 else
30369 as_ln_s='cp -p'
30370 fi
30371 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30372 rmdir conf$$.dir 2>/dev/null
30373
30374
30375 # as_fn_mkdir_p
30376 # -------------
30377 # Create "$as_dir" as a directory, including parents if necessary.
30378 as_fn_mkdir_p ()
30379 {
30380
30381 case $as_dir in #(
30382 -*) as_dir=./$as_dir;;
30383 esac
30384 test -d "$as_dir" || eval $as_mkdir_p || {
30385 as_dirs=
30386 while :; do
30387 case $as_dir in #(
30388 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30389 *) as_qdir=$as_dir;;
30390 esac
30391 as_dirs="'$as_qdir' $as_dirs"
30392 as_dir=`$as_dirname -- "$as_dir" ||
30393 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30394 X"$as_dir" : 'X\(//\)[^/]' \| \
30395 X"$as_dir" : 'X\(//\)$' \| \
30396 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30397 $as_echo X"$as_dir" |
30398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30399 s//\1/
30400 q
30401 }
30402 /^X\(\/\/\)[^/].*/{
30403 s//\1/
30404 q
30405 }
30406 /^X\(\/\/\)$/{
30407 s//\1/
30408 q
30409 }
30410 /^X\(\/\).*/{
30411 s//\1/
30412 q
30413 }
30414 s/.*/./; q'`
30415 test -d "$as_dir" && break
30416 done
30417 test -z "$as_dirs" || eval "mkdir $as_dirs"
30418 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30419
30420
30421 } # as_fn_mkdir_p
30422 if mkdir -p . 2>/dev/null; then
30423 as_mkdir_p='mkdir -p "$as_dir"'
30424 else
30425 test -d ./-p && rmdir ./-p
30426 as_mkdir_p=false
30427 fi
30428
30429 if test -x / >/dev/null 2>&1; then
30430 as_test_x='test -x'
30431 else
30432 if ls -dL / >/dev/null 2>&1; then
30433 as_ls_L_option=L
30434 else
30435 as_ls_L_option=
30436 fi
30437 as_test_x='
30438 eval sh -c '\''
30439 if test -d "$1"; then
30440 test -d "$1/.";
30441 else
30442 case $1 in #(
30443 -*)set "./$1";;
30444 esac;
30445 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30446 ???[sx]*):;;*)false;;esac;fi
30447 '\'' sh
30448 '
30449 fi
30450 as_executable_p=$as_test_x
30451
30452 # Sed expression to map a string onto a valid CPP name.
30453 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30454
30455 # Sed expression to map a string onto a valid variable name.
30456 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30457
30458
30459 exec 6>&1
30460 ## ----------------------------------- ##
30461 ## Main body of $CONFIG_STATUS script. ##
30462 ## ----------------------------------- ##
30463 _ASEOF
30464 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30465
30466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30467 # Save the log message, to keep $0 and so on meaningful, and to
30468 # report actual input values of CONFIG_FILES etc. instead of their
30469 # values after options handling.
30470 ac_log="
30471 This file was extended by $as_me, which was
30472 generated by GNU Autoconf 2.64. Invocation command line was
30473
30474 CONFIG_FILES = $CONFIG_FILES
30475 CONFIG_HEADERS = $CONFIG_HEADERS
30476 CONFIG_LINKS = $CONFIG_LINKS
30477 CONFIG_COMMANDS = $CONFIG_COMMANDS
30478 $ $0 $@
30479
30480 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30481 "
30482
30483 _ACEOF
30484
30485 case $ac_config_files in *"
30486 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30487 esac
30488
30489 case $ac_config_headers in *"
30490 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30491 esac
30492
30493
30494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30495 # Files that config.status was made for.
30496 config_files="$ac_config_files"
30497 config_headers="$ac_config_headers"
30498 config_links="$ac_config_links"
30499 config_commands="$ac_config_commands"
30500
30501 _ACEOF
30502
30503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30504 ac_cs_usage="\
30505 \`$as_me' instantiates files and other configuration actions
30506 from templates according to the current configuration. Unless the files
30507 and actions are specified as TAGs, all are instantiated by default.
30508
30509 Usage: $0 [OPTION]... [TAG]...
30510
30511 -h, --help print this help, then exit
30512 -V, --version print version number and configuration settings, then exit
30513 -q, --quiet, --silent
30514 do not print progress messages
30515 -d, --debug don't remove temporary files
30516 --recheck update $as_me by reconfiguring in the same conditions
30517 --file=FILE[:TEMPLATE]
30518 instantiate the configuration file FILE
30519 --header=FILE[:TEMPLATE]
30520 instantiate the configuration header FILE
30521
30522 Configuration files:
30523 $config_files
30524
30525 Configuration headers:
30526 $config_headers
30527
30528 Configuration links:
30529 $config_links
30530
30531 Configuration commands:
30532 $config_commands
30533
30534 Report bugs to the package provider."
30535
30536 _ACEOF
30537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30538 ac_cs_version="\\
30539 config.status
30540 configured by $0, generated by GNU Autoconf 2.64,
30541 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30542
30543 Copyright (C) 2009 Free Software Foundation, Inc.
30544 This config.status script is free software; the Free Software Foundation
30545 gives unlimited permission to copy, distribute and modify it."
30546
30547 ac_pwd='$ac_pwd'
30548 srcdir='$srcdir'
30549 AWK='$AWK'
30550 test -n "\$AWK" || AWK=awk
30551 _ACEOF
30552
30553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30554 # The default lists apply if the user does not specify any file.
30555 ac_need_defaults=:
30556 while test $# != 0
30557 do
30558 case $1 in
30559 --*=*)
30560 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30561 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30562 ac_shift=:
30563 ;;
30564 *)
30565 ac_option=$1
30566 ac_optarg=$2
30567 ac_shift=shift
30568 ;;
30569 esac
30570
30571 case $ac_option in
30572 # Handling of the options.
30573 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30574 ac_cs_recheck=: ;;
30575 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30576 $as_echo "$ac_cs_version"; exit ;;
30577 --debug | --debu | --deb | --de | --d | -d )
30578 debug=: ;;
30579 --file | --fil | --fi | --f )
30580 $ac_shift
30581 case $ac_optarg in
30582 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30583 esac
30584 as_fn_append CONFIG_FILES " '$ac_optarg'"
30585 ac_need_defaults=false;;
30586 --header | --heade | --head | --hea )
30587 $ac_shift
30588 case $ac_optarg in
30589 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30590 esac
30591 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30592 ac_need_defaults=false;;
30593 --he | --h)
30594 # Conflict between --help and --header
30595 as_fn_error "ambiguous option: \`$1'
30596 Try \`$0 --help' for more information.";;
30597 --help | --hel | -h )
30598 $as_echo "$ac_cs_usage"; exit ;;
30599 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30600 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30601 ac_cs_silent=: ;;
30602
30603 # This is an error.
30604 -*) as_fn_error "unrecognized option: \`$1'
30605 Try \`$0 --help' for more information." ;;
30606
30607 *) as_fn_append ac_config_targets " $1"
30608 ac_need_defaults=false ;;
30609
30610 esac
30611 shift
30612 done
30613
30614 ac_configure_extra_args=
30615
30616 if $ac_cs_silent; then
30617 exec 6>/dev/null
30618 ac_configure_extra_args="$ac_configure_extra_args --silent"
30619 fi
30620
30621 _ACEOF
30622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30623 if \$ac_cs_recheck; then
30624 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30625 shift
30626 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30627 CONFIG_SHELL='$SHELL'
30628 export CONFIG_SHELL
30629 exec "\$@"
30630 fi
30631
30632 _ACEOF
30633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30634 exec 5>>config.log
30635 {
30636 echo
30637 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30638 ## Running $as_me. ##
30639 _ASBOX
30640 $as_echo "$ac_log"
30641 } >&5
30642
30643 _ACEOF
30644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30645 #
30646 # INIT-COMMANDS
30647 #
30648 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30649 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30650 subdirs='$subdirs'
30651
30652 _ACEOF
30653
30654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30655
30656 # Handling of arguments.
30657 for ac_config_target in $ac_config_targets
30658 do
30659 case $ac_config_target in
30660 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30661 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30662 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30663 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30664 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30665 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30666 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30667 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30668 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30669
30670 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30671 esac
30672 done
30673
30674
30675 # If the user did not use the arguments to specify the items to instantiate,
30676 # then the envvar interface is used. Set only those that are not.
30677 # We use the long form for the default assignment because of an extremely
30678 # bizarre bug on SunOS 4.1.3.
30679 if $ac_need_defaults; then
30680 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30681 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30682 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30683 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30684 fi
30685
30686 # Have a temporary directory for convenience. Make it in the build tree
30687 # simply because there is no reason against having it here, and in addition,
30688 # creating and moving files from /tmp can sometimes cause problems.
30689 # Hook for its removal unless debugging.
30690 # Note that there is a small window in which the directory will not be cleaned:
30691 # after its creation but before its name has been assigned to `$tmp'.
30692 $debug ||
30693 {
30694 tmp=
30695 trap 'exit_status=$?
30696 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30697 ' 0
30698 trap 'as_fn_exit 1' 1 2 13 15
30699 }
30700 # Create a (secure) tmp directory for tmp files.
30701
30702 {
30703 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30704 test -n "$tmp" && test -d "$tmp"
30705 } ||
30706 {
30707 tmp=./conf$$-$RANDOM
30708 (umask 077 && mkdir "$tmp")
30709 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30710
30711 # Set up the scripts for CONFIG_FILES section.
30712 # No need to generate them if there are no CONFIG_FILES.
30713 # This happens for instance with `./config.status config.h'.
30714 if test -n "$CONFIG_FILES"; then
30715
30716 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30717 ac_cs_awk_getline=:
30718 ac_cs_awk_pipe_init=
30719 ac_cs_awk_read_file='
30720 while ((getline aline < (F[key])) > 0)
30721 print(aline)
30722 close(F[key])'
30723 ac_cs_awk_pipe_fini=
30724 else
30725 ac_cs_awk_getline=false
30726 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30727 ac_cs_awk_read_file='
30728 print "|#_!!_#|"
30729 print "cat " F[key] " &&"
30730 '$ac_cs_awk_pipe_init
30731 # The final `:' finishes the AND list.
30732 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30733 fi
30734 ac_cr=`echo X | tr X '\015'`
30735 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30736 # But we know of no other shell where ac_cr would be empty at this
30737 # point, so we can use a bashism as a fallback.
30738 if test "x$ac_cr" = x; then
30739 eval ac_cr=\$\'\\r\'
30740 fi
30741 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30742 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30743 ac_cs_awk_cr='\r'
30744 else
30745 ac_cs_awk_cr=$ac_cr
30746 fi
30747
30748 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30749 _ACEOF
30750
30751 # Create commands to substitute file output variables.
30752 {
30753 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30754 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30755 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30756 echo "_ACAWK" &&
30757 echo "_ACEOF"
30758 } >conf$$files.sh &&
30759 . ./conf$$files.sh ||
30760 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30761 rm -f conf$$files.sh
30762
30763 {
30764 echo "cat >conf$$subs.awk <<_ACEOF" &&
30765 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30766 echo "_ACEOF"
30767 } >conf$$subs.sh ||
30768 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30769 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30770 ac_delim='%!_!# '
30771 for ac_last_try in false false false false false :; do
30772 . ./conf$$subs.sh ||
30773 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30774
30775 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30776 if test $ac_delim_n = $ac_delim_num; then
30777 break
30778 elif $ac_last_try; then
30779 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30780 else
30781 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30782 fi
30783 done
30784 rm -f conf$$subs.sh
30785
30786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30787 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30788 _ACEOF
30789 sed -n '
30790 h
30791 s/^/S["/; s/!.*/"]=/
30792 p
30793 g
30794 s/^[^!]*!//
30795 :repl
30796 t repl
30797 s/'"$ac_delim"'$//
30798 t delim
30799 :nl
30800 h
30801 s/\(.\{148\}\).*/\1/
30802 t more1
30803 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30804 p
30805 n
30806 b repl
30807 :more1
30808 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30809 p
30810 g
30811 s/.\{148\}//
30812 t nl
30813 :delim
30814 h
30815 s/\(.\{148\}\).*/\1/
30816 t more2
30817 s/["\\]/\\&/g; s/^/"/; s/$/"/
30818 p
30819 b
30820 :more2
30821 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30822 p
30823 g
30824 s/.\{148\}//
30825 t delim
30826 ' <conf$$subs.awk | sed '
30827 /^[^""]/{
30828 N
30829 s/\n//
30830 }
30831 ' >>$CONFIG_STATUS || ac_write_fail=1
30832 rm -f conf$$subs.awk
30833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30834 _ACAWK
30835 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30836 for (key in S) S_is_set[key] = 1
30837 FS = "\a"
30838 \$ac_cs_awk_pipe_init
30839 }
30840 {
30841 line = $ 0
30842 nfields = split(line, field, "@")
30843 substed = 0
30844 len = length(field[1])
30845 for (i = 2; i < nfields; i++) {
30846 key = field[i]
30847 keylen = length(key)
30848 if (S_is_set[key]) {
30849 value = S[key]
30850 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30851 len += length(value) + length(field[++i])
30852 substed = 1
30853 } else
30854 len += 1 + keylen
30855 }
30856 if (nfields == 3 && !substed) {
30857 key = field[2]
30858 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30859 \$ac_cs_awk_read_file
30860 next
30861 }
30862 }
30863 print line
30864 }
30865 \$ac_cs_awk_pipe_fini
30866 _ACAWK
30867 _ACEOF
30868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30869 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30870 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30871 else
30872 cat
30873 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30874 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30875 _ACEOF
30876
30877 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30878 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30879 # trailing colons and then remove the whole line if VPATH becomes empty
30880 # (actually we leave an empty line to preserve line numbers).
30881 if test "x$srcdir" = x.; then
30882 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30883 s/:*\$(srcdir):*/:/
30884 s/:*\${srcdir}:*/:/
30885 s/:*@srcdir@:*/:/
30886 s/^\([^=]*=[ ]*\):*/\1/
30887 s/:*$//
30888 s/^[^=]*=[ ]*$//
30889 }'
30890 fi
30891
30892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30893 fi # test -n "$CONFIG_FILES"
30894
30895 # Set up the scripts for CONFIG_HEADERS section.
30896 # No need to generate them if there are no CONFIG_HEADERS.
30897 # This happens for instance with `./config.status Makefile'.
30898 if test -n "$CONFIG_HEADERS"; then
30899 cat >"$tmp/defines.awk" <<\_ACAWK ||
30900 BEGIN {
30901 _ACEOF
30902
30903 # Transform confdefs.h into an awk script `defines.awk', embedded as
30904 # here-document in config.status, that substitutes the proper values into
30905 # config.h.in to produce config.h.
30906
30907 # Create a delimiter string that does not exist in confdefs.h, to ease
30908 # handling of long lines.
30909 ac_delim='%!_!# '
30910 for ac_last_try in false false :; do
30911 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30912 if test -z "$ac_t"; then
30913 break
30914 elif $ac_last_try; then
30915 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30916 else
30917 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30918 fi
30919 done
30920
30921 # For the awk script, D is an array of macro values keyed by name,
30922 # likewise P contains macro parameters if any. Preserve backslash
30923 # newline sequences.
30924
30925 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30926 sed -n '
30927 s/.\{148\}/&'"$ac_delim"'/g
30928 t rset
30929 :rset
30930 s/^[ ]*#[ ]*define[ ][ ]*/ /
30931 t def
30932 d
30933 :def
30934 s/\\$//
30935 t bsnl
30936 s/["\\]/\\&/g
30937 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30938 D["\1"]=" \3"/p
30939 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30940 d
30941 :bsnl
30942 s/["\\]/\\&/g
30943 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30944 D["\1"]=" \3\\\\\\n"\\/p
30945 t cont
30946 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30947 t cont
30948 d
30949 :cont
30950 n
30951 s/.\{148\}/&'"$ac_delim"'/g
30952 t clear
30953 :clear
30954 s/\\$//
30955 t bsnlc
30956 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30957 d
30958 :bsnlc
30959 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30960 b cont
30961 ' <confdefs.h | sed '
30962 s/'"$ac_delim"'/"\\\
30963 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30964
30965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30966 for (key in D) D_is_set[key] = 1
30967 FS = "\a"
30968 }
30969 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30970 line = \$ 0
30971 split(line, arg, " ")
30972 if (arg[1] == "#") {
30973 defundef = arg[2]
30974 mac1 = arg[3]
30975 } else {
30976 defundef = substr(arg[1], 2)
30977 mac1 = arg[2]
30978 }
30979 split(mac1, mac2, "(") #)
30980 macro = mac2[1]
30981 prefix = substr(line, 1, index(line, defundef) - 1)
30982 if (D_is_set[macro]) {
30983 # Preserve the white space surrounding the "#".
30984 print prefix "define", macro P[macro] D[macro]
30985 next
30986 } else {
30987 # Replace #undef with comments. This is necessary, for example,
30988 # in the case of _POSIX_SOURCE, which is predefined and required
30989 # on some systems where configure will not decide to define it.
30990 if (defundef == "undef") {
30991 print "/*", prefix defundef, macro, "*/"
30992 next
30993 }
30994 }
30995 }
30996 { print }
30997 _ACAWK
30998 _ACEOF
30999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31000 as_fn_error "could not setup config headers machinery" "$LINENO" 5
31001 fi # test -n "$CONFIG_HEADERS"
31002
31003
31004 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31005 shift
31006 for ac_tag
31007 do
31008 case $ac_tag in
31009 :[FHLC]) ac_mode=$ac_tag; continue;;
31010 esac
31011 case $ac_mode$ac_tag in
31012 :[FHL]*:*);;
31013 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31014 :[FH]-) ac_tag=-:-;;
31015 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31016 esac
31017 ac_save_IFS=$IFS
31018 IFS=:
31019 set x $ac_tag
31020 IFS=$ac_save_IFS
31021 shift
31022 ac_file=$1
31023 shift
31024
31025 case $ac_mode in
31026 :L) ac_source=$1;;
31027 :[FH])
31028 ac_file_inputs=
31029 for ac_f
31030 do
31031 case $ac_f in
31032 -) ac_f="$tmp/stdin";;
31033 *) # Look for the file first in the build tree, then in the source tree
31034 # (if the path is not absolute). The absolute path cannot be DOS-style,
31035 # because $ac_f cannot contain `:'.
31036 test -f "$ac_f" ||
31037 case $ac_f in
31038 [\\/$]*) false;;
31039 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31040 esac ||
31041 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31042 esac
31043 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31044 as_fn_append ac_file_inputs " '$ac_f'"
31045 done
31046
31047 # Let's still pretend it is `configure' which instantiates (i.e., don't
31048 # use $as_me), people would be surprised to read:
31049 # /* config.h. Generated by config.status. */
31050 configure_input='Generated from '`
31051 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31052 `' by configure.'
31053 if test x"$ac_file" != x-; then
31054 configure_input="$ac_file. $configure_input"
31055 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31056 $as_echo "$as_me: creating $ac_file" >&6;}
31057 fi
31058 # Neutralize special characters interpreted by sed in replacement strings.
31059 case $configure_input in #(
31060 *\&* | *\|* | *\\* )
31061 ac_sed_conf_input=`$as_echo "$configure_input" |
31062 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31063 *) ac_sed_conf_input=$configure_input;;
31064 esac
31065
31066 case $ac_tag in
31067 *:-:* | *:-) cat >"$tmp/stdin" \
31068 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31069 esac
31070 ;;
31071 esac
31072
31073 ac_dir=`$as_dirname -- "$ac_file" ||
31074 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31075 X"$ac_file" : 'X\(//\)[^/]' \| \
31076 X"$ac_file" : 'X\(//\)$' \| \
31077 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31078 $as_echo X"$ac_file" |
31079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31080 s//\1/
31081 q
31082 }
31083 /^X\(\/\/\)[^/].*/{
31084 s//\1/
31085 q
31086 }
31087 /^X\(\/\/\)$/{
31088 s//\1/
31089 q
31090 }
31091 /^X\(\/\).*/{
31092 s//\1/
31093 q
31094 }
31095 s/.*/./; q'`
31096 as_dir="$ac_dir"; as_fn_mkdir_p
31097 ac_builddir=.
31098
31099 case "$ac_dir" in
31100 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31101 *)
31102 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31103 # A ".." for each directory in $ac_dir_suffix.
31104 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31105 case $ac_top_builddir_sub in
31106 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31107 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31108 esac ;;
31109 esac
31110 ac_abs_top_builddir=$ac_pwd
31111 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31112 # for backward compatibility:
31113 ac_top_builddir=$ac_top_build_prefix
31114
31115 case $srcdir in
31116 .) # We are building in place.
31117 ac_srcdir=.
31118 ac_top_srcdir=$ac_top_builddir_sub
31119 ac_abs_top_srcdir=$ac_pwd ;;
31120 [\\/]* | ?:[\\/]* ) # Absolute name.
31121 ac_srcdir=$srcdir$ac_dir_suffix;
31122 ac_top_srcdir=$srcdir
31123 ac_abs_top_srcdir=$srcdir ;;
31124 *) # Relative name.
31125 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31126 ac_top_srcdir=$ac_top_build_prefix$srcdir
31127 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31128 esac
31129 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31130
31131
31132 case $ac_mode in
31133 :F)
31134 #
31135 # CONFIG_FILE
31136 #
31137
31138 _ACEOF
31139
31140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31141 # If the template does not know about datarootdir, expand it.
31142 # FIXME: This hack should be removed a few years after 2.60.
31143 ac_datarootdir_hack=; ac_datarootdir_seen=
31144 ac_sed_dataroot='
31145 /datarootdir/ {
31146 p
31147 q
31148 }
31149 /@datadir@/p
31150 /@docdir@/p
31151 /@infodir@/p
31152 /@localedir@/p
31153 /@mandir@/p'
31154 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31155 *datarootdir*) ac_datarootdir_seen=yes;;
31156 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31158 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31159 _ACEOF
31160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31161 ac_datarootdir_hack='
31162 s&@datadir@&$datadir&g
31163 s&@docdir@&$docdir&g
31164 s&@infodir@&$infodir&g
31165 s&@localedir@&$localedir&g
31166 s&@mandir@&$mandir&g
31167 s&\\\${datarootdir}&$datarootdir&g' ;;
31168 esac
31169 _ACEOF
31170
31171 # Neutralize VPATH when `$srcdir' = `.'.
31172 # Shell code in configure.ac might set extrasub.
31173 # FIXME: do we really want to maintain this feature?
31174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31175 ac_sed_extra="$ac_vpsub
31176 $extrasub
31177 _ACEOF
31178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31179 :t
31180 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31181 s|@configure_input@|$ac_sed_conf_input|;t t
31182 s&@top_builddir@&$ac_top_builddir_sub&;t t
31183 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31184 s&@srcdir@&$ac_srcdir&;t t
31185 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31186 s&@top_srcdir@&$ac_top_srcdir&;t t
31187 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31188 s&@builddir@&$ac_builddir&;t t
31189 s&@abs_builddir@&$ac_abs_builddir&;t t
31190 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31191 $ac_datarootdir_hack
31192 "
31193 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31194 if $ac_cs_awk_getline; then
31195 $AWK -f "$tmp/subs.awk"
31196 else
31197 $AWK -f "$tmp/subs.awk" | $SHELL
31198 fi >$tmp/out \
31199 || as_fn_error "could not create $ac_file" "$LINENO" 5
31200
31201 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31202 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31203 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31205 which seems to be undefined. Please make sure it is defined." >&5
31206 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31207 which seems to be undefined. Please make sure it is defined." >&2;}
31208
31209 rm -f "$tmp/stdin"
31210 case $ac_file in
31211 -) cat "$tmp/out" && rm -f "$tmp/out";;
31212 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31213 esac \
31214 || as_fn_error "could not create $ac_file" "$LINENO" 5
31215 ;;
31216 :H)
31217 #
31218 # CONFIG_HEADER
31219 #
31220 if test x"$ac_file" != x-; then
31221 {
31222 $as_echo "/* $configure_input */" \
31223 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31224 } >"$tmp/config.h" \
31225 || as_fn_error "could not create $ac_file" "$LINENO" 5
31226 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31227 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31228 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31229 else
31230 rm -f "$ac_file"
31231 mv "$tmp/config.h" "$ac_file" \
31232 || as_fn_error "could not create $ac_file" "$LINENO" 5
31233 fi
31234 else
31235 $as_echo "/* $configure_input */" \
31236 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31237 || as_fn_error "could not create -" "$LINENO" 5
31238 fi
31239 ;;
31240 :L)
31241 #
31242 # CONFIG_LINK
31243 #
31244
31245 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31246 :
31247 else
31248 # Prefer the file from the source tree if names are identical.
31249 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31250 ac_source=$srcdir/$ac_source
31251 fi
31252
31253 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31254 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31255
31256 if test ! -r "$ac_source"; then
31257 as_fn_error "$ac_source: file not found" "$LINENO" 5
31258 fi
31259 rm -f "$ac_file"
31260
31261 # Try a relative symlink, then a hard link, then a copy.
31262 case $srcdir in
31263 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31264 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31265 esac
31266 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31267 ln "$ac_source" "$ac_file" 2>/dev/null ||
31268 cp -p "$ac_source" "$ac_file" ||
31269 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31270 fi
31271 ;;
31272 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31273 $as_echo "$as_me: executing $ac_file commands" >&6;}
31274 ;;
31275 esac
31276
31277
31278 case $ac_file$ac_mode in
31279 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31280 "gccdepdir":C)
31281 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31282 for lang in $subdirs c-family common
31283 do
31284 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31285 done ;;
31286 "as":F) chmod +x as ;;
31287 "collect-ld":F) chmod +x collect-ld ;;
31288 "nm":F) chmod +x nm ;;
31289 "default":C)
31290 case ${CONFIG_HEADERS} in
31291 *auto-host.h:config.in*)
31292 echo > cstamp-h ;;
31293 esac
31294 # Make sure all the subdirs exist.
31295 for d in $subdirs doc build common c-family
31296 do
31297 test -d $d || mkdir $d
31298 done
31299 ;;
31300
31301 esac
31302 done # for ac_tag
31303
31304
31305 as_fn_exit 0
31306 _ACEOF
31307 ac_clean_files=$ac_clean_files_save
31308
31309 test $ac_write_fail = 0 ||
31310 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31311
31312
31313 # configure is writing to config.log, and then calls config.status.
31314 # config.status does its own redirection, appending to config.log.
31315 # Unfortunately, on DOS this fails, as config.log is still kept open
31316 # by configure, so config.status won't be able to write to it; its
31317 # output is simply discarded. So we exec the FD to /dev/null,
31318 # effectively closing config.log, so it can be properly (re)opened and
31319 # appended to by config.status. When coming back to configure, we
31320 # need to make the FD available again.
31321 if test "$no_create" != yes; then
31322 ac_cs_success=:
31323 ac_config_status_args=
31324 test "$silent" = yes &&
31325 ac_config_status_args="$ac_config_status_args --quiet"
31326 exec 5>/dev/null
31327 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31328 exec 5>>config.log
31329 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31330 # would make configure fail if this is the last instruction.
31331 $ac_cs_success || as_fn_exit $?
31332 fi
31333 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31335 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31336 fi
31337
31338