openmp: Implement OpenMP 5.0 base-pointer attachement and clause ordering
[gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="tree.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 CET_HOST_FLAGS
635 NO_PIE_FLAG
636 NO_PIE_CFLAGS
637 enable_default_pie
638 PICFLAG
639 enable_host_shared
640 enable_plugin
641 pluginlibs
642 ISLINC
643 ISLLIBS
644 GMPINC
645 GMPLIBS
646 target_cpu_default
647 d_target_objs
648 fortran_target_objs
649 cxx_target_objs
650 c_target_objs
651 use_gcc_stdint
652 xm_defines
653 xm_include_list
654 xm_file_list
655 tm_d_include_list
656 tm_d_file_list
657 tm_p_include_list
658 tm_p_file_list
659 tm_defines
660 tm_include_list
661 tm_file_list
662 common_out_object_file
663 common_out_file
664 out_object_file
665 out_file
666 objc_boehm_gc
667 md_file
668 local_prefix
669 lang_tree_files
670 lang_specs_files
671 lang_opt_files
672 install
673 out_host_hook_obj
674 host_xm_defines
675 host_xm_include_list
676 host_xm_file_list
677 host_exeext
678 gcc_gxx_include_dir_add_sysroot
679 gcc_gxx_include_dir
680 gcc_config_arguments
681 float_h_file
682 extra_programs
683 extra_objs
684 extra_headers_list
685 user_headers_inc_next_post
686 user_headers_inc_next_pre
687 extra_gcc_objs
688 TM_MULTILIB_EXCEPTIONS_CONFIG
689 TM_MULTILIB_CONFIG
690 TM_ENDIAN_CONFIG
691 tmake_file
692 xmake_file
693 cpp_install_dir
694 selftest_languages
695 check_languages
696 build_file_translate
697 build_xm_defines
698 build_xm_include_list
699 build_xm_file_list
700 build_install_headers_dir
701 build_exeext
702 all_selected_languages
703 all_languages
704 all_lang_makefrags
705 all_lang_configurefrags
706 all_gtfiles
707 all_compilers
708 srcdir
709 subdirs
710 dollar
711 gcc_tooldir
712 enable_lto
713 DO_LINK_MUTEX
714 MAINT
715 zlibinc
716 zlibdir
717 HOST_LIBS
718 enable_default_ssp
719 thin_archive_support
720 ld_soname_option
721 ld_version_script_option
722 libgcc_visibility
723 gcc_cv_otool
724 gcc_cv_readelf
725 gcc_cv_objdump
726 ORIGINAL_NM_FOR_TARGET
727 gcc_cv_nm
728 ORIGINAL_LD_GOLD_FOR_TARGET
729 ORIGINAL_LD_BFD_FOR_TARGET
730 ORIGINAL_LD_FOR_TARGET
731 ORIGINAL_PLUGIN_LD_FOR_TARGET
732 gcc_cv_ld
733 ORIGINAL_AS_FOR_TARGET
734 gcc_cv_as
735 enable_fast_install
736 objdir
737 OTOOL64
738 OTOOL
739 LIPO
740 NMEDIT
741 DSYMUTIL
742 STRIP
743 OBJDUMP
744 ac_ct_DUMPBIN
745 DUMPBIN
746 LD
747 FGREP
748 SED
749 LIBTOOL
750 collect2
751 NO_PIE_FLAG_FOR_BUILD
752 NO_PIE_CFLAGS_FOR_BUILD
753 BUILD_NO_PIE_FLAG
754 BUILD_NO_PIE_CFLAGS
755 STMP_FIXINC
756 BUILD_LDFLAGS
757 BUILD_CXXFLAGS
758 BUILD_CFLAGS
759 CXX_FOR_BUILD
760 CC_FOR_BUILD
761 inhibit_libc
762 BUILD_SYSTEM_HEADER_DIR
763 SYSTEM_HEADER_DIR
764 ALL
765 CROSS
766 CATOBJEXT
767 GENCAT
768 INSTOBJEXT
769 DATADIRNAME
770 CATALOGS
771 POSUB
772 GMSGFMT
773 XGETTEXT
774 INCINTL
775 LIBINTL_DEP
776 LIBINTL
777 USE_NLS
778 get_gcc_base_ver
779 HAVE_AUTO_BUILD
780 extra_opt_files
781 extra_modes_file
782 NATIVE_SYSTEM_HEADER_DIR
783 objext
784 manext
785 LIBICONV_DEP
786 LTLIBICONV
787 LIBICONV
788 ZSTD_LDFLAGS
789 ZSTD_CPPFLAGS
790 ZSTD_LIB
791 ZSTD_INCLUDE
792 DL_LIB
793 LDEXP_LIB
794 EXTRA_GCC_LIBS
795 GNAT_LIBEXC
796 COLLECT2_LIBS
797 CXXDEPMODE
798 DEPDIR
799 am__leading_dot
800 doc_build_sys
801 AR
802 NM
803 BISON
804 FLEX
805 GENERATED_MANPAGES
806 BUILD_INFO
807 MAKEINFO
808 have_mktemp_command
809 make_compare_target
810 INSTALL_DATA
811 INSTALL_PROGRAM
812 INSTALL
813 ranlib_flags
814 RANLIB
815 LN
816 LN_S
817 AWK
818 SET_MAKE
819 omp_device_property_deps
820 omp_device_properties
821 accel_dir_suffix
822 real_target_noncanonical
823 enable_as_accelerator
824 gnat_install_lib
825 REPORT_BUGS_TEXI
826 REPORT_BUGS_TO
827 PKGVERSION
828 CONFIGURE_SPECS
829 enable_gcov
830 enable_shared
831 enable_fixed_point
832 enable_decimal_float
833 with_float
834 with_cpu
835 enable_multiarch
836 enable_multilib
837 coverage_flags
838 valgrind_command
839 valgrind_path_defines
840 valgrind_path
841 TREECHECKING
842 nocommon_flag
843 noexception_flags
844 warn_cxxflags
845 warn_cflags
846 c_strict_warn
847 strict_warn
848 c_loose_warn
849 loose_warn
850 aliasing_flags
851 CPP
852 EGREP
853 GREP
854 CXXCPP
855 PICFLAG_FOR_TARGET
856 GNATMAKE
857 GNATBIND
858 ac_ct_CXX
859 CXXFLAGS
860 CXX
861 OBJEXT
862 EXEEXT
863 ac_ct_CC
864 CPPFLAGS
865 LDFLAGS
866 CFLAGS
867 CC
868 GENINSRC
869 CROSS_SYSTEM_HEADER_DIR
870 TARGET_SYSTEM_ROOT_DEFINE
871 TARGET_SYSTEM_ROOT
872 SYSROOT_CFLAGS_FOR_TARGET
873 target_subdir
874 host_subdir
875 build_subdir
876 build_libsubdir
877 target_noncanonical
878 host_noncanonical
879 target_os
880 target_vendor
881 target_cpu
882 target
883 host_os
884 host_vendor
885 host_cpu
886 host
887 build_os
888 build_vendor
889 build_cpu
890 build
891 target_alias
892 host_alias
893 build_alias
894 LIBS
895 ECHO_T
896 ECHO_N
897 ECHO_C
898 DEFS
899 mandir
900 localedir
901 libdir
902 psdir
903 pdfdir
904 dvidir
905 htmldir
906 infodir
907 docdir
908 oldincludedir
909 includedir
910 localstatedir
911 sharedstatedir
912 sysconfdir
913 datadir
914 datarootdir
915 libexecdir
916 sbindir
917 bindir
918 program_transform_name
919 prefix
920 exec_prefix
921 PACKAGE_URL
922 PACKAGE_BUGREPORT
923 PACKAGE_STRING
924 PACKAGE_VERSION
925 PACKAGE_TARNAME
926 PACKAGE_NAME
927 PATH_SEPARATOR
928 SHELL'
929 ac_subst_files='option_includes
930 language_hooks'
931 ac_user_opts='
932 enable_option_checking
933 with_build_libsubdir
934 with_local_prefix
935 with_native_system_header_dir
936 with_build_sysroot
937 with_sysroot
938 with_gxx_include_dir
939 with_cpp_install_dir
940 enable_generated_files_in_srcdir
941 with_gnu_ld
942 with_ld
943 with_demangler_in_ld
944 with_gnu_as
945 with_as
946 enable_largefile
947 enable_build_format_warnings
948 enable_werror_always
949 enable_checking
950 enable_coverage
951 enable_gather_detailed_mem_stats
952 enable_valgrind_annotations
953 with_stabs
954 enable_multilib
955 enable_multiarch
956 with_stack_clash_protection_guard_size
957 enable___cxa_atexit
958 enable_decimal_float
959 enable_fixed_point
960 enable_threads
961 enable_tls
962 enable_vtable_verify
963 enable_analyzer
964 enable_objc_gc
965 with_dwarf2
966 enable_shared
967 enable_gcov
968 with_specs
969 with_pkgversion
970 with_bugurl
971 with_documentation_root_url
972 with_changes_root_url
973 enable_languages
974 with_multilib_list
975 with_multilib_generator
976 with_zstd
977 with_zstd_include
978 with_zstd_lib
979 enable_rpath
980 with_libiconv_prefix
981 with_libiconv_type
982 enable_sjlj_exceptions
983 with_gcc_major_version_only
984 enable_secureplt
985 enable_mingw_wildcard
986 enable_large_address_aware
987 enable_leading_mingw64_underscores
988 enable_cld
989 enable_frame_pointer
990 enable_win32_registry
991 enable_static
992 with_pic
993 enable_fast_install
994 enable_libtool_lock
995 enable_ld
996 enable_gold
997 with_plugin_ld
998 enable_gnu_indirect_function
999 enable_initfini_array
1000 enable_comdat
1001 enable_newlib_nano_formatted_io
1002 enable_standard_branch_protection
1003 enable_fix_cortex_a53_835769
1004 enable_fix_cortex_a53_843419
1005 with_glibc_version
1006 enable_gnu_unique_object
1007 enable_linker_build_id
1008 enable_libssp
1009 enable_default_ssp
1010 with_long_double_128
1011 with_long_double_format
1012 with_gc
1013 with_system_zlib
1014 enable_maintainer_mode
1015 enable_link_mutex
1016 enable_version_specific_runtime_libs
1017 enable_plugin
1018 enable_host_shared
1019 enable_libquadmath_support
1020 with_linker_hash_style
1021 with_diagnostics_color
1022 with_diagnostics_urls
1023 enable_default_pie
1024 enable_cet
1025 '
1026 ac_precious_vars='build_alias
1027 host_alias
1028 target_alias
1029 CC
1030 CFLAGS
1031 LDFLAGS
1032 LIBS
1033 CPPFLAGS
1034 CXX
1035 CXXFLAGS
1036 CCC
1037 CXXCPP
1038 CPP
1039 GMPLIBS
1040 GMPINC
1041 ISLLIBS
1042 ISLINC'
1043
1044
1045 # Initialize some variables set by options.
1046 ac_init_help=
1047 ac_init_version=false
1048 ac_unrecognized_opts=
1049 ac_unrecognized_sep=
1050 # The variables have the same names as the options, with
1051 # dashes changed to underlines.
1052 cache_file=/dev/null
1053 exec_prefix=NONE
1054 no_create=
1055 no_recursion=
1056 prefix=NONE
1057 program_prefix=NONE
1058 program_suffix=NONE
1059 program_transform_name=s,x,x,
1060 silent=
1061 site=
1062 srcdir=
1063 verbose=
1064 x_includes=NONE
1065 x_libraries=NONE
1066
1067 # Installation directory options.
1068 # These are left unexpanded so users can "make install exec_prefix=/foo"
1069 # and all the variables that are supposed to be based on exec_prefix
1070 # by default will actually change.
1071 # Use braces instead of parens because sh, perl, etc. also accept them.
1072 # (The list follows the same order as the GNU Coding Standards.)
1073 bindir='${exec_prefix}/bin'
1074 sbindir='${exec_prefix}/sbin'
1075 libexecdir='${exec_prefix}/libexec'
1076 datarootdir='${prefix}/share'
1077 datadir='${datarootdir}'
1078 sysconfdir='${prefix}/etc'
1079 sharedstatedir='${prefix}/com'
1080 localstatedir='${prefix}/var'
1081 includedir='${prefix}/include'
1082 oldincludedir='/usr/include'
1083 docdir='${datarootdir}/doc/${PACKAGE}'
1084 infodir='${datarootdir}/info'
1085 htmldir='${docdir}'
1086 dvidir='${docdir}'
1087 pdfdir='${docdir}'
1088 psdir='${docdir}'
1089 libdir='${exec_prefix}/lib'
1090 localedir='${datarootdir}/locale'
1091 mandir='${datarootdir}/man'
1092
1093 ac_prev=
1094 ac_dashdash=
1095 for ac_option
1096 do
1097 # If the previous option needs an argument, assign it.
1098 if test -n "$ac_prev"; then
1099 eval $ac_prev=\$ac_option
1100 ac_prev=
1101 continue
1102 fi
1103
1104 case $ac_option in
1105 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1106 *=) ac_optarg= ;;
1107 *) ac_optarg=yes ;;
1108 esac
1109
1110 # Accept the important Cygnus configure options, so we can diagnose typos.
1111
1112 case $ac_dashdash$ac_option in
1113 --)
1114 ac_dashdash=yes ;;
1115
1116 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1117 ac_prev=bindir ;;
1118 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1119 bindir=$ac_optarg ;;
1120
1121 -build | --build | --buil | --bui | --bu)
1122 ac_prev=build_alias ;;
1123 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1124 build_alias=$ac_optarg ;;
1125
1126 -cache-file | --cache-file | --cache-fil | --cache-fi \
1127 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1128 ac_prev=cache_file ;;
1129 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1130 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1131 cache_file=$ac_optarg ;;
1132
1133 --config-cache | -C)
1134 cache_file=config.cache ;;
1135
1136 -datadir | --datadir | --datadi | --datad)
1137 ac_prev=datadir ;;
1138 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1139 datadir=$ac_optarg ;;
1140
1141 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1142 | --dataroo | --dataro | --datar)
1143 ac_prev=datarootdir ;;
1144 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1145 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1146 datarootdir=$ac_optarg ;;
1147
1148 -disable-* | --disable-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid feature name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157 "enable_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval enable_$ac_useropt=no ;;
1163
1164 -docdir | --docdir | --docdi | --doc | --do)
1165 ac_prev=docdir ;;
1166 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1167 docdir=$ac_optarg ;;
1168
1169 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1170 ac_prev=dvidir ;;
1171 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1172 dvidir=$ac_optarg ;;
1173
1174 -enable-* | --enable-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid feature name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183 "enable_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval enable_$ac_useropt=\$ac_optarg ;;
1189
1190 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1191 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1192 | --exec | --exe | --ex)
1193 ac_prev=exec_prefix ;;
1194 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1195 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1196 | --exec=* | --exe=* | --ex=*)
1197 exec_prefix=$ac_optarg ;;
1198
1199 -gas | --gas | --ga | --g)
1200 # Obsolete; use --with-gas.
1201 with_gas=yes ;;
1202
1203 -help | --help | --hel | --he | -h)
1204 ac_init_help=long ;;
1205 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1206 ac_init_help=recursive ;;
1207 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1208 ac_init_help=short ;;
1209
1210 -host | --host | --hos | --ho)
1211 ac_prev=host_alias ;;
1212 -host=* | --host=* | --hos=* | --ho=*)
1213 host_alias=$ac_optarg ;;
1214
1215 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1216 ac_prev=htmldir ;;
1217 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1218 | --ht=*)
1219 htmldir=$ac_optarg ;;
1220
1221 -includedir | --includedir | --includedi | --included | --include \
1222 | --includ | --inclu | --incl | --inc)
1223 ac_prev=includedir ;;
1224 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1225 | --includ=* | --inclu=* | --incl=* | --inc=*)
1226 includedir=$ac_optarg ;;
1227
1228 -infodir | --infodir | --infodi | --infod | --info | --inf)
1229 ac_prev=infodir ;;
1230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1231 infodir=$ac_optarg ;;
1232
1233 -libdir | --libdir | --libdi | --libd)
1234 ac_prev=libdir ;;
1235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1236 libdir=$ac_optarg ;;
1237
1238 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1239 | --libexe | --libex | --libe)
1240 ac_prev=libexecdir ;;
1241 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1242 | --libexe=* | --libex=* | --libe=*)
1243 libexecdir=$ac_optarg ;;
1244
1245 -localedir | --localedir | --localedi | --localed | --locale)
1246 ac_prev=localedir ;;
1247 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1248 localedir=$ac_optarg ;;
1249
1250 -localstatedir | --localstatedir | --localstatedi | --localstated \
1251 | --localstate | --localstat | --localsta | --localst | --locals)
1252 ac_prev=localstatedir ;;
1253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1254 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1255 localstatedir=$ac_optarg ;;
1256
1257 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1258 ac_prev=mandir ;;
1259 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1260 mandir=$ac_optarg ;;
1261
1262 -nfp | --nfp | --nf)
1263 # Obsolete; use --without-fp.
1264 with_fp=no ;;
1265
1266 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1267 | --no-cr | --no-c | -n)
1268 no_create=yes ;;
1269
1270 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1271 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1272 no_recursion=yes ;;
1273
1274 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1275 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1276 | --oldin | --oldi | --old | --ol | --o)
1277 ac_prev=oldincludedir ;;
1278 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1279 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1280 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1281 oldincludedir=$ac_optarg ;;
1282
1283 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1284 ac_prev=prefix ;;
1285 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1286 prefix=$ac_optarg ;;
1287
1288 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1289 | --program-pre | --program-pr | --program-p)
1290 ac_prev=program_prefix ;;
1291 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1292 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1293 program_prefix=$ac_optarg ;;
1294
1295 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1296 | --program-suf | --program-su | --program-s)
1297 ac_prev=program_suffix ;;
1298 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1299 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1300 program_suffix=$ac_optarg ;;
1301
1302 -program-transform-name | --program-transform-name \
1303 | --program-transform-nam | --program-transform-na \
1304 | --program-transform-n | --program-transform- \
1305 | --program-transform | --program-transfor \
1306 | --program-transfo | --program-transf \
1307 | --program-trans | --program-tran \
1308 | --progr-tra | --program-tr | --program-t)
1309 ac_prev=program_transform_name ;;
1310 -program-transform-name=* | --program-transform-name=* \
1311 | --program-transform-nam=* | --program-transform-na=* \
1312 | --program-transform-n=* | --program-transform-=* \
1313 | --program-transform=* | --program-transfor=* \
1314 | --program-transfo=* | --program-transf=* \
1315 | --program-trans=* | --program-tran=* \
1316 | --progr-tra=* | --program-tr=* | --program-t=*)
1317 program_transform_name=$ac_optarg ;;
1318
1319 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1320 ac_prev=pdfdir ;;
1321 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1322 pdfdir=$ac_optarg ;;
1323
1324 -psdir | --psdir | --psdi | --psd | --ps)
1325 ac_prev=psdir ;;
1326 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1327 psdir=$ac_optarg ;;
1328
1329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1330 | -silent | --silent | --silen | --sile | --sil)
1331 silent=yes ;;
1332
1333 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1334 ac_prev=sbindir ;;
1335 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1336 | --sbi=* | --sb=*)
1337 sbindir=$ac_optarg ;;
1338
1339 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1340 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1341 | --sharedst | --shareds | --shared | --share | --shar \
1342 | --sha | --sh)
1343 ac_prev=sharedstatedir ;;
1344 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1345 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1346 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1347 | --sha=* | --sh=*)
1348 sharedstatedir=$ac_optarg ;;
1349
1350 -site | --site | --sit)
1351 ac_prev=site ;;
1352 -site=* | --site=* | --sit=*)
1353 site=$ac_optarg ;;
1354
1355 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1356 ac_prev=srcdir ;;
1357 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1358 srcdir=$ac_optarg ;;
1359
1360 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1361 | --syscon | --sysco | --sysc | --sys | --sy)
1362 ac_prev=sysconfdir ;;
1363 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1364 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1365 sysconfdir=$ac_optarg ;;
1366
1367 -target | --target | --targe | --targ | --tar | --ta | --t)
1368 ac_prev=target_alias ;;
1369 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1370 target_alias=$ac_optarg ;;
1371
1372 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1373 verbose=yes ;;
1374
1375 -version | --version | --versio | --versi | --vers | -V)
1376 ac_init_version=: ;;
1377
1378 -with-* | --with-*)
1379 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1380 # Reject names that are not valid shell variable names.
1381 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1382 as_fn_error $? "invalid package name: $ac_useropt"
1383 ac_useropt_orig=$ac_useropt
1384 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1385 case $ac_user_opts in
1386 *"
1387 "with_$ac_useropt"
1388 "*) ;;
1389 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1390 ac_unrecognized_sep=', ';;
1391 esac
1392 eval with_$ac_useropt=\$ac_optarg ;;
1393
1394 -without-* | --without-*)
1395 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1396 # Reject names that are not valid shell variable names.
1397 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1398 as_fn_error $? "invalid package name: $ac_useropt"
1399 ac_useropt_orig=$ac_useropt
1400 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1401 case $ac_user_opts in
1402 *"
1403 "with_$ac_useropt"
1404 "*) ;;
1405 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1406 ac_unrecognized_sep=', ';;
1407 esac
1408 eval with_$ac_useropt=no ;;
1409
1410 --x)
1411 # Obsolete; use --with-x.
1412 with_x=yes ;;
1413
1414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1415 | --x-incl | --x-inc | --x-in | --x-i)
1416 ac_prev=x_includes ;;
1417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1419 x_includes=$ac_optarg ;;
1420
1421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1423 ac_prev=x_libraries ;;
1424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1426 x_libraries=$ac_optarg ;;
1427
1428 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1429 Try \`$0 --help' for more information"
1430 ;;
1431
1432 *=*)
1433 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1434 # Reject names that are not valid shell variable names.
1435 case $ac_envvar in #(
1436 '' | [0-9]* | *[!_$as_cr_alnum]* )
1437 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1438 esac
1439 eval $ac_envvar=\$ac_optarg
1440 export $ac_envvar ;;
1441
1442 *)
1443 # FIXME: should be removed in autoconf 3.0.
1444 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1446 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1447 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1448 ;;
1449
1450 esac
1451 done
1452
1453 if test -n "$ac_prev"; then
1454 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1455 as_fn_error $? "missing argument to $ac_option"
1456 fi
1457
1458 if test -n "$ac_unrecognized_opts"; then
1459 case $enable_option_checking in
1460 no) ;;
1461 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1462 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1463 esac
1464 fi
1465
1466 # Check all directory arguments for consistency.
1467 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1468 datadir sysconfdir sharedstatedir localstatedir includedir \
1469 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1470 libdir localedir mandir
1471 do
1472 eval ac_val=\$$ac_var
1473 # Remove trailing slashes.
1474 case $ac_val in
1475 */ )
1476 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1477 eval $ac_var=\$ac_val;;
1478 esac
1479 # Be sure to have absolute directory names.
1480 case $ac_val in
1481 [\\/$]* | ?:[\\/]* ) continue;;
1482 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1483 esac
1484 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1485 done
1486
1487 # There might be people who depend on the old broken behavior: `$host'
1488 # used to hold the argument of --host etc.
1489 # FIXME: To remove some day.
1490 build=$build_alias
1491 host=$host_alias
1492 target=$target_alias
1493
1494 # FIXME: To remove some day.
1495 if test "x$host_alias" != x; then
1496 if test "x$build_alias" = x; then
1497 cross_compiling=maybe
1498 elif test "x$build_alias" != "x$host_alias"; then
1499 cross_compiling=yes
1500 fi
1501 fi
1502
1503 ac_tool_prefix=
1504 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1505
1506 test "$silent" = yes && exec 6>/dev/null
1507
1508
1509 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1510 ac_ls_di=`ls -di .` &&
1511 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1512 as_fn_error $? "working directory cannot be determined"
1513 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1514 as_fn_error $? "pwd does not report name of working directory"
1515
1516
1517 # Find the source files, if location was not specified.
1518 if test -z "$srcdir"; then
1519 ac_srcdir_defaulted=yes
1520 # Try the directory containing this script, then the parent directory.
1521 ac_confdir=`$as_dirname -- "$as_myself" ||
1522 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1523 X"$as_myself" : 'X\(//\)[^/]' \| \
1524 X"$as_myself" : 'X\(//\)$' \| \
1525 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1526 $as_echo X"$as_myself" |
1527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1528 s//\1/
1529 q
1530 }
1531 /^X\(\/\/\)[^/].*/{
1532 s//\1/
1533 q
1534 }
1535 /^X\(\/\/\)$/{
1536 s//\1/
1537 q
1538 }
1539 /^X\(\/\).*/{
1540 s//\1/
1541 q
1542 }
1543 s/.*/./; q'`
1544 srcdir=$ac_confdir
1545 if test ! -r "$srcdir/$ac_unique_file"; then
1546 srcdir=..
1547 fi
1548 else
1549 ac_srcdir_defaulted=no
1550 fi
1551 if test ! -r "$srcdir/$ac_unique_file"; then
1552 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1553 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1554 fi
1555 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1556 ac_abs_confdir=`(
1557 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1558 pwd)`
1559 # When building in place, set srcdir=.
1560 if test "$ac_abs_confdir" = "$ac_pwd"; then
1561 srcdir=.
1562 fi
1563 # Remove unnecessary trailing slashes from srcdir.
1564 # Double slashes in file names in object file debugging info
1565 # mess up M-x gdb in Emacs.
1566 case $srcdir in
1567 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1568 esac
1569 for ac_var in $ac_precious_vars; do
1570 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1571 eval ac_env_${ac_var}_value=\$${ac_var}
1572 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1573 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1574 done
1575
1576 #
1577 # Report the --help message.
1578 #
1579 if test "$ac_init_help" = "long"; then
1580 # Omit some internal or obsolete options to make the list less imposing.
1581 # This message is too long to be a string in the A/UX 3.1 sh.
1582 cat <<_ACEOF
1583 \`configure' configures this package to adapt to many kinds of systems.
1584
1585 Usage: $0 [OPTION]... [VAR=VALUE]...
1586
1587 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1588 VAR=VALUE. See below for descriptions of some of the useful variables.
1589
1590 Defaults for the options are specified in brackets.
1591
1592 Configuration:
1593 -h, --help display this help and exit
1594 --help=short display options specific to this package
1595 --help=recursive display the short help of all the included packages
1596 -V, --version display version information and exit
1597 -q, --quiet, --silent do not print \`checking ...' messages
1598 --cache-file=FILE cache test results in FILE [disabled]
1599 -C, --config-cache alias for \`--cache-file=config.cache'
1600 -n, --no-create do not create output files
1601 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1602
1603 Installation directories:
1604 --prefix=PREFIX install architecture-independent files in PREFIX
1605 [$ac_default_prefix]
1606 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1607 [PREFIX]
1608
1609 By default, \`make install' will install all the files in
1610 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1611 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1612 for instance \`--prefix=\$HOME'.
1613
1614 For better control, use the options below.
1615
1616 Fine tuning of the installation directories:
1617 --bindir=DIR user executables [EPREFIX/bin]
1618 --sbindir=DIR system admin executables [EPREFIX/sbin]
1619 --libexecdir=DIR program executables [EPREFIX/libexec]
1620 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1621 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1622 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1623 --libdir=DIR object code libraries [EPREFIX/lib]
1624 --includedir=DIR C header files [PREFIX/include]
1625 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1626 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1627 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1628 --infodir=DIR info documentation [DATAROOTDIR/info]
1629 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1630 --mandir=DIR man documentation [DATAROOTDIR/man]
1631 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1632 --htmldir=DIR html documentation [DOCDIR]
1633 --dvidir=DIR dvi documentation [DOCDIR]
1634 --pdfdir=DIR pdf documentation [DOCDIR]
1635 --psdir=DIR ps documentation [DOCDIR]
1636 _ACEOF
1637
1638 cat <<\_ACEOF
1639
1640 Program names:
1641 --program-prefix=PREFIX prepend PREFIX to installed program names
1642 --program-suffix=SUFFIX append SUFFIX to installed program names
1643 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1644
1645 System types:
1646 --build=BUILD configure for building on BUILD [guessed]
1647 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1648 --target=TARGET configure for building compilers for TARGET [HOST]
1649 _ACEOF
1650 fi
1651
1652 if test -n "$ac_init_help"; then
1653
1654 cat <<\_ACEOF
1655
1656 Optional Features:
1657 --disable-option-checking ignore unrecognized --enable/--with options
1658 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1659 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1660 --enable-generated-files-in-srcdir
1661 put copies of generated files in source dir intended
1662 for creating source tarballs for users without
1663 texinfo bison or flex
1664 --disable-largefile omit support for large files
1665 --disable-build-format-warnings
1666 don't use -Wformat while building GCC
1667 --enable-werror-always enable -Werror despite compiler version
1668 --enable-checking[=LIST]
1669 enable expensive run-time checks. With LIST, enable
1670 only specific categories of checks. Categories are:
1671 yes,no,all,none,release. Flags are:
1672 assert,df,extra,fold,gc,gcac,gimple,misc,
1673 rtlflag,rtl,runtime,tree,valgrind,types
1674 --enable-coverage[=LEVEL]
1675 enable compiler's code coverage collection. Use to
1676 measure compiler performance and locate unused parts
1677 of the compiler. With LEVEL, specify optimization.
1678 Values are opt, noopt, default is noopt
1679 --enable-gather-detailed-mem-stats
1680 enable detailed memory allocation stats gathering
1681 --enable-valgrind-annotations
1682 enable valgrind runtime interaction
1683 --enable-multilib enable library support for multiple ABIs
1684 --enable-multiarch enable support for multiarch paths
1685 --enable-__cxa_atexit enable __cxa_atexit for C++
1686 --enable-decimal-float={no,yes,bid,dpd}
1687 enable decimal float extension to C. Selecting 'bid'
1688 or 'dpd' choses which decimal floating point format
1689 to use
1690 --enable-fixed-point enable fixed-point arithmetic extension to C
1691 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1692 package
1693 --enable-tls enable or disable generation of tls code overriding
1694 the assembler check for tls support
1695 --enable-vtable-verify enable vtable verification feature
1696 --disable-analyzer disable -fanalyzer static analyzer
1697 --enable-objc-gc enable the use of Boehm's garbage collector with the
1698 GNU Objective-C runtime
1699 --disable-shared don't provide a shared libgcc
1700 --disable-gcov don't provide libgcov and related host tools
1701 --enable-languages=LIST specify which front-ends to build
1702 --disable-rpath do not hardcode runtime library paths
1703 --enable-sjlj-exceptions
1704 arrange to use setjmp/longjmp exception handling
1705 --enable-secureplt enable -msecure-plt by default for PowerPC
1706 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1707 Default to platform configuration
1708 --enable-large-address-aware
1709 Link mingw executables with --large-address-aware
1710 --enable-leading-mingw64-underscores
1711 enable leading underscores on 64 bit mingw targets
1712 --enable-cld enable -mcld by default for 32bit x86
1713 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1714 --disable-win32-registry
1715 disable lookup of installation paths in the Registry
1716 on Windows hosts
1717 --enable-win32-registry enable registry lookup (default)
1718 --enable-win32-registry=KEY
1719 use KEY instead of GCC version as the last portion
1720 of the registry key
1721 --enable-shared[=PKGS] build shared libraries [default=yes]
1722 --enable-static[=PKGS] build static libraries [default=yes]
1723 --enable-fast-install[=PKGS]
1724 optimize for fast installation [default=yes]
1725 --disable-libtool-lock avoid locking (might break parallel builds)
1726 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1727 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1728 --enable-gnu-indirect-function
1729 enable the use of the @gnu_indirect_function to
1730 glibc systems
1731 --enable-initfini-array use .init_array/.fini_array sections
1732 --enable-comdat enable COMDAT group support
1733 --enable-newlib-nano-formatted-io
1734 Use nano version formatted IO
1735
1736 --enable-standard-branch-protection
1737 enable Branch Target Identification Mechanism and
1738 Return Address Signing by default for AArch64
1739 --disable-standard-branch-protection
1740 disable Branch Target Identification Mechanism and
1741 Return Address Signing by default for AArch64
1742
1743
1744 --enable-fix-cortex-a53-835769
1745 enable workaround for AArch64 Cortex-A53 erratum
1746 835769 by default
1747 --disable-fix-cortex-a53-835769
1748 disable workaround for AArch64 Cortex-A53 erratum
1749 835769 by default
1750
1751
1752 --enable-fix-cortex-a53-843419
1753 enable workaround for AArch64 Cortex-A53 erratum
1754 843419 by default
1755 --disable-fix-cortex-a53-843419
1756 disable workaround for AArch64 Cortex-A53 erratum
1757 843419 by default
1758
1759 --enable-gnu-unique-object
1760 enable the use of the @gnu_unique_object ELF
1761 extension on glibc systems
1762 --enable-linker-build-id
1763 compiler will always pass --build-id to linker
1764 --enable-libssp enable linking against libssp
1765 --enable-default-ssp enable Stack Smashing Protection as default
1766 --enable-maintainer-mode
1767 enable make rules and dependencies not useful (and
1768 sometimes confusing) to the casual installer
1769 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1770 thrashing on the build machine
1771 --enable-version-specific-runtime-libs
1772 specify that runtime libraries should be installed
1773 in a compiler-specific directory
1774 --enable-plugin enable plugin support
1775 --enable-host-shared build host code as shared libraries
1776 --disable-libquadmath-support
1777 disable libquadmath support for Fortran
1778 --enable-default-pie enable Position Independent Executable as default
1779 --enable-cet enable Intel CET in host libraries [default=auto]
1780
1781 Optional Packages:
1782 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1783 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1784 --with-build-libsubdir=DIR Directory where to find libraries for build system
1785 --with-local-prefix=DIR specifies directory to put local include
1786 --with-native-system-header-dir=dir
1787 use dir as the directory to look for standard
1788 system header files in. Defaults to /usr/include.
1789 --with-build-sysroot=sysroot
1790 use sysroot as the system root during the build
1791 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1792 --with-gxx-include-dir=DIR
1793 specifies directory to put g++ header files
1794 --with-cpp-install-dir=DIR
1795 install the user visible C preprocessor in DIR
1796 (relative to PREFIX) as well as PREFIX/bin
1797 --with-gnu-ld arrange to work with GNU ld
1798 --with-ld arrange to use the specified ld (full pathname)
1799 --with-demangler-in-ld try to use demangler in GNU ld
1800 --with-gnu-as arrange to work with GNU as
1801 --with-as arrange to use the specified as (full pathname)
1802 --with-stabs arrange to use stabs instead of host debug format
1803 --with-stack-clash-protection-guard-size=size
1804 Set the default stack clash protection guard size
1805 for specific targets as a power of two in bytes.
1806 --with-dwarf2 force the default debug format to be DWARF 2
1807 --with-specs=SPECS add SPECS to driver command-line processing
1808 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1809 --with-bugurl=URL Direct users to URL to report a bug
1810 --with-documentation-root-url=URL
1811 Root for documentation URLs
1812 --with-changes-root-url=URL
1813 Root for GCC changes URLs
1814 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1815 --with-multilib-generator
1816 Multi-libs configuration string (RISC-V only)
1817 --with-zstd=PATH specify prefix directory for installed zstd library.
1818 Equivalent to --with-zstd-include=PATH/include plus
1819 --with-zstd-lib=PATH/lib
1820 --with-zstd-include=PATH
1821 specify directory for installed zstd include files
1822 --with-zstd-lib=PATH specify directory for the installed zstd library
1823 --with-gnu-ld assume the C compiler uses GNU ld default=no
1824 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1825 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1826 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1827 --with-gcc-major-version-only
1828 use only GCC major number in filesystem paths
1829 --with-pic try to use only PIC/non-PIC objects [default=use
1830 both]
1831 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1832 --with-plugin-ld=[ARG] specify the plugin linker
1833 --with-glibc-version=M.N
1834 assume GCC used with glibc version M.N or later
1835 --with-long-double-128 use 128-bit long double by default
1836 --with-long-double-format={ieee,ibm}
1837 Specify whether PowerPC long double uses IEEE or IBM format
1838
1839 --with-gc={page,zone} this option is not supported anymore. It used to
1840 choose the garbage collection mechanism to use with
1841 the compiler
1842 --with-system-zlib use installed libz
1843 --with-linker-hash-style={sysv,gnu,both}
1844 specify the linker hash style
1845 --with-diagnostics-color={never,auto,auto-if-env,always}
1846 specify the default of -fdiagnostics-color option
1847 auto-if-env stands for -fdiagnostics-color=auto if
1848 GCC_COLOR environment variable is present and
1849 -fdiagnostics-color=never otherwise
1850 --with-diagnostics-urls={never,auto,auto-if-env,always}
1851 specify the default of -fdiagnostics-urls option
1852 auto-if-env stands for -fdiagnostics-urls=auto if
1853 GCC_URLS or TERM_URLS environment variable is
1854 present and -fdiagnostics-urls=never otherwise
1855
1856 Some influential environment variables:
1857 CC C compiler command
1858 CFLAGS C compiler flags
1859 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1860 nonstandard directory <lib dir>
1861 LIBS libraries to pass to the linker, e.g. -l<library>
1862 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1863 you have headers in a nonstandard directory <include dir>
1864 CXX C++ compiler command
1865 CXXFLAGS C++ compiler flags
1866 CXXCPP C++ preprocessor
1867 CPP C preprocessor
1868 GMPLIBS How to link GMP
1869 GMPINC How to find GMP include files
1870 ISLLIBS How to link isl
1871 ISLINC How to find isl include files
1872
1873 Use these variables to override the choices made by `configure' or to help
1874 it to find libraries and programs with nonstandard names/locations.
1875
1876 Report bugs to the package provider.
1877 _ACEOF
1878 ac_status=$?
1879 fi
1880
1881 if test "$ac_init_help" = "recursive"; then
1882 # If there are subdirs, report their specific --help.
1883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1884 test -d "$ac_dir" ||
1885 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1886 continue
1887 ac_builddir=.
1888
1889 case "$ac_dir" in
1890 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1891 *)
1892 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1893 # A ".." for each directory in $ac_dir_suffix.
1894 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1895 case $ac_top_builddir_sub in
1896 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1897 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1898 esac ;;
1899 esac
1900 ac_abs_top_builddir=$ac_pwd
1901 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1902 # for backward compatibility:
1903 ac_top_builddir=$ac_top_build_prefix
1904
1905 case $srcdir in
1906 .) # We are building in place.
1907 ac_srcdir=.
1908 ac_top_srcdir=$ac_top_builddir_sub
1909 ac_abs_top_srcdir=$ac_pwd ;;
1910 [\\/]* | ?:[\\/]* ) # Absolute name.
1911 ac_srcdir=$srcdir$ac_dir_suffix;
1912 ac_top_srcdir=$srcdir
1913 ac_abs_top_srcdir=$srcdir ;;
1914 *) # Relative name.
1915 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1916 ac_top_srcdir=$ac_top_build_prefix$srcdir
1917 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1918 esac
1919 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1920
1921 cd "$ac_dir" || { ac_status=$?; continue; }
1922 # Check for guested configure.
1923 if test -f "$ac_srcdir/configure.gnu"; then
1924 echo &&
1925 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1926 elif test -f "$ac_srcdir/configure"; then
1927 echo &&
1928 $SHELL "$ac_srcdir/configure" --help=recursive
1929 else
1930 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1931 fi || ac_status=$?
1932 cd "$ac_pwd" || { ac_status=$?; break; }
1933 done
1934 fi
1935
1936 test -n "$ac_init_help" && exit $ac_status
1937 if $ac_init_version; then
1938 cat <<\_ACEOF
1939 configure
1940 generated by GNU Autoconf 2.69
1941
1942 Copyright (C) 2012 Free Software Foundation, Inc.
1943 This configure script is free software; the Free Software Foundation
1944 gives unlimited permission to copy, distribute and modify it.
1945 _ACEOF
1946 exit
1947 fi
1948
1949 ## ------------------------ ##
1950 ## Autoconf initialization. ##
1951 ## ------------------------ ##
1952
1953 # ac_fn_c_try_compile LINENO
1954 # --------------------------
1955 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1956 ac_fn_c_try_compile ()
1957 {
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 rm -f conftest.$ac_objext
1960 if { { ac_try="$ac_compile"
1961 case "(($ac_try" in
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1964 esac
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_compile") 2>conftest.err
1968 ac_status=$?
1969 if test -s conftest.err; then
1970 grep -v '^ *+' conftest.err >conftest.er1
1971 cat conftest.er1 >&5
1972 mv -f conftest.er1 conftest.err
1973 fi
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } && {
1976 test -z "$ac_c_werror_flag" ||
1977 test ! -s conftest.err
1978 } && test -s conftest.$ac_objext; then :
1979 ac_retval=0
1980 else
1981 $as_echo "$as_me: failed program was:" >&5
1982 sed 's/^/| /' conftest.$ac_ext >&5
1983
1984 ac_retval=1
1985 fi
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987 as_fn_set_status $ac_retval
1988
1989 } # ac_fn_c_try_compile
1990
1991 # ac_fn_cxx_try_compile LINENO
1992 # ----------------------------
1993 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1994 ac_fn_cxx_try_compile ()
1995 {
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 rm -f conftest.$ac_objext
1998 if { { ac_try="$ac_compile"
1999 case "(($ac_try" in
2000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2001 *) ac_try_echo=$ac_try;;
2002 esac
2003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2004 $as_echo "$ac_try_echo"; } >&5
2005 (eval "$ac_compile") 2>conftest.err
2006 ac_status=$?
2007 if test -s conftest.err; then
2008 grep -v '^ *+' conftest.err >conftest.er1
2009 cat conftest.er1 >&5
2010 mv -f conftest.er1 conftest.err
2011 fi
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; } && {
2014 test -z "$ac_cxx_werror_flag" ||
2015 test ! -s conftest.err
2016 } && test -s conftest.$ac_objext; then :
2017 ac_retval=0
2018 else
2019 $as_echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2021
2022 ac_retval=1
2023 fi
2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 as_fn_set_status $ac_retval
2026
2027 } # ac_fn_cxx_try_compile
2028
2029 # ac_fn_cxx_try_cpp LINENO
2030 # ------------------------
2031 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2032 ac_fn_cxx_try_cpp ()
2033 {
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 if { { ac_try="$ac_cpp conftest.$ac_ext"
2036 case "(($ac_try" in
2037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2038 *) ac_try_echo=$ac_try;;
2039 esac
2040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2041 $as_echo "$ac_try_echo"; } >&5
2042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2043 ac_status=$?
2044 if test -s conftest.err; then
2045 grep -v '^ *+' conftest.err >conftest.er1
2046 cat conftest.er1 >&5
2047 mv -f conftest.er1 conftest.err
2048 fi
2049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2050 test $ac_status = 0; } > conftest.i && {
2051 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2052 test ! -s conftest.err
2053 }; then :
2054 ac_retval=0
2055 else
2056 $as_echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2058
2059 ac_retval=1
2060 fi
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062 as_fn_set_status $ac_retval
2063
2064 } # ac_fn_cxx_try_cpp
2065
2066 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2067 # ---------------------------------------------------------
2068 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2069 # the include files in INCLUDES and setting the cache variable VAR
2070 # accordingly.
2071 ac_fn_cxx_check_header_mongrel ()
2072 {
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 if eval \${$3+:} false; then :
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076 $as_echo_n "checking for $2... " >&6; }
2077 if eval \${$3+:} false; then :
2078 $as_echo_n "(cached) " >&6
2079 fi
2080 eval ac_res=\$$3
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2083 else
2084 # Is the header compilable?
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2086 $as_echo_n "checking $2 usability... " >&6; }
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 $4
2090 #include <$2>
2091 _ACEOF
2092 if ac_fn_cxx_try_compile "$LINENO"; then :
2093 ac_header_compiler=yes
2094 else
2095 ac_header_compiler=no
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2099 $as_echo "$ac_header_compiler" >&6; }
2100
2101 # Is the header present?
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2103 $as_echo_n "checking $2 presence... " >&6; }
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2106 #include <$2>
2107 _ACEOF
2108 if ac_fn_cxx_try_cpp "$LINENO"; then :
2109 ac_header_preproc=yes
2110 else
2111 ac_header_preproc=no
2112 fi
2113 rm -f conftest.err conftest.i conftest.$ac_ext
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2115 $as_echo "$ac_header_preproc" >&6; }
2116
2117 # So? What about this header?
2118 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2119 yes:no: )
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2121 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2123 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2124 ;;
2125 no:yes:* )
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2127 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2129 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2131 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2133 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2135 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2136 ;;
2137 esac
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if eval \${$3+:} false; then :
2141 $as_echo_n "(cached) " >&6
2142 else
2143 eval "$3=\$ac_header_compiler"
2144 fi
2145 eval ac_res=\$$3
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2148 fi
2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150
2151 } # ac_fn_cxx_check_header_mongrel
2152
2153 # ac_fn_cxx_try_run LINENO
2154 # ------------------------
2155 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2156 # that executables *can* be run.
2157 ac_fn_cxx_try_run ()
2158 {
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 if { { ac_try="$ac_link"
2161 case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164 esac
2165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166 $as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_link") 2>&5
2168 ac_status=$?
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2171 { { case "(($ac_try" in
2172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173 *) ac_try_echo=$ac_try;;
2174 esac
2175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176 $as_echo "$ac_try_echo"; } >&5
2177 (eval "$ac_try") 2>&5
2178 ac_status=$?
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; }; }; then :
2181 ac_retval=0
2182 else
2183 $as_echo "$as_me: program exited with status $ac_status" >&5
2184 $as_echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 ac_retval=$ac_status
2188 fi
2189 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 as_fn_set_status $ac_retval
2192
2193 } # ac_fn_cxx_try_run
2194
2195 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2196 # ---------------------------------------------------------
2197 # Tests whether HEADER exists and can be compiled using the include files in
2198 # INCLUDES, setting the cache variable VAR accordingly.
2199 ac_fn_cxx_check_header_compile ()
2200 {
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203 $as_echo_n "checking for $2... " >&6; }
2204 if eval \${$3+:} false; then :
2205 $as_echo_n "(cached) " >&6
2206 else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 $4
2210 #include <$2>
2211 _ACEOF
2212 if ac_fn_cxx_try_compile "$LINENO"; then :
2213 eval "$3=yes"
2214 else
2215 eval "$3=no"
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 fi
2219 eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223
2224 } # ac_fn_cxx_check_header_compile
2225
2226 # ac_fn_c_try_cpp LINENO
2227 # ----------------------
2228 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2229 ac_fn_c_try_cpp ()
2230 {
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 if { { ac_try="$ac_cpp conftest.$ac_ext"
2233 case "(($ac_try" in
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2236 esac
2237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2238 $as_echo "$ac_try_echo"; } >&5
2239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2240 ac_status=$?
2241 if test -s conftest.err; then
2242 grep -v '^ *+' conftest.err >conftest.er1
2243 cat conftest.er1 >&5
2244 mv -f conftest.er1 conftest.err
2245 fi
2246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2247 test $ac_status = 0; } > conftest.i && {
2248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2249 test ! -s conftest.err
2250 }; then :
2251 ac_retval=0
2252 else
2253 $as_echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2255
2256 ac_retval=1
2257 fi
2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259 as_fn_set_status $ac_retval
2260
2261 } # ac_fn_c_try_cpp
2262
2263 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2264 # ----------------------------------------------
2265 # Tries to find the compile-time value of EXPR in a program that includes
2266 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2267 # computed
2268 ac_fn_cxx_compute_int ()
2269 {
2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271 if test "$cross_compiling" = yes; then
2272 # Depending upon the size, compute the lo and hi bounds.
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2275 $4
2276 int
2277 main ()
2278 {
2279 static int test_array [1 - 2 * !(($2) >= 0)];
2280 test_array [0] = 0;
2281 return test_array [0];
2282
2283 ;
2284 return 0;
2285 }
2286 _ACEOF
2287 if ac_fn_cxx_try_compile "$LINENO"; then :
2288 ac_lo=0 ac_mid=0
2289 while :; do
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2292 $4
2293 int
2294 main ()
2295 {
2296 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2297 test_array [0] = 0;
2298 return test_array [0];
2299
2300 ;
2301 return 0;
2302 }
2303 _ACEOF
2304 if ac_fn_cxx_try_compile "$LINENO"; then :
2305 ac_hi=$ac_mid; break
2306 else
2307 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2308 if test $ac_lo -le $ac_mid; then
2309 ac_lo= ac_hi=
2310 break
2311 fi
2312 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2313 fi
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 done
2316 else
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2319 $4
2320 int
2321 main ()
2322 {
2323 static int test_array [1 - 2 * !(($2) < 0)];
2324 test_array [0] = 0;
2325 return test_array [0];
2326
2327 ;
2328 return 0;
2329 }
2330 _ACEOF
2331 if ac_fn_cxx_try_compile "$LINENO"; then :
2332 ac_hi=-1 ac_mid=-1
2333 while :; do
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h. */
2336 $4
2337 int
2338 main ()
2339 {
2340 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2341 test_array [0] = 0;
2342 return test_array [0];
2343
2344 ;
2345 return 0;
2346 }
2347 _ACEOF
2348 if ac_fn_cxx_try_compile "$LINENO"; then :
2349 ac_lo=$ac_mid; break
2350 else
2351 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2352 if test $ac_mid -le $ac_hi; then
2353 ac_lo= ac_hi=
2354 break
2355 fi
2356 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2357 fi
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 done
2360 else
2361 ac_lo= ac_hi=
2362 fi
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 fi
2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 # Binary search between lo and hi bounds.
2367 while test "x$ac_lo" != "x$ac_hi"; do
2368 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2371 $4
2372 int
2373 main ()
2374 {
2375 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2376 test_array [0] = 0;
2377 return test_array [0];
2378
2379 ;
2380 return 0;
2381 }
2382 _ACEOF
2383 if ac_fn_cxx_try_compile "$LINENO"; then :
2384 ac_hi=$ac_mid
2385 else
2386 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2387 fi
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 done
2390 case $ac_lo in #((
2391 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2392 '') ac_retval=1 ;;
2393 esac
2394 else
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2397 $4
2398 static long int longval () { return $2; }
2399 static unsigned long int ulongval () { return $2; }
2400 #include <stdio.h>
2401 #include <stdlib.h>
2402 int
2403 main ()
2404 {
2405
2406 FILE *f = fopen ("conftest.val", "w");
2407 if (! f)
2408 return 1;
2409 if (($2) < 0)
2410 {
2411 long int i = longval ();
2412 if (i != ($2))
2413 return 1;
2414 fprintf (f, "%ld", i);
2415 }
2416 else
2417 {
2418 unsigned long int i = ulongval ();
2419 if (i != ($2))
2420 return 1;
2421 fprintf (f, "%lu", i);
2422 }
2423 /* Do not output a trailing newline, as this causes \r\n confusion
2424 on some platforms. */
2425 return ferror (f) || fclose (f) != 0;
2426
2427 ;
2428 return 0;
2429 }
2430 _ACEOF
2431 if ac_fn_cxx_try_run "$LINENO"; then :
2432 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2433 else
2434 ac_retval=1
2435 fi
2436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2437 conftest.$ac_objext conftest.beam conftest.$ac_ext
2438 rm -f conftest.val
2439
2440 fi
2441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2442 as_fn_set_status $ac_retval
2443
2444 } # ac_fn_cxx_compute_int
2445
2446 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2447 # ---------------------------------------------
2448 # Tests whether TYPE exists after having included INCLUDES, setting cache
2449 # variable VAR accordingly.
2450 ac_fn_cxx_check_type ()
2451 {
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454 $as_echo_n "checking for $2... " >&6; }
2455 if eval \${$3+:} false; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 eval "$3=no"
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2461 $4
2462 int
2463 main ()
2464 {
2465 if (sizeof ($2))
2466 return 0;
2467 ;
2468 return 0;
2469 }
2470 _ACEOF
2471 if ac_fn_cxx_try_compile "$LINENO"; then :
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2474 $4
2475 int
2476 main ()
2477 {
2478 if (sizeof (($2)))
2479 return 0;
2480 ;
2481 return 0;
2482 }
2483 _ACEOF
2484 if ac_fn_cxx_try_compile "$LINENO"; then :
2485
2486 else
2487 eval "$3=yes"
2488 fi
2489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490 fi
2491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2492 fi
2493 eval ac_res=\$$3
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2495 $as_echo "$ac_res" >&6; }
2496 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2497
2498 } # ac_fn_cxx_check_type
2499
2500 # ac_fn_c_find_intX_t LINENO BITS VAR
2501 # -----------------------------------
2502 # Finds a signed integer type with width BITS, setting cache variable VAR
2503 # accordingly.
2504 ac_fn_c_find_intX_t ()
2505 {
2506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2508 $as_echo_n "checking for int$2_t... " >&6; }
2509 if eval \${$3+:} false; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 eval "$3=no"
2513 # Order is important - never check a type that is potentially smaller
2514 # than half of the expected target width.
2515 for ac_type in int$2_t 'int' 'long int' \
2516 'long long int' 'short int' 'signed char'; do
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h. */
2519 $ac_includes_default
2520 enum { N = $2 / 2 - 1 };
2521 int
2522 main ()
2523 {
2524 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2525 test_array [0] = 0;
2526 return test_array [0];
2527
2528 ;
2529 return 0;
2530 }
2531 _ACEOF
2532 if ac_fn_cxx_try_compile "$LINENO"; then :
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2535 $ac_includes_default
2536 enum { N = $2 / 2 - 1 };
2537 int
2538 main ()
2539 {
2540 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2541 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2542 test_array [0] = 0;
2543 return test_array [0];
2544
2545 ;
2546 return 0;
2547 }
2548 _ACEOF
2549 if ac_fn_cxx_try_compile "$LINENO"; then :
2550
2551 else
2552 case $ac_type in #(
2553 int$2_t) :
2554 eval "$3=yes" ;; #(
2555 *) :
2556 eval "$3=\$ac_type" ;;
2557 esac
2558 fi
2559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2560 fi
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 if eval test \"x\$"$3"\" = x"no"; then :
2563
2564 else
2565 break
2566 fi
2567 done
2568 fi
2569 eval ac_res=\$$3
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2571 $as_echo "$ac_res" >&6; }
2572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2573
2574 } # ac_fn_c_find_intX_t
2575
2576 # ac_fn_cxx_try_link LINENO
2577 # -------------------------
2578 # Try to link conftest.$ac_ext, and return whether this succeeded.
2579 ac_fn_cxx_try_link ()
2580 {
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 rm -f conftest.$ac_objext conftest$ac_exeext
2583 if { { ac_try="$ac_link"
2584 case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587 esac
2588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2589 $as_echo "$ac_try_echo"; } >&5
2590 (eval "$ac_link") 2>conftest.err
2591 ac_status=$?
2592 if test -s conftest.err; then
2593 grep -v '^ *+' conftest.err >conftest.er1
2594 cat conftest.er1 >&5
2595 mv -f conftest.er1 conftest.err
2596 fi
2597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2598 test $ac_status = 0; } && {
2599 test -z "$ac_cxx_werror_flag" ||
2600 test ! -s conftest.err
2601 } && test -s conftest$ac_exeext && {
2602 test "$cross_compiling" = yes ||
2603 test -x conftest$ac_exeext
2604 }; then :
2605 ac_retval=0
2606 else
2607 $as_echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2609
2610 ac_retval=1
2611 fi
2612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2614 # interfere with the next link command; also delete a directory that is
2615 # left behind by Apple's compiler. We do this before executing the actions.
2616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2618 as_fn_set_status $ac_retval
2619
2620 } # ac_fn_cxx_try_link
2621
2622 # ac_fn_c_find_uintX_t LINENO BITS VAR
2623 # ------------------------------------
2624 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2625 # accordingly.
2626 ac_fn_c_find_uintX_t ()
2627 {
2628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2630 $as_echo_n "checking for uint$2_t... " >&6; }
2631 if eval \${$3+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 eval "$3=no"
2635 # Order is important - never check a type that is potentially smaller
2636 # than half of the expected target width.
2637 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2638 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2641 $ac_includes_default
2642 int
2643 main ()
2644 {
2645 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2646 test_array [0] = 0;
2647 return test_array [0];
2648
2649 ;
2650 return 0;
2651 }
2652 _ACEOF
2653 if ac_fn_cxx_try_compile "$LINENO"; then :
2654 case $ac_type in #(
2655 uint$2_t) :
2656 eval "$3=yes" ;; #(
2657 *) :
2658 eval "$3=\$ac_type" ;;
2659 esac
2660 fi
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 if eval test \"x\$"$3"\" = x"no"; then :
2663
2664 else
2665 break
2666 fi
2667 done
2668 fi
2669 eval ac_res=\$$3
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2671 $as_echo "$ac_res" >&6; }
2672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2673
2674 } # ac_fn_c_find_uintX_t
2675
2676 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2677 # ------------------------------------------------
2678 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2679 ac_fn_cxx_check_header_preproc ()
2680 {
2681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2683 $as_echo_n "checking for $2... " >&6; }
2684 if eval \${$3+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688 /* end confdefs.h. */
2689 #include <$2>
2690 _ACEOF
2691 if ac_fn_cxx_try_cpp "$LINENO"; then :
2692 eval "$3=yes"
2693 else
2694 eval "$3=no"
2695 fi
2696 rm -f conftest.err conftest.i conftest.$ac_ext
2697 fi
2698 eval ac_res=\$$3
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2700 $as_echo "$ac_res" >&6; }
2701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2702
2703 } # ac_fn_cxx_check_header_preproc
2704
2705 # ac_fn_cxx_check_func LINENO FUNC VAR
2706 # ------------------------------------
2707 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2708 ac_fn_cxx_check_func ()
2709 {
2710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2712 $as_echo_n "checking for $2... " >&6; }
2713 if eval \${$3+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2717 /* end confdefs.h. */
2718 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2720 #define $2 innocuous_$2
2721
2722 /* System header to define __stub macros and hopefully few prototypes,
2723 which can conflict with char $2 (); below.
2724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2725 <limits.h> exists even on freestanding compilers. */
2726
2727 #ifdef __STDC__
2728 # include <limits.h>
2729 #else
2730 # include <assert.h>
2731 #endif
2732
2733 #undef $2
2734
2735 /* Override any GCC internal prototype to avoid an error.
2736 Use char because int might match the return type of a GCC
2737 builtin and then its argument prototype would still apply. */
2738 #ifdef __cplusplus
2739 extern "C"
2740 #endif
2741 char $2 ();
2742 /* The GNU C library defines this for functions which it implements
2743 to always fail with ENOSYS. Some functions are actually named
2744 something starting with __ and the normal name is an alias. */
2745 #if defined __stub_$2 || defined __stub___$2
2746 choke me
2747 #endif
2748
2749 int
2750 main ()
2751 {
2752 return $2 ();
2753 ;
2754 return 0;
2755 }
2756 _ACEOF
2757 if ac_fn_cxx_try_link "$LINENO"; then :
2758 eval "$3=yes"
2759 else
2760 eval "$3=no"
2761 fi
2762 rm -f core conftest.err conftest.$ac_objext \
2763 conftest$ac_exeext conftest.$ac_ext
2764 fi
2765 eval ac_res=\$$3
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2767 $as_echo "$ac_res" >&6; }
2768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2769
2770 } # ac_fn_cxx_check_func
2771
2772 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2773 # -----------------------------------------------
2774 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2775 # accordingly.
2776 ac_fn_cxx_check_decl ()
2777 {
2778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2779 as_decl_name=`echo $2|sed 's/ *(.*//'`
2780 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2782 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2783 if eval \${$3+:} false; then :
2784 $as_echo_n "(cached) " >&6
2785 else
2786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2787 /* end confdefs.h. */
2788 $4
2789 int
2790 main ()
2791 {
2792 #ifndef $as_decl_name
2793 #ifdef __cplusplus
2794 (void) $as_decl_use;
2795 #else
2796 (void) $as_decl_name;
2797 #endif
2798 #endif
2799
2800 ;
2801 return 0;
2802 }
2803 _ACEOF
2804 if ac_fn_cxx_try_compile "$LINENO"; then :
2805 eval "$3=yes"
2806 else
2807 eval "$3=no"
2808 fi
2809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810 fi
2811 eval ac_res=\$$3
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2813 $as_echo "$ac_res" >&6; }
2814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2815
2816 } # ac_fn_cxx_check_decl
2817
2818 # ac_fn_c_try_link LINENO
2819 # -----------------------
2820 # Try to link conftest.$ac_ext, and return whether this succeeded.
2821 ac_fn_c_try_link ()
2822 {
2823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2824 rm -f conftest.$ac_objext conftest$ac_exeext
2825 if { { ac_try="$ac_link"
2826 case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829 esac
2830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2831 $as_echo "$ac_try_echo"; } >&5
2832 (eval "$ac_link") 2>conftest.err
2833 ac_status=$?
2834 if test -s conftest.err; then
2835 grep -v '^ *+' conftest.err >conftest.er1
2836 cat conftest.er1 >&5
2837 mv -f conftest.er1 conftest.err
2838 fi
2839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2840 test $ac_status = 0; } && {
2841 test -z "$ac_c_werror_flag" ||
2842 test ! -s conftest.err
2843 } && test -s conftest$ac_exeext && {
2844 test "$cross_compiling" = yes ||
2845 test -x conftest$ac_exeext
2846 }; then :
2847 ac_retval=0
2848 else
2849 $as_echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2851
2852 ac_retval=1
2853 fi
2854 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2855 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2856 # interfere with the next link command; also delete a directory that is
2857 # left behind by Apple's compiler. We do this before executing the actions.
2858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2860 as_fn_set_status $ac_retval
2861
2862 } # ac_fn_c_try_link
2863
2864 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2865 # ----------------------------------------------
2866 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2867 ac_fn_c_check_header_preproc ()
2868 {
2869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2871 $as_echo_n "checking for $2... " >&6; }
2872 if eval \${$3+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h. */
2877 #include <$2>
2878 _ACEOF
2879 if ac_fn_c_try_cpp "$LINENO"; then :
2880 eval "$3=yes"
2881 else
2882 eval "$3=no"
2883 fi
2884 rm -f conftest.err conftest.i conftest.$ac_ext
2885 fi
2886 eval ac_res=\$$3
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2888 $as_echo "$ac_res" >&6; }
2889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2890
2891 } # ac_fn_c_check_header_preproc
2892
2893 # ac_fn_c_check_func LINENO FUNC VAR
2894 # ----------------------------------
2895 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2896 ac_fn_c_check_func ()
2897 {
2898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2900 $as_echo_n "checking for $2... " >&6; }
2901 if eval \${$3+:} false; then :
2902 $as_echo_n "(cached) " >&6
2903 else
2904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2905 /* end confdefs.h. */
2906 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2908 #define $2 innocuous_$2
2909
2910 /* System header to define __stub macros and hopefully few prototypes,
2911 which can conflict with char $2 (); below.
2912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2913 <limits.h> exists even on freestanding compilers. */
2914
2915 #ifdef __STDC__
2916 # include <limits.h>
2917 #else
2918 # include <assert.h>
2919 #endif
2920
2921 #undef $2
2922
2923 /* Override any GCC internal prototype to avoid an error.
2924 Use char because int might match the return type of a GCC
2925 builtin and then its argument prototype would still apply. */
2926 #ifdef __cplusplus
2927 extern "C"
2928 #endif
2929 char $2 ();
2930 /* The GNU C library defines this for functions which it implements
2931 to always fail with ENOSYS. Some functions are actually named
2932 something starting with __ and the normal name is an alias. */
2933 #if defined __stub_$2 || defined __stub___$2
2934 choke me
2935 #endif
2936
2937 int
2938 main ()
2939 {
2940 return $2 ();
2941 ;
2942 return 0;
2943 }
2944 _ACEOF
2945 if ac_fn_c_try_link "$LINENO"; then :
2946 eval "$3=yes"
2947 else
2948 eval "$3=no"
2949 fi
2950 rm -f core conftest.err conftest.$ac_objext \
2951 conftest$ac_exeext conftest.$ac_ext
2952 fi
2953 eval ac_res=\$$3
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2955 $as_echo "$ac_res" >&6; }
2956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2957
2958 } # ac_fn_c_check_func
2959 cat >config.log <<_ACEOF
2960 This file contains any messages produced by compilers while
2961 running configure, to aid debugging if configure makes a mistake.
2962
2963 It was created by $as_me, which was
2964 generated by GNU Autoconf 2.69. Invocation command line was
2965
2966 $ $0 $@
2967
2968 _ACEOF
2969 exec 5>>config.log
2970 {
2971 cat <<_ASUNAME
2972 ## --------- ##
2973 ## Platform. ##
2974 ## --------- ##
2975
2976 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2977 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2978 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2979 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2980 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2981
2982 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2983 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2984
2985 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2986 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2987 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2988 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2989 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2990 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2991 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2992
2993 _ASUNAME
2994
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 $as_echo "PATH: $as_dir"
3001 done
3002 IFS=$as_save_IFS
3003
3004 } >&5
3005
3006 cat >&5 <<_ACEOF
3007
3008
3009 ## ----------- ##
3010 ## Core tests. ##
3011 ## ----------- ##
3012
3013 _ACEOF
3014
3015
3016 # Keep a trace of the command line.
3017 # Strip out --no-create and --no-recursion so they do not pile up.
3018 # Strip out --silent because we don't want to record it for future runs.
3019 # Also quote any args containing shell meta-characters.
3020 # Make two passes to allow for proper duplicate-argument suppression.
3021 ac_configure_args=
3022 ac_configure_args0=
3023 ac_configure_args1=
3024 ac_must_keep_next=false
3025 for ac_pass in 1 2
3026 do
3027 for ac_arg
3028 do
3029 case $ac_arg in
3030 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3032 | -silent | --silent | --silen | --sile | --sil)
3033 continue ;;
3034 *\'*)
3035 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3036 esac
3037 case $ac_pass in
3038 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3039 2)
3040 as_fn_append ac_configure_args1 " '$ac_arg'"
3041 if test $ac_must_keep_next = true; then
3042 ac_must_keep_next=false # Got value, back to normal.
3043 else
3044 case $ac_arg in
3045 *=* | --config-cache | -C | -disable-* | --disable-* \
3046 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3047 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3048 | -with-* | --with-* | -without-* | --without-* | --x)
3049 case "$ac_configure_args0 " in
3050 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3051 esac
3052 ;;
3053 -* ) ac_must_keep_next=true ;;
3054 esac
3055 fi
3056 as_fn_append ac_configure_args " '$ac_arg'"
3057 ;;
3058 esac
3059 done
3060 done
3061 { ac_configure_args0=; unset ac_configure_args0;}
3062 { ac_configure_args1=; unset ac_configure_args1;}
3063
3064 # When interrupted or exit'd, cleanup temporary files, and complete
3065 # config.log. We remove comments because anyway the quotes in there
3066 # would cause problems or look ugly.
3067 # WARNING: Use '\'' to represent an apostrophe within the trap.
3068 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3069 trap 'exit_status=$?
3070 # Save into config.log some information that might help in debugging.
3071 {
3072 echo
3073
3074 $as_echo "## ---------------- ##
3075 ## Cache variables. ##
3076 ## ---------------- ##"
3077 echo
3078 # The following way of writing the cache mishandles newlines in values,
3079 (
3080 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3081 eval ac_val=\$$ac_var
3082 case $ac_val in #(
3083 *${as_nl}*)
3084 case $ac_var in #(
3085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3086 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3087 esac
3088 case $ac_var in #(
3089 _ | IFS | as_nl) ;; #(
3090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3091 *) { eval $ac_var=; unset $ac_var;} ;;
3092 esac ;;
3093 esac
3094 done
3095 (set) 2>&1 |
3096 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3097 *${as_nl}ac_space=\ *)
3098 sed -n \
3099 "s/'\''/'\''\\\\'\'''\''/g;
3100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3101 ;; #(
3102 *)
3103 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3104 ;;
3105 esac |
3106 sort
3107 )
3108 echo
3109
3110 $as_echo "## ----------------- ##
3111 ## Output variables. ##
3112 ## ----------------- ##"
3113 echo
3114 for ac_var in $ac_subst_vars
3115 do
3116 eval ac_val=\$$ac_var
3117 case $ac_val in
3118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3119 esac
3120 $as_echo "$ac_var='\''$ac_val'\''"
3121 done | sort
3122 echo
3123
3124 if test -n "$ac_subst_files"; then
3125 $as_echo "## ------------------- ##
3126 ## File substitutions. ##
3127 ## ------------------- ##"
3128 echo
3129 for ac_var in $ac_subst_files
3130 do
3131 eval ac_val=\$$ac_var
3132 case $ac_val in
3133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3134 esac
3135 $as_echo "$ac_var='\''$ac_val'\''"
3136 done | sort
3137 echo
3138 fi
3139
3140 if test -s confdefs.h; then
3141 $as_echo "## ----------- ##
3142 ## confdefs.h. ##
3143 ## ----------- ##"
3144 echo
3145 cat confdefs.h
3146 echo
3147 fi
3148 test "$ac_signal" != 0 &&
3149 $as_echo "$as_me: caught signal $ac_signal"
3150 $as_echo "$as_me: exit $exit_status"
3151 } >&5
3152 rm -f core *.core core.conftest.* &&
3153 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3154 exit $exit_status
3155 ' 0
3156 for ac_signal in 1 2 13 15; do
3157 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3158 done
3159 ac_signal=0
3160
3161 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3162 rm -f -r conftest* confdefs.h
3163
3164 $as_echo "/* confdefs.h */" > confdefs.h
3165
3166 # Predefined preprocessor variables.
3167
3168 cat >>confdefs.h <<_ACEOF
3169 #define PACKAGE_NAME "$PACKAGE_NAME"
3170 _ACEOF
3171
3172 cat >>confdefs.h <<_ACEOF
3173 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3174 _ACEOF
3175
3176 cat >>confdefs.h <<_ACEOF
3177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3178 _ACEOF
3179
3180 cat >>confdefs.h <<_ACEOF
3181 #define PACKAGE_STRING "$PACKAGE_STRING"
3182 _ACEOF
3183
3184 cat >>confdefs.h <<_ACEOF
3185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3186 _ACEOF
3187
3188 cat >>confdefs.h <<_ACEOF
3189 #define PACKAGE_URL "$PACKAGE_URL"
3190 _ACEOF
3191
3192
3193 # Let the site file select an alternate cache file if it wants to.
3194 # Prefer an explicitly selected file to automatically selected ones.
3195 ac_site_file1=NONE
3196 ac_site_file2=NONE
3197 if test -n "$CONFIG_SITE"; then
3198 # We do not want a PATH search for config.site.
3199 case $CONFIG_SITE in #((
3200 -*) ac_site_file1=./$CONFIG_SITE;;
3201 */*) ac_site_file1=$CONFIG_SITE;;
3202 *) ac_site_file1=./$CONFIG_SITE;;
3203 esac
3204 elif test "x$prefix" != xNONE; then
3205 ac_site_file1=$prefix/share/config.site
3206 ac_site_file2=$prefix/etc/config.site
3207 else
3208 ac_site_file1=$ac_default_prefix/share/config.site
3209 ac_site_file2=$ac_default_prefix/etc/config.site
3210 fi
3211 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3212 do
3213 test "x$ac_site_file" = xNONE && continue
3214 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3216 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3217 sed 's/^/| /' "$ac_site_file" >&5
3218 . "$ac_site_file" \
3219 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error $? "failed to load site script $ac_site_file
3222 See \`config.log' for more details" "$LINENO" 5; }
3223 fi
3224 done
3225
3226 if test -r "$cache_file"; then
3227 # Some versions of bash will fail to source /dev/null (special files
3228 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3229 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3231 $as_echo "$as_me: loading cache $cache_file" >&6;}
3232 case $cache_file in
3233 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3234 *) . "./$cache_file";;
3235 esac
3236 fi
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3239 $as_echo "$as_me: creating cache $cache_file" >&6;}
3240 >$cache_file
3241 fi
3242
3243 # Check that the precious variables saved in the cache have kept the same
3244 # value.
3245 ac_cache_corrupted=false
3246 for ac_var in $ac_precious_vars; do
3247 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3248 eval ac_new_set=\$ac_env_${ac_var}_set
3249 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3250 eval ac_new_val=\$ac_env_${ac_var}_value
3251 case $ac_old_set,$ac_new_set in
3252 set,)
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3254 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3255 ac_cache_corrupted=: ;;
3256 ,set)
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3258 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3259 ac_cache_corrupted=: ;;
3260 ,);;
3261 *)
3262 if test "x$ac_old_val" != "x$ac_new_val"; then
3263 # differences in whitespace do not lead to failure.
3264 ac_old_val_w=`echo x $ac_old_val`
3265 ac_new_val_w=`echo x $ac_new_val`
3266 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3268 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3269 ac_cache_corrupted=:
3270 else
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3272 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3273 eval $ac_var=\$ac_old_val
3274 fi
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3276 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3278 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3279 fi;;
3280 esac
3281 # Pass precious variables to config.status.
3282 if test "$ac_new_set" = set; then
3283 case $ac_new_val in
3284 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3285 *) ac_arg=$ac_var=$ac_new_val ;;
3286 esac
3287 case " $ac_configure_args " in
3288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3289 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3290 esac
3291 fi
3292 done
3293 if $ac_cache_corrupted; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3297 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3298 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3299 fi
3300 ## -------------------- ##
3301 ## Main body of script. ##
3302 ## -------------------- ##
3303
3304 ac_ext=c
3305 ac_cpp='$CPP $CPPFLAGS'
3306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3309
3310
3311
3312
3313
3314
3315 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3316
3317
3318 gcc_version=`cat $srcdir/BASE-VER`
3319
3320 # Determine the host, build, and target systems
3321 ac_aux_dir=
3322 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3323 if test -f "$ac_dir/install-sh"; then
3324 ac_aux_dir=$ac_dir
3325 ac_install_sh="$ac_aux_dir/install-sh -c"
3326 break
3327 elif test -f "$ac_dir/install.sh"; then
3328 ac_aux_dir=$ac_dir
3329 ac_install_sh="$ac_aux_dir/install.sh -c"
3330 break
3331 elif test -f "$ac_dir/shtool"; then
3332 ac_aux_dir=$ac_dir
3333 ac_install_sh="$ac_aux_dir/shtool install -c"
3334 break
3335 fi
3336 done
3337 if test -z "$ac_aux_dir"; then
3338 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3339 fi
3340
3341 # These three variables are undocumented and unsupported,
3342 # and are intended to be withdrawn in a future Autoconf release.
3343 # They can cause serious problems if a builder's source tree is in a directory
3344 # whose full name contains unusual characters.
3345 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3346 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3347 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3348
3349
3350 # Make sure we can run config.sub.
3351 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3352 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3353
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3355 $as_echo_n "checking build system type... " >&6; }
3356 if ${ac_cv_build+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 ac_build_alias=$build_alias
3360 test "x$ac_build_alias" = x &&
3361 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3362 test "x$ac_build_alias" = x &&
3363 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3364 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3365 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3366
3367 fi
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3369 $as_echo "$ac_cv_build" >&6; }
3370 case $ac_cv_build in
3371 *-*-*) ;;
3372 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3373 esac
3374 build=$ac_cv_build
3375 ac_save_IFS=$IFS; IFS='-'
3376 set x $ac_cv_build
3377 shift
3378 build_cpu=$1
3379 build_vendor=$2
3380 shift; shift
3381 # Remember, the first character of IFS is used to create $*,
3382 # except with old shells:
3383 build_os=$*
3384 IFS=$ac_save_IFS
3385 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3386
3387
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3389 $as_echo_n "checking host system type... " >&6; }
3390 if ${ac_cv_host+:} false; then :
3391 $as_echo_n "(cached) " >&6
3392 else
3393 if test "x$host_alias" = x; then
3394 ac_cv_host=$ac_cv_build
3395 else
3396 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3397 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3398 fi
3399
3400 fi
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3402 $as_echo "$ac_cv_host" >&6; }
3403 case $ac_cv_host in
3404 *-*-*) ;;
3405 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3406 esac
3407 host=$ac_cv_host
3408 ac_save_IFS=$IFS; IFS='-'
3409 set x $ac_cv_host
3410 shift
3411 host_cpu=$1
3412 host_vendor=$2
3413 shift; shift
3414 # Remember, the first character of IFS is used to create $*,
3415 # except with old shells:
3416 host_os=$*
3417 IFS=$ac_save_IFS
3418 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3419
3420
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3422 $as_echo_n "checking target system type... " >&6; }
3423 if ${ac_cv_target+:} false; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 if test "x$target_alias" = x; then
3427 ac_cv_target=$ac_cv_host
3428 else
3429 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3430 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3431 fi
3432
3433 fi
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3435 $as_echo "$ac_cv_target" >&6; }
3436 case $ac_cv_target in
3437 *-*-*) ;;
3438 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3439 esac
3440 target=$ac_cv_target
3441 ac_save_IFS=$IFS; IFS='-'
3442 set x $ac_cv_target
3443 shift
3444 target_cpu=$1
3445 target_vendor=$2
3446 shift; shift
3447 # Remember, the first character of IFS is used to create $*,
3448 # except with old shells:
3449 target_os=$*
3450 IFS=$ac_save_IFS
3451 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3452
3453
3454 # The aliases save the names the user supplied, while $host etc.
3455 # will get canonicalized.
3456 test -n "$target_alias" &&
3457 test "$program_prefix$program_suffix$program_transform_name" = \
3458 NONENONEs,x,x, &&
3459 program_prefix=${target_alias}-
3460
3461 # Determine the noncanonical host name, for Ada.
3462 case ${build_alias} in
3463 "") build_noncanonical=${build} ;;
3464 *) build_noncanonical=${build_alias} ;;
3465 esac
3466
3467 case ${host_alias} in
3468 "") host_noncanonical=${build_noncanonical} ;;
3469 *) host_noncanonical=${host_alias} ;;
3470 esac
3471
3472
3473
3474
3475 # Determine the noncanonical target name, for directory use.
3476 case ${target_alias} in
3477 "") target_noncanonical=${host_noncanonical} ;;
3478 *) target_noncanonical=${target_alias} ;;
3479 esac
3480
3481
3482
3483
3484 # Used for constructing correct paths for offload compilers.
3485 real_target_noncanonical=${target_noncanonical}
3486 accel_dir_suffix=
3487
3488 # Determine the target- and build-specific subdirectories
3489
3490 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3491 # have matching libraries, they should use host libraries: Makefile.tpl
3492 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3493 # However, they still use the build modules, because the corresponding
3494 # host modules (e.g. bison) are only built for the host when bootstrap
3495 # finishes. So:
3496 # - build_subdir is where we find build modules, and never changes.
3497 # - build_libsubdir is where we find build libraries, and can be overridden.
3498
3499 # Prefix 'build-' so this never conflicts with target_subdir.
3500 build_subdir="build-${build_noncanonical}"
3501
3502 # Check whether --with-build-libsubdir was given.
3503 if test "${with_build_libsubdir+set}" = set; then :
3504 withval=$with_build_libsubdir; build_libsubdir="$withval"
3505 else
3506 build_libsubdir="$build_subdir"
3507 fi
3508
3509 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3510 if ( test $srcdir = . && test -d gcc ) \
3511 || test -d $srcdir/../host-${host_noncanonical}; then
3512 host_subdir="host-${host_noncanonical}"
3513 else
3514 host_subdir=.
3515 fi
3516 # No prefix.
3517 target_subdir=${target_noncanonical}
3518
3519
3520 # Set program_transform_name
3521 test "$program_prefix" != NONE &&
3522 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3523 # Use a double $ so make ignores it.
3524 test "$program_suffix" != NONE &&
3525 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3526 # Double any \ or $.
3527 # By default was `s,x,x', remove it if useless.
3528 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3529 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3530
3531
3532 # Check for bogus environment variables.
3533 # Test if LIBRARY_PATH contains the notation for the current directory
3534 # since this would lead to problems installing/building glibc.
3535 # LIBRARY_PATH contains the current directory if one of the following
3536 # is true:
3537 # - one of the terminals (":" and ";") is the first or last sign
3538 # - two terminals occur directly after each other
3539 # - the path contains an element with a dot in it
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3541 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3542 case ${LIBRARY_PATH} in
3543 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3544 library_path_setting="contains current directory"
3545 ;;
3546 *)
3547 library_path_setting="ok"
3548 ;;
3549 esac
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3551 $as_echo "$library_path_setting" >&6; }
3552 if test "$library_path_setting" != "ok"; then
3553 as_fn_error $? "
3554 *** LIBRARY_PATH shouldn't contain the current directory when
3555 *** building gcc. Please change the environment variable
3556 *** and run configure again." "$LINENO" 5
3557 fi
3558
3559 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3560 # since this would lead to problems installing/building glibc.
3561 # GCC_EXEC_PREFIX contains the current directory if one of the following
3562 # is true:
3563 # - one of the terminals (":" and ";") is the first or last sign
3564 # - two terminals occur directly after each other
3565 # - the path contains an element with a dot in it
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3567 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3568 case ${GCC_EXEC_PREFIX} in
3569 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3570 gcc_exec_prefix_setting="contains current directory"
3571 ;;
3572 *)
3573 gcc_exec_prefix_setting="ok"
3574 ;;
3575 esac
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3577 $as_echo "$gcc_exec_prefix_setting" >&6; }
3578 if test "$gcc_exec_prefix_setting" != "ok"; then
3579 as_fn_error $? "
3580 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3581 *** building gcc. Please change the environment variable
3582 *** and run configure again." "$LINENO" 5
3583 fi
3584
3585 # -----------
3586 # Directories
3587 # -----------
3588
3589 # Specify the local prefix
3590 local_prefix=
3591
3592 # Check whether --with-local-prefix was given.
3593 if test "${with_local_prefix+set}" = set; then :
3594 withval=$with_local_prefix; case "${withval}" in
3595 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3596 no) ;;
3597 *) local_prefix=$with_local_prefix ;;
3598 esac
3599 fi
3600
3601
3602 # Default local prefix if it is empty
3603 if test x$local_prefix = x; then
3604 local_prefix=/usr/local
3605 fi
3606
3607
3608 # Check whether --with-native-system-header-dir was given.
3609 if test "${with_native_system_header_dir+set}" = set; then :
3610 withval=$with_native_system_header_dir;
3611 case ${with_native_system_header_dir} in
3612 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3613 /* | [A-Za-z]:[\\/]*) ;;
3614 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3615 esac
3616 configured_native_system_header_dir="${withval}"
3617
3618 else
3619 configured_native_system_header_dir=
3620 fi
3621
3622
3623
3624 # Check whether --with-build-sysroot was given.
3625 if test "${with_build_sysroot+set}" = set; then :
3626 withval=$with_build_sysroot; if test x"$withval" != x ; then
3627 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3628 fi
3629 else
3630 SYSROOT_CFLAGS_FOR_TARGET=
3631 fi
3632
3633
3634
3635 if test "x$prefix" = xNONE; then
3636 test_prefix=/usr/local
3637 else
3638 test_prefix=$prefix
3639 fi
3640 if test "x$exec_prefix" = xNONE; then
3641 test_exec_prefix=$test_prefix
3642 else
3643 test_exec_prefix=$exec_prefix
3644 fi
3645
3646
3647 # Check whether --with-sysroot was given.
3648 if test "${with_sysroot+set}" = set; then :
3649 withval=$with_sysroot;
3650 case ${with_sysroot} in
3651 /) ;;
3652 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3653 esac
3654 case ${with_sysroot} in
3655 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3656 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3657 esac
3658
3659 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3660 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3661
3662 case ${TARGET_SYSTEM_ROOT} in
3663 "${test_prefix}"|"${test_prefix}/"*|\
3664 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3665 '${prefix}'|'${prefix}/'*|\
3666 '${exec_prefix}'|'${exec_prefix}/'*)
3667 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3668 TARGET_SYSTEM_ROOT_DEFINE="$t"
3669 ;;
3670 esac
3671
3672 else
3673
3674 TARGET_SYSTEM_ROOT=
3675 TARGET_SYSTEM_ROOT_DEFINE=
3676 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3677
3678 fi
3679
3680
3681
3682
3683
3684 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3685 # passed in by the toplevel make and thus we'd get different behavior
3686 # depending on where we built the sources.
3687 gcc_gxx_include_dir=
3688 # Specify the g++ header file directory
3689
3690 # Check whether --with-gxx-include-dir was given.
3691 if test "${with_gxx_include_dir+set}" = set; then :
3692 withval=$with_gxx_include_dir; case "${withval}" in
3693 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3694 no) ;;
3695 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3696 esac
3697 fi
3698
3699
3700 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3701 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3702 # relative to the sysroot.
3703 gcc_gxx_include_dir_add_sysroot=0
3704
3705 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3706 if test x${gcc_gxx_include_dir} = x; then
3707 if test x${enable_version_specific_runtime_libs} = xyes; then
3708 gcc_gxx_include_dir='${libsubdir}/include/c++'
3709 else
3710 libstdcxx_incdir='include/c++/$(version)'
3711 if test x$host != x$target; then
3712 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3713 fi
3714 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3715 fi
3716 elif test "${with_sysroot+set}" = set; then
3717 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3718 if test "${gcc_gxx_without_sysroot}"; then
3719 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3720 gcc_gxx_include_dir_add_sysroot=1
3721 fi
3722 fi
3723
3724
3725 # Check whether --with-cpp_install_dir was given.
3726 if test "${with_cpp_install_dir+set}" = set; then :
3727 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3728 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3729 elif test x$withval != xno; then
3730 cpp_install_dir=$withval
3731 fi
3732 fi
3733
3734
3735 # We would like to our source tree to be readonly. However when releases or
3736 # pre-releases are generated, the flex/bison generated files as well as the
3737 # various formats of manuals need to be included along with the rest of the
3738 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3739 # just that.
3740
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3742 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3743 # Check whether --enable-generated-files-in-srcdir was given.
3744 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3745 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3746 else
3747 generated_files_in_srcdir=no
3748 fi
3749
3750
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3752 $as_echo "$generated_files_in_srcdir" >&6; }
3753
3754 if test "$generated_files_in_srcdir" = "yes"; then
3755 GENINSRC=''
3756 else
3757 GENINSRC='#'
3758 fi
3759
3760
3761 # -------------------
3762 # Find default linker
3763 # -------------------
3764
3765 # With GNU ld
3766
3767 # Check whether --with-gnu-ld was given.
3768 if test "${with_gnu_ld+set}" = set; then :
3769 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3770 else
3771 gnu_ld_flag=no
3772 fi
3773
3774
3775 case $target in
3776 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3777 *) ld64_flag=no;;
3778 esac
3779
3780 # With pre-defined ld
3781
3782 # Check whether --with-ld was given.
3783 if test "${with_ld+set}" = set; then :
3784 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3785 fi
3786
3787 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3788 if test ! -x "$DEFAULT_LINKER"; then
3789 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3790 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3791 gnu_ld_flag=yes
3792 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3793 ld64_flag=yes
3794 fi
3795
3796 cat >>confdefs.h <<_ACEOF
3797 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3798 _ACEOF
3799
3800 fi
3801
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3803 $as_echo_n "checking whether a default linker was specified... " >&6; }
3804 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3805 if test x"$gnu_ld_flag" = x"no"; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3807 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3808 else
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3810 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3811 fi
3812 else
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3815 fi
3816
3817 # With demangler in GNU ld
3818
3819 # Check whether --with-demangler-in-ld was given.
3820 if test "${with_demangler_in_ld+set}" = set; then :
3821 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3822 else
3823 demangler_in_ld=yes
3824 fi
3825
3826
3827 # ----------------------
3828 # Find default assembler
3829 # ----------------------
3830
3831 # With GNU as
3832
3833 # Check whether --with-gnu-as was given.
3834 if test "${with_gnu_as+set}" = set; then :
3835 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3836 else
3837 gas_flag=no
3838 fi
3839
3840
3841
3842 # Check whether --with-as was given.
3843 if test "${with_as+set}" = set; then :
3844 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3845 fi
3846
3847 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3848 if test ! -x "$DEFAULT_ASSEMBLER"; then
3849 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3850 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3851 gas_flag=yes
3852 fi
3853
3854 cat >>confdefs.h <<_ACEOF
3855 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3856 _ACEOF
3857
3858 fi
3859
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3861 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3862 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3863 if test x"$gas_flag" = x"no"; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3865 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3866 else
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3868 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3869 fi
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3873 fi
3874
3875 # ---------------
3876 # Find C compiler
3877 # ---------------
3878
3879 # If a non-executable a.out is present (e.g. created by GNU as above even if
3880 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3881 # file, even when creating an executable, so an execution test fails.
3882 # Remove possible default executable files to avoid this.
3883 #
3884 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3885 # Autoconf includes it.
3886 rm -f a.out a.exe b.out
3887
3888 # Find the native compiler
3889 ac_ext=c
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894 if test -n "$ac_tool_prefix"; then
3895 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3896 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898 $as_echo_n "checking for $ac_word... " >&6; }
3899 if ${ac_cv_prog_CC+:} false; then :
3900 $as_echo_n "(cached) " >&6
3901 else
3902 if test -n "$CC"; then
3903 ac_cv_prog_CC="$CC" # Let the user override the test.
3904 else
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH
3907 do
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 break 2
3915 fi
3916 done
3917 done
3918 IFS=$as_save_IFS
3919
3920 fi
3921 fi
3922 CC=$ac_cv_prog_CC
3923 if test -n "$CC"; then
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3925 $as_echo "$CC" >&6; }
3926 else
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3929 fi
3930
3931
3932 fi
3933 if test -z "$ac_cv_prog_CC"; then
3934 ac_ct_CC=$CC
3935 # Extract the first word of "gcc", so it can be a program name with args.
3936 set dummy gcc; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 if test -n "$ac_ct_CC"; then
3943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3947 do
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952 ac_cv_prog_ac_ct_CC="gcc"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3955 fi
3956 done
3957 done
3958 IFS=$as_save_IFS
3959
3960 fi
3961 fi
3962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3963 if test -n "$ac_ct_CC"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3965 $as_echo "$ac_ct_CC" >&6; }
3966 else
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3969 fi
3970
3971 if test "x$ac_ct_CC" = x; then
3972 CC=""
3973 else
3974 case $cross_compiling:$ac_tool_warned in
3975 yes:)
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3978 ac_tool_warned=yes ;;
3979 esac
3980 CC=$ac_ct_CC
3981 fi
3982 else
3983 CC="$ac_cv_prog_CC"
3984 fi
3985
3986 if test -z "$CC"; then
3987 if test -n "$ac_tool_prefix"; then
3988 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3989 set dummy ${ac_tool_prefix}cc; ac_word=$2
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991 $as_echo_n "checking for $ac_word... " >&6; }
3992 if ${ac_cv_prog_CC+:} false; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 if test -n "$CC"; then
3996 ac_cv_prog_CC="$CC" # Let the user override the test.
3997 else
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH
4000 do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4005 ac_cv_prog_CC="${ac_tool_prefix}cc"
4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 break 2
4008 fi
4009 done
4010 done
4011 IFS=$as_save_IFS
4012
4013 fi
4014 fi
4015 CC=$ac_cv_prog_CC
4016 if test -n "$CC"; then
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4018 $as_echo "$CC" >&6; }
4019 else
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 $as_echo "no" >&6; }
4022 fi
4023
4024
4025 fi
4026 fi
4027 if test -z "$CC"; then
4028 # Extract the first word of "cc", so it can be a program name with args.
4029 set dummy cc; ac_word=$2
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031 $as_echo_n "checking for $ac_word... " >&6; }
4032 if ${ac_cv_prog_CC+:} false; then :
4033 $as_echo_n "(cached) " >&6
4034 else
4035 if test -n "$CC"; then
4036 ac_cv_prog_CC="$CC" # Let the user override the test.
4037 else
4038 ac_prog_rejected=no
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4047 ac_prog_rejected=yes
4048 continue
4049 fi
4050 ac_cv_prog_CC="cc"
4051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 break 2
4053 fi
4054 done
4055 done
4056 IFS=$as_save_IFS
4057
4058 if test $ac_prog_rejected = yes; then
4059 # We found a bogon in the path, so make sure we never use it.
4060 set dummy $ac_cv_prog_CC
4061 shift
4062 if test $# != 0; then
4063 # We chose a different compiler from the bogus one.
4064 # However, it has the same basename, so the bogon will be chosen
4065 # first if we set CC to just the basename; use the full file name.
4066 shift
4067 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4068 fi
4069 fi
4070 fi
4071 fi
4072 CC=$ac_cv_prog_CC
4073 if test -n "$CC"; then
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4075 $as_echo "$CC" >&6; }
4076 else
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 $as_echo "no" >&6; }
4079 fi
4080
4081
4082 fi
4083 if test -z "$CC"; then
4084 if test -n "$ac_tool_prefix"; then
4085 for ac_prog in cl.exe
4086 do
4087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if ${ac_cv_prog_CC+:} false; then :
4092 $as_echo_n "(cached) " >&6
4093 else
4094 if test -n "$CC"; then
4095 ac_cv_prog_CC="$CC" # Let the user override the test.
4096 else
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4099 do
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 break 2
4107 fi
4108 done
4109 done
4110 IFS=$as_save_IFS
4111
4112 fi
4113 fi
4114 CC=$ac_cv_prog_CC
4115 if test -n "$CC"; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4117 $as_echo "$CC" >&6; }
4118 else
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4121 fi
4122
4123
4124 test -n "$CC" && break
4125 done
4126 fi
4127 if test -z "$CC"; then
4128 ac_ct_CC=$CC
4129 for ac_prog in cl.exe
4130 do
4131 # Extract the first word of "$ac_prog", so it can be a program name with args.
4132 set dummy $ac_prog; ac_word=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 if test -n "$ac_ct_CC"; then
4139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4140 else
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4143 do
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4148 ac_cv_prog_ac_ct_CC="$ac_prog"
4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 break 2
4151 fi
4152 done
4153 done
4154 IFS=$as_save_IFS
4155
4156 fi
4157 fi
4158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4159 if test -n "$ac_ct_CC"; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4161 $as_echo "$ac_ct_CC" >&6; }
4162 else
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4165 fi
4166
4167
4168 test -n "$ac_ct_CC" && break
4169 done
4170
4171 if test "x$ac_ct_CC" = x; then
4172 CC=""
4173 else
4174 case $cross_compiling:$ac_tool_warned in
4175 yes:)
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4178 ac_tool_warned=yes ;;
4179 esac
4180 CC=$ac_ct_CC
4181 fi
4182 fi
4183
4184 fi
4185
4186
4187 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4189 as_fn_error $? "no acceptable C compiler found in \$PATH
4190 See \`config.log' for more details" "$LINENO" 5; }
4191
4192 # Provide some information about the compiler.
4193 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4194 set X $ac_compile
4195 ac_compiler=$2
4196 for ac_option in --version -v -V -qversion; do
4197 { { ac_try="$ac_compiler $ac_option >&5"
4198 case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201 esac
4202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203 $as_echo "$ac_try_echo"; } >&5
4204 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4205 ac_status=$?
4206 if test -s conftest.err; then
4207 sed '10a\
4208 ... rest of stderr output deleted ...
4209 10q' conftest.err >conftest.er1
4210 cat conftest.er1 >&5
4211 fi
4212 rm -f conftest.er1 conftest.err
4213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4214 test $ac_status = 0; }
4215 done
4216
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219
4220 int
4221 main ()
4222 {
4223
4224 ;
4225 return 0;
4226 }
4227 _ACEOF
4228 ac_clean_files_save=$ac_clean_files
4229 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4230 # Try to create an executable without -o first, disregard a.out.
4231 # It will help us diagnose broken compilers, and finding out an intuition
4232 # of exeext.
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4234 $as_echo_n "checking whether the C compiler works... " >&6; }
4235 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4236
4237 # The possible output files:
4238 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4239
4240 ac_rmfiles=
4241 for ac_file in $ac_files
4242 do
4243 case $ac_file in
4244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4245 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4246 esac
4247 done
4248 rm -f $ac_rmfiles
4249
4250 if { { ac_try="$ac_link_default"
4251 case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254 esac
4255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256 $as_echo "$ac_try_echo"; } >&5
4257 (eval "$ac_link_default") 2>&5
4258 ac_status=$?
4259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260 test $ac_status = 0; }; then :
4261 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4262 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4263 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4264 # so that the user can short-circuit this test for compilers unknown to
4265 # Autoconf.
4266 for ac_file in $ac_files ''
4267 do
4268 test -f "$ac_file" || continue
4269 case $ac_file in
4270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4271 ;;
4272 [ab].out )
4273 # We found the default executable, but exeext='' is most
4274 # certainly right.
4275 break;;
4276 *.* )
4277 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4278 then :; else
4279 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4280 fi
4281 # We set ac_cv_exeext here because the later test for it is not
4282 # safe: cross compilers may not add the suffix if given an `-o'
4283 # argument, so we may need to know it at that point already.
4284 # Even if this section looks crufty: it has the advantage of
4285 # actually working.
4286 break;;
4287 * )
4288 break;;
4289 esac
4290 done
4291 test "$ac_cv_exeext" = no && ac_cv_exeext=
4292
4293 else
4294 ac_file=''
4295 fi
4296 if test -z "$ac_file"; then :
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4299 $as_echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4301
4302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4304 as_fn_error 77 "C compiler cannot create executables
4305 See \`config.log' for more details" "$LINENO" 5; }
4306 else
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4308 $as_echo "yes" >&6; }
4309 fi
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4311 $as_echo_n "checking for C compiler default output file name... " >&6; }
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4313 $as_echo "$ac_file" >&6; }
4314 ac_exeext=$ac_cv_exeext
4315
4316 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4317 ac_clean_files=$ac_clean_files_save
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4319 $as_echo_n "checking for suffix of executables... " >&6; }
4320 if { { ac_try="$ac_link"
4321 case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324 esac
4325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326 $as_echo "$ac_try_echo"; } >&5
4327 (eval "$ac_link") 2>&5
4328 ac_status=$?
4329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330 test $ac_status = 0; }; then :
4331 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4332 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4333 # work properly (i.e., refer to `conftest.exe'), while it won't with
4334 # `rm'.
4335 for ac_file in conftest.exe conftest conftest.*; do
4336 test -f "$ac_file" || continue
4337 case $ac_file in
4338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4339 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4340 break;;
4341 * ) break;;
4342 esac
4343 done
4344 else
4345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4347 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4348 See \`config.log' for more details" "$LINENO" 5; }
4349 fi
4350 rm -f conftest conftest$ac_cv_exeext
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4352 $as_echo "$ac_cv_exeext" >&6; }
4353
4354 rm -f conftest.$ac_ext
4355 EXEEXT=$ac_cv_exeext
4356 ac_exeext=$EXEEXT
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4359 #include <stdio.h>
4360 int
4361 main ()
4362 {
4363 FILE *f = fopen ("conftest.out", "w");
4364 return ferror (f) || fclose (f) != 0;
4365
4366 ;
4367 return 0;
4368 }
4369 _ACEOF
4370 ac_clean_files="$ac_clean_files conftest.out"
4371 # Check that the compiler produces executables we can run. If not, either
4372 # the compiler is broken, or we cross compile.
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4374 $as_echo_n "checking whether we are cross compiling... " >&6; }
4375 if test "$cross_compiling" != yes; then
4376 { { ac_try="$ac_link"
4377 case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4380 esac
4381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4382 $as_echo "$ac_try_echo"; } >&5
4383 (eval "$ac_link") 2>&5
4384 ac_status=$?
4385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4386 test $ac_status = 0; }
4387 if { ac_try='./conftest$ac_cv_exeext'
4388 { { case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391 esac
4392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4393 $as_echo "$ac_try_echo"; } >&5
4394 (eval "$ac_try") 2>&5
4395 ac_status=$?
4396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4397 test $ac_status = 0; }; }; then
4398 cross_compiling=no
4399 else
4400 if test "$cross_compiling" = maybe; then
4401 cross_compiling=yes
4402 else
4403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405 as_fn_error $? "cannot run C compiled programs.
4406 If you meant to cross compile, use \`--host'.
4407 See \`config.log' for more details" "$LINENO" 5; }
4408 fi
4409 fi
4410 fi
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4412 $as_echo "$cross_compiling" >&6; }
4413
4414 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4415 ac_clean_files=$ac_clean_files_save
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4417 $as_echo_n "checking for suffix of object files... " >&6; }
4418 if ${ac_cv_objext+:} false; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4423
4424 int
4425 main ()
4426 {
4427
4428 ;
4429 return 0;
4430 }
4431 _ACEOF
4432 rm -f conftest.o conftest.obj
4433 if { { ac_try="$ac_compile"
4434 case "(($ac_try" in
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4437 esac
4438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4439 $as_echo "$ac_try_echo"; } >&5
4440 (eval "$ac_compile") 2>&5
4441 ac_status=$?
4442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4443 test $ac_status = 0; }; then :
4444 for ac_file in conftest.o conftest.obj conftest.*; do
4445 test -f "$ac_file" || continue;
4446 case $ac_file in
4447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4448 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4449 break;;
4450 esac
4451 done
4452 else
4453 $as_echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4455
4456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4458 as_fn_error $? "cannot compute suffix of object files: cannot compile
4459 See \`config.log' for more details" "$LINENO" 5; }
4460 fi
4461 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4462 fi
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4464 $as_echo "$ac_cv_objext" >&6; }
4465 OBJEXT=$ac_cv_objext
4466 ac_objext=$OBJEXT
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4468 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4469 if ${ac_cv_c_compiler_gnu+:} false; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4474
4475 int
4476 main ()
4477 {
4478 #ifndef __GNUC__
4479 choke me
4480 #endif
4481
4482 ;
4483 return 0;
4484 }
4485 _ACEOF
4486 if ac_fn_c_try_compile "$LINENO"; then :
4487 ac_compiler_gnu=yes
4488 else
4489 ac_compiler_gnu=no
4490 fi
4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4493
4494 fi
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4496 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4497 if test $ac_compiler_gnu = yes; then
4498 GCC=yes
4499 else
4500 GCC=
4501 fi
4502 ac_test_CFLAGS=${CFLAGS+set}
4503 ac_save_CFLAGS=$CFLAGS
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4505 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4506 if ${ac_cv_prog_cc_g+:} false; then :
4507 $as_echo_n "(cached) " >&6
4508 else
4509 ac_save_c_werror_flag=$ac_c_werror_flag
4510 ac_c_werror_flag=yes
4511 ac_cv_prog_cc_g=no
4512 CFLAGS="-g"
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4515
4516 int
4517 main ()
4518 {
4519
4520 ;
4521 return 0;
4522 }
4523 _ACEOF
4524 if ac_fn_c_try_compile "$LINENO"; then :
4525 ac_cv_prog_cc_g=yes
4526 else
4527 CFLAGS=""
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4530
4531 int
4532 main ()
4533 {
4534
4535 ;
4536 return 0;
4537 }
4538 _ACEOF
4539 if ac_fn_c_try_compile "$LINENO"; then :
4540
4541 else
4542 ac_c_werror_flag=$ac_save_c_werror_flag
4543 CFLAGS="-g"
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546
4547 int
4548 main ()
4549 {
4550
4551 ;
4552 return 0;
4553 }
4554 _ACEOF
4555 if ac_fn_c_try_compile "$LINENO"; then :
4556 ac_cv_prog_cc_g=yes
4557 fi
4558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559 fi
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561 fi
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 ac_c_werror_flag=$ac_save_c_werror_flag
4564 fi
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4566 $as_echo "$ac_cv_prog_cc_g" >&6; }
4567 if test "$ac_test_CFLAGS" = set; then
4568 CFLAGS=$ac_save_CFLAGS
4569 elif test $ac_cv_prog_cc_g = yes; then
4570 if test "$GCC" = yes; then
4571 CFLAGS="-g -O2"
4572 else
4573 CFLAGS="-g"
4574 fi
4575 else
4576 if test "$GCC" = yes; then
4577 CFLAGS="-O2"
4578 else
4579 CFLAGS=
4580 fi
4581 fi
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4583 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4584 if ${ac_cv_prog_cc_c89+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 ac_cv_prog_cc_c89=no
4588 ac_save_CC=$CC
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591 #include <stdarg.h>
4592 #include <stdio.h>
4593 struct stat;
4594 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4595 struct buf { int x; };
4596 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4597 static char *e (p, i)
4598 char **p;
4599 int i;
4600 {
4601 return p[i];
4602 }
4603 static char *f (char * (*g) (char **, int), char **p, ...)
4604 {
4605 char *s;
4606 va_list v;
4607 va_start (v,p);
4608 s = g (p, va_arg (v,int));
4609 va_end (v);
4610 return s;
4611 }
4612
4613 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4614 function prototypes and stuff, but not '\xHH' hex character constants.
4615 These don't provoke an error unfortunately, instead are silently treated
4616 as 'x'. The following induces an error, until -std is added to get
4617 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4618 array size at least. It's necessary to write '\x00'==0 to get something
4619 that's true only with -std. */
4620 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4621
4622 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4623 inside strings and character constants. */
4624 #define FOO(x) 'x'
4625 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4626
4627 int test (int i, double x);
4628 struct s1 {int (*f) (int a);};
4629 struct s2 {int (*f) (double a);};
4630 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4631 int argc;
4632 char **argv;
4633 int
4634 main ()
4635 {
4636 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4637 ;
4638 return 0;
4639 }
4640 _ACEOF
4641 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4642 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4643 do
4644 CC="$ac_save_CC $ac_arg"
4645 if ac_fn_c_try_compile "$LINENO"; then :
4646 ac_cv_prog_cc_c89=$ac_arg
4647 fi
4648 rm -f core conftest.err conftest.$ac_objext
4649 test "x$ac_cv_prog_cc_c89" != "xno" && break
4650 done
4651 rm -f conftest.$ac_ext
4652 CC=$ac_save_CC
4653
4654 fi
4655 # AC_CACHE_VAL
4656 case "x$ac_cv_prog_cc_c89" in
4657 x)
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4659 $as_echo "none needed" >&6; } ;;
4660 xno)
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4662 $as_echo "unsupported" >&6; } ;;
4663 *)
4664 CC="$CC $ac_cv_prog_cc_c89"
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4666 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4667 esac
4668 if test "x$ac_cv_prog_cc_c89" != xno; then :
4669
4670 fi
4671
4672 ac_ext=c
4673 ac_cpp='$CPP $CPPFLAGS'
4674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4677
4678 ac_ext=cpp
4679 ac_cpp='$CXXCPP $CPPFLAGS'
4680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4683 if test -z "$CXX"; then
4684 if test -n "$CCC"; then
4685 CXX=$CCC
4686 else
4687 if test -n "$ac_tool_prefix"; then
4688 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4689 do
4690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if ${ac_cv_prog_CXX+:} false; then :
4695 $as_echo_n "(cached) " >&6
4696 else
4697 if test -n "$CXX"; then
4698 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711 done
4712 done
4713 IFS=$as_save_IFS
4714
4715 fi
4716 fi
4717 CXX=$ac_cv_prog_CXX
4718 if test -n "$CXX"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4720 $as_echo "$CXX" >&6; }
4721 else
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4724 fi
4725
4726
4727 test -n "$CXX" && break
4728 done
4729 fi
4730 if test -z "$CXX"; then
4731 ac_ct_CXX=$CXX
4732 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4733 do
4734 # Extract the first word of "$ac_prog", so it can be a program name with args.
4735 set dummy $ac_prog; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 if test -n "$ac_ct_CXX"; then
4742 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751 ac_cv_prog_ac_ct_CXX="$ac_prog"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4754 fi
4755 done
4756 done
4757 IFS=$as_save_IFS
4758
4759 fi
4760 fi
4761 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4762 if test -n "$ac_ct_CXX"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4764 $as_echo "$ac_ct_CXX" >&6; }
4765 else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4768 fi
4769
4770
4771 test -n "$ac_ct_CXX" && break
4772 done
4773
4774 if test "x$ac_ct_CXX" = x; then
4775 CXX="g++"
4776 else
4777 case $cross_compiling:$ac_tool_warned in
4778 yes:)
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4781 ac_tool_warned=yes ;;
4782 esac
4783 CXX=$ac_ct_CXX
4784 fi
4785 fi
4786
4787 fi
4788 fi
4789 # Provide some information about the compiler.
4790 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4791 set X $ac_compile
4792 ac_compiler=$2
4793 for ac_option in --version -v -V -qversion; do
4794 { { ac_try="$ac_compiler $ac_option >&5"
4795 case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4798 esac
4799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4800 $as_echo "$ac_try_echo"; } >&5
4801 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4802 ac_status=$?
4803 if test -s conftest.err; then
4804 sed '10a\
4805 ... rest of stderr output deleted ...
4806 10q' conftest.err >conftest.er1
4807 cat conftest.er1 >&5
4808 fi
4809 rm -f conftest.er1 conftest.err
4810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4811 test $ac_status = 0; }
4812 done
4813
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4815 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4816 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821
4822 int
4823 main ()
4824 {
4825 #ifndef __GNUC__
4826 choke me
4827 #endif
4828
4829 ;
4830 return 0;
4831 }
4832 _ACEOF
4833 if ac_fn_cxx_try_compile "$LINENO"; then :
4834 ac_compiler_gnu=yes
4835 else
4836 ac_compiler_gnu=no
4837 fi
4838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4840
4841 fi
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4843 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4844 if test $ac_compiler_gnu = yes; then
4845 GXX=yes
4846 else
4847 GXX=
4848 fi
4849 ac_test_CXXFLAGS=${CXXFLAGS+set}
4850 ac_save_CXXFLAGS=$CXXFLAGS
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4852 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4853 if ${ac_cv_prog_cxx_g+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4857 ac_cxx_werror_flag=yes
4858 ac_cv_prog_cxx_g=no
4859 CXXFLAGS="-g"
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862
4863 int
4864 main ()
4865 {
4866
4867 ;
4868 return 0;
4869 }
4870 _ACEOF
4871 if ac_fn_cxx_try_compile "$LINENO"; then :
4872 ac_cv_prog_cxx_g=yes
4873 else
4874 CXXFLAGS=""
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877
4878 int
4879 main ()
4880 {
4881
4882 ;
4883 return 0;
4884 }
4885 _ACEOF
4886 if ac_fn_cxx_try_compile "$LINENO"; then :
4887
4888 else
4889 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4890 CXXFLAGS="-g"
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893
4894 int
4895 main ()
4896 {
4897
4898 ;
4899 return 0;
4900 }
4901 _ACEOF
4902 if ac_fn_cxx_try_compile "$LINENO"; then :
4903 ac_cv_prog_cxx_g=yes
4904 fi
4905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 fi
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4911 fi
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4913 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4914 if test "$ac_test_CXXFLAGS" = set; then
4915 CXXFLAGS=$ac_save_CXXFLAGS
4916 elif test $ac_cv_prog_cxx_g = yes; then
4917 if test "$GXX" = yes; then
4918 CXXFLAGS="-g -O2"
4919 else
4920 CXXFLAGS="-g"
4921 fi
4922 else
4923 if test "$GXX" = yes; then
4924 CXXFLAGS="-O2"
4925 else
4926 CXXFLAGS=
4927 fi
4928 fi
4929 ac_ext=c
4930 ac_cpp='$CPP $CPPFLAGS'
4931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4934
4935
4936
4937
4938 if test -n "$ac_tool_prefix"; then
4939 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4940 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if ${ac_cv_prog_GNATBIND+:} false; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 if test -n "$GNATBIND"; then
4947 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 break 2
4959 fi
4960 done
4961 done
4962 IFS=$as_save_IFS
4963
4964 fi
4965 fi
4966 GNATBIND=$ac_cv_prog_GNATBIND
4967 if test -n "$GNATBIND"; then
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4969 $as_echo "$GNATBIND" >&6; }
4970 else
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972 $as_echo "no" >&6; }
4973 fi
4974
4975
4976 fi
4977 if test -z "$ac_cv_prog_GNATBIND"; then
4978 ac_ct_GNATBIND=$GNATBIND
4979 # Extract the first word of "gnatbind", so it can be a program name with args.
4980 set dummy gnatbind; ac_word=$2
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 $as_echo_n "checking for $ac_word... " >&6; }
4983 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if test -n "$ac_ct_GNATBIND"; then
4987 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
4999 fi
5000 done
5001 done
5002 IFS=$as_save_IFS
5003
5004 fi
5005 fi
5006 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5007 if test -n "$ac_ct_GNATBIND"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5009 $as_echo "$ac_ct_GNATBIND" >&6; }
5010 else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5013 fi
5014
5015 if test "x$ac_ct_GNATBIND" = x; then
5016 GNATBIND="no"
5017 else
5018 case $cross_compiling:$ac_tool_warned in
5019 yes:)
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5022 ac_tool_warned=yes ;;
5023 esac
5024 GNATBIND=$ac_ct_GNATBIND
5025 fi
5026 else
5027 GNATBIND="$ac_cv_prog_GNATBIND"
5028 fi
5029
5030 if test -n "$ac_tool_prefix"; then
5031 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5032 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_prog_GNATMAKE+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$GNATMAKE"; then
5039 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5048 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5051 fi
5052 done
5053 done
5054 IFS=$as_save_IFS
5055
5056 fi
5057 fi
5058 GNATMAKE=$ac_cv_prog_GNATMAKE
5059 if test -n "$GNATMAKE"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5061 $as_echo "$GNATMAKE" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5065 fi
5066
5067
5068 fi
5069 if test -z "$ac_cv_prog_GNATMAKE"; then
5070 ac_ct_GNATMAKE=$GNATMAKE
5071 # Extract the first word of "gnatmake", so it can be a program name with args.
5072 set dummy gnatmake; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 if test -n "$ac_ct_GNATMAKE"; then
5079 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5091 fi
5092 done
5093 done
5094 IFS=$as_save_IFS
5095
5096 fi
5097 fi
5098 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5099 if test -n "$ac_ct_GNATMAKE"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5101 $as_echo "$ac_ct_GNATMAKE" >&6; }
5102 else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5105 fi
5106
5107 if test "x$ac_ct_GNATMAKE" = x; then
5108 GNATMAKE="no"
5109 else
5110 case $cross_compiling:$ac_tool_warned in
5111 yes:)
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5114 ac_tool_warned=yes ;;
5115 esac
5116 GNATMAKE=$ac_ct_GNATMAKE
5117 fi
5118 else
5119 GNATMAKE="$ac_cv_prog_GNATMAKE"
5120 fi
5121
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5123 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5124 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 cat >conftest.adb <<EOF
5128 procedure conftest is begin null; end conftest;
5129 EOF
5130 acx_cv_cc_gcc_supports_ada=no
5131 # There is a bug in old released versions of GCC which causes the
5132 # driver to exit successfully when the appropriate language module
5133 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5134 # Therefore we must check for the error message as well as an
5135 # unsuccessful exit.
5136 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5137 # given a .adb file, but produce no object file. So we must check
5138 # if an object file was really produced to guard against this.
5139 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5140 if test x"$errors" = x && test -f conftest.$ac_objext; then
5141 acx_cv_cc_gcc_supports_ada=yes
5142 fi
5143 rm -f conftest.*
5144 fi
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5146 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5147
5148 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5149 have_gnat=yes
5150 else
5151 have_gnat=no
5152 fi
5153
5154
5155 # Do configure tests with the C++ compiler, since that's what we build with.
5156 ac_ext=cpp
5157 ac_cpp='$CXXCPP $CPPFLAGS'
5158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5161
5162
5163 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5164 # optimizations to be activated explicitly by the toplevel.
5165 case "$CC" in
5166 */prev-gcc/xgcc*) ;;
5167 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5168 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5169 esac
5170
5171
5172
5173 # Determine PICFLAG for target gnatlib.
5174
5175
5176
5177
5178 case "${target}" in
5179 # PIC is the default on some targets or must not be used.
5180 *-*-darwin*)
5181 # For darwin, common symbols are not allowed in MH_DYLIB files
5182 case "${CFLAGS}" in
5183 # If we are using a compiler supporting mdynamic-no-pic
5184 # and the option has been tested as safe to add, then cancel
5185 # it here, since the code generated is incompatible with shared
5186 # libs.
5187 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5188 *) PICFLAG_FOR_TARGET=-fno-common ;;
5189 esac
5190 ;;
5191 alpha*-dec-osf5*)
5192 # PIC is the default.
5193 ;;
5194 hppa*64*-*-hpux*)
5195 # PIC is the default for 64-bit PA HP-UX.
5196 ;;
5197 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5198 ;;
5199 i[34567]86-*-mingw* | x86_64-*-mingw*)
5200 ;;
5201 i[34567]86-*-interix[3-9]*)
5202 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5203 # Instead, we relocate shared libraries at runtime.
5204 ;;
5205 i[34567]86-*-nto-qnx*)
5206 # QNX uses GNU C++, but need to define -shared option too, otherwise
5207 # it will coredump.
5208 PICFLAG_FOR_TARGET='-fPIC -shared'
5209 ;;
5210 i[34567]86-pc-msdosdjgpp*)
5211 # DJGPP does not support shared libraries at all.
5212 ;;
5213 ia64*-*-hpux*)
5214 # On IA64 HP-UX, PIC is the default but the pic flag
5215 # sets the default TLS model and affects inlining.
5216 PICFLAG_FOR_TARGET=-fPIC
5217 ;;
5218 mips-sgi-irix6*)
5219 # PIC is the default.
5220 ;;
5221 rs6000-ibm-aix* | powerpc-ibm-aix*)
5222 # All AIX code is PIC.
5223 ;;
5224
5225 # Some targets support both -fPIC and -fpic, but prefer the latter.
5226 # FIXME: Why?
5227 i[34567]86-*-* | x86_64-*-*)
5228 PICFLAG_FOR_TARGET=-fpic
5229 ;;
5230 # FIXME: Override -fPIC default in libgcc only?
5231 sh-*-linux* | sh[2346lbe]*-*-linux*)
5232 PICFLAG_FOR_TARGET=-fpic
5233 ;;
5234 # FIXME: Simplify to sh*-*-netbsd*?
5235 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5236 sh64-*-netbsd* | sh64l*-*-netbsd*)
5237 PICFLAG_FOR_TARGET=-fpic
5238 ;;
5239 # Default to -fPIC unless specified otherwise.
5240 *)
5241 PICFLAG_FOR_TARGET=-fPIC
5242 ;;
5243 esac
5244
5245 # If the user explicitly uses -fpic/-fPIC, keep that.
5246 case "${CFLAGS_FOR_TARGET}" in
5247 *-fpic*)
5248 PICFLAG_FOR_TARGET=-fpic
5249 ;;
5250 *-fPIC*)
5251 PICFLAG_FOR_TARGET=-fPIC
5252 ;;
5253 esac
5254
5255
5256
5257 # -------------------------
5258 # Check C compiler features
5259 # -------------------------
5260
5261
5262 ac_ext=cpp
5263 ac_cpp='$CXXCPP $CPPFLAGS'
5264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5268 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5269 if test -z "$CXXCPP"; then
5270 if ${ac_cv_prog_CXXCPP+:} false; then :
5271 $as_echo_n "(cached) " >&6
5272 else
5273 # Double quotes because CXXCPP needs to be expanded
5274 for CXXCPP in "$CXX -E" "/lib/cpp"
5275 do
5276 ac_preproc_ok=false
5277 for ac_cxx_preproc_warn_flag in '' yes
5278 do
5279 # Use a header file that comes with gcc, so configuring glibc
5280 # with a fresh cross-compiler works.
5281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5282 # <limits.h> exists even on freestanding compilers.
5283 # On the NeXT, cc -E runs the code through the compiler's parser,
5284 # not just through cpp. "Syntax error" is here to catch this case.
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 #ifdef __STDC__
5288 # include <limits.h>
5289 #else
5290 # include <assert.h>
5291 #endif
5292 Syntax error
5293 _ACEOF
5294 if ac_fn_cxx_try_cpp "$LINENO"; then :
5295
5296 else
5297 # Broken: fails on valid input.
5298 continue
5299 fi
5300 rm -f conftest.err conftest.i conftest.$ac_ext
5301
5302 # OK, works on sane cases. Now check whether nonexistent headers
5303 # can be detected and how.
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 #include <ac_nonexistent.h>
5307 _ACEOF
5308 if ac_fn_cxx_try_cpp "$LINENO"; then :
5309 # Broken: success on invalid input.
5310 continue
5311 else
5312 # Passes both tests.
5313 ac_preproc_ok=:
5314 break
5315 fi
5316 rm -f conftest.err conftest.i conftest.$ac_ext
5317
5318 done
5319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5320 rm -f conftest.i conftest.err conftest.$ac_ext
5321 if $ac_preproc_ok; then :
5322 break
5323 fi
5324
5325 done
5326 ac_cv_prog_CXXCPP=$CXXCPP
5327
5328 fi
5329 CXXCPP=$ac_cv_prog_CXXCPP
5330 else
5331 ac_cv_prog_CXXCPP=$CXXCPP
5332 fi
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5334 $as_echo "$CXXCPP" >&6; }
5335 ac_preproc_ok=false
5336 for ac_cxx_preproc_warn_flag in '' yes
5337 do
5338 # Use a header file that comes with gcc, so configuring glibc
5339 # with a fresh cross-compiler works.
5340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5341 # <limits.h> exists even on freestanding compilers.
5342 # On the NeXT, cc -E runs the code through the compiler's parser,
5343 # not just through cpp. "Syntax error" is here to catch this case.
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346 #ifdef __STDC__
5347 # include <limits.h>
5348 #else
5349 # include <assert.h>
5350 #endif
5351 Syntax error
5352 _ACEOF
5353 if ac_fn_cxx_try_cpp "$LINENO"; then :
5354
5355 else
5356 # Broken: fails on valid input.
5357 continue
5358 fi
5359 rm -f conftest.err conftest.i conftest.$ac_ext
5360
5361 # OK, works on sane cases. Now check whether nonexistent headers
5362 # can be detected and how.
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5365 #include <ac_nonexistent.h>
5366 _ACEOF
5367 if ac_fn_cxx_try_cpp "$LINENO"; then :
5368 # Broken: success on invalid input.
5369 continue
5370 else
5371 # Passes both tests.
5372 ac_preproc_ok=:
5373 break
5374 fi
5375 rm -f conftest.err conftest.i conftest.$ac_ext
5376
5377 done
5378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5379 rm -f conftest.i conftest.err conftest.$ac_ext
5380 if $ac_preproc_ok; then :
5381
5382 else
5383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5385 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5386 See \`config.log' for more details" "$LINENO" 5; }
5387 fi
5388
5389 ac_ext=cpp
5390 ac_cpp='$CXXCPP $CPPFLAGS'
5391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5394
5395
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5397 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5398 if ${ac_cv_path_GREP+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 if test -z "$GREP"; then
5402 ac_path_GREP_found=false
5403 # Loop through the user's path and test for each of PROGNAME-LIST
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5406 do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_prog in grep ggrep; do
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5412 as_fn_executable_p "$ac_path_GREP" || continue
5413 # Check for GNU ac_path_GREP and select it if it is found.
5414 # Check for GNU $ac_path_GREP
5415 case `"$ac_path_GREP" --version 2>&1` in
5416 *GNU*)
5417 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5418 *)
5419 ac_count=0
5420 $as_echo_n 0123456789 >"conftest.in"
5421 while :
5422 do
5423 cat "conftest.in" "conftest.in" >"conftest.tmp"
5424 mv "conftest.tmp" "conftest.in"
5425 cp "conftest.in" "conftest.nl"
5426 $as_echo 'GREP' >> "conftest.nl"
5427 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5428 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5429 as_fn_arith $ac_count + 1 && ac_count=$as_val
5430 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5431 # Best one so far, save it but keep looking for a better one
5432 ac_cv_path_GREP="$ac_path_GREP"
5433 ac_path_GREP_max=$ac_count
5434 fi
5435 # 10*(2^10) chars as input seems more than enough
5436 test $ac_count -gt 10 && break
5437 done
5438 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5439 esac
5440
5441 $ac_path_GREP_found && break 3
5442 done
5443 done
5444 done
5445 IFS=$as_save_IFS
5446 if test -z "$ac_cv_path_GREP"; then
5447 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5448 fi
5449 else
5450 ac_cv_path_GREP=$GREP
5451 fi
5452
5453 fi
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5455 $as_echo "$ac_cv_path_GREP" >&6; }
5456 GREP="$ac_cv_path_GREP"
5457
5458
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5460 $as_echo_n "checking for egrep... " >&6; }
5461 if ${ac_cv_path_EGREP+:} false; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5465 then ac_cv_path_EGREP="$GREP -E"
5466 else
5467 if test -z "$EGREP"; then
5468 ac_path_EGREP_found=false
5469 # Loop through the user's path and test for each of PROGNAME-LIST
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5472 do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_prog in egrep; do
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5478 as_fn_executable_p "$ac_path_EGREP" || continue
5479 # Check for GNU ac_path_EGREP and select it if it is found.
5480 # Check for GNU $ac_path_EGREP
5481 case `"$ac_path_EGREP" --version 2>&1` in
5482 *GNU*)
5483 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5484 *)
5485 ac_count=0
5486 $as_echo_n 0123456789 >"conftest.in"
5487 while :
5488 do
5489 cat "conftest.in" "conftest.in" >"conftest.tmp"
5490 mv "conftest.tmp" "conftest.in"
5491 cp "conftest.in" "conftest.nl"
5492 $as_echo 'EGREP' >> "conftest.nl"
5493 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5494 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5495 as_fn_arith $ac_count + 1 && ac_count=$as_val
5496 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5497 # Best one so far, save it but keep looking for a better one
5498 ac_cv_path_EGREP="$ac_path_EGREP"
5499 ac_path_EGREP_max=$ac_count
5500 fi
5501 # 10*(2^10) chars as input seems more than enough
5502 test $ac_count -gt 10 && break
5503 done
5504 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5505 esac
5506
5507 $ac_path_EGREP_found && break 3
5508 done
5509 done
5510 done
5511 IFS=$as_save_IFS
5512 if test -z "$ac_cv_path_EGREP"; then
5513 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5514 fi
5515 else
5516 ac_cv_path_EGREP=$EGREP
5517 fi
5518
5519 fi
5520 fi
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5522 $as_echo "$ac_cv_path_EGREP" >&6; }
5523 EGREP="$ac_cv_path_EGREP"
5524
5525
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5527 $as_echo_n "checking for ANSI C header files... " >&6; }
5528 if ${ac_cv_header_stdc+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 #include <stdlib.h>
5534 #include <stdarg.h>
5535 #include <string.h>
5536 #include <float.h>
5537
5538 int
5539 main ()
5540 {
5541
5542 ;
5543 return 0;
5544 }
5545 _ACEOF
5546 if ac_fn_cxx_try_compile "$LINENO"; then :
5547 ac_cv_header_stdc=yes
5548 else
5549 ac_cv_header_stdc=no
5550 fi
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552
5553 if test $ac_cv_header_stdc = yes; then
5554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5557 #include <string.h>
5558
5559 _ACEOF
5560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5561 $EGREP "memchr" >/dev/null 2>&1; then :
5562
5563 else
5564 ac_cv_header_stdc=no
5565 fi
5566 rm -f conftest*
5567
5568 fi
5569
5570 if test $ac_cv_header_stdc = yes; then
5571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #include <stdlib.h>
5575
5576 _ACEOF
5577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5578 $EGREP "free" >/dev/null 2>&1; then :
5579
5580 else
5581 ac_cv_header_stdc=no
5582 fi
5583 rm -f conftest*
5584
5585 fi
5586
5587 if test $ac_cv_header_stdc = yes; then
5588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5589 if test "$cross_compiling" = yes; then :
5590 :
5591 else
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 #include <ctype.h>
5595 #include <stdlib.h>
5596 #if ((' ' & 0x0FF) == 0x020)
5597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5599 #else
5600 # define ISLOWER(c) \
5601 (('a' <= (c) && (c) <= 'i') \
5602 || ('j' <= (c) && (c) <= 'r') \
5603 || ('s' <= (c) && (c) <= 'z'))
5604 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5605 #endif
5606
5607 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5608 int
5609 main ()
5610 {
5611 int i;
5612 for (i = 0; i < 256; i++)
5613 if (XOR (islower (i), ISLOWER (i))
5614 || toupper (i) != TOUPPER (i))
5615 return 2;
5616 return 0;
5617 }
5618 _ACEOF
5619 if ac_fn_cxx_try_run "$LINENO"; then :
5620
5621 else
5622 ac_cv_header_stdc=no
5623 fi
5624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5625 conftest.$ac_objext conftest.beam conftest.$ac_ext
5626 fi
5627
5628 fi
5629 fi
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5631 $as_echo "$ac_cv_header_stdc" >&6; }
5632 if test $ac_cv_header_stdc = yes; then
5633
5634 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5635
5636 fi
5637
5638 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5639 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5640 inttypes.h stdint.h unistd.h
5641 do :
5642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5643 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5644 "
5645 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5646 cat >>confdefs.h <<_ACEOF
5647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5648 _ACEOF
5649
5650 fi
5651
5652 done
5653
5654
5655
5656 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5657 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5658 MINIX=yes
5659 else
5660 MINIX=
5661 fi
5662
5663
5664 if test "$MINIX" = yes; then
5665
5666 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5667
5668
5669 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5670
5671
5672 $as_echo "#define _MINIX 1" >>confdefs.h
5673
5674 fi
5675
5676
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5678 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5679 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684
5685 # define __EXTENSIONS__ 1
5686 $ac_includes_default
5687 int
5688 main ()
5689 {
5690
5691 ;
5692 return 0;
5693 }
5694 _ACEOF
5695 if ac_fn_cxx_try_compile "$LINENO"; then :
5696 ac_cv_safe_to_define___extensions__=yes
5697 else
5698 ac_cv_safe_to_define___extensions__=no
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 fi
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5703 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5704 test $ac_cv_safe_to_define___extensions__ = yes &&
5705 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5706
5707 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5708
5709 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5710
5711 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5712
5713 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5714
5715
5716
5717 ac_ext=c
5718 ac_cpp='$CPP $CPPFLAGS'
5719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5723 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5724 # On Suns, sometimes $CPP names a directory.
5725 if test -n "$CPP" && test -d "$CPP"; then
5726 CPP=
5727 fi
5728 if test -z "$CPP"; then
5729 if ${ac_cv_prog_CPP+:} false; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 # Double quotes because CPP needs to be expanded
5733 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5734 do
5735 ac_preproc_ok=false
5736 for ac_c_preproc_warn_flag in '' yes
5737 do
5738 # Use a header file that comes with gcc, so configuring glibc
5739 # with a fresh cross-compiler works.
5740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5741 # <limits.h> exists even on freestanding compilers.
5742 # On the NeXT, cc -E runs the code through the compiler's parser,
5743 # not just through cpp. "Syntax error" is here to catch this case.
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 #ifdef __STDC__
5747 # include <limits.h>
5748 #else
5749 # include <assert.h>
5750 #endif
5751 Syntax error
5752 _ACEOF
5753 if ac_fn_c_try_cpp "$LINENO"; then :
5754
5755 else
5756 # Broken: fails on valid input.
5757 continue
5758 fi
5759 rm -f conftest.err conftest.i conftest.$ac_ext
5760
5761 # OK, works on sane cases. Now check whether nonexistent headers
5762 # can be detected and how.
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #include <ac_nonexistent.h>
5766 _ACEOF
5767 if ac_fn_c_try_cpp "$LINENO"; then :
5768 # Broken: success on invalid input.
5769 continue
5770 else
5771 # Passes both tests.
5772 ac_preproc_ok=:
5773 break
5774 fi
5775 rm -f conftest.err conftest.i conftest.$ac_ext
5776
5777 done
5778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5779 rm -f conftest.i conftest.err conftest.$ac_ext
5780 if $ac_preproc_ok; then :
5781 break
5782 fi
5783
5784 done
5785 ac_cv_prog_CPP=$CPP
5786
5787 fi
5788 CPP=$ac_cv_prog_CPP
5789 else
5790 ac_cv_prog_CPP=$CPP
5791 fi
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5793 $as_echo "$CPP" >&6; }
5794 ac_preproc_ok=false
5795 for ac_c_preproc_warn_flag in '' yes
5796 do
5797 # Use a header file that comes with gcc, so configuring glibc
5798 # with a fresh cross-compiler works.
5799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5800 # <limits.h> exists even on freestanding compilers.
5801 # On the NeXT, cc -E runs the code through the compiler's parser,
5802 # not just through cpp. "Syntax error" is here to catch this case.
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 #ifdef __STDC__
5806 # include <limits.h>
5807 #else
5808 # include <assert.h>
5809 #endif
5810 Syntax error
5811 _ACEOF
5812 if ac_fn_c_try_cpp "$LINENO"; then :
5813
5814 else
5815 # Broken: fails on valid input.
5816 continue
5817 fi
5818 rm -f conftest.err conftest.i conftest.$ac_ext
5819
5820 # OK, works on sane cases. Now check whether nonexistent headers
5821 # can be detected and how.
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5824 #include <ac_nonexistent.h>
5825 _ACEOF
5826 if ac_fn_c_try_cpp "$LINENO"; then :
5827 # Broken: success on invalid input.
5828 continue
5829 else
5830 # Passes both tests.
5831 ac_preproc_ok=:
5832 break
5833 fi
5834 rm -f conftest.err conftest.i conftest.$ac_ext
5835
5836 done
5837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5838 rm -f conftest.i conftest.err conftest.$ac_ext
5839 if $ac_preproc_ok; then :
5840
5841 else
5842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5844 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5845 See \`config.log' for more details" "$LINENO" 5; }
5846 fi
5847
5848 ac_ext=cpp
5849 ac_cpp='$CXXCPP $CPPFLAGS'
5850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5853
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5855 $as_echo_n "checking for inline... " >&6; }
5856 if ${ac_cv_c_inline+:} false; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 ac_cv_c_inline=no
5860 for ac_kw in inline __inline__ __inline; do
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 #ifndef __cplusplus
5864 typedef int foo_t;
5865 static $ac_kw foo_t static_foo () {return 0; }
5866 $ac_kw foo_t foo () {return 0; }
5867 #endif
5868
5869 _ACEOF
5870 if ac_fn_cxx_try_compile "$LINENO"; then :
5871 ac_cv_c_inline=$ac_kw
5872 fi
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 test "$ac_cv_c_inline" != no && break
5875 done
5876
5877 fi
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5879 $as_echo "$ac_cv_c_inline" >&6; }
5880
5881 case $ac_cv_c_inline in
5882 inline | yes) ;;
5883 *)
5884 case $ac_cv_c_inline in
5885 no) ac_val=;;
5886 *) ac_val=$ac_cv_c_inline;;
5887 esac
5888 cat >>confdefs.h <<_ACEOF
5889 #ifndef __cplusplus
5890 #define inline $ac_val
5891 #endif
5892 _ACEOF
5893 ;;
5894 esac
5895
5896
5897 # Check whether --enable-largefile was given.
5898 if test "${enable_largefile+set}" = set; then :
5899 enableval=$enable_largefile;
5900 fi
5901
5902 if test "$enable_largefile" != no; then
5903
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5905 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5906 if ${ac_cv_sys_largefile_CC+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 ac_cv_sys_largefile_CC=no
5910 if test "$GCC" != yes; then
5911 ac_save_CC=$CC
5912 while :; do
5913 # IRIX 6.2 and later do not support large files by default,
5914 # so use the C compiler's -n32 option if that helps.
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 #include <sys/types.h>
5918 /* Check that off_t can represent 2**63 - 1 correctly.
5919 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5920 since some C++ compilers masquerading as C compilers
5921 incorrectly reject 9223372036854775807. */
5922 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5923 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5924 && LARGE_OFF_T % 2147483647 == 1)
5925 ? 1 : -1];
5926 int
5927 main ()
5928 {
5929
5930 ;
5931 return 0;
5932 }
5933 _ACEOF
5934 if ac_fn_cxx_try_compile "$LINENO"; then :
5935 break
5936 fi
5937 rm -f core conftest.err conftest.$ac_objext
5938 CC="$CC -n32"
5939 if ac_fn_cxx_try_compile "$LINENO"; then :
5940 ac_cv_sys_largefile_CC=' -n32'; break
5941 fi
5942 rm -f core conftest.err conftest.$ac_objext
5943 break
5944 done
5945 CC=$ac_save_CC
5946 rm -f conftest.$ac_ext
5947 fi
5948 fi
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5950 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5951 if test "$ac_cv_sys_largefile_CC" != no; then
5952 CC=$CC$ac_cv_sys_largefile_CC
5953 fi
5954
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5956 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5957 if ${ac_cv_sys_file_offset_bits+:} false; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 while :; do
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5963 #include <sys/types.h>
5964 /* Check that off_t can represent 2**63 - 1 correctly.
5965 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5966 since some C++ compilers masquerading as C compilers
5967 incorrectly reject 9223372036854775807. */
5968 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5969 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5970 && LARGE_OFF_T % 2147483647 == 1)
5971 ? 1 : -1];
5972 int
5973 main ()
5974 {
5975
5976 ;
5977 return 0;
5978 }
5979 _ACEOF
5980 if ac_fn_cxx_try_compile "$LINENO"; then :
5981 ac_cv_sys_file_offset_bits=no; break
5982 fi
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h. */
5986 #define _FILE_OFFSET_BITS 64
5987 #include <sys/types.h>
5988 /* Check that off_t can represent 2**63 - 1 correctly.
5989 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5990 since some C++ compilers masquerading as C compilers
5991 incorrectly reject 9223372036854775807. */
5992 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5993 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5994 && LARGE_OFF_T % 2147483647 == 1)
5995 ? 1 : -1];
5996 int
5997 main ()
5998 {
5999
6000 ;
6001 return 0;
6002 }
6003 _ACEOF
6004 if ac_fn_cxx_try_compile "$LINENO"; then :
6005 ac_cv_sys_file_offset_bits=64; break
6006 fi
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008 ac_cv_sys_file_offset_bits=unknown
6009 break
6010 done
6011 fi
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6013 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6014 case $ac_cv_sys_file_offset_bits in #(
6015 no | unknown) ;;
6016 *)
6017 cat >>confdefs.h <<_ACEOF
6018 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6019 _ACEOF
6020 ;;
6021 esac
6022 rm -rf conftest*
6023 if test $ac_cv_sys_file_offset_bits = unknown; then
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6025 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6026 if ${ac_cv_sys_large_files+:} false; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 while :; do
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 #include <sys/types.h>
6033 /* Check that off_t can represent 2**63 - 1 correctly.
6034 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6035 since some C++ compilers masquerading as C compilers
6036 incorrectly reject 9223372036854775807. */
6037 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6039 && LARGE_OFF_T % 2147483647 == 1)
6040 ? 1 : -1];
6041 int
6042 main ()
6043 {
6044
6045 ;
6046 return 0;
6047 }
6048 _ACEOF
6049 if ac_fn_cxx_try_compile "$LINENO"; then :
6050 ac_cv_sys_large_files=no; break
6051 fi
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 #define _LARGE_FILES 1
6056 #include <sys/types.h>
6057 /* Check that off_t can represent 2**63 - 1 correctly.
6058 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6059 since some C++ compilers masquerading as C compilers
6060 incorrectly reject 9223372036854775807. */
6061 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6062 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6063 && LARGE_OFF_T % 2147483647 == 1)
6064 ? 1 : -1];
6065 int
6066 main ()
6067 {
6068
6069 ;
6070 return 0;
6071 }
6072 _ACEOF
6073 if ac_fn_cxx_try_compile "$LINENO"; then :
6074 ac_cv_sys_large_files=1; break
6075 fi
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 ac_cv_sys_large_files=unknown
6078 break
6079 done
6080 fi
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6082 $as_echo "$ac_cv_sys_large_files" >&6; }
6083 case $ac_cv_sys_large_files in #(
6084 no | unknown) ;;
6085 *)
6086 cat >>confdefs.h <<_ACEOF
6087 #define _LARGE_FILES $ac_cv_sys_large_files
6088 _ACEOF
6089 ;;
6090 esac
6091 rm -rf conftest*
6092 fi
6093
6094
6095 fi
6096
6097
6098 # sizeof(char) is 1 by definition.
6099 # The cast to long int works around a bug in the HP C Compiler
6100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6102 # This bug is HP SR number 8606223364.
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6104 $as_echo_n "checking size of void *... " >&6; }
6105 if ${ac_cv_sizeof_void_p+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6109
6110 else
6111 if test "$ac_cv_type_void_p" = yes; then
6112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6114 as_fn_error 77 "cannot compute sizeof (void *)
6115 See \`config.log' for more details" "$LINENO" 5; }
6116 else
6117 ac_cv_sizeof_void_p=0
6118 fi
6119 fi
6120
6121 fi
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6123 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6124
6125
6126
6127 cat >>confdefs.h <<_ACEOF
6128 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6129 _ACEOF
6130
6131
6132 # The cast to long int works around a bug in the HP C Compiler
6133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6135 # This bug is HP SR number 8606223364.
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6137 $as_echo_n "checking size of short... " >&6; }
6138 if ${ac_cv_sizeof_short+:} false; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6142
6143 else
6144 if test "$ac_cv_type_short" = yes; then
6145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6147 as_fn_error 77 "cannot compute sizeof (short)
6148 See \`config.log' for more details" "$LINENO" 5; }
6149 else
6150 ac_cv_sizeof_short=0
6151 fi
6152 fi
6153
6154 fi
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6156 $as_echo "$ac_cv_sizeof_short" >&6; }
6157
6158
6159
6160 cat >>confdefs.h <<_ACEOF
6161 #define SIZEOF_SHORT $ac_cv_sizeof_short
6162 _ACEOF
6163
6164
6165 # The cast to long int works around a bug in the HP C Compiler
6166 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6167 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6168 # This bug is HP SR number 8606223364.
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6170 $as_echo_n "checking size of int... " >&6; }
6171 if ${ac_cv_sizeof_int+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6175
6176 else
6177 if test "$ac_cv_type_int" = yes; then
6178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6180 as_fn_error 77 "cannot compute sizeof (int)
6181 See \`config.log' for more details" "$LINENO" 5; }
6182 else
6183 ac_cv_sizeof_int=0
6184 fi
6185 fi
6186
6187 fi
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6189 $as_echo "$ac_cv_sizeof_int" >&6; }
6190
6191
6192
6193 cat >>confdefs.h <<_ACEOF
6194 #define SIZEOF_INT $ac_cv_sizeof_int
6195 _ACEOF
6196
6197
6198 # The cast to long int works around a bug in the HP C Compiler
6199 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6200 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6201 # This bug is HP SR number 8606223364.
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6203 $as_echo_n "checking size of long... " >&6; }
6204 if ${ac_cv_sizeof_long+:} false; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6208
6209 else
6210 if test "$ac_cv_type_long" = yes; then
6211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6213 as_fn_error 77 "cannot compute sizeof (long)
6214 See \`config.log' for more details" "$LINENO" 5; }
6215 else
6216 ac_cv_sizeof_long=0
6217 fi
6218 fi
6219
6220 fi
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6222 $as_echo "$ac_cv_sizeof_long" >&6; }
6223
6224
6225
6226 cat >>confdefs.h <<_ACEOF
6227 #define SIZEOF_LONG $ac_cv_sizeof_long
6228 _ACEOF
6229
6230
6231 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6232 if test "x$ac_cv_type_long_long" = xyes; then :
6233
6234 cat >>confdefs.h <<_ACEOF
6235 #define HAVE_LONG_LONG 1
6236 _ACEOF
6237
6238 # The cast to long int works around a bug in the HP C Compiler
6239 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6240 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6241 # This bug is HP SR number 8606223364.
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6243 $as_echo_n "checking size of long long... " >&6; }
6244 if ${ac_cv_sizeof_long_long+:} false; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6248
6249 else
6250 if test "$ac_cv_type_long_long" = yes; then
6251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6253 as_fn_error 77 "cannot compute sizeof (long long)
6254 See \`config.log' for more details" "$LINENO" 5; }
6255 else
6256 ac_cv_sizeof_long_long=0
6257 fi
6258 fi
6259
6260 fi
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6262 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6263
6264
6265
6266 cat >>confdefs.h <<_ACEOF
6267 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6268 _ACEOF
6269
6270
6271 fi
6272
6273 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6274 case $ac_cv_c_int8_t in #(
6275 no|yes) ;; #(
6276 *)
6277
6278 cat >>confdefs.h <<_ACEOF
6279 #define int8_t $ac_cv_c_int8_t
6280 _ACEOF
6281 ;;
6282 esac
6283
6284 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6285 case $ac_cv_c_int16_t in #(
6286 no|yes) ;; #(
6287 *)
6288
6289 cat >>confdefs.h <<_ACEOF
6290 #define int16_t $ac_cv_c_int16_t
6291 _ACEOF
6292 ;;
6293 esac
6294
6295 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6296 case $ac_cv_c_int32_t in #(
6297 no|yes) ;; #(
6298 *)
6299
6300 cat >>confdefs.h <<_ACEOF
6301 #define int32_t $ac_cv_c_int32_t
6302 _ACEOF
6303 ;;
6304 esac
6305
6306 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6307 case $ac_cv_c_int64_t in #(
6308 no|yes) ;; #(
6309 *)
6310
6311 cat >>confdefs.h <<_ACEOF
6312 #define int64_t $ac_cv_c_int64_t
6313 _ACEOF
6314 ;;
6315 esac
6316
6317
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6319 $as_echo_n "checking for unsigned long long int... " >&6; }
6320 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 ac_cv_type_unsigned_long_long_int=yes
6324 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6327
6328 /* For now, do not test the preprocessor; as of 2007 there are too many
6329 implementations with broken preprocessors. Perhaps this can
6330 be revisited in 2012. In the meantime, code should not expect
6331 #if to work with literals wider than 32 bits. */
6332 /* Test literals. */
6333 long long int ll = 9223372036854775807ll;
6334 long long int nll = -9223372036854775807LL;
6335 unsigned long long int ull = 18446744073709551615ULL;
6336 /* Test constant expressions. */
6337 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6338 ? 1 : -1)];
6339 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6340 ? 1 : -1)];
6341 int i = 63;
6342 int
6343 main ()
6344 {
6345 /* Test availability of runtime routines for shift and division. */
6346 long long int llmax = 9223372036854775807ll;
6347 unsigned long long int ullmax = 18446744073709551615ull;
6348 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6349 | (llmax / ll) | (llmax % ll)
6350 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6351 | (ullmax / ull) | (ullmax % ull));
6352 ;
6353 return 0;
6354 }
6355
6356 _ACEOF
6357 if ac_fn_cxx_try_link "$LINENO"; then :
6358
6359 else
6360 ac_cv_type_unsigned_long_long_int=no
6361 fi
6362 rm -f core conftest.err conftest.$ac_objext \
6363 conftest$ac_exeext conftest.$ac_ext
6364 fi
6365 fi
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6367 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6368 if test $ac_cv_type_unsigned_long_long_int = yes; then
6369
6370 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6371
6372 fi
6373
6374
6375
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6377 $as_echo_n "checking for long long int... " >&6; }
6378 if ${ac_cv_type_long_long_int+:} false; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 ac_cv_type_long_long_int=yes
6382 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6383 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6384 if test $ac_cv_type_long_long_int = yes; then
6385 if test "$cross_compiling" = yes; then :
6386 :
6387 else
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6390 #include <limits.h>
6391 #ifndef LLONG_MAX
6392 # define HALF \
6393 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6394 # define LLONG_MAX (HALF - 1 + HALF)
6395 #endif
6396 int
6397 main ()
6398 {
6399 long long int n = 1;
6400 int i;
6401 for (i = 0; ; i++)
6402 {
6403 long long int m = n << i;
6404 if (m >> i != n)
6405 return 1;
6406 if (LLONG_MAX / 2 < m)
6407 break;
6408 }
6409 return 0;
6410 ;
6411 return 0;
6412 }
6413 _ACEOF
6414 if ac_fn_cxx_try_run "$LINENO"; then :
6415
6416 else
6417 ac_cv_type_long_long_int=no
6418 fi
6419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6420 conftest.$ac_objext conftest.beam conftest.$ac_ext
6421 fi
6422
6423 fi
6424 fi
6425 fi
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6427 $as_echo "$ac_cv_type_long_long_int" >&6; }
6428 if test $ac_cv_type_long_long_int = yes; then
6429
6430 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6431
6432 fi
6433
6434
6435
6436 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6437 if test "x$ac_cv_type_intmax_t" = xyes; then :
6438
6439 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6440
6441 else
6442 test $ac_cv_type_long_long_int = yes \
6443 && ac_type='long long int' \
6444 || ac_type='long int'
6445
6446 cat >>confdefs.h <<_ACEOF
6447 #define intmax_t $ac_type
6448 _ACEOF
6449
6450 fi
6451
6452
6453
6454 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6455 if test "x$ac_cv_type_intptr_t" = xyes; then :
6456
6457 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6458
6459 else
6460 for ac_type in 'int' 'long int' 'long long int'; do
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6463 $ac_includes_default
6464 int
6465 main ()
6466 {
6467 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6468 test_array [0] = 0;
6469 return test_array [0];
6470
6471 ;
6472 return 0;
6473 }
6474 _ACEOF
6475 if ac_fn_cxx_try_compile "$LINENO"; then :
6476
6477 cat >>confdefs.h <<_ACEOF
6478 #define intptr_t $ac_type
6479 _ACEOF
6480
6481 ac_type=
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 test -z "$ac_type" && break
6485 done
6486 fi
6487
6488
6489 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6490 case $ac_cv_c_uint8_t in #(
6491 no|yes) ;; #(
6492 *)
6493
6494 $as_echo "#define _UINT8_T 1" >>confdefs.h
6495
6496
6497 cat >>confdefs.h <<_ACEOF
6498 #define uint8_t $ac_cv_c_uint8_t
6499 _ACEOF
6500 ;;
6501 esac
6502
6503 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6504 case $ac_cv_c_uint16_t in #(
6505 no|yes) ;; #(
6506 *)
6507
6508
6509 cat >>confdefs.h <<_ACEOF
6510 #define uint16_t $ac_cv_c_uint16_t
6511 _ACEOF
6512 ;;
6513 esac
6514
6515 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6516 case $ac_cv_c_uint32_t in #(
6517 no|yes) ;; #(
6518 *)
6519
6520 $as_echo "#define _UINT32_T 1" >>confdefs.h
6521
6522
6523 cat >>confdefs.h <<_ACEOF
6524 #define uint32_t $ac_cv_c_uint32_t
6525 _ACEOF
6526 ;;
6527 esac
6528
6529 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6530 case $ac_cv_c_uint64_t in #(
6531 no|yes) ;; #(
6532 *)
6533
6534 $as_echo "#define _UINT64_T 1" >>confdefs.h
6535
6536
6537 cat >>confdefs.h <<_ACEOF
6538 #define uint64_t $ac_cv_c_uint64_t
6539 _ACEOF
6540 ;;
6541 esac
6542
6543
6544
6545 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6546 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6547
6548 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6549
6550 else
6551 test $ac_cv_type_unsigned_long_long_int = yes \
6552 && ac_type='unsigned long long int' \
6553 || ac_type='unsigned long int'
6554
6555 cat >>confdefs.h <<_ACEOF
6556 #define uintmax_t $ac_type
6557 _ACEOF
6558
6559 fi
6560
6561
6562
6563 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6564 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6565
6566 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6567
6568 else
6569 for ac_type in 'unsigned int' 'unsigned long int' \
6570 'unsigned long long int'; do
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573 $ac_includes_default
6574 int
6575 main ()
6576 {
6577 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6578 test_array [0] = 0;
6579 return test_array [0];
6580
6581 ;
6582 return 0;
6583 }
6584 _ACEOF
6585 if ac_fn_cxx_try_compile "$LINENO"; then :
6586
6587 cat >>confdefs.h <<_ACEOF
6588 #define uintptr_t $ac_type
6589 _ACEOF
6590
6591 ac_type=
6592 fi
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594 test -z "$ac_type" && break
6595 done
6596 fi
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6612 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6613 fi
6614
6615 # check what underlying integer type int64_t uses
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6617 $as_echo_n "checking for int64_t underlying type... " >&6; }
6618 if ${ac_cv_int64_t_type+:} false; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h. */
6624
6625 #ifdef HAVE_STDINT_H
6626 #include <stdint.h>
6627 #endif
6628 template <typename T> struct X { };
6629 template <>
6630 struct X<long> { typedef long t; };
6631
6632 int
6633 main ()
6634 {
6635 X<int64_t>::t x;
6636 ;
6637 return 0;
6638 }
6639 _ACEOF
6640 if ac_fn_cxx_try_compile "$LINENO"; then :
6641 ac_cv_int64_t_type=long
6642 else
6643 ac_cv_int64_t_type="long long"
6644 fi
6645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646 fi
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6648 $as_echo "$ac_cv_int64_t_type" >&6; }
6649 if test "$ac_cv_int64_t_type" = "long"; then
6650
6651 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6652
6653 else
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6656
6657 #ifdef HAVE_STDINT_H
6658 #include <stdint.h>
6659 #endif
6660 template <typename T> struct X { };
6661 template <>
6662 struct X<long long> { typedef long long t; };
6663
6664 int
6665 main ()
6666 {
6667 X<int64_t>::t x;
6668 ;
6669 return 0;
6670 }
6671 _ACEOF
6672 if ac_fn_cxx_try_compile "$LINENO"; then :
6673
6674 else
6675 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6676 fi
6677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678 fi
6679
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6681 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6682 if ${ac_cv_std_swap_in_utility+:} false; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685
6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h. */
6688
6689 #include <utility>
6690
6691 int
6692 main ()
6693 {
6694 int a, b; std::swap(a,b);
6695 ;
6696 return 0;
6697 }
6698 _ACEOF
6699 if ac_fn_cxx_try_compile "$LINENO"; then :
6700 ac_cv_std_swap_in_utility=yes
6701 else
6702 ac_cv_std_swap_in_utility=no
6703 fi
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705 fi
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6707 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6708 if test $ac_cv_std_swap_in_utility = yes; then
6709
6710 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6711
6712 fi
6713
6714 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6715 # If the host compiler is affected by the bug, and we build with optimization
6716 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6717 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6718 # Since there is no reliable feature check for the presence of this bug,
6719 # we simply use a GCC version number check. (This should never trigger for
6720 # stages 2 or 3 of a native bootstrap.)
6721 aliasing_flags=
6722 if test "$GCC" = yes; then
6723 saved_CXXFLAGS="$CXXFLAGS"
6724
6725 # The following test compilation will succeed if and only if $CXX accepts
6726 # -fno-strict-aliasing *and* is older than GCC 4.3.
6727 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6729 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6732
6733 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6734 #error compiler not affected by placement new aliasing bug
6735 #endif
6736
6737 _ACEOF
6738 if ac_fn_cxx_try_compile "$LINENO"; then :
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6740 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6741 else
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6744 fi
6745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746
6747 CXXFLAGS="$saved_CXXFLAGS"
6748 fi
6749
6750
6751
6752
6753 # ---------------------
6754 # Warnings and checking
6755 # ---------------------
6756
6757 # Check $CC warning features (if it's GCC).
6758 # We want to use -pedantic, but we don't want warnings about
6759 # * 'long long'
6760 # * variadic macros
6761 # * overlong strings
6762 # * C++11 narrowing conversions in { }
6763 # So, we only use -pedantic if we can disable those warnings.
6764
6765 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6766 # Check whether --enable-build-format-warnings was given.
6767 if test "${enable_build_format_warnings+set}" = set; then :
6768 enableval=$enable_build_format_warnings;
6769 else
6770 enable_build_format_warnings=yes
6771 fi
6772
6773 if test $enable_build_format_warnings = no; then :
6774 wf_opt=-Wno-format
6775 else
6776 wf_opt=
6777 fi
6778 ac_ext=cpp
6779 ac_cpp='$CXXCPP $CPPFLAGS'
6780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6783
6784 loose_warn=
6785 save_CXXFLAGS="$CXXFLAGS"
6786 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6787 # Do the check with the no- prefix removed since gcc silently
6788 # accepts any -Wno-* option on purpose
6789 case $real_option in
6790 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6791 *) option=$real_option ;;
6792 esac
6793 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6794
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6796 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6797 if eval \${$as_acx_Woption+:} false; then :
6798 $as_echo_n "(cached) " >&6
6799 else
6800 CXXFLAGS="$option"
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803
6804 int
6805 main ()
6806 {
6807
6808 ;
6809 return 0;
6810 }
6811 _ACEOF
6812 if ac_fn_cxx_try_compile "$LINENO"; then :
6813 eval "$as_acx_Woption=yes"
6814 else
6815 eval "$as_acx_Woption=no"
6816 fi
6817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818
6819 fi
6820 eval ac_res=\$$as_acx_Woption
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6822 $as_echo "$ac_res" >&6; }
6823 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6824 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6825 fi
6826 done
6827 CXXFLAGS="$save_CXXFLAGS"
6828 ac_ext=cpp
6829 ac_cpp='$CXXCPP $CPPFLAGS'
6830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6833
6834
6835
6836 ac_ext=c
6837 ac_cpp='$CPP $CPPFLAGS'
6838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6841
6842 c_loose_warn=
6843 save_CFLAGS="$CFLAGS"
6844 for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6845 # Do the check with the no- prefix removed since gcc silently
6846 # accepts any -Wno-* option on purpose
6847 case $real_option in
6848 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6849 *) option=$real_option ;;
6850 esac
6851 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6852
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6854 $as_echo_n "checking whether $CC supports $option... " >&6; }
6855 if eval \${$as_acx_Woption+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 CFLAGS="$option"
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6861
6862 int
6863 main ()
6864 {
6865
6866 ;
6867 return 0;
6868 }
6869 _ACEOF
6870 if ac_fn_c_try_compile "$LINENO"; then :
6871 eval "$as_acx_Woption=yes"
6872 else
6873 eval "$as_acx_Woption=no"
6874 fi
6875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6876
6877 fi
6878 eval ac_res=\$$as_acx_Woption
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6880 $as_echo "$ac_res" >&6; }
6881 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6882 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6883 fi
6884 done
6885 CFLAGS="$save_CFLAGS"
6886 ac_ext=cpp
6887 ac_cpp='$CXXCPP $CPPFLAGS'
6888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6891
6892
6893 ac_ext=cpp
6894 ac_cpp='$CXXCPP $CPPFLAGS'
6895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6898
6899 strict_warn=
6900 save_CXXFLAGS="$CXXFLAGS"
6901 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6902 # Do the check with the no- prefix removed since gcc silently
6903 # accepts any -Wno-* option on purpose
6904 case $real_option in
6905 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6906 *) option=$real_option ;;
6907 esac
6908 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6909
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6911 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6912 if eval \${$as_acx_Woption+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 CXXFLAGS="$option"
6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6918
6919 int
6920 main ()
6921 {
6922
6923 ;
6924 return 0;
6925 }
6926 _ACEOF
6927 if ac_fn_cxx_try_compile "$LINENO"; then :
6928 eval "$as_acx_Woption=yes"
6929 else
6930 eval "$as_acx_Woption=no"
6931 fi
6932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933
6934 fi
6935 eval ac_res=\$$as_acx_Woption
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6937 $as_echo "$ac_res" >&6; }
6938 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6939 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6940 fi
6941 done
6942 CXXFLAGS="$save_CXXFLAGS"
6943 ac_ext=cpp
6944 ac_cpp='$CXXCPP $CPPFLAGS'
6945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6948
6949
6950 ac_ext=c
6951 ac_cpp='$CPP $CPPFLAGS'
6952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6955
6956 c_strict_warn=
6957 save_CFLAGS="$CFLAGS"
6958 for real_option in -Wold-style-definition -Wc++-compat; do
6959 # Do the check with the no- prefix removed since gcc silently
6960 # accepts any -Wno-* option on purpose
6961 case $real_option in
6962 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6963 *) option=$real_option ;;
6964 esac
6965 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6966
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6968 $as_echo_n "checking whether $CC supports $option... " >&6; }
6969 if eval \${$as_acx_Woption+:} false; then :
6970 $as_echo_n "(cached) " >&6
6971 else
6972 CFLAGS="$option"
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6975
6976 int
6977 main ()
6978 {
6979
6980 ;
6981 return 0;
6982 }
6983 _ACEOF
6984 if ac_fn_c_try_compile "$LINENO"; then :
6985 eval "$as_acx_Woption=yes"
6986 else
6987 eval "$as_acx_Woption=no"
6988 fi
6989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6990
6991 fi
6992 eval ac_res=\$$as_acx_Woption
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6994 $as_echo "$ac_res" >&6; }
6995 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6996 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6997 fi
6998 done
6999 CFLAGS="$save_CFLAGS"
7000 ac_ext=cpp
7001 ac_cpp='$CXXCPP $CPPFLAGS'
7002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7005
7006
7007 ac_ext=cpp
7008 ac_cpp='$CXXCPP $CPPFLAGS'
7009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7012
7013 # Do the check with the no- prefix removed from the warning options
7014 # since gcc silently accepts any -Wno-* option on purpose
7015 if test "$GXX" = yes; then :
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7017 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7018 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 save_CXXFLAGS="$CXXFLAGS"
7022 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025
7026 int
7027 main ()
7028 {
7029
7030 ;
7031 return 0;
7032 }
7033 _ACEOF
7034 if ac_fn_cxx_try_compile "$LINENO"; then :
7035 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7036 else
7037 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7038 fi
7039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040 CXXFLAGS="$save_CXXFLAGS"
7041 fi
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7043 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7044 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7045 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7046 fi
7047
7048 fi
7049 ac_ext=cpp
7050 ac_cpp='$CXXCPP $CPPFLAGS'
7051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7054
7055
7056 ac_ext=cpp
7057 ac_cpp='$CXXCPP $CPPFLAGS'
7058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7061
7062 # Check whether --enable-werror-always was given.
7063 if test "${enable_werror_always+set}" = set; then :
7064 enableval=$enable_werror_always;
7065 else
7066 enable_werror_always=no
7067 fi
7068
7069 if test $enable_werror_always = yes; then :
7070 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7071 fi
7072
7073 ac_ext=cpp
7074 ac_cpp='$CXXCPP $CPPFLAGS'
7075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7078
7079
7080
7081 # The above macros do nothing if the compiler is not GCC. However, the
7082 # Makefile has more goo to add other flags, so these variables are used
7083 # to enable warnings only for GCC.
7084 warn_cflags=
7085 warn_cxxflags=
7086 if test "x$GCC" = "xyes"; then
7087 warn_cflags='$(GCC_WARN_CFLAGS)'
7088 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7089 fi
7090
7091
7092
7093 # Disable exceptions and RTTI if building with g++
7094 ac_ext=c
7095 ac_cpp='$CPP $CPPFLAGS'
7096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7099
7100 noexception_flags=
7101 save_CFLAGS="$CFLAGS"
7102 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7103 # Do the check with the no- prefix removed since gcc silently
7104 # accepts any -Wno-* option on purpose
7105 case $real_option in
7106 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7107 *) option=$real_option ;;
7108 esac
7109 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7110
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7112 $as_echo_n "checking whether $CC supports $option... " >&6; }
7113 if eval \${$as_acx_Woption+:} false; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 CFLAGS="$option"
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119
7120 int
7121 main ()
7122 {
7123
7124 ;
7125 return 0;
7126 }
7127 _ACEOF
7128 if ac_fn_c_try_compile "$LINENO"; then :
7129 eval "$as_acx_Woption=yes"
7130 else
7131 eval "$as_acx_Woption=no"
7132 fi
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134
7135 fi
7136 eval ac_res=\$$as_acx_Woption
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7138 $as_echo "$ac_res" >&6; }
7139 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7140 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7141 fi
7142 done
7143 CFLAGS="$save_CFLAGS"
7144 ac_ext=cpp
7145 ac_cpp='$CXXCPP $CPPFLAGS'
7146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7149
7150
7151
7152 # Enable expensive internal checks
7153 is_release=
7154 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7155 is_release=yes
7156 fi
7157
7158 # Check whether --enable-checking was given.
7159 if test "${enable_checking+set}" = set; then :
7160 enableval=$enable_checking; ac_checking_flags="${enableval}"
7161 else
7162
7163 # Determine the default checks.
7164 if test x$is_release = x ; then
7165 ac_checking_flags=yes,extra
7166 else
7167 ac_checking_flags=release
7168 fi
7169 fi
7170
7171 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7172 for check in release $ac_checking_flags
7173 do
7174 case $check in
7175 # these set all the flags to specific states
7176 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7177 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7178 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7179 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7180 ac_tree_checking=1 ; ac_valgrind_checking= ;
7181 ac_types_checking=1 ;;
7182 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7183 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7184 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7185 ac_rtlflag_checking= ; ac_runtime_checking= ;
7186 ac_tree_checking= ; ac_valgrind_checking= ;
7187 ac_types_checking= ;;
7188 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7189 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7190 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7191 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7192 ac_tree_checking=1 ; ac_valgrind_checking= ;
7193 ac_types_checking=1 ;;
7194 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7195 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7196 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7197 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7198 ac_tree_checking= ; ac_valgrind_checking= ;
7199 ac_types_checking= ;;
7200 # these enable particular checks
7201 assert) ac_assert_checking=1 ;;
7202 df) ac_df_checking=1 ;;
7203 extra) ac_extra_checking=1 ;;
7204 fold) ac_fold_checking=1 ;;
7205 gc) ac_gc_checking=1 ;;
7206 gcac) ac_gc_always_collect=1 ;;
7207 gimple) ac_gimple_checking=1 ;;
7208 misc) ac_checking=1 ;;
7209 rtl) ac_rtl_checking=1 ;;
7210 rtlflag) ac_rtlflag_checking=1 ;;
7211 runtime) ac_runtime_checking=1 ;;
7212 tree) ac_tree_checking=1 ;;
7213 types) ac_types_checking=1 ;;
7214 valgrind) ac_valgrind_checking=1 ;;
7215 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7216 esac
7217 done
7218 IFS="$ac_save_IFS"
7219
7220 nocommon_flag=""
7221 if test x$ac_checking != x ; then
7222
7223 $as_echo "#define CHECKING_P 1" >>confdefs.h
7224
7225 nocommon_flag=-fno-common
7226 else
7227 $as_echo "#define CHECKING_P 0" >>confdefs.h
7228
7229 fi
7230
7231 if test x$ac_extra_checking != x ; then
7232
7233 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7234
7235 else
7236 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7237
7238 fi
7239 if test x$ac_df_checking != x ; then
7240
7241 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7242
7243 fi
7244 if test x$ac_assert_checking != x ; then
7245
7246 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7247
7248 fi
7249 if test x$ac_gimple_checking != x ; then
7250
7251 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7252
7253 fi
7254
7255 if test x$ac_runtime_checking != x ; then
7256
7257 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7258
7259 fi
7260 if test x$ac_tree_checking != x ; then
7261
7262 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7263
7264 TREECHECKING=yes
7265 fi
7266 if test x$ac_types_checking != x ; then
7267
7268 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7269
7270 fi
7271
7272 if test x$ac_rtl_checking != x ; then
7273
7274 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7275
7276 fi
7277 if test x$ac_rtlflag_checking != x ; then
7278
7279 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7280
7281 fi
7282 if test x$ac_gc_checking != x ; then
7283
7284 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7285
7286 fi
7287 if test x$ac_gc_always_collect != x ; then
7288
7289 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7290
7291 fi
7292 if test x$ac_fold_checking != x ; then
7293
7294 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7295
7296 fi
7297 valgrind_path_defines=
7298 valgrind_command=
7299
7300 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7301 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7302 have_valgrind_h=yes
7303 else
7304 have_valgrind_h=no
7305 fi
7306
7307
7308
7309 # It is certainly possible that there's valgrind but no valgrind.h.
7310 # GCC relies on making annotations so we must have both.
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7312 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 #include <valgrind/memcheck.h>
7316 #ifndef VALGRIND_DISCARD
7317 #error VALGRIND_DISCARD not defined
7318 #endif
7319 _ACEOF
7320 if ac_fn_cxx_try_cpp "$LINENO"; then :
7321 gcc_cv_header_valgrind_memcheck_h=yes
7322 else
7323 gcc_cv_header_valgrind_memcheck_h=no
7324 fi
7325 rm -f conftest.err conftest.i conftest.$ac_ext
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7327 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7329 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331 /* end confdefs.h. */
7332 #include <memcheck.h>
7333 #ifndef VALGRIND_DISCARD
7334 #error VALGRIND_DISCARD not defined
7335 #endif
7336 _ACEOF
7337 if ac_fn_cxx_try_cpp "$LINENO"; then :
7338 gcc_cv_header_memcheck_h=yes
7339 else
7340 gcc_cv_header_memcheck_h=no
7341 fi
7342 rm -f conftest.err conftest.i conftest.$ac_ext
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7344 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7345 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7346
7347 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7348
7349 fi
7350 if test $gcc_cv_header_memcheck_h = yes; then
7351
7352 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7353
7354 fi
7355
7356 if test x$ac_valgrind_checking != x ; then
7357
7358 # Prepare PATH_SEPARATOR.
7359 # The user is always right.
7360 if test "${PATH_SEPARATOR+set}" != set; then
7361 echo "#! /bin/sh" >conf$$.sh
7362 echo "exit 0" >>conf$$.sh
7363 chmod +x conf$$.sh
7364 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7365 PATH_SEPARATOR=';'
7366 else
7367 PATH_SEPARATOR=:
7368 fi
7369 rm -f conf$$.sh
7370 fi
7371
7372 # Find out how to test for executable files. Don't use a zero-byte file,
7373 # as systems may use methods other than mode bits to determine executability.
7374 cat >conf$$.file <<_ASEOF
7375 #! /bin/sh
7376 exit 0
7377 _ASEOF
7378 chmod +x conf$$.file
7379 if test -x conf$$.file >/dev/null 2>&1; then
7380 ac_executable_p="test -x"
7381 else
7382 ac_executable_p="test -f"
7383 fi
7384 rm -f conf$$.file
7385
7386 # Extract the first word of "valgrind", so it can be a program name with args.
7387 set dummy valgrind; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_path_valgrind_path+:} false; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393 case "$valgrind_path" in
7394 [\\/]* | ?:[\\/]*)
7395 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7396 ;;
7397 *)
7398 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7399 for ac_dir in $PATH; do
7400 IFS="$ac_save_IFS"
7401 test -z "$ac_dir" && ac_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7404 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7405 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7406 break 2
7407 fi
7408 fi
7409 done
7410 done
7411 IFS="$ac_save_IFS"
7412 ;;
7413 esac
7414 fi
7415 valgrind_path="$ac_cv_path_valgrind_path"
7416 if test -n "$valgrind_path"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7418 $as_echo "$valgrind_path" >&6; }
7419 else
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7422 fi
7423
7424 if test "x$valgrind_path" = "x" \
7425 || (test $have_valgrind_h = no \
7426 && test $gcc_cv_header_memcheck_h = no \
7427 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7428 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7429 fi
7430 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7431 valgrind_command="$valgrind_path -q"
7432
7433 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7434
7435 fi
7436
7437
7438
7439 # Enable code coverage collection
7440 # Check whether --enable-coverage was given.
7441 if test "${enable_coverage+set}" = set; then :
7442 enableval=$enable_coverage; case "${enableval}" in
7443 yes|noopt)
7444 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7445 ;;
7446 opt)
7447 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7448 ;;
7449 no)
7450 # a.k.a. --disable-coverage
7451 coverage_flags=""
7452 ;;
7453 *)
7454 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7455 ;;
7456 esac
7457 else
7458 coverage_flags=""
7459 fi
7460
7461
7462
7463 # Check whether --enable-gather-detailed-mem-stats was given.
7464 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7465 enableval=$enable_gather_detailed_mem_stats;
7466 else
7467 enable_gather_detailed_mem_stats=no
7468 fi
7469
7470 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7471
7472 cat >>confdefs.h <<_ACEOF
7473 #define GATHER_STATISTICS $gather_stats
7474 _ACEOF
7475
7476
7477 # Check whether --enable-valgrind-annotations was given.
7478 if test "${enable_valgrind_annotations+set}" = set; then :
7479 enableval=$enable_valgrind_annotations;
7480 else
7481 enable_valgrind_annotations=no
7482 fi
7483
7484 if test x$enable_valgrind_annotations != xno \
7485 || test x$ac_valgrind_checking != x; then
7486 if (test $have_valgrind_h = no \
7487 && test $gcc_cv_header_memcheck_h = no \
7488 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7489 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7490 fi
7491
7492 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7493
7494 fi
7495
7496 # -------------------------------
7497 # Miscenalleous configure options
7498 # -------------------------------
7499
7500 # With stabs
7501
7502 # Check whether --with-stabs was given.
7503 if test "${with_stabs+set}" = set; then :
7504 withval=$with_stabs; stabs="$with_stabs"
7505 else
7506 stabs=no
7507 fi
7508
7509
7510 # Determine whether or not multilibs are enabled.
7511 # Check whether --enable-multilib was given.
7512 if test "${enable_multilib+set}" = set; then :
7513 enableval=$enable_multilib;
7514 else
7515 enable_multilib=yes
7516 fi
7517
7518
7519
7520 # Determine whether or not multiarch is enabled.
7521 # Check whether --enable-multiarch was given.
7522 if test "${enable_multiarch+set}" = set; then :
7523 enableval=$enable_multiarch; case "${enableval}" in
7524 yes|no|auto) enable_multiarch=$enableval;;
7525 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7526 esac
7527 else
7528 enable_multiarch=auto
7529 fi
7530
7531 if test x${enable_multiarch} = xauto; then
7532 if test x${with_native_system_header_dir} != x; then
7533 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7534 enable_multiarch=no
7535 fi
7536 if test x$host != x$target && test "x$with_sysroot" = x; then
7537 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7538 enable_multiarch=no
7539 fi
7540 fi
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7542 $as_echo_n "checking for multiarch configuration... " >&6; }
7543
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7545 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7546
7547 # needed for setting the multiarch name for soft-float/hard-float ABIs
7548
7549
7550
7551 # default stack clash protection guard size as power of twos in bytes.
7552 # Please keep these in sync with params.def.
7553 stk_clash_min=12
7554 stk_clash_max=30
7555
7556 # Keep the default value when the option is not used to 0, this allows us to
7557 # distinguish between the cases where the user specifially set a value via
7558 # configure and when the normal default value is used.
7559
7560 # Check whether --with-stack-clash-protection-guard-size was given.
7561 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7562 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7563 else
7564 DEFAULT_STK_CLASH_GUARD_SIZE=0
7565 fi
7566
7567 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7568 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7569 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7570 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
7571 fi
7572
7573
7574 cat >>confdefs.h <<_ACEOF
7575 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7576 _ACEOF
7577
7578
7579 # Enable __cxa_atexit for C++.
7580 # Check whether --enable-__cxa_atexit was given.
7581 if test "${enable___cxa_atexit+set}" = set; then :
7582 enableval=$enable___cxa_atexit;
7583 fi
7584
7585
7586 # Enable C extension for decimal float if target supports it.
7587
7588 # Check whether --enable-decimal-float was given.
7589 if test "${enable_decimal_float+set}" = set; then :
7590 enableval=$enable_decimal_float;
7591 case $enable_decimal_float in
7592 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7593 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7594 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7595 esac
7596
7597 else
7598
7599 case $target in
7600 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7601 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7602 i?86*-*-mingw* | x86_64*-*-mingw* | \
7603 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7604 enable_decimal_float=yes
7605 ;;
7606 *)
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7608 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7609 enable_decimal_float=no
7610 ;;
7611 esac
7612
7613 fi
7614
7615
7616 # x86's use BID format instead of DPD
7617 case x$enable_decimal_float in
7618 xyes)
7619 case $target in
7620 i?86*-*-* | x86_64*-*-*)
7621 enable_decimal_float=bid
7622 ;;
7623 *)
7624 enable_decimal_float=dpd
7625 ;;
7626 esac
7627 default_decimal_float=$enable_decimal_float
7628 ;;
7629 xno)
7630 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7631 # dependency on libdecnumber.
7632 default_decimal_float=dpd
7633 ;;
7634 esac
7635
7636
7637
7638
7639 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7640
7641 cat >>confdefs.h <<_ACEOF
7642 #define ENABLE_DECIMAL_FLOAT $dfp
7643 _ACEOF
7644
7645
7646 # Use default_decimal_float for dependency.
7647 enable_decimal_float=$default_decimal_float
7648
7649 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7650
7651 cat >>confdefs.h <<_ACEOF
7652 #define ENABLE_DECIMAL_BID_FORMAT $bid
7653 _ACEOF
7654
7655
7656 # Enable C extension for fixed-point arithmetic.
7657 # Check whether --enable-fixed-point was given.
7658 if test "${enable_fixed_point+set}" = set; then :
7659 enableval=$enable_fixed_point;
7660 else
7661
7662 case $target in
7663 arm*)
7664 enable_fixed_point=yes
7665 ;;
7666
7667 mips*-*-*)
7668 enable_fixed_point=yes
7669 ;;
7670 *)
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7672 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7673 enable_fixed_point=no
7674 ;;
7675 esac
7676
7677 fi
7678
7679
7680
7681 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7682
7683 cat >>confdefs.h <<_ACEOF
7684 #define ENABLE_FIXED_POINT $fixedpoint
7685 _ACEOF
7686
7687
7688 # Enable threads
7689 # Pass with no value to take the default
7690 # Pass with a value to specify a thread package
7691 # Check whether --enable-threads was given.
7692 if test "${enable_threads+set}" = set; then :
7693 enableval=$enable_threads;
7694 else
7695 enable_threads=''
7696 fi
7697
7698
7699 # Check whether --enable-tls was given.
7700 if test "${enable_tls+set}" = set; then :
7701 enableval=$enable_tls;
7702 case $enable_tls in
7703 yes | no) ;;
7704 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7705 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7706 esac
7707
7708 else
7709 enable_tls=''
7710 fi
7711
7712
7713 # Check whether --enable-vtable-verify was given.
7714 if test "${enable_vtable_verify+set}" = set; then :
7715 enableval=$enable_vtable_verify;
7716 else
7717 enable_vtable_verify=no
7718 fi
7719
7720 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7721
7722 cat >>confdefs.h <<_ACEOF
7723 #define ENABLE_VTABLE_VERIFY $vtable_verify
7724 _ACEOF
7725
7726
7727 # Check whether --enable-analyzer was given.
7728 if test "${enable_analyzer+set}" = set; then :
7729 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
7730 analyzer=0
7731 else
7732 analyzer=1
7733 fi
7734 else
7735 analyzer=1
7736 fi
7737
7738
7739 cat >>confdefs.h <<_ACEOF
7740 #define ENABLE_ANALYZER $analyzer
7741 _ACEOF
7742
7743
7744 # Check whether --enable-objc-gc was given.
7745 if test "${enable_objc_gc+set}" = set; then :
7746 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7747 objc_boehm_gc=''
7748 else
7749 objc_boehm_gc=1
7750 fi
7751 else
7752 objc_boehm_gc=''
7753 fi
7754
7755
7756
7757 # Check whether --with-dwarf2 was given.
7758 if test "${with_dwarf2+set}" = set; then :
7759 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7760 else
7761 dwarf2=no
7762 fi
7763
7764
7765 # Check whether --enable-shared was given.
7766 if test "${enable_shared+set}" = set; then :
7767 enableval=$enable_shared;
7768 case $enable_shared in
7769 yes | no) ;;
7770 *)
7771 enable_shared=no
7772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7773 for pkg in $enableval; do
7774 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7775 enable_shared=yes
7776 fi
7777 done
7778 IFS="$ac_save_ifs"
7779 ;;
7780 esac
7781
7782 else
7783 enable_shared=yes
7784 fi
7785
7786
7787
7788 # Check whether --enable-gcov was given.
7789 if test "${enable_gcov+set}" = set; then :
7790 enableval=$enable_gcov;
7791 else
7792 enable_gcov=yes
7793 fi
7794
7795
7796
7797
7798 # Check whether --with-specs was given.
7799 if test "${with_specs+set}" = set; then :
7800 withval=$with_specs; CONFIGURE_SPECS=$withval
7801 else
7802 CONFIGURE_SPECS=
7803
7804 fi
7805
7806
7807
7808
7809
7810 # Check whether --with-pkgversion was given.
7811 if test "${with_pkgversion+set}" = set; then :
7812 withval=$with_pkgversion; case "$withval" in
7813 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7814 no) PKGVERSION= ;;
7815 *) PKGVERSION="($withval) " ;;
7816 esac
7817 else
7818 PKGVERSION="(GCC) "
7819
7820 fi
7821
7822
7823
7824
7825
7826 # Check whether --with-bugurl was given.
7827 if test "${with_bugurl+set}" = set; then :
7828 withval=$with_bugurl; case "$withval" in
7829 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7830 no) BUGURL=
7831 ;;
7832 *) BUGURL="$withval"
7833 ;;
7834 esac
7835 else
7836 BUGURL="https://gcc.gnu.org/bugs/"
7837
7838 fi
7839
7840 case ${BUGURL} in
7841 "")
7842 REPORT_BUGS_TO=
7843 REPORT_BUGS_TEXI=
7844 ;;
7845 *)
7846 REPORT_BUGS_TO="<$BUGURL>"
7847 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7848 ;;
7849 esac;
7850
7851
7852
7853
7854 # Allow overriding the default URL for documentation
7855
7856 # Check whether --with-documentation-root-url was given.
7857 if test "${with_documentation_root_url+set}" = set; then :
7858 withval=$with_documentation_root_url; case "$withval" in
7859 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7860 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7861 */) DOCUMENTATION_ROOT_URL="$withval" ;;
7862 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
7863 esac
7864 else
7865 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
7866
7867 fi
7868
7869
7870 cat >>confdefs.h <<_ACEOF
7871 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
7872 _ACEOF
7873
7874
7875 # Allow overriding the default URL for GCC changes
7876
7877 # Check whether --with-changes-root-url was given.
7878 if test "${with_changes_root_url+set}" = set; then :
7879 withval=$with_changes_root_url; case "$withval" in
7880 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7881 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7882 */) CHANGES_ROOT_URL="$withval" ;;
7883 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
7884 esac
7885 else
7886 CHANGES_ROOT_URL="https://gcc.gnu.org/"
7887
7888 fi
7889
7890
7891 cat >>confdefs.h <<_ACEOF
7892 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
7893 _ACEOF
7894
7895
7896 # Sanity check enable_languages in case someone does not run the toplevel
7897 # configure # script.
7898 # Check whether --enable-languages was given.
7899 if test "${enable_languages+set}" = set; then :
7900 enableval=$enable_languages; case ,${enable_languages}, in
7901 ,,|,yes,)
7902 # go safe -- we cannot be much sure without the toplevel
7903 # configure's
7904 # analysis of which target libs are present and usable
7905 enable_languages=c
7906 ;;
7907 *,all,*)
7908 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7909 ;;
7910 *,c,*)
7911 ;;
7912 *)
7913 enable_languages=c,${enable_languages}
7914 ;;
7915 esac
7916 else
7917 enable_languages=c
7918 fi
7919
7920
7921 # If top-level libada has been disabled, then wire in install-gnatlib
7922 # invocation with `make install', so that one can build and install
7923 # the library manually with `make -C gcc all gnatlib gnattools install'.
7924 if test x"$enable_libada" = xno; then
7925 gnat_install_lib=gnat-install-lib
7926 else
7927 gnat_install_lib=
7928 fi
7929
7930
7931 if test x"$enable_as_accelerator_for" != x; then
7932
7933 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7934
7935 enable_as_accelerator=yes
7936 case "${target}" in
7937 *-intelmicemul-*)
7938 # In this case we expect offload compiler to be built as native, so we
7939 # need to rename the driver to avoid clashes with host's drivers.
7940 program_transform_name="s&^&${target}-&" ;;
7941 esac
7942 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7943 program_transform_name=`echo $program_transform_name | sed $sedscript`
7944 accel_dir_suffix=/accel/${target_noncanonical}
7945 real_target_noncanonical=${enable_as_accelerator_for}
7946 fi
7947
7948
7949
7950
7951 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7952 tgt=`echo $tgt | sed 's/=.*//'`
7953
7954 enable_offloading=1
7955 case "$tgt" in
7956 *-intelmic-* | *-intelmicemul-*)
7957 omp_device_property=omp-device-properties-i386
7958 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7959 ;;
7960 amdgcn*)
7961 omp_device_property=omp-device-properties-gcn
7962 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7963 ;;
7964 nvptx*)
7965 omp_device_property=omp-device-properties-nvptx
7966 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7967 ;;
7968 *)
7969 as_fn_error $? "unknown offload target specified" "$LINENO" 5
7970 ;;
7971 esac
7972 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
7973 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
7974
7975 if test x"$offload_targets" = x; then
7976 offload_targets=$tgt
7977 else
7978 offload_targets="$offload_targets,$tgt"
7979 fi
7980 done
7981
7982
7983
7984
7985 cat >>confdefs.h <<_ACEOF
7986 #define OFFLOAD_TARGETS "$offload_targets"
7987 _ACEOF
7988
7989 if test x"$enable_offloading" != x; then
7990
7991 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7992
7993 else
7994
7995 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7996
7997 fi
7998
7999
8000 # Check whether --with-multilib-list was given.
8001 if test "${with_multilib_list+set}" = set; then :
8002 withval=$with_multilib_list; :
8003 else
8004 with_multilib_list=default
8005 fi
8006
8007
8008
8009 # Check whether --with-multilib-generator was given.
8010 if test "${with_multilib_generator+set}" = set; then :
8011 withval=$with_multilib_generator; :
8012 else
8013 with_multilib_generator=default
8014 fi
8015
8016
8017 # -------------------------
8018 # Checks for other programs
8019 # -------------------------
8020
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8022 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8023 set x ${MAKE-make}
8024 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8025 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 cat >conftest.make <<\_ACEOF
8029 SHELL = /bin/sh
8030 all:
8031 @echo '@@@%%%=$(MAKE)=@@@%%%'
8032 _ACEOF
8033 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8034 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8035 *@@@%%%=?*=@@@%%%*)
8036 eval ac_cv_prog_make_${ac_make}_set=yes;;
8037 *)
8038 eval ac_cv_prog_make_${ac_make}_set=no;;
8039 esac
8040 rm -f conftest.make
8041 fi
8042 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8044 $as_echo "yes" >&6; }
8045 SET_MAKE=
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8049 SET_MAKE="MAKE=${MAKE-make}"
8050 fi
8051
8052
8053 # Find some useful tools
8054 for ac_prog in gawk mawk nawk awk
8055 do
8056 # Extract the first word of "$ac_prog", so it can be a program name with args.
8057 set dummy $ac_prog; ac_word=$2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 $as_echo_n "checking for $ac_word... " >&6; }
8060 if ${ac_cv_prog_AWK+:} false; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 if test -n "$AWK"; then
8064 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8065 else
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8068 do
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073 ac_cv_prog_AWK="$ac_prog"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 break 2
8076 fi
8077 done
8078 done
8079 IFS=$as_save_IFS
8080
8081 fi
8082 fi
8083 AWK=$ac_cv_prog_AWK
8084 if test -n "$AWK"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8086 $as_echo "$AWK" >&6; }
8087 else
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8090 fi
8091
8092
8093 test -n "$AWK" && break
8094 done
8095
8096 # We need awk to create options.c and options.h.
8097 # Bail out if it's missing.
8098 case ${AWK} in
8099 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8100 esac
8101
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8103 $as_echo_n "checking whether ln -s works... " >&6; }
8104 if ${gcc_cv_prog_LN_S+:} false; then :
8105 $as_echo_n "(cached) " >&6
8106 else
8107 rm -f conftestdata_t
8108 echo >conftestdata_f
8109 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8110 then
8111 gcc_cv_prog_LN_S="ln -s"
8112 else
8113 if ln conftestdata_f conftestdata_t 2>/dev/null
8114 then
8115 gcc_cv_prog_LN_S=ln
8116 else
8117 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8118 then
8119 gcc_cv_prog_LN_S="cp -p"
8120 else
8121 gcc_cv_prog_LN_S=cp
8122 fi
8123 fi
8124 fi
8125 rm -f conftestdata_f conftestdata_t
8126
8127 fi
8128 LN_S="$gcc_cv_prog_LN_S"
8129 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8131 $as_echo "yes" >&6; }
8132 else
8133 if test "$gcc_cv_prog_LN_S" = "ln"; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8135 $as_echo "no, using ln" >&6; }
8136 else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8138 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8139 fi
8140 fi
8141
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8143 $as_echo_n "checking whether ln works... " >&6; }
8144 if ${acx_cv_prog_LN+:} false; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 rm -f conftestdata_t
8148 echo >conftestdata_f
8149 if ln conftestdata_f conftestdata_t 2>/dev/null
8150 then
8151 acx_cv_prog_LN=ln
8152 else
8153 acx_cv_prog_LN=no
8154 fi
8155 rm -f conftestdata_f conftestdata_t
8156
8157 fi
8158 if test $acx_cv_prog_LN = no; then
8159 LN="$LN_S"
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8161 $as_echo "no, using $LN" >&6; }
8162 else
8163 LN="$acx_cv_prog_LN"
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8165 $as_echo "yes" >&6; }
8166 fi
8167
8168 if test -n "$ac_tool_prefix"; then
8169 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8170 set dummy ${ac_tool_prefix}ranlib; 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 ${ac_cv_prog_RANLIB+:} false; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 if test -n "$RANLIB"; then
8177 ac_cv_prog_RANLIB="$RANLIB" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8186 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
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 fi
8195 fi
8196 RANLIB=$ac_cv_prog_RANLIB
8197 if test -n "$RANLIB"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8199 $as_echo "$RANLIB" >&6; }
8200 else
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8203 fi
8204
8205
8206 fi
8207 if test -z "$ac_cv_prog_RANLIB"; then
8208 ac_ct_RANLIB=$RANLIB
8209 # Extract the first word of "ranlib", so it can be a program name with args.
8210 set dummy ranlib; ac_word=$2
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8212 $as_echo_n "checking for $ac_word... " >&6; }
8213 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 if test -n "$ac_ct_RANLIB"; then
8217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8218 else
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 for as_dir in $PATH
8221 do
8222 IFS=$as_save_IFS
8223 test -z "$as_dir" && as_dir=.
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8226 ac_cv_prog_ac_ct_RANLIB="ranlib"
8227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 break 2
8229 fi
8230 done
8231 done
8232 IFS=$as_save_IFS
8233
8234 fi
8235 fi
8236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8237 if test -n "$ac_ct_RANLIB"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8239 $as_echo "$ac_ct_RANLIB" >&6; }
8240 else
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8243 fi
8244
8245 if test "x$ac_ct_RANLIB" = x; then
8246 RANLIB=":"
8247 else
8248 case $cross_compiling:$ac_tool_warned in
8249 yes:)
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8252 ac_tool_warned=yes ;;
8253 esac
8254 RANLIB=$ac_ct_RANLIB
8255 fi
8256 else
8257 RANLIB="$ac_cv_prog_RANLIB"
8258 fi
8259
8260 ranlib_flags=""
8261
8262
8263 # Find a good install program. We prefer a C program (faster),
8264 # so one script is as good as another. But avoid the broken or
8265 # incompatible versions:
8266 # SysV /etc/install, /usr/sbin/install
8267 # SunOS /usr/etc/install
8268 # IRIX /sbin/install
8269 # AIX /bin/install
8270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8272 # ./install, which can be erroneously created by make from ./install.sh.
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8274 $as_echo_n "checking for a BSD compatible install... " >&6; }
8275 if test -z "$INSTALL"; then
8276 if ${ac_cv_path_install+:} false; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8280 for ac_dir in $PATH; do
8281 # Account for people who put trailing slashes in PATH elements.
8282 case "$ac_dir/" in
8283 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8284 *)
8285 # OSF1 and SCO ODT 3.0 have their own names for install.
8286 for ac_prog in ginstall scoinst install; do
8287 if test -f $ac_dir/$ac_prog; then
8288 if test $ac_prog = install &&
8289 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8290 # AIX install. It has an incompatible calling convention.
8291 # OSF/1 installbsd also uses dspmsg, but is usable.
8292 :
8293 else
8294 ac_cv_path_install="$ac_dir/$ac_prog -c"
8295 break 2
8296 fi
8297 fi
8298 done
8299 ;;
8300 esac
8301 done
8302 IFS="$ac_save_IFS"
8303
8304 fi
8305 if test "${ac_cv_path_install+set}" = set; then
8306 INSTALL="$ac_cv_path_install"
8307 else
8308 # As a last resort, use the slow shell script. We don't cache a
8309 # path for INSTALL within a source directory, because that will
8310 # break other packages using the cache if that directory is
8311 # removed, or if the path is relative.
8312 INSTALL="$ac_install_sh"
8313 fi
8314 fi
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8316 $as_echo "$INSTALL" >&6; }
8317
8318 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8319 # It thinks the first close brace ends the variable substitution.
8320 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8321
8322 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8323
8324
8325 # See if cmp has --ignore-initial.
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8327 $as_echo_n "checking for cmp's capabilities... " >&6; }
8328 if ${gcc_cv_prog_cmp_skip+:} false; then :
8329 $as_echo_n "(cached) " >&6
8330 else
8331 echo abfoo >t1
8332 echo cdfoo >t2
8333 gcc_cv_prog_cmp_skip=slowcompare
8334 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8335 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8336 :
8337 else
8338 gcc_cv_prog_cmp_skip=gnucompare
8339 fi
8340 fi
8341 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8342 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8343 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8344 :
8345 else
8346 gcc_cv_prog_cmp_skip=fastcompare
8347 fi
8348 fi
8349 fi
8350 rm t1 t2
8351
8352 fi
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8354 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8355 make_compare_target=$gcc_cv_prog_cmp_skip
8356
8357
8358
8359 # See if we have the mktemp command.
8360 # Extract the first word of "mktemp", so it can be a program name with args.
8361 set dummy mktemp; ac_word=$2
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 $as_echo_n "checking for $ac_word... " >&6; }
8364 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8365 $as_echo_n "(cached) " >&6
8366 else
8367 if test -n "$have_mktemp_command"; then
8368 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8369 else
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8372 do
8373 IFS=$as_save_IFS
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8377 ac_cv_prog_have_mktemp_command="yes"
8378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 break 2
8380 fi
8381 done
8382 done
8383 IFS=$as_save_IFS
8384
8385 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8386 fi
8387 fi
8388 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8389 if test -n "$have_mktemp_command"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8391 $as_echo "$have_mktemp_command" >&6; }
8392 else
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8395 fi
8396
8397
8398
8399 # See if makeinfo has been installed and is modern enough
8400 # that we can use it.
8401
8402 # Extract the first word of "makeinfo", so it can be a program name with args.
8403 set dummy makeinfo; ac_word=$2
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405 $as_echo_n "checking for $ac_word... " >&6; }
8406 if ${ac_cv_prog_MAKEINFO+:} false; then :
8407 $as_echo_n "(cached) " >&6
8408 else
8409 if test -n "$MAKEINFO"; then
8410 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8411 else
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 for as_dir in $PATH
8414 do
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8419 ac_cv_prog_MAKEINFO="makeinfo"
8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 break 2
8422 fi
8423 done
8424 done
8425 IFS=$as_save_IFS
8426
8427 fi
8428 fi
8429 MAKEINFO=$ac_cv_prog_MAKEINFO
8430 if test -n "$MAKEINFO"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8432 $as_echo "$MAKEINFO" >&6; }
8433 else
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8436 fi
8437
8438
8439 if test -n "$MAKEINFO"; then
8440 # Found it, now check the version.
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8442 $as_echo_n "checking for modern makeinfo... " >&6; }
8443 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8447 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8448
8449 case $ac_prog_version in
8450 '') gcc_cv_prog_makeinfo_modern=no;;
8451 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8452 *) gcc_cv_prog_makeinfo_modern=no;;
8453 esac
8454
8455 fi
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8457 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8458 else
8459 gcc_cv_prog_makeinfo_modern=no
8460 fi
8461 if test $gcc_cv_prog_makeinfo_modern = no; then
8462 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8463 fi
8464
8465 if test $gcc_cv_prog_makeinfo_modern = no; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8467 *** Makeinfo is missing or too old.
8468 *** Info documentation will not be built." >&5
8469 $as_echo "$as_me: WARNING:
8470 *** Makeinfo is missing or too old.
8471 *** Info documentation will not be built." >&2;}
8472 BUILD_INFO=
8473 else
8474 BUILD_INFO=info
8475 fi
8476
8477
8478 # Is pod2man recent enough to regenerate manpages?
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8480 $as_echo_n "checking for recent Pod::Man... " >&6; }
8481 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8483 $as_echo "yes" >&6; }
8484 GENERATED_MANPAGES=generated-manpages
8485 else
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8488 GENERATED_MANPAGES=
8489 fi
8490
8491
8492 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8493
8494 # How about lex?
8495 for ac_prog in flex
8496 do
8497 # Extract the first word of "$ac_prog", so it can be a program name with args.
8498 set dummy $ac_prog; ac_word=$2
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if ${ac_cv_prog_FLEX+:} false; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 if test -n "$FLEX"; then
8505 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8506 else
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 for as_dir in $PATH
8509 do
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8514 ac_cv_prog_FLEX="$ac_prog"
8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 break 2
8517 fi
8518 done
8519 done
8520 IFS=$as_save_IFS
8521
8522 fi
8523 fi
8524 FLEX=$ac_cv_prog_FLEX
8525 if test -n "$FLEX"; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8527 $as_echo "$FLEX" >&6; }
8528 else
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8531 fi
8532
8533
8534 test -n "$FLEX" && break
8535 done
8536 test -n "$FLEX" || FLEX="$MISSING flex"
8537
8538
8539 # Bison?
8540 for ac_prog in bison
8541 do
8542 # Extract the first word of "$ac_prog", so it can be a program name with args.
8543 set dummy $ac_prog; ac_word=$2
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8545 $as_echo_n "checking for $ac_word... " >&6; }
8546 if ${ac_cv_prog_BISON+:} false; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 if test -n "$BISON"; then
8550 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8551 else
8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553 for as_dir in $PATH
8554 do
8555 IFS=$as_save_IFS
8556 test -z "$as_dir" && as_dir=.
8557 for ac_exec_ext in '' $ac_executable_extensions; do
8558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8559 ac_cv_prog_BISON="$ac_prog"
8560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8561 break 2
8562 fi
8563 done
8564 done
8565 IFS=$as_save_IFS
8566
8567 fi
8568 fi
8569 BISON=$ac_cv_prog_BISON
8570 if test -n "$BISON"; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8572 $as_echo "$BISON" >&6; }
8573 else
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8576 fi
8577
8578
8579 test -n "$BISON" && break
8580 done
8581 test -n "$BISON" || BISON="$MISSING bison"
8582
8583
8584 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8585 # check for build == host before using them.
8586
8587 # NM
8588 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8589 && test -d ../binutils ; then
8590 NM='${objdir}/../binutils/nm-new'
8591 else
8592 # Extract the first word of "nm", so it can be a program name with args.
8593 set dummy nm; ac_word=$2
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 $as_echo_n "checking for $ac_word... " >&6; }
8596 if ${ac_cv_prog_NM+:} false; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 if test -n "$NM"; then
8600 ac_cv_prog_NM="$NM" # Let the user override the test.
8601 else
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 for as_dir in $PATH
8604 do
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8609 ac_cv_prog_NM="nm"
8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 break 2
8612 fi
8613 done
8614 done
8615 IFS=$as_save_IFS
8616
8617 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8618 fi
8619 fi
8620 NM=$ac_cv_prog_NM
8621 if test -n "$NM"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8623 $as_echo "$NM" >&6; }
8624 else
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8627 fi
8628
8629
8630 fi
8631
8632 # AR
8633 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8634 && test -d ../binutils ; then
8635 AR='${objdir}/../binutils/ar'
8636 else
8637 # Extract the first word of "ar", so it can be a program name with args.
8638 set dummy ar; ac_word=$2
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if ${ac_cv_prog_AR+:} false; then :
8642 $as_echo_n "(cached) " >&6
8643 else
8644 if test -n "$AR"; then
8645 ac_cv_prog_AR="$AR" # Let the user override the test.
8646 else
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 for as_dir in $PATH
8649 do
8650 IFS=$as_save_IFS
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8654 ac_cv_prog_AR="ar"
8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8656 break 2
8657 fi
8658 done
8659 done
8660 IFS=$as_save_IFS
8661
8662 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8663 fi
8664 fi
8665 AR=$ac_cv_prog_AR
8666 if test -n "$AR"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8668 $as_echo "$AR" >&6; }
8669 else
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8672 fi
8673
8674
8675 fi
8676
8677 # The jit documentation looks better if built with sphinx, but can be
8678 # built with texinfo if sphinx is not available.
8679 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8680 # Extract the first word of "sphinx-build", so it can be a program name with args.
8681 set dummy sphinx-build; ac_word=$2
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8683 $as_echo_n "checking for $ac_word... " >&6; }
8684 if ${ac_cv_prog_doc_build_sys+:} false; then :
8685 $as_echo_n "(cached) " >&6
8686 else
8687 if test -n "$doc_build_sys"; then
8688 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8689 else
8690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691 for as_dir in $PATH
8692 do
8693 IFS=$as_save_IFS
8694 test -z "$as_dir" && as_dir=.
8695 for ac_exec_ext in '' $ac_executable_extensions; do
8696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8697 ac_cv_prog_doc_build_sys="sphinx"
8698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8699 break 2
8700 fi
8701 done
8702 done
8703 IFS=$as_save_IFS
8704
8705 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8706 fi
8707 fi
8708 doc_build_sys=$ac_cv_prog_doc_build_sys
8709 if test -n "$doc_build_sys"; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8711 $as_echo "$doc_build_sys" >&6; }
8712 else
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714 $as_echo "no" >&6; }
8715 fi
8716
8717
8718
8719 # --------------------
8720 # Checks for C headers
8721 # --------------------
8722
8723 # Need to reject headers which give warnings, so that the -Werror bootstrap
8724 # works later. *sigh* This needs to come before all header checks.
8725
8726 ac_c_preproc_warn_flag=yes
8727
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8729 $as_echo_n "checking for ANSI C header files... " >&6; }
8730 if ${ac_cv_header_stdc+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 #include <stdlib.h>
8736 #include <stdarg.h>
8737 #include <string.h>
8738 #include <float.h>
8739
8740 int
8741 main ()
8742 {
8743
8744 ;
8745 return 0;
8746 }
8747 _ACEOF
8748 if ac_fn_cxx_try_compile "$LINENO"; then :
8749 ac_cv_header_stdc=yes
8750 else
8751 ac_cv_header_stdc=no
8752 fi
8753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754
8755 if test $ac_cv_header_stdc = yes; then
8756 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8759 #include <string.h>
8760
8761 _ACEOF
8762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8763 $EGREP "memchr" >/dev/null 2>&1; then :
8764
8765 else
8766 ac_cv_header_stdc=no
8767 fi
8768 rm -f conftest*
8769
8770 fi
8771
8772 if test $ac_cv_header_stdc = yes; then
8773 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8776 #include <stdlib.h>
8777
8778 _ACEOF
8779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8780 $EGREP "free" >/dev/null 2>&1; then :
8781
8782 else
8783 ac_cv_header_stdc=no
8784 fi
8785 rm -f conftest*
8786
8787 fi
8788
8789 if test $ac_cv_header_stdc = yes; then
8790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8791 if test "$cross_compiling" = yes; then :
8792 :
8793 else
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8796 #include <ctype.h>
8797 #include <stdlib.h>
8798 #if ((' ' & 0x0FF) == 0x020)
8799 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8800 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8801 #else
8802 # define ISLOWER(c) \
8803 (('a' <= (c) && (c) <= 'i') \
8804 || ('j' <= (c) && (c) <= 'r') \
8805 || ('s' <= (c) && (c) <= 'z'))
8806 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8807 #endif
8808
8809 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8810 int
8811 main ()
8812 {
8813 int i;
8814 for (i = 0; i < 256; i++)
8815 if (XOR (islower (i), ISLOWER (i))
8816 || toupper (i) != TOUPPER (i))
8817 return 2;
8818 return 0;
8819 }
8820 _ACEOF
8821 if ac_fn_cxx_try_run "$LINENO"; then :
8822
8823 else
8824 ac_cv_header_stdc=no
8825 fi
8826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8827 conftest.$ac_objext conftest.beam conftest.$ac_ext
8828 fi
8829
8830 fi
8831 fi
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8833 $as_echo "$ac_cv_header_stdc" >&6; }
8834 if test $ac_cv_header_stdc = yes; then
8835
8836 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8837
8838 fi
8839
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8841 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8842 if ${ac_cv_header_time+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847 #include <sys/types.h>
8848 #include <sys/time.h>
8849 #include <time.h>
8850
8851 int
8852 main ()
8853 {
8854 if ((struct tm *) 0)
8855 return 0;
8856 ;
8857 return 0;
8858 }
8859 _ACEOF
8860 if ac_fn_cxx_try_compile "$LINENO"; then :
8861 ac_cv_header_time=yes
8862 else
8863 ac_cv_header_time=no
8864 fi
8865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8866 fi
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8868 $as_echo "$ac_cv_header_time" >&6; }
8869 if test $ac_cv_header_time = yes; then
8870
8871 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8872
8873 fi
8874
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8876 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8877 if ${gcc_cv_header_string+:} false; then :
8878 $as_echo_n "(cached) " >&6
8879 else
8880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8882 #include <string.h>
8883 #include <strings.h>
8884 int
8885 main ()
8886 {
8887
8888 ;
8889 return 0;
8890 }
8891 _ACEOF
8892 if ac_fn_cxx_try_compile "$LINENO"; then :
8893 gcc_cv_header_string=yes
8894 else
8895 gcc_cv_header_string=no
8896 fi
8897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8898 fi
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8900 $as_echo "$gcc_cv_header_string" >&6; }
8901 if test $gcc_cv_header_string = yes; then
8902
8903 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8904
8905 fi
8906
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8908 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8909 if ${ac_cv_header_sys_wait_h+:} false; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 #include <sys/types.h>
8915 #include <sys/wait.h>
8916 #ifndef WEXITSTATUS
8917 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8918 #endif
8919 #ifndef WIFEXITED
8920 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8921 #endif
8922
8923 int
8924 main ()
8925 {
8926 int s;
8927 wait (&s);
8928 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8929 ;
8930 return 0;
8931 }
8932 _ACEOF
8933 if ac_fn_cxx_try_compile "$LINENO"; then :
8934 ac_cv_header_sys_wait_h=yes
8935 else
8936 ac_cv_header_sys_wait_h=no
8937 fi
8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939 fi
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8941 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8942 if test $ac_cv_header_sys_wait_h = yes; then
8943
8944 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8945
8946 fi
8947
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8949 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8950 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8951 $as_echo_n "(cached) " >&6
8952 else
8953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8955 #include <sys/types.h>
8956 #include <termios.h>
8957 #ifdef TIOCGWINSZ
8958 yes
8959 #endif
8960
8961 _ACEOF
8962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8963 $EGREP "yes" >/dev/null 2>&1; then :
8964 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8965 else
8966 ac_cv_sys_tiocgwinsz_in_termios_h=no
8967 fi
8968 rm -f conftest*
8969
8970 fi
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8972 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8973
8974 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8976 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8977 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8982 #include <sys/types.h>
8983 #include <sys/ioctl.h>
8984 #ifdef TIOCGWINSZ
8985 yes
8986 #endif
8987
8988 _ACEOF
8989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8990 $EGREP "yes" >/dev/null 2>&1; then :
8991 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8992 else
8993 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8994 fi
8995 rm -f conftest*
8996
8997 fi
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8999 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9000
9001 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9002
9003 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9004
9005 fi
9006 fi
9007
9008 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9009 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
9010 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9011 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9012 do :
9013 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9014 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9015 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9016 cat >>confdefs.h <<_ACEOF
9017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9018 _ACEOF
9019
9020 fi
9021 done
9022
9023
9024 # Check for thread headers.
9025 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9026 if test "x$ac_cv_header_thread_h" = xyes; then :
9027 have_thread_h=yes
9028 else
9029 have_thread_h=
9030 fi
9031
9032 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9033 if test "x$ac_cv_header_pthread_h" = xyes; then :
9034 have_pthread_h=yes
9035 else
9036 have_pthread_h=
9037 fi
9038
9039
9040 # These tests can't be done till we know if we have limits.h.
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9042 $as_echo_n "checking for CHAR_BIT... " >&6; }
9043 if ${gcc_cv_decl_char_bit+:} false; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9048 #ifdef HAVE_LIMITS_H
9049 #include <limits.h>
9050 #endif
9051 #ifdef CHAR_BIT
9052 found
9053 #endif
9054 _ACEOF
9055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9056 $EGREP "found" >/dev/null 2>&1; then :
9057 gcc_cv_decl_char_bit=yes
9058 else
9059 gcc_cv_decl_char_bit=no
9060 fi
9061 rm -f conftest*
9062
9063
9064 fi
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9066 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9067 if test $gcc_cv_decl_char_bit = no; then
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9069 $as_echo_n "checking number of bits in a byte... " >&6; }
9070 if ${gcc_cv_c_nbby+:} false; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 i=8
9074 gcc_cv_c_nbby=
9075 while test $i -lt 65; do
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078
9079 int
9080 main ()
9081 {
9082 switch(0) {
9083 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9084 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9085 ; }
9086 ;
9087 return 0;
9088 }
9089 _ACEOF
9090 if ac_fn_cxx_try_compile "$LINENO"; then :
9091 gcc_cv_c_nbby=$i; break
9092 fi
9093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9094 i=`expr $i + 1`
9095 done
9096 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9097
9098 fi
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9100 $as_echo "$gcc_cv_c_nbby" >&6; }
9101 if test $gcc_cv_c_nbby = failed; then
9102 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9103 else
9104
9105 cat >>confdefs.h <<_ACEOF
9106 #define CHAR_BIT $gcc_cv_c_nbby
9107 _ACEOF
9108
9109 fi
9110 fi
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9112 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9113 if ${ac_cv_c_bigendian+:} false; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 ac_cv_c_bigendian=unknown
9117 # See if we're dealing with a universal compiler.
9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9120 #ifndef __APPLE_CC__
9121 not a universal capable compiler
9122 #endif
9123 typedef int dummy;
9124
9125 _ACEOF
9126 if ac_fn_cxx_try_compile "$LINENO"; then :
9127
9128 # Check for potential -arch flags. It is not universal unless
9129 # there are at least two -arch flags with different values.
9130 ac_arch=
9131 ac_prev=
9132 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9133 if test -n "$ac_prev"; then
9134 case $ac_word in
9135 i?86 | x86_64 | ppc | ppc64)
9136 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9137 ac_arch=$ac_word
9138 else
9139 ac_cv_c_bigendian=universal
9140 break
9141 fi
9142 ;;
9143 esac
9144 ac_prev=
9145 elif test "x$ac_word" = "x-arch"; then
9146 ac_prev=arch
9147 fi
9148 done
9149 fi
9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9151 if test $ac_cv_c_bigendian = unknown; then
9152 # See if sys/param.h defines the BYTE_ORDER macro.
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 #include <sys/types.h>
9156 #include <sys/param.h>
9157
9158 int
9159 main ()
9160 {
9161 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9162 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9163 && LITTLE_ENDIAN)
9164 bogus endian macros
9165 #endif
9166
9167 ;
9168 return 0;
9169 }
9170 _ACEOF
9171 if ac_fn_cxx_try_compile "$LINENO"; then :
9172 # It does; now see whether it defined to BIG_ENDIAN or not.
9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9175 #include <sys/types.h>
9176 #include <sys/param.h>
9177
9178 int
9179 main ()
9180 {
9181 #if BYTE_ORDER != BIG_ENDIAN
9182 not big endian
9183 #endif
9184
9185 ;
9186 return 0;
9187 }
9188 _ACEOF
9189 if ac_fn_cxx_try_compile "$LINENO"; then :
9190 ac_cv_c_bigendian=yes
9191 else
9192 ac_cv_c_bigendian=no
9193 fi
9194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195 fi
9196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9197 fi
9198 if test $ac_cv_c_bigendian = unknown; then
9199 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9202 #include <limits.h>
9203
9204 int
9205 main ()
9206 {
9207 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9208 bogus endian macros
9209 #endif
9210
9211 ;
9212 return 0;
9213 }
9214 _ACEOF
9215 if ac_fn_cxx_try_compile "$LINENO"; then :
9216 # It does; now see whether it defined to _BIG_ENDIAN or not.
9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9219 #include <limits.h>
9220
9221 int
9222 main ()
9223 {
9224 #ifndef _BIG_ENDIAN
9225 not big endian
9226 #endif
9227
9228 ;
9229 return 0;
9230 }
9231 _ACEOF
9232 if ac_fn_cxx_try_compile "$LINENO"; then :
9233 ac_cv_c_bigendian=yes
9234 else
9235 ac_cv_c_bigendian=no
9236 fi
9237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238 fi
9239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240 fi
9241 if test $ac_cv_c_bigendian = unknown; then
9242 # Compile a test program.
9243 if test "$cross_compiling" = yes; then :
9244 # Try to guess by grepping values from an object file.
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9247 short int ascii_mm[] =
9248 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9249 short int ascii_ii[] =
9250 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9251 int use_ascii (int i) {
9252 return ascii_mm[i] + ascii_ii[i];
9253 }
9254 short int ebcdic_ii[] =
9255 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9256 short int ebcdic_mm[] =
9257 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9258 int use_ebcdic (int i) {
9259 return ebcdic_mm[i] + ebcdic_ii[i];
9260 }
9261 extern int foo;
9262
9263 int
9264 main ()
9265 {
9266 return use_ascii (foo) == use_ebcdic (foo);
9267 ;
9268 return 0;
9269 }
9270 _ACEOF
9271 if ac_fn_cxx_try_compile "$LINENO"; then :
9272 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9273 ac_cv_c_bigendian=yes
9274 fi
9275 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9276 if test "$ac_cv_c_bigendian" = unknown; then
9277 ac_cv_c_bigendian=no
9278 else
9279 # finding both strings is unlikely to happen, but who knows?
9280 ac_cv_c_bigendian=unknown
9281 fi
9282 fi
9283 fi
9284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 else
9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9288 $ac_includes_default
9289 int
9290 main ()
9291 {
9292
9293 /* Are we little or big endian? From Harbison&Steele. */
9294 union
9295 {
9296 long int l;
9297 char c[sizeof (long int)];
9298 } u;
9299 u.l = 1;
9300 return u.c[sizeof (long int) - 1] == 1;
9301
9302 ;
9303 return 0;
9304 }
9305 _ACEOF
9306 if ac_fn_cxx_try_run "$LINENO"; then :
9307 ac_cv_c_bigendian=no
9308 else
9309 ac_cv_c_bigendian=yes
9310 fi
9311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9312 conftest.$ac_objext conftest.beam conftest.$ac_ext
9313 fi
9314
9315 fi
9316 fi
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9318 $as_echo "$ac_cv_c_bigendian" >&6; }
9319 case $ac_cv_c_bigendian in #(
9320 yes)
9321 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9322 ;; #(
9323 no)
9324 ;; #(
9325 universal)
9326
9327 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9328
9329 ;; #(
9330 *)
9331 as_fn_error $? "unknown endianness
9332 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9333 esac
9334
9335
9336 # ----------------------
9337 # Checks for C++ headers
9338 # ----------------------
9339
9340 ac_ext=cpp
9341 ac_cpp='$CXXCPP $CPPFLAGS'
9342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9346 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9347 if test -z "$CXXCPP"; then
9348 if ${ac_cv_prog_CXXCPP+:} false; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 # Double quotes because CXXCPP needs to be expanded
9352 for CXXCPP in "$CXX -E" "/lib/cpp"
9353 do
9354 ac_preproc_ok=false
9355 for ac_cxx_preproc_warn_flag in '' yes
9356 do
9357 # Use a header file that comes with gcc, so configuring glibc
9358 # with a fresh cross-compiler works.
9359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9360 # <limits.h> exists even on freestanding compilers.
9361 # On the NeXT, cc -E runs the code through the compiler's parser,
9362 # not just through cpp. "Syntax error" is here to catch this case.
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9365 #ifdef __STDC__
9366 # include <limits.h>
9367 #else
9368 # include <assert.h>
9369 #endif
9370 Syntax error
9371 _ACEOF
9372 if ac_fn_cxx_try_cpp "$LINENO"; then :
9373
9374 else
9375 # Broken: fails on valid input.
9376 continue
9377 fi
9378 rm -f conftest.err conftest.i conftest.$ac_ext
9379
9380 # OK, works on sane cases. Now check whether nonexistent headers
9381 # can be detected and how.
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9384 #include <ac_nonexistent.h>
9385 _ACEOF
9386 if ac_fn_cxx_try_cpp "$LINENO"; then :
9387 # Broken: success on invalid input.
9388 continue
9389 else
9390 # Passes both tests.
9391 ac_preproc_ok=:
9392 break
9393 fi
9394 rm -f conftest.err conftest.i conftest.$ac_ext
9395
9396 done
9397 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9398 rm -f conftest.i conftest.err conftest.$ac_ext
9399 if $ac_preproc_ok; then :
9400 break
9401 fi
9402
9403 done
9404 ac_cv_prog_CXXCPP=$CXXCPP
9405
9406 fi
9407 CXXCPP=$ac_cv_prog_CXXCPP
9408 else
9409 ac_cv_prog_CXXCPP=$CXXCPP
9410 fi
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9412 $as_echo "$CXXCPP" >&6; }
9413 ac_preproc_ok=false
9414 for ac_cxx_preproc_warn_flag in '' yes
9415 do
9416 # Use a header file that comes with gcc, so configuring glibc
9417 # with a fresh cross-compiler works.
9418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9419 # <limits.h> exists even on freestanding compilers.
9420 # On the NeXT, cc -E runs the code through the compiler's parser,
9421 # not just through cpp. "Syntax error" is here to catch this case.
9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h. */
9424 #ifdef __STDC__
9425 # include <limits.h>
9426 #else
9427 # include <assert.h>
9428 #endif
9429 Syntax error
9430 _ACEOF
9431 if ac_fn_cxx_try_cpp "$LINENO"; then :
9432
9433 else
9434 # Broken: fails on valid input.
9435 continue
9436 fi
9437 rm -f conftest.err conftest.i conftest.$ac_ext
9438
9439 # OK, works on sane cases. Now check whether nonexistent headers
9440 # can be detected and how.
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9443 #include <ac_nonexistent.h>
9444 _ACEOF
9445 if ac_fn_cxx_try_cpp "$LINENO"; then :
9446 # Broken: success on invalid input.
9447 continue
9448 else
9449 # Passes both tests.
9450 ac_preproc_ok=:
9451 break
9452 fi
9453 rm -f conftest.err conftest.i conftest.$ac_ext
9454
9455 done
9456 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9457 rm -f conftest.i conftest.err conftest.$ac_ext
9458 if $ac_preproc_ok; then :
9459
9460 else
9461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9464 See \`config.log' for more details" >&5
9465 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9466 See \`config.log' for more details" >&2;}; }
9467 fi
9468
9469 ac_ext=cpp
9470 ac_cpp='$CXXCPP $CPPFLAGS'
9471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9474
9475
9476 for ac_header in unordered_map
9477 do :
9478 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9479 if test "x$ac_cv_header_unordered_map" = xyes; then :
9480 cat >>confdefs.h <<_ACEOF
9481 #define HAVE_UNORDERED_MAP 1
9482 _ACEOF
9483
9484 fi
9485 done
9486
9487 for ac_header in tr1/unordered_map
9488 do :
9489 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9490 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9491 cat >>confdefs.h <<_ACEOF
9492 #define HAVE_TR1_UNORDERED_MAP 1
9493 _ACEOF
9494
9495 fi
9496 done
9497
9498 for ac_header in ext/hash_map
9499 do :
9500 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9501 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9502 cat >>confdefs.h <<_ACEOF
9503 #define HAVE_EXT_HASH_MAP 1
9504 _ACEOF
9505
9506 fi
9507 done
9508
9509
9510 # --------
9511 # Dependency checking.
9512 # --------
9513
9514 rm -rf .tst 2>/dev/null
9515 mkdir .tst 2>/dev/null
9516 if test -d .tst; then
9517 am__leading_dot=.
9518 else
9519 am__leading_dot=_
9520 fi
9521 rmdir .tst 2>/dev/null
9522
9523 DEPDIR="${am__leading_dot}deps"
9524
9525 ac_config_commands="$ac_config_commands depdir"
9526
9527
9528 ac_config_commands="$ac_config_commands gccdepdir"
9529
9530
9531 depcc="$CXX" am_compiler_list=
9532
9533 am_depcomp=$ac_aux_dir/depcomp
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9535 $as_echo_n "checking dependency style of $depcc... " >&6; }
9536 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 if test -f "$am_depcomp"; then
9540 # We make a subdir and do the tests there. Otherwise we can end up
9541 # making bogus files that we don't know about and never remove. For
9542 # instance it was reported that on HP-UX the gcc test will end up
9543 # making a dummy file named `D' -- because `-MD' means `put the output
9544 # in D'.
9545 mkdir conftest.dir
9546 # Copy depcomp to subdir because otherwise we won't find it if we're
9547 # using a relative directory.
9548 cp "$am_depcomp" conftest.dir
9549 cd conftest.dir
9550 # We will build objects and dependencies in a subdirectory because
9551 # it helps to detect inapplicable dependency modes. For instance
9552 # both Tru64's cc and ICC support -MD to output dependencies as a
9553 # side effect of compilation, but ICC will put the dependencies in
9554 # the current directory while Tru64 will put them in the object
9555 # directory.
9556 mkdir sub
9557
9558 am_cv_CXX_dependencies_compiler_type=none
9559 if test "$am_compiler_list" = ""; then
9560 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9561 fi
9562 for depmode in $am_compiler_list; do
9563 if test $depmode = none; then break; fi
9564
9565 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9566 # Setup a source with many dependencies, because some compilers
9567 # like to wrap large dependency lists on column 80 (with \), and
9568 # we should not choose a depcomp mode which is confused by this.
9569 #
9570 # We need to recreate these files for each test, as the compiler may
9571 # overwrite some of them when testing with obscure command lines.
9572 # This happens at least with the AIX C compiler.
9573 : > sub/conftest.c
9574 for i in 1 2 3 4 5 6; do
9575 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9576 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9577 # Solaris 8's {/usr,}/bin/sh.
9578 touch sub/conftst$i.h
9579 done
9580 echo "include sub/conftest.Po" > confmf
9581
9582 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9583 # mode. It turns out that the SunPro C++ compiler does not properly
9584 # handle `-M -o', and we need to detect this.
9585 depcmd="depmode=$depmode \
9586 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9587 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9588 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9589 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9590 if env $depcmd > conftest.err 2>&1 &&
9591 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9592 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9593 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9594 # icc doesn't choke on unknown options, it will just issue warnings
9595 # or remarks (even with -Werror). So we grep stderr for any message
9596 # that says an option was ignored or not supported.
9597 # When given -MP, icc 7.0 and 7.1 complain thusly:
9598 # icc: Command line warning: ignoring option '-M'; no argument required
9599 # The diagnosis changed in icc 8.0:
9600 # icc: Command line remark: option '-MP' not supported
9601 if (grep 'ignoring option' conftest.err ||
9602 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9603 am_cv_CXX_dependencies_compiler_type=$depmode
9604 $as_echo "$as_me:$LINENO: success" >&5
9605 break
9606 fi
9607 fi
9608 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9609 sed -e 's/^/| /' < conftest.err >&5
9610 done
9611
9612 cd ..
9613 rm -rf conftest.dir
9614 else
9615 am_cv_CXX_dependencies_compiler_type=none
9616 fi
9617
9618 fi
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9620 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9621 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9622 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9623 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9624
9625 fi
9626
9627
9628 # --------
9629 # UNSORTED
9630 # --------
9631
9632
9633 # These libraries may be used by collect2.
9634 # We may need a special search path to get them linked.
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9636 $as_echo_n "checking for collect2 libraries... " >&6; }
9637 if ${gcc_cv_collect2_libs+:} false; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 save_LIBS="$LIBS"
9641 for libs in '' -lld -lmld \
9642 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9643 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9644 do
9645 LIBS="$libs"
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9648
9649 /* Override any GCC internal prototype to avoid an error.
9650 Use char because int might match the return type of a GCC
9651 builtin and then its argument prototype would still apply. */
9652 #ifdef __cplusplus
9653 extern "C"
9654 #endif
9655 char ldopen ();
9656 int
9657 main ()
9658 {
9659 return ldopen ();
9660 ;
9661 return 0;
9662 }
9663 _ACEOF
9664 if ac_fn_cxx_try_link "$LINENO"; then :
9665 gcc_cv_collect2_libs="$libs"; break
9666 fi
9667 rm -f core conftest.err conftest.$ac_objext \
9668 conftest$ac_exeext conftest.$ac_ext
9669 done
9670 LIBS="$save_LIBS"
9671 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9672 fi
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9674 $as_echo "$gcc_cv_collect2_libs" >&6; }
9675 case $gcc_cv_collect2_libs in
9676 "none required") ;;
9677 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9678 esac
9679
9680
9681 # When building Ada code on Alpha, we need exc_resume which is usually in
9682 # -lexc. So test for it.
9683 save_LIBS="$LIBS"
9684 LIBS=
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9686 $as_echo_n "checking for library containing exc_resume... " >&6; }
9687 if ${ac_cv_search_exc_resume+:} false; then :
9688 $as_echo_n "(cached) " >&6
9689 else
9690 ac_func_search_save_LIBS=$LIBS
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9693
9694 /* Override any GCC internal prototype to avoid an error.
9695 Use char because int might match the return type of a GCC
9696 builtin and then its argument prototype would still apply. */
9697 #ifdef __cplusplus
9698 extern "C"
9699 #endif
9700 char exc_resume ();
9701 int
9702 main ()
9703 {
9704 return exc_resume ();
9705 ;
9706 return 0;
9707 }
9708 _ACEOF
9709 for ac_lib in '' exc; do
9710 if test -z "$ac_lib"; then
9711 ac_res="none required"
9712 else
9713 ac_res=-l$ac_lib
9714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9715 fi
9716 if ac_fn_cxx_try_link "$LINENO"; then :
9717 ac_cv_search_exc_resume=$ac_res
9718 fi
9719 rm -f core conftest.err conftest.$ac_objext \
9720 conftest$ac_exeext
9721 if ${ac_cv_search_exc_resume+:} false; then :
9722 break
9723 fi
9724 done
9725 if ${ac_cv_search_exc_resume+:} false; then :
9726
9727 else
9728 ac_cv_search_exc_resume=no
9729 fi
9730 rm conftest.$ac_ext
9731 LIBS=$ac_func_search_save_LIBS
9732 fi
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9734 $as_echo "$ac_cv_search_exc_resume" >&6; }
9735 ac_res=$ac_cv_search_exc_resume
9736 if test "$ac_res" != no; then :
9737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9738
9739 fi
9740
9741 GNAT_LIBEXC="$LIBS"
9742 LIBS="$save_LIBS"
9743
9744
9745 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9746 save_LIBS="$LIBS"
9747 LIBS=
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9749 $as_echo_n "checking for library containing kstat_open... " >&6; }
9750 if ${ac_cv_search_kstat_open+:} false; then :
9751 $as_echo_n "(cached) " >&6
9752 else
9753 ac_func_search_save_LIBS=$LIBS
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9756
9757 /* Override any GCC internal prototype to avoid an error.
9758 Use char because int might match the return type of a GCC
9759 builtin and then its argument prototype would still apply. */
9760 #ifdef __cplusplus
9761 extern "C"
9762 #endif
9763 char kstat_open ();
9764 int
9765 main ()
9766 {
9767 return kstat_open ();
9768 ;
9769 return 0;
9770 }
9771 _ACEOF
9772 for ac_lib in '' kstat; do
9773 if test -z "$ac_lib"; then
9774 ac_res="none required"
9775 else
9776 ac_res=-l$ac_lib
9777 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9778 fi
9779 if ac_fn_cxx_try_link "$LINENO"; then :
9780 ac_cv_search_kstat_open=$ac_res
9781 fi
9782 rm -f core conftest.err conftest.$ac_objext \
9783 conftest$ac_exeext
9784 if ${ac_cv_search_kstat_open+:} false; then :
9785 break
9786 fi
9787 done
9788 if ${ac_cv_search_kstat_open+:} false; then :
9789
9790 else
9791 ac_cv_search_kstat_open=no
9792 fi
9793 rm conftest.$ac_ext
9794 LIBS=$ac_func_search_save_LIBS
9795 fi
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9797 $as_echo "$ac_cv_search_kstat_open" >&6; }
9798 ac_res=$ac_cv_search_kstat_open
9799 if test "$ac_res" != no; then :
9800 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9801
9802 fi
9803
9804 EXTRA_GCC_LIBS="$LIBS"
9805 LIBS="$save_LIBS"
9806
9807
9808 # Some systems put ldexp and frexp in libm instead of libc; assume
9809 # they're both in the same place. jcf-dump needs them.
9810 save_LIBS="$LIBS"
9811 LIBS=
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9813 $as_echo_n "checking for library containing ldexp... " >&6; }
9814 if ${ac_cv_search_ldexp+:} false; then :
9815 $as_echo_n "(cached) " >&6
9816 else
9817 ac_func_search_save_LIBS=$LIBS
9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9820
9821 /* Override any GCC internal prototype to avoid an error.
9822 Use char because int might match the return type of a GCC
9823 builtin and then its argument prototype would still apply. */
9824 #ifdef __cplusplus
9825 extern "C"
9826 #endif
9827 char ldexp ();
9828 int
9829 main ()
9830 {
9831 return ldexp ();
9832 ;
9833 return 0;
9834 }
9835 _ACEOF
9836 for ac_lib in '' m; do
9837 if test -z "$ac_lib"; then
9838 ac_res="none required"
9839 else
9840 ac_res=-l$ac_lib
9841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9842 fi
9843 if ac_fn_cxx_try_link "$LINENO"; then :
9844 ac_cv_search_ldexp=$ac_res
9845 fi
9846 rm -f core conftest.err conftest.$ac_objext \
9847 conftest$ac_exeext
9848 if ${ac_cv_search_ldexp+:} false; then :
9849 break
9850 fi
9851 done
9852 if ${ac_cv_search_ldexp+:} false; then :
9853
9854 else
9855 ac_cv_search_ldexp=no
9856 fi
9857 rm conftest.$ac_ext
9858 LIBS=$ac_func_search_save_LIBS
9859 fi
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9861 $as_echo "$ac_cv_search_ldexp" >&6; }
9862 ac_res=$ac_cv_search_ldexp
9863 if test "$ac_res" != no; then :
9864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9865
9866 fi
9867
9868 LDEXP_LIB="$LIBS"
9869 LIBS="$save_LIBS"
9870
9871
9872 # Some systems need dlopen
9873 save_LIBS="$LIBS"
9874 LIBS=
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9876 $as_echo_n "checking for library containing dlopen... " >&6; }
9877 if ${ac_cv_search_dlopen+:} false; then :
9878 $as_echo_n "(cached) " >&6
9879 else
9880 ac_func_search_save_LIBS=$LIBS
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h. */
9883
9884 /* Override any GCC internal prototype to avoid an error.
9885 Use char because int might match the return type of a GCC
9886 builtin and then its argument prototype would still apply. */
9887 #ifdef __cplusplus
9888 extern "C"
9889 #endif
9890 char dlopen ();
9891 int
9892 main ()
9893 {
9894 return dlopen ();
9895 ;
9896 return 0;
9897 }
9898 _ACEOF
9899 for ac_lib in '' dl; do
9900 if test -z "$ac_lib"; then
9901 ac_res="none required"
9902 else
9903 ac_res=-l$ac_lib
9904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9905 fi
9906 if ac_fn_cxx_try_link "$LINENO"; then :
9907 ac_cv_search_dlopen=$ac_res
9908 fi
9909 rm -f core conftest.err conftest.$ac_objext \
9910 conftest$ac_exeext
9911 if ${ac_cv_search_dlopen+:} false; then :
9912 break
9913 fi
9914 done
9915 if ${ac_cv_search_dlopen+:} false; then :
9916
9917 else
9918 ac_cv_search_dlopen=no
9919 fi
9920 rm conftest.$ac_ext
9921 LIBS=$ac_func_search_save_LIBS
9922 fi
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9924 $as_echo "$ac_cv_search_dlopen" >&6; }
9925 ac_res=$ac_cv_search_dlopen
9926 if test "$ac_res" != no; then :
9927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9928
9929 fi
9930
9931 DL_LIB="$LIBS"
9932 LIBS="$save_LIBS"
9933
9934
9935 # Use <inttypes.h> only if it exists,
9936 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9937 # PRId64
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9939 $as_echo_n "checking for inttypes.h... " >&6; }
9940 if ${gcc_cv_header_inttypes_h+:} false; then :
9941 $as_echo_n "(cached) " >&6
9942 else
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9945 #define __STDC_FORMAT_MACROS
9946 #include <sys/types.h>
9947 #include <inttypes.h>
9948 int
9949 main ()
9950 {
9951 intmax_t i = -1;
9952 #ifndef PRId64
9953 choke me
9954 #endif
9955 ;
9956 return 0;
9957 }
9958 _ACEOF
9959 if ac_fn_cxx_try_compile "$LINENO"; then :
9960 gcc_cv_header_inttypes_h=yes
9961 else
9962 gcc_cv_header_inttypes_h=no
9963 fi
9964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9965 fi
9966
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9968 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9969 if test $gcc_cv_header_inttypes_h = yes; then
9970
9971 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9972
9973 fi
9974
9975 # Look for the ZSTD package.
9976 ZSTD_INCLUDE=
9977 ZSTD_LIB=
9978
9979
9980 ZSTD_CPPFLAGS=
9981 ZSTD_LDFLAGS=
9982
9983
9984
9985 # Check whether --with-zstd was given.
9986 if test "${with_zstd+set}" = set; then :
9987 withval=$with_zstd;
9988 fi
9989
9990
9991 # Check whether --with-zstd-include was given.
9992 if test "${with_zstd_include+set}" = set; then :
9993 withval=$with_zstd_include;
9994 fi
9995
9996
9997 # Check whether --with-zstd-lib was given.
9998 if test "${with_zstd_lib+set}" = set; then :
9999 withval=$with_zstd_lib;
10000 fi
10001
10002 case "x$with_zstd" in
10003 x) ;;
10004 xno)
10005 ZSTD_INCLUDE=
10006 ZSTD_LIB=
10007 ;;
10008 *) ZSTD_INCLUDE=$with_zstd/include
10009 ZSTD_LIB=$with_zstd/lib
10010 ;;
10011 esac
10012
10013 if test "x$with_zstd" != xno; then
10014 if test "x$with_zstd_include" != x; then
10015 ZSTD_INCLUDE=$with_zstd_include
10016 fi
10017 if test "x$with_zstd_lib" != x; then
10018 ZSTD_LIB=$with_zstd_lib
10019 fi
10020 if test "x$ZSTD_INCLUDE" != x \
10021 && test "x$ZSTD_INCLUDE" != xno; then
10022 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10023 fi
10024 if test "x$ZSTD_LIB" != x \
10025 && test "x$ZSTD_LIB" != xno; then
10026 ZSTD_LDFLAGS=-L$ZSTD_LIB
10027 fi
10028
10029 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10030 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10031
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10033 $as_echo_n "checking for zstd.h... " >&6; }
10034 if ${gcc_cv_header_zstd_h+:} false; then :
10035 $as_echo_n "(cached) " >&6
10036 else
10037 # We require version 1.3.0 or later. This is the first version that has
10038 # ZSTD_getFrameContentSize.
10039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040 /* end confdefs.h. */
10041 #include <zstd.h>
10042 #if ZSTD_VERSION_NUMBER < 10300
10043 #error "need zstd 1.3.0 or better"
10044 #endif
10045 int
10046 main ()
10047 {
10048
10049 ;
10050 return 0;
10051 }
10052 _ACEOF
10053 if ac_fn_cxx_try_compile "$LINENO"; then :
10054 gcc_cv_header_zstd_h=yes
10055 else
10056 gcc_cv_header_zstd_h=no
10057 fi
10058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10059 fi
10060
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10062 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10063 if test $gcc_cv_header_zstd_h = yes; then
10064
10065 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10066
10067 elif test "x$with_zstd" != x; then
10068 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10069 fi
10070
10071 # LTO can use zstd compression algorithm
10072 save_LIBS="$LIBS"
10073 LIBS=
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10075 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10076 if ${ac_cv_search_ZSTD_compress+:} false; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 ac_func_search_save_LIBS=$LIBS
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10082
10083 /* Override any GCC internal prototype to avoid an error.
10084 Use char because int might match the return type of a GCC
10085 builtin and then its argument prototype would still apply. */
10086 #ifdef __cplusplus
10087 extern "C"
10088 #endif
10089 char ZSTD_compress ();
10090 int
10091 main ()
10092 {
10093 return ZSTD_compress ();
10094 ;
10095 return 0;
10096 }
10097 _ACEOF
10098 for ac_lib in '' zstd; do
10099 if test -z "$ac_lib"; then
10100 ac_res="none required"
10101 else
10102 ac_res=-l$ac_lib
10103 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10104 fi
10105 if ac_fn_cxx_try_link "$LINENO"; then :
10106 ac_cv_search_ZSTD_compress=$ac_res
10107 fi
10108 rm -f core conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext
10110 if ${ac_cv_search_ZSTD_compress+:} false; then :
10111 break
10112 fi
10113 done
10114 if ${ac_cv_search_ZSTD_compress+:} false; then :
10115
10116 else
10117 ac_cv_search_ZSTD_compress=no
10118 fi
10119 rm conftest.$ac_ext
10120 LIBS=$ac_func_search_save_LIBS
10121 fi
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10123 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10124 ac_res=$ac_cv_search_ZSTD_compress
10125 if test "$ac_res" != no; then :
10126 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10127
10128 fi
10129
10130 ZSTD_LIB="$LIBS"
10131 LIBS="$save_LIBS"
10132
10133 fi
10134
10135
10136
10137 for ac_func in times clock kill getrlimit setrlimit atoq \
10138 popen sysconf strsignal getrusage nl_langinfo \
10139 gettimeofday mbstowcs wcswidth mmap setlocale \
10140 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 mallinfo mallinfo2
10141 do :
10142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10143 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10144 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10145 cat >>confdefs.h <<_ACEOF
10146 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10147 _ACEOF
10148
10149 fi
10150 done
10151
10152
10153 if test x$ac_cv_func_mbstowcs = xyes; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10155 $as_echo_n "checking whether mbstowcs works... " >&6; }
10156 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10157 $as_echo_n "(cached) " >&6
10158 else
10159 if test "$cross_compiling" = yes; then :
10160 gcc_cv_func_mbstowcs_works=yes
10161 else
10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10164 #include <stdlib.h>
10165 int main()
10166 {
10167 mbstowcs(0, "", 0);
10168 return 0;
10169 }
10170 _ACEOF
10171 if ac_fn_cxx_try_run "$LINENO"; then :
10172 gcc_cv_func_mbstowcs_works=yes
10173 else
10174 gcc_cv_func_mbstowcs_works=no
10175 fi
10176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10177 conftest.$ac_objext conftest.beam conftest.$ac_ext
10178 fi
10179
10180 fi
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10182 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10183 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10184
10185 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10186
10187 fi
10188 fi
10189
10190 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10191 if test "x$ac_cv_type_ssize_t" = xyes; then :
10192
10193 else
10194
10195 cat >>confdefs.h <<_ACEOF
10196 #define ssize_t int
10197 _ACEOF
10198
10199 fi
10200
10201 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10202 if test "x$ac_cv_type_caddr_t" = xyes; then :
10203
10204 else
10205
10206 cat >>confdefs.h <<_ACEOF
10207 #define caddr_t char *
10208 _ACEOF
10209
10210 fi
10211
10212
10213
10214 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10215 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10216 gcc_header_sys_mman_h=yes
10217 else
10218 gcc_header_sys_mman_h=no
10219 fi
10220
10221 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10222 if test "x$ac_cv_func_mmap" = xyes; then :
10223 gcc_func_mmap=yes
10224 else
10225 gcc_func_mmap=no
10226 fi
10227
10228 if test "$gcc_header_sys_mman_h" != yes \
10229 || test "$gcc_func_mmap" != yes; then
10230 gcc_cv_func_mmap_file=no
10231 gcc_cv_func_mmap_dev_zero=no
10232 gcc_cv_func_mmap_anon=no
10233 else
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10235 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10236 if ${gcc_cv_func_mmap_file+:} false; then :
10237 $as_echo_n "(cached) " >&6
10238 else
10239 # Add a system to this blacklist if
10240 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10241 # memory area containing the same data that you'd get if you applied
10242 # read() to the same fd. The only system known to have a problem here
10243 # is VMS, where text files have record structure.
10244 case "$host_os" in
10245 *vms* | ultrix*)
10246 gcc_cv_func_mmap_file=no ;;
10247 *)
10248 gcc_cv_func_mmap_file=yes;;
10249 esac
10250 fi
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10252 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10254 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10255 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10256 $as_echo_n "(cached) " >&6
10257 else
10258 # Add a system to this blacklist if it has mmap() but /dev/zero
10259 # does not exist, or if mmapping /dev/zero does not give anonymous
10260 # zeroed pages with both the following properties:
10261 # 1. If you map N consecutive pages in with one call, and then
10262 # unmap any subset of those pages, the pages that were not
10263 # explicitly unmapped remain accessible.
10264 # 2. If you map two adjacent blocks of memory and then unmap them
10265 # both at once, they must both go away.
10266 # Systems known to be in this category are Windows (all variants),
10267 # VMS, and Darwin.
10268 case "$host_os" in
10269 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10270 gcc_cv_func_mmap_dev_zero=no ;;
10271 *)
10272 gcc_cv_func_mmap_dev_zero=yes;;
10273 esac
10274 fi
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10276 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10277
10278 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10280 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10281 if ${gcc_cv_decl_map_anon+:} false; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10286 #include <sys/types.h>
10287 #include <sys/mman.h>
10288 #include <unistd.h>
10289
10290 #ifndef MAP_ANONYMOUS
10291 #define MAP_ANONYMOUS MAP_ANON
10292 #endif
10293
10294 int
10295 main ()
10296 {
10297 int n = MAP_ANONYMOUS;
10298 ;
10299 return 0;
10300 }
10301 _ACEOF
10302 if ac_fn_cxx_try_compile "$LINENO"; then :
10303 gcc_cv_decl_map_anon=yes
10304 else
10305 gcc_cv_decl_map_anon=no
10306 fi
10307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10308 fi
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10310 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10311
10312 if test $gcc_cv_decl_map_anon = no; then
10313 gcc_cv_func_mmap_anon=no
10314 else
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10316 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10317 if ${gcc_cv_func_mmap_anon+:} false; then :
10318 $as_echo_n "(cached) " >&6
10319 else
10320 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10321 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10322 # doesn't give anonymous zeroed pages with the same properties listed
10323 # above for use of /dev/zero.
10324 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10325 case "$host_os" in
10326 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10327 gcc_cv_func_mmap_anon=no ;;
10328 *)
10329 gcc_cv_func_mmap_anon=yes;;
10330 esac
10331 fi
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10333 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10334 fi
10335 fi
10336
10337 if test $gcc_cv_func_mmap_file = yes; then
10338
10339 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10340
10341 fi
10342 if test $gcc_cv_func_mmap_dev_zero = yes; then
10343
10344 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10345
10346 fi
10347 if test $gcc_cv_func_mmap_anon = yes; then
10348
10349 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10350
10351 fi
10352
10353
10354 case "${host}" in
10355 *-*-*vms*)
10356 # Under VMS, vfork works very differently than on Unix. The standard test
10357 # won't work, and it isn't easily adaptable. It makes more sense to
10358 # just force it.
10359 ac_cv_func_vfork_works=yes
10360 ;;
10361 esac
10362 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10363 if test "x$ac_cv_type_pid_t" = xyes; then :
10364
10365 else
10366
10367 cat >>confdefs.h <<_ACEOF
10368 #define pid_t int
10369 _ACEOF
10370
10371 fi
10372
10373 for ac_header in vfork.h
10374 do :
10375 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10376 if test "x$ac_cv_header_vfork_h" = xyes; then :
10377 cat >>confdefs.h <<_ACEOF
10378 #define HAVE_VFORK_H 1
10379 _ACEOF
10380
10381 fi
10382 done
10383
10384 for ac_func in fork vfork
10385 do :
10386 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10387 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10388 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10389 cat >>confdefs.h <<_ACEOF
10390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10391 _ACEOF
10392
10393 fi
10394 done
10395
10396 if test "x$ac_cv_func_fork" = xyes; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10398 $as_echo_n "checking for working fork... " >&6; }
10399 if ${ac_cv_func_fork_works+:} false; then :
10400 $as_echo_n "(cached) " >&6
10401 else
10402 if test "$cross_compiling" = yes; then :
10403 ac_cv_func_fork_works=cross
10404 else
10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10407 $ac_includes_default
10408 int
10409 main ()
10410 {
10411
10412 /* By Ruediger Kuhlmann. */
10413 return fork () < 0;
10414
10415 ;
10416 return 0;
10417 }
10418 _ACEOF
10419 if ac_fn_cxx_try_run "$LINENO"; then :
10420 ac_cv_func_fork_works=yes
10421 else
10422 ac_cv_func_fork_works=no
10423 fi
10424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10425 conftest.$ac_objext conftest.beam conftest.$ac_ext
10426 fi
10427
10428 fi
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10430 $as_echo "$ac_cv_func_fork_works" >&6; }
10431
10432 else
10433 ac_cv_func_fork_works=$ac_cv_func_fork
10434 fi
10435 if test "x$ac_cv_func_fork_works" = xcross; then
10436 case $host in
10437 *-*-amigaos* | *-*-msdosdjgpp*)
10438 # Override, as these systems have only a dummy fork() stub
10439 ac_cv_func_fork_works=no
10440 ;;
10441 *)
10442 ac_cv_func_fork_works=yes
10443 ;;
10444 esac
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10446 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10447 fi
10448 ac_cv_func_vfork_works=$ac_cv_func_vfork
10449 if test "x$ac_cv_func_vfork" = xyes; then
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10451 $as_echo_n "checking for working vfork... " >&6; }
10452 if ${ac_cv_func_vfork_works+:} false; then :
10453 $as_echo_n "(cached) " >&6
10454 else
10455 if test "$cross_compiling" = yes; then :
10456 ac_cv_func_vfork_works=cross
10457 else
10458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h. */
10460 /* Thanks to Paul Eggert for this test. */
10461 $ac_includes_default
10462 #include <sys/wait.h>
10463 #ifdef HAVE_VFORK_H
10464 # include <vfork.h>
10465 #endif
10466 /* On some sparc systems, changes by the child to local and incoming
10467 argument registers are propagated back to the parent. The compiler
10468 is told about this with #include <vfork.h>, but some compilers
10469 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10470 static variable whose address is put into a register that is
10471 clobbered by the vfork. */
10472 static void
10473 #ifdef __cplusplus
10474 sparc_address_test (int arg)
10475 # else
10476 sparc_address_test (arg) int arg;
10477 #endif
10478 {
10479 static pid_t child;
10480 if (!child) {
10481 child = vfork ();
10482 if (child < 0) {
10483 perror ("vfork");
10484 _exit(2);
10485 }
10486 if (!child) {
10487 arg = getpid();
10488 write(-1, "", 0);
10489 _exit (arg);
10490 }
10491 }
10492 }
10493
10494 int
10495 main ()
10496 {
10497 pid_t parent = getpid ();
10498 pid_t child;
10499
10500 sparc_address_test (0);
10501
10502 child = vfork ();
10503
10504 if (child == 0) {
10505 /* Here is another test for sparc vfork register problems. This
10506 test uses lots of local variables, at least as many local
10507 variables as main has allocated so far including compiler
10508 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10509 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10510 reuse the register of parent for one of the local variables,
10511 since it will think that parent can't possibly be used any more
10512 in this routine. Assigning to the local variable will thus
10513 munge parent in the parent process. */
10514 pid_t
10515 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10516 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10517 /* Convince the compiler that p..p7 are live; otherwise, it might
10518 use the same hardware register for all 8 local variables. */
10519 if (p != p1 || p != p2 || p != p3 || p != p4
10520 || p != p5 || p != p6 || p != p7)
10521 _exit(1);
10522
10523 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10524 from child file descriptors. If the child closes a descriptor
10525 before it execs or exits, this munges the parent's descriptor
10526 as well. Test for this by closing stdout in the child. */
10527 _exit(close(fileno(stdout)) != 0);
10528 } else {
10529 int status;
10530 struct stat st;
10531
10532 while (wait(&status) != child)
10533 ;
10534 return (
10535 /* Was there some problem with vforking? */
10536 child < 0
10537
10538 /* Did the child fail? (This shouldn't happen.) */
10539 || status
10540
10541 /* Did the vfork/compiler bug occur? */
10542 || parent != getpid()
10543
10544 /* Did the file descriptor bug occur? */
10545 || fstat(fileno(stdout), &st) != 0
10546 );
10547 }
10548 }
10549 _ACEOF
10550 if ac_fn_cxx_try_run "$LINENO"; then :
10551 ac_cv_func_vfork_works=yes
10552 else
10553 ac_cv_func_vfork_works=no
10554 fi
10555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10556 conftest.$ac_objext conftest.beam conftest.$ac_ext
10557 fi
10558
10559 fi
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10561 $as_echo "$ac_cv_func_vfork_works" >&6; }
10562
10563 fi;
10564 if test "x$ac_cv_func_fork_works" = xcross; then
10565 ac_cv_func_vfork_works=$ac_cv_func_vfork
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10567 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10568 fi
10569
10570 if test "x$ac_cv_func_vfork_works" = xyes; then
10571
10572 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10573
10574 else
10575
10576 $as_echo "#define vfork fork" >>confdefs.h
10577
10578 fi
10579 if test "x$ac_cv_func_fork_works" = xyes; then
10580
10581 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10582
10583 fi
10584
10585
10586
10587 if test "X$prefix" = "XNONE"; then
10588 acl_final_prefix="$ac_default_prefix"
10589 else
10590 acl_final_prefix="$prefix"
10591 fi
10592 if test "X$exec_prefix" = "XNONE"; then
10593 acl_final_exec_prefix='${prefix}'
10594 else
10595 acl_final_exec_prefix="$exec_prefix"
10596 fi
10597 acl_save_prefix="$prefix"
10598 prefix="$acl_final_prefix"
10599 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10600 prefix="$acl_save_prefix"
10601
10602
10603 # Check whether --with-gnu-ld was given.
10604 if test "${with_gnu_ld+set}" = set; then :
10605 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10606 else
10607 with_gnu_ld=no
10608 fi
10609
10610 # Prepare PATH_SEPARATOR.
10611 # The user is always right.
10612 if test "${PATH_SEPARATOR+set}" != set; then
10613 echo "#! /bin/sh" >conf$$.sh
10614 echo "exit 0" >>conf$$.sh
10615 chmod +x conf$$.sh
10616 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10617 PATH_SEPARATOR=';'
10618 else
10619 PATH_SEPARATOR=:
10620 fi
10621 rm -f conf$$.sh
10622 fi
10623 ac_prog=ld
10624 if test "$GCC" = yes; then
10625 # Check if gcc -print-prog-name=ld gives a path.
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10627 $as_echo_n "checking for ld used by GCC... " >&6; }
10628 case $host in
10629 *-*-mingw*)
10630 # gcc leaves a trailing carriage return which upsets mingw
10631 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10632 *)
10633 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10634 esac
10635 case $ac_prog in
10636 # Accept absolute paths.
10637 [\\/]* | [A-Za-z]:[\\/]*)
10638 re_direlt='/[^/][^/]*/\.\./'
10639 # Canonicalize the path of ld
10640 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10641 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10642 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10643 done
10644 test -z "$LD" && LD="$ac_prog"
10645 ;;
10646 "")
10647 # If it fails, then pretend we aren't using GCC.
10648 ac_prog=ld
10649 ;;
10650 *)
10651 # If it is relative, then search for the first ld in PATH.
10652 with_gnu_ld=unknown
10653 ;;
10654 esac
10655 elif test "$with_gnu_ld" = yes; then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10657 $as_echo_n "checking for GNU ld... " >&6; }
10658 else
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10660 $as_echo_n "checking for non-GNU ld... " >&6; }
10661 fi
10662 if ${acl_cv_path_LD+:} false; then :
10663 $as_echo_n "(cached) " >&6
10664 else
10665 if test -z "$LD"; then
10666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10667 for ac_dir in $PATH; do
10668 test -z "$ac_dir" && ac_dir=.
10669 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10670 acl_cv_path_LD="$ac_dir/$ac_prog"
10671 # Check to see if the program is GNU ld. I'd rather use --version,
10672 # but apparently some GNU ld's only accept -v.
10673 # Break only if it was the GNU/non-GNU ld that we prefer.
10674 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10675 test "$with_gnu_ld" != no && break
10676 else
10677 test "$with_gnu_ld" != yes && break
10678 fi
10679 fi
10680 done
10681 IFS="$ac_save_ifs"
10682 else
10683 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10684 fi
10685 fi
10686
10687 LD="$acl_cv_path_LD"
10688 if test -n "$LD"; then
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10690 $as_echo "$LD" >&6; }
10691 else
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10693 $as_echo "no" >&6; }
10694 fi
10695 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10697 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10698 if ${acl_cv_prog_gnu_ld+:} false; then :
10699 $as_echo_n "(cached) " >&6
10700 else
10701 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10702 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10703 acl_cv_prog_gnu_ld=yes
10704 else
10705 acl_cv_prog_gnu_ld=no
10706 fi
10707 fi
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10709 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10710 with_gnu_ld=$acl_cv_prog_gnu_ld
10711
10712
10713
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10715 $as_echo_n "checking for shared library run path origin... " >&6; }
10716 if ${acl_cv_rpath+:} false; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719
10720 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10721 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10722 . ./conftest.sh
10723 rm -f ./conftest.sh
10724 acl_cv_rpath=done
10725
10726 fi
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10728 $as_echo "$acl_cv_rpath" >&6; }
10729 wl="$acl_cv_wl"
10730 libext="$acl_cv_libext"
10731 shlibext="$acl_cv_shlibext"
10732 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10733 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10734 hardcode_direct="$acl_cv_hardcode_direct"
10735 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10736 # Check whether --enable-rpath was given.
10737 if test "${enable_rpath+set}" = set; then :
10738 enableval=$enable_rpath; :
10739 else
10740 enable_rpath=yes
10741 fi
10742
10743
10744
10745
10746
10747
10748
10749
10750 use_additional=yes
10751
10752 acl_save_prefix="$prefix"
10753 prefix="$acl_final_prefix"
10754 acl_save_exec_prefix="$exec_prefix"
10755 exec_prefix="$acl_final_exec_prefix"
10756
10757 eval additional_includedir=\"$includedir\"
10758 eval additional_libdir=\"$libdir\"
10759
10760 exec_prefix="$acl_save_exec_prefix"
10761 prefix="$acl_save_prefix"
10762
10763
10764 # Check whether --with-libiconv-prefix was given.
10765 if test "${with_libiconv_prefix+set}" = set; then :
10766 withval=$with_libiconv_prefix;
10767 if test "X$withval" = "Xno"; then
10768 use_additional=no
10769 else
10770 if test "X$withval" = "X"; then
10771
10772 acl_save_prefix="$prefix"
10773 prefix="$acl_final_prefix"
10774 acl_save_exec_prefix="$exec_prefix"
10775 exec_prefix="$acl_final_exec_prefix"
10776
10777 eval additional_includedir=\"$includedir\"
10778 eval additional_libdir=\"$libdir\"
10779
10780 exec_prefix="$acl_save_exec_prefix"
10781 prefix="$acl_save_prefix"
10782
10783 else
10784 additional_includedir="$withval/include"
10785 additional_libdir="$withval/lib"
10786 fi
10787 fi
10788
10789 fi
10790
10791
10792 # Check whether --with-libiconv-type was given.
10793 if test "${with_libiconv_type+set}" = set; then :
10794 withval=$with_libiconv_type; with_libiconv_type=$withval
10795 else
10796 with_libiconv_type=auto
10797 fi
10798
10799 lib_type=`eval echo \$with_libiconv_type`
10800
10801 LIBICONV=
10802 LTLIBICONV=
10803 INCICONV=
10804 rpathdirs=
10805 ltrpathdirs=
10806 names_already_handled=
10807 names_next_round='iconv '
10808 while test -n "$names_next_round"; do
10809 names_this_round="$names_next_round"
10810 names_next_round=
10811 for name in $names_this_round; do
10812 already_handled=
10813 for n in $names_already_handled; do
10814 if test "$n" = "$name"; then
10815 already_handled=yes
10816 break
10817 fi
10818 done
10819 if test -z "$already_handled"; then
10820 names_already_handled="$names_already_handled $name"
10821 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10822 eval value=\"\$HAVE_LIB$uppername\"
10823 if test -n "$value"; then
10824 if test "$value" = yes; then
10825 eval value=\"\$LIB$uppername\"
10826 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10827 eval value=\"\$LTLIB$uppername\"
10828 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10829 else
10830 :
10831 fi
10832 else
10833 found_dir=
10834 found_la=
10835 found_so=
10836 found_a=
10837 if test $use_additional = yes; then
10838 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10839 found_dir="$additional_libdir"
10840 found_so="$additional_libdir/lib$name.$shlibext"
10841 if test -f "$additional_libdir/lib$name.la"; then
10842 found_la="$additional_libdir/lib$name.la"
10843 fi
10844 elif test x$lib_type != xshared; then
10845 if test -f "$additional_libdir/lib$name.$libext"; then
10846 found_dir="$additional_libdir"
10847 found_a="$additional_libdir/lib$name.$libext"
10848 if test -f "$additional_libdir/lib$name.la"; then
10849 found_la="$additional_libdir/lib$name.la"
10850 fi
10851 fi
10852 fi
10853 fi
10854 if test "X$found_dir" = "X"; then
10855 for x in $LDFLAGS $LTLIBICONV; do
10856
10857 acl_save_prefix="$prefix"
10858 prefix="$acl_final_prefix"
10859 acl_save_exec_prefix="$exec_prefix"
10860 exec_prefix="$acl_final_exec_prefix"
10861 eval x=\"$x\"
10862 exec_prefix="$acl_save_exec_prefix"
10863 prefix="$acl_save_prefix"
10864
10865 case "$x" in
10866 -L*)
10867 dir=`echo "X$x" | sed -e 's/^X-L//'`
10868 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10869 found_dir="$dir"
10870 found_so="$dir/lib$name.$shlibext"
10871 if test -f "$dir/lib$name.la"; then
10872 found_la="$dir/lib$name.la"
10873 fi
10874 elif test x$lib_type != xshared; then
10875 if test -f "$dir/lib$name.$libext"; then
10876 found_dir="$dir"
10877 found_a="$dir/lib$name.$libext"
10878 if test -f "$dir/lib$name.la"; then
10879 found_la="$dir/lib$name.la"
10880 fi
10881 fi
10882 fi
10883 ;;
10884 esac
10885 if test "X$found_dir" != "X"; then
10886 break
10887 fi
10888 done
10889 fi
10890 if test "X$found_dir" != "X"; then
10891 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10892 if test "X$found_so" != "X"; then
10893 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10894 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10895 else
10896 haveit=
10897 for x in $ltrpathdirs; do
10898 if test "X$x" = "X$found_dir"; then
10899 haveit=yes
10900 break
10901 fi
10902 done
10903 if test -z "$haveit"; then
10904 ltrpathdirs="$ltrpathdirs $found_dir"
10905 fi
10906 if test "$hardcode_direct" = yes; then
10907 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10908 else
10909 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10910 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10911 haveit=
10912 for x in $rpathdirs; do
10913 if test "X$x" = "X$found_dir"; then
10914 haveit=yes
10915 break
10916 fi
10917 done
10918 if test -z "$haveit"; then
10919 rpathdirs="$rpathdirs $found_dir"
10920 fi
10921 else
10922 haveit=
10923 for x in $LDFLAGS $LIBICONV; do
10924
10925 acl_save_prefix="$prefix"
10926 prefix="$acl_final_prefix"
10927 acl_save_exec_prefix="$exec_prefix"
10928 exec_prefix="$acl_final_exec_prefix"
10929 eval x=\"$x\"
10930 exec_prefix="$acl_save_exec_prefix"
10931 prefix="$acl_save_prefix"
10932
10933 if test "X$x" = "X-L$found_dir"; then
10934 haveit=yes
10935 break
10936 fi
10937 done
10938 if test -z "$haveit"; then
10939 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10940 fi
10941 if test "$hardcode_minus_L" != no; then
10942 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10943 else
10944 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10945 fi
10946 fi
10947 fi
10948 fi
10949 else
10950 if test "X$found_a" != "X"; then
10951 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10952 else
10953 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10954 fi
10955 fi
10956 additional_includedir=
10957 case "$found_dir" in
10958 */lib | */lib/)
10959 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10960 additional_includedir="$basedir/include"
10961 ;;
10962 esac
10963 if test "X$additional_includedir" != "X"; then
10964 if test "X$additional_includedir" != "X/usr/include"; then
10965 haveit=
10966 if test "X$additional_includedir" = "X/usr/local/include"; then
10967 if test -n "$GCC"; then
10968 case $host_os in
10969 linux*) haveit=yes;;
10970 esac
10971 fi
10972 fi
10973 if test -z "$haveit"; then
10974 for x in $CPPFLAGS $INCICONV; do
10975
10976 acl_save_prefix="$prefix"
10977 prefix="$acl_final_prefix"
10978 acl_save_exec_prefix="$exec_prefix"
10979 exec_prefix="$acl_final_exec_prefix"
10980 eval x=\"$x\"
10981 exec_prefix="$acl_save_exec_prefix"
10982 prefix="$acl_save_prefix"
10983
10984 if test "X$x" = "X-I$additional_includedir"; then
10985 haveit=yes
10986 break
10987 fi
10988 done
10989 if test -z "$haveit"; then
10990 if test -d "$additional_includedir"; then
10991 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10992 fi
10993 fi
10994 fi
10995 fi
10996 fi
10997 if test -n "$found_la"; then
10998 save_libdir="$libdir"
10999 case "$found_la" in
11000 */* | *\\*) . "$found_la" ;;
11001 *) . "./$found_la" ;;
11002 esac
11003 libdir="$save_libdir"
11004 for dep in $dependency_libs; do
11005 case "$dep" in
11006 -L*)
11007 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11008 if test "X$additional_libdir" != "X/usr/lib"; then
11009 haveit=
11010 if test "X$additional_libdir" = "X/usr/local/lib"; then
11011 if test -n "$GCC"; then
11012 case $host_os in
11013 linux*) haveit=yes;;
11014 esac
11015 fi
11016 fi
11017 if test -z "$haveit"; then
11018 haveit=
11019 for x in $LDFLAGS $LIBICONV; do
11020
11021 acl_save_prefix="$prefix"
11022 prefix="$acl_final_prefix"
11023 acl_save_exec_prefix="$exec_prefix"
11024 exec_prefix="$acl_final_exec_prefix"
11025 eval x=\"$x\"
11026 exec_prefix="$acl_save_exec_prefix"
11027 prefix="$acl_save_prefix"
11028
11029 if test "X$x" = "X-L$additional_libdir"; then
11030 haveit=yes
11031 break
11032 fi
11033 done
11034 if test -z "$haveit"; then
11035 if test -d "$additional_libdir"; then
11036 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11037 fi
11038 fi
11039 haveit=
11040 for x in $LDFLAGS $LTLIBICONV; do
11041
11042 acl_save_prefix="$prefix"
11043 prefix="$acl_final_prefix"
11044 acl_save_exec_prefix="$exec_prefix"
11045 exec_prefix="$acl_final_exec_prefix"
11046 eval x=\"$x\"
11047 exec_prefix="$acl_save_exec_prefix"
11048 prefix="$acl_save_prefix"
11049
11050 if test "X$x" = "X-L$additional_libdir"; then
11051 haveit=yes
11052 break
11053 fi
11054 done
11055 if test -z "$haveit"; then
11056 if test -d "$additional_libdir"; then
11057 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11058 fi
11059 fi
11060 fi
11061 fi
11062 ;;
11063 -R*)
11064 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11065 if test "$enable_rpath" != no; then
11066 haveit=
11067 for x in $rpathdirs; do
11068 if test "X$x" = "X$dir"; then
11069 haveit=yes
11070 break
11071 fi
11072 done
11073 if test -z "$haveit"; then
11074 rpathdirs="$rpathdirs $dir"
11075 fi
11076 haveit=
11077 for x in $ltrpathdirs; do
11078 if test "X$x" = "X$dir"; then
11079 haveit=yes
11080 break
11081 fi
11082 done
11083 if test -z "$haveit"; then
11084 ltrpathdirs="$ltrpathdirs $dir"
11085 fi
11086 fi
11087 ;;
11088 -l*)
11089 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11090 ;;
11091 *.la)
11092 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11093 ;;
11094 *)
11095 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11096 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11097 ;;
11098 esac
11099 done
11100 fi
11101 else
11102 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11103 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11104 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11105 else
11106 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11107 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11108 fi
11109 fi
11110 fi
11111 fi
11112 done
11113 done
11114 if test "X$rpathdirs" != "X"; then
11115 if test -n "$hardcode_libdir_separator"; then
11116 alldirs=
11117 for found_dir in $rpathdirs; do
11118 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11119 done
11120 acl_save_libdir="$libdir"
11121 libdir="$alldirs"
11122 eval flag=\"$hardcode_libdir_flag_spec\"
11123 libdir="$acl_save_libdir"
11124 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11125 else
11126 for found_dir in $rpathdirs; do
11127 acl_save_libdir="$libdir"
11128 libdir="$found_dir"
11129 eval flag=\"$hardcode_libdir_flag_spec\"
11130 libdir="$acl_save_libdir"
11131 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11132 done
11133 fi
11134 fi
11135 if test "X$ltrpathdirs" != "X"; then
11136 for found_dir in $ltrpathdirs; do
11137 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11138 done
11139 fi
11140
11141
11142
11143
11144
11145
11146
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11148 $as_echo_n "checking for iconv... " >&6; }
11149 if ${am_cv_func_iconv+:} false; then :
11150 $as_echo_n "(cached) " >&6
11151 else
11152
11153 am_cv_func_iconv="no, consider installing GNU libiconv"
11154 am_cv_lib_iconv=no
11155 am_save_CPPFLAGS="$CPPFLAGS"
11156 CPPFLAGS="$CPPFLAGS $INCICONV"
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11159 #include <stdlib.h>
11160 #include <iconv.h>
11161 int
11162 main ()
11163 {
11164 iconv_t cd = iconv_open("","");
11165 iconv(cd,NULL,NULL,NULL,NULL);
11166 iconv_close(cd);
11167 ;
11168 return 0;
11169 }
11170 _ACEOF
11171 if ac_fn_cxx_try_link "$LINENO"; then :
11172 am_cv_func_iconv=yes
11173 fi
11174 rm -f core conftest.err conftest.$ac_objext \
11175 conftest$ac_exeext conftest.$ac_ext
11176 CPPFLAGS="$am_save_CPPFLAGS"
11177
11178 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11179 for _libs in .libs _libs; do
11180 am_save_CPPFLAGS="$CPPFLAGS"
11181 am_save_LIBS="$LIBS"
11182 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11183 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11186 #include <stdlib.h>
11187 #include <iconv.h>
11188 int
11189 main ()
11190 {
11191 iconv_t cd = iconv_open("","");
11192 iconv(cd,NULL,NULL,NULL,NULL);
11193 iconv_close(cd);
11194 ;
11195 return 0;
11196 }
11197 _ACEOF
11198 if ac_fn_cxx_try_link "$LINENO"; then :
11199 INCICONV="-I../libiconv/include"
11200 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11201 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11202 am_cv_lib_iconv=yes
11203 am_cv_func_iconv=yes
11204 fi
11205 rm -f core conftest.err conftest.$ac_objext \
11206 conftest$ac_exeext conftest.$ac_ext
11207 CPPFLAGS="$am_save_CPPFLAGS"
11208 LIBS="$am_save_LIBS"
11209 if test "$am_cv_func_iconv" = "yes"; then
11210 break
11211 fi
11212 done
11213 fi
11214
11215 if test "$am_cv_func_iconv" != yes; then
11216 am_save_CPPFLAGS="$CPPFLAGS"
11217 am_save_LIBS="$LIBS"
11218 CPPFLAGS="$CPPFLAGS $INCICONV"
11219 LIBS="$LIBS $LIBICONV"
11220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h. */
11222 #include <stdlib.h>
11223 #include <iconv.h>
11224 int
11225 main ()
11226 {
11227 iconv_t cd = iconv_open("","");
11228 iconv(cd,NULL,NULL,NULL,NULL);
11229 iconv_close(cd);
11230 ;
11231 return 0;
11232 }
11233 _ACEOF
11234 if ac_fn_cxx_try_link "$LINENO"; then :
11235 am_cv_lib_iconv=yes
11236 am_cv_func_iconv=yes
11237 fi
11238 rm -f core conftest.err conftest.$ac_objext \
11239 conftest$ac_exeext conftest.$ac_ext
11240 CPPFLAGS="$am_save_CPPFLAGS"
11241 LIBS="$am_save_LIBS"
11242 fi
11243
11244 fi
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11246 $as_echo "$am_cv_func_iconv" >&6; }
11247 if test "$am_cv_func_iconv" = yes; then
11248
11249 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11250
11251 fi
11252 if test "$am_cv_lib_iconv" = yes; then
11253
11254 for element in $INCICONV; do
11255 haveit=
11256 for x in $CPPFLAGS; do
11257
11258 acl_save_prefix="$prefix"
11259 prefix="$acl_final_prefix"
11260 acl_save_exec_prefix="$exec_prefix"
11261 exec_prefix="$acl_final_exec_prefix"
11262 eval x=\"$x\"
11263 exec_prefix="$acl_save_exec_prefix"
11264 prefix="$acl_save_prefix"
11265
11266 if test "X$x" = "X$element"; then
11267 haveit=yes
11268 break
11269 fi
11270 done
11271 if test -z "$haveit"; then
11272 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11273 fi
11274 done
11275
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11277 $as_echo_n "checking how to link with libiconv... " >&6; }
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11279 $as_echo "$LIBICONV" >&6; }
11280 else
11281 LIBICONV=
11282 LTLIBICONV=
11283 fi
11284
11285
11286
11287 if test "$am_cv_func_iconv" = yes; then
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11289 $as_echo_n "checking for iconv declaration... " >&6; }
11290 if ${am_cv_proto_iconv+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292 else
11293
11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11296
11297 #include <stdlib.h>
11298 #include <iconv.h>
11299 extern
11300 #ifdef __cplusplus
11301 "C"
11302 #endif
11303 #if defined(__STDC__) || defined(__cplusplus)
11304 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11305 #else
11306 size_t iconv();
11307 #endif
11308
11309 int
11310 main ()
11311 {
11312
11313 ;
11314 return 0;
11315 }
11316 _ACEOF
11317 if ac_fn_cxx_try_compile "$LINENO"; then :
11318 am_cv_proto_iconv_arg1=""
11319 else
11320 am_cv_proto_iconv_arg1="const"
11321 fi
11322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323 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);"
11324 fi
11325
11326 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11328 }$am_cv_proto_iconv" >&5
11329 $as_echo "${ac_t:-
11330 }$am_cv_proto_iconv" >&6; }
11331
11332 cat >>confdefs.h <<_ACEOF
11333 #define ICONV_CONST $am_cv_proto_iconv_arg1
11334 _ACEOF
11335
11336 fi
11337
11338
11339 # Until we have in-tree GNU iconv:
11340 LIBICONV_DEP=
11341 if test -f "$LTLIBICONV"; then
11342 LIBICONV_DEP=$LTLIBICONV
11343 fi
11344
11345
11346
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11348 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11349 if ${am_cv_val_LC_MESSAGES+:} false; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11354 #include <locale.h>
11355 int
11356 main ()
11357 {
11358 return LC_MESSAGES
11359 ;
11360 return 0;
11361 }
11362 _ACEOF
11363 if ac_fn_cxx_try_link "$LINENO"; then :
11364 am_cv_val_LC_MESSAGES=yes
11365 else
11366 am_cv_val_LC_MESSAGES=no
11367 fi
11368 rm -f core conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
11370 fi
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11372 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11373 if test $am_cv_val_LC_MESSAGES = yes; then
11374
11375 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11376
11377 fi
11378
11379
11380
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11382 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11383 if ${am_cv_langinfo_codeset+:} false; then :
11384 $as_echo_n "(cached) " >&6
11385 else
11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h. */
11388 #include <langinfo.h>
11389 int
11390 main ()
11391 {
11392 char* cs = nl_langinfo(CODESET);
11393 ;
11394 return 0;
11395 }
11396 _ACEOF
11397 if ac_fn_cxx_try_link "$LINENO"; then :
11398 am_cv_langinfo_codeset=yes
11399 else
11400 am_cv_langinfo_codeset=no
11401 fi
11402 rm -f core conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext conftest.$ac_ext
11404
11405 fi
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11407 $as_echo "$am_cv_langinfo_codeset" >&6; }
11408 if test $am_cv_langinfo_codeset = yes; then
11409
11410 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11411
11412 fi
11413
11414
11415 # We will need to find libiberty.h and ansidecl.h
11416 saved_CFLAGS="$CFLAGS"
11417 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11418 saved_CXXFLAGS="$CXXFLAGS"
11419 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11420
11421 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11422 # normal autoconf function for these. But force definition of
11423 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11424 # basename handling in libiberty.h.
11425 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11426 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11427 #undef HAVE_DECL_BASENAME
11428 #define HAVE_DECL_BASENAME 1
11429 #include \"ansidecl.h\"
11430 #include \"system.h\"
11431 "
11432 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11433 ac_have_decl=1
11434 else
11435 ac_have_decl=0
11436 fi
11437
11438 cat >>confdefs.h <<_ACEOF
11439 #define HAVE_DECL_BASENAME $ac_have_decl
11440 _ACEOF
11441 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11442 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11443 #undef HAVE_DECL_BASENAME
11444 #define HAVE_DECL_BASENAME 1
11445 #include \"ansidecl.h\"
11446 #include \"system.h\"
11447 "
11448 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11449 ac_have_decl=1
11450 else
11451 ac_have_decl=0
11452 fi
11453
11454 cat >>confdefs.h <<_ACEOF
11455 #define HAVE_DECL_STRSTR $ac_have_decl
11456 _ACEOF
11457
11458
11459 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11460 madvise stpcpy strnlen strsignal strverscmp \
11461 strtol strtoul strtoll strtoull setenv unsetenv \
11462 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11463 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
11464 do
11465 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11467 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11468 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11469 $as_echo_n "(cached) " >&6
11470 else
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11473 #undef $ac_tr_decl
11474 #define $ac_tr_decl 1
11475
11476 #include "ansidecl.h"
11477 #include "system.h"
11478
11479 int
11480 main ()
11481 {
11482 #ifndef $ac_func
11483 char *(*pfn) = (char *(*)) $ac_func ;
11484 #endif
11485 ;
11486 return 0;
11487 }
11488 _ACEOF
11489 if ac_fn_cxx_try_compile "$LINENO"; then :
11490 eval "gcc_cv_have_decl_$ac_func=yes"
11491 else
11492 eval "gcc_cv_have_decl_$ac_func=no"
11493 fi
11494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495 fi
11496
11497 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11499 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11500 #define $ac_tr_decl 1
11501 _ACEOF
11502
11503 else
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11506 #define $ac_tr_decl 0
11507 _ACEOF
11508
11509 fi
11510
11511 done
11512
11513
11514 for ac_func in getrlimit setrlimit getrusage
11515 do
11516 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11518 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11519 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11520 $as_echo_n "(cached) " >&6
11521 else
11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11524 #undef $ac_tr_decl
11525 #define $ac_tr_decl 1
11526
11527 #include "ansidecl.h"
11528 #include "system.h"
11529 #ifdef HAVE_SYS_RESOURCE_H
11530 #include <sys/resource.h>
11531 #endif
11532
11533
11534 int
11535 main ()
11536 {
11537 #ifndef $ac_func
11538 char *(*pfn) = (char *(*)) $ac_func ;
11539 #endif
11540 ;
11541 return 0;
11542 }
11543 _ACEOF
11544 if ac_fn_cxx_try_compile "$LINENO"; then :
11545 eval "gcc_cv_have_decl_$ac_func=yes"
11546 else
11547 eval "gcc_cv_have_decl_$ac_func=no"
11548 fi
11549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11550 fi
11551
11552 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11554 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11555 #define $ac_tr_decl 1
11556 _ACEOF
11557
11558 else
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11561 #define $ac_tr_decl 0
11562 _ACEOF
11563
11564 fi
11565
11566 done
11567
11568
11569 for ac_func in mallinfo mallinfo2
11570 do
11571 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11573 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11574 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11575 $as_echo_n "(cached) " >&6
11576 else
11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11579 #undef $ac_tr_decl
11580 #define $ac_tr_decl 1
11581
11582 #include "ansidecl.h"
11583 #include "system.h"
11584 #ifdef HAVE_MALLOC_H
11585 #include <malloc.h>
11586 #endif
11587
11588
11589 int
11590 main ()
11591 {
11592 #ifndef $ac_func
11593 char *(*pfn) = (char *(*)) $ac_func ;
11594 #endif
11595 ;
11596 return 0;
11597 }
11598 _ACEOF
11599 if ac_fn_cxx_try_compile "$LINENO"; then :
11600 eval "gcc_cv_have_decl_$ac_func=yes"
11601 else
11602 eval "gcc_cv_have_decl_$ac_func=no"
11603 fi
11604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11605 fi
11606
11607 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11609 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11610 #define $ac_tr_decl 1
11611 _ACEOF
11612
11613 else
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11616 #define $ac_tr_decl 0
11617 _ACEOF
11618
11619 fi
11620
11621 done
11622
11623
11624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11625 /* end confdefs.h. */
11626
11627 #include "ansidecl.h"
11628 #include "system.h"
11629 #ifdef HAVE_SYS_RESOURCE_H
11630 #include <sys/resource.h>
11631 #endif
11632
11633 int
11634 main ()
11635 {
11636 rlim_t l = 0;
11637 ;
11638 return 0;
11639 }
11640 _ACEOF
11641 if ac_fn_cxx_try_compile "$LINENO"; then :
11642
11643 else
11644
11645 $as_echo "#define rlim_t long" >>confdefs.h
11646
11647 fi
11648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11649
11650 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11651 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11652 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11653 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11654 for ac_func in ldgetname
11655 do
11656 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11658 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11659 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11660 $as_echo_n "(cached) " >&6
11661 else
11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11664 #undef $ac_tr_decl
11665 #define $ac_tr_decl 1
11666
11667 #include "ansidecl.h"
11668 #include "system.h"
11669 #ifdef HAVE_LDFCN_H
11670 #undef FREAD
11671 #undef FWRITE
11672 #include <ldfcn.h>
11673 #endif
11674
11675
11676 int
11677 main ()
11678 {
11679 #ifndef $ac_func
11680 char *(*pfn) = (char *(*)) $ac_func ;
11681 #endif
11682 ;
11683 return 0;
11684 }
11685 _ACEOF
11686 if ac_fn_cxx_try_compile "$LINENO"; then :
11687 eval "gcc_cv_have_decl_$ac_func=yes"
11688 else
11689 eval "gcc_cv_have_decl_$ac_func=no"
11690 fi
11691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11692 fi
11693
11694 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11696 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11697 #define $ac_tr_decl 1
11698 _ACEOF
11699
11700 else
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11703 #define $ac_tr_decl 0
11704 _ACEOF
11705
11706 fi
11707
11708 done
11709
11710
11711 for ac_func in times
11712 do
11713 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11715 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11716 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11717 $as_echo_n "(cached) " >&6
11718 else
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11721 #undef $ac_tr_decl
11722 #define $ac_tr_decl 1
11723
11724 #include "ansidecl.h"
11725 #include "system.h"
11726 #ifdef HAVE_SYS_TIMES_H
11727 #include <sys/times.h>
11728 #endif
11729
11730
11731 int
11732 main ()
11733 {
11734 #ifndef $ac_func
11735 char *(*pfn) = (char *(*)) $ac_func ;
11736 #endif
11737 ;
11738 return 0;
11739 }
11740 _ACEOF
11741 if ac_fn_cxx_try_compile "$LINENO"; then :
11742 eval "gcc_cv_have_decl_$ac_func=yes"
11743 else
11744 eval "gcc_cv_have_decl_$ac_func=no"
11745 fi
11746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11747 fi
11748
11749 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11751 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11752 #define $ac_tr_decl 1
11753 _ACEOF
11754
11755 else
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11758 #define $ac_tr_decl 0
11759 _ACEOF
11760
11761 fi
11762
11763 done
11764
11765
11766 for ac_func in sigaltstack
11767 do
11768 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11770 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11771 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11772 $as_echo_n "(cached) " >&6
11773 else
11774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775 /* end confdefs.h. */
11776 #undef $ac_tr_decl
11777 #define $ac_tr_decl 1
11778
11779 #include "ansidecl.h"
11780 #include "system.h"
11781 #include <signal.h>
11782
11783
11784 int
11785 main ()
11786 {
11787 #ifndef $ac_func
11788 char *(*pfn) = (char *(*)) $ac_func ;
11789 #endif
11790 ;
11791 return 0;
11792 }
11793 _ACEOF
11794 if ac_fn_cxx_try_compile "$LINENO"; then :
11795 eval "gcc_cv_have_decl_$ac_func=yes"
11796 else
11797 eval "gcc_cv_have_decl_$ac_func=no"
11798 fi
11799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11800 fi
11801
11802 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11804 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11805 #define $ac_tr_decl 1
11806 _ACEOF
11807
11808 else
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11811 #define $ac_tr_decl 0
11812 _ACEOF
11813
11814 fi
11815
11816 done
11817
11818
11819 # More time-related stuff.
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11821 $as_echo_n "checking for struct tms... " >&6; }
11822 if ${ac_cv_struct_tms+:} false; then :
11823 $as_echo_n "(cached) " >&6
11824 else
11825
11826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h. */
11828
11829 #include "ansidecl.h"
11830 #include "system.h"
11831 #ifdef HAVE_SYS_TIMES_H
11832 #include <sys/times.h>
11833 #endif
11834
11835 int
11836 main ()
11837 {
11838 struct tms tms;
11839 ;
11840 return 0;
11841 }
11842 _ACEOF
11843 if ac_fn_cxx_try_compile "$LINENO"; then :
11844 ac_cv_struct_tms=yes
11845 else
11846 ac_cv_struct_tms=no
11847 fi
11848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11849 fi
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11851 $as_echo "$ac_cv_struct_tms" >&6; }
11852 if test $ac_cv_struct_tms = yes; then
11853
11854 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11855
11856 fi
11857
11858 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11859 # revisit after autoconf 2.50.
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11861 $as_echo_n "checking for clock_t... " >&6; }
11862 if ${gcc_cv_type_clock_t+:} false; then :
11863 $as_echo_n "(cached) " >&6
11864 else
11865
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11868
11869 #include "ansidecl.h"
11870 #include "system.h"
11871
11872 int
11873 main ()
11874 {
11875 clock_t x;
11876 ;
11877 return 0;
11878 }
11879 _ACEOF
11880 if ac_fn_cxx_try_compile "$LINENO"; then :
11881 gcc_cv_type_clock_t=yes
11882 else
11883 gcc_cv_type_clock_t=no
11884 fi
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886 fi
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11888 $as_echo "$gcc_cv_type_clock_t" >&6; }
11889 if test $gcc_cv_type_clock_t = yes; then
11890
11891 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11892
11893 fi
11894
11895 # Check if F_SETLKW is supported by fcntl.
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11897 $as_echo_n "checking for F_SETLKW... " >&6; }
11898 if ${ac_cv_f_setlkw+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11904
11905 #include <fcntl.h>
11906 int
11907 main ()
11908 {
11909
11910 struct flock fl;
11911 fl.l_whence = 0;
11912 fl.l_start = 0;
11913 fl.l_len = 0;
11914 fl.l_pid = 0;
11915 return fcntl (1, F_SETLKW, &fl);
11916 ;
11917 return 0;
11918 }
11919 _ACEOF
11920 if ac_fn_cxx_try_compile "$LINENO"; then :
11921 ac_cv_f_setlkw=yes
11922 else
11923 ac_cv_f_setlkw=no
11924 fi
11925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11926 fi
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11928 $as_echo "$ac_cv_f_setlkw" >&6; }
11929 if test $ac_cv_f_setlkw = yes; then
11930
11931 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11932
11933 fi
11934
11935 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11936 CFLAGS="$saved_CFLAGS"
11937 CXXFLAGS="$saved_CXXFLAGS"
11938
11939 # mkdir takes a single argument on some systems.
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11941 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11942 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11943 $as_echo_n "(cached) " >&6
11944 else
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11947
11948 #include <sys/types.h>
11949 #ifdef HAVE_SYS_STAT_H
11950 # include <sys/stat.h>
11951 #endif
11952 #ifdef HAVE_UNISTD_H
11953 # include <unistd.h>
11954 #endif
11955 #ifdef HAVE_DIRECT_H
11956 # include <direct.h>
11957 #endif
11958 int
11959 main ()
11960 {
11961 mkdir ("foo", 0);
11962 ;
11963 return 0;
11964 }
11965 _ACEOF
11966 if ac_fn_cxx_try_compile "$LINENO"; then :
11967 gcc_cv_mkdir_takes_one_arg=no
11968 else
11969 gcc_cv_mkdir_takes_one_arg=yes
11970 fi
11971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972 fi
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11974 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11975 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11976
11977 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11978
11979 fi
11980
11981
11982 # File extensions
11983 manext='.1'
11984 objext='.o'
11985
11986
11987
11988 # With Setjmp/Longjmp based exception handling.
11989 # Check whether --enable-sjlj-exceptions was given.
11990 if test "${enable_sjlj_exceptions+set}" = set; then :
11991 enableval=$enable_sjlj_exceptions; case $target in
11992 *-*-hpux10*)
11993 if test $enableval != yes; then
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11995 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11996 enableval=yes
11997 fi
11998 ;;
11999 esac
12000 force_sjlj_exceptions=yes
12001 else
12002 case $target in
12003 *-*-hpux10*)
12004 force_sjlj_exceptions=yes
12005 enableval=yes
12006 ;;
12007 lm32*-*-*)
12008 force_sjlj_exceptions=yes
12009 enableval=yes
12010 ;;
12011 *)
12012 force_sjlj_exceptions=no
12013 ;;
12014 esac
12015 fi
12016
12017 if test $force_sjlj_exceptions = yes; then
12018 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12019
12020 cat >>confdefs.h <<_ACEOF
12021 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12022 _ACEOF
12023
12024 fi
12025
12026 # --------------------------------------------------------
12027 # Build, host, and target specific configuration fragments
12028 # --------------------------------------------------------
12029
12030 # Collect build-machine-specific information.
12031 . ${srcdir}/config.build || exit 1
12032
12033 # Collect host-machine-specific information.
12034 . ${srcdir}/config.host || exit 1
12035
12036 target_gtfiles=
12037
12038 # Collect target-machine-specific information.
12039 . ${srcdir}/config.gcc || exit 1
12040
12041 extra_objs="${host_extra_objs} ${extra_objs}"
12042 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12043
12044 # Default the target-machine variables that were not explicitly set.
12045 if test x"$tm_file" = x
12046 then tm_file=$cpu_type/$cpu_type.h; fi
12047
12048 if test x"$extra_headers" = x
12049 then extra_headers=; fi
12050
12051 if test x$md_file = x
12052 then md_file=$cpu_type/$cpu_type.md; fi
12053
12054 if test x$out_file = x
12055 then out_file=$cpu_type/$cpu_type.c; fi
12056
12057 if test x"$tmake_file" = x
12058 then tmake_file=$cpu_type/t-$cpu_type
12059 fi
12060
12061 # Support --enable-initfini-array.
12062 if test x$enable_initfini_array != xno; then
12063 tm_file="${tm_file} initfini-array.h"
12064 fi
12065
12066 if test x"$dwarf2" = xyes
12067 then tm_file="$tm_file tm-dwarf2.h"
12068 fi
12069
12070 # Say what files are being used for the output code and MD file.
12071 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12072 echo "Using \`$srcdir/config/$md_file' as machine description file."
12073
12074 # If any of the xm_file variables contain nonexistent files, warn
12075 # about them and drop them.
12076
12077 bx=
12078 for x in $build_xm_file; do
12079 if test -f $srcdir/config/$x
12080 then bx="$bx $x"
12081 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12082 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12083 fi
12084 done
12085 build_xm_file="$bx"
12086
12087 hx=
12088 for x in $host_xm_file; do
12089 if test -f $srcdir/config/$x
12090 then hx="$hx $x"
12091 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12092 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12093 fi
12094 done
12095 host_xm_file="$hx"
12096
12097 tx=
12098 for x in $xm_file; do
12099 if test -f $srcdir/config/$x
12100 then tx="$tx $x"
12101 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12102 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12103 fi
12104 done
12105 xm_file="$tx"
12106
12107 count=a
12108 for f in $tm_file; do
12109 count=${count}x
12110 done
12111 if test $count = ax; then
12112 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12113 else
12114 echo "Using the following target machine macro files:"
12115 for f in $tm_file; do
12116 echo " $srcdir/config/$f"
12117 done
12118 fi
12119
12120 if test x$use_long_long_for_widest_fast_int = xyes; then
12121
12122 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12123
12124 fi
12125
12126 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12127
12128 cat >>confdefs.h <<_ACEOF
12129 #define HAVE_GNU_LD $gnu_ld_bool
12130 _ACEOF
12131
12132
12133 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12134
12135 cat >>confdefs.h <<_ACEOF
12136 #define HAVE_GNU_AS $gnu_as_bool
12137 _ACEOF
12138
12139
12140 count=a
12141 for f in $host_xm_file; do
12142 count=${count}x
12143 done
12144 if test $count = a; then
12145 :
12146 elif test $count = ax; then
12147 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12148 else
12149 echo "Using the following host machine macro files:"
12150 for f in $host_xm_file; do
12151 echo " $srcdir/config/$f"
12152 done
12153 fi
12154 echo "Using ${out_host_hook_obj} for host machine hooks."
12155
12156 if test "$host_xm_file" != "$build_xm_file"; then
12157 count=a
12158 for f in $build_xm_file; do
12159 count=${count}x
12160 done
12161 if test $count = a; then
12162 :
12163 elif test $count = ax; then
12164 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12165 else
12166 echo "Using the following build machine macro files:"
12167 for f in $build_xm_file; do
12168 echo " $srcdir/config/$f"
12169 done
12170 fi
12171 fi
12172
12173 if test -n "$configured_native_system_header_dir"; then
12174 native_system_header_dir=$configured_native_system_header_dir
12175 fi
12176 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12177
12178
12179 case ${host} in
12180 powerpc*-*-darwin*)
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12182 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12183 if ${gcc_cv_mcontext_underscores+:} false; then :
12184 $as_echo_n "(cached) " >&6
12185 else
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12188
12189 #include <sys/cdefs.h>
12190 #include <sys/signal.h>
12191 #include <ucontext.h>
12192 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12193
12194 _ACEOF
12195 if ac_fn_cxx_try_compile "$LINENO"; then :
12196 gcc_cv_mcontext_underscores=no
12197 else
12198 gcc_cv_mcontext_underscores=yes
12199 fi
12200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12201 fi
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12203 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12204 if test $gcc_cv_mcontext_underscores = yes; then
12205
12206 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12207
12208 fi
12209 ;;
12210 esac
12211
12212 # ---------
12213 # Threading
12214 # ---------
12215
12216 # Check if a valid thread package
12217 case ${enable_threads} in
12218 "" | no)
12219 # No threads
12220 target_thread_file='single'
12221 ;;
12222 yes)
12223 # default
12224 target_thread_file='single'
12225 ;;
12226 aix | dce | lynx | mipssde | posix | rtems | \
12227 single | tpf | vxworks | win32)
12228 target_thread_file=${enable_threads}
12229 ;;
12230 *)
12231 echo "${enable_threads} is an unknown thread package" 1>&2
12232 exit 1
12233 ;;
12234 esac
12235
12236 if test x${thread_file} = x; then
12237 # No thread file set by target-specific clauses in config.gcc,
12238 # so use file chosen by default logic above
12239 thread_file=${target_thread_file}
12240 fi
12241
12242 # --------
12243 # UNSORTED
12244 # --------
12245
12246 use_cxa_atexit=no
12247 if test x$enable___cxa_atexit = xyes || \
12248 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12249 if test x$host = x$target; then
12250 case $host in
12251 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12252 # keyed to flag_use_cxa_atexit
12253 *-*-mingw32*)
12254 use_cxa_atexit=yes
12255 ;;
12256 powerpc-ibm-aix*)
12257 use_cxa_atexit=yes
12258 ;;
12259 *)
12260 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12261 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12262 use_cxa_atexit=yes
12263 else
12264 echo "__cxa_atexit can't be enabled on this target"
12265 fi
12266
12267 ;;
12268 esac
12269 else
12270 # We can't check for __cxa_atexit when building a cross, so assume
12271 # it is available
12272 use_cxa_atexit=yes
12273 fi
12274 if test x$use_cxa_atexit = xyes; then
12275
12276 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12277
12278 fi
12279 fi
12280
12281 # Look for a file containing extra machine modes.
12282 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12283 extra_modes_file='$(srcdir)'/config/${extra_modes}
12284
12285
12286 cat >>confdefs.h <<_ACEOF
12287 #define EXTRA_MODES_FILE "config/$extra_modes"
12288 _ACEOF
12289
12290 fi
12291
12292 # Convert extra_options into a form suitable for Makefile use.
12293 extra_opt_files=
12294 all_opt_files=
12295 for f in $extra_options; do
12296 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12297 all_opt_files="$all_opt_files $srcdir/config/$f"
12298 done
12299
12300
12301 # auto-host.h is the file containing items generated by autoconf and is
12302 # the first file included by config.h.
12303 # If host=build, it is correct to have bconfig include auto-host.h
12304 # as well. If host!=build, we are in error and need to do more
12305 # work to find out the build config parameters.
12306 if test x$host = x$build
12307 then
12308 build_auto=auto-host.h
12309 HAVE_AUTO_BUILD='# '
12310 else
12311 # We create a subdir, then run autoconf in the subdir.
12312 # To prevent recursion we set host and build for the new
12313 # invocation of configure to the build for this invocation
12314 # of configure.
12315 tempdir=build.$$
12316 rm -rf $tempdir
12317 mkdir $tempdir
12318 cd $tempdir
12319 case ${srcdir} in
12320 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12321 *) realsrcdir=../${srcdir};;
12322 esac
12323 # Clearing GMPINC is necessary to prevent host headers being
12324 # used by the build compiler. Defining GENERATOR_FILE stops
12325 # system.h from including gmp.h.
12326 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12327 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12328 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12329 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
12330 ${realsrcdir}/configure \
12331 --enable-languages=${enable_languages-all} \
12332 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12333 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12334 --target=$target_alias --host=$build_alias \
12335 --build=$build_alias || exit # retaining $tempdir
12336
12337 # We just finished tests for the build machine, so rename
12338 # the file auto-build.h in the gcc directory.
12339 mv auto-host.h ../auto-build.h
12340 cd ..
12341 rm -rf $tempdir
12342 build_auto=auto-build.h
12343 HAVE_AUTO_BUILD=
12344 fi
12345
12346
12347
12348 tm_file="${tm_file} defaults.h"
12349 tm_p_file="${tm_p_file} tm-preds.h"
12350 tm_d_file="${tm_d_file} defaults.h"
12351 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12352 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12353 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12354 # put this back in temporarily.
12355 xm_file="auto-host.h ansidecl.h ${xm_file}"
12356
12357 # --------
12358 # UNSORTED
12359 # --------
12360
12361 # Compile in configure arguments.
12362 if test -f configargs.h ; then
12363 # Being re-configured.
12364 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12365 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12366 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12367 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12368 fi
12369 else
12370 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12371 fi
12372
12373 # Double all backslashes and backslash all quotes to turn
12374 # gcc_config_arguments into a C string.
12375 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12376 $gcc_config_arguments
12377 EOF
12378 gcc_config_arguments_str=`cat conftest.out`
12379 rm -f conftest.out
12380
12381 cat > configargs.h <<EOF
12382 /* Generated automatically. */
12383 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12384 static const char thread_model[] = "$thread_file";
12385
12386 static const struct {
12387 const char *name, *value;
12388 } configure_default_options[] = $configure_default_options;
12389 EOF
12390
12391 gcc_BASEVER=`cat $srcdir/BASE-VER`
12392 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12393 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12394 if test -f $srcdir/REVISION ; then
12395 gcc_REVISION=`cat $srcdir/REVISION`
12396 else
12397 gcc_REVISION=""
12398 fi
12399 cat > plugin-version.h <<EOF
12400 #include "configargs.h"
12401
12402 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12403 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12404 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12405 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12406
12407 static char basever[] = "$gcc_BASEVER";
12408 static char datestamp[] = "$gcc_DATESTAMP";
12409 static char devphase[] = "$gcc_DEVPHASE";
12410 static char revision[] = "$gcc_REVISION";
12411
12412 /* FIXME plugins: We should make the version information more precise.
12413 One way to do is to add a checksum. */
12414
12415 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12416 devphase, revision,
12417 configuration_arguments};
12418 EOF
12419
12420 # Determine what GCC version number to use in filesystem paths.
12421
12422 get_gcc_base_ver="cat"
12423
12424 # Check whether --with-gcc-major-version-only was given.
12425 if test "${with_gcc_major_version_only+set}" = set; then :
12426 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12427 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12428 fi
12429
12430 fi
12431
12432
12433
12434
12435 # Internationalization
12436 # If we haven't got the data from the intl directory,
12437 # assume NLS is disabled.
12438 USE_NLS=no
12439 LIBINTL=
12440 LIBINTL_DEP=
12441 INCINTL=
12442 XGETTEXT=
12443 GMSGFMT=
12444 POSUB=
12445
12446 if test -f ../intl/config.intl; then
12447 . ../intl/config.intl
12448 fi
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12450 $as_echo_n "checking whether NLS is requested... " >&6; }
12451 if test x"$USE_NLS" != xyes; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453 $as_echo "no" >&6; }
12454 else
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12456 $as_echo "yes" >&6; }
12457
12458 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12459
12460
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12462 $as_echo_n "checking for catalogs to be installed... " >&6; }
12463 # Look for .po and .gmo files in the source directory.
12464 CATALOGS=
12465 XLINGUAS=
12466 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12467 # If there aren't any .gmo files the shell will give us the
12468 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12469 # weeded out.
12470 case "$cat" in *\**)
12471 continue;;
12472 esac
12473 # The quadruple backslash is collapsed to a double backslash
12474 # by the backticks, then collapsed again by the double quotes,
12475 # leaving us with one backslash in the sed expression (right
12476 # before the dot that mustn't act as a wildcard).
12477 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12478 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12479 # The user is allowed to set LINGUAS to a list of languages to
12480 # install catalogs for. If it's empty that means "all of them."
12481 if test "x$LINGUAS" = x; then
12482 CATALOGS="$CATALOGS $cat"
12483 XLINGUAS="$XLINGUAS $lang"
12484 else
12485 case "$LINGUAS" in *$lang*)
12486 CATALOGS="$CATALOGS $cat"
12487 XLINGUAS="$XLINGUAS $lang"
12488 ;;
12489 esac
12490 fi
12491 done
12492 LINGUAS="$XLINGUAS"
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12494 $as_echo "$LINGUAS" >&6; }
12495
12496
12497 DATADIRNAME=share
12498
12499 INSTOBJEXT=.mo
12500
12501 GENCAT=gencat
12502
12503 CATOBJEXT=.gmo
12504
12505 fi
12506
12507 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12508 # -liconv on the link line twice.
12509 case "$LIBINTL" in *$LIBICONV*)
12510 LIBICONV= ;;
12511 esac
12512
12513 # Check whether --enable-secureplt was given.
12514 if test "${enable_secureplt+set}" = set; then :
12515 enableval=$enable_secureplt;
12516 fi
12517
12518
12519 # Check whether --enable-mingw-wildcard was given.
12520 if test "${enable_mingw_wildcard+set}" = set; then :
12521 enableval=$enable_mingw_wildcard;
12522 else
12523 enable_mingw_wildcard=platform
12524 fi
12525
12526 if test x"$enable_mingw_wildcard" != xplatform ; then :
12527
12528 cat >>confdefs.h <<_ACEOF
12529 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12530 _ACEOF
12531
12532 fi
12533
12534 # Check whether --enable-large-address-aware was given.
12535 if test "${enable_large_address_aware+set}" = set; then :
12536 enableval=$enable_large_address_aware;
12537 fi
12538
12539 if test x"$enable_large_address_aware" = xyes; then :
12540
12541 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12542
12543 fi
12544
12545 # Check whether --enable-leading-mingw64-underscores was given.
12546 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12547 enableval=$enable_leading_mingw64_underscores;
12548 fi
12549
12550 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12551
12552 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12553
12554 fi
12555
12556 # Check whether --enable-cld was given.
12557 if test "${enable_cld+set}" = set; then :
12558 enableval=$enable_cld;
12559 else
12560 enable_cld=no
12561 fi
12562
12563
12564 # Check whether --enable-frame-pointer was given.
12565 if test "${enable_frame_pointer+set}" = set; then :
12566 enableval=$enable_frame_pointer;
12567 else
12568
12569 case $target_os in
12570 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12571 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12572 enable_frame_pointer=no
12573 ;;
12574 *)
12575 enable_frame_pointer=yes
12576 ;;
12577 esac
12578
12579 fi
12580
12581
12582 case $target in
12583 i[34567]86-*-* | x86_64-*-*)
12584 if test "x$enable_cld" = xyes; then
12585 tm_defines="${tm_defines} USE_IX86_CLD=1"
12586 fi
12587 if test "x$enable_frame_pointer" = xyes; then
12588 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12589 fi
12590 ;;
12591 esac
12592
12593 # Windows32 Registry support for specifying GCC installation paths.
12594 # Check whether --enable-win32-registry was given.
12595 if test "${enable_win32_registry+set}" = set; then :
12596 enableval=$enable_win32_registry;
12597 fi
12598
12599
12600 case $host_os in
12601 win32 | pe | cygwin* | mingw32*)
12602 if test "x$enable_win32_registry" != xno; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12604 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12605 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12606 $as_echo_n "(cached) " >&6
12607 else
12608 ac_func_search_save_LIBS=$LIBS
12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12611
12612 /* Override any GCC internal prototype to avoid an error.
12613 Use char because int might match the return type of a GCC
12614 builtin and then its argument prototype would still apply. */
12615 #ifdef __cplusplus
12616 extern "C"
12617 #endif
12618 char RegOpenKeyExA ();
12619 int
12620 main ()
12621 {
12622 return RegOpenKeyExA ();
12623 ;
12624 return 0;
12625 }
12626 _ACEOF
12627 for ac_lib in '' advapi32; do
12628 if test -z "$ac_lib"; then
12629 ac_res="none required"
12630 else
12631 ac_res=-l$ac_lib
12632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12633 fi
12634 if ac_fn_cxx_try_link "$LINENO"; then :
12635 ac_cv_search_RegOpenKeyExA=$ac_res
12636 fi
12637 rm -f core conftest.err conftest.$ac_objext \
12638 conftest$ac_exeext
12639 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12640 break
12641 fi
12642 done
12643 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12644
12645 else
12646 ac_cv_search_RegOpenKeyExA=no
12647 fi
12648 rm conftest.$ac_ext
12649 LIBS=$ac_func_search_save_LIBS
12650 fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12652 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12653 ac_res=$ac_cv_search_RegOpenKeyExA
12654 if test "$ac_res" != no; then :
12655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12656
12657 else
12658 enable_win32_registry=no
12659 fi
12660
12661 fi
12662
12663 if test "x$enable_win32_registry" != xno; then
12664
12665 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12666
12667
12668 if test "x$enable_win32_registry" != xyes \
12669 && test "x$enable_win32_registry" != x; then
12670
12671 cat >>confdefs.h <<_ACEOF
12672 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12673 _ACEOF
12674
12675 fi
12676 fi
12677 ;;
12678 esac
12679
12680 # Get an absolute path to the GCC top-level source directory
12681 holddir=`${PWDCMD-pwd}`
12682 cd $srcdir
12683 topdir=`${PWDCMD-pwd}`
12684 cd $holddir
12685
12686 # Conditionalize the makefile for this host machine.
12687 xmake_file=
12688 for f in ${host_xmake_file}
12689 do
12690 if test -f ${srcdir}/config/$f
12691 then
12692 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12693 fi
12694 done
12695
12696 # Conditionalize the makefile for this target machine.
12697 tmake_file_=
12698 for f in ${tmake_file}
12699 do
12700 if test -f ${srcdir}/config/$f
12701 then
12702 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12703 fi
12704 done
12705 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
12706
12707 out_object_file=`basename $out_file .c`.o
12708 common_out_object_file=`basename $common_out_file .c`.o
12709
12710 tm_file_list="options.h"
12711 tm_include_list="options.h insn-constants.h"
12712 for f in $tm_file; do
12713 case $f in
12714 ./* )
12715 f=`echo $f | sed 's/^..//'`
12716 tm_file_list="${tm_file_list} $f"
12717 tm_include_list="${tm_include_list} $f"
12718 ;;
12719 defaults.h )
12720 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12721 tm_include_list="${tm_include_list} $f"
12722 ;;
12723 * )
12724 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12725 tm_include_list="${tm_include_list} config/$f"
12726 ;;
12727 esac
12728 done
12729
12730 tm_p_file_list=
12731 tm_p_include_list=
12732 for f in $tm_p_file; do
12733 case $f in
12734 tm-preds.h )
12735 tm_p_file_list="${tm_p_file_list} $f"
12736 tm_p_include_list="${tm_p_include_list} $f"
12737 ;;
12738 * )
12739 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12740 tm_p_include_list="${tm_p_include_list} config/$f"
12741 esac
12742 done
12743
12744 tm_d_file_list=
12745 tm_d_include_list="options.h insn-constants.h"
12746 for f in $tm_d_file; do
12747 case $f in
12748 defaults.h )
12749 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12750 tm_d_include_list="${tm_d_include_list} $f"
12751 ;;
12752 * )
12753 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12754 tm_d_include_list="${tm_d_include_list} config/$f"
12755 ;;
12756 esac
12757 done
12758
12759 xm_file_list=
12760 xm_include_list=
12761 for f in $xm_file; do
12762 case $f in
12763 ansidecl.h )
12764 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12765 xm_include_list="${xm_include_list} $f"
12766 ;;
12767 auto-host.h )
12768 xm_file_list="${xm_file_list} $f"
12769 xm_include_list="${xm_include_list} $f"
12770 ;;
12771 * )
12772 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12773 xm_include_list="${xm_include_list} config/$f"
12774 ;;
12775 esac
12776 done
12777
12778 host_xm_file_list=
12779 host_xm_include_list=
12780 for f in $host_xm_file; do
12781 case $f in
12782 ansidecl.h )
12783 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12784 host_xm_include_list="${host_xm_include_list} $f"
12785 ;;
12786 auto-host.h )
12787 host_xm_file_list="${host_xm_file_list} $f"
12788 host_xm_include_list="${host_xm_include_list} $f"
12789 ;;
12790 * )
12791 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12792 host_xm_include_list="${host_xm_include_list} config/$f"
12793 ;;
12794 esac
12795 done
12796
12797 build_xm_file_list=
12798 for f in $build_xm_file; do
12799 case $f in
12800 ansidecl.h )
12801 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12802 build_xm_include_list="${build_xm_include_list} $f"
12803 ;;
12804 auto-build.h | auto-host.h )
12805 build_xm_file_list="${build_xm_file_list} $f"
12806 build_xm_include_list="${build_xm_include_list} $f"
12807 ;;
12808 * )
12809 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12810 build_xm_include_list="${build_xm_include_list} config/$f"
12811 ;;
12812 esac
12813 done
12814
12815 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12816 # cross-compiler which does not use the native headers and libraries.
12817 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12818 CROSS=
12819 ALL=all.internal
12820 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12821 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12822
12823 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12824 test x$build != x$host || test "x$with_build_sysroot" != x; then
12825 if test "x$with_build_sysroot" != x; then
12826 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12827 else
12828 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12829 fi
12830
12831 if test x$host != x$target
12832 then
12833 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12834 ALL=all.cross
12835 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12836 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12837 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12838 fi
12839
12840 if test "x$with_build_sysroot" != "x"; then
12841 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12842 elif test "x$with_sysroot" = x; then
12843 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12844 elif test "x$with_sysroot" = xyes; then
12845 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12846 else
12847 target_header_dir="${with_sysroot}${native_system_header_dir}"
12848 fi
12849 else
12850 target_header_dir=${native_system_header_dir}
12851 fi
12852
12853 # If this is a cross-compiler that does not
12854 # have its own set of headers then define
12855 # inhibit_libc
12856
12857 # If this is using newlib, without having the headers available now,
12858 # then define inhibit_libc in LIBGCC2_CFLAGS.
12859 # This prevents libgcc2 from containing any code which requires libc
12860 # support.
12861 : ${inhibit_libc=false}
12862 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12863 test x$with_newlib = xyes ; } &&
12864 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12865 inhibit_libc=true
12866 fi
12867
12868
12869 # When building gcc with a cross-compiler, we need to adjust things so
12870 # that the generator programs are still built with the native compiler.
12871 # Also, we cannot run fixincludes.
12872
12873 # These are the normal (build=host) settings:
12874 CC_FOR_BUILD='$(CC)'
12875 CXX_FOR_BUILD='$(CXX)'
12876 BUILD_CFLAGS='$(ALL_CFLAGS)'
12877 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12878 BUILD_LDFLAGS='$(LDFLAGS)'
12879 STMP_FIXINC=stmp-fixinc
12880
12881 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12882 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12883
12884 # And these apply if build != host, or we are generating coverage data
12885 if test x$build != x$host || test "x$coverage_flags" != x
12886 then
12887 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12888 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12889 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12890
12891 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12892 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12893 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12894 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12895 fi
12896
12897
12898
12899 # Expand extra_headers to include complete path.
12900 # This substitutes for lots of t-* files.
12901 extra_headers_list=
12902 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12903 for file in ${extra_headers} ; do
12904 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12905 done
12906
12907 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12908 if test x"$use_gcc_tgmath" = xyes
12909 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12910 fi
12911
12912 # Define collect2 in Makefile.
12913 case $host_can_use_collect2 in
12914 no) collect2= ;;
12915 *) collect2='collect2$(exeext)' ;;
12916 esac
12917
12918
12919 # Add a definition of USE_COLLECT2 if system wants one.
12920 case $use_collect2 in
12921 no) use_collect2= ;;
12922 "") ;;
12923 *)
12924 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12925 xm_defines="${xm_defines} USE_COLLECT2"
12926 case $host_can_use_collect2 in
12927 no)
12928 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12929 ;;
12930 esac
12931 ;;
12932 esac
12933
12934
12935 cat >>confdefs.h <<_ACEOF
12936 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12937 _ACEOF
12938
12939
12940 # ---------------------------
12941 # Assembler & linker features
12942 # ---------------------------
12943
12944 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12945 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12946 # However when ld-new is first executed from the build tree, libtool will
12947 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12948 # to the build tree. While doing this we need to use the previous-stage
12949 # linker, or we have an infinite loop. The presence of a shell script as
12950 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12951 # the gcc/collect-ld script. So we need to know how libtool works, or
12952 # exec-tool will fail.
12953
12954
12955 case `pwd` in
12956 *\ * | *\ *)
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12958 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12959 esac
12960
12961
12962
12963 macro_version='2.2.7a'
12964 macro_revision='1.3134'
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978 ltmain="$ac_aux_dir/ltmain.sh"
12979
12980 # Backslashify metacharacters that are still active within
12981 # double-quoted strings.
12982 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12983
12984 # Same as above, but do not quote variable references.
12985 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12986
12987 # Sed substitution to delay expansion of an escaped shell variable in a
12988 # double_quote_subst'ed string.
12989 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12990
12991 # Sed substitution to delay expansion of an escaped single quote.
12992 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12993
12994 # Sed substitution to avoid accidental globbing in evaled expressions
12995 no_glob_subst='s/\*/\\\*/g'
12996
12997 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12998 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12999 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13000
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13002 $as_echo_n "checking how to print strings... " >&6; }
13003 # Test print first, because it will be a builtin if present.
13004 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13005 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13006 ECHO='print -r --'
13007 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13008 ECHO='printf %s\n'
13009 else
13010 # Use this function as a fallback that always works.
13011 func_fallback_echo ()
13012 {
13013 eval 'cat <<_LTECHO_EOF
13014 $1
13015 _LTECHO_EOF'
13016 }
13017 ECHO='func_fallback_echo'
13018 fi
13019
13020 # func_echo_all arg...
13021 # Invoke $ECHO with all args, space-separated.
13022 func_echo_all ()
13023 {
13024 $ECHO ""
13025 }
13026
13027 case "$ECHO" in
13028 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13029 $as_echo "printf" >&6; } ;;
13030 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13031 $as_echo "print -r" >&6; } ;;
13032 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13033 $as_echo "cat" >&6; } ;;
13034 esac
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13050 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13051 if ${ac_cv_path_SED+:} false; then :
13052 $as_echo_n "(cached) " >&6
13053 else
13054 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13055 for ac_i in 1 2 3 4 5 6 7; do
13056 ac_script="$ac_script$as_nl$ac_script"
13057 done
13058 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13059 { ac_script=; unset ac_script;}
13060 if test -z "$SED"; then
13061 ac_path_SED_found=false
13062 # Loop through the user's path and test for each of PROGNAME-LIST
13063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064 for as_dir in $PATH
13065 do
13066 IFS=$as_save_IFS
13067 test -z "$as_dir" && as_dir=.
13068 for ac_prog in sed gsed; do
13069 for ac_exec_ext in '' $ac_executable_extensions; do
13070 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13071 as_fn_executable_p "$ac_path_SED" || continue
13072 # Check for GNU ac_path_SED and select it if it is found.
13073 # Check for GNU $ac_path_SED
13074 case `"$ac_path_SED" --version 2>&1` in
13075 *GNU*)
13076 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13077 *)
13078 ac_count=0
13079 $as_echo_n 0123456789 >"conftest.in"
13080 while :
13081 do
13082 cat "conftest.in" "conftest.in" >"conftest.tmp"
13083 mv "conftest.tmp" "conftest.in"
13084 cp "conftest.in" "conftest.nl"
13085 $as_echo '' >> "conftest.nl"
13086 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13088 as_fn_arith $ac_count + 1 && ac_count=$as_val
13089 if test $ac_count -gt ${ac_path_SED_max-0}; then
13090 # Best one so far, save it but keep looking for a better one
13091 ac_cv_path_SED="$ac_path_SED"
13092 ac_path_SED_max=$ac_count
13093 fi
13094 # 10*(2^10) chars as input seems more than enough
13095 test $ac_count -gt 10 && break
13096 done
13097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13098 esac
13099
13100 $ac_path_SED_found && break 3
13101 done
13102 done
13103 done
13104 IFS=$as_save_IFS
13105 if test -z "$ac_cv_path_SED"; then
13106 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13107 fi
13108 else
13109 ac_cv_path_SED=$SED
13110 fi
13111
13112 fi
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13114 $as_echo "$ac_cv_path_SED" >&6; }
13115 SED="$ac_cv_path_SED"
13116 rm -f conftest.sed
13117
13118 test -z "$SED" && SED=sed
13119 Xsed="$SED -e 1s/^X//"
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13132 $as_echo_n "checking for fgrep... " >&6; }
13133 if ${ac_cv_path_FGREP+:} false; then :
13134 $as_echo_n "(cached) " >&6
13135 else
13136 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13137 then ac_cv_path_FGREP="$GREP -F"
13138 else
13139 if test -z "$FGREP"; then
13140 ac_path_FGREP_found=false
13141 # Loop through the user's path and test for each of PROGNAME-LIST
13142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13144 do
13145 IFS=$as_save_IFS
13146 test -z "$as_dir" && as_dir=.
13147 for ac_prog in fgrep; do
13148 for ac_exec_ext in '' $ac_executable_extensions; do
13149 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13150 as_fn_executable_p "$ac_path_FGREP" || continue
13151 # Check for GNU ac_path_FGREP and select it if it is found.
13152 # Check for GNU $ac_path_FGREP
13153 case `"$ac_path_FGREP" --version 2>&1` in
13154 *GNU*)
13155 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13156 *)
13157 ac_count=0
13158 $as_echo_n 0123456789 >"conftest.in"
13159 while :
13160 do
13161 cat "conftest.in" "conftest.in" >"conftest.tmp"
13162 mv "conftest.tmp" "conftest.in"
13163 cp "conftest.in" "conftest.nl"
13164 $as_echo 'FGREP' >> "conftest.nl"
13165 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13167 as_fn_arith $ac_count + 1 && ac_count=$as_val
13168 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13169 # Best one so far, save it but keep looking for a better one
13170 ac_cv_path_FGREP="$ac_path_FGREP"
13171 ac_path_FGREP_max=$ac_count
13172 fi
13173 # 10*(2^10) chars as input seems more than enough
13174 test $ac_count -gt 10 && break
13175 done
13176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13177 esac
13178
13179 $ac_path_FGREP_found && break 3
13180 done
13181 done
13182 done
13183 IFS=$as_save_IFS
13184 if test -z "$ac_cv_path_FGREP"; then
13185 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13186 fi
13187 else
13188 ac_cv_path_FGREP=$FGREP
13189 fi
13190
13191 fi
13192 fi
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13194 $as_echo "$ac_cv_path_FGREP" >&6; }
13195 FGREP="$ac_cv_path_FGREP"
13196
13197
13198 test -z "$GREP" && GREP=grep
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218 # Check whether --with-gnu-ld was given.
13219 if test "${with_gnu_ld+set}" = set; then :
13220 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13221 else
13222 with_gnu_ld=no
13223 fi
13224
13225 ac_prog=ld
13226 if test "$GCC" = yes; then
13227 # Check if gcc -print-prog-name=ld gives a path.
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13229 $as_echo_n "checking for ld used by $CC... " >&6; }
13230 case $host in
13231 *-*-mingw*)
13232 # gcc leaves a trailing carriage return which upsets mingw
13233 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13234 *)
13235 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13236 esac
13237 case $ac_prog in
13238 # Accept absolute paths.
13239 [\\/]* | ?:[\\/]*)
13240 re_direlt='/[^/][^/]*/\.\./'
13241 # Canonicalize the pathname of ld
13242 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13243 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13244 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13245 done
13246 test -z "$LD" && LD="$ac_prog"
13247 ;;
13248 "")
13249 # If it fails, then pretend we aren't using GCC.
13250 ac_prog=ld
13251 ;;
13252 *)
13253 # If it is relative, then search for the first ld in PATH.
13254 with_gnu_ld=unknown
13255 ;;
13256 esac
13257 elif test "$with_gnu_ld" = yes; then
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13259 $as_echo_n "checking for GNU ld... " >&6; }
13260 else
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13262 $as_echo_n "checking for non-GNU ld... " >&6; }
13263 fi
13264 if ${lt_cv_path_LD+:} false; then :
13265 $as_echo_n "(cached) " >&6
13266 else
13267 if test -z "$LD"; then
13268 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13269 for ac_dir in $PATH; do
13270 IFS="$lt_save_ifs"
13271 test -z "$ac_dir" && ac_dir=.
13272 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13273 lt_cv_path_LD="$ac_dir/$ac_prog"
13274 # Check to see if the program is GNU ld. I'd rather use --version,
13275 # but apparently some variants of GNU ld only accept -v.
13276 # Break only if it was the GNU/non-GNU ld that we prefer.
13277 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13278 *GNU* | *'with BFD'*)
13279 test "$with_gnu_ld" != no && break
13280 ;;
13281 *)
13282 test "$with_gnu_ld" != yes && break
13283 ;;
13284 esac
13285 fi
13286 done
13287 IFS="$lt_save_ifs"
13288 else
13289 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13290 fi
13291 fi
13292
13293 LD="$lt_cv_path_LD"
13294 if test -n "$LD"; then
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13296 $as_echo "$LD" >&6; }
13297 else
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299 $as_echo "no" >&6; }
13300 fi
13301 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13303 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13304 if ${lt_cv_prog_gnu_ld+:} false; then :
13305 $as_echo_n "(cached) " >&6
13306 else
13307 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13308 case `$LD -v 2>&1 </dev/null` in
13309 *GNU* | *'with BFD'*)
13310 lt_cv_prog_gnu_ld=yes
13311 ;;
13312 *)
13313 lt_cv_prog_gnu_ld=no
13314 ;;
13315 esac
13316 fi
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13318 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13319 with_gnu_ld=$lt_cv_prog_gnu_ld
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13330 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13331 if ${lt_cv_path_NM+:} false; then :
13332 $as_echo_n "(cached) " >&6
13333 else
13334 if test -n "$NM"; then
13335 # Let the user override the test.
13336 lt_cv_path_NM="$NM"
13337 else
13338 lt_nm_to_check="${ac_tool_prefix}nm"
13339 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13340 lt_nm_to_check="$lt_nm_to_check nm"
13341 fi
13342 for lt_tmp_nm in $lt_nm_to_check; do
13343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13344 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13345 IFS="$lt_save_ifs"
13346 test -z "$ac_dir" && ac_dir=.
13347 tmp_nm="$ac_dir/$lt_tmp_nm"
13348 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13349 # Check to see if the nm accepts a BSD-compat flag.
13350 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13351 # nm: unknown option "B" ignored
13352 # Tru64's nm complains that /dev/null is an invalid object file
13353 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13354 */dev/null* | *'Invalid file or object type'*)
13355 lt_cv_path_NM="$tmp_nm -B"
13356 break
13357 ;;
13358 *)
13359 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13360 */dev/null*)
13361 lt_cv_path_NM="$tmp_nm -p"
13362 break
13363 ;;
13364 *)
13365 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13366 continue # so that we can try to find one that supports BSD flags
13367 ;;
13368 esac
13369 ;;
13370 esac
13371 fi
13372 done
13373 IFS="$lt_save_ifs"
13374 done
13375 : ${lt_cv_path_NM=no}
13376 fi
13377 fi
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13379 $as_echo "$lt_cv_path_NM" >&6; }
13380 if test "$lt_cv_path_NM" != "no"; then
13381 NM="$lt_cv_path_NM"
13382 else
13383 # Didn't find any BSD compatible name lister, look for dumpbin.
13384 if test -n "$DUMPBIN"; then :
13385 # Let the user override the test.
13386 else
13387 if test -n "$ac_tool_prefix"; then
13388 for ac_prog in dumpbin "link -dump"
13389 do
13390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13393 $as_echo_n "checking for $ac_word... " >&6; }
13394 if ${ac_cv_prog_DUMPBIN+:} false; then :
13395 $as_echo_n "(cached) " >&6
13396 else
13397 if test -n "$DUMPBIN"; then
13398 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13399 else
13400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401 for as_dir in $PATH
13402 do
13403 IFS=$as_save_IFS
13404 test -z "$as_dir" && as_dir=.
13405 for ac_exec_ext in '' $ac_executable_extensions; do
13406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13407 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13409 break 2
13410 fi
13411 done
13412 done
13413 IFS=$as_save_IFS
13414
13415 fi
13416 fi
13417 DUMPBIN=$ac_cv_prog_DUMPBIN
13418 if test -n "$DUMPBIN"; then
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13420 $as_echo "$DUMPBIN" >&6; }
13421 else
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423 $as_echo "no" >&6; }
13424 fi
13425
13426
13427 test -n "$DUMPBIN" && break
13428 done
13429 fi
13430 if test -z "$DUMPBIN"; then
13431 ac_ct_DUMPBIN=$DUMPBIN
13432 for ac_prog in dumpbin "link -dump"
13433 do
13434 # Extract the first word of "$ac_prog", so it can be a program name with args.
13435 set dummy $ac_prog; ac_word=$2
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13437 $as_echo_n "checking for $ac_word... " >&6; }
13438 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13439 $as_echo_n "(cached) " >&6
13440 else
13441 if test -n "$ac_ct_DUMPBIN"; then
13442 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13443 else
13444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13445 for as_dir in $PATH
13446 do
13447 IFS=$as_save_IFS
13448 test -z "$as_dir" && as_dir=.
13449 for ac_exec_ext in '' $ac_executable_extensions; do
13450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13451 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13453 break 2
13454 fi
13455 done
13456 done
13457 IFS=$as_save_IFS
13458
13459 fi
13460 fi
13461 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13462 if test -n "$ac_ct_DUMPBIN"; then
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13464 $as_echo "$ac_ct_DUMPBIN" >&6; }
13465 else
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467 $as_echo "no" >&6; }
13468 fi
13469
13470
13471 test -n "$ac_ct_DUMPBIN" && break
13472 done
13473
13474 if test "x$ac_ct_DUMPBIN" = x; then
13475 DUMPBIN=":"
13476 else
13477 case $cross_compiling:$ac_tool_warned in
13478 yes:)
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13481 ac_tool_warned=yes ;;
13482 esac
13483 DUMPBIN=$ac_ct_DUMPBIN
13484 fi
13485 fi
13486
13487 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13488 *COFF*)
13489 DUMPBIN="$DUMPBIN -symbols"
13490 ;;
13491 *)
13492 DUMPBIN=:
13493 ;;
13494 esac
13495 fi
13496
13497 if test "$DUMPBIN" != ":"; then
13498 NM="$DUMPBIN"
13499 fi
13500 fi
13501 test -z "$NM" && NM=nm
13502
13503
13504
13505
13506
13507
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13509 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13510 if ${lt_cv_nm_interface+:} false; then :
13511 $as_echo_n "(cached) " >&6
13512 else
13513 lt_cv_nm_interface="BSD nm"
13514 echo "int some_variable = 0;" > conftest.$ac_ext
13515 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13516 (eval "$ac_compile" 2>conftest.err)
13517 cat conftest.err >&5
13518 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13519 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13520 cat conftest.err >&5
13521 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13522 cat conftest.out >&5
13523 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13524 lt_cv_nm_interface="MS dumpbin"
13525 fi
13526 rm -f conftest*
13527 fi
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13529 $as_echo "$lt_cv_nm_interface" >&6; }
13530
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13532 $as_echo_n "checking whether ln -s works... " >&6; }
13533 LN_S=$as_ln_s
13534 if test "$LN_S" = "ln -s"; then
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13536 $as_echo "yes" >&6; }
13537 else
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13539 $as_echo "no, using $LN_S" >&6; }
13540 fi
13541
13542 # find the maximum length of command line arguments
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13544 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13545 if ${lt_cv_sys_max_cmd_len+:} false; then :
13546 $as_echo_n "(cached) " >&6
13547 else
13548 i=0
13549 teststring="ABCD"
13550
13551 case $build_os in
13552 msdosdjgpp*)
13553 # On DJGPP, this test can blow up pretty badly due to problems in libc
13554 # (any single argument exceeding 2000 bytes causes a buffer overrun
13555 # during glob expansion). Even if it were fixed, the result of this
13556 # check would be larger than it should be.
13557 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13558 ;;
13559
13560 gnu*)
13561 # Under GNU Hurd, this test is not required because there is
13562 # no limit to the length of command line arguments.
13563 # Libtool will interpret -1 as no limit whatsoever
13564 lt_cv_sys_max_cmd_len=-1;
13565 ;;
13566
13567 cygwin* | mingw* | cegcc*)
13568 # On Win9x/ME, this test blows up -- it succeeds, but takes
13569 # about 5 minutes as the teststring grows exponentially.
13570 # Worse, since 9x/ME are not pre-emptively multitasking,
13571 # you end up with a "frozen" computer, even though with patience
13572 # the test eventually succeeds (with a max line length of 256k).
13573 # Instead, let's just punt: use the minimum linelength reported by
13574 # all of the supported platforms: 8192 (on NT/2K/XP).
13575 lt_cv_sys_max_cmd_len=8192;
13576 ;;
13577
13578 mint*)
13579 # On MiNT this can take a long time and run out of memory.
13580 lt_cv_sys_max_cmd_len=8192;
13581 ;;
13582
13583 amigaos*)
13584 # On AmigaOS with pdksh, this test takes hours, literally.
13585 # So we just punt and use a minimum line length of 8192.
13586 lt_cv_sys_max_cmd_len=8192;
13587 ;;
13588
13589 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13590 # This has been around since 386BSD, at least. Likely further.
13591 if test -x /sbin/sysctl; then
13592 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13593 elif test -x /usr/sbin/sysctl; then
13594 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13595 else
13596 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13597 fi
13598 # And add a safety zone
13599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13601 ;;
13602
13603 interix*)
13604 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13605 lt_cv_sys_max_cmd_len=196608
13606 ;;
13607
13608 osf*)
13609 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13610 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13611 # nice to cause kernel panics so lets avoid the loop below.
13612 # First set a reasonable default.
13613 lt_cv_sys_max_cmd_len=16384
13614 #
13615 if test -x /sbin/sysconfig; then
13616 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13617 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13618 esac
13619 fi
13620 ;;
13621 sco3.2v5*)
13622 lt_cv_sys_max_cmd_len=102400
13623 ;;
13624 sysv5* | sco5v6* | sysv4.2uw2*)
13625 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13626 if test -n "$kargmax"; then
13627 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13628 else
13629 lt_cv_sys_max_cmd_len=32768
13630 fi
13631 ;;
13632 *)
13633 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13634 if test -n "$lt_cv_sys_max_cmd_len"; then
13635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13637 else
13638 # Make teststring a little bigger before we do anything with it.
13639 # a 1K string should be a reasonable start.
13640 for i in 1 2 3 4 5 6 7 8 ; do
13641 teststring=$teststring$teststring
13642 done
13643 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13644 # If test is not a shell built-in, we'll probably end up computing a
13645 # maximum length that is only half of the actual maximum length, but
13646 # we can't tell.
13647 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13648 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13649 test $i != 17 # 1/2 MB should be enough
13650 do
13651 i=`expr $i + 1`
13652 teststring=$teststring$teststring
13653 done
13654 # Only check the string length outside the loop.
13655 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13656 teststring=
13657 # Add a significant safety factor because C++ compilers can tack on
13658 # massive amounts of additional arguments before passing them to the
13659 # linker. It appears as though 1/2 is a usable value.
13660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13661 fi
13662 ;;
13663 esac
13664
13665 fi
13666
13667 if test -n $lt_cv_sys_max_cmd_len ; then
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13669 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13670 else
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13672 $as_echo "none" >&6; }
13673 fi
13674 max_cmd_len=$lt_cv_sys_max_cmd_len
13675
13676
13677
13678
13679
13680
13681 : ${CP="cp -f"}
13682 : ${MV="mv -f"}
13683 : ${RM="rm -f"}
13684
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13686 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13687 # Try some XSI features
13688 xsi_shell=no
13689 ( _lt_dummy="a/b/c"
13690 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13691 = c,a/b,, \
13692 && eval 'test $(( 1 + 1 )) -eq 2 \
13693 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13694 && xsi_shell=yes
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13696 $as_echo "$xsi_shell" >&6; }
13697
13698
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13700 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13701 lt_shell_append=no
13702 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13703 >/dev/null 2>&1 \
13704 && lt_shell_append=yes
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13706 $as_echo "$lt_shell_append" >&6; }
13707
13708
13709 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13710 lt_unset=unset
13711 else
13712 lt_unset=false
13713 fi
13714
13715
13716
13717
13718
13719 # test EBCDIC or ASCII
13720 case `echo X|tr X '\101'` in
13721 A) # ASCII based system
13722 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13723 lt_SP2NL='tr \040 \012'
13724 lt_NL2SP='tr \015\012 \040\040'
13725 ;;
13726 *) # EBCDIC based system
13727 lt_SP2NL='tr \100 \n'
13728 lt_NL2SP='tr \r\n \100\100'
13729 ;;
13730 esac
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13741 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13742 if ${lt_cv_ld_reload_flag+:} false; then :
13743 $as_echo_n "(cached) " >&6
13744 else
13745 lt_cv_ld_reload_flag='-r'
13746 fi
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13748 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13749 reload_flag=$lt_cv_ld_reload_flag
13750 case $reload_flag in
13751 "" | " "*) ;;
13752 *) reload_flag=" $reload_flag" ;;
13753 esac
13754 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13755 case $host_os in
13756 darwin*)
13757 if test "$GCC" = yes; then
13758 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13759 else
13760 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13761 fi
13762 ;;
13763 esac
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773 if test -n "$ac_tool_prefix"; then
13774 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13775 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13777 $as_echo_n "checking for $ac_word... " >&6; }
13778 if ${ac_cv_prog_OBJDUMP+:} false; then :
13779 $as_echo_n "(cached) " >&6
13780 else
13781 if test -n "$OBJDUMP"; then
13782 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13783 else
13784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13785 for as_dir in $PATH
13786 do
13787 IFS=$as_save_IFS
13788 test -z "$as_dir" && as_dir=.
13789 for ac_exec_ext in '' $ac_executable_extensions; do
13790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13791 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13793 break 2
13794 fi
13795 done
13796 done
13797 IFS=$as_save_IFS
13798
13799 fi
13800 fi
13801 OBJDUMP=$ac_cv_prog_OBJDUMP
13802 if test -n "$OBJDUMP"; then
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13804 $as_echo "$OBJDUMP" >&6; }
13805 else
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13807 $as_echo "no" >&6; }
13808 fi
13809
13810
13811 fi
13812 if test -z "$ac_cv_prog_OBJDUMP"; then
13813 ac_ct_OBJDUMP=$OBJDUMP
13814 # Extract the first word of "objdump", so it can be a program name with args.
13815 set dummy objdump; ac_word=$2
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13817 $as_echo_n "checking for $ac_word... " >&6; }
13818 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13819 $as_echo_n "(cached) " >&6
13820 else
13821 if test -n "$ac_ct_OBJDUMP"; then
13822 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13823 else
13824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825 for as_dir in $PATH
13826 do
13827 IFS=$as_save_IFS
13828 test -z "$as_dir" && as_dir=.
13829 for ac_exec_ext in '' $ac_executable_extensions; do
13830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13831 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13833 break 2
13834 fi
13835 done
13836 done
13837 IFS=$as_save_IFS
13838
13839 fi
13840 fi
13841 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13842 if test -n "$ac_ct_OBJDUMP"; then
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13844 $as_echo "$ac_ct_OBJDUMP" >&6; }
13845 else
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847 $as_echo "no" >&6; }
13848 fi
13849
13850 if test "x$ac_ct_OBJDUMP" = x; then
13851 OBJDUMP="false"
13852 else
13853 case $cross_compiling:$ac_tool_warned in
13854 yes:)
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13857 ac_tool_warned=yes ;;
13858 esac
13859 OBJDUMP=$ac_ct_OBJDUMP
13860 fi
13861 else
13862 OBJDUMP="$ac_cv_prog_OBJDUMP"
13863 fi
13864
13865 test -z "$OBJDUMP" && OBJDUMP=objdump
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13876 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13877 if ${lt_cv_deplibs_check_method+:} false; then :
13878 $as_echo_n "(cached) " >&6
13879 else
13880 lt_cv_file_magic_cmd='$MAGIC_CMD'
13881 lt_cv_file_magic_test_file=
13882 lt_cv_deplibs_check_method='unknown'
13883 # Need to set the preceding variable on all platforms that support
13884 # interlibrary dependencies.
13885 # 'none' -- dependencies not supported.
13886 # `unknown' -- same as none, but documents that we really don't know.
13887 # 'pass_all' -- all dependencies passed with no checks.
13888 # 'test_compile' -- check by making test program.
13889 # 'file_magic [[regex]]' -- check by looking for files in library path
13890 # which responds to the $file_magic_cmd with a given extended regex.
13891 # If you have `file' or equivalent on your system and you're not sure
13892 # whether `pass_all' will *always* work, you probably want this one.
13893
13894 case $host_os in
13895 aix[4-9]*)
13896 lt_cv_deplibs_check_method=pass_all
13897 ;;
13898
13899 beos*)
13900 lt_cv_deplibs_check_method=pass_all
13901 ;;
13902
13903 bsdi[45]*)
13904 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13905 lt_cv_file_magic_cmd='/usr/bin/file -L'
13906 lt_cv_file_magic_test_file=/shlib/libc.so
13907 ;;
13908
13909 cygwin*)
13910 # func_win32_libid is a shell function defined in ltmain.sh
13911 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13912 lt_cv_file_magic_cmd='func_win32_libid'
13913 ;;
13914
13915 mingw* | pw32*)
13916 # Base MSYS/MinGW do not provide the 'file' command needed by
13917 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13918 # unless we find 'file', for example because we are cross-compiling.
13919 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13920 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13921 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13922 lt_cv_file_magic_cmd='func_win32_libid'
13923 else
13924 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13925 lt_cv_file_magic_cmd='$OBJDUMP -f'
13926 fi
13927 ;;
13928
13929 cegcc*)
13930 # use the weaker test based on 'objdump'. See mingw*.
13931 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13932 lt_cv_file_magic_cmd='$OBJDUMP -f'
13933 ;;
13934
13935 darwin* | rhapsody*)
13936 lt_cv_deplibs_check_method=pass_all
13937 ;;
13938
13939 freebsd* | dragonfly*)
13940 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13941 case $host_cpu in
13942 i*86 )
13943 # Not sure whether the presence of OpenBSD here was a mistake.
13944 # Let's accept both of them until this is cleared up.
13945 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13946 lt_cv_file_magic_cmd=/usr/bin/file
13947 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13948 ;;
13949 esac
13950 else
13951 lt_cv_deplibs_check_method=pass_all
13952 fi
13953 ;;
13954
13955 gnu*)
13956 lt_cv_deplibs_check_method=pass_all
13957 ;;
13958
13959 haiku*)
13960 lt_cv_deplibs_check_method=pass_all
13961 ;;
13962
13963 hpux10.20* | hpux11*)
13964 lt_cv_file_magic_cmd=/usr/bin/file
13965 case $host_cpu in
13966 ia64*)
13967 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13968 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13969 ;;
13970 hppa*64*)
13971 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]'
13972 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13973 ;;
13974 *)
13975 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13976 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13977 ;;
13978 esac
13979 ;;
13980
13981 interix[3-9]*)
13982 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13984 ;;
13985
13986 irix5* | irix6* | nonstopux*)
13987 case $LD in
13988 *-32|*"-32 ") libmagic=32-bit;;
13989 *-n32|*"-n32 ") libmagic=N32;;
13990 *-64|*"-64 ") libmagic=64-bit;;
13991 *) libmagic=never-match;;
13992 esac
13993 lt_cv_deplibs_check_method=pass_all
13994 ;;
13995
13996 # This must be Linux ELF.
13997 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13998 lt_cv_deplibs_check_method=pass_all
13999 ;;
14000
14001 netbsd*)
14002 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14004 else
14005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14006 fi
14007 ;;
14008
14009 newos6*)
14010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14011 lt_cv_file_magic_cmd=/usr/bin/file
14012 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14013 ;;
14014
14015 *nto* | *qnx*)
14016 lt_cv_deplibs_check_method=pass_all
14017 ;;
14018
14019 openbsd*)
14020 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14022 else
14023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14024 fi
14025 ;;
14026
14027 osf3* | osf4* | osf5*)
14028 lt_cv_deplibs_check_method=pass_all
14029 ;;
14030
14031 rdos*)
14032 lt_cv_deplibs_check_method=pass_all
14033 ;;
14034
14035 solaris*)
14036 lt_cv_deplibs_check_method=pass_all
14037 ;;
14038
14039 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14040 lt_cv_deplibs_check_method=pass_all
14041 ;;
14042
14043 sysv4 | sysv4.3*)
14044 case $host_vendor in
14045 motorola)
14046 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]'
14047 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14048 ;;
14049 ncr)
14050 lt_cv_deplibs_check_method=pass_all
14051 ;;
14052 sequent)
14053 lt_cv_file_magic_cmd='/bin/file'
14054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14055 ;;
14056 sni)
14057 lt_cv_file_magic_cmd='/bin/file'
14058 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14059 lt_cv_file_magic_test_file=/lib/libc.so
14060 ;;
14061 siemens)
14062 lt_cv_deplibs_check_method=pass_all
14063 ;;
14064 pc)
14065 lt_cv_deplibs_check_method=pass_all
14066 ;;
14067 esac
14068 ;;
14069
14070 tpf*)
14071 lt_cv_deplibs_check_method=pass_all
14072 ;;
14073 esac
14074
14075 fi
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14077 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14078 file_magic_cmd=$lt_cv_file_magic_cmd
14079 deplibs_check_method=$lt_cv_deplibs_check_method
14080 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093 if test -n "$ac_tool_prefix"; then
14094 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14095 set dummy ${ac_tool_prefix}ar; ac_word=$2
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14097 $as_echo_n "checking for $ac_word... " >&6; }
14098 if ${ac_cv_prog_AR+:} false; then :
14099 $as_echo_n "(cached) " >&6
14100 else
14101 if test -n "$AR"; then
14102 ac_cv_prog_AR="$AR" # Let the user override the test.
14103 else
14104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14105 for as_dir in $PATH
14106 do
14107 IFS=$as_save_IFS
14108 test -z "$as_dir" && as_dir=.
14109 for ac_exec_ext in '' $ac_executable_extensions; do
14110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14111 ac_cv_prog_AR="${ac_tool_prefix}ar"
14112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14113 break 2
14114 fi
14115 done
14116 done
14117 IFS=$as_save_IFS
14118
14119 fi
14120 fi
14121 AR=$ac_cv_prog_AR
14122 if test -n "$AR"; then
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14124 $as_echo "$AR" >&6; }
14125 else
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14127 $as_echo "no" >&6; }
14128 fi
14129
14130
14131 fi
14132 if test -z "$ac_cv_prog_AR"; then
14133 ac_ct_AR=$AR
14134 # Extract the first word of "ar", so it can be a program name with args.
14135 set dummy ar; ac_word=$2
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14137 $as_echo_n "checking for $ac_word... " >&6; }
14138 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14139 $as_echo_n "(cached) " >&6
14140 else
14141 if test -n "$ac_ct_AR"; then
14142 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14143 else
14144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14145 for as_dir in $PATH
14146 do
14147 IFS=$as_save_IFS
14148 test -z "$as_dir" && as_dir=.
14149 for ac_exec_ext in '' $ac_executable_extensions; do
14150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14151 ac_cv_prog_ac_ct_AR="ar"
14152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14153 break 2
14154 fi
14155 done
14156 done
14157 IFS=$as_save_IFS
14158
14159 fi
14160 fi
14161 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14162 if test -n "$ac_ct_AR"; then
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14164 $as_echo "$ac_ct_AR" >&6; }
14165 else
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14167 $as_echo "no" >&6; }
14168 fi
14169
14170 if test "x$ac_ct_AR" = x; then
14171 AR="false"
14172 else
14173 case $cross_compiling:$ac_tool_warned in
14174 yes:)
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14177 ac_tool_warned=yes ;;
14178 esac
14179 AR=$ac_ct_AR
14180 fi
14181 else
14182 AR="$ac_cv_prog_AR"
14183 fi
14184
14185 test -z "$AR" && AR=ar
14186 test -z "$AR_FLAGS" && AR_FLAGS=cru
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198 if test -n "$ac_tool_prefix"; then
14199 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14200 set dummy ${ac_tool_prefix}strip; ac_word=$2
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14202 $as_echo_n "checking for $ac_word... " >&6; }
14203 if ${ac_cv_prog_STRIP+:} false; then :
14204 $as_echo_n "(cached) " >&6
14205 else
14206 if test -n "$STRIP"; then
14207 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14208 else
14209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14210 for as_dir in $PATH
14211 do
14212 IFS=$as_save_IFS
14213 test -z "$as_dir" && as_dir=.
14214 for ac_exec_ext in '' $ac_executable_extensions; do
14215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14216 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14218 break 2
14219 fi
14220 done
14221 done
14222 IFS=$as_save_IFS
14223
14224 fi
14225 fi
14226 STRIP=$ac_cv_prog_STRIP
14227 if test -n "$STRIP"; then
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14229 $as_echo "$STRIP" >&6; }
14230 else
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232 $as_echo "no" >&6; }
14233 fi
14234
14235
14236 fi
14237 if test -z "$ac_cv_prog_STRIP"; then
14238 ac_ct_STRIP=$STRIP
14239 # Extract the first word of "strip", so it can be a program name with args.
14240 set dummy strip; ac_word=$2
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14242 $as_echo_n "checking for $ac_word... " >&6; }
14243 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14244 $as_echo_n "(cached) " >&6
14245 else
14246 if test -n "$ac_ct_STRIP"; then
14247 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14248 else
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14251 do
14252 IFS=$as_save_IFS
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14256 ac_cv_prog_ac_ct_STRIP="strip"
14257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14258 break 2
14259 fi
14260 done
14261 done
14262 IFS=$as_save_IFS
14263
14264 fi
14265 fi
14266 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14267 if test -n "$ac_ct_STRIP"; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14269 $as_echo "$ac_ct_STRIP" >&6; }
14270 else
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272 $as_echo "no" >&6; }
14273 fi
14274
14275 if test "x$ac_ct_STRIP" = x; then
14276 STRIP=":"
14277 else
14278 case $cross_compiling:$ac_tool_warned in
14279 yes:)
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14282 ac_tool_warned=yes ;;
14283 esac
14284 STRIP=$ac_ct_STRIP
14285 fi
14286 else
14287 STRIP="$ac_cv_prog_STRIP"
14288 fi
14289
14290 test -z "$STRIP" && STRIP=:
14291
14292
14293
14294
14295
14296
14297 if test -n "$ac_tool_prefix"; then
14298 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14299 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14301 $as_echo_n "checking for $ac_word... " >&6; }
14302 if ${ac_cv_prog_RANLIB+:} false; then :
14303 $as_echo_n "(cached) " >&6
14304 else
14305 if test -n "$RANLIB"; then
14306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14307 else
14308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309 for as_dir in $PATH
14310 do
14311 IFS=$as_save_IFS
14312 test -z "$as_dir" && as_dir=.
14313 for ac_exec_ext in '' $ac_executable_extensions; do
14314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14315 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14317 break 2
14318 fi
14319 done
14320 done
14321 IFS=$as_save_IFS
14322
14323 fi
14324 fi
14325 RANLIB=$ac_cv_prog_RANLIB
14326 if test -n "$RANLIB"; then
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14328 $as_echo "$RANLIB" >&6; }
14329 else
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14331 $as_echo "no" >&6; }
14332 fi
14333
14334
14335 fi
14336 if test -z "$ac_cv_prog_RANLIB"; then
14337 ac_ct_RANLIB=$RANLIB
14338 # Extract the first word of "ranlib", so it can be a program name with args.
14339 set dummy ranlib; ac_word=$2
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14341 $as_echo_n "checking for $ac_word... " >&6; }
14342 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14343 $as_echo_n "(cached) " >&6
14344 else
14345 if test -n "$ac_ct_RANLIB"; then
14346 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14347 else
14348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349 for as_dir in $PATH
14350 do
14351 IFS=$as_save_IFS
14352 test -z "$as_dir" && as_dir=.
14353 for ac_exec_ext in '' $ac_executable_extensions; do
14354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14355 ac_cv_prog_ac_ct_RANLIB="ranlib"
14356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14357 break 2
14358 fi
14359 done
14360 done
14361 IFS=$as_save_IFS
14362
14363 fi
14364 fi
14365 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14366 if test -n "$ac_ct_RANLIB"; then
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14368 $as_echo "$ac_ct_RANLIB" >&6; }
14369 else
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371 $as_echo "no" >&6; }
14372 fi
14373
14374 if test "x$ac_ct_RANLIB" = x; then
14375 RANLIB=":"
14376 else
14377 case $cross_compiling:$ac_tool_warned in
14378 yes:)
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14381 ac_tool_warned=yes ;;
14382 esac
14383 RANLIB=$ac_ct_RANLIB
14384 fi
14385 else
14386 RANLIB="$ac_cv_prog_RANLIB"
14387 fi
14388
14389 test -z "$RANLIB" && RANLIB=:
14390
14391
14392
14393
14394
14395
14396 # Determine commands to create old-style static archives.
14397 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14398 old_postinstall_cmds='chmod 644 $oldlib'
14399 old_postuninstall_cmds=
14400
14401 if test -n "$RANLIB"; then
14402 case $host_os in
14403 openbsd*)
14404 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14405 ;;
14406 *)
14407 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14408 ;;
14409 esac
14410 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14411 fi
14412
14413 case $host_os in
14414 darwin*)
14415 lock_old_archive_extraction=yes ;;
14416 *)
14417 lock_old_archive_extraction=no ;;
14418 esac
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458 # If no C compiler was specified, use CC.
14459 LTCC=${LTCC-"$CC"}
14460
14461 # If no C compiler flags were specified, use CFLAGS.
14462 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14463
14464 # Allow CC to be a program name with arguments.
14465 compiler=$CC
14466
14467
14468 # Check for command to grab the raw symbol name followed by C symbol from nm.
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14470 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14471 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14472 $as_echo_n "(cached) " >&6
14473 else
14474
14475 # These are sane defaults that work on at least a few old systems.
14476 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14477
14478 # Character class describing NM global symbol codes.
14479 symcode='[BCDEGRST]'
14480
14481 # Regexp to match symbols that can be accessed directly from C.
14482 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14483
14484 # Define system-specific variables.
14485 case $host_os in
14486 aix*)
14487 symcode='[BCDT]'
14488 ;;
14489 cygwin* | mingw* | pw32* | cegcc*)
14490 symcode='[ABCDGISTW]'
14491 ;;
14492 hpux*)
14493 if test "$host_cpu" = ia64; then
14494 symcode='[ABCDEGRST]'
14495 fi
14496 ;;
14497 irix* | nonstopux*)
14498 symcode='[BCDEGRST]'
14499 ;;
14500 osf*)
14501 symcode='[BCDEGQRST]'
14502 ;;
14503 solaris*)
14504 symcode='[BDRT]'
14505 ;;
14506 sco3.2v5*)
14507 symcode='[DT]'
14508 ;;
14509 sysv4.2uw2*)
14510 symcode='[DT]'
14511 ;;
14512 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14513 symcode='[ABDT]'
14514 ;;
14515 sysv4)
14516 symcode='[DFNSTU]'
14517 ;;
14518 esac
14519
14520 # If we're using GNU nm, then use its standard symbol codes.
14521 case `$NM -V 2>&1` in
14522 *GNU* | *'with BFD'*)
14523 symcode='[ABCDGIRSTW]' ;;
14524 esac
14525
14526 # Transform an extracted symbol line into a proper C declaration.
14527 # Some systems (esp. on ia64) link data and code symbols differently,
14528 # so use this general approach.
14529 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14530
14531 # Transform an extracted symbol line into symbol name and symbol address
14532 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14533 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'"
14534
14535 # Handle CRLF in mingw tool chain
14536 opt_cr=
14537 case $build_os in
14538 mingw*)
14539 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14540 ;;
14541 esac
14542
14543 # Try without a prefix underscore, then with it.
14544 for ac_symprfx in "" "_"; do
14545
14546 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14547 symxfrm="\\1 $ac_symprfx\\2 \\2"
14548
14549 # Write the raw and C identifiers.
14550 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14551 # Fake it for dumpbin and say T for any non-static function
14552 # and D for any global variable.
14553 # Also find C++ and __fastcall symbols from MSVC++,
14554 # which start with @ or ?.
14555 lt_cv_sys_global_symbol_pipe="$AWK '"\
14556 " {last_section=section; section=\$ 3};"\
14557 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14558 " \$ 0!~/External *\|/{next};"\
14559 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14560 " {if(hide[section]) next};"\
14561 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14562 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14563 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14564 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14565 " ' prfx=^$ac_symprfx"
14566 else
14567 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14568 fi
14569
14570 # Check to see that the pipe works correctly.
14571 pipe_works=no
14572
14573 rm -f conftest*
14574 cat > conftest.$ac_ext <<_LT_EOF
14575 #ifdef __cplusplus
14576 extern "C" {
14577 #endif
14578 char nm_test_var;
14579 void nm_test_func(void);
14580 void nm_test_func(void){}
14581 #ifdef __cplusplus
14582 }
14583 #endif
14584 int main(){nm_test_var='a';nm_test_func();return(0);}
14585 _LT_EOF
14586
14587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14588 (eval $ac_compile) 2>&5
14589 ac_status=$?
14590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14591 test $ac_status = 0; }; then
14592 # Now try to grab the symbols.
14593 nlist=conftest.nm
14594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14595 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14596 ac_status=$?
14597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14598 test $ac_status = 0; } && test -s "$nlist"; then
14599 # Try sorting and uniquifying the output.
14600 if sort "$nlist" | uniq > "$nlist"T; then
14601 mv -f "$nlist"T "$nlist"
14602 else
14603 rm -f "$nlist"T
14604 fi
14605
14606 # Make sure that we snagged all the symbols we need.
14607 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14608 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14609 cat <<_LT_EOF > conftest.$ac_ext
14610 #ifdef __cplusplus
14611 extern "C" {
14612 #endif
14613
14614 _LT_EOF
14615 # Now generate the symbol file.
14616 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14617
14618 cat <<_LT_EOF >> conftest.$ac_ext
14619
14620 /* The mapping between symbol names and symbols. */
14621 const struct {
14622 const char *name;
14623 void *address;
14624 }
14625 lt__PROGRAM__LTX_preloaded_symbols[] =
14626 {
14627 { "@PROGRAM@", (void *) 0 },
14628 _LT_EOF
14629 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14630 cat <<\_LT_EOF >> conftest.$ac_ext
14631 {0, (void *) 0}
14632 };
14633
14634 /* This works around a problem in FreeBSD linker */
14635 #ifdef FREEBSD_WORKAROUND
14636 static const void *lt_preloaded_setup() {
14637 return lt__PROGRAM__LTX_preloaded_symbols;
14638 }
14639 #endif
14640
14641 #ifdef __cplusplus
14642 }
14643 #endif
14644 _LT_EOF
14645 # Now try linking the two files.
14646 mv conftest.$ac_objext conftstm.$ac_objext
14647 lt_save_LIBS="$LIBS"
14648 lt_save_CFLAGS="$CFLAGS"
14649 LIBS="conftstm.$ac_objext"
14650 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14652 (eval $ac_link) 2>&5
14653 ac_status=$?
14654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14655 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14656 pipe_works=yes
14657 fi
14658 LIBS="$lt_save_LIBS"
14659 CFLAGS="$lt_save_CFLAGS"
14660 else
14661 echo "cannot find nm_test_func in $nlist" >&5
14662 fi
14663 else
14664 echo "cannot find nm_test_var in $nlist" >&5
14665 fi
14666 else
14667 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14668 fi
14669 else
14670 echo "$progname: failed program was:" >&5
14671 cat conftest.$ac_ext >&5
14672 fi
14673 rm -rf conftest* conftst*
14674
14675 # Do not use the global_symbol_pipe unless it works.
14676 if test "$pipe_works" = yes; then
14677 break
14678 else
14679 lt_cv_sys_global_symbol_pipe=
14680 fi
14681 done
14682
14683 fi
14684
14685 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14686 lt_cv_sys_global_symbol_to_cdecl=
14687 fi
14688 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14690 $as_echo "failed" >&6; }
14691 else
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14693 $as_echo "ok" >&6; }
14694 fi
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717 # Check whether --enable-libtool-lock was given.
14718 if test "${enable_libtool_lock+set}" = set; then :
14719 enableval=$enable_libtool_lock;
14720 fi
14721
14722 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14723
14724 # Some flags need to be propagated to the compiler or linker for good
14725 # libtool support.
14726 case $host in
14727 ia64-*-hpux*)
14728 # Find out which ABI we are using.
14729 echo 'int i;' > conftest.$ac_ext
14730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14731 (eval $ac_compile) 2>&5
14732 ac_status=$?
14733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14734 test $ac_status = 0; }; then
14735 case `/usr/bin/file conftest.$ac_objext` in
14736 *ELF-32*)
14737 HPUX_IA64_MODE="32"
14738 ;;
14739 *ELF-64*)
14740 HPUX_IA64_MODE="64"
14741 ;;
14742 esac
14743 fi
14744 rm -rf conftest*
14745 ;;
14746 *-*-irix6*)
14747 # Find out which ABI we are using.
14748 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14750 (eval $ac_compile) 2>&5
14751 ac_status=$?
14752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14753 test $ac_status = 0; }; then
14754 if test "$lt_cv_prog_gnu_ld" = yes; then
14755 case `/usr/bin/file conftest.$ac_objext` in
14756 *32-bit*)
14757 LD="${LD-ld} -melf32bsmip"
14758 ;;
14759 *N32*)
14760 LD="${LD-ld} -melf32bmipn32"
14761 ;;
14762 *64-bit*)
14763 LD="${LD-ld} -melf64bmip"
14764 ;;
14765 esac
14766 else
14767 case `/usr/bin/file conftest.$ac_objext` in
14768 *32-bit*)
14769 LD="${LD-ld} -32"
14770 ;;
14771 *N32*)
14772 LD="${LD-ld} -n32"
14773 ;;
14774 *64-bit*)
14775 LD="${LD-ld} -64"
14776 ;;
14777 esac
14778 fi
14779 fi
14780 rm -rf conftest*
14781 ;;
14782
14783 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14784 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14785 # Find out which ABI we are using.
14786 echo 'int i;' > conftest.$ac_ext
14787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14788 (eval $ac_compile) 2>&5
14789 ac_status=$?
14790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14791 test $ac_status = 0; }; then
14792 case `/usr/bin/file conftest.o` in
14793 *32-bit*)
14794 case $host in
14795 x86_64-*kfreebsd*-gnu)
14796 LD="${LD-ld} -m elf_i386_fbsd"
14797 ;;
14798 x86_64-*linux*)
14799 case `/usr/bin/file conftest.o` in
14800 *x86-64*)
14801 LD="${LD-ld} -m elf32_x86_64"
14802 ;;
14803 *)
14804 LD="${LD-ld} -m elf_i386"
14805 ;;
14806 esac
14807 ;;
14808 powerpc64le-*linux*)
14809 LD="${LD-ld} -m elf32lppclinux"
14810 ;;
14811 powerpc64-*linux*)
14812 LD="${LD-ld} -m elf32ppclinux"
14813 ;;
14814 s390x-*linux*)
14815 LD="${LD-ld} -m elf_s390"
14816 ;;
14817 sparc64-*linux*)
14818 LD="${LD-ld} -m elf32_sparc"
14819 ;;
14820 esac
14821 ;;
14822 *64-bit*)
14823 case $host in
14824 x86_64-*kfreebsd*-gnu)
14825 LD="${LD-ld} -m elf_x86_64_fbsd"
14826 ;;
14827 x86_64-*linux*)
14828 LD="${LD-ld} -m elf_x86_64"
14829 ;;
14830 powerpcle-*linux*)
14831 LD="${LD-ld} -m elf64lppc"
14832 ;;
14833 powerpc-*linux*)
14834 LD="${LD-ld} -m elf64ppc"
14835 ;;
14836 s390*-*linux*|s390*-*tpf*)
14837 LD="${LD-ld} -m elf64_s390"
14838 ;;
14839 sparc*-*linux*)
14840 LD="${LD-ld} -m elf64_sparc"
14841 ;;
14842 esac
14843 ;;
14844 esac
14845 fi
14846 rm -rf conftest*
14847 ;;
14848
14849 *-*-sco3.2v5*)
14850 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14851 SAVE_CFLAGS="$CFLAGS"
14852 CFLAGS="$CFLAGS -belf"
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14854 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14855 if ${lt_cv_cc_needs_belf+:} false; then :
14856 $as_echo_n "(cached) " >&6
14857 else
14858 ac_ext=c
14859 ac_cpp='$CPP $CPPFLAGS'
14860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14863
14864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865 /* end confdefs.h. */
14866
14867 int
14868 main ()
14869 {
14870
14871 ;
14872 return 0;
14873 }
14874 _ACEOF
14875 if ac_fn_c_try_link "$LINENO"; then :
14876 lt_cv_cc_needs_belf=yes
14877 else
14878 lt_cv_cc_needs_belf=no
14879 fi
14880 rm -f core conftest.err conftest.$ac_objext \
14881 conftest$ac_exeext conftest.$ac_ext
14882 ac_ext=c
14883 ac_cpp='$CPP $CPPFLAGS'
14884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14887
14888 fi
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14890 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14891 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14892 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14893 CFLAGS="$SAVE_CFLAGS"
14894 fi
14895 ;;
14896 sparc*-*solaris*)
14897 # Find out which ABI we are using.
14898 echo 'int i;' > conftest.$ac_ext
14899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14900 (eval $ac_compile) 2>&5
14901 ac_status=$?
14902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14903 test $ac_status = 0; }; then
14904 case `/usr/bin/file conftest.o` in
14905 *64-bit*)
14906 case $lt_cv_prog_gnu_ld in
14907 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14908 *)
14909 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14910 LD="${LD-ld} -64"
14911 fi
14912 ;;
14913 esac
14914 ;;
14915 esac
14916 fi
14917 rm -rf conftest*
14918 ;;
14919 esac
14920
14921 need_locks="$enable_libtool_lock"
14922
14923
14924 case $host_os in
14925 rhapsody* | darwin*)
14926 if test -n "$ac_tool_prefix"; then
14927 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14928 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14930 $as_echo_n "checking for $ac_word... " >&6; }
14931 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14932 $as_echo_n "(cached) " >&6
14933 else
14934 if test -n "$DSYMUTIL"; then
14935 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14936 else
14937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14938 for as_dir in $PATH
14939 do
14940 IFS=$as_save_IFS
14941 test -z "$as_dir" && as_dir=.
14942 for ac_exec_ext in '' $ac_executable_extensions; do
14943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14944 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14946 break 2
14947 fi
14948 done
14949 done
14950 IFS=$as_save_IFS
14951
14952 fi
14953 fi
14954 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14955 if test -n "$DSYMUTIL"; then
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14957 $as_echo "$DSYMUTIL" >&6; }
14958 else
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14960 $as_echo "no" >&6; }
14961 fi
14962
14963
14964 fi
14965 if test -z "$ac_cv_prog_DSYMUTIL"; then
14966 ac_ct_DSYMUTIL=$DSYMUTIL
14967 # Extract the first word of "dsymutil", so it can be a program name with args.
14968 set dummy dsymutil; ac_word=$2
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14970 $as_echo_n "checking for $ac_word... " >&6; }
14971 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14972 $as_echo_n "(cached) " >&6
14973 else
14974 if test -n "$ac_ct_DSYMUTIL"; then
14975 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14976 else
14977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14978 for as_dir in $PATH
14979 do
14980 IFS=$as_save_IFS
14981 test -z "$as_dir" && as_dir=.
14982 for ac_exec_ext in '' $ac_executable_extensions; do
14983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14984 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14986 break 2
14987 fi
14988 done
14989 done
14990 IFS=$as_save_IFS
14991
14992 fi
14993 fi
14994 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14995 if test -n "$ac_ct_DSYMUTIL"; then
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14997 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14998 else
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15000 $as_echo "no" >&6; }
15001 fi
15002
15003 if test "x$ac_ct_DSYMUTIL" = x; then
15004 DSYMUTIL=":"
15005 else
15006 case $cross_compiling:$ac_tool_warned in
15007 yes:)
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15010 ac_tool_warned=yes ;;
15011 esac
15012 DSYMUTIL=$ac_ct_DSYMUTIL
15013 fi
15014 else
15015 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15016 fi
15017
15018 if test -n "$ac_tool_prefix"; then
15019 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15020 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15022 $as_echo_n "checking for $ac_word... " >&6; }
15023 if ${ac_cv_prog_NMEDIT+:} false; then :
15024 $as_echo_n "(cached) " >&6
15025 else
15026 if test -n "$NMEDIT"; then
15027 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15028 else
15029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15030 for as_dir in $PATH
15031 do
15032 IFS=$as_save_IFS
15033 test -z "$as_dir" && as_dir=.
15034 for ac_exec_ext in '' $ac_executable_extensions; do
15035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15036 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15038 break 2
15039 fi
15040 done
15041 done
15042 IFS=$as_save_IFS
15043
15044 fi
15045 fi
15046 NMEDIT=$ac_cv_prog_NMEDIT
15047 if test -n "$NMEDIT"; then
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15049 $as_echo "$NMEDIT" >&6; }
15050 else
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15052 $as_echo "no" >&6; }
15053 fi
15054
15055
15056 fi
15057 if test -z "$ac_cv_prog_NMEDIT"; then
15058 ac_ct_NMEDIT=$NMEDIT
15059 # Extract the first word of "nmedit", so it can be a program name with args.
15060 set dummy nmedit; ac_word=$2
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15062 $as_echo_n "checking for $ac_word... " >&6; }
15063 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15064 $as_echo_n "(cached) " >&6
15065 else
15066 if test -n "$ac_ct_NMEDIT"; then
15067 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15068 else
15069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15070 for as_dir in $PATH
15071 do
15072 IFS=$as_save_IFS
15073 test -z "$as_dir" && as_dir=.
15074 for ac_exec_ext in '' $ac_executable_extensions; do
15075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15076 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15078 break 2
15079 fi
15080 done
15081 done
15082 IFS=$as_save_IFS
15083
15084 fi
15085 fi
15086 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15087 if test -n "$ac_ct_NMEDIT"; then
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15089 $as_echo "$ac_ct_NMEDIT" >&6; }
15090 else
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15092 $as_echo "no" >&6; }
15093 fi
15094
15095 if test "x$ac_ct_NMEDIT" = x; then
15096 NMEDIT=":"
15097 else
15098 case $cross_compiling:$ac_tool_warned in
15099 yes:)
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15102 ac_tool_warned=yes ;;
15103 esac
15104 NMEDIT=$ac_ct_NMEDIT
15105 fi
15106 else
15107 NMEDIT="$ac_cv_prog_NMEDIT"
15108 fi
15109
15110 if test -n "$ac_tool_prefix"; then
15111 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15112 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15114 $as_echo_n "checking for $ac_word... " >&6; }
15115 if ${ac_cv_prog_LIPO+:} false; then :
15116 $as_echo_n "(cached) " >&6
15117 else
15118 if test -n "$LIPO"; then
15119 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15120 else
15121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15122 for as_dir in $PATH
15123 do
15124 IFS=$as_save_IFS
15125 test -z "$as_dir" && as_dir=.
15126 for ac_exec_ext in '' $ac_executable_extensions; do
15127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15128 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15130 break 2
15131 fi
15132 done
15133 done
15134 IFS=$as_save_IFS
15135
15136 fi
15137 fi
15138 LIPO=$ac_cv_prog_LIPO
15139 if test -n "$LIPO"; then
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15141 $as_echo "$LIPO" >&6; }
15142 else
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15144 $as_echo "no" >&6; }
15145 fi
15146
15147
15148 fi
15149 if test -z "$ac_cv_prog_LIPO"; then
15150 ac_ct_LIPO=$LIPO
15151 # Extract the first word of "lipo", so it can be a program name with args.
15152 set dummy lipo; ac_word=$2
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15154 $as_echo_n "checking for $ac_word... " >&6; }
15155 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15156 $as_echo_n "(cached) " >&6
15157 else
15158 if test -n "$ac_ct_LIPO"; then
15159 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15160 else
15161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15162 for as_dir in $PATH
15163 do
15164 IFS=$as_save_IFS
15165 test -z "$as_dir" && as_dir=.
15166 for ac_exec_ext in '' $ac_executable_extensions; do
15167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15168 ac_cv_prog_ac_ct_LIPO="lipo"
15169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15170 break 2
15171 fi
15172 done
15173 done
15174 IFS=$as_save_IFS
15175
15176 fi
15177 fi
15178 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15179 if test -n "$ac_ct_LIPO"; then
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15181 $as_echo "$ac_ct_LIPO" >&6; }
15182 else
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15184 $as_echo "no" >&6; }
15185 fi
15186
15187 if test "x$ac_ct_LIPO" = x; then
15188 LIPO=":"
15189 else
15190 case $cross_compiling:$ac_tool_warned in
15191 yes:)
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15194 ac_tool_warned=yes ;;
15195 esac
15196 LIPO=$ac_ct_LIPO
15197 fi
15198 else
15199 LIPO="$ac_cv_prog_LIPO"
15200 fi
15201
15202 if test -n "$ac_tool_prefix"; then
15203 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15204 set dummy ${ac_tool_prefix}otool; ac_word=$2
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15206 $as_echo_n "checking for $ac_word... " >&6; }
15207 if ${ac_cv_prog_OTOOL+:} false; then :
15208 $as_echo_n "(cached) " >&6
15209 else
15210 if test -n "$OTOOL"; then
15211 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15212 else
15213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15214 for as_dir in $PATH
15215 do
15216 IFS=$as_save_IFS
15217 test -z "$as_dir" && as_dir=.
15218 for ac_exec_ext in '' $ac_executable_extensions; do
15219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15220 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15222 break 2
15223 fi
15224 done
15225 done
15226 IFS=$as_save_IFS
15227
15228 fi
15229 fi
15230 OTOOL=$ac_cv_prog_OTOOL
15231 if test -n "$OTOOL"; then
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15233 $as_echo "$OTOOL" >&6; }
15234 else
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15236 $as_echo "no" >&6; }
15237 fi
15238
15239
15240 fi
15241 if test -z "$ac_cv_prog_OTOOL"; then
15242 ac_ct_OTOOL=$OTOOL
15243 # Extract the first word of "otool", so it can be a program name with args.
15244 set dummy otool; ac_word=$2
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15246 $as_echo_n "checking for $ac_word... " >&6; }
15247 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15248 $as_echo_n "(cached) " >&6
15249 else
15250 if test -n "$ac_ct_OTOOL"; then
15251 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15252 else
15253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15254 for as_dir in $PATH
15255 do
15256 IFS=$as_save_IFS
15257 test -z "$as_dir" && as_dir=.
15258 for ac_exec_ext in '' $ac_executable_extensions; do
15259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15260 ac_cv_prog_ac_ct_OTOOL="otool"
15261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15262 break 2
15263 fi
15264 done
15265 done
15266 IFS=$as_save_IFS
15267
15268 fi
15269 fi
15270 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15271 if test -n "$ac_ct_OTOOL"; then
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15273 $as_echo "$ac_ct_OTOOL" >&6; }
15274 else
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15276 $as_echo "no" >&6; }
15277 fi
15278
15279 if test "x$ac_ct_OTOOL" = x; then
15280 OTOOL=":"
15281 else
15282 case $cross_compiling:$ac_tool_warned in
15283 yes:)
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15286 ac_tool_warned=yes ;;
15287 esac
15288 OTOOL=$ac_ct_OTOOL
15289 fi
15290 else
15291 OTOOL="$ac_cv_prog_OTOOL"
15292 fi
15293
15294 if test -n "$ac_tool_prefix"; then
15295 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15296 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15298 $as_echo_n "checking for $ac_word... " >&6; }
15299 if ${ac_cv_prog_OTOOL64+:} false; then :
15300 $as_echo_n "(cached) " >&6
15301 else
15302 if test -n "$OTOOL64"; then
15303 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15304 else
15305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15306 for as_dir in $PATH
15307 do
15308 IFS=$as_save_IFS
15309 test -z "$as_dir" && as_dir=.
15310 for ac_exec_ext in '' $ac_executable_extensions; do
15311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15312 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15314 break 2
15315 fi
15316 done
15317 done
15318 IFS=$as_save_IFS
15319
15320 fi
15321 fi
15322 OTOOL64=$ac_cv_prog_OTOOL64
15323 if test -n "$OTOOL64"; then
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15325 $as_echo "$OTOOL64" >&6; }
15326 else
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15328 $as_echo "no" >&6; }
15329 fi
15330
15331
15332 fi
15333 if test -z "$ac_cv_prog_OTOOL64"; then
15334 ac_ct_OTOOL64=$OTOOL64
15335 # Extract the first word of "otool64", so it can be a program name with args.
15336 set dummy otool64; ac_word=$2
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15338 $as_echo_n "checking for $ac_word... " >&6; }
15339 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15340 $as_echo_n "(cached) " >&6
15341 else
15342 if test -n "$ac_ct_OTOOL64"; then
15343 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15344 else
15345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15346 for as_dir in $PATH
15347 do
15348 IFS=$as_save_IFS
15349 test -z "$as_dir" && as_dir=.
15350 for ac_exec_ext in '' $ac_executable_extensions; do
15351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15352 ac_cv_prog_ac_ct_OTOOL64="otool64"
15353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15354 break 2
15355 fi
15356 done
15357 done
15358 IFS=$as_save_IFS
15359
15360 fi
15361 fi
15362 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15363 if test -n "$ac_ct_OTOOL64"; then
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15365 $as_echo "$ac_ct_OTOOL64" >&6; }
15366 else
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15368 $as_echo "no" >&6; }
15369 fi
15370
15371 if test "x$ac_ct_OTOOL64" = x; then
15372 OTOOL64=":"
15373 else
15374 case $cross_compiling:$ac_tool_warned in
15375 yes:)
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15378 ac_tool_warned=yes ;;
15379 esac
15380 OTOOL64=$ac_ct_OTOOL64
15381 fi
15382 else
15383 OTOOL64="$ac_cv_prog_OTOOL64"
15384 fi
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15413 $as_echo_n "checking for -single_module linker flag... " >&6; }
15414 if ${lt_cv_apple_cc_single_mod+:} false; then :
15415 $as_echo_n "(cached) " >&6
15416 else
15417 lt_cv_apple_cc_single_mod=no
15418 if test -z "${LT_MULTI_MODULE}"; then
15419 # By default we will add the -single_module flag. You can override
15420 # by either setting the environment variable LT_MULTI_MODULE
15421 # non-empty at configure time, or by adding -multi_module to the
15422 # link flags.
15423 rm -rf libconftest.dylib*
15424 echo "int foo(void){return 1;}" > conftest.c
15425 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15426 -dynamiclib -Wl,-single_module conftest.c" >&5
15427 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15428 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15429 _lt_result=$?
15430 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15431 lt_cv_apple_cc_single_mod=yes
15432 else
15433 cat conftest.err >&5
15434 fi
15435 rm -rf libconftest.dylib*
15436 rm -f conftest.*
15437 fi
15438 fi
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15440 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15442 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15443 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15444 $as_echo_n "(cached) " >&6
15445 else
15446 lt_cv_ld_exported_symbols_list=no
15447 save_LDFLAGS=$LDFLAGS
15448 echo "_main" > conftest.sym
15449 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15451 /* end confdefs.h. */
15452
15453 int
15454 main ()
15455 {
15456
15457 ;
15458 return 0;
15459 }
15460 _ACEOF
15461 if ac_fn_c_try_link "$LINENO"; then :
15462 lt_cv_ld_exported_symbols_list=yes
15463 else
15464 lt_cv_ld_exported_symbols_list=no
15465 fi
15466 rm -f core conftest.err conftest.$ac_objext \
15467 conftest$ac_exeext conftest.$ac_ext
15468 LDFLAGS="$save_LDFLAGS"
15469
15470 fi
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15472 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15474 $as_echo_n "checking for -force_load linker flag... " >&6; }
15475 if ${lt_cv_ld_force_load+:} false; then :
15476 $as_echo_n "(cached) " >&6
15477 else
15478 lt_cv_ld_force_load=no
15479 cat > conftest.c << _LT_EOF
15480 int forced_loaded() { return 2;}
15481 _LT_EOF
15482 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15483 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15484 echo "$AR cru libconftest.a conftest.o" >&5
15485 $AR cru libconftest.a conftest.o 2>&5
15486 cat > conftest.c << _LT_EOF
15487 int main() { return 0;}
15488 _LT_EOF
15489 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15490 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15491 _lt_result=$?
15492 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15493 lt_cv_ld_force_load=yes
15494 else
15495 cat conftest.err >&5
15496 fi
15497 rm -f conftest.err libconftest.a conftest conftest.c
15498 rm -rf conftest.dSYM
15499
15500 fi
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15502 $as_echo "$lt_cv_ld_force_load" >&6; }
15503 case $host_os in
15504 rhapsody* | darwin1.[012])
15505 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15506 darwin1.*)
15507 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15508 darwin*) # darwin 5.x on
15509 # if running on 10.5 or later, the deployment target defaults
15510 # to the OS version, if on x86, and 10.4, the deployment
15511 # target defaults to 10.4. Don't you love it?
15512 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15513 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15514 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15515 10.[012][,.]*)
15516 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15517 10.*)
15518 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15519 esac
15520 ;;
15521 esac
15522 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15523 _lt_dar_single_mod='$single_module'
15524 fi
15525 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15526 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15527 else
15528 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15529 fi
15530 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15531 _lt_dsymutil='~$DSYMUTIL $lib || :'
15532 else
15533 _lt_dsymutil=
15534 fi
15535 ;;
15536 esac
15537
15538
15539 for ac_header in dlfcn.h
15540 do :
15541 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15542 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15543 cat >>confdefs.h <<_ACEOF
15544 #define HAVE_DLFCN_H 1
15545 _ACEOF
15546
15547 fi
15548 done
15549
15550
15551
15552
15553
15554 # Set options
15555
15556
15557
15558 enable_dlopen=no
15559
15560
15561 enable_win32_dll=no
15562
15563
15564 # Check whether --enable-shared was given.
15565 if test "${enable_shared+set}" = set; then :
15566 enableval=$enable_shared; p=${PACKAGE-default}
15567 case $enableval in
15568 yes) enable_shared=yes ;;
15569 no) enable_shared=no ;;
15570 *)
15571 enable_shared=no
15572 # Look at the argument we got. We use all the common list separators.
15573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15574 for pkg in $enableval; do
15575 IFS="$lt_save_ifs"
15576 if test "X$pkg" = "X$p"; then
15577 enable_shared=yes
15578 fi
15579 done
15580 IFS="$lt_save_ifs"
15581 ;;
15582 esac
15583 else
15584 enable_shared=yes
15585 fi
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595 # Check whether --enable-static was given.
15596 if test "${enable_static+set}" = set; then :
15597 enableval=$enable_static; p=${PACKAGE-default}
15598 case $enableval in
15599 yes) enable_static=yes ;;
15600 no) enable_static=no ;;
15601 *)
15602 enable_static=no
15603 # Look at the argument we got. We use all the common list separators.
15604 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15605 for pkg in $enableval; do
15606 IFS="$lt_save_ifs"
15607 if test "X$pkg" = "X$p"; then
15608 enable_static=yes
15609 fi
15610 done
15611 IFS="$lt_save_ifs"
15612 ;;
15613 esac
15614 else
15615 enable_static=yes
15616 fi
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627 # Check whether --with-pic was given.
15628 if test "${with_pic+set}" = set; then :
15629 withval=$with_pic; pic_mode="$withval"
15630 else
15631 pic_mode=default
15632 fi
15633
15634
15635 test -z "$pic_mode" && pic_mode=default
15636
15637
15638
15639
15640
15641
15642
15643 # Check whether --enable-fast-install was given.
15644 if test "${enable_fast_install+set}" = set; then :
15645 enableval=$enable_fast_install; p=${PACKAGE-default}
15646 case $enableval in
15647 yes) enable_fast_install=yes ;;
15648 no) enable_fast_install=no ;;
15649 *)
15650 enable_fast_install=no
15651 # Look at the argument we got. We use all the common list separators.
15652 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15653 for pkg in $enableval; do
15654 IFS="$lt_save_ifs"
15655 if test "X$pkg" = "X$p"; then
15656 enable_fast_install=yes
15657 fi
15658 done
15659 IFS="$lt_save_ifs"
15660 ;;
15661 esac
15662 else
15663 enable_fast_install=yes
15664 fi
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676 # This can be used to rebuild libtool when needed
15677 LIBTOOL_DEPS="$ltmain"
15678
15679 # Always use our own libtool.
15680 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707 test -z "$LN_S" && LN_S="ln -s"
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722 if test -n "${ZSH_VERSION+set}" ; then
15723 setopt NO_GLOB_SUBST
15724 fi
15725
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15727 $as_echo_n "checking for objdir... " >&6; }
15728 if ${lt_cv_objdir+:} false; then :
15729 $as_echo_n "(cached) " >&6
15730 else
15731 rm -f .libs 2>/dev/null
15732 mkdir .libs 2>/dev/null
15733 if test -d .libs; then
15734 lt_cv_objdir=.libs
15735 else
15736 # MS-DOS does not allow filenames that begin with a dot.
15737 lt_cv_objdir=_libs
15738 fi
15739 rmdir .libs 2>/dev/null
15740 fi
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15742 $as_echo "$lt_cv_objdir" >&6; }
15743 objdir=$lt_cv_objdir
15744
15745
15746
15747
15748
15749 cat >>confdefs.h <<_ACEOF
15750 #define LT_OBJDIR "$lt_cv_objdir/"
15751 _ACEOF
15752
15753
15754
15755
15756 case $host_os in
15757 aix3*)
15758 # AIX sometimes has problems with the GCC collect2 program. For some
15759 # reason, if we set the COLLECT_NAMES environment variable, the problems
15760 # vanish in a puff of smoke.
15761 if test "X${COLLECT_NAMES+set}" != Xset; then
15762 COLLECT_NAMES=
15763 export COLLECT_NAMES
15764 fi
15765 ;;
15766 esac
15767
15768 # Global variables:
15769 ofile=libtool
15770 can_build_shared=yes
15771
15772 # All known linkers require a `.a' archive for static linking (except MSVC,
15773 # which needs '.lib').
15774 libext=a
15775
15776 with_gnu_ld="$lt_cv_prog_gnu_ld"
15777
15778 old_CC="$CC"
15779 old_CFLAGS="$CFLAGS"
15780
15781 # Set sane defaults for various variables
15782 test -z "$CC" && CC=cc
15783 test -z "$LTCC" && LTCC=$CC
15784 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15785 test -z "$LD" && LD=ld
15786 test -z "$ac_objext" && ac_objext=o
15787
15788 for cc_temp in $compiler""; do
15789 case $cc_temp in
15790 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15791 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15792 \-*) ;;
15793 *) break;;
15794 esac
15795 done
15796 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15797
15798
15799 # Only perform the check for file, if the check method requires it
15800 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15801 case $deplibs_check_method in
15802 file_magic*)
15803 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15805 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15806 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15807 $as_echo_n "(cached) " >&6
15808 else
15809 case $MAGIC_CMD in
15810 [\\/*] | ?:[\\/]*)
15811 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15812 ;;
15813 *)
15814 lt_save_MAGIC_CMD="$MAGIC_CMD"
15815 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15816 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15817 for ac_dir in $ac_dummy; do
15818 IFS="$lt_save_ifs"
15819 test -z "$ac_dir" && ac_dir=.
15820 if test -f $ac_dir/${ac_tool_prefix}file; then
15821 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15822 if test -n "$file_magic_test_file"; then
15823 case $deplibs_check_method in
15824 "file_magic "*)
15825 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15826 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15827 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15828 $EGREP "$file_magic_regex" > /dev/null; then
15829 :
15830 else
15831 cat <<_LT_EOF 1>&2
15832
15833 *** Warning: the command libtool uses to detect shared libraries,
15834 *** $file_magic_cmd, produces output that libtool cannot recognize.
15835 *** The result is that libtool may fail to recognize shared libraries
15836 *** as such. This will affect the creation of libtool libraries that
15837 *** depend on shared libraries, but programs linked with such libtool
15838 *** libraries will work regardless of this problem. Nevertheless, you
15839 *** may want to report the problem to your system manager and/or to
15840 *** bug-libtool@gnu.org
15841
15842 _LT_EOF
15843 fi ;;
15844 esac
15845 fi
15846 break
15847 fi
15848 done
15849 IFS="$lt_save_ifs"
15850 MAGIC_CMD="$lt_save_MAGIC_CMD"
15851 ;;
15852 esac
15853 fi
15854
15855 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15856 if test -n "$MAGIC_CMD"; then
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15858 $as_echo "$MAGIC_CMD" >&6; }
15859 else
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15861 $as_echo "no" >&6; }
15862 fi
15863
15864
15865
15866
15867
15868 if test -z "$lt_cv_path_MAGIC_CMD"; then
15869 if test -n "$ac_tool_prefix"; then
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15871 $as_echo_n "checking for file... " >&6; }
15872 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15873 $as_echo_n "(cached) " >&6
15874 else
15875 case $MAGIC_CMD in
15876 [\\/*] | ?:[\\/]*)
15877 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15878 ;;
15879 *)
15880 lt_save_MAGIC_CMD="$MAGIC_CMD"
15881 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15882 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15883 for ac_dir in $ac_dummy; do
15884 IFS="$lt_save_ifs"
15885 test -z "$ac_dir" && ac_dir=.
15886 if test -f $ac_dir/file; then
15887 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15888 if test -n "$file_magic_test_file"; then
15889 case $deplibs_check_method in
15890 "file_magic "*)
15891 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15892 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15893 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15894 $EGREP "$file_magic_regex" > /dev/null; then
15895 :
15896 else
15897 cat <<_LT_EOF 1>&2
15898
15899 *** Warning: the command libtool uses to detect shared libraries,
15900 *** $file_magic_cmd, produces output that libtool cannot recognize.
15901 *** The result is that libtool may fail to recognize shared libraries
15902 *** as such. This will affect the creation of libtool libraries that
15903 *** depend on shared libraries, but programs linked with such libtool
15904 *** libraries will work regardless of this problem. Nevertheless, you
15905 *** may want to report the problem to your system manager and/or to
15906 *** bug-libtool@gnu.org
15907
15908 _LT_EOF
15909 fi ;;
15910 esac
15911 fi
15912 break
15913 fi
15914 done
15915 IFS="$lt_save_ifs"
15916 MAGIC_CMD="$lt_save_MAGIC_CMD"
15917 ;;
15918 esac
15919 fi
15920
15921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15922 if test -n "$MAGIC_CMD"; then
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15924 $as_echo "$MAGIC_CMD" >&6; }
15925 else
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15927 $as_echo "no" >&6; }
15928 fi
15929
15930
15931 else
15932 MAGIC_CMD=:
15933 fi
15934 fi
15935
15936 fi
15937 ;;
15938 esac
15939
15940 # Use C for the default configuration in the libtool script
15941
15942 lt_save_CC="$CC"
15943 ac_ext=c
15944 ac_cpp='$CPP $CPPFLAGS'
15945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15948
15949
15950 # Source file extension for C test sources.
15951 ac_ext=c
15952
15953 # Object file extension for compiled C test sources.
15954 objext=o
15955 objext=$objext
15956
15957 # Code to be used in simple compile tests
15958 lt_simple_compile_test_code="int some_variable = 0;"
15959
15960 # Code to be used in simple link tests
15961 lt_simple_link_test_code='int main(){return(0);}'
15962
15963
15964
15965
15966
15967
15968
15969 # If no C compiler was specified, use CC.
15970 LTCC=${LTCC-"$CC"}
15971
15972 # If no C compiler flags were specified, use CFLAGS.
15973 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15974
15975 # Allow CC to be a program name with arguments.
15976 compiler=$CC
15977
15978 # Save the default compiler, since it gets overwritten when the other
15979 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15980 compiler_DEFAULT=$CC
15981
15982 # save warnings/boilerplate of simple test code
15983 ac_outfile=conftest.$ac_objext
15984 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15985 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15986 _lt_compiler_boilerplate=`cat conftest.err`
15987 $RM conftest*
15988
15989 ac_outfile=conftest.$ac_objext
15990 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15991 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15992 _lt_linker_boilerplate=`cat conftest.err`
15993 $RM -r conftest*
15994
15995
15996 ## CAVEAT EMPTOR:
15997 ## There is no encapsulation within the following macros, do not change
15998 ## the running order or otherwise move them around unless you know exactly
15999 ## what you are doing...
16000 if test -n "$compiler"; then
16001
16002 lt_prog_compiler_no_builtin_flag=
16003
16004 if test "$GCC" = yes; then
16005 case $cc_basename in
16006 nvcc*)
16007 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16008 *)
16009 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16010 esac
16011
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16013 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16014 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16015 $as_echo_n "(cached) " >&6
16016 else
16017 lt_cv_prog_compiler_rtti_exceptions=no
16018 ac_outfile=conftest.$ac_objext
16019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16020 lt_compiler_flag="-fno-rtti -fno-exceptions"
16021 # Insert the option either (1) after the last *FLAGS variable, or
16022 # (2) before a word containing "conftest.", or (3) at the end.
16023 # Note that $ac_compile itself does not contain backslashes and begins
16024 # with a dollar sign (not a hyphen), so the echo should work correctly.
16025 # The option is referenced via a variable to avoid confusing sed.
16026 lt_compile=`echo "$ac_compile" | $SED \
16027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16029 -e 's:$: $lt_compiler_flag:'`
16030 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16031 (eval "$lt_compile" 2>conftest.err)
16032 ac_status=$?
16033 cat conftest.err >&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 if (exit $ac_status) && test -s "$ac_outfile"; then
16036 # The compiler can only warn and ignore the option if not recognized
16037 # So say no if there are warnings other than the usual output.
16038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16039 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16040 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16041 lt_cv_prog_compiler_rtti_exceptions=yes
16042 fi
16043 fi
16044 $RM conftest*
16045
16046 fi
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16048 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16049
16050 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16051 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16052 else
16053 :
16054 fi
16055
16056 fi
16057
16058
16059
16060
16061
16062
16063 lt_prog_compiler_wl=
16064 lt_prog_compiler_pic=
16065 lt_prog_compiler_static=
16066
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16068 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16069
16070 if test "$GCC" = yes; then
16071 lt_prog_compiler_wl='-Wl,'
16072 lt_prog_compiler_static='-static'
16073
16074 case $host_os in
16075 aix*)
16076 # All AIX code is PIC.
16077 if test "$host_cpu" = ia64; then
16078 # AIX 5 now supports IA64 processor
16079 lt_prog_compiler_static='-Bstatic'
16080 fi
16081 lt_prog_compiler_pic='-fPIC'
16082 ;;
16083
16084 amigaos*)
16085 case $host_cpu in
16086 powerpc)
16087 # see comment about AmigaOS4 .so support
16088 lt_prog_compiler_pic='-fPIC'
16089 ;;
16090 m68k)
16091 # FIXME: we need at least 68020 code to build shared libraries, but
16092 # adding the `-m68020' flag to GCC prevents building anything better,
16093 # like `-m68040'.
16094 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16095 ;;
16096 esac
16097 ;;
16098
16099 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16100 # PIC is the default for these OSes.
16101 ;;
16102
16103 mingw* | cygwin* | pw32* | os2* | cegcc*)
16104 # This hack is so that the source file can tell whether it is being
16105 # built for inclusion in a dll (and should export symbols for example).
16106 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16107 # (--disable-auto-import) libraries
16108 lt_prog_compiler_pic='-DDLL_EXPORT'
16109 ;;
16110
16111 darwin* | rhapsody*)
16112 # PIC is the default on this platform
16113 # Common symbols not allowed in MH_DYLIB files
16114 lt_prog_compiler_pic='-fno-common'
16115 ;;
16116
16117 haiku*)
16118 # PIC is the default for Haiku.
16119 # The "-static" flag exists, but is broken.
16120 lt_prog_compiler_static=
16121 ;;
16122
16123 hpux*)
16124 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16125 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16126 # sets the default TLS model and affects inlining.
16127 case $host_cpu in
16128 hppa*64*)
16129 # +Z the default
16130 ;;
16131 *)
16132 lt_prog_compiler_pic='-fPIC'
16133 ;;
16134 esac
16135 ;;
16136
16137 interix[3-9]*)
16138 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16139 # Instead, we relocate shared libraries at runtime.
16140 ;;
16141
16142 msdosdjgpp*)
16143 # Just because we use GCC doesn't mean we suddenly get shared libraries
16144 # on systems that don't support them.
16145 lt_prog_compiler_can_build_shared=no
16146 enable_shared=no
16147 ;;
16148
16149 *nto* | *qnx*)
16150 # QNX uses GNU C++, but need to define -shared option too, otherwise
16151 # it will coredump.
16152 lt_prog_compiler_pic='-fPIC -shared'
16153 ;;
16154
16155 sysv4*MP*)
16156 if test -d /usr/nec; then
16157 lt_prog_compiler_pic=-Kconform_pic
16158 fi
16159 ;;
16160
16161 *)
16162 lt_prog_compiler_pic='-fPIC'
16163 ;;
16164 esac
16165
16166 case $cc_basename in
16167 nvcc*) # Cuda Compiler Driver 2.2
16168 lt_prog_compiler_wl='-Xlinker '
16169 lt_prog_compiler_pic='-Xcompiler -fPIC'
16170 ;;
16171 esac
16172 else
16173 # PORTME Check for flag to pass linker flags through the system compiler.
16174 case $host_os in
16175 aix*)
16176 lt_prog_compiler_wl='-Wl,'
16177 if test "$host_cpu" = ia64; then
16178 # AIX 5 now supports IA64 processor
16179 lt_prog_compiler_static='-Bstatic'
16180 else
16181 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16182 fi
16183 ;;
16184
16185 mingw* | cygwin* | pw32* | os2* | cegcc*)
16186 # This hack is so that the source file can tell whether it is being
16187 # built for inclusion in a dll (and should export symbols for example).
16188 lt_prog_compiler_pic='-DDLL_EXPORT'
16189 ;;
16190
16191 hpux9* | hpux10* | hpux11*)
16192 lt_prog_compiler_wl='-Wl,'
16193 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16194 # not for PA HP-UX.
16195 case $host_cpu in
16196 hppa*64*|ia64*)
16197 # +Z the default
16198 ;;
16199 *)
16200 lt_prog_compiler_pic='+Z'
16201 ;;
16202 esac
16203 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16204 lt_prog_compiler_static='${wl}-a ${wl}archive'
16205 ;;
16206
16207 irix5* | irix6* | nonstopux*)
16208 lt_prog_compiler_wl='-Wl,'
16209 # PIC (with -KPIC) is the default.
16210 lt_prog_compiler_static='-non_shared'
16211 ;;
16212
16213 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16214 case $cc_basename in
16215 # old Intel for x86_64 which still supported -KPIC.
16216 ecc*)
16217 lt_prog_compiler_wl='-Wl,'
16218 lt_prog_compiler_pic='-KPIC'
16219 lt_prog_compiler_static='-static'
16220 ;;
16221 # icc used to be incompatible with GCC.
16222 # ICC 10 doesn't accept -KPIC any more.
16223 icc* | ifort*)
16224 lt_prog_compiler_wl='-Wl,'
16225 lt_prog_compiler_pic='-fPIC'
16226 lt_prog_compiler_static='-static'
16227 ;;
16228 # Lahey Fortran 8.1.
16229 lf95*)
16230 lt_prog_compiler_wl='-Wl,'
16231 lt_prog_compiler_pic='--shared'
16232 lt_prog_compiler_static='--static'
16233 ;;
16234 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16235 # Portland Group compilers (*not* the Pentium gcc compiler,
16236 # which looks to be a dead project)
16237 lt_prog_compiler_wl='-Wl,'
16238 lt_prog_compiler_pic='-fpic'
16239 lt_prog_compiler_static='-Bstatic'
16240 ;;
16241 ccc*)
16242 lt_prog_compiler_wl='-Wl,'
16243 # All Alpha code is PIC.
16244 lt_prog_compiler_static='-non_shared'
16245 ;;
16246 xl* | bgxl* | bgf* | mpixl*)
16247 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16248 lt_prog_compiler_wl='-Wl,'
16249 lt_prog_compiler_pic='-qpic'
16250 lt_prog_compiler_static='-qstaticlink'
16251 ;;
16252 *)
16253 case `$CC -V 2>&1 | sed 5q` in
16254 *Sun\ F* | *Sun*Fortran*)
16255 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16256 lt_prog_compiler_pic='-KPIC'
16257 lt_prog_compiler_static='-Bstatic'
16258 lt_prog_compiler_wl=''
16259 ;;
16260 *Sun\ C*)
16261 # Sun C 5.9
16262 lt_prog_compiler_pic='-KPIC'
16263 lt_prog_compiler_static='-Bstatic'
16264 lt_prog_compiler_wl='-Wl,'
16265 ;;
16266 esac
16267 ;;
16268 esac
16269 ;;
16270
16271 newsos6)
16272 lt_prog_compiler_pic='-KPIC'
16273 lt_prog_compiler_static='-Bstatic'
16274 ;;
16275
16276 *nto* | *qnx*)
16277 # QNX uses GNU C++, but need to define -shared option too, otherwise
16278 # it will coredump.
16279 lt_prog_compiler_pic='-fPIC -shared'
16280 ;;
16281
16282 osf3* | osf4* | osf5*)
16283 lt_prog_compiler_wl='-Wl,'
16284 # All OSF/1 code is PIC.
16285 lt_prog_compiler_static='-non_shared'
16286 ;;
16287
16288 rdos*)
16289 lt_prog_compiler_static='-non_shared'
16290 ;;
16291
16292 solaris*)
16293 lt_prog_compiler_pic='-KPIC'
16294 lt_prog_compiler_static='-Bstatic'
16295 case $cc_basename in
16296 f77* | f90* | f95*)
16297 lt_prog_compiler_wl='-Qoption ld ';;
16298 *)
16299 lt_prog_compiler_wl='-Wl,';;
16300 esac
16301 ;;
16302
16303 sunos4*)
16304 lt_prog_compiler_wl='-Qoption ld '
16305 lt_prog_compiler_pic='-PIC'
16306 lt_prog_compiler_static='-Bstatic'
16307 ;;
16308
16309 sysv4 | sysv4.2uw2* | sysv4.3*)
16310 lt_prog_compiler_wl='-Wl,'
16311 lt_prog_compiler_pic='-KPIC'
16312 lt_prog_compiler_static='-Bstatic'
16313 ;;
16314
16315 sysv4*MP*)
16316 if test -d /usr/nec ;then
16317 lt_prog_compiler_pic='-Kconform_pic'
16318 lt_prog_compiler_static='-Bstatic'
16319 fi
16320 ;;
16321
16322 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16323 lt_prog_compiler_wl='-Wl,'
16324 lt_prog_compiler_pic='-KPIC'
16325 lt_prog_compiler_static='-Bstatic'
16326 ;;
16327
16328 unicos*)
16329 lt_prog_compiler_wl='-Wl,'
16330 lt_prog_compiler_can_build_shared=no
16331 ;;
16332
16333 uts4*)
16334 lt_prog_compiler_pic='-pic'
16335 lt_prog_compiler_static='-Bstatic'
16336 ;;
16337
16338 *)
16339 lt_prog_compiler_can_build_shared=no
16340 ;;
16341 esac
16342 fi
16343
16344 case $host_os in
16345 # For platforms which do not support PIC, -DPIC is meaningless:
16346 *djgpp*)
16347 lt_prog_compiler_pic=
16348 ;;
16349 *)
16350 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16351 ;;
16352 esac
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16354 $as_echo "$lt_prog_compiler_pic" >&6; }
16355
16356
16357
16358
16359
16360
16361 #
16362 # Check to make sure the PIC flag actually works.
16363 #
16364 if test -n "$lt_prog_compiler_pic"; then
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16366 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16367 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16368 $as_echo_n "(cached) " >&6
16369 else
16370 lt_cv_prog_compiler_pic_works=no
16371 ac_outfile=conftest.$ac_objext
16372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16373 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16374 # Insert the option either (1) after the last *FLAGS variable, or
16375 # (2) before a word containing "conftest.", or (3) at the end.
16376 # Note that $ac_compile itself does not contain backslashes and begins
16377 # with a dollar sign (not a hyphen), so the echo should work correctly.
16378 # The option is referenced via a variable to avoid confusing sed.
16379 lt_compile=`echo "$ac_compile" | $SED \
16380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16382 -e 's:$: $lt_compiler_flag:'`
16383 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16384 (eval "$lt_compile" 2>conftest.err)
16385 ac_status=$?
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 if (exit $ac_status) && test -s "$ac_outfile"; then
16389 # The compiler can only warn and ignore the option if not recognized
16390 # So say no if there are warnings other than the usual output.
16391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16393 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16394 lt_cv_prog_compiler_pic_works=yes
16395 fi
16396 fi
16397 $RM conftest*
16398
16399 fi
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16401 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16402
16403 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16404 case $lt_prog_compiler_pic in
16405 "" | " "*) ;;
16406 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16407 esac
16408 else
16409 lt_prog_compiler_pic=
16410 lt_prog_compiler_can_build_shared=no
16411 fi
16412
16413 fi
16414
16415
16416
16417
16418
16419
16420 #
16421 # Check to make sure the static flag actually works.
16422 #
16423 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16425 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16426 if ${lt_cv_prog_compiler_static_works+:} false; then :
16427 $as_echo_n "(cached) " >&6
16428 else
16429 lt_cv_prog_compiler_static_works=no
16430 save_LDFLAGS="$LDFLAGS"
16431 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16432 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16433 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16434 # The linker can only warn and ignore the option if not recognized
16435 # So say no if there are warnings
16436 if test -s conftest.err; then
16437 # Append any errors to the config.log.
16438 cat conftest.err 1>&5
16439 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16441 if diff conftest.exp conftest.er2 >/dev/null; then
16442 lt_cv_prog_compiler_static_works=yes
16443 fi
16444 else
16445 lt_cv_prog_compiler_static_works=yes
16446 fi
16447 fi
16448 $RM -r conftest*
16449 LDFLAGS="$save_LDFLAGS"
16450
16451 fi
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16453 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16454
16455 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16456 :
16457 else
16458 lt_prog_compiler_static=
16459 fi
16460
16461
16462
16463
16464
16465
16466
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16468 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16469 if ${lt_cv_prog_compiler_c_o+:} false; then :
16470 $as_echo_n "(cached) " >&6
16471 else
16472 lt_cv_prog_compiler_c_o=no
16473 $RM -r conftest 2>/dev/null
16474 mkdir conftest
16475 cd conftest
16476 mkdir out
16477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16478
16479 lt_compiler_flag="-o out/conftest2.$ac_objext"
16480 # Insert the option either (1) after the last *FLAGS variable, or
16481 # (2) before a word containing "conftest.", or (3) at the end.
16482 # Note that $ac_compile itself does not contain backslashes and begins
16483 # with a dollar sign (not a hyphen), so the echo should work correctly.
16484 lt_compile=`echo "$ac_compile" | $SED \
16485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16487 -e 's:$: $lt_compiler_flag:'`
16488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16489 (eval "$lt_compile" 2>out/conftest.err)
16490 ac_status=$?
16491 cat out/conftest.err >&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16494 then
16495 # The compiler can only warn and ignore the option if not recognized
16496 # So say no if there are warnings
16497 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16498 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16499 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16500 lt_cv_prog_compiler_c_o=yes
16501 fi
16502 fi
16503 chmod u+w . 2>&5
16504 $RM conftest*
16505 # SGI C++ compiler will create directory out/ii_files/ for
16506 # template instantiation
16507 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16508 $RM out/* && rmdir out
16509 cd ..
16510 $RM -r conftest
16511 $RM conftest*
16512
16513 fi
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16515 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16516
16517
16518
16519
16520
16521
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16523 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16524 if ${lt_cv_prog_compiler_c_o+:} false; then :
16525 $as_echo_n "(cached) " >&6
16526 else
16527 lt_cv_prog_compiler_c_o=no
16528 $RM -r conftest 2>/dev/null
16529 mkdir conftest
16530 cd conftest
16531 mkdir out
16532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16533
16534 lt_compiler_flag="-o out/conftest2.$ac_objext"
16535 # Insert the option either (1) after the last *FLAGS variable, or
16536 # (2) before a word containing "conftest.", or (3) at the end.
16537 # Note that $ac_compile itself does not contain backslashes and begins
16538 # with a dollar sign (not a hyphen), so the echo should work correctly.
16539 lt_compile=`echo "$ac_compile" | $SED \
16540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16542 -e 's:$: $lt_compiler_flag:'`
16543 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16544 (eval "$lt_compile" 2>out/conftest.err)
16545 ac_status=$?
16546 cat out/conftest.err >&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16549 then
16550 # The compiler can only warn and ignore the option if not recognized
16551 # So say no if there are warnings
16552 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16553 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16554 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16555 lt_cv_prog_compiler_c_o=yes
16556 fi
16557 fi
16558 chmod u+w . 2>&5
16559 $RM conftest*
16560 # SGI C++ compiler will create directory out/ii_files/ for
16561 # template instantiation
16562 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16563 $RM out/* && rmdir out
16564 cd ..
16565 $RM -r conftest
16566 $RM conftest*
16567
16568 fi
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16570 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16571
16572
16573
16574
16575 hard_links="nottested"
16576 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16577 # do not overwrite the value of need_locks provided by the user
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16579 $as_echo_n "checking if we can lock with hard links... " >&6; }
16580 hard_links=yes
16581 $RM conftest*
16582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16583 touch conftest.a
16584 ln conftest.a conftest.b 2>&5 || hard_links=no
16585 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16587 $as_echo "$hard_links" >&6; }
16588 if test "$hard_links" = no; then
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16590 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16591 need_locks=warn
16592 fi
16593 else
16594 need_locks=no
16595 fi
16596
16597
16598
16599
16600
16601
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16603 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16604
16605 runpath_var=
16606 allow_undefined_flag=
16607 always_export_symbols=no
16608 archive_cmds=
16609 archive_expsym_cmds=
16610 compiler_needs_object=no
16611 enable_shared_with_static_runtimes=no
16612 export_dynamic_flag_spec=
16613 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16614 hardcode_automatic=no
16615 hardcode_direct=no
16616 hardcode_direct_absolute=no
16617 hardcode_libdir_flag_spec=
16618 hardcode_libdir_flag_spec_ld=
16619 hardcode_libdir_separator=
16620 hardcode_minus_L=no
16621 hardcode_shlibpath_var=unsupported
16622 inherit_rpath=no
16623 link_all_deplibs=unknown
16624 module_cmds=
16625 module_expsym_cmds=
16626 old_archive_from_new_cmds=
16627 old_archive_from_expsyms_cmds=
16628 thread_safe_flag_spec=
16629 whole_archive_flag_spec=
16630 # include_expsyms should be a list of space-separated symbols to be *always*
16631 # included in the symbol list
16632 include_expsyms=
16633 # exclude_expsyms can be an extended regexp of symbols to exclude
16634 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16635 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16636 # as well as any symbol that contains `d'.
16637 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16638 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16639 # platforms (ab)use it in PIC code, but their linkers get confused if
16640 # the symbol is explicitly referenced. Since portable code cannot
16641 # rely on this symbol name, it's probably fine to never include it in
16642 # preloaded symbol tables.
16643 # Exclude shared library initialization/finalization symbols.
16644 extract_expsyms_cmds=
16645
16646 case $host_os in
16647 cygwin* | mingw* | pw32* | cegcc*)
16648 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16649 # When not using gcc, we currently assume that we are using
16650 # Microsoft Visual C++.
16651 if test "$GCC" != yes; then
16652 with_gnu_ld=no
16653 fi
16654 ;;
16655 interix*)
16656 # we just hope/assume this is gcc and not c89 (= MSVC++)
16657 with_gnu_ld=yes
16658 ;;
16659 openbsd*)
16660 with_gnu_ld=no
16661 ;;
16662 esac
16663
16664 ld_shlibs=yes
16665
16666 # On some targets, GNU ld is compatible enough with the native linker
16667 # that we're better off using the native interface for both.
16668 lt_use_gnu_ld_interface=no
16669 if test "$with_gnu_ld" = yes; then
16670 case $host_os in
16671 aix*)
16672 # The AIX port of GNU ld has always aspired to compatibility
16673 # with the native linker. However, as the warning in the GNU ld
16674 # block says, versions before 2.19.5* couldn't really create working
16675 # shared libraries, regardless of the interface used.
16676 case `$LD -v 2>&1` in
16677 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16678 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16679 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16680 *)
16681 lt_use_gnu_ld_interface=yes
16682 ;;
16683 esac
16684 ;;
16685 *)
16686 lt_use_gnu_ld_interface=yes
16687 ;;
16688 esac
16689 fi
16690
16691 if test "$lt_use_gnu_ld_interface" = yes; then
16692 # If archive_cmds runs LD, not CC, wlarc should be empty
16693 wlarc='${wl}'
16694
16695 # Set some defaults for GNU ld with shared library support. These
16696 # are reset later if shared libraries are not supported. Putting them
16697 # here allows them to be overridden if necessary.
16698 runpath_var=LD_RUN_PATH
16699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16700 export_dynamic_flag_spec='${wl}--export-dynamic'
16701 # ancient GNU ld didn't support --whole-archive et. al.
16702 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16703 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16704 else
16705 whole_archive_flag_spec=
16706 fi
16707 supports_anon_versioning=no
16708 case `$LD -v 2>&1` in
16709 *GNU\ gold*) supports_anon_versioning=yes ;;
16710 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16711 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16712 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16713 *\ 2.11.*) ;; # other 2.11 versions
16714 *) supports_anon_versioning=yes ;;
16715 esac
16716
16717 # See if GNU ld supports shared libraries.
16718 case $host_os in
16719 aix[3-9]*)
16720 # On AIX/PPC, the GNU linker is very broken
16721 if test "$host_cpu" != ia64; then
16722 ld_shlibs=no
16723 cat <<_LT_EOF 1>&2
16724
16725 *** Warning: the GNU linker, at least up to release 2.19, is reported
16726 *** to be unable to reliably create shared libraries on AIX.
16727 *** Therefore, libtool is disabling shared libraries support. If you
16728 *** really care for shared libraries, you may want to install binutils
16729 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16730 *** You will then need to restart the configuration process.
16731
16732 _LT_EOF
16733 fi
16734 ;;
16735
16736 amigaos*)
16737 case $host_cpu in
16738 powerpc)
16739 # see comment about AmigaOS4 .so support
16740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16741 archive_expsym_cmds=''
16742 ;;
16743 m68k)
16744 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)'
16745 hardcode_libdir_flag_spec='-L$libdir'
16746 hardcode_minus_L=yes
16747 ;;
16748 esac
16749 ;;
16750
16751 beos*)
16752 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16753 allow_undefined_flag=unsupported
16754 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16755 # support --undefined. This deserves some investigation. FIXME
16756 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16757 else
16758 ld_shlibs=no
16759 fi
16760 ;;
16761
16762 cygwin* | mingw* | pw32* | cegcc*)
16763 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16764 # as there is no search path for DLLs.
16765 hardcode_libdir_flag_spec='-L$libdir'
16766 export_dynamic_flag_spec='${wl}--export-all-symbols'
16767 allow_undefined_flag=unsupported
16768 always_export_symbols=no
16769 enable_shared_with_static_runtimes=yes
16770 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16771
16772 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16774 # If the export-symbols file already is a .def file (1st line
16775 # is EXPORTS), use it as is; otherwise, prepend...
16776 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16777 cp $export_symbols $output_objdir/$soname.def;
16778 else
16779 echo EXPORTS > $output_objdir/$soname.def;
16780 cat $export_symbols >> $output_objdir/$soname.def;
16781 fi~
16782 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16783 else
16784 ld_shlibs=no
16785 fi
16786 ;;
16787
16788 haiku*)
16789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16790 link_all_deplibs=yes
16791 ;;
16792
16793 interix[3-9]*)
16794 hardcode_direct=no
16795 hardcode_shlibpath_var=no
16796 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16797 export_dynamic_flag_spec='${wl}-E'
16798 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16799 # Instead, shared libraries are loaded at an image base (0x10000000 by
16800 # default) and relocated if they conflict, which is a slow very memory
16801 # consuming and fragmenting process. To avoid this, we pick a random,
16802 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16803 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16804 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16805 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'
16806 ;;
16807
16808 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16809 tmp_diet=no
16810 if test "$host_os" = linux-dietlibc; then
16811 case $cc_basename in
16812 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16813 esac
16814 fi
16815 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16816 && test "$tmp_diet" = no
16817 then
16818 tmp_addflag=' $pic_flag'
16819 tmp_sharedflag='-shared'
16820 case $cc_basename,$host_cpu in
16821 pgcc*) # Portland Group C compiler
16822 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'
16823 tmp_addflag=' $pic_flag'
16824 ;;
16825 pgf77* | pgf90* | pgf95* | pgfortran*)
16826 # Portland Group f77 and f90 compilers
16827 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'
16828 tmp_addflag=' $pic_flag -Mnomain' ;;
16829 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16830 tmp_addflag=' -i_dynamic' ;;
16831 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16832 tmp_addflag=' -i_dynamic -nofor_main' ;;
16833 ifc* | ifort*) # Intel Fortran compiler
16834 tmp_addflag=' -nofor_main' ;;
16835 lf95*) # Lahey Fortran 8.1
16836 whole_archive_flag_spec=
16837 tmp_sharedflag='--shared' ;;
16838 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16839 tmp_sharedflag='-qmkshrobj'
16840 tmp_addflag= ;;
16841 nvcc*) # Cuda Compiler Driver 2.2
16842 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'
16843 compiler_needs_object=yes
16844 ;;
16845 esac
16846 case `$CC -V 2>&1 | sed 5q` in
16847 *Sun\ C*) # Sun C 5.9
16848 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'
16849 compiler_needs_object=yes
16850 tmp_sharedflag='-G' ;;
16851 *Sun\ F*) # Sun Fortran 8.3
16852 tmp_sharedflag='-G' ;;
16853 esac
16854 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16855
16856 if test "x$supports_anon_versioning" = xyes; then
16857 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16858 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16859 echo "local: *; };" >> $output_objdir/$libname.ver~
16860 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16861 fi
16862
16863 case $cc_basename in
16864 xlf* | bgf* | bgxlf* | mpixlf*)
16865 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16866 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16867 hardcode_libdir_flag_spec=
16868 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16869 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16870 if test "x$supports_anon_versioning" = xyes; then
16871 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16872 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16873 echo "local: *; };" >> $output_objdir/$libname.ver~
16874 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16875 fi
16876 ;;
16877 esac
16878 else
16879 ld_shlibs=no
16880 fi
16881 ;;
16882
16883 netbsd*)
16884 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16885 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16886 wlarc=
16887 else
16888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16889 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16890 fi
16891 ;;
16892
16893 solaris*)
16894 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16895 ld_shlibs=no
16896 cat <<_LT_EOF 1>&2
16897
16898 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16899 *** create shared libraries on Solaris systems. Therefore, libtool
16900 *** is disabling shared libraries support. We urge you to upgrade GNU
16901 *** binutils to release 2.9.1 or newer. Another option is to modify
16902 *** your PATH or compiler configuration so that the native linker is
16903 *** used, and then restart.
16904
16905 _LT_EOF
16906 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16908 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16909 else
16910 ld_shlibs=no
16911 fi
16912 ;;
16913
16914 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16915 case `$LD -v 2>&1` in
16916 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16917 ld_shlibs=no
16918 cat <<_LT_EOF 1>&2
16919
16920 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16921 *** reliably create shared libraries on SCO systems. Therefore, libtool
16922 *** is disabling shared libraries support. We urge you to upgrade GNU
16923 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16924 *** your PATH or compiler configuration so that the native linker is
16925 *** used, and then restart.
16926
16927 _LT_EOF
16928 ;;
16929 *)
16930 # For security reasons, it is highly recommended that you always
16931 # use absolute paths for naming shared libraries, and exclude the
16932 # DT_RUNPATH tag from executables and libraries. But doing so
16933 # requires that you compile everything twice, which is a pain.
16934 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16935 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16937 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16938 else
16939 ld_shlibs=no
16940 fi
16941 ;;
16942 esac
16943 ;;
16944
16945 sunos4*)
16946 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16947 wlarc=
16948 hardcode_direct=yes
16949 hardcode_shlibpath_var=no
16950 ;;
16951
16952 *)
16953 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16955 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16956 else
16957 ld_shlibs=no
16958 fi
16959 ;;
16960 esac
16961
16962 if test "$ld_shlibs" = no; then
16963 runpath_var=
16964 hardcode_libdir_flag_spec=
16965 export_dynamic_flag_spec=
16966 whole_archive_flag_spec=
16967 fi
16968 else
16969 # PORTME fill in a description of your system's linker (not GNU ld)
16970 case $host_os in
16971 aix3*)
16972 allow_undefined_flag=unsupported
16973 always_export_symbols=yes
16974 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'
16975 # Note: this linker hardcodes the directories in LIBPATH if there
16976 # are no directories specified by -L.
16977 hardcode_minus_L=yes
16978 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16979 # Neither direct hardcoding nor static linking is supported with a
16980 # broken collect2.
16981 hardcode_direct=unsupported
16982 fi
16983 ;;
16984
16985 aix[4-9]*)
16986 if test "$host_cpu" = ia64; then
16987 # On IA64, the linker does run time linking by default, so we don't
16988 # have to do anything special.
16989 aix_use_runtimelinking=no
16990 exp_sym_flag='-Bexport'
16991 no_entry_flag=""
16992 else
16993 # If we're using GNU nm, then we don't want the "-C" option.
16994 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16995 # Also, AIX nm treats weak defined symbols like other global
16996 # defined symbols, whereas GNU nm marks them as "W".
16997 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16998 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'
16999 else
17000 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'
17001 fi
17002 aix_use_runtimelinking=no
17003
17004 # Test if we are trying to use run time linking or normal
17005 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17006 # need to do runtime linking.
17007 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17008 for ld_flag in $LDFLAGS; do
17009 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17010 aix_use_runtimelinking=yes
17011 break
17012 fi
17013 done
17014 ;;
17015 esac
17016
17017 exp_sym_flag='-bexport'
17018 no_entry_flag='-bnoentry'
17019 fi
17020
17021 # When large executables or shared objects are built, AIX ld can
17022 # have problems creating the table of contents. If linking a library
17023 # or program results in "error TOC overflow" add -mminimal-toc to
17024 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17025 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17026
17027 archive_cmds=''
17028 hardcode_direct=yes
17029 hardcode_direct_absolute=yes
17030 hardcode_libdir_separator=':'
17031 link_all_deplibs=yes
17032 file_list_spec='${wl}-f,'
17033
17034 if test "$GCC" = yes; then
17035 case $host_os in aix4.[012]|aix4.[012].*)
17036 # We only want to do this on AIX 4.2 and lower, the check
17037 # below for broken collect2 doesn't work under 4.3+
17038 collect2name=`${CC} -print-prog-name=collect2`
17039 if test -f "$collect2name" &&
17040 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17041 then
17042 # We have reworked collect2
17043 :
17044 else
17045 # We have old collect2
17046 hardcode_direct=unsupported
17047 # It fails to find uninstalled libraries when the uninstalled
17048 # path is not listed in the libpath. Setting hardcode_minus_L
17049 # to unsupported forces relinking
17050 hardcode_minus_L=yes
17051 hardcode_libdir_flag_spec='-L$libdir'
17052 hardcode_libdir_separator=
17053 fi
17054 ;;
17055 esac
17056 shared_flag='-shared'
17057 if test "$aix_use_runtimelinking" = yes; then
17058 shared_flag="$shared_flag "'${wl}-G'
17059 fi
17060 else
17061 # not using gcc
17062 if test "$host_cpu" = ia64; then
17063 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17064 # chokes on -Wl,-G. The following line is correct:
17065 shared_flag='-G'
17066 else
17067 if test "$aix_use_runtimelinking" = yes; then
17068 shared_flag='${wl}-G'
17069 else
17070 shared_flag='${wl}-bM:SRE'
17071 fi
17072 fi
17073 fi
17074
17075 export_dynamic_flag_spec='${wl}-bexpall'
17076 # It seems that -bexpall does not export symbols beginning with
17077 # underscore (_), so it is better to generate a list of symbols to export.
17078 always_export_symbols=yes
17079 if test "$aix_use_runtimelinking" = yes; then
17080 # Warning - without using the other runtime loading flags (-brtl),
17081 # -berok will link without error, but may produce a broken library.
17082 allow_undefined_flag='-berok'
17083 # Determine the default libpath from the value encoded in an
17084 # empty executable.
17085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17086 /* end confdefs.h. */
17087
17088 int
17089 main ()
17090 {
17091
17092 ;
17093 return 0;
17094 }
17095 _ACEOF
17096 if ac_fn_c_try_link "$LINENO"; then :
17097
17098 lt_aix_libpath_sed='
17099 /Import File Strings/,/^$/ {
17100 /^0/ {
17101 s/^0 *\(.*\)$/\1/
17102 p
17103 }
17104 }'
17105 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17106 # Check for a 64-bit object if we didn't find anything.
17107 if test -z "$aix_libpath"; then
17108 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17109 fi
17110 fi
17111 rm -f core conftest.err conftest.$ac_objext \
17112 conftest$ac_exeext conftest.$ac_ext
17113 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17114
17115 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17116 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"
17117 else
17118 if test "$host_cpu" = ia64; then
17119 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17120 allow_undefined_flag="-z nodefs"
17121 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"
17122 else
17123 # Determine the default libpath from the value encoded in an
17124 # empty executable.
17125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17126 /* end confdefs.h. */
17127
17128 int
17129 main ()
17130 {
17131
17132 ;
17133 return 0;
17134 }
17135 _ACEOF
17136 if ac_fn_c_try_link "$LINENO"; then :
17137
17138 lt_aix_libpath_sed='
17139 /Import File Strings/,/^$/ {
17140 /^0/ {
17141 s/^0 *\(.*\)$/\1/
17142 p
17143 }
17144 }'
17145 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17146 # Check for a 64-bit object if we didn't find anything.
17147 if test -z "$aix_libpath"; then
17148 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17149 fi
17150 fi
17151 rm -f core conftest.err conftest.$ac_objext \
17152 conftest$ac_exeext conftest.$ac_ext
17153 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17154
17155 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17156 # Warning - without using the other run time loading flags,
17157 # -berok will link without error, but may produce a broken library.
17158 no_undefined_flag=' ${wl}-bernotok'
17159 allow_undefined_flag=' ${wl}-berok'
17160 if test "$with_gnu_ld" = yes; then
17161 # We only use this code for GNU lds that support --whole-archive.
17162 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17163 else
17164 # Exported symbols can be pulled into shared objects from archives
17165 whole_archive_flag_spec='$convenience'
17166 fi
17167 archive_cmds_need_lc=yes
17168 # This is similar to how AIX traditionally builds its shared libraries.
17169 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'
17170 fi
17171 fi
17172 ;;
17173
17174 amigaos*)
17175 case $host_cpu in
17176 powerpc)
17177 # see comment about AmigaOS4 .so support
17178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17179 archive_expsym_cmds=''
17180 ;;
17181 m68k)
17182 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)'
17183 hardcode_libdir_flag_spec='-L$libdir'
17184 hardcode_minus_L=yes
17185 ;;
17186 esac
17187 ;;
17188
17189 bsdi[45]*)
17190 export_dynamic_flag_spec=-rdynamic
17191 ;;
17192
17193 cygwin* | mingw* | pw32* | cegcc*)
17194 # When not using gcc, we currently assume that we are using
17195 # Microsoft Visual C++.
17196 # hardcode_libdir_flag_spec is actually meaningless, as there is
17197 # no search path for DLLs.
17198 hardcode_libdir_flag_spec=' '
17199 allow_undefined_flag=unsupported
17200 # Tell ltmain to make .lib files, not .a files.
17201 libext=lib
17202 # Tell ltmain to make .dll files, not .so files.
17203 shrext_cmds=".dll"
17204 # FIXME: Setting linknames here is a bad hack.
17205 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17206 # The linker will automatically build a .lib file if we build a DLL.
17207 old_archive_from_new_cmds='true'
17208 # FIXME: Should let the user specify the lib program.
17209 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17210 fix_srcfile_path='`cygpath -w "$srcfile"`'
17211 enable_shared_with_static_runtimes=yes
17212 ;;
17213
17214 darwin* | rhapsody*)
17215
17216
17217 archive_cmds_need_lc=no
17218 hardcode_direct=no
17219 hardcode_automatic=yes
17220 hardcode_shlibpath_var=unsupported
17221 if test "$lt_cv_ld_force_load" = "yes"; then
17222 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\"`'
17223 else
17224 whole_archive_flag_spec=''
17225 fi
17226 link_all_deplibs=yes
17227 allow_undefined_flag="$_lt_dar_allow_undefined"
17228 case $cc_basename in
17229 ifort*) _lt_dar_can_shared=yes ;;
17230 *) _lt_dar_can_shared=$GCC ;;
17231 esac
17232 if test "$_lt_dar_can_shared" = "yes"; then
17233 output_verbose_link_cmd=func_echo_all
17234 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17235 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17236 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}"
17237 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}"
17238
17239 else
17240 ld_shlibs=no
17241 fi
17242
17243 ;;
17244
17245 dgux*)
17246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17247 hardcode_libdir_flag_spec='-L$libdir'
17248 hardcode_shlibpath_var=no
17249 ;;
17250
17251 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17252 # support. Future versions do this automatically, but an explicit c++rt0.o
17253 # does not break anything, and helps significantly (at the cost of a little
17254 # extra space).
17255 freebsd2.2*)
17256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17257 hardcode_libdir_flag_spec='-R$libdir'
17258 hardcode_direct=yes
17259 hardcode_shlibpath_var=no
17260 ;;
17261
17262 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17263 freebsd2.*)
17264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17265 hardcode_direct=yes
17266 hardcode_minus_L=yes
17267 hardcode_shlibpath_var=no
17268 ;;
17269
17270 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17271 freebsd* | dragonfly*)
17272 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17273 hardcode_libdir_flag_spec='-R$libdir'
17274 hardcode_direct=yes
17275 hardcode_shlibpath_var=no
17276 ;;
17277
17278 hpux9*)
17279 if test "$GCC" = yes; then
17280 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'
17281 else
17282 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'
17283 fi
17284 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17285 hardcode_libdir_separator=:
17286 hardcode_direct=yes
17287
17288 # hardcode_minus_L: Not really in the search PATH,
17289 # but as the default location of the library.
17290 hardcode_minus_L=yes
17291 export_dynamic_flag_spec='${wl}-E'
17292 ;;
17293
17294 hpux10*)
17295 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17296 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17297 else
17298 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17299 fi
17300 if test "$with_gnu_ld" = no; then
17301 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17302 hardcode_libdir_flag_spec_ld='+b $libdir'
17303 hardcode_libdir_separator=:
17304 hardcode_direct=yes
17305 hardcode_direct_absolute=yes
17306 export_dynamic_flag_spec='${wl}-E'
17307 # hardcode_minus_L: Not really in the search PATH,
17308 # but as the default location of the library.
17309 hardcode_minus_L=yes
17310 fi
17311 ;;
17312
17313 hpux11*)
17314 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17315 case $host_cpu in
17316 hppa*64*)
17317 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17318 ;;
17319 ia64*)
17320 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17321 ;;
17322 *)
17323 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17324 ;;
17325 esac
17326 else
17327 case $host_cpu in
17328 hppa*64*)
17329 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17330 ;;
17331 ia64*)
17332 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17333 ;;
17334 *)
17335
17336 # Older versions of the 11.00 compiler do not understand -b yet
17337 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17339 $as_echo_n "checking if $CC understands -b... " >&6; }
17340 if ${lt_cv_prog_compiler__b+:} false; then :
17341 $as_echo_n "(cached) " >&6
17342 else
17343 lt_cv_prog_compiler__b=no
17344 save_LDFLAGS="$LDFLAGS"
17345 LDFLAGS="$LDFLAGS -b"
17346 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17347 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17348 # The linker can only warn and ignore the option if not recognized
17349 # So say no if there are warnings
17350 if test -s conftest.err; then
17351 # Append any errors to the config.log.
17352 cat conftest.err 1>&5
17353 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17355 if diff conftest.exp conftest.er2 >/dev/null; then
17356 lt_cv_prog_compiler__b=yes
17357 fi
17358 else
17359 lt_cv_prog_compiler__b=yes
17360 fi
17361 fi
17362 $RM -r conftest*
17363 LDFLAGS="$save_LDFLAGS"
17364
17365 fi
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17367 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17368
17369 if test x"$lt_cv_prog_compiler__b" = xyes; then
17370 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17371 else
17372 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17373 fi
17374
17375 ;;
17376 esac
17377 fi
17378 if test "$with_gnu_ld" = no; then
17379 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17380 hardcode_libdir_separator=:
17381
17382 case $host_cpu in
17383 hppa*64*|ia64*)
17384 hardcode_direct=no
17385 hardcode_shlibpath_var=no
17386 ;;
17387 *)
17388 hardcode_direct=yes
17389 hardcode_direct_absolute=yes
17390 export_dynamic_flag_spec='${wl}-E'
17391
17392 # hardcode_minus_L: Not really in the search PATH,
17393 # but as the default location of the library.
17394 hardcode_minus_L=yes
17395 ;;
17396 esac
17397 fi
17398 ;;
17399
17400 irix5* | irix6* | nonstopux*)
17401 if test "$GCC" = yes; then
17402 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'
17403 # Try to use the -exported_symbol ld option, if it does not
17404 # work, assume that -exports_file does not work either and
17405 # implicitly export all symbols.
17406 save_LDFLAGS="$LDFLAGS"
17407 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17409 /* end confdefs.h. */
17410 int foo(void) {}
17411 _ACEOF
17412 if ac_fn_c_try_link "$LINENO"; then :
17413 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'
17414
17415 fi
17416 rm -f core conftest.err conftest.$ac_objext \
17417 conftest$ac_exeext conftest.$ac_ext
17418 LDFLAGS="$save_LDFLAGS"
17419 else
17420 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'
17421 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'
17422 fi
17423 archive_cmds_need_lc='no'
17424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17425 hardcode_libdir_separator=:
17426 inherit_rpath=yes
17427 link_all_deplibs=yes
17428 ;;
17429
17430 netbsd*)
17431 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17433 else
17434 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17435 fi
17436 hardcode_libdir_flag_spec='-R$libdir'
17437 hardcode_direct=yes
17438 hardcode_shlibpath_var=no
17439 ;;
17440
17441 newsos6)
17442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17443 hardcode_direct=yes
17444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17445 hardcode_libdir_separator=:
17446 hardcode_shlibpath_var=no
17447 ;;
17448
17449 *nto* | *qnx*)
17450 ;;
17451
17452 openbsd*)
17453 if test -f /usr/libexec/ld.so; then
17454 hardcode_direct=yes
17455 hardcode_shlibpath_var=no
17456 hardcode_direct_absolute=yes
17457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17458 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17459 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17460 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17461 export_dynamic_flag_spec='${wl}-E'
17462 else
17463 case $host_os in
17464 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17466 hardcode_libdir_flag_spec='-R$libdir'
17467 ;;
17468 *)
17469 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17470 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17471 ;;
17472 esac
17473 fi
17474 else
17475 ld_shlibs=no
17476 fi
17477 ;;
17478
17479 os2*)
17480 hardcode_libdir_flag_spec='-L$libdir'
17481 hardcode_minus_L=yes
17482 allow_undefined_flag=unsupported
17483 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'
17484 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17485 ;;
17486
17487 osf3*)
17488 if test "$GCC" = yes; then
17489 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17490 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'
17491 else
17492 allow_undefined_flag=' -expect_unresolved \*'
17493 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'
17494 fi
17495 archive_cmds_need_lc='no'
17496 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17497 hardcode_libdir_separator=:
17498 ;;
17499
17500 osf4* | osf5*) # as osf3* with the addition of -msym flag
17501 if test "$GCC" = yes; then
17502 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17503 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'
17504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17505 else
17506 allow_undefined_flag=' -expect_unresolved \*'
17507 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'
17508 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~
17509 $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'
17510
17511 # Both c and cxx compiler support -rpath directly
17512 hardcode_libdir_flag_spec='-rpath $libdir'
17513 fi
17514 archive_cmds_need_lc='no'
17515 hardcode_libdir_separator=:
17516 ;;
17517
17518 solaris*)
17519 no_undefined_flag=' -z defs'
17520 if test "$GCC" = yes; then
17521 wlarc='${wl}'
17522 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17523 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17524 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17525 else
17526 case `$CC -V 2>&1` in
17527 *"Compilers 5.0"*)
17528 wlarc=''
17529 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17530 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17531 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17532 ;;
17533 *)
17534 wlarc='${wl}'
17535 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17536 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17537 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17538 ;;
17539 esac
17540 fi
17541 hardcode_libdir_flag_spec='-R$libdir'
17542 hardcode_shlibpath_var=no
17543 case $host_os in
17544 solaris2.[0-5] | solaris2.[0-5].*) ;;
17545 *)
17546 # The compiler driver will combine and reorder linker options,
17547 # but understands `-z linker_flag'. GCC discards it without `$wl',
17548 # but is careful enough not to reorder.
17549 # Supported since Solaris 2.6 (maybe 2.5.1?)
17550 if test "$GCC" = yes; then
17551 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17552 else
17553 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17554 fi
17555 ;;
17556 esac
17557 link_all_deplibs=yes
17558 ;;
17559
17560 sunos4*)
17561 if test "x$host_vendor" = xsequent; then
17562 # Use $CC to link under sequent, because it throws in some extra .o
17563 # files that make .init and .fini sections work.
17564 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17565 else
17566 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17567 fi
17568 hardcode_libdir_flag_spec='-L$libdir'
17569 hardcode_direct=yes
17570 hardcode_minus_L=yes
17571 hardcode_shlibpath_var=no
17572 ;;
17573
17574 sysv4)
17575 case $host_vendor in
17576 sni)
17577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17578 hardcode_direct=yes # is this really true???
17579 ;;
17580 siemens)
17581 ## LD is ld it makes a PLAMLIB
17582 ## CC just makes a GrossModule.
17583 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17584 reload_cmds='$CC -r -o $output$reload_objs'
17585 hardcode_direct=no
17586 ;;
17587 motorola)
17588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17589 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17590 ;;
17591 esac
17592 runpath_var='LD_RUN_PATH'
17593 hardcode_shlibpath_var=no
17594 ;;
17595
17596 sysv4.3*)
17597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17598 hardcode_shlibpath_var=no
17599 export_dynamic_flag_spec='-Bexport'
17600 ;;
17601
17602 sysv4*MP*)
17603 if test -d /usr/nec; then
17604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17605 hardcode_shlibpath_var=no
17606 runpath_var=LD_RUN_PATH
17607 hardcode_runpath_var=yes
17608 ld_shlibs=yes
17609 fi
17610 ;;
17611
17612 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17613 no_undefined_flag='${wl}-z,text'
17614 archive_cmds_need_lc=no
17615 hardcode_shlibpath_var=no
17616 runpath_var='LD_RUN_PATH'
17617
17618 if test "$GCC" = yes; then
17619 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17620 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17621 else
17622 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17623 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17624 fi
17625 ;;
17626
17627 sysv5* | sco3.2v5* | sco5v6*)
17628 # Note: We can NOT use -z defs as we might desire, because we do not
17629 # link with -lc, and that would cause any symbols used from libc to
17630 # always be unresolved, which means just about no library would
17631 # ever link correctly. If we're not using GNU ld we use -z text
17632 # though, which does catch some bad symbols but isn't as heavy-handed
17633 # as -z defs.
17634 no_undefined_flag='${wl}-z,text'
17635 allow_undefined_flag='${wl}-z,nodefs'
17636 archive_cmds_need_lc=no
17637 hardcode_shlibpath_var=no
17638 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17639 hardcode_libdir_separator=':'
17640 link_all_deplibs=yes
17641 export_dynamic_flag_spec='${wl}-Bexport'
17642 runpath_var='LD_RUN_PATH'
17643
17644 if test "$GCC" = yes; then
17645 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17646 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17647 else
17648 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17649 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17650 fi
17651 ;;
17652
17653 uts4*)
17654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17655 hardcode_libdir_flag_spec='-L$libdir'
17656 hardcode_shlibpath_var=no
17657 ;;
17658
17659 *)
17660 ld_shlibs=no
17661 ;;
17662 esac
17663
17664 if test x$host_vendor = xsni; then
17665 case $host in
17666 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17667 export_dynamic_flag_spec='${wl}-Blargedynsym'
17668 ;;
17669 esac
17670 fi
17671 fi
17672
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17674 $as_echo "$ld_shlibs" >&6; }
17675 test "$ld_shlibs" = no && can_build_shared=no
17676
17677 with_gnu_ld=$with_gnu_ld
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693 #
17694 # Do we need to explicitly link libc?
17695 #
17696 case "x$archive_cmds_need_lc" in
17697 x|xyes)
17698 # Assume -lc should be added
17699 archive_cmds_need_lc=yes
17700
17701 if test "$enable_shared" = yes && test "$GCC" = yes; then
17702 case $archive_cmds in
17703 *'~'*)
17704 # FIXME: we may have to deal with multi-command sequences.
17705 ;;
17706 '$CC '*)
17707 # Test whether the compiler implicitly links with -lc since on some
17708 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17709 # to ld, don't add -lc before -lgcc.
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17711 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17712 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17713 $as_echo_n "(cached) " >&6
17714 else
17715 $RM conftest*
17716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17717
17718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17719 (eval $ac_compile) 2>&5
17720 ac_status=$?
17721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17722 test $ac_status = 0; } 2>conftest.err; then
17723 soname=conftest
17724 lib=conftest
17725 libobjs=conftest.$ac_objext
17726 deplibs=
17727 wl=$lt_prog_compiler_wl
17728 pic_flag=$lt_prog_compiler_pic
17729 compiler_flags=-v
17730 linker_flags=-v
17731 verstring=
17732 output_objdir=.
17733 libname=conftest
17734 lt_save_allow_undefined_flag=$allow_undefined_flag
17735 allow_undefined_flag=
17736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17737 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17738 ac_status=$?
17739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17740 test $ac_status = 0; }
17741 then
17742 lt_cv_archive_cmds_need_lc=no
17743 else
17744 lt_cv_archive_cmds_need_lc=yes
17745 fi
17746 allow_undefined_flag=$lt_save_allow_undefined_flag
17747 else
17748 cat conftest.err 1>&5
17749 fi
17750 $RM conftest*
17751
17752 fi
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17754 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17755 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17756 ;;
17757 esac
17758 fi
17759 ;;
17760 esac
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17919 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17920
17921 if test "$GCC" = yes; then
17922 case $host_os in
17923 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17924 *) lt_awk_arg="/^libraries:/" ;;
17925 esac
17926 case $host_os in
17927 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17928 *) lt_sed_strip_eq="s,=/,/,g" ;;
17929 esac
17930 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17931 case $lt_search_path_spec in
17932 *\;*)
17933 # if the path contains ";" then we assume it to be the separator
17934 # otherwise default to the standard path separator (i.e. ":") - it is
17935 # assumed that no part of a normal pathname contains ";" but that should
17936 # okay in the real world where ";" in dirpaths is itself problematic.
17937 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17938 ;;
17939 *)
17940 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17941 ;;
17942 esac
17943 # Ok, now we have the path, separated by spaces, we can step through it
17944 # and add multilib dir if necessary.
17945 lt_tmp_lt_search_path_spec=
17946 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17947 for lt_sys_path in $lt_search_path_spec; do
17948 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17949 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17950 else
17951 test -d "$lt_sys_path" && \
17952 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17953 fi
17954 done
17955 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17956 BEGIN {RS=" "; FS="/|\n";} {
17957 lt_foo="";
17958 lt_count=0;
17959 for (lt_i = NF; lt_i > 0; lt_i--) {
17960 if ($lt_i != "" && $lt_i != ".") {
17961 if ($lt_i == "..") {
17962 lt_count++;
17963 } else {
17964 if (lt_count == 0) {
17965 lt_foo="/" $lt_i lt_foo;
17966 } else {
17967 lt_count--;
17968 }
17969 }
17970 }
17971 }
17972 if (lt_foo != "") { lt_freq[lt_foo]++; }
17973 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17974 }'`
17975 # AWK program above erroneously prepends '/' to C:/dos/paths
17976 # for these hosts.
17977 case $host_os in
17978 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17979 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17980 esac
17981 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17982 else
17983 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17984 fi
17985 library_names_spec=
17986 libname_spec='lib$name'
17987 soname_spec=
17988 shrext_cmds=".so"
17989 postinstall_cmds=
17990 postuninstall_cmds=
17991 finish_cmds=
17992 finish_eval=
17993 shlibpath_var=
17994 shlibpath_overrides_runpath=unknown
17995 version_type=none
17996 dynamic_linker="$host_os ld.so"
17997 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17998 need_lib_prefix=unknown
17999 hardcode_into_libs=no
18000
18001 # when you set need_version to no, make sure it does not cause -set_version
18002 # flags to be left without arguments
18003 need_version=unknown
18004
18005 case $host_os in
18006 aix3*)
18007 version_type=linux
18008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18009 shlibpath_var=LIBPATH
18010
18011 # AIX 3 has no versioning support, so we append a major version to the name.
18012 soname_spec='${libname}${release}${shared_ext}$major'
18013 ;;
18014
18015 aix[4-9]*)
18016 version_type=linux
18017 need_lib_prefix=no
18018 need_version=no
18019 hardcode_into_libs=yes
18020 if test "$host_cpu" = ia64; then
18021 # AIX 5 supports IA64
18022 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18023 shlibpath_var=LD_LIBRARY_PATH
18024 else
18025 # With GCC up to 2.95.x, collect2 would create an import file
18026 # for dependence libraries. The import file would start with
18027 # the line `#! .'. This would cause the generated library to
18028 # depend on `.', always an invalid library. This was fixed in
18029 # development snapshots of GCC prior to 3.0.
18030 case $host_os in
18031 aix4 | aix4.[01] | aix4.[01].*)
18032 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18033 echo ' yes '
18034 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18035 :
18036 else
18037 can_build_shared=no
18038 fi
18039 ;;
18040 esac
18041 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18042 # soname into executable. Probably we can add versioning support to
18043 # collect2, so additional links can be useful in future.
18044 if test "$aix_use_runtimelinking" = yes; then
18045 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18046 # instead of lib<name>.a to let people know that these are not
18047 # typical AIX shared libraries.
18048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18049 else
18050 # We preserve .a as extension for shared libraries through AIX4.2
18051 # and later when we are not doing run time linking.
18052 library_names_spec='${libname}${release}.a $libname.a'
18053 soname_spec='${libname}${release}${shared_ext}$major'
18054 fi
18055 shlibpath_var=LIBPATH
18056 fi
18057 ;;
18058
18059 amigaos*)
18060 case $host_cpu in
18061 powerpc)
18062 # Since July 2007 AmigaOS4 officially supports .so libraries.
18063 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18065 ;;
18066 m68k)
18067 library_names_spec='$libname.ixlibrary $libname.a'
18068 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18069 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'
18070 ;;
18071 esac
18072 ;;
18073
18074 beos*)
18075 library_names_spec='${libname}${shared_ext}'
18076 dynamic_linker="$host_os ld.so"
18077 shlibpath_var=LIBRARY_PATH
18078 ;;
18079
18080 bsdi[45]*)
18081 version_type=linux
18082 need_version=no
18083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18084 soname_spec='${libname}${release}${shared_ext}$major'
18085 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18086 shlibpath_var=LD_LIBRARY_PATH
18087 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18088 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18089 # the default ld.so.conf also contains /usr/contrib/lib and
18090 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18091 # libtool to hard-code these into programs
18092 ;;
18093
18094 cygwin* | mingw* | pw32* | cegcc*)
18095 version_type=windows
18096 shrext_cmds=".dll"
18097 need_version=no
18098 need_lib_prefix=no
18099
18100 case $GCC,$host_os in
18101 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18102 library_names_spec='$libname.dll.a'
18103 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18104 postinstall_cmds='base_file=`basename \${file}`~
18105 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18106 dldir=$destdir/`dirname \$dlpath`~
18107 test -d \$dldir || mkdir -p \$dldir~
18108 $install_prog $dir/$dlname \$dldir/$dlname~
18109 chmod a+x \$dldir/$dlname~
18110 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18111 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18112 fi'
18113 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18114 dlpath=$dir/\$dldll~
18115 $RM \$dlpath'
18116 shlibpath_overrides_runpath=yes
18117
18118 case $host_os in
18119 cygwin*)
18120 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18121 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18122
18123 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18124 ;;
18125 mingw* | cegcc*)
18126 # MinGW DLLs use traditional 'lib' prefix
18127 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18128 ;;
18129 pw32*)
18130 # pw32 DLLs use 'pw' prefix rather than 'lib'
18131 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18132 ;;
18133 esac
18134 ;;
18135
18136 *)
18137 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18138 ;;
18139 esac
18140 dynamic_linker='Win32 ld.exe'
18141 # FIXME: first we should search . and the directory the executable is in
18142 shlibpath_var=PATH
18143 ;;
18144
18145 darwin* | rhapsody*)
18146 dynamic_linker="$host_os dyld"
18147 version_type=darwin
18148 need_lib_prefix=no
18149 need_version=no
18150 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18151 soname_spec='${libname}${release}${major}$shared_ext'
18152 shlibpath_overrides_runpath=yes
18153 shlibpath_var=DYLD_LIBRARY_PATH
18154 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18155
18156 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18157 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18158 ;;
18159
18160 dgux*)
18161 version_type=linux
18162 need_lib_prefix=no
18163 need_version=no
18164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18165 soname_spec='${libname}${release}${shared_ext}$major'
18166 shlibpath_var=LD_LIBRARY_PATH
18167 ;;
18168
18169 freebsd* | dragonfly*)
18170 # DragonFly does not have aout. When/if they implement a new
18171 # versioning mechanism, adjust this.
18172 if test -x /usr/bin/objformat; then
18173 objformat=`/usr/bin/objformat`
18174 else
18175 case $host_os in
18176 freebsd[23].*) objformat=aout ;;
18177 *) objformat=elf ;;
18178 esac
18179 fi
18180 version_type=freebsd-$objformat
18181 case $version_type in
18182 freebsd-elf*)
18183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18184 need_version=no
18185 need_lib_prefix=no
18186 ;;
18187 freebsd-*)
18188 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18189 need_version=yes
18190 ;;
18191 esac
18192 shlibpath_var=LD_LIBRARY_PATH
18193 case $host_os in
18194 freebsd2.*)
18195 shlibpath_overrides_runpath=yes
18196 ;;
18197 freebsd3.[01]* | freebsdelf3.[01]*)
18198 shlibpath_overrides_runpath=yes
18199 hardcode_into_libs=yes
18200 ;;
18201 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18202 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18203 shlibpath_overrides_runpath=no
18204 hardcode_into_libs=yes
18205 ;;
18206 *) # from 4.6 on, and DragonFly
18207 shlibpath_overrides_runpath=yes
18208 hardcode_into_libs=yes
18209 ;;
18210 esac
18211 ;;
18212
18213 gnu*)
18214 version_type=linux
18215 need_lib_prefix=no
18216 need_version=no
18217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18218 soname_spec='${libname}${release}${shared_ext}$major'
18219 shlibpath_var=LD_LIBRARY_PATH
18220 hardcode_into_libs=yes
18221 ;;
18222
18223 haiku*)
18224 version_type=linux
18225 need_lib_prefix=no
18226 need_version=no
18227 dynamic_linker="$host_os runtime_loader"
18228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18229 soname_spec='${libname}${release}${shared_ext}$major'
18230 shlibpath_var=LIBRARY_PATH
18231 shlibpath_overrides_runpath=yes
18232 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18233 hardcode_into_libs=yes
18234 ;;
18235
18236 hpux9* | hpux10* | hpux11*)
18237 # Give a soname corresponding to the major version so that dld.sl refuses to
18238 # link against other versions.
18239 version_type=sunos
18240 need_lib_prefix=no
18241 need_version=no
18242 case $host_cpu in
18243 ia64*)
18244 shrext_cmds='.so'
18245 hardcode_into_libs=yes
18246 dynamic_linker="$host_os dld.so"
18247 shlibpath_var=LD_LIBRARY_PATH
18248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18250 soname_spec='${libname}${release}${shared_ext}$major'
18251 if test "X$HPUX_IA64_MODE" = X32; then
18252 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18253 else
18254 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18255 fi
18256 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18257 ;;
18258 hppa*64*)
18259 shrext_cmds='.sl'
18260 hardcode_into_libs=yes
18261 dynamic_linker="$host_os dld.sl"
18262 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18263 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18265 soname_spec='${libname}${release}${shared_ext}$major'
18266 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18267 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18268 ;;
18269 *)
18270 shrext_cmds='.sl'
18271 dynamic_linker="$host_os dld.sl"
18272 shlibpath_var=SHLIB_PATH
18273 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18275 soname_spec='${libname}${release}${shared_ext}$major'
18276 ;;
18277 esac
18278 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18279 postinstall_cmds='chmod 555 $lib'
18280 # or fails outright, so override atomically:
18281 install_override_mode=555
18282 ;;
18283
18284 interix[3-9]*)
18285 version_type=linux
18286 need_lib_prefix=no
18287 need_version=no
18288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18289 soname_spec='${libname}${release}${shared_ext}$major'
18290 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18291 shlibpath_var=LD_LIBRARY_PATH
18292 shlibpath_overrides_runpath=no
18293 hardcode_into_libs=yes
18294 ;;
18295
18296 irix5* | irix6* | nonstopux*)
18297 case $host_os in
18298 nonstopux*) version_type=nonstopux ;;
18299 *)
18300 if test "$lt_cv_prog_gnu_ld" = yes; then
18301 version_type=linux
18302 else
18303 version_type=irix
18304 fi ;;
18305 esac
18306 need_lib_prefix=no
18307 need_version=no
18308 soname_spec='${libname}${release}${shared_ext}$major'
18309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18310 case $host_os in
18311 irix5* | nonstopux*)
18312 libsuff= shlibsuff=
18313 ;;
18314 *)
18315 case $LD in # libtool.m4 will add one of these switches to LD
18316 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18317 libsuff= shlibsuff= libmagic=32-bit;;
18318 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18319 libsuff=32 shlibsuff=N32 libmagic=N32;;
18320 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18321 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18322 *) libsuff= shlibsuff= libmagic=never-match;;
18323 esac
18324 ;;
18325 esac
18326 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18327 shlibpath_overrides_runpath=no
18328 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18329 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18330 hardcode_into_libs=yes
18331 ;;
18332
18333 # No shared lib support for Linux oldld, aout, or coff.
18334 linux*oldld* | linux*aout* | linux*coff*)
18335 dynamic_linker=no
18336 ;;
18337
18338 # This must be Linux ELF.
18339
18340 # uclinux* changes (here and below) have been submitted to the libtool
18341 # project, but have not yet been accepted: they are GCC-local changes
18342 # for the time being. (See
18343 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18344 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
18345 version_type=linux
18346 need_lib_prefix=no
18347 need_version=no
18348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18349 soname_spec='${libname}${release}${shared_ext}$major'
18350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18351 shlibpath_var=LD_LIBRARY_PATH
18352 shlibpath_overrides_runpath=no
18353
18354 # Some binutils ld are patched to set DT_RUNPATH
18355 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18356 $as_echo_n "(cached) " >&6
18357 else
18358 lt_cv_shlibpath_overrides_runpath=no
18359 save_LDFLAGS=$LDFLAGS
18360 save_libdir=$libdir
18361 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18362 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18364 /* end confdefs.h. */
18365
18366 int
18367 main ()
18368 {
18369
18370 ;
18371 return 0;
18372 }
18373 _ACEOF
18374 if ac_fn_c_try_link "$LINENO"; then :
18375 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18376 lt_cv_shlibpath_overrides_runpath=yes
18377 fi
18378 fi
18379 rm -f core conftest.err conftest.$ac_objext \
18380 conftest$ac_exeext conftest.$ac_ext
18381 LDFLAGS=$save_LDFLAGS
18382 libdir=$save_libdir
18383
18384 fi
18385
18386 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18387
18388 # This implies no fast_install, which is unacceptable.
18389 # Some rework will be needed to allow for fast_install
18390 # before this can be enabled.
18391 hardcode_into_libs=yes
18392
18393 # Append ld.so.conf contents to the search path
18394 if test -f /etc/ld.so.conf; then
18395 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' ' '`
18396 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18397 fi
18398
18399 # We used to test for /lib/ld.so.1 and disable shared libraries on
18400 # powerpc, because MkLinux only supported shared libraries with the
18401 # GNU dynamic linker. Since this was broken with cross compilers,
18402 # most powerpc-linux boxes support dynamic linking these days and
18403 # people can always --disable-shared, the test was removed, and we
18404 # assume the GNU/Linux dynamic linker is in use.
18405 dynamic_linker='GNU/Linux ld.so'
18406 ;;
18407
18408 netbsd*)
18409 version_type=sunos
18410 need_lib_prefix=no
18411 need_version=no
18412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18415 dynamic_linker='NetBSD (a.out) ld.so'
18416 else
18417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18418 soname_spec='${libname}${release}${shared_ext}$major'
18419 dynamic_linker='NetBSD ld.elf_so'
18420 fi
18421 shlibpath_var=LD_LIBRARY_PATH
18422 shlibpath_overrides_runpath=yes
18423 hardcode_into_libs=yes
18424 ;;
18425
18426 newsos6)
18427 version_type=linux
18428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18429 shlibpath_var=LD_LIBRARY_PATH
18430 shlibpath_overrides_runpath=yes
18431 ;;
18432
18433 *nto* | *qnx*)
18434 version_type=qnx
18435 need_lib_prefix=no
18436 need_version=no
18437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18438 soname_spec='${libname}${release}${shared_ext}$major'
18439 shlibpath_var=LD_LIBRARY_PATH
18440 shlibpath_overrides_runpath=no
18441 hardcode_into_libs=yes
18442 dynamic_linker='ldqnx.so'
18443 ;;
18444
18445 openbsd*)
18446 version_type=sunos
18447 sys_lib_dlsearch_path_spec="/usr/lib"
18448 need_lib_prefix=no
18449 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18450 case $host_os in
18451 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18452 *) need_version=no ;;
18453 esac
18454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18456 shlibpath_var=LD_LIBRARY_PATH
18457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18458 case $host_os in
18459 openbsd2.[89] | openbsd2.[89].*)
18460 shlibpath_overrides_runpath=no
18461 ;;
18462 *)
18463 shlibpath_overrides_runpath=yes
18464 ;;
18465 esac
18466 else
18467 shlibpath_overrides_runpath=yes
18468 fi
18469 ;;
18470
18471 os2*)
18472 libname_spec='$name'
18473 shrext_cmds=".dll"
18474 need_lib_prefix=no
18475 library_names_spec='$libname${shared_ext} $libname.a'
18476 dynamic_linker='OS/2 ld.exe'
18477 shlibpath_var=LIBPATH
18478 ;;
18479
18480 osf3* | osf4* | osf5*)
18481 version_type=osf
18482 need_lib_prefix=no
18483 need_version=no
18484 soname_spec='${libname}${release}${shared_ext}$major'
18485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18486 shlibpath_var=LD_LIBRARY_PATH
18487 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18488 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18489 ;;
18490
18491 rdos*)
18492 dynamic_linker=no
18493 ;;
18494
18495 solaris*)
18496 version_type=linux
18497 need_lib_prefix=no
18498 need_version=no
18499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18500 soname_spec='${libname}${release}${shared_ext}$major'
18501 shlibpath_var=LD_LIBRARY_PATH
18502 shlibpath_overrides_runpath=yes
18503 hardcode_into_libs=yes
18504 # ldd complains unless libraries are executable
18505 postinstall_cmds='chmod +x $lib'
18506 ;;
18507
18508 sunos4*)
18509 version_type=sunos
18510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18511 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18512 shlibpath_var=LD_LIBRARY_PATH
18513 shlibpath_overrides_runpath=yes
18514 if test "$with_gnu_ld" = yes; then
18515 need_lib_prefix=no
18516 fi
18517 need_version=yes
18518 ;;
18519
18520 sysv4 | sysv4.3*)
18521 version_type=linux
18522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18523 soname_spec='${libname}${release}${shared_ext}$major'
18524 shlibpath_var=LD_LIBRARY_PATH
18525 case $host_vendor in
18526 sni)
18527 shlibpath_overrides_runpath=no
18528 need_lib_prefix=no
18529 runpath_var=LD_RUN_PATH
18530 ;;
18531 siemens)
18532 need_lib_prefix=no
18533 ;;
18534 motorola)
18535 need_lib_prefix=no
18536 need_version=no
18537 shlibpath_overrides_runpath=no
18538 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18539 ;;
18540 esac
18541 ;;
18542
18543 sysv4*MP*)
18544 if test -d /usr/nec ;then
18545 version_type=linux
18546 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18547 soname_spec='$libname${shared_ext}.$major'
18548 shlibpath_var=LD_LIBRARY_PATH
18549 fi
18550 ;;
18551
18552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18553 version_type=freebsd-elf
18554 need_lib_prefix=no
18555 need_version=no
18556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18557 soname_spec='${libname}${release}${shared_ext}$major'
18558 shlibpath_var=LD_LIBRARY_PATH
18559 shlibpath_overrides_runpath=yes
18560 hardcode_into_libs=yes
18561 if test "$with_gnu_ld" = yes; then
18562 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18563 else
18564 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18565 case $host_os in
18566 sco3.2v5*)
18567 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18568 ;;
18569 esac
18570 fi
18571 sys_lib_dlsearch_path_spec='/usr/lib'
18572 ;;
18573
18574 tpf*)
18575 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18576 version_type=linux
18577 need_lib_prefix=no
18578 need_version=no
18579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18580 shlibpath_var=LD_LIBRARY_PATH
18581 shlibpath_overrides_runpath=no
18582 hardcode_into_libs=yes
18583 ;;
18584
18585 uts4*)
18586 version_type=linux
18587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18588 soname_spec='${libname}${release}${shared_ext}$major'
18589 shlibpath_var=LD_LIBRARY_PATH
18590 ;;
18591
18592 *)
18593 dynamic_linker=no
18594 ;;
18595 esac
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18597 $as_echo "$dynamic_linker" >&6; }
18598 test "$dynamic_linker" = no && can_build_shared=no
18599
18600 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18601 if test "$GCC" = yes; then
18602 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18603 fi
18604
18605 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18606 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18607 fi
18608 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18609 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18610 fi
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18704 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18705 hardcode_action=
18706 if test -n "$hardcode_libdir_flag_spec" ||
18707 test -n "$runpath_var" ||
18708 test "X$hardcode_automatic" = "Xyes" ; then
18709
18710 # We can hardcode non-existent directories.
18711 if test "$hardcode_direct" != no &&
18712 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18713 # have to relink, otherwise we might link with an installed library
18714 # when we should be linking with a yet-to-be-installed one
18715 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18716 test "$hardcode_minus_L" != no; then
18717 # Linking always hardcodes the temporary library directory.
18718 hardcode_action=relink
18719 else
18720 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18721 hardcode_action=immediate
18722 fi
18723 else
18724 # We cannot hardcode anything, or else we can only hardcode existing
18725 # directories.
18726 hardcode_action=unsupported
18727 fi
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18729 $as_echo "$hardcode_action" >&6; }
18730
18731 if test "$hardcode_action" = relink ||
18732 test "$inherit_rpath" = yes; then
18733 # Fast installation is not supported
18734 enable_fast_install=no
18735 elif test "$shlibpath_overrides_runpath" = yes ||
18736 test "$enable_shared" = no; then
18737 # Fast installation is not necessary
18738 enable_fast_install=needless
18739 fi
18740
18741
18742
18743
18744
18745
18746 if test "x$enable_dlopen" != xyes; then
18747 enable_dlopen=unknown
18748 enable_dlopen_self=unknown
18749 enable_dlopen_self_static=unknown
18750 else
18751 lt_cv_dlopen=no
18752 lt_cv_dlopen_libs=
18753
18754 case $host_os in
18755 beos*)
18756 lt_cv_dlopen="load_add_on"
18757 lt_cv_dlopen_libs=
18758 lt_cv_dlopen_self=yes
18759 ;;
18760
18761 mingw* | pw32* | cegcc*)
18762 lt_cv_dlopen="LoadLibrary"
18763 lt_cv_dlopen_libs=
18764 ;;
18765
18766 cygwin*)
18767 lt_cv_dlopen="dlopen"
18768 lt_cv_dlopen_libs=
18769 ;;
18770
18771 darwin*)
18772 # if libdl is installed we need to link against it
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18774 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18775 if ${ac_cv_lib_dl_dlopen+:} false; then :
18776 $as_echo_n "(cached) " >&6
18777 else
18778 ac_check_lib_save_LIBS=$LIBS
18779 LIBS="-ldl $LIBS"
18780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18781 /* end confdefs.h. */
18782
18783 /* Override any GCC internal prototype to avoid an error.
18784 Use char because int might match the return type of a GCC
18785 builtin and then its argument prototype would still apply. */
18786 #ifdef __cplusplus
18787 extern "C"
18788 #endif
18789 char dlopen ();
18790 int
18791 main ()
18792 {
18793 return dlopen ();
18794 ;
18795 return 0;
18796 }
18797 _ACEOF
18798 if ac_fn_c_try_link "$LINENO"; then :
18799 ac_cv_lib_dl_dlopen=yes
18800 else
18801 ac_cv_lib_dl_dlopen=no
18802 fi
18803 rm -f core conftest.err conftest.$ac_objext \
18804 conftest$ac_exeext conftest.$ac_ext
18805 LIBS=$ac_check_lib_save_LIBS
18806 fi
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18808 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18809 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18810 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18811 else
18812
18813 lt_cv_dlopen="dyld"
18814 lt_cv_dlopen_libs=
18815 lt_cv_dlopen_self=yes
18816
18817 fi
18818
18819 ;;
18820
18821 *)
18822 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18823 if test "x$ac_cv_func_shl_load" = xyes; then :
18824 lt_cv_dlopen="shl_load"
18825 else
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18827 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18828 if ${ac_cv_lib_dld_shl_load+:} false; then :
18829 $as_echo_n "(cached) " >&6
18830 else
18831 ac_check_lib_save_LIBS=$LIBS
18832 LIBS="-ldld $LIBS"
18833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18834 /* end confdefs.h. */
18835
18836 /* Override any GCC internal prototype to avoid an error.
18837 Use char because int might match the return type of a GCC
18838 builtin and then its argument prototype would still apply. */
18839 #ifdef __cplusplus
18840 extern "C"
18841 #endif
18842 char shl_load ();
18843 int
18844 main ()
18845 {
18846 return shl_load ();
18847 ;
18848 return 0;
18849 }
18850 _ACEOF
18851 if ac_fn_c_try_link "$LINENO"; then :
18852 ac_cv_lib_dld_shl_load=yes
18853 else
18854 ac_cv_lib_dld_shl_load=no
18855 fi
18856 rm -f core conftest.err conftest.$ac_objext \
18857 conftest$ac_exeext conftest.$ac_ext
18858 LIBS=$ac_check_lib_save_LIBS
18859 fi
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18861 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18862 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18863 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18864 else
18865 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18866 if test "x$ac_cv_func_dlopen" = xyes; then :
18867 lt_cv_dlopen="dlopen"
18868 else
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18870 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18871 if ${ac_cv_lib_dl_dlopen+:} false; then :
18872 $as_echo_n "(cached) " >&6
18873 else
18874 ac_check_lib_save_LIBS=$LIBS
18875 LIBS="-ldl $LIBS"
18876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18877 /* end confdefs.h. */
18878
18879 /* Override any GCC internal prototype to avoid an error.
18880 Use char because int might match the return type of a GCC
18881 builtin and then its argument prototype would still apply. */
18882 #ifdef __cplusplus
18883 extern "C"
18884 #endif
18885 char dlopen ();
18886 int
18887 main ()
18888 {
18889 return dlopen ();
18890 ;
18891 return 0;
18892 }
18893 _ACEOF
18894 if ac_fn_c_try_link "$LINENO"; then :
18895 ac_cv_lib_dl_dlopen=yes
18896 else
18897 ac_cv_lib_dl_dlopen=no
18898 fi
18899 rm -f core conftest.err conftest.$ac_objext \
18900 conftest$ac_exeext conftest.$ac_ext
18901 LIBS=$ac_check_lib_save_LIBS
18902 fi
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18904 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18905 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18906 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18907 else
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18909 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18910 if ${ac_cv_lib_svld_dlopen+:} false; then :
18911 $as_echo_n "(cached) " >&6
18912 else
18913 ac_check_lib_save_LIBS=$LIBS
18914 LIBS="-lsvld $LIBS"
18915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18916 /* end confdefs.h. */
18917
18918 /* Override any GCC internal prototype to avoid an error.
18919 Use char because int might match the return type of a GCC
18920 builtin and then its argument prototype would still apply. */
18921 #ifdef __cplusplus
18922 extern "C"
18923 #endif
18924 char dlopen ();
18925 int
18926 main ()
18927 {
18928 return dlopen ();
18929 ;
18930 return 0;
18931 }
18932 _ACEOF
18933 if ac_fn_c_try_link "$LINENO"; then :
18934 ac_cv_lib_svld_dlopen=yes
18935 else
18936 ac_cv_lib_svld_dlopen=no
18937 fi
18938 rm -f core conftest.err conftest.$ac_objext \
18939 conftest$ac_exeext conftest.$ac_ext
18940 LIBS=$ac_check_lib_save_LIBS
18941 fi
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18943 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18944 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18945 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18946 else
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18948 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18949 if ${ac_cv_lib_dld_dld_link+:} false; then :
18950 $as_echo_n "(cached) " >&6
18951 else
18952 ac_check_lib_save_LIBS=$LIBS
18953 LIBS="-ldld $LIBS"
18954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18955 /* end confdefs.h. */
18956
18957 /* Override any GCC internal prototype to avoid an error.
18958 Use char because int might match the return type of a GCC
18959 builtin and then its argument prototype would still apply. */
18960 #ifdef __cplusplus
18961 extern "C"
18962 #endif
18963 char dld_link ();
18964 int
18965 main ()
18966 {
18967 return dld_link ();
18968 ;
18969 return 0;
18970 }
18971 _ACEOF
18972 if ac_fn_c_try_link "$LINENO"; then :
18973 ac_cv_lib_dld_dld_link=yes
18974 else
18975 ac_cv_lib_dld_dld_link=no
18976 fi
18977 rm -f core conftest.err conftest.$ac_objext \
18978 conftest$ac_exeext conftest.$ac_ext
18979 LIBS=$ac_check_lib_save_LIBS
18980 fi
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18982 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18983 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18984 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18985 fi
18986
18987
18988 fi
18989
18990
18991 fi
18992
18993
18994 fi
18995
18996
18997 fi
18998
18999
19000 fi
19001
19002 ;;
19003 esac
19004
19005 if test "x$lt_cv_dlopen" != xno; then
19006 enable_dlopen=yes
19007 else
19008 enable_dlopen=no
19009 fi
19010
19011 case $lt_cv_dlopen in
19012 dlopen)
19013 save_CPPFLAGS="$CPPFLAGS"
19014 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19015
19016 save_LDFLAGS="$LDFLAGS"
19017 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19018
19019 save_LIBS="$LIBS"
19020 LIBS="$lt_cv_dlopen_libs $LIBS"
19021
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19023 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19024 if ${lt_cv_dlopen_self+:} false; then :
19025 $as_echo_n "(cached) " >&6
19026 else
19027 if test "$cross_compiling" = yes; then :
19028 lt_cv_dlopen_self=cross
19029 else
19030 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19031 lt_status=$lt_dlunknown
19032 cat > conftest.$ac_ext <<_LT_EOF
19033 #line 19033 "configure"
19034 #include "confdefs.h"
19035
19036 #if HAVE_DLFCN_H
19037 #include <dlfcn.h>
19038 #endif
19039
19040 #include <stdio.h>
19041
19042 #ifdef RTLD_GLOBAL
19043 # define LT_DLGLOBAL RTLD_GLOBAL
19044 #else
19045 # ifdef DL_GLOBAL
19046 # define LT_DLGLOBAL DL_GLOBAL
19047 # else
19048 # define LT_DLGLOBAL 0
19049 # endif
19050 #endif
19051
19052 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19053 find out it does not work in some platform. */
19054 #ifndef LT_DLLAZY_OR_NOW
19055 # ifdef RTLD_LAZY
19056 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19057 # else
19058 # ifdef DL_LAZY
19059 # define LT_DLLAZY_OR_NOW DL_LAZY
19060 # else
19061 # ifdef RTLD_NOW
19062 # define LT_DLLAZY_OR_NOW RTLD_NOW
19063 # else
19064 # ifdef DL_NOW
19065 # define LT_DLLAZY_OR_NOW DL_NOW
19066 # else
19067 # define LT_DLLAZY_OR_NOW 0
19068 # endif
19069 # endif
19070 # endif
19071 # endif
19072 #endif
19073
19074 /* When -fvisbility=hidden is used, assume the code has been annotated
19075 correspondingly for the symbols needed. */
19076 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19077 void fnord () __attribute__((visibility("default")));
19078 #endif
19079
19080 void fnord () { int i=42; }
19081 int main ()
19082 {
19083 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19084 int status = $lt_dlunknown;
19085
19086 if (self)
19087 {
19088 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19089 else
19090 {
19091 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19092 else puts (dlerror ());
19093 }
19094 /* dlclose (self); */
19095 }
19096 else
19097 puts (dlerror ());
19098
19099 return status;
19100 }
19101 _LT_EOF
19102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19103 (eval $ac_link) 2>&5
19104 ac_status=$?
19105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19106 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19107 (./conftest; exit; ) >&5 2>/dev/null
19108 lt_status=$?
19109 case x$lt_status in
19110 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19111 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19112 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19113 esac
19114 else :
19115 # compilation failed
19116 lt_cv_dlopen_self=no
19117 fi
19118 fi
19119 rm -fr conftest*
19120
19121
19122 fi
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19124 $as_echo "$lt_cv_dlopen_self" >&6; }
19125
19126 if test "x$lt_cv_dlopen_self" = xyes; then
19127 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19129 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19130 if ${lt_cv_dlopen_self_static+:} false; then :
19131 $as_echo_n "(cached) " >&6
19132 else
19133 if test "$cross_compiling" = yes; then :
19134 lt_cv_dlopen_self_static=cross
19135 else
19136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19137 lt_status=$lt_dlunknown
19138 cat > conftest.$ac_ext <<_LT_EOF
19139 #line 19139 "configure"
19140 #include "confdefs.h"
19141
19142 #if HAVE_DLFCN_H
19143 #include <dlfcn.h>
19144 #endif
19145
19146 #include <stdio.h>
19147
19148 #ifdef RTLD_GLOBAL
19149 # define LT_DLGLOBAL RTLD_GLOBAL
19150 #else
19151 # ifdef DL_GLOBAL
19152 # define LT_DLGLOBAL DL_GLOBAL
19153 # else
19154 # define LT_DLGLOBAL 0
19155 # endif
19156 #endif
19157
19158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19159 find out it does not work in some platform. */
19160 #ifndef LT_DLLAZY_OR_NOW
19161 # ifdef RTLD_LAZY
19162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19163 # else
19164 # ifdef DL_LAZY
19165 # define LT_DLLAZY_OR_NOW DL_LAZY
19166 # else
19167 # ifdef RTLD_NOW
19168 # define LT_DLLAZY_OR_NOW RTLD_NOW
19169 # else
19170 # ifdef DL_NOW
19171 # define LT_DLLAZY_OR_NOW DL_NOW
19172 # else
19173 # define LT_DLLAZY_OR_NOW 0
19174 # endif
19175 # endif
19176 # endif
19177 # endif
19178 #endif
19179
19180 /* When -fvisbility=hidden is used, assume the code has been annotated
19181 correspondingly for the symbols needed. */
19182 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19183 void fnord () __attribute__((visibility("default")));
19184 #endif
19185
19186 void fnord () { int i=42; }
19187 int main ()
19188 {
19189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19190 int status = $lt_dlunknown;
19191
19192 if (self)
19193 {
19194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19195 else
19196 {
19197 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19198 else puts (dlerror ());
19199 }
19200 /* dlclose (self); */
19201 }
19202 else
19203 puts (dlerror ());
19204
19205 return status;
19206 }
19207 _LT_EOF
19208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19209 (eval $ac_link) 2>&5
19210 ac_status=$?
19211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19212 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19213 (./conftest; exit; ) >&5 2>/dev/null
19214 lt_status=$?
19215 case x$lt_status in
19216 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19217 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19218 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19219 esac
19220 else :
19221 # compilation failed
19222 lt_cv_dlopen_self_static=no
19223 fi
19224 fi
19225 rm -fr conftest*
19226
19227
19228 fi
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19230 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19231 fi
19232
19233 CPPFLAGS="$save_CPPFLAGS"
19234 LDFLAGS="$save_LDFLAGS"
19235 LIBS="$save_LIBS"
19236 ;;
19237 esac
19238
19239 case $lt_cv_dlopen_self in
19240 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19241 *) enable_dlopen_self=unknown ;;
19242 esac
19243
19244 case $lt_cv_dlopen_self_static in
19245 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19246 *) enable_dlopen_self_static=unknown ;;
19247 esac
19248 fi
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266 striplib=
19267 old_striplib=
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19269 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19270 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19271 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19272 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19274 $as_echo "yes" >&6; }
19275 else
19276 # FIXME - insert some real tests, host_os isn't really good enough
19277 case $host_os in
19278 darwin*)
19279 if test -n "$STRIP" ; then
19280 striplib="$STRIP -x"
19281 old_striplib="$STRIP -S"
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19283 $as_echo "yes" >&6; }
19284 else
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19286 $as_echo "no" >&6; }
19287 fi
19288 ;;
19289 *)
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19291 $as_echo "no" >&6; }
19292 ;;
19293 esac
19294 fi
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307 # Report which library types will actually be built
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19309 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19311 $as_echo "$can_build_shared" >&6; }
19312
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19314 $as_echo_n "checking whether to build shared libraries... " >&6; }
19315 test "$can_build_shared" = "no" && enable_shared=no
19316
19317 # On AIX, shared libraries and static libraries use the same namespace, and
19318 # are all built from PIC.
19319 case $host_os in
19320 aix3*)
19321 test "$enable_shared" = yes && enable_static=no
19322 if test -n "$RANLIB"; then
19323 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19324 postinstall_cmds='$RANLIB $lib'
19325 fi
19326 ;;
19327
19328 aix[4-9]*)
19329 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19330 test "$enable_shared" = yes && enable_static=no
19331 fi
19332 ;;
19333 esac
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19335 $as_echo "$enable_shared" >&6; }
19336
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19338 $as_echo_n "checking whether to build static libraries... " >&6; }
19339 # Make sure either enable_shared or enable_static is yes.
19340 test "$enable_shared" = yes || enable_static=yes
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19342 $as_echo "$enable_static" >&6; }
19343
19344
19345
19346
19347 fi
19348 ac_ext=cpp
19349 ac_cpp='$CXXCPP $CPPFLAGS'
19350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19353
19354 CC="$lt_save_CC"
19355
19356 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19357 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19358 (test "X$CXX" != "Xg++"))) ; then
19359 ac_ext=cpp
19360 ac_cpp='$CXXCPP $CPPFLAGS'
19361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19365 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19366 if test -z "$CXXCPP"; then
19367 if ${ac_cv_prog_CXXCPP+:} false; then :
19368 $as_echo_n "(cached) " >&6
19369 else
19370 # Double quotes because CXXCPP needs to be expanded
19371 for CXXCPP in "$CXX -E" "/lib/cpp"
19372 do
19373 ac_preproc_ok=false
19374 for ac_cxx_preproc_warn_flag in '' yes
19375 do
19376 # Use a header file that comes with gcc, so configuring glibc
19377 # with a fresh cross-compiler works.
19378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19379 # <limits.h> exists even on freestanding compilers.
19380 # On the NeXT, cc -E runs the code through the compiler's parser,
19381 # not just through cpp. "Syntax error" is here to catch this case.
19382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19383 /* end confdefs.h. */
19384 #ifdef __STDC__
19385 # include <limits.h>
19386 #else
19387 # include <assert.h>
19388 #endif
19389 Syntax error
19390 _ACEOF
19391 if ac_fn_cxx_try_cpp "$LINENO"; then :
19392
19393 else
19394 # Broken: fails on valid input.
19395 continue
19396 fi
19397 rm -f conftest.err conftest.i conftest.$ac_ext
19398
19399 # OK, works on sane cases. Now check whether nonexistent headers
19400 # can be detected and how.
19401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19402 /* end confdefs.h. */
19403 #include <ac_nonexistent.h>
19404 _ACEOF
19405 if ac_fn_cxx_try_cpp "$LINENO"; then :
19406 # Broken: success on invalid input.
19407 continue
19408 else
19409 # Passes both tests.
19410 ac_preproc_ok=:
19411 break
19412 fi
19413 rm -f conftest.err conftest.i conftest.$ac_ext
19414
19415 done
19416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19417 rm -f conftest.i conftest.err conftest.$ac_ext
19418 if $ac_preproc_ok; then :
19419 break
19420 fi
19421
19422 done
19423 ac_cv_prog_CXXCPP=$CXXCPP
19424
19425 fi
19426 CXXCPP=$ac_cv_prog_CXXCPP
19427 else
19428 ac_cv_prog_CXXCPP=$CXXCPP
19429 fi
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19431 $as_echo "$CXXCPP" >&6; }
19432 ac_preproc_ok=false
19433 for ac_cxx_preproc_warn_flag in '' yes
19434 do
19435 # Use a header file that comes with gcc, so configuring glibc
19436 # with a fresh cross-compiler works.
19437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19438 # <limits.h> exists even on freestanding compilers.
19439 # On the NeXT, cc -E runs the code through the compiler's parser,
19440 # not just through cpp. "Syntax error" is here to catch this case.
19441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19442 /* end confdefs.h. */
19443 #ifdef __STDC__
19444 # include <limits.h>
19445 #else
19446 # include <assert.h>
19447 #endif
19448 Syntax error
19449 _ACEOF
19450 if ac_fn_cxx_try_cpp "$LINENO"; then :
19451
19452 else
19453 # Broken: fails on valid input.
19454 continue
19455 fi
19456 rm -f conftest.err conftest.i conftest.$ac_ext
19457
19458 # OK, works on sane cases. Now check whether nonexistent headers
19459 # can be detected and how.
19460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19461 /* end confdefs.h. */
19462 #include <ac_nonexistent.h>
19463 _ACEOF
19464 if ac_fn_cxx_try_cpp "$LINENO"; then :
19465 # Broken: success on invalid input.
19466 continue
19467 else
19468 # Passes both tests.
19469 ac_preproc_ok=:
19470 break
19471 fi
19472 rm -f conftest.err conftest.i conftest.$ac_ext
19473
19474 done
19475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19476 rm -f conftest.i conftest.err conftest.$ac_ext
19477 if $ac_preproc_ok; then :
19478
19479 else
19480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19482 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19483 See \`config.log' for more details" "$LINENO" 5; }
19484 fi
19485
19486 ac_ext=cpp
19487 ac_cpp='$CXXCPP $CPPFLAGS'
19488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19491
19492 else
19493 _lt_caught_CXX_error=yes
19494 fi
19495
19496 ac_ext=cpp
19497 ac_cpp='$CXXCPP $CPPFLAGS'
19498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19501
19502 archive_cmds_need_lc_CXX=no
19503 allow_undefined_flag_CXX=
19504 always_export_symbols_CXX=no
19505 archive_expsym_cmds_CXX=
19506 compiler_needs_object_CXX=no
19507 export_dynamic_flag_spec_CXX=
19508 hardcode_direct_CXX=no
19509 hardcode_direct_absolute_CXX=no
19510 hardcode_libdir_flag_spec_CXX=
19511 hardcode_libdir_flag_spec_ld_CXX=
19512 hardcode_libdir_separator_CXX=
19513 hardcode_minus_L_CXX=no
19514 hardcode_shlibpath_var_CXX=unsupported
19515 hardcode_automatic_CXX=no
19516 inherit_rpath_CXX=no
19517 module_cmds_CXX=
19518 module_expsym_cmds_CXX=
19519 link_all_deplibs_CXX=unknown
19520 old_archive_cmds_CXX=$old_archive_cmds
19521 reload_flag_CXX=$reload_flag
19522 reload_cmds_CXX=$reload_cmds
19523 no_undefined_flag_CXX=
19524 whole_archive_flag_spec_CXX=
19525 enable_shared_with_static_runtimes_CXX=no
19526
19527 # Source file extension for C++ test sources.
19528 ac_ext=cpp
19529
19530 # Object file extension for compiled C++ test sources.
19531 objext=o
19532 objext_CXX=$objext
19533
19534 # No sense in running all these tests if we already determined that
19535 # the CXX compiler isn't working. Some variables (like enable_shared)
19536 # are currently assumed to apply to all compilers on this platform,
19537 # and will be corrupted by setting them based on a non-working compiler.
19538 if test "$_lt_caught_CXX_error" != yes; then
19539 # Code to be used in simple compile tests
19540 lt_simple_compile_test_code="int some_variable = 0;"
19541
19542 # Code to be used in simple link tests
19543 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19544
19545 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19546
19547
19548
19549
19550
19551
19552 # If no C compiler was specified, use CC.
19553 LTCC=${LTCC-"$CC"}
19554
19555 # If no C compiler flags were specified, use CFLAGS.
19556 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19557
19558 # Allow CC to be a program name with arguments.
19559 compiler=$CC
19560
19561
19562 # save warnings/boilerplate of simple test code
19563 ac_outfile=conftest.$ac_objext
19564 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19565 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19566 _lt_compiler_boilerplate=`cat conftest.err`
19567 $RM conftest*
19568
19569 ac_outfile=conftest.$ac_objext
19570 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19571 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19572 _lt_linker_boilerplate=`cat conftest.err`
19573 $RM -r conftest*
19574
19575
19576 # Allow CC to be a program name with arguments.
19577 lt_save_CC=$CC
19578 lt_save_LD=$LD
19579 lt_save_GCC=$GCC
19580 GCC=$GXX
19581 lt_save_with_gnu_ld=$with_gnu_ld
19582 lt_save_path_LD=$lt_cv_path_LD
19583 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19584 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19585 else
19586 $as_unset lt_cv_prog_gnu_ld
19587 fi
19588 if test -n "${lt_cv_path_LDCXX+set}"; then
19589 lt_cv_path_LD=$lt_cv_path_LDCXX
19590 else
19591 $as_unset lt_cv_path_LD
19592 fi
19593 test -z "${LDCXX+set}" || LD=$LDCXX
19594 CC=${CXX-"c++"}
19595 compiler=$CC
19596 compiler_CXX=$CC
19597 for cc_temp in $compiler""; do
19598 case $cc_temp in
19599 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19600 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19601 \-*) ;;
19602 *) break;;
19603 esac
19604 done
19605 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19606
19607
19608 if test -n "$compiler"; then
19609 # We don't want -fno-exception when compiling C++ code, so set the
19610 # no_builtin_flag separately
19611 if test "$GXX" = yes; then
19612 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19613 else
19614 lt_prog_compiler_no_builtin_flag_CXX=
19615 fi
19616
19617 if test "$GXX" = yes; then
19618 # Set up default GNU C++ configuration
19619
19620
19621
19622 # Check whether --with-gnu-ld was given.
19623 if test "${with_gnu_ld+set}" = set; then :
19624 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19625 else
19626 with_gnu_ld=no
19627 fi
19628
19629 ac_prog=ld
19630 if test "$GCC" = yes; then
19631 # Check if gcc -print-prog-name=ld gives a path.
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19633 $as_echo_n "checking for ld used by $CC... " >&6; }
19634 case $host in
19635 *-*-mingw*)
19636 # gcc leaves a trailing carriage return which upsets mingw
19637 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19638 *)
19639 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19640 esac
19641 case $ac_prog in
19642 # Accept absolute paths.
19643 [\\/]* | ?:[\\/]*)
19644 re_direlt='/[^/][^/]*/\.\./'
19645 # Canonicalize the pathname of ld
19646 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19647 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19648 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19649 done
19650 test -z "$LD" && LD="$ac_prog"
19651 ;;
19652 "")
19653 # If it fails, then pretend we aren't using GCC.
19654 ac_prog=ld
19655 ;;
19656 *)
19657 # If it is relative, then search for the first ld in PATH.
19658 with_gnu_ld=unknown
19659 ;;
19660 esac
19661 elif test "$with_gnu_ld" = yes; then
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19663 $as_echo_n "checking for GNU ld... " >&6; }
19664 else
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19666 $as_echo_n "checking for non-GNU ld... " >&6; }
19667 fi
19668 if ${lt_cv_path_LD+:} false; then :
19669 $as_echo_n "(cached) " >&6
19670 else
19671 if test -z "$LD"; then
19672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19673 for ac_dir in $PATH; do
19674 IFS="$lt_save_ifs"
19675 test -z "$ac_dir" && ac_dir=.
19676 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19677 lt_cv_path_LD="$ac_dir/$ac_prog"
19678 # Check to see if the program is GNU ld. I'd rather use --version,
19679 # but apparently some variants of GNU ld only accept -v.
19680 # Break only if it was the GNU/non-GNU ld that we prefer.
19681 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19682 *GNU* | *'with BFD'*)
19683 test "$with_gnu_ld" != no && break
19684 ;;
19685 *)
19686 test "$with_gnu_ld" != yes && break
19687 ;;
19688 esac
19689 fi
19690 done
19691 IFS="$lt_save_ifs"
19692 else
19693 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19694 fi
19695 fi
19696
19697 LD="$lt_cv_path_LD"
19698 if test -n "$LD"; then
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19700 $as_echo "$LD" >&6; }
19701 else
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19703 $as_echo "no" >&6; }
19704 fi
19705 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19707 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19708 if ${lt_cv_prog_gnu_ld+:} false; then :
19709 $as_echo_n "(cached) " >&6
19710 else
19711 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19712 case `$LD -v 2>&1 </dev/null` in
19713 *GNU* | *'with BFD'*)
19714 lt_cv_prog_gnu_ld=yes
19715 ;;
19716 *)
19717 lt_cv_prog_gnu_ld=no
19718 ;;
19719 esac
19720 fi
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19722 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19723 with_gnu_ld=$lt_cv_prog_gnu_ld
19724
19725
19726
19727
19728
19729
19730
19731 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19732 # archiving commands below assume that GNU ld is being used.
19733 if test "$with_gnu_ld" = yes; then
19734 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19735 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'
19736
19737 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19738 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19739
19740 # If archive_cmds runs LD, not CC, wlarc should be empty
19741 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19742 # investigate it a little bit more. (MM)
19743 wlarc='${wl}'
19744
19745 # ancient GNU ld didn't support --whole-archive et. al.
19746 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19747 $GREP 'no-whole-archive' > /dev/null; then
19748 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19749 else
19750 whole_archive_flag_spec_CXX=
19751 fi
19752 else
19753 with_gnu_ld=no
19754 wlarc=
19755
19756 # A generic and very simple default shared library creation
19757 # command for GNU C++ for the case where it uses the native
19758 # linker, instead of GNU ld. If possible, this setting should
19759 # overridden to take advantage of the native linker features on
19760 # the platform it is being used on.
19761 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19762 fi
19763
19764 # Commands to make compiler produce verbose output that lists
19765 # what "hidden" libraries, object files and flags are used when
19766 # linking a shared library.
19767 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19768
19769 else
19770 GXX=no
19771 with_gnu_ld=no
19772 wlarc=
19773 fi
19774
19775 # PORTME: fill in a description of your system's C++ link characteristics
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19777 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19778 ld_shlibs_CXX=yes
19779 case $host_os in
19780 aix3*)
19781 # FIXME: insert proper C++ library support
19782 ld_shlibs_CXX=no
19783 ;;
19784 aix[4-9]*)
19785 if test "$host_cpu" = ia64; then
19786 # On IA64, the linker does run time linking by default, so we don't
19787 # have to do anything special.
19788 aix_use_runtimelinking=no
19789 exp_sym_flag='-Bexport'
19790 no_entry_flag=""
19791 else
19792 aix_use_runtimelinking=no
19793
19794 # Test if we are trying to use run time linking or normal
19795 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19796 # need to do runtime linking.
19797 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19798 for ld_flag in $LDFLAGS; do
19799 case $ld_flag in
19800 *-brtl*)
19801 aix_use_runtimelinking=yes
19802 break
19803 ;;
19804 esac
19805 done
19806 ;;
19807 esac
19808
19809 exp_sym_flag='-bexport'
19810 no_entry_flag='-bnoentry'
19811 fi
19812
19813 # When large executables or shared objects are built, AIX ld can
19814 # have problems creating the table of contents. If linking a library
19815 # or program results in "error TOC overflow" add -mminimal-toc to
19816 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19817 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19818
19819 archive_cmds_CXX=''
19820 hardcode_direct_CXX=yes
19821 hardcode_direct_absolute_CXX=yes
19822 hardcode_libdir_separator_CXX=':'
19823 link_all_deplibs_CXX=yes
19824 file_list_spec_CXX='${wl}-f,'
19825
19826 if test "$GXX" = yes; then
19827 case $host_os in aix4.[012]|aix4.[012].*)
19828 # We only want to do this on AIX 4.2 and lower, the check
19829 # below for broken collect2 doesn't work under 4.3+
19830 collect2name=`${CC} -print-prog-name=collect2`
19831 if test -f "$collect2name" &&
19832 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19833 then
19834 # We have reworked collect2
19835 :
19836 else
19837 # We have old collect2
19838 hardcode_direct_CXX=unsupported
19839 # It fails to find uninstalled libraries when the uninstalled
19840 # path is not listed in the libpath. Setting hardcode_minus_L
19841 # to unsupported forces relinking
19842 hardcode_minus_L_CXX=yes
19843 hardcode_libdir_flag_spec_CXX='-L$libdir'
19844 hardcode_libdir_separator_CXX=
19845 fi
19846 esac
19847 shared_flag='-shared'
19848 if test "$aix_use_runtimelinking" = yes; then
19849 shared_flag="$shared_flag "'${wl}-G'
19850 fi
19851 else
19852 # not using gcc
19853 if test "$host_cpu" = ia64; then
19854 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19855 # chokes on -Wl,-G. The following line is correct:
19856 shared_flag='-G'
19857 else
19858 if test "$aix_use_runtimelinking" = yes; then
19859 shared_flag='${wl}-G'
19860 else
19861 shared_flag='${wl}-bM:SRE'
19862 fi
19863 fi
19864 fi
19865
19866 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19867 # It seems that -bexpall does not export symbols beginning with
19868 # underscore (_), so it is better to generate a list of symbols to
19869 # export.
19870 always_export_symbols_CXX=yes
19871 if test "$aix_use_runtimelinking" = yes; then
19872 # Warning - without using the other runtime loading flags (-brtl),
19873 # -berok will link without error, but may produce a broken library.
19874 allow_undefined_flag_CXX='-berok'
19875 # Determine the default libpath from the value encoded in an empty
19876 # executable.
19877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19878 /* end confdefs.h. */
19879
19880 int
19881 main ()
19882 {
19883
19884 ;
19885 return 0;
19886 }
19887 _ACEOF
19888 if ac_fn_cxx_try_link "$LINENO"; then :
19889
19890 lt_aix_libpath_sed='
19891 /Import File Strings/,/^$/ {
19892 /^0/ {
19893 s/^0 *\(.*\)$/\1/
19894 p
19895 }
19896 }'
19897 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19898 # Check for a 64-bit object if we didn't find anything.
19899 if test -z "$aix_libpath"; then
19900 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19901 fi
19902 fi
19903 rm -f core conftest.err conftest.$ac_objext \
19904 conftest$ac_exeext conftest.$ac_ext
19905 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19906
19907 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19908
19909 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"
19910 else
19911 if test "$host_cpu" = ia64; then
19912 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19913 allow_undefined_flag_CXX="-z nodefs"
19914 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"
19915 else
19916 # Determine the default libpath from the value encoded in an
19917 # empty executable.
19918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919 /* end confdefs.h. */
19920
19921 int
19922 main ()
19923 {
19924
19925 ;
19926 return 0;
19927 }
19928 _ACEOF
19929 if ac_fn_cxx_try_link "$LINENO"; then :
19930
19931 lt_aix_libpath_sed='
19932 /Import File Strings/,/^$/ {
19933 /^0/ {
19934 s/^0 *\(.*\)$/\1/
19935 p
19936 }
19937 }'
19938 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19939 # Check for a 64-bit object if we didn't find anything.
19940 if test -z "$aix_libpath"; then
19941 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19942 fi
19943 fi
19944 rm -f core conftest.err conftest.$ac_objext \
19945 conftest$ac_exeext conftest.$ac_ext
19946 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19947
19948 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19949 # Warning - without using the other run time loading flags,
19950 # -berok will link without error, but may produce a broken library.
19951 no_undefined_flag_CXX=' ${wl}-bernotok'
19952 allow_undefined_flag_CXX=' ${wl}-berok'
19953 if test "$with_gnu_ld" = yes; then
19954 # We only use this code for GNU lds that support --whole-archive.
19955 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19956 else
19957 # Exported symbols can be pulled into shared objects from archives
19958 whole_archive_flag_spec_CXX='$convenience'
19959 fi
19960 archive_cmds_need_lc_CXX=yes
19961 # This is similar to how AIX traditionally builds its shared
19962 # libraries.
19963 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'
19964 fi
19965 fi
19966 ;;
19967
19968 beos*)
19969 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19970 allow_undefined_flag_CXX=unsupported
19971 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19972 # support --undefined. This deserves some investigation. FIXME
19973 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19974 else
19975 ld_shlibs_CXX=no
19976 fi
19977 ;;
19978
19979 chorus*)
19980 case $cc_basename in
19981 *)
19982 # FIXME: insert proper C++ library support
19983 ld_shlibs_CXX=no
19984 ;;
19985 esac
19986 ;;
19987
19988 cygwin* | mingw* | pw32* | cegcc*)
19989 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19990 # as there is no search path for DLLs.
19991 hardcode_libdir_flag_spec_CXX='-L$libdir'
19992 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19993 allow_undefined_flag_CXX=unsupported
19994 always_export_symbols_CXX=no
19995 enable_shared_with_static_runtimes_CXX=yes
19996
19997 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19998 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'
19999 # If the export-symbols file already is a .def file (1st line
20000 # is EXPORTS), use it as is; otherwise, prepend...
20001 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20002 cp $export_symbols $output_objdir/$soname.def;
20003 else
20004 echo EXPORTS > $output_objdir/$soname.def;
20005 cat $export_symbols >> $output_objdir/$soname.def;
20006 fi~
20007 $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'
20008 else
20009 ld_shlibs_CXX=no
20010 fi
20011 ;;
20012 darwin* | rhapsody*)
20013
20014
20015 archive_cmds_need_lc_CXX=no
20016 hardcode_direct_CXX=no
20017 hardcode_automatic_CXX=yes
20018 hardcode_shlibpath_var_CXX=unsupported
20019 if test "$lt_cv_ld_force_load" = "yes"; then
20020 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\"`'
20021 else
20022 whole_archive_flag_spec_CXX=''
20023 fi
20024 link_all_deplibs_CXX=yes
20025 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20026 case $cc_basename in
20027 ifort*) _lt_dar_can_shared=yes ;;
20028 *) _lt_dar_can_shared=$GCC ;;
20029 esac
20030 if test "$_lt_dar_can_shared" = "yes"; then
20031 output_verbose_link_cmd=func_echo_all
20032 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}"
20033 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20034 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}"
20035 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}"
20036 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20037 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}"
20038 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}"
20039 fi
20040
20041 else
20042 ld_shlibs_CXX=no
20043 fi
20044
20045 ;;
20046
20047 dgux*)
20048 case $cc_basename in
20049 ec++*)
20050 # FIXME: insert proper C++ library support
20051 ld_shlibs_CXX=no
20052 ;;
20053 ghcx*)
20054 # Green Hills C++ Compiler
20055 # FIXME: insert proper C++ library support
20056 ld_shlibs_CXX=no
20057 ;;
20058 *)
20059 # FIXME: insert proper C++ library support
20060 ld_shlibs_CXX=no
20061 ;;
20062 esac
20063 ;;
20064
20065 freebsd2.*)
20066 # C++ shared libraries reported to be fairly broken before
20067 # switch to ELF
20068 ld_shlibs_CXX=no
20069 ;;
20070
20071 freebsd-elf*)
20072 archive_cmds_need_lc_CXX=no
20073 ;;
20074
20075 freebsd* | dragonfly*)
20076 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20077 # conventions
20078 ld_shlibs_CXX=yes
20079 ;;
20080
20081 gnu*)
20082 ;;
20083
20084 haiku*)
20085 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20086 link_all_deplibs_CXX=yes
20087 ;;
20088
20089 hpux9*)
20090 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20091 hardcode_libdir_separator_CXX=:
20092 export_dynamic_flag_spec_CXX='${wl}-E'
20093 hardcode_direct_CXX=yes
20094 hardcode_minus_L_CXX=yes # Not in the search PATH,
20095 # but as the default
20096 # location of the library.
20097
20098 case $cc_basename in
20099 CC*)
20100 # FIXME: insert proper C++ library support
20101 ld_shlibs_CXX=no
20102 ;;
20103 aCC*)
20104 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'
20105 # Commands to make compiler produce verbose output that lists
20106 # what "hidden" libraries, object files and flags are used when
20107 # linking a shared library.
20108 #
20109 # There doesn't appear to be a way to prevent this compiler from
20110 # explicitly linking system object files so we need to strip them
20111 # from the output so that they don't get included in the library
20112 # dependencies.
20113 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"'
20114 ;;
20115 *)
20116 if test "$GXX" = yes; then
20117 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'
20118 else
20119 # FIXME: insert proper C++ library support
20120 ld_shlibs_CXX=no
20121 fi
20122 ;;
20123 esac
20124 ;;
20125
20126 hpux10*|hpux11*)
20127 if test $with_gnu_ld = no; then
20128 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20129 hardcode_libdir_separator_CXX=:
20130
20131 case $host_cpu in
20132 hppa*64*|ia64*)
20133 ;;
20134 *)
20135 export_dynamic_flag_spec_CXX='${wl}-E'
20136 ;;
20137 esac
20138 fi
20139 case $host_cpu in
20140 hppa*64*|ia64*)
20141 hardcode_direct_CXX=no
20142 hardcode_shlibpath_var_CXX=no
20143 ;;
20144 *)
20145 hardcode_direct_CXX=yes
20146 hardcode_direct_absolute_CXX=yes
20147 hardcode_minus_L_CXX=yes # Not in the search PATH,
20148 # but as the default
20149 # location of the library.
20150 ;;
20151 esac
20152
20153 case $cc_basename in
20154 CC*)
20155 # FIXME: insert proper C++ library support
20156 ld_shlibs_CXX=no
20157 ;;
20158 aCC*)
20159 case $host_cpu in
20160 hppa*64*)
20161 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20162 ;;
20163 ia64*)
20164 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20165 ;;
20166 *)
20167 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20168 ;;
20169 esac
20170 # Commands to make compiler produce verbose output that lists
20171 # what "hidden" libraries, object files and flags are used when
20172 # linking a shared library.
20173 #
20174 # There doesn't appear to be a way to prevent this compiler from
20175 # explicitly linking system object files so we need to strip them
20176 # from the output so that they don't get included in the library
20177 # dependencies.
20178 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"'
20179 ;;
20180 *)
20181 if test "$GXX" = yes; then
20182 if test $with_gnu_ld = no; then
20183 case $host_cpu in
20184 hppa*64*)
20185 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20186 ;;
20187 ia64*)
20188 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20189 ;;
20190 *)
20191 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'
20192 ;;
20193 esac
20194 fi
20195 else
20196 # FIXME: insert proper C++ library support
20197 ld_shlibs_CXX=no
20198 fi
20199 ;;
20200 esac
20201 ;;
20202
20203 interix[3-9]*)
20204 hardcode_direct_CXX=no
20205 hardcode_shlibpath_var_CXX=no
20206 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20207 export_dynamic_flag_spec_CXX='${wl}-E'
20208 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20209 # Instead, shared libraries are loaded at an image base (0x10000000 by
20210 # default) and relocated if they conflict, which is a slow very memory
20211 # consuming and fragmenting process. To avoid this, we pick a random,
20212 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20213 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20214 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'
20215 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'
20216 ;;
20217 irix5* | irix6*)
20218 case $cc_basename in
20219 CC*)
20220 # SGI C++
20221 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'
20222
20223 # Archives containing C++ object files must be created using
20224 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20225 # necessary to make sure instantiated templates are included
20226 # in the archive.
20227 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20228 ;;
20229 *)
20230 if test "$GXX" = yes; then
20231 if test "$with_gnu_ld" = no; then
20232 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'
20233 else
20234 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'
20235 fi
20236 fi
20237 link_all_deplibs_CXX=yes
20238 ;;
20239 esac
20240 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20241 hardcode_libdir_separator_CXX=:
20242 inherit_rpath_CXX=yes
20243 ;;
20244
20245 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20246 case $cc_basename in
20247 KCC*)
20248 # Kuck and Associates, Inc. (KAI) C++ Compiler
20249
20250 # KCC will only create a shared library if the output file
20251 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20252 # to its proper name (with version) after linking.
20253 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'
20254 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'
20255 # Commands to make compiler produce verbose output that lists
20256 # what "hidden" libraries, object files and flags are used when
20257 # linking a shared library.
20258 #
20259 # There doesn't appear to be a way to prevent this compiler from
20260 # explicitly linking system object files so we need to strip them
20261 # from the output so that they don't get included in the library
20262 # dependencies.
20263 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"'
20264
20265 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20266 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20267
20268 # Archives containing C++ object files must be created using
20269 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20270 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20271 ;;
20272 icpc* | ecpc* )
20273 # Intel C++
20274 with_gnu_ld=yes
20275 # version 8.0 and above of icpc choke on multiply defined symbols
20276 # if we add $predep_objects and $postdep_objects, however 7.1 and
20277 # earlier do not add the objects themselves.
20278 case `$CC -V 2>&1` in
20279 *"Version 7."*)
20280 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20281 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'
20282 ;;
20283 *) # Version 8.0 or newer
20284 tmp_idyn=
20285 case $host_cpu in
20286 ia64*) tmp_idyn=' -i_dynamic';;
20287 esac
20288 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20289 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'
20290 ;;
20291 esac
20292 archive_cmds_need_lc_CXX=no
20293 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20294 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20295 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20296 ;;
20297 pgCC* | pgcpp*)
20298 # Portland Group C++ compiler
20299 case `$CC -V` in
20300 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20301 prelink_cmds_CXX='tpldir=Template.dir~
20302 rm -rf $tpldir~
20303 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20304 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20305 old_archive_cmds_CXX='tpldir=Template.dir~
20306 rm -rf $tpldir~
20307 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20308 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20309 $RANLIB $oldlib'
20310 archive_cmds_CXX='tpldir=Template.dir~
20311 rm -rf $tpldir~
20312 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20313 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20314 archive_expsym_cmds_CXX='tpldir=Template.dir~
20315 rm -rf $tpldir~
20316 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20317 $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'
20318 ;;
20319 *) # Version 6 and above use weak symbols
20320 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20321 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'
20322 ;;
20323 esac
20324
20325 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20326 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20327 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'
20328 ;;
20329 cxx*)
20330 # Compaq C++
20331 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20332 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'
20333
20334 runpath_var=LD_RUN_PATH
20335 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20336 hardcode_libdir_separator_CXX=:
20337
20338 # Commands to make compiler produce verbose output that lists
20339 # what "hidden" libraries, object files and flags are used when
20340 # linking a shared library.
20341 #
20342 # There doesn't appear to be a way to prevent this compiler from
20343 # explicitly linking system object files so we need to strip them
20344 # from the output so that they don't get included in the library
20345 # dependencies.
20346 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'
20347 ;;
20348 xl* | mpixl* | bgxl*)
20349 # IBM XL 8.0 on PPC, with GNU ld
20350 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20351 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20352 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20353 if test "x$supports_anon_versioning" = xyes; then
20354 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20355 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20356 echo "local: *; };" >> $output_objdir/$libname.ver~
20357 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20358 fi
20359 ;;
20360 *)
20361 case `$CC -V 2>&1 | sed 5q` in
20362 *Sun\ C*)
20363 # Sun C++ 5.9
20364 no_undefined_flag_CXX=' -zdefs'
20365 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20366 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'
20367 hardcode_libdir_flag_spec_CXX='-R$libdir'
20368 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'
20369 compiler_needs_object_CXX=yes
20370
20371 # Not sure whether something based on
20372 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20373 # would be better.
20374 output_verbose_link_cmd='func_echo_all'
20375
20376 # Archives containing C++ object files must be created using
20377 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20378 # necessary to make sure instantiated templates are included
20379 # in the archive.
20380 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20381 ;;
20382 esac
20383 ;;
20384 esac
20385 ;;
20386
20387 lynxos*)
20388 # FIXME: insert proper C++ library support
20389 ld_shlibs_CXX=no
20390 ;;
20391
20392 m88k*)
20393 # FIXME: insert proper C++ library support
20394 ld_shlibs_CXX=no
20395 ;;
20396
20397 mvs*)
20398 case $cc_basename in
20399 cxx*)
20400 # FIXME: insert proper C++ library support
20401 ld_shlibs_CXX=no
20402 ;;
20403 *)
20404 # FIXME: insert proper C++ library support
20405 ld_shlibs_CXX=no
20406 ;;
20407 esac
20408 ;;
20409
20410 netbsd*)
20411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20412 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20413 wlarc=
20414 hardcode_libdir_flag_spec_CXX='-R$libdir'
20415 hardcode_direct_CXX=yes
20416 hardcode_shlibpath_var_CXX=no
20417 fi
20418 # Workaround some broken pre-1.5 toolchains
20419 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20420 ;;
20421
20422 *nto* | *qnx*)
20423 ld_shlibs_CXX=yes
20424 ;;
20425
20426 openbsd2*)
20427 # C++ shared libraries are fairly broken
20428 ld_shlibs_CXX=no
20429 ;;
20430
20431 openbsd*)
20432 if test -f /usr/libexec/ld.so; then
20433 hardcode_direct_CXX=yes
20434 hardcode_shlibpath_var_CXX=no
20435 hardcode_direct_absolute_CXX=yes
20436 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20437 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20438 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20439 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20440 export_dynamic_flag_spec_CXX='${wl}-E'
20441 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20442 fi
20443 output_verbose_link_cmd=func_echo_all
20444 else
20445 ld_shlibs_CXX=no
20446 fi
20447 ;;
20448
20449 osf3* | osf4* | osf5*)
20450 case $cc_basename in
20451 KCC*)
20452 # Kuck and Associates, Inc. (KAI) C++ Compiler
20453
20454 # KCC will only create a shared library if the output file
20455 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20456 # to its proper name (with version) after linking.
20457 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'
20458
20459 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20460 hardcode_libdir_separator_CXX=:
20461
20462 # Archives containing C++ object files must be created using
20463 # the KAI C++ compiler.
20464 case $host in
20465 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20466 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20467 esac
20468 ;;
20469 RCC*)
20470 # Rational C++ 2.4.1
20471 # FIXME: insert proper C++ library support
20472 ld_shlibs_CXX=no
20473 ;;
20474 cxx*)
20475 case $host in
20476 osf3*)
20477 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20478 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'
20479 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20480 ;;
20481 *)
20482 allow_undefined_flag_CXX=' -expect_unresolved \*'
20483 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'
20484 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20485 echo "-hidden">> $lib.exp~
20486 $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~
20487 $RM $lib.exp'
20488 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20489 ;;
20490 esac
20491
20492 hardcode_libdir_separator_CXX=:
20493
20494 # Commands to make compiler produce verbose output that lists
20495 # what "hidden" libraries, object files and flags are used when
20496 # linking a shared library.
20497 #
20498 # There doesn't appear to be a way to prevent this compiler from
20499 # explicitly linking system object files so we need to strip them
20500 # from the output so that they don't get included in the library
20501 # dependencies.
20502 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"'
20503 ;;
20504 *)
20505 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20506 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20507 case $host in
20508 osf3*)
20509 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'
20510 ;;
20511 *)
20512 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'
20513 ;;
20514 esac
20515
20516 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20517 hardcode_libdir_separator_CXX=:
20518
20519 # Commands to make compiler produce verbose output that lists
20520 # what "hidden" libraries, object files and flags are used when
20521 # linking a shared library.
20522 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20523
20524 else
20525 # FIXME: insert proper C++ library support
20526 ld_shlibs_CXX=no
20527 fi
20528 ;;
20529 esac
20530 ;;
20531
20532 psos*)
20533 # FIXME: insert proper C++ library support
20534 ld_shlibs_CXX=no
20535 ;;
20536
20537 sunos4*)
20538 case $cc_basename in
20539 CC*)
20540 # Sun C++ 4.x
20541 # FIXME: insert proper C++ library support
20542 ld_shlibs_CXX=no
20543 ;;
20544 lcc*)
20545 # Lucid
20546 # FIXME: insert proper C++ library support
20547 ld_shlibs_CXX=no
20548 ;;
20549 *)
20550 # FIXME: insert proper C++ library support
20551 ld_shlibs_CXX=no
20552 ;;
20553 esac
20554 ;;
20555
20556 solaris*)
20557 case $cc_basename in
20558 CC*)
20559 # Sun C++ 4.2, 5.x and Centerline C++
20560 archive_cmds_need_lc_CXX=yes
20561 no_undefined_flag_CXX=' -zdefs'
20562 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20563 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20564 $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'
20565
20566 hardcode_libdir_flag_spec_CXX='-R$libdir'
20567 hardcode_shlibpath_var_CXX=no
20568 case $host_os in
20569 solaris2.[0-5] | solaris2.[0-5].*) ;;
20570 *)
20571 # The compiler driver will combine and reorder linker options,
20572 # but understands `-z linker_flag'.
20573 # Supported since Solaris 2.6 (maybe 2.5.1?)
20574 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20575 ;;
20576 esac
20577 link_all_deplibs_CXX=yes
20578
20579 output_verbose_link_cmd='func_echo_all'
20580
20581 # Archives containing C++ object files must be created using
20582 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20583 # necessary to make sure instantiated templates are included
20584 # in the archive.
20585 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20586 ;;
20587 gcx*)
20588 # Green Hills C++ Compiler
20589 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20590
20591 # The C++ compiler must be used to create the archive.
20592 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20593 ;;
20594 *)
20595 # GNU C++ compiler with Solaris linker
20596 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20597 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20598 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20599 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20600 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20601 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20602
20603 # Commands to make compiler produce verbose output that lists
20604 # what "hidden" libraries, object files and flags are used when
20605 # linking a shared library.
20606 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20607 else
20608 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20609 # platform.
20610 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20611 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20612 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20613
20614 # Commands to make compiler produce verbose output that lists
20615 # what "hidden" libraries, object files and flags are used when
20616 # linking a shared library.
20617 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20618 fi
20619
20620 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20621 case $host_os in
20622 solaris2.[0-5] | solaris2.[0-5].*) ;;
20623 *)
20624 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20625 ;;
20626 esac
20627 fi
20628 ;;
20629 esac
20630 ;;
20631
20632 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20633 no_undefined_flag_CXX='${wl}-z,text'
20634 archive_cmds_need_lc_CXX=no
20635 hardcode_shlibpath_var_CXX=no
20636 runpath_var='LD_RUN_PATH'
20637
20638 case $cc_basename in
20639 CC*)
20640 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20641 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20642 ;;
20643 *)
20644 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20645 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20646 ;;
20647 esac
20648 ;;
20649
20650 sysv5* | sco3.2v5* | sco5v6*)
20651 # Note: We can NOT use -z defs as we might desire, because we do not
20652 # link with -lc, and that would cause any symbols used from libc to
20653 # always be unresolved, which means just about no library would
20654 # ever link correctly. If we're not using GNU ld we use -z text
20655 # though, which does catch some bad symbols but isn't as heavy-handed
20656 # as -z defs.
20657 no_undefined_flag_CXX='${wl}-z,text'
20658 allow_undefined_flag_CXX='${wl}-z,nodefs'
20659 archive_cmds_need_lc_CXX=no
20660 hardcode_shlibpath_var_CXX=no
20661 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20662 hardcode_libdir_separator_CXX=':'
20663 link_all_deplibs_CXX=yes
20664 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20665 runpath_var='LD_RUN_PATH'
20666
20667 case $cc_basename in
20668 CC*)
20669 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20670 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20671 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20672 '"$old_archive_cmds_CXX"
20673 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20674 '"$reload_cmds_CXX"
20675 ;;
20676 *)
20677 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20678 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20679 ;;
20680 esac
20681 ;;
20682
20683 tandem*)
20684 case $cc_basename in
20685 NCC*)
20686 # NonStop-UX NCC 3.20
20687 # FIXME: insert proper C++ library support
20688 ld_shlibs_CXX=no
20689 ;;
20690 *)
20691 # FIXME: insert proper C++ library support
20692 ld_shlibs_CXX=no
20693 ;;
20694 esac
20695 ;;
20696
20697 vxworks*)
20698 # FIXME: insert proper C++ library support
20699 ld_shlibs_CXX=no
20700 ;;
20701
20702 *)
20703 # FIXME: insert proper C++ library support
20704 ld_shlibs_CXX=no
20705 ;;
20706 esac
20707
20708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20709 $as_echo "$ld_shlibs_CXX" >&6; }
20710 test "$ld_shlibs_CXX" = no && can_build_shared=no
20711
20712 GCC_CXX="$GXX"
20713 LD_CXX="$LD"
20714
20715 ## CAVEAT EMPTOR:
20716 ## There is no encapsulation within the following macros, do not change
20717 ## the running order or otherwise move them around unless you know exactly
20718 ## what you are doing...
20719 # Dependencies to place before and after the object being linked:
20720 predep_objects_CXX=
20721 postdep_objects_CXX=
20722 predeps_CXX=
20723 postdeps_CXX=
20724 compiler_lib_search_path_CXX=
20725
20726 cat > conftest.$ac_ext <<_LT_EOF
20727 class Foo
20728 {
20729 public:
20730 Foo (void) { a = 0; }
20731 private:
20732 int a;
20733 };
20734 _LT_EOF
20735
20736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20737 (eval $ac_compile) 2>&5
20738 ac_status=$?
20739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20740 test $ac_status = 0; }; then
20741 # Parse the compiler output and extract the necessary
20742 # objects, libraries and library flags.
20743
20744 # Sentinel used to keep track of whether or not we are before
20745 # the conftest object file.
20746 pre_test_object_deps_done=no
20747
20748 for p in `eval "$output_verbose_link_cmd"`; do
20749 case $p in
20750
20751 -L* | -R* | -l*)
20752 # Some compilers place space between "-{L,R}" and the path.
20753 # Remove the space.
20754 if test $p = "-L" ||
20755 test $p = "-R"; then
20756 prev=$p
20757 continue
20758 else
20759 prev=
20760 fi
20761
20762 if test "$pre_test_object_deps_done" = no; then
20763 case $p in
20764 -L* | -R*)
20765 # Internal compiler library paths should come after those
20766 # provided the user. The postdeps already come after the
20767 # user supplied libs so there is no need to process them.
20768 if test -z "$compiler_lib_search_path_CXX"; then
20769 compiler_lib_search_path_CXX="${prev}${p}"
20770 else
20771 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20772 fi
20773 ;;
20774 # The "-l" case would never come before the object being
20775 # linked, so don't bother handling this case.
20776 esac
20777 else
20778 if test -z "$postdeps_CXX"; then
20779 postdeps_CXX="${prev}${p}"
20780 else
20781 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20782 fi
20783 fi
20784 ;;
20785
20786 *.$objext)
20787 # This assumes that the test object file only shows up
20788 # once in the compiler output.
20789 if test "$p" = "conftest.$objext"; then
20790 pre_test_object_deps_done=yes
20791 continue
20792 fi
20793
20794 if test "$pre_test_object_deps_done" = no; then
20795 if test -z "$predep_objects_CXX"; then
20796 predep_objects_CXX="$p"
20797 else
20798 predep_objects_CXX="$predep_objects_CXX $p"
20799 fi
20800 else
20801 if test -z "$postdep_objects_CXX"; then
20802 postdep_objects_CXX="$p"
20803 else
20804 postdep_objects_CXX="$postdep_objects_CXX $p"
20805 fi
20806 fi
20807 ;;
20808
20809 *) ;; # Ignore the rest.
20810
20811 esac
20812 done
20813
20814 # Clean up.
20815 rm -f a.out a.exe
20816 else
20817 echo "libtool.m4: error: problem compiling CXX test program"
20818 fi
20819
20820 $RM -f confest.$objext
20821
20822 # PORTME: override above test on systems where it is broken
20823 case $host_os in
20824 interix[3-9]*)
20825 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20826 # hack all around it, let's just trust "g++" to DTRT.
20827 predep_objects_CXX=
20828 postdep_objects_CXX=
20829 postdeps_CXX=
20830 ;;
20831
20832 linux*)
20833 case `$CC -V 2>&1 | sed 5q` in
20834 *Sun\ C*)
20835 # Sun C++ 5.9
20836
20837 # The more standards-conforming stlport4 library is
20838 # incompatible with the Cstd library. Avoid specifying
20839 # it if it's in CXXFLAGS. Ignore libCrun as
20840 # -library=stlport4 depends on it.
20841 case " $CXX $CXXFLAGS " in
20842 *" -library=stlport4 "*)
20843 solaris_use_stlport4=yes
20844 ;;
20845 esac
20846
20847 if test "$solaris_use_stlport4" != yes; then
20848 postdeps_CXX='-library=Cstd -library=Crun'
20849 fi
20850 ;;
20851 esac
20852 ;;
20853
20854 solaris*)
20855 case $cc_basename in
20856 CC*)
20857 # The more standards-conforming stlport4 library is
20858 # incompatible with the Cstd library. Avoid specifying
20859 # it if it's in CXXFLAGS. Ignore libCrun as
20860 # -library=stlport4 depends on it.
20861 case " $CXX $CXXFLAGS " in
20862 *" -library=stlport4 "*)
20863 solaris_use_stlport4=yes
20864 ;;
20865 esac
20866
20867 # Adding this requires a known-good setup of shared libraries for
20868 # Sun compiler versions before 5.6, else PIC objects from an old
20869 # archive will be linked into the output, leading to subtle bugs.
20870 if test "$solaris_use_stlport4" != yes; then
20871 postdeps_CXX='-library=Cstd -library=Crun'
20872 fi
20873 ;;
20874 esac
20875 ;;
20876 esac
20877
20878
20879 case " $postdeps_CXX " in
20880 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20881 esac
20882 compiler_lib_search_dirs_CXX=
20883 if test -n "${compiler_lib_search_path_CXX}"; then
20884 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20885 fi
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917 lt_prog_compiler_wl_CXX=
20918 lt_prog_compiler_pic_CXX=
20919 lt_prog_compiler_static_CXX=
20920
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20922 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20923
20924 # C++ specific cases for pic, static, wl, etc.
20925 if test "$GXX" = yes; then
20926 lt_prog_compiler_wl_CXX='-Wl,'
20927 lt_prog_compiler_static_CXX='-static'
20928
20929 case $host_os in
20930 aix*)
20931 # All AIX code is PIC.
20932 if test "$host_cpu" = ia64; then
20933 # AIX 5 now supports IA64 processor
20934 lt_prog_compiler_static_CXX='-Bstatic'
20935 fi
20936 lt_prog_compiler_pic_CXX='-fPIC'
20937 ;;
20938
20939 amigaos*)
20940 case $host_cpu in
20941 powerpc)
20942 # see comment about AmigaOS4 .so support
20943 lt_prog_compiler_pic_CXX='-fPIC'
20944 ;;
20945 m68k)
20946 # FIXME: we need at least 68020 code to build shared libraries, but
20947 # adding the `-m68020' flag to GCC prevents building anything better,
20948 # like `-m68040'.
20949 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20950 ;;
20951 esac
20952 ;;
20953
20954 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20955 # PIC is the default for these OSes.
20956 ;;
20957 mingw* | cygwin* | os2* | pw32* | cegcc*)
20958 # This hack is so that the source file can tell whether it is being
20959 # built for inclusion in a dll (and should export symbols for example).
20960 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20961 # (--disable-auto-import) libraries
20962 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20963 ;;
20964 darwin* | rhapsody*)
20965 # PIC is the default on this platform
20966 # Common symbols not allowed in MH_DYLIB files
20967 lt_prog_compiler_pic_CXX='-fno-common'
20968 ;;
20969 *djgpp*)
20970 # DJGPP does not support shared libraries at all
20971 lt_prog_compiler_pic_CXX=
20972 ;;
20973 haiku*)
20974 # PIC is the default for Haiku.
20975 # The "-static" flag exists, but is broken.
20976 lt_prog_compiler_static_CXX=
20977 ;;
20978 interix[3-9]*)
20979 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20980 # Instead, we relocate shared libraries at runtime.
20981 ;;
20982 sysv4*MP*)
20983 if test -d /usr/nec; then
20984 lt_prog_compiler_pic_CXX=-Kconform_pic
20985 fi
20986 ;;
20987 hpux*)
20988 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20989 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20990 # sets the default TLS model and affects inlining.
20991 case $host_cpu in
20992 hppa*64*)
20993 ;;
20994 *)
20995 lt_prog_compiler_pic_CXX='-fPIC'
20996 ;;
20997 esac
20998 ;;
20999 *qnx* | *nto*)
21000 # QNX uses GNU C++, but need to define -shared option too, otherwise
21001 # it will coredump.
21002 lt_prog_compiler_pic_CXX='-fPIC -shared'
21003 ;;
21004 *)
21005 lt_prog_compiler_pic_CXX='-fPIC'
21006 ;;
21007 esac
21008 else
21009 case $host_os in
21010 aix[4-9]*)
21011 # All AIX code is PIC.
21012 if test "$host_cpu" = ia64; then
21013 # AIX 5 now supports IA64 processor
21014 lt_prog_compiler_static_CXX='-Bstatic'
21015 else
21016 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21017 fi
21018 ;;
21019 chorus*)
21020 case $cc_basename in
21021 cxch68*)
21022 # Green Hills C++ Compiler
21023 # _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"
21024 ;;
21025 esac
21026 ;;
21027 dgux*)
21028 case $cc_basename in
21029 ec++*)
21030 lt_prog_compiler_pic_CXX='-KPIC'
21031 ;;
21032 ghcx*)
21033 # Green Hills C++ Compiler
21034 lt_prog_compiler_pic_CXX='-pic'
21035 ;;
21036 *)
21037 ;;
21038 esac
21039 ;;
21040 freebsd* | dragonfly*)
21041 # FreeBSD uses GNU C++
21042 ;;
21043 hpux9* | hpux10* | hpux11*)
21044 case $cc_basename in
21045 CC*)
21046 lt_prog_compiler_wl_CXX='-Wl,'
21047 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21048 if test "$host_cpu" != ia64; then
21049 lt_prog_compiler_pic_CXX='+Z'
21050 fi
21051 ;;
21052 aCC*)
21053 lt_prog_compiler_wl_CXX='-Wl,'
21054 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21055 case $host_cpu in
21056 hppa*64*|ia64*)
21057 # +Z the default
21058 ;;
21059 *)
21060 lt_prog_compiler_pic_CXX='+Z'
21061 ;;
21062 esac
21063 ;;
21064 *)
21065 ;;
21066 esac
21067 ;;
21068 interix*)
21069 # This is c89, which is MS Visual C++ (no shared libs)
21070 # Anyone wants to do a port?
21071 ;;
21072 irix5* | irix6* | nonstopux*)
21073 case $cc_basename in
21074 CC*)
21075 lt_prog_compiler_wl_CXX='-Wl,'
21076 lt_prog_compiler_static_CXX='-non_shared'
21077 # CC pic flag -KPIC is the default.
21078 ;;
21079 *)
21080 ;;
21081 esac
21082 ;;
21083 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21084 case $cc_basename in
21085 KCC*)
21086 # KAI C++ Compiler
21087 lt_prog_compiler_wl_CXX='--backend -Wl,'
21088 lt_prog_compiler_pic_CXX='-fPIC'
21089 ;;
21090 ecpc* )
21091 # old Intel C++ for x86_64 which still supported -KPIC.
21092 lt_prog_compiler_wl_CXX='-Wl,'
21093 lt_prog_compiler_pic_CXX='-KPIC'
21094 lt_prog_compiler_static_CXX='-static'
21095 ;;
21096 icpc* )
21097 # Intel C++, used to be incompatible with GCC.
21098 # ICC 10 doesn't accept -KPIC any more.
21099 lt_prog_compiler_wl_CXX='-Wl,'
21100 lt_prog_compiler_pic_CXX='-fPIC'
21101 lt_prog_compiler_static_CXX='-static'
21102 ;;
21103 pgCC* | pgcpp*)
21104 # Portland Group C++ compiler
21105 lt_prog_compiler_wl_CXX='-Wl,'
21106 lt_prog_compiler_pic_CXX='-fpic'
21107 lt_prog_compiler_static_CXX='-Bstatic'
21108 ;;
21109 cxx*)
21110 # Compaq C++
21111 # Make sure the PIC flag is empty. It appears that all Alpha
21112 # Linux and Compaq Tru64 Unix objects are PIC.
21113 lt_prog_compiler_pic_CXX=
21114 lt_prog_compiler_static_CXX='-non_shared'
21115 ;;
21116 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21117 # IBM XL 8.0, 9.0 on PPC and BlueGene
21118 lt_prog_compiler_wl_CXX='-Wl,'
21119 lt_prog_compiler_pic_CXX='-qpic'
21120 lt_prog_compiler_static_CXX='-qstaticlink'
21121 ;;
21122 *)
21123 case `$CC -V 2>&1 | sed 5q` in
21124 *Sun\ C*)
21125 # Sun C++ 5.9
21126 lt_prog_compiler_pic_CXX='-KPIC'
21127 lt_prog_compiler_static_CXX='-Bstatic'
21128 lt_prog_compiler_wl_CXX='-Qoption ld '
21129 ;;
21130 esac
21131 ;;
21132 esac
21133 ;;
21134 lynxos*)
21135 ;;
21136 m88k*)
21137 ;;
21138 mvs*)
21139 case $cc_basename in
21140 cxx*)
21141 lt_prog_compiler_pic_CXX='-W c,exportall'
21142 ;;
21143 *)
21144 ;;
21145 esac
21146 ;;
21147 netbsd*)
21148 ;;
21149 *qnx* | *nto*)
21150 # QNX uses GNU C++, but need to define -shared option too, otherwise
21151 # it will coredump.
21152 lt_prog_compiler_pic_CXX='-fPIC -shared'
21153 ;;
21154 osf3* | osf4* | osf5*)
21155 case $cc_basename in
21156 KCC*)
21157 lt_prog_compiler_wl_CXX='--backend -Wl,'
21158 ;;
21159 RCC*)
21160 # Rational C++ 2.4.1
21161 lt_prog_compiler_pic_CXX='-pic'
21162 ;;
21163 cxx*)
21164 # Digital/Compaq C++
21165 lt_prog_compiler_wl_CXX='-Wl,'
21166 # Make sure the PIC flag is empty. It appears that all Alpha
21167 # Linux and Compaq Tru64 Unix objects are PIC.
21168 lt_prog_compiler_pic_CXX=
21169 lt_prog_compiler_static_CXX='-non_shared'
21170 ;;
21171 *)
21172 ;;
21173 esac
21174 ;;
21175 psos*)
21176 ;;
21177 solaris*)
21178 case $cc_basename in
21179 CC*)
21180 # Sun C++ 4.2, 5.x and Centerline C++
21181 lt_prog_compiler_pic_CXX='-KPIC'
21182 lt_prog_compiler_static_CXX='-Bstatic'
21183 lt_prog_compiler_wl_CXX='-Qoption ld '
21184 ;;
21185 gcx*)
21186 # Green Hills C++ Compiler
21187 lt_prog_compiler_pic_CXX='-PIC'
21188 ;;
21189 *)
21190 ;;
21191 esac
21192 ;;
21193 sunos4*)
21194 case $cc_basename in
21195 CC*)
21196 # Sun C++ 4.x
21197 lt_prog_compiler_pic_CXX='-pic'
21198 lt_prog_compiler_static_CXX='-Bstatic'
21199 ;;
21200 lcc*)
21201 # Lucid
21202 lt_prog_compiler_pic_CXX='-pic'
21203 ;;
21204 *)
21205 ;;
21206 esac
21207 ;;
21208 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21209 case $cc_basename in
21210 CC*)
21211 lt_prog_compiler_wl_CXX='-Wl,'
21212 lt_prog_compiler_pic_CXX='-KPIC'
21213 lt_prog_compiler_static_CXX='-Bstatic'
21214 ;;
21215 esac
21216 ;;
21217 tandem*)
21218 case $cc_basename in
21219 NCC*)
21220 # NonStop-UX NCC 3.20
21221 lt_prog_compiler_pic_CXX='-KPIC'
21222 ;;
21223 *)
21224 ;;
21225 esac
21226 ;;
21227 vxworks*)
21228 ;;
21229 *)
21230 lt_prog_compiler_can_build_shared_CXX=no
21231 ;;
21232 esac
21233 fi
21234
21235 case $host_os in
21236 # For platforms which do not support PIC, -DPIC is meaningless:
21237 *djgpp*)
21238 lt_prog_compiler_pic_CXX=
21239 ;;
21240 *)
21241 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21242 ;;
21243 esac
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21245 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21246
21247
21248
21249 #
21250 # Check to make sure the PIC flag actually works.
21251 #
21252 if test -n "$lt_prog_compiler_pic_CXX"; then
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21254 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21255 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21256 $as_echo_n "(cached) " >&6
21257 else
21258 lt_cv_prog_compiler_pic_works_CXX=no
21259 ac_outfile=conftest.$ac_objext
21260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21261 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21262 # Insert the option either (1) after the last *FLAGS variable, or
21263 # (2) before a word containing "conftest.", or (3) at the end.
21264 # Note that $ac_compile itself does not contain backslashes and begins
21265 # with a dollar sign (not a hyphen), so the echo should work correctly.
21266 # The option is referenced via a variable to avoid confusing sed.
21267 lt_compile=`echo "$ac_compile" | $SED \
21268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21270 -e 's:$: $lt_compiler_flag:'`
21271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21272 (eval "$lt_compile" 2>conftest.err)
21273 ac_status=$?
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 if (exit $ac_status) && test -s "$ac_outfile"; then
21277 # The compiler can only warn and ignore the option if not recognized
21278 # So say no if there are warnings other than the usual output.
21279 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21282 lt_cv_prog_compiler_pic_works_CXX=yes
21283 fi
21284 fi
21285 $RM conftest*
21286
21287 fi
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21289 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21290
21291 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21292 case $lt_prog_compiler_pic_CXX in
21293 "" | " "*) ;;
21294 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21295 esac
21296 else
21297 lt_prog_compiler_pic_CXX=
21298 lt_prog_compiler_can_build_shared_CXX=no
21299 fi
21300
21301 fi
21302
21303
21304
21305 #
21306 # Check to make sure the static flag actually works.
21307 #
21308 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21310 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21311 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21312 $as_echo_n "(cached) " >&6
21313 else
21314 lt_cv_prog_compiler_static_works_CXX=no
21315 save_LDFLAGS="$LDFLAGS"
21316 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21317 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21318 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21319 # The linker can only warn and ignore the option if not recognized
21320 # So say no if there are warnings
21321 if test -s conftest.err; then
21322 # Append any errors to the config.log.
21323 cat conftest.err 1>&5
21324 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21326 if diff conftest.exp conftest.er2 >/dev/null; then
21327 lt_cv_prog_compiler_static_works_CXX=yes
21328 fi
21329 else
21330 lt_cv_prog_compiler_static_works_CXX=yes
21331 fi
21332 fi
21333 $RM -r conftest*
21334 LDFLAGS="$save_LDFLAGS"
21335
21336 fi
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21338 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21339
21340 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21341 :
21342 else
21343 lt_prog_compiler_static_CXX=
21344 fi
21345
21346
21347
21348
21349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21350 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21351 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21352 $as_echo_n "(cached) " >&6
21353 else
21354 lt_cv_prog_compiler_c_o_CXX=no
21355 $RM -r conftest 2>/dev/null
21356 mkdir conftest
21357 cd conftest
21358 mkdir out
21359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21360
21361 lt_compiler_flag="-o out/conftest2.$ac_objext"
21362 # Insert the option either (1) after the last *FLAGS variable, or
21363 # (2) before a word containing "conftest.", or (3) at the end.
21364 # Note that $ac_compile itself does not contain backslashes and begins
21365 # with a dollar sign (not a hyphen), so the echo should work correctly.
21366 lt_compile=`echo "$ac_compile" | $SED \
21367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21369 -e 's:$: $lt_compiler_flag:'`
21370 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21371 (eval "$lt_compile" 2>out/conftest.err)
21372 ac_status=$?
21373 cat out/conftest.err >&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21376 then
21377 # The compiler can only warn and ignore the option if not recognized
21378 # So say no if there are warnings
21379 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21380 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21381 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21382 lt_cv_prog_compiler_c_o_CXX=yes
21383 fi
21384 fi
21385 chmod u+w . 2>&5
21386 $RM conftest*
21387 # SGI C++ compiler will create directory out/ii_files/ for
21388 # template instantiation
21389 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21390 $RM out/* && rmdir out
21391 cd ..
21392 $RM -r conftest
21393 $RM conftest*
21394
21395 fi
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21397 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21398
21399
21400
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21402 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21403 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21404 $as_echo_n "(cached) " >&6
21405 else
21406 lt_cv_prog_compiler_c_o_CXX=no
21407 $RM -r conftest 2>/dev/null
21408 mkdir conftest
21409 cd conftest
21410 mkdir out
21411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21412
21413 lt_compiler_flag="-o out/conftest2.$ac_objext"
21414 # Insert the option either (1) after the last *FLAGS variable, or
21415 # (2) before a word containing "conftest.", or (3) at the end.
21416 # Note that $ac_compile itself does not contain backslashes and begins
21417 # with a dollar sign (not a hyphen), so the echo should work correctly.
21418 lt_compile=`echo "$ac_compile" | $SED \
21419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21421 -e 's:$: $lt_compiler_flag:'`
21422 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21423 (eval "$lt_compile" 2>out/conftest.err)
21424 ac_status=$?
21425 cat out/conftest.err >&5
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21428 then
21429 # The compiler can only warn and ignore the option if not recognized
21430 # So say no if there are warnings
21431 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21432 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21433 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21434 lt_cv_prog_compiler_c_o_CXX=yes
21435 fi
21436 fi
21437 chmod u+w . 2>&5
21438 $RM conftest*
21439 # SGI C++ compiler will create directory out/ii_files/ for
21440 # template instantiation
21441 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21442 $RM out/* && rmdir out
21443 cd ..
21444 $RM -r conftest
21445 $RM conftest*
21446
21447 fi
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21449 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21450
21451
21452
21453
21454 hard_links="nottested"
21455 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21456 # do not overwrite the value of need_locks provided by the user
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21458 $as_echo_n "checking if we can lock with hard links... " >&6; }
21459 hard_links=yes
21460 $RM conftest*
21461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21462 touch conftest.a
21463 ln conftest.a conftest.b 2>&5 || hard_links=no
21464 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21466 $as_echo "$hard_links" >&6; }
21467 if test "$hard_links" = no; then
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21469 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21470 need_locks=warn
21471 fi
21472 else
21473 need_locks=no
21474 fi
21475
21476
21477
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21479 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21480
21481 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21482 case $host_os in
21483 aix[4-9]*)
21484 # If we're using GNU nm, then we don't want the "-C" option.
21485 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21486 # Also, AIX nm treats weak defined symbols like other global defined
21487 # symbols, whereas GNU nm marks them as "W".
21488 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21489 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'
21490 else
21491 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'
21492 fi
21493 ;;
21494 pw32*)
21495 export_symbols_cmds_CXX="$ltdll_cmds"
21496 ;;
21497 cygwin* | mingw* | cegcc*)
21498 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'
21499 ;;
21500 *)
21501 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21502 ;;
21503 esac
21504 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21505
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21507 $as_echo "$ld_shlibs_CXX" >&6; }
21508 test "$ld_shlibs_CXX" = no && can_build_shared=no
21509
21510 with_gnu_ld_CXX=$with_gnu_ld
21511
21512
21513
21514
21515
21516
21517 #
21518 # Do we need to explicitly link libc?
21519 #
21520 case "x$archive_cmds_need_lc_CXX" in
21521 x|xyes)
21522 # Assume -lc should be added
21523 archive_cmds_need_lc_CXX=yes
21524
21525 if test "$enable_shared" = yes && test "$GCC" = yes; then
21526 case $archive_cmds_CXX in
21527 *'~'*)
21528 # FIXME: we may have to deal with multi-command sequences.
21529 ;;
21530 '$CC '*)
21531 # Test whether the compiler implicitly links with -lc since on some
21532 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21533 # to ld, don't add -lc before -lgcc.
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21535 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21536 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21537 $as_echo_n "(cached) " >&6
21538 else
21539 $RM conftest*
21540 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21541
21542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21543 (eval $ac_compile) 2>&5
21544 ac_status=$?
21545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21546 test $ac_status = 0; } 2>conftest.err; then
21547 soname=conftest
21548 lib=conftest
21549 libobjs=conftest.$ac_objext
21550 deplibs=
21551 wl=$lt_prog_compiler_wl_CXX
21552 pic_flag=$lt_prog_compiler_pic_CXX
21553 compiler_flags=-v
21554 linker_flags=-v
21555 verstring=
21556 output_objdir=.
21557 libname=conftest
21558 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21559 allow_undefined_flag_CXX=
21560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21561 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21562 ac_status=$?
21563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21564 test $ac_status = 0; }
21565 then
21566 lt_cv_archive_cmds_need_lc_CXX=no
21567 else
21568 lt_cv_archive_cmds_need_lc_CXX=yes
21569 fi
21570 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21571 else
21572 cat conftest.err 1>&5
21573 fi
21574 $RM conftest*
21575
21576 fi
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21578 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21579 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21580 ;;
21581 esac
21582 fi
21583 ;;
21584 esac
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21650 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21651
21652 library_names_spec=
21653 libname_spec='lib$name'
21654 soname_spec=
21655 shrext_cmds=".so"
21656 postinstall_cmds=
21657 postuninstall_cmds=
21658 finish_cmds=
21659 finish_eval=
21660 shlibpath_var=
21661 shlibpath_overrides_runpath=unknown
21662 version_type=none
21663 dynamic_linker="$host_os ld.so"
21664 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21665 need_lib_prefix=unknown
21666 hardcode_into_libs=no
21667
21668 # when you set need_version to no, make sure it does not cause -set_version
21669 # flags to be left without arguments
21670 need_version=unknown
21671
21672 case $host_os in
21673 aix3*)
21674 version_type=linux
21675 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21676 shlibpath_var=LIBPATH
21677
21678 # AIX 3 has no versioning support, so we append a major version to the name.
21679 soname_spec='${libname}${release}${shared_ext}$major'
21680 ;;
21681
21682 aix[4-9]*)
21683 version_type=linux
21684 need_lib_prefix=no
21685 need_version=no
21686 hardcode_into_libs=yes
21687 if test "$host_cpu" = ia64; then
21688 # AIX 5 supports IA64
21689 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21690 shlibpath_var=LD_LIBRARY_PATH
21691 else
21692 # With GCC up to 2.95.x, collect2 would create an import file
21693 # for dependence libraries. The import file would start with
21694 # the line `#! .'. This would cause the generated library to
21695 # depend on `.', always an invalid library. This was fixed in
21696 # development snapshots of GCC prior to 3.0.
21697 case $host_os in
21698 aix4 | aix4.[01] | aix4.[01].*)
21699 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21700 echo ' yes '
21701 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21702 :
21703 else
21704 can_build_shared=no
21705 fi
21706 ;;
21707 esac
21708 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21709 # soname into executable. Probably we can add versioning support to
21710 # collect2, so additional links can be useful in future.
21711 if test "$aix_use_runtimelinking" = yes; then
21712 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21713 # instead of lib<name>.a to let people know that these are not
21714 # typical AIX shared libraries.
21715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21716 else
21717 # We preserve .a as extension for shared libraries through AIX4.2
21718 # and later when we are not doing run time linking.
21719 library_names_spec='${libname}${release}.a $libname.a'
21720 soname_spec='${libname}${release}${shared_ext}$major'
21721 fi
21722 shlibpath_var=LIBPATH
21723 fi
21724 ;;
21725
21726 amigaos*)
21727 case $host_cpu in
21728 powerpc)
21729 # Since July 2007 AmigaOS4 officially supports .so libraries.
21730 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21732 ;;
21733 m68k)
21734 library_names_spec='$libname.ixlibrary $libname.a'
21735 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21736 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'
21737 ;;
21738 esac
21739 ;;
21740
21741 beos*)
21742 library_names_spec='${libname}${shared_ext}'
21743 dynamic_linker="$host_os ld.so"
21744 shlibpath_var=LIBRARY_PATH
21745 ;;
21746
21747 bsdi[45]*)
21748 version_type=linux
21749 need_version=no
21750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21751 soname_spec='${libname}${release}${shared_ext}$major'
21752 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21753 shlibpath_var=LD_LIBRARY_PATH
21754 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21755 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21756 # the default ld.so.conf also contains /usr/contrib/lib and
21757 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21758 # libtool to hard-code these into programs
21759 ;;
21760
21761 cygwin* | mingw* | pw32* | cegcc*)
21762 version_type=windows
21763 shrext_cmds=".dll"
21764 need_version=no
21765 need_lib_prefix=no
21766
21767 case $GCC,$host_os in
21768 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21769 library_names_spec='$libname.dll.a'
21770 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21771 postinstall_cmds='base_file=`basename \${file}`~
21772 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21773 dldir=$destdir/`dirname \$dlpath`~
21774 test -d \$dldir || mkdir -p \$dldir~
21775 $install_prog $dir/$dlname \$dldir/$dlname~
21776 chmod a+x \$dldir/$dlname~
21777 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21778 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21779 fi'
21780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21781 dlpath=$dir/\$dldll~
21782 $RM \$dlpath'
21783 shlibpath_overrides_runpath=yes
21784
21785 case $host_os in
21786 cygwin*)
21787 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21788 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21789
21790 ;;
21791 mingw* | cegcc*)
21792 # MinGW DLLs use traditional 'lib' prefix
21793 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21794 ;;
21795 pw32*)
21796 # pw32 DLLs use 'pw' prefix rather than 'lib'
21797 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21798 ;;
21799 esac
21800 ;;
21801
21802 *)
21803 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21804 ;;
21805 esac
21806 dynamic_linker='Win32 ld.exe'
21807 # FIXME: first we should search . and the directory the executable is in
21808 shlibpath_var=PATH
21809 ;;
21810
21811 darwin* | rhapsody*)
21812 dynamic_linker="$host_os dyld"
21813 version_type=darwin
21814 need_lib_prefix=no
21815 need_version=no
21816 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21817 soname_spec='${libname}${release}${major}$shared_ext'
21818 shlibpath_overrides_runpath=yes
21819 shlibpath_var=DYLD_LIBRARY_PATH
21820 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21821
21822 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21823 ;;
21824
21825 dgux*)
21826 version_type=linux
21827 need_lib_prefix=no
21828 need_version=no
21829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21830 soname_spec='${libname}${release}${shared_ext}$major'
21831 shlibpath_var=LD_LIBRARY_PATH
21832 ;;
21833
21834 freebsd* | dragonfly*)
21835 # DragonFly does not have aout. When/if they implement a new
21836 # versioning mechanism, adjust this.
21837 if test -x /usr/bin/objformat; then
21838 objformat=`/usr/bin/objformat`
21839 else
21840 case $host_os in
21841 freebsd[23].*) objformat=aout ;;
21842 *) objformat=elf ;;
21843 esac
21844 fi
21845 version_type=freebsd-$objformat
21846 case $version_type in
21847 freebsd-elf*)
21848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21849 need_version=no
21850 need_lib_prefix=no
21851 ;;
21852 freebsd-*)
21853 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21854 need_version=yes
21855 ;;
21856 esac
21857 shlibpath_var=LD_LIBRARY_PATH
21858 case $host_os in
21859 freebsd2.*)
21860 shlibpath_overrides_runpath=yes
21861 ;;
21862 freebsd3.[01]* | freebsdelf3.[01]*)
21863 shlibpath_overrides_runpath=yes
21864 hardcode_into_libs=yes
21865 ;;
21866 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21867 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21868 shlibpath_overrides_runpath=no
21869 hardcode_into_libs=yes
21870 ;;
21871 *) # from 4.6 on, and DragonFly
21872 shlibpath_overrides_runpath=yes
21873 hardcode_into_libs=yes
21874 ;;
21875 esac
21876 ;;
21877
21878 gnu*)
21879 version_type=linux
21880 need_lib_prefix=no
21881 need_version=no
21882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21883 soname_spec='${libname}${release}${shared_ext}$major'
21884 shlibpath_var=LD_LIBRARY_PATH
21885 hardcode_into_libs=yes
21886 ;;
21887
21888 haiku*)
21889 version_type=linux
21890 need_lib_prefix=no
21891 need_version=no
21892 dynamic_linker="$host_os runtime_loader"
21893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21894 soname_spec='${libname}${release}${shared_ext}$major'
21895 shlibpath_var=LIBRARY_PATH
21896 shlibpath_overrides_runpath=yes
21897 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21898 hardcode_into_libs=yes
21899 ;;
21900
21901 hpux9* | hpux10* | hpux11*)
21902 # Give a soname corresponding to the major version so that dld.sl refuses to
21903 # link against other versions.
21904 version_type=sunos
21905 need_lib_prefix=no
21906 need_version=no
21907 case $host_cpu in
21908 ia64*)
21909 shrext_cmds='.so'
21910 hardcode_into_libs=yes
21911 dynamic_linker="$host_os dld.so"
21912 shlibpath_var=LD_LIBRARY_PATH
21913 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21915 soname_spec='${libname}${release}${shared_ext}$major'
21916 if test "X$HPUX_IA64_MODE" = X32; then
21917 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21918 else
21919 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21920 fi
21921 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21922 ;;
21923 hppa*64*)
21924 shrext_cmds='.sl'
21925 hardcode_into_libs=yes
21926 dynamic_linker="$host_os dld.sl"
21927 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21930 soname_spec='${libname}${release}${shared_ext}$major'
21931 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21933 ;;
21934 *)
21935 shrext_cmds='.sl'
21936 dynamic_linker="$host_os dld.sl"
21937 shlibpath_var=SHLIB_PATH
21938 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21940 soname_spec='${libname}${release}${shared_ext}$major'
21941 ;;
21942 esac
21943 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21944 postinstall_cmds='chmod 555 $lib'
21945 # or fails outright, so override atomically:
21946 install_override_mode=555
21947 ;;
21948
21949 interix[3-9]*)
21950 version_type=linux
21951 need_lib_prefix=no
21952 need_version=no
21953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21954 soname_spec='${libname}${release}${shared_ext}$major'
21955 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21956 shlibpath_var=LD_LIBRARY_PATH
21957 shlibpath_overrides_runpath=no
21958 hardcode_into_libs=yes
21959 ;;
21960
21961 irix5* | irix6* | nonstopux*)
21962 case $host_os in
21963 nonstopux*) version_type=nonstopux ;;
21964 *)
21965 if test "$lt_cv_prog_gnu_ld" = yes; then
21966 version_type=linux
21967 else
21968 version_type=irix
21969 fi ;;
21970 esac
21971 need_lib_prefix=no
21972 need_version=no
21973 soname_spec='${libname}${release}${shared_ext}$major'
21974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21975 case $host_os in
21976 irix5* | nonstopux*)
21977 libsuff= shlibsuff=
21978 ;;
21979 *)
21980 case $LD in # libtool.m4 will add one of these switches to LD
21981 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21982 libsuff= shlibsuff= libmagic=32-bit;;
21983 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21984 libsuff=32 shlibsuff=N32 libmagic=N32;;
21985 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21986 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21987 *) libsuff= shlibsuff= libmagic=never-match;;
21988 esac
21989 ;;
21990 esac
21991 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21992 shlibpath_overrides_runpath=no
21993 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21994 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21995 hardcode_into_libs=yes
21996 ;;
21997
21998 # No shared lib support for Linux oldld, aout, or coff.
21999 linux*oldld* | linux*aout* | linux*coff*)
22000 dynamic_linker=no
22001 ;;
22002
22003 # This must be Linux ELF.
22004
22005 # uclinux* changes (here and below) have been submitted to the libtool
22006 # project, but have not yet been accepted: they are GCC-local changes
22007 # for the time being. (See
22008 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22009 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
22010 version_type=linux
22011 need_lib_prefix=no
22012 need_version=no
22013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22014 soname_spec='${libname}${release}${shared_ext}$major'
22015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22016 shlibpath_var=LD_LIBRARY_PATH
22017 shlibpath_overrides_runpath=no
22018
22019 # Some binutils ld are patched to set DT_RUNPATH
22020 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22021 $as_echo_n "(cached) " >&6
22022 else
22023 lt_cv_shlibpath_overrides_runpath=no
22024 save_LDFLAGS=$LDFLAGS
22025 save_libdir=$libdir
22026 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22027 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22029 /* end confdefs.h. */
22030
22031 int
22032 main ()
22033 {
22034
22035 ;
22036 return 0;
22037 }
22038 _ACEOF
22039 if ac_fn_cxx_try_link "$LINENO"; then :
22040 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22041 lt_cv_shlibpath_overrides_runpath=yes
22042 fi
22043 fi
22044 rm -f core conftest.err conftest.$ac_objext \
22045 conftest$ac_exeext conftest.$ac_ext
22046 LDFLAGS=$save_LDFLAGS
22047 libdir=$save_libdir
22048
22049 fi
22050
22051 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22052
22053 # This implies no fast_install, which is unacceptable.
22054 # Some rework will be needed to allow for fast_install
22055 # before this can be enabled.
22056 hardcode_into_libs=yes
22057
22058 # Append ld.so.conf contents to the search path
22059 if test -f /etc/ld.so.conf; then
22060 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' ' '`
22061 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22062 fi
22063
22064 # We used to test for /lib/ld.so.1 and disable shared libraries on
22065 # powerpc, because MkLinux only supported shared libraries with the
22066 # GNU dynamic linker. Since this was broken with cross compilers,
22067 # most powerpc-linux boxes support dynamic linking these days and
22068 # people can always --disable-shared, the test was removed, and we
22069 # assume the GNU/Linux dynamic linker is in use.
22070 dynamic_linker='GNU/Linux ld.so'
22071 ;;
22072
22073 netbsd*)
22074 version_type=sunos
22075 need_lib_prefix=no
22076 need_version=no
22077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22080 dynamic_linker='NetBSD (a.out) ld.so'
22081 else
22082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22083 soname_spec='${libname}${release}${shared_ext}$major'
22084 dynamic_linker='NetBSD ld.elf_so'
22085 fi
22086 shlibpath_var=LD_LIBRARY_PATH
22087 shlibpath_overrides_runpath=yes
22088 hardcode_into_libs=yes
22089 ;;
22090
22091 newsos6)
22092 version_type=linux
22093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22094 shlibpath_var=LD_LIBRARY_PATH
22095 shlibpath_overrides_runpath=yes
22096 ;;
22097
22098 *nto* | *qnx*)
22099 version_type=qnx
22100 need_lib_prefix=no
22101 need_version=no
22102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22103 soname_spec='${libname}${release}${shared_ext}$major'
22104 shlibpath_var=LD_LIBRARY_PATH
22105 shlibpath_overrides_runpath=no
22106 hardcode_into_libs=yes
22107 dynamic_linker='ldqnx.so'
22108 ;;
22109
22110 openbsd*)
22111 version_type=sunos
22112 sys_lib_dlsearch_path_spec="/usr/lib"
22113 need_lib_prefix=no
22114 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22115 case $host_os in
22116 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22117 *) need_version=no ;;
22118 esac
22119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22121 shlibpath_var=LD_LIBRARY_PATH
22122 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22123 case $host_os in
22124 openbsd2.[89] | openbsd2.[89].*)
22125 shlibpath_overrides_runpath=no
22126 ;;
22127 *)
22128 shlibpath_overrides_runpath=yes
22129 ;;
22130 esac
22131 else
22132 shlibpath_overrides_runpath=yes
22133 fi
22134 ;;
22135
22136 os2*)
22137 libname_spec='$name'
22138 shrext_cmds=".dll"
22139 need_lib_prefix=no
22140 library_names_spec='$libname${shared_ext} $libname.a'
22141 dynamic_linker='OS/2 ld.exe'
22142 shlibpath_var=LIBPATH
22143 ;;
22144
22145 osf3* | osf4* | osf5*)
22146 version_type=osf
22147 need_lib_prefix=no
22148 need_version=no
22149 soname_spec='${libname}${release}${shared_ext}$major'
22150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22151 shlibpath_var=LD_LIBRARY_PATH
22152 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22153 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22154 ;;
22155
22156 rdos*)
22157 dynamic_linker=no
22158 ;;
22159
22160 solaris*)
22161 version_type=linux
22162 need_lib_prefix=no
22163 need_version=no
22164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22165 soname_spec='${libname}${release}${shared_ext}$major'
22166 shlibpath_var=LD_LIBRARY_PATH
22167 shlibpath_overrides_runpath=yes
22168 hardcode_into_libs=yes
22169 # ldd complains unless libraries are executable
22170 postinstall_cmds='chmod +x $lib'
22171 ;;
22172
22173 sunos4*)
22174 version_type=sunos
22175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22176 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22177 shlibpath_var=LD_LIBRARY_PATH
22178 shlibpath_overrides_runpath=yes
22179 if test "$with_gnu_ld" = yes; then
22180 need_lib_prefix=no
22181 fi
22182 need_version=yes
22183 ;;
22184
22185 sysv4 | sysv4.3*)
22186 version_type=linux
22187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22188 soname_spec='${libname}${release}${shared_ext}$major'
22189 shlibpath_var=LD_LIBRARY_PATH
22190 case $host_vendor in
22191 sni)
22192 shlibpath_overrides_runpath=no
22193 need_lib_prefix=no
22194 runpath_var=LD_RUN_PATH
22195 ;;
22196 siemens)
22197 need_lib_prefix=no
22198 ;;
22199 motorola)
22200 need_lib_prefix=no
22201 need_version=no
22202 shlibpath_overrides_runpath=no
22203 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22204 ;;
22205 esac
22206 ;;
22207
22208 sysv4*MP*)
22209 if test -d /usr/nec ;then
22210 version_type=linux
22211 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22212 soname_spec='$libname${shared_ext}.$major'
22213 shlibpath_var=LD_LIBRARY_PATH
22214 fi
22215 ;;
22216
22217 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22218 version_type=freebsd-elf
22219 need_lib_prefix=no
22220 need_version=no
22221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22222 soname_spec='${libname}${release}${shared_ext}$major'
22223 shlibpath_var=LD_LIBRARY_PATH
22224 shlibpath_overrides_runpath=yes
22225 hardcode_into_libs=yes
22226 if test "$with_gnu_ld" = yes; then
22227 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22228 else
22229 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22230 case $host_os in
22231 sco3.2v5*)
22232 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22233 ;;
22234 esac
22235 fi
22236 sys_lib_dlsearch_path_spec='/usr/lib'
22237 ;;
22238
22239 tpf*)
22240 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22241 version_type=linux
22242 need_lib_prefix=no
22243 need_version=no
22244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22245 shlibpath_var=LD_LIBRARY_PATH
22246 shlibpath_overrides_runpath=no
22247 hardcode_into_libs=yes
22248 ;;
22249
22250 uts4*)
22251 version_type=linux
22252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22253 soname_spec='${libname}${release}${shared_ext}$major'
22254 shlibpath_var=LD_LIBRARY_PATH
22255 ;;
22256
22257 *)
22258 dynamic_linker=no
22259 ;;
22260 esac
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22262 $as_echo "$dynamic_linker" >&6; }
22263 test "$dynamic_linker" = no && can_build_shared=no
22264
22265 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22266 if test "$GCC" = yes; then
22267 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22268 fi
22269
22270 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22271 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22272 fi
22273 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22274 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22275 fi
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22315 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22316 hardcode_action_CXX=
22317 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22318 test -n "$runpath_var_CXX" ||
22319 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22320
22321 # We can hardcode non-existent directories.
22322 if test "$hardcode_direct_CXX" != no &&
22323 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22324 # have to relink, otherwise we might link with an installed library
22325 # when we should be linking with a yet-to-be-installed one
22326 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22327 test "$hardcode_minus_L_CXX" != no; then
22328 # Linking always hardcodes the temporary library directory.
22329 hardcode_action_CXX=relink
22330 else
22331 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22332 hardcode_action_CXX=immediate
22333 fi
22334 else
22335 # We cannot hardcode anything, or else we can only hardcode existing
22336 # directories.
22337 hardcode_action_CXX=unsupported
22338 fi
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22340 $as_echo "$hardcode_action_CXX" >&6; }
22341
22342 if test "$hardcode_action_CXX" = relink ||
22343 test "$inherit_rpath_CXX" = yes; then
22344 # Fast installation is not supported
22345 enable_fast_install=no
22346 elif test "$shlibpath_overrides_runpath" = yes ||
22347 test "$enable_shared" = no; then
22348 # Fast installation is not necessary
22349 enable_fast_install=needless
22350 fi
22351
22352
22353
22354
22355
22356
22357
22358 fi # test -n "$compiler"
22359
22360 CC=$lt_save_CC
22361 LDCXX=$LD
22362 LD=$lt_save_LD
22363 GCC=$lt_save_GCC
22364 with_gnu_ld=$lt_save_with_gnu_ld
22365 lt_cv_path_LDCXX=$lt_cv_path_LD
22366 lt_cv_path_LD=$lt_save_path_LD
22367 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22368 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22369 fi # test "$_lt_caught_CXX_error" != yes
22370
22371 ac_ext=cpp
22372 ac_cpp='$CXXCPP $CPPFLAGS'
22373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392 # Only expand once:
22393
22394
22395
22396
22397
22398 # Identify the assembler which will work hand-in-glove with the newly
22399 # built GCC, so that we can examine its features. This is the assembler
22400 # which will be driven by the driver program.
22401 #
22402 # If build != host, and we aren't building gas in-tree, we identify a
22403 # build->target assembler and hope that it will have the same features
22404 # as the host->target assembler we'll be using.
22405 gcc_cv_gas_major_version=
22406 gcc_cv_gas_minor_version=
22407 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22408
22409 if ${gcc_cv_as+:} false; then :
22410
22411 else
22412
22413 if test -x "$DEFAULT_ASSEMBLER"; then
22414 gcc_cv_as="$DEFAULT_ASSEMBLER"
22415 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22416 && test -f ../gas/Makefile \
22417 && test x$build = x$host; then
22418 gcc_cv_as=../gas/as-new$build_exeext
22419 elif test -x as$build_exeext; then
22420 # Build using assembler in the current directory.
22421 gcc_cv_as=./as$build_exeext
22422 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22423 gcc_cv_as="$AS_FOR_TARGET"
22424 else
22425 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22426 set dummy $AS_FOR_TARGET; ac_word=$2
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22428 $as_echo_n "checking for $ac_word... " >&6; }
22429 if ${ac_cv_path_gcc_cv_as+:} false; then :
22430 $as_echo_n "(cached) " >&6
22431 else
22432 case $gcc_cv_as in
22433 [\\/]* | ?:[\\/]*)
22434 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22435 ;;
22436 *)
22437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22438 for as_dir in $PATH
22439 do
22440 IFS=$as_save_IFS
22441 test -z "$as_dir" && as_dir=.
22442 for ac_exec_ext in '' $ac_executable_extensions; do
22443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22444 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22446 break 2
22447 fi
22448 done
22449 done
22450 IFS=$as_save_IFS
22451
22452 ;;
22453 esac
22454 fi
22455 gcc_cv_as=$ac_cv_path_gcc_cv_as
22456 if test -n "$gcc_cv_as"; then
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22458 $as_echo "$gcc_cv_as" >&6; }
22459 else
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22461 $as_echo "no" >&6; }
22462 fi
22463
22464
22465 fi
22466 fi
22467
22468 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22469
22470 case "$ORIGINAL_AS_FOR_TARGET" in
22471 ./as | ./as$build_exeext) ;;
22472 *) ac_config_files="$ac_config_files as:exec-tool.in"
22473 ;;
22474 esac
22475
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22477 $as_echo_n "checking what assembler to use... " >&6; }
22478 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22479 # Single tree build which includes gas. We want to prefer it
22480 # over whatever linker top-level may have detected, since
22481 # we'll use what we're building after installation anyway.
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22483 $as_echo "newly built gas" >&6; }
22484 in_tree_gas=yes
22485 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22486 for f in $gcc_cv_as_bfd_srcdir/configure \
22487 $gcc_cv_as_gas_srcdir/configure \
22488 $gcc_cv_as_gas_srcdir/configure.ac \
22489 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22490 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22491 if test x$gcc_cv_gas_version != x; then
22492 break
22493 fi
22494 done
22495 case $gcc_cv_gas_version in
22496 VERSION=[0-9]*) ;;
22497 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22498 esac
22499 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22500 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22501 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22502 case $gcc_cv_gas_patch_version in
22503 "") gcc_cv_gas_patch_version="0" ;;
22504 esac
22505 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22506 + $gcc_cv_gas_minor_version \) \* 1000 \
22507 + $gcc_cv_gas_patch_version`
22508
22509 in_tree_gas_is_elf=no
22510 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22511 || (grep 'obj_format = multi' ../gas/Makefile \
22512 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22513 then
22514 in_tree_gas_is_elf=yes
22515 fi
22516 else
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22518 $as_echo "$gcc_cv_as" >&6; }
22519 in_tree_gas=no
22520 fi
22521
22522 default_ld=
22523 # Check whether --enable-ld was given.
22524 if test "${enable_ld+set}" = set; then :
22525 enableval=$enable_ld; case "${enableval}" in
22526 no)
22527 default_ld=ld.gold
22528 ;;
22529 esac
22530 fi
22531
22532
22533 install_gold_as_default=no
22534 # Check whether --enable-gold was given.
22535 if test "${enable_gold+set}" = set; then :
22536 enableval=$enable_gold; case "${enableval}" in
22537 default)
22538 install_gold_as_default=yes
22539 ;;
22540 yes)
22541 if test x${default_ld} != x; then
22542 install_gold_as_default=yes
22543 fi
22544 ;;
22545 no)
22546 ;;
22547 *)
22548 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22549 ;;
22550 esac
22551 fi
22552
22553
22554 # Identify the linker which will work hand-in-glove with the newly
22555 # built GCC, so that we can examine its features. This is the linker
22556 # which will be driven by the driver program.
22557 #
22558 # If build != host, and we aren't building gas in-tree, we identify a
22559 # build->target linker and hope that it will have the same features
22560 # as the host->target linker we'll be using.
22561 gcc_cv_gld_major_version=
22562 gcc_cv_gld_minor_version=
22563 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22564 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22565 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22566
22567 if ${gcc_cv_ld+:} false; then :
22568
22569 else
22570
22571 if test -x "$DEFAULT_LINKER"; then
22572 gcc_cv_ld="$DEFAULT_LINKER"
22573 elif test $install_gold_as_default = yes \
22574 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22575 && test -f ../gold/Makefile \
22576 && test x$build = x$host; then
22577 gcc_cv_ld=../gold/ld-new$build_exeext
22578 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22579 && test -f ../ld/Makefile \
22580 && test x$build = x$host; then
22581 gcc_cv_ld=../ld/ld-new$build_exeext
22582 elif test -x collect-ld$build_exeext; then
22583 # Build using linker in the current directory.
22584 gcc_cv_ld=./collect-ld$build_exeext
22585 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22586 gcc_cv_ld="$LD_FOR_TARGET"
22587 else
22588 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22589 set dummy $LD_FOR_TARGET; ac_word=$2
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22591 $as_echo_n "checking for $ac_word... " >&6; }
22592 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22593 $as_echo_n "(cached) " >&6
22594 else
22595 case $gcc_cv_ld in
22596 [\\/]* | ?:[\\/]*)
22597 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22598 ;;
22599 *)
22600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22601 for as_dir in $PATH
22602 do
22603 IFS=$as_save_IFS
22604 test -z "$as_dir" && as_dir=.
22605 for ac_exec_ext in '' $ac_executable_extensions; do
22606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22607 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22609 break 2
22610 fi
22611 done
22612 done
22613 IFS=$as_save_IFS
22614
22615 ;;
22616 esac
22617 fi
22618 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22619 if test -n "$gcc_cv_ld"; then
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22621 $as_echo "$gcc_cv_ld" >&6; }
22622 else
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22624 $as_echo "no" >&6; }
22625 fi
22626
22627
22628 fi
22629 fi
22630
22631 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22632 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22633 # if the PLUGIN_LD is set ld-new, just have it as ld
22634 # as that is the installed named.
22635 if test x$PLUGIN_LD_SUFFIX = xld-new \
22636 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22637 PLUGIN_LD_SUFFIX=ld
22638 fi
22639
22640 # Check whether --with-plugin-ld was given.
22641 if test "${with_plugin_ld+set}" = set; then :
22642 withval=$with_plugin_ld; if test x"$withval" != x; then
22643 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22644 PLUGIN_LD_SUFFIX="$withval"
22645 fi
22646 fi
22647
22648
22649
22650 cat >>confdefs.h <<_ACEOF
22651 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22652 _ACEOF
22653
22654
22655 # Check to see if we are using gold instead of ld
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22657 $as_echo_n "checking whether we are using gold... " >&6; }
22658 ld_is_gold=no
22659 if test x$gcc_cv_ld != x; then
22660 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22661 | grep "GNU gold" > /dev/null; then
22662 ld_is_gold=yes
22663 fi
22664 fi
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22666 $as_echo "$ld_is_gold" >&6; }
22667
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22669 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22670 # Check to see if default ld is not gold, but gold is
22671 # available and has support for split stack. If gcc was configured
22672 # with gold then no checking is done.
22673 #
22674 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22675
22676 # For platforms other than powerpc64*, enable as appropriate.
22677
22678 gold_non_default=no
22679 ld_gold=`which ${gcc_cv_ld}.gold`
22680 # Make sure this gold has minimal split stack support
22681 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22682 ld_vers=`$ld_gold --version | sed 1q`
22683 gold_vers=`echo $ld_vers | sed -n \
22684 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22685 case $target in
22686 # check that the gold version contains the complete split stack support
22687 # on powerpc64 big and little endian
22688 powerpc64*-*-*)
22689 case "$gold_vers" in
22690 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22691 ;;
22692 *) gold_non_default=no
22693 ;;
22694 esac
22695 ;;
22696 esac
22697 fi
22698 if test $gold_non_default = yes; then
22699
22700 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22701
22702 fi
22703 fi
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22705 $as_echo "$gold_non_default" >&6; }
22706
22707 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22708
22709 case "$ORIGINAL_LD_FOR_TARGET" in
22710 ./collect-ld | ./collect-ld$build_exeext) ;;
22711 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22712 ;;
22713 esac
22714
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22716 $as_echo_n "checking what linker to use... " >&6; }
22717 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22718 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22719 # Single tree build which includes ld. We want to prefer it
22720 # over whatever linker top-level may have detected, since
22721 # we'll use what we're building after installation anyway.
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22723 $as_echo "newly built ld" >&6; }
22724 in_tree_ld=yes
22725 in_tree_ld_is_elf=no
22726 if (grep 'EMUL = .*elf' ../ld/Makefile \
22727 || grep 'EMUL = .*linux' ../ld/Makefile \
22728 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22729 in_tree_ld_is_elf=yes
22730 elif test "$ld_is_gold" = yes; then
22731 in_tree_ld_is_elf=yes
22732 fi
22733 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
22734 do
22735 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22736 if test x$gcc_cv_gld_version != x; then
22737 break
22738 fi
22739 done
22740 case $gcc_cv_gld_version in
22741 VERSION=[0-9]*) ;;
22742 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22743 esac
22744 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22745 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22746 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22747 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22748 else
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22750 $as_echo "$gcc_cv_ld" >&6; }
22751 in_tree_ld=no
22752 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22753 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22754 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22755 fi
22756
22757
22758
22759
22760 # Figure out what nm we will be using.
22761 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22762 if ${gcc_cv_nm+:} false; then :
22763
22764 else
22765
22766 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22767 && test -f ../binutils/Makefile \
22768 && test x$build = x$host; then
22769 gcc_cv_nm=../binutils/nm-new$build_exeext
22770 elif test -x nm$build_exeext; then
22771 gcc_cv_nm=./nm$build_exeext
22772 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22773 gcc_cv_nm="$NM_FOR_TARGET"
22774 else
22775 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22776 set dummy $NM_FOR_TARGET; ac_word=$2
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22778 $as_echo_n "checking for $ac_word... " >&6; }
22779 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22780 $as_echo_n "(cached) " >&6
22781 else
22782 case $gcc_cv_nm in
22783 [\\/]* | ?:[\\/]*)
22784 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22785 ;;
22786 *)
22787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22788 for as_dir in $PATH
22789 do
22790 IFS=$as_save_IFS
22791 test -z "$as_dir" && as_dir=.
22792 for ac_exec_ext in '' $ac_executable_extensions; do
22793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22794 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22796 break 2
22797 fi
22798 done
22799 done
22800 IFS=$as_save_IFS
22801
22802 ;;
22803 esac
22804 fi
22805 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22806 if test -n "$gcc_cv_nm"; then
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22808 $as_echo "$gcc_cv_nm" >&6; }
22809 else
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22811 $as_echo "no" >&6; }
22812 fi
22813
22814
22815 fi
22816 fi
22817
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22819 $as_echo_n "checking what nm to use... " >&6; }
22820 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22821 # Single tree build which includes binutils.
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22823 $as_echo "newly built nm" >&6; }
22824 in_tree_nm=yes
22825 else
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22827 $as_echo "$gcc_cv_nm" >&6; }
22828 in_tree_nm=no
22829 fi
22830
22831 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22832
22833 case "$ORIGINAL_NM_FOR_TARGET" in
22834 ./nm | ./nm$build_exeext) ;;
22835 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22836 ;;
22837 esac
22838
22839
22840 # Figure out what objdump we will be using.
22841 if ${gcc_cv_objdump+:} false; then :
22842
22843 else
22844
22845 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22846 && test -f ../binutils/Makefile \
22847 && test x$build = x$host; then
22848 # Single tree build which includes binutils.
22849 gcc_cv_objdump=../binutils/objdump$build_exeext
22850 elif test -x objdump$build_exeext; then
22851 gcc_cv_objdump=./objdump$build_exeext
22852 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22853 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22854 else
22855 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22856 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22858 $as_echo_n "checking for $ac_word... " >&6; }
22859 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22860 $as_echo_n "(cached) " >&6
22861 else
22862 case $gcc_cv_objdump in
22863 [\\/]* | ?:[\\/]*)
22864 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22865 ;;
22866 *)
22867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22868 for as_dir in $PATH
22869 do
22870 IFS=$as_save_IFS
22871 test -z "$as_dir" && as_dir=.
22872 for ac_exec_ext in '' $ac_executable_extensions; do
22873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22874 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22876 break 2
22877 fi
22878 done
22879 done
22880 IFS=$as_save_IFS
22881
22882 ;;
22883 esac
22884 fi
22885 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22886 if test -n "$gcc_cv_objdump"; then
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22888 $as_echo "$gcc_cv_objdump" >&6; }
22889 else
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22891 $as_echo "no" >&6; }
22892 fi
22893
22894
22895 fi
22896 fi
22897
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22899 $as_echo_n "checking what objdump to use... " >&6; }
22900 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22901 # Single tree build which includes binutils.
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22903 $as_echo "newly built objdump" >&6; }
22904 elif test x$gcc_cv_objdump = x; then
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22906 $as_echo "not found" >&6; }
22907 else
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22909 $as_echo "$gcc_cv_objdump" >&6; }
22910 fi
22911
22912 # Figure out what readelf we will be using.
22913 if ${gcc_cv_readelf+:} false; then :
22914
22915 else
22916
22917 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22918 && test -f ../binutils/Makefile \
22919 && test x$build = x$host; then
22920 # Single tree build which includes binutils.
22921 gcc_cv_readelf=../binutils/readelf$build_exeext
22922 elif test -x readelf$build_exeext; then
22923 gcc_cv_readelf=./readelf$build_exeext
22924 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22925 gcc_cv_readelf="$READELF_FOR_TARGET"
22926 else
22927 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22928 set dummy $READELF_FOR_TARGET; ac_word=$2
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22930 $as_echo_n "checking for $ac_word... " >&6; }
22931 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22932 $as_echo_n "(cached) " >&6
22933 else
22934 case $gcc_cv_readelf in
22935 [\\/]* | ?:[\\/]*)
22936 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22937 ;;
22938 *)
22939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22940 for as_dir in $PATH
22941 do
22942 IFS=$as_save_IFS
22943 test -z "$as_dir" && as_dir=.
22944 for ac_exec_ext in '' $ac_executable_extensions; do
22945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22946 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22948 break 2
22949 fi
22950 done
22951 done
22952 IFS=$as_save_IFS
22953
22954 ;;
22955 esac
22956 fi
22957 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22958 if test -n "$gcc_cv_readelf"; then
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22960 $as_echo "$gcc_cv_readelf" >&6; }
22961 else
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22963 $as_echo "no" >&6; }
22964 fi
22965
22966
22967 fi
22968 fi
22969
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22971 $as_echo_n "checking what readelf to use... " >&6; }
22972 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22973 # Single tree build which includes binutils.
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22975 $as_echo "newly built readelf" >&6; }
22976 elif test x$gcc_cv_readelf = x; then
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22978 $as_echo "not found" >&6; }
22979 else
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22981 $as_echo "$gcc_cv_readelf" >&6; }
22982 fi
22983
22984 # Figure out what otool we will be using.
22985 if ${gcc_cv_otool+:} false; then :
22986
22987 else
22988
22989 if test -x otool$build_exeext; then
22990 gcc_cv_otool=./otool$build_exeext
22991 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22992 gcc_cv_otool="$OTOOL_FOR_TARGET"
22993 else
22994 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22995 set dummy $OTOOL_FOR_TARGET; ac_word=$2
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22997 $as_echo_n "checking for $ac_word... " >&6; }
22998 if ${ac_cv_path_gcc_cv_otool+:} false; then :
22999 $as_echo_n "(cached) " >&6
23000 else
23001 case $gcc_cv_otool in
23002 [\\/]* | ?:[\\/]*)
23003 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23004 ;;
23005 *)
23006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23007 for as_dir in $PATH
23008 do
23009 IFS=$as_save_IFS
23010 test -z "$as_dir" && as_dir=.
23011 for ac_exec_ext in '' $ac_executable_extensions; do
23012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23013 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23015 break 2
23016 fi
23017 done
23018 done
23019 IFS=$as_save_IFS
23020
23021 ;;
23022 esac
23023 fi
23024 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23025 if test -n "$gcc_cv_otool"; then
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23027 $as_echo "$gcc_cv_otool" >&6; }
23028 else
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23030 $as_echo "no" >&6; }
23031 fi
23032
23033
23034 fi
23035 fi
23036
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23038 $as_echo_n "checking what otool to use... " >&6; }
23039 if test x$gcc_cv_otool = x; then
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23041 $as_echo "not found" >&6; }
23042 else
23043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23044 $as_echo "$gcc_cv_otool" >&6; }
23045 fi
23046
23047 # Figure out what assembler alignment features are present.
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23049 $as_echo_n "checking assembler flags... " >&6; }
23050 if ${gcc_cv_as_flags+:} false; then :
23051 $as_echo_n "(cached) " >&6
23052 else
23053 case "$target" in
23054 i[34567]86-*-linux*)
23055 gcc_cv_as_flags=--32
23056 ;;
23057 x86_64-*-linux-gnux32)
23058 gcc_cv_as_flags=--x32
23059 ;;
23060 x86_64-*-linux*)
23061 gcc_cv_as_flags=--64
23062 ;;
23063 powerpc*-*-darwin*)
23064 gcc_cv_as_flags="-arch ppc"
23065 ;;
23066 *)
23067 gcc_cv_as_flags=" "
23068 ;;
23069 esac
23070 fi
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23072 $as_echo "$gcc_cv_as_flags" >&6; }
23073
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23075 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23076 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23077 $as_echo_n "(cached) " >&6
23078 else
23079 gcc_cv_as_balign_and_p2align=no
23080 if test $in_tree_gas = yes; then
23081 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23082 then gcc_cv_as_balign_and_p2align=yes
23083 fi
23084 elif test x$gcc_cv_as != x; then
23085 $as_echo '.balign 4
23086 .p2align 2' > conftest.s
23087 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23089 (eval $ac_try) 2>&5
23090 ac_status=$?
23091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23092 test $ac_status = 0; }; }
23093 then
23094 gcc_cv_as_balign_and_p2align=yes
23095 else
23096 echo "configure: failed program was" >&5
23097 cat conftest.s >&5
23098 fi
23099 rm -f conftest.o conftest.s
23100 fi
23101 fi
23102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23103 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23104 if test $gcc_cv_as_balign_and_p2align = yes; then
23105
23106 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23107
23108 fi
23109
23110
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23112 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23113 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23114 $as_echo_n "(cached) " >&6
23115 else
23116 gcc_cv_as_max_skip_p2align=no
23117 if test $in_tree_gas = yes; then
23118 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23119 then gcc_cv_as_max_skip_p2align=yes
23120 fi
23121 elif test x$gcc_cv_as != x; then
23122 $as_echo '.p2align 4,,7' > conftest.s
23123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23125 (eval $ac_try) 2>&5
23126 ac_status=$?
23127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23128 test $ac_status = 0; }; }
23129 then
23130 gcc_cv_as_max_skip_p2align=yes
23131 else
23132 echo "configure: failed program was" >&5
23133 cat conftest.s >&5
23134 fi
23135 rm -f conftest.o conftest.s
23136 fi
23137 fi
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23139 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23140 if test $gcc_cv_as_max_skip_p2align = yes; then
23141
23142 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23143
23144 fi
23145
23146
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23148 $as_echo_n "checking assembler for .literal16... " >&6; }
23149 if ${gcc_cv_as_literal16+:} false; then :
23150 $as_echo_n "(cached) " >&6
23151 else
23152 gcc_cv_as_literal16=no
23153 if test $in_tree_gas = yes; then
23154 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23155 then gcc_cv_as_literal16=yes
23156 fi
23157 elif test x$gcc_cv_as != x; then
23158 $as_echo '.literal16' > conftest.s
23159 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23161 (eval $ac_try) 2>&5
23162 ac_status=$?
23163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23164 test $ac_status = 0; }; }
23165 then
23166 gcc_cv_as_literal16=yes
23167 else
23168 echo "configure: failed program was" >&5
23169 cat conftest.s >&5
23170 fi
23171 rm -f conftest.o conftest.s
23172 fi
23173 fi
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23175 $as_echo "$gcc_cv_as_literal16" >&6; }
23176 if test $gcc_cv_as_literal16 = yes; then
23177
23178 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23179
23180 fi
23181
23182
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23184 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23185 if ${gcc_cv_as_subsection_m1+:} false; then :
23186 $as_echo_n "(cached) " >&6
23187 else
23188 gcc_cv_as_subsection_m1=no
23189 if test $in_tree_gas = yes; then
23190 if test $in_tree_gas_is_elf = yes \
23191 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23192 then gcc_cv_as_subsection_m1=yes
23193 fi
23194 elif test x$gcc_cv_as != x; then
23195 $as_echo 'conftest_label1: .word 0
23196 .subsection -1
23197 conftest_label2: .word 0
23198 .previous' > conftest.s
23199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23201 (eval $ac_try) 2>&5
23202 ac_status=$?
23203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23204 test $ac_status = 0; }; }
23205 then
23206 if test x$gcc_cv_nm != x; then
23207 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23208 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23209 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23210 then :
23211 else gcc_cv_as_subsection_m1=yes
23212 fi
23213 rm -f conftest.nm1 conftest.nm2
23214 fi
23215 else
23216 echo "configure: failed program was" >&5
23217 cat conftest.s >&5
23218 fi
23219 rm -f conftest.o conftest.s
23220 fi
23221 fi
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23223 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23224 if test $gcc_cv_as_subsection_m1 = yes; then
23225
23226 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23227
23228 fi
23229
23230
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23232 $as_echo_n "checking assembler for .weak... " >&6; }
23233 if ${gcc_cv_as_weak+:} false; then :
23234 $as_echo_n "(cached) " >&6
23235 else
23236 gcc_cv_as_weak=no
23237 if test $in_tree_gas = yes; then
23238 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23239 then gcc_cv_as_weak=yes
23240 fi
23241 elif test x$gcc_cv_as != x; then
23242 $as_echo ' .weak foobar' > conftest.s
23243 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23245 (eval $ac_try) 2>&5
23246 ac_status=$?
23247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23248 test $ac_status = 0; }; }
23249 then
23250 gcc_cv_as_weak=yes
23251 else
23252 echo "configure: failed program was" >&5
23253 cat conftest.s >&5
23254 fi
23255 rm -f conftest.o conftest.s
23256 fi
23257 fi
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23259 $as_echo "$gcc_cv_as_weak" >&6; }
23260 if test $gcc_cv_as_weak = yes; then
23261
23262 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23263
23264 fi
23265
23266
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23268 $as_echo_n "checking assembler for .weakref... " >&6; }
23269 if ${gcc_cv_as_weakref+:} false; then :
23270 $as_echo_n "(cached) " >&6
23271 else
23272 gcc_cv_as_weakref=no
23273 if test $in_tree_gas = yes; then
23274 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23275 then gcc_cv_as_weakref=yes
23276 fi
23277 elif test x$gcc_cv_as != x; then
23278 $as_echo ' .weakref foobar, barfnot' > conftest.s
23279 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23281 (eval $ac_try) 2>&5
23282 ac_status=$?
23283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23284 test $ac_status = 0; }; }
23285 then
23286 gcc_cv_as_weakref=yes
23287 else
23288 echo "configure: failed program was" >&5
23289 cat conftest.s >&5
23290 fi
23291 rm -f conftest.o conftest.s
23292 fi
23293 fi
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23295 $as_echo "$gcc_cv_as_weakref" >&6; }
23296 if test $gcc_cv_as_weakref = yes; then
23297
23298 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23299
23300 fi
23301
23302
23303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23304 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23305 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23306 $as_echo_n "(cached) " >&6
23307 else
23308 gcc_cv_as_nsubspa_comdat=no
23309 if test $in_tree_gas = yes; then
23310 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23311 then gcc_cv_as_nsubspa_comdat=yes
23312 fi
23313 elif test x$gcc_cv_as != x; then
23314 $as_echo ' .SPACE $TEXT$
23315 .NSUBSPA $CODE$,COMDAT' > conftest.s
23316 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23318 (eval $ac_try) 2>&5
23319 ac_status=$?
23320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23321 test $ac_status = 0; }; }
23322 then
23323 gcc_cv_as_nsubspa_comdat=yes
23324 else
23325 echo "configure: failed program was" >&5
23326 cat conftest.s >&5
23327 fi
23328 rm -f conftest.o conftest.s
23329 fi
23330 fi
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23332 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23333 if test $gcc_cv_as_nsubspa_comdat = yes; then
23334
23335 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23336
23337 fi
23338
23339
23340 # .hidden needs to be supported in both the assembler and the linker,
23341 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23342 # This is irritatingly difficult to feature test for; we have to check the
23343 # date string after the version number. If we've got an in-tree
23344 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23345 # to be safe.
23346 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23347 case "${target}" in
23348 *-*-aix*)
23349 conftest_s=' .globl foobar,hidden'
23350 ;;
23351 *)
23352 conftest_s=' .hidden foobar
23353 foobar:'
23354 ;;
23355 esac
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23357 $as_echo_n "checking assembler for .hidden... " >&6; }
23358 if ${gcc_cv_as_hidden+:} false; then :
23359 $as_echo_n "(cached) " >&6
23360 else
23361 gcc_cv_as_hidden=no
23362 if test $in_tree_gas = yes; then
23363 if test $in_tree_gas_is_elf = yes \
23364 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23365 then gcc_cv_as_hidden=yes
23366 fi
23367 elif test x$gcc_cv_as != x; then
23368 $as_echo "$conftest_s" > conftest.s
23369 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23371 (eval $ac_try) 2>&5
23372 ac_status=$?
23373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23374 test $ac_status = 0; }; }
23375 then
23376 gcc_cv_as_hidden=yes
23377 else
23378 echo "configure: failed program was" >&5
23379 cat conftest.s >&5
23380 fi
23381 rm -f conftest.o conftest.s
23382 fi
23383 fi
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23385 $as_echo "$gcc_cv_as_hidden" >&6; }
23386
23387
23388 case "${target}" in
23389 *-*-darwin*)
23390 # Darwin as has some visibility support, though with a different syntax.
23391 gcc_cv_as_hidden=yes
23392 ;;
23393 esac
23394
23395 # gnu_indirect_function type is an extension proposed at
23396 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23397 # selection of function implementation
23398 # Check whether --enable-gnu-indirect-function was given.
23399 if test "${enable_gnu_indirect_function+set}" = set; then :
23400 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23401 yes | no) ;;
23402 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23403 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23404 esac
23405 else
23406 enable_gnu_indirect_function="$default_gnu_indirect_function"
23407 fi
23408
23409
23410 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23411
23412 cat >>confdefs.h <<_ACEOF
23413 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23414 _ACEOF
23415
23416
23417
23418 if test $in_tree_ld != yes ; then
23419 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23420 if echo "$ld_ver" | grep GNU > /dev/null; then
23421 if test x"$ld_is_gold" = xyes; then
23422 # GNU gold --version looks like this:
23423 #
23424 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23425 #
23426 # We extract the binutils version which is more familiar and specific
23427 # than the gold version.
23428 ld_vers=`echo $ld_ver | sed -n \
23429 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23430 else
23431 # GNU ld --version looks like this:
23432 #
23433 # GNU ld (GNU Binutils) 2.21.51.20110225
23434 ld_vers=`echo $ld_ver | sed -n \
23435 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23436 fi
23437 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)\(-*\)\([01][0-9]\)\2\([0-3][0-9]\).*$,\1\3\4,p'`
23438 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23439 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23440 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23441 else
23442 case "${target}" in
23443 *-*-solaris2*)
23444 # Solaris 2 ld -V output looks like this for a regular version:
23445 #
23446 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23447 #
23448 # but test versions add stuff at the end:
23449 #
23450 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23451 #
23452 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23453 # numbers can be used in ld.so.1 feature checks even if a different
23454 # linker is configured.
23455 ld_ver=`$gcc_cv_ld -V 2>&1`
23456 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23457 ld_vers=`echo $ld_ver | sed -n \
23458 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23459 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23460 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23461 fi
23462 ;;
23463 esac
23464 fi
23465 fi
23466
23467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23468 $as_echo_n "checking linker for .hidden support... " >&6; }
23469 if ${gcc_cv_ld_hidden+:} false; then :
23470 $as_echo_n "(cached) " >&6
23471 else
23472 if test $in_tree_ld = yes ; then
23473 gcc_cv_ld_hidden=no
23474 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 \
23475 && test $in_tree_ld_is_elf = yes; then
23476 gcc_cv_ld_hidden=yes
23477 fi
23478 else
23479 gcc_cv_ld_hidden=yes
23480 if test x"$ld_is_gold" = xyes; then
23481 :
23482 elif echo "$ld_ver" | grep GNU > /dev/null; then
23483 if test 0"$ld_date" -lt 20020404; then
23484 if test -n "$ld_date"; then
23485 # If there was date string, but was earlier than 2002-04-04, fail
23486 gcc_cv_ld_hidden=no
23487 elif test -z "$ld_vers"; then
23488 # If there was no date string nor ld version number, something is wrong
23489 gcc_cv_ld_hidden=no
23490 else
23491 test -z "$ld_vers_patch" && ld_vers_patch=0
23492 if test "$ld_vers_major" -lt 2; then
23493 gcc_cv_ld_hidden=no
23494 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23495 gcc_cv_ld_hidden="no"
23496 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23497 gcc_cv_ld_hidden=no
23498 fi
23499 fi
23500 fi
23501 else
23502 case "${target}" in
23503 *-*-aix[789]*)
23504 gcc_cv_ld_hidden=yes
23505 ;;
23506 *-*-darwin*)
23507 # Darwin ld has some visibility support.
23508 gcc_cv_ld_hidden=yes
23509 ;;
23510 hppa64*-*-hpux* | ia64*-*-hpux*)
23511 gcc_cv_ld_hidden=yes
23512 ;;
23513 *-*-solaris2*)
23514 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23515 # .symbolic was only added in Solaris 9 12/02.
23516 gcc_cv_ld_hidden=yes
23517 ;;
23518 *)
23519 gcc_cv_ld_hidden=no
23520 ;;
23521 esac
23522 fi
23523 fi
23524 fi
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23526 $as_echo "$gcc_cv_ld_hidden" >&6; }
23527 libgcc_visibility=no
23528
23529
23530 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23531 libgcc_visibility=yes
23532
23533 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23534
23535 fi
23536
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23538 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23539 gcc_cv_ld_ro_rw_mix=unknown
23540 if test $in_tree_ld = yes ; then
23541 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 \
23542 && test $in_tree_ld_is_elf = yes; then
23543 gcc_cv_ld_ro_rw_mix=read-write
23544 fi
23545 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23546 echo '.section myfoosect, "a"' > conftest1.s
23547 echo '.section myfoosect, "aw"' > conftest2.s
23548 echo '.byte 1' >> conftest2.s
23549 echo '.section myfoosect, "a"' > conftest3.s
23550 echo '.byte 0' >> conftest3.s
23551 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23552 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23553 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23554 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23555 conftest2.o conftest3.o > /dev/null 2>&1; then
23556 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23557 | sed -e '/myfoosect/!d' -e N`
23558 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23559 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23560 gcc_cv_ld_ro_rw_mix=read-only
23561 else
23562 gcc_cv_ld_ro_rw_mix=read-write
23563 fi
23564 fi
23565 fi
23566 rm -f conftest.* conftest[123].*
23567 fi
23568 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23569
23570 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23571
23572 fi
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23574 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23575
23576 # Check whether --enable-initfini-array was given.
23577 if test "${enable_initfini_array+set}" = set; then :
23578 enableval=$enable_initfini_array;
23579 else
23580
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23582 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23583 if ${gcc_cv_initfini_array+:} false; then :
23584 $as_echo_n "(cached) " >&6
23585 else
23586 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23587 case "${target}" in
23588 ia64-*)
23589 if test "$cross_compiling" = yes; then :
23590 gcc_cv_initfini_array=no
23591 else
23592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23593 /* end confdefs.h. */
23594
23595 #ifndef __ELF__
23596 #error Not an ELF OS
23597 #endif
23598 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23599 if it can be used. */
23600 static int x = -1;
23601 int main (void) { return x; }
23602 int foo (void) { x = 0; }
23603 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23604
23605 _ACEOF
23606 if ac_fn_cxx_try_run "$LINENO"; then :
23607 gcc_cv_initfini_array=yes
23608 else
23609 gcc_cv_initfini_array=no
23610 fi
23611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23612 conftest.$ac_objext conftest.beam conftest.$ac_ext
23613 fi
23614 ;;
23615 *)
23616 gcc_cv_initfini_array=no
23617 if test $in_tree_ld = yes ; then
23618 if test "$gcc_cv_gld_major_version" -eq 2 \
23619 -a "$gcc_cv_gld_minor_version" -ge 22 \
23620 -o "$gcc_cv_gld_major_version" -gt 2 \
23621 && test $in_tree_ld_is_elf = yes; then
23622 gcc_cv_initfini_array=yes
23623 fi
23624 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23625 case $target:$gas in
23626 *:yes)
23627 sh_flags='"a"'
23628 sh_type='%progbits'
23629 ;;
23630 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23631 sh_flags='"a"'
23632 sh_type='@progbits'
23633 ;;
23634 sparc*-*-solaris2*:no)
23635 sh_flags='#alloc'
23636 sh_type='#progbits'
23637 sh_quote='"'
23638 ;;
23639 esac
23640 case "$target:$gnu_ld" in
23641 *:yes)
23642 cat > conftest.s <<EOF
23643 .section .dtors,$sh_flags,$sh_type
23644 .balign 4
23645 .byte 'A', 'A', 'A', 'A'
23646 .section .ctors,$sh_flags,$sh_type
23647 .balign 4
23648 .byte 'B', 'B', 'B', 'B'
23649 .section .fini_array.65530,$sh_flags,$sh_type
23650 .balign 4
23651 .byte 'C', 'C', 'C', 'C'
23652 .section .init_array.65530,$sh_flags,$sh_type
23653 .balign 4
23654 .byte 'D', 'D', 'D', 'D'
23655 .section .dtors.64528,$sh_flags,$sh_type
23656 .balign 4
23657 .byte 'E', 'E', 'E', 'E'
23658 .section .ctors.64528,$sh_flags,$sh_type
23659 .balign 4
23660 .byte 'F', 'F', 'F', 'F'
23661 .section .fini_array.01005,$sh_flags,$sh_type
23662 .balign 4
23663 .byte 'G', 'G', 'G', 'G'
23664 .section .init_array.01005,$sh_flags,$sh_type
23665 .balign 4
23666 .byte 'H', 'H', 'H', 'H'
23667 .text
23668 .globl _start
23669 _start:
23670 EOF
23671 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23672 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23673 && $gcc_cv_objdump -s -j .init_array conftest \
23674 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23675 && $gcc_cv_objdump -s -j .fini_array conftest \
23676 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23677 gcc_cv_initfini_array=yes
23678 fi
23679 ;;
23680 *-*-solaris2*:no)
23681 # When Solaris ld added constructor priority support, it was
23682 # decided to only handle .init_array.N/.fini_array.N since
23683 # there was no need for backwards compatibility with
23684 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23685 # sections with correct execution order resp. to
23686 # .init_array/.fini_array, while gld merges them into
23687 # .init_array/.fini_array.
23688 cat > conftest.s <<EOF
23689 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23690 .align 4
23691 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23692 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23693 .align 4
23694 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23695 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23696 .align 4
23697 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23698 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23699 .align 4
23700 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23701 .text
23702 .globl _start
23703 _start:
23704 EOF
23705 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23706 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23707 && $gcc_cv_objdump -s -j .init_array conftest \
23708 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
23709 && $gcc_cv_objdump -s -j .fini_array conftest \
23710 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
23711 gcc_cv_initfini_array=yes
23712 fi
23713 ;;
23714 esac
23715 rm -f conftest conftest.*
23716 fi
23717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23718 /* end confdefs.h. */
23719
23720 #ifndef __ELF__
23721 # error Not an ELF OS
23722 #endif
23723 #include <stdlib.h>
23724 #if defined __GLIBC_PREREQ
23725 # if __GLIBC_PREREQ (2, 4)
23726 # else
23727 # error GLIBC 2.4 required
23728 # endif
23729 #else
23730 # if defined __sun__ && defined __svr4__
23731 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23732 # else
23733 # error The C library not known to support .init_array/.fini_array
23734 # endif
23735 #endif
23736
23737 _ACEOF
23738 if ac_fn_cxx_try_cpp "$LINENO"; then :
23739
23740 else
23741 gcc_cv_initfini_array=no
23742 fi
23743 rm -f conftest.err conftest.i conftest.$ac_ext;;
23744 esac
23745 else
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23747 $as_echo_n "checking cross compile... guessing... " >&6; }
23748 gcc_cv_initfini_array=no
23749 fi
23750 fi
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23752 $as_echo "$gcc_cv_initfini_array" >&6; }
23753 enable_initfini_array=$gcc_cv_initfini_array
23754
23755 fi
23756
23757
23758 cat >>confdefs.h <<_ACEOF
23759 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23760 _ACEOF
23761
23762
23763
23764 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23766 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23767 if ${gcc_cv_as_leb128+:} false; then :
23768 $as_echo_n "(cached) " >&6
23769 else
23770 gcc_cv_as_leb128=no
23771 if test $in_tree_gas = yes; then
23772 if test $in_tree_gas_is_elf = yes \
23773 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23774 then gcc_cv_as_leb128=yes
23775 fi
23776 elif test x$gcc_cv_as != x; then
23777 $as_echo ' .data
23778 .uleb128 L2 - L1
23779 L1:
23780 .uleb128 1280
23781 .sleb128 -1010
23782 L2:' > conftest.s
23783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23785 (eval $ac_try) 2>&5
23786 ac_status=$?
23787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23788 test $ac_status = 0; }; }
23789 then
23790 # GAS versions before 2.11 do not support uleb128,
23791 # despite appearing to.
23792 # ??? There exists an elf-specific test that will crash
23793 # the assembler. Perhaps it's better to figure out whether
23794 # arbitrary sections are supported and try the test.
23795 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23796 if echo "$as_ver" | grep GNU > /dev/null; then
23797 as_vers=`echo $as_ver | sed -n \
23798 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23799 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23800 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23801 if test $as_major -eq 2 && test $as_minor -lt 11
23802 then :
23803 else gcc_cv_as_leb128=yes
23804 fi
23805 fi
23806 else
23807 echo "configure: failed program was" >&5
23808 cat conftest.s >&5
23809 fi
23810 rm -f conftest.o conftest.s
23811 fi
23812 fi
23813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23814 $as_echo "$gcc_cv_as_leb128" >&6; }
23815 if test $gcc_cv_as_leb128 = yes; then
23816
23817 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23818
23819 fi
23820 if test $gcc_cv_as_leb128 != yes; then
23821
23822 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23823
23824 fi
23825
23826 # Determine if an .eh_frame section is read-only.
23827 gcc_fn_eh_frame_ro () {
23828 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23829 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23830 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23831 }
23832
23833 # Check if we have assembler support for unwind directives.
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23835 $as_echo_n "checking assembler for cfi directives... " >&6; }
23836 if ${gcc_cv_as_cfi_directive+:} false; then :
23837 $as_echo_n "(cached) " >&6
23838 else
23839 gcc_cv_as_cfi_directive=no
23840 if test x$gcc_cv_as != x; then
23841 $as_echo ' .text
23842 .cfi_startproc
23843 .cfi_offset 0, 0
23844 .cfi_same_value 1
23845 .cfi_def_cfa 1, 2
23846 .cfi_escape 1, 2, 3, 4, 5
23847 .cfi_endproc' > conftest.s
23848 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23850 (eval $ac_try) 2>&5
23851 ac_status=$?
23852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23853 test $ac_status = 0; }; }
23854 then
23855 case "$target" in
23856 *-*-solaris*)
23857 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23858 # read-only and read-write sections, we need to make sure that the
23859 # assembler used emits read-write .eh_frame sections.
23860 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23861 gcc_cv_as_cfi_directive=yes
23862 elif test "x$gcc_cv_objdump" = x; then
23863 # No objdump, err on the side of caution.
23864 gcc_cv_as_cfi_directive=no
23865 else
23866 if test x$gas = xyes; then
23867 as_32_opt="--32"
23868 as_64_opt="--64"
23869 else
23870 as_32_opt="-m32"
23871 as_64_opt="-m64"
23872 fi
23873 case "$target" in
23874 sparc*-*-solaris2.*)
23875 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23876 if gcc_fn_eh_frame_ro $as_32_opt \
23877 || gcc_fn_eh_frame_ro $as_64_opt; then
23878 gcc_cv_as_cfi_directive=no
23879 else
23880 gcc_cv_as_cfi_directive=yes
23881 fi
23882 ;;
23883 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23884 # On Solaris/x86, make sure that GCC and assembler agree on using
23885 # read-only .eh_frame sections for 64-bit.
23886 if gcc_fn_eh_frame_ro $as_32_opt; then
23887 gcc_cv_as_cfi_directive=no
23888 elif gcc_fn_eh_frame_ro $as_64_opt; then
23889 gcc_cv_as_cfi_directive=yes
23890 else
23891 gcc_cv_as_cfi_directive=no
23892 fi
23893 ;;
23894 esac
23895 fi
23896 ;;
23897 *-*-*)
23898 gcc_cv_as_cfi_directive=yes
23899 ;;
23900 esac
23901 else
23902 echo "configure: failed program was" >&5
23903 cat conftest.s >&5
23904 fi
23905 rm -f conftest.o conftest.s
23906 fi
23907 fi
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23909 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23910
23911
23912 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23914 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23915 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23916 $as_echo_n "(cached) " >&6
23917 else
23918 gcc_cv_as_cfi_advance_working=no
23919 if test x$gcc_cv_as != x; then
23920 $as_echo ' .text
23921 .cfi_startproc
23922 .cfi_adjust_cfa_offset 64
23923 .skip 75040, 0
23924 .cfi_adjust_cfa_offset 128
23925 .cfi_endproc' > conftest.s
23926 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23928 (eval $ac_try) 2>&5
23929 ac_status=$?
23930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23931 test $ac_status = 0; }; }
23932 then
23933
23934 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23935 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23936 gcc_cv_as_cfi_advance_working=yes
23937 fi
23938
23939 else
23940 echo "configure: failed program was" >&5
23941 cat conftest.s >&5
23942 fi
23943 rm -f conftest.o conftest.s
23944 fi
23945 fi
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23947 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23948
23949
23950 else
23951 # no objdump, err on the side of caution
23952 gcc_cv_as_cfi_advance_working=no
23953 fi
23954
23955
23956 cat >>confdefs.h <<_ACEOF
23957 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23958 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23959 _ACEOF
23960
23961
23962
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23964 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23965 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23966 $as_echo_n "(cached) " >&6
23967 else
23968 gcc_cv_as_cfi_personality_directive=no
23969 if test x$gcc_cv_as != x; then
23970 $as_echo ' .text
23971 .cfi_startproc
23972 .cfi_personality 0, symbol
23973 .cfi_endproc' > conftest.s
23974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23976 (eval $ac_try) 2>&5
23977 ac_status=$?
23978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23979 test $ac_status = 0; }; }
23980 then
23981 gcc_cv_as_cfi_personality_directive=yes
23982 else
23983 echo "configure: failed program was" >&5
23984 cat conftest.s >&5
23985 fi
23986 rm -f conftest.o conftest.s
23987 fi
23988 fi
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23990 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23991
23992
23993
23994 cat >>confdefs.h <<_ACEOF
23995 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23996 _ACEOF
23997
23998
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24000 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24001 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24002 $as_echo_n "(cached) " >&6
24003 else
24004 gcc_cv_as_cfi_sections_directive=no
24005 if test x$gcc_cv_as != x; then
24006 $as_echo ' .text
24007 .cfi_sections .debug_frame, .eh_frame
24008 .cfi_startproc
24009 .cfi_endproc' > conftest.s
24010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24012 (eval $ac_try) 2>&5
24013 ac_status=$?
24014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24015 test $ac_status = 0; }; }
24016 then
24017 case $target_os in
24018 win32 | pe | cygwin* | mingw32*)
24019 # Need to check that we generated the correct relocation for the
24020 # .debug_frame section. This was fixed for binutils 2.21.
24021 gcc_cv_as_cfi_sections_directive=no
24022 if test "x$gcc_cv_objdump" != x; then
24023 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24024 grep secrel > /dev/null; then
24025 gcc_cv_as_cfi_sections_directive=yes
24026 fi
24027 fi
24028 ;;
24029 *)
24030 gcc_cv_as_cfi_sections_directive=yes
24031 ;;
24032 esac
24033 else
24034 echo "configure: failed program was" >&5
24035 cat conftest.s >&5
24036 fi
24037 rm -f conftest.o conftest.s
24038 fi
24039 fi
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24041 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24042
24043
24044
24045
24046 cat >>confdefs.h <<_ACEOF
24047 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24048 _ACEOF
24049
24050
24051 # GAS versions up to and including 2.11.0 may mis-optimize
24052 # .eh_frame data.
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24054 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24055 if ${gcc_cv_as_eh_frame+:} false; then :
24056 $as_echo_n "(cached) " >&6
24057 else
24058 gcc_cv_as_eh_frame=no
24059 if test $in_tree_gas = yes; then
24060 if test $in_tree_gas_is_elf = yes \
24061 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24062 then gcc_cv_as_eh_frame=yes
24063 fi
24064 elif test x$gcc_cv_as != x; then
24065 $as_echo ' .text
24066 .LFB1:
24067 .4byte 0
24068 .L1:
24069 .4byte 0
24070 .LFE1:
24071 .section .eh_frame,"aw",@progbits
24072 __FRAME_BEGIN__:
24073 .4byte .LECIE1-.LSCIE1
24074 .LSCIE1:
24075 .4byte 0x0
24076 .byte 0x1
24077 .ascii "z\0"
24078 .byte 0x1
24079 .byte 0x78
24080 .byte 0x1a
24081 .byte 0x0
24082 .byte 0x4
24083 .4byte 1
24084 .p2align 1
24085 .LECIE1:
24086 .LSFDE1:
24087 .4byte .LEFDE1-.LASFDE1
24088 .LASFDE1:
24089 .4byte .LASFDE1-__FRAME_BEGIN__
24090 .4byte .LFB1
24091 .4byte .LFE1-.LFB1
24092 .byte 0x4
24093 .4byte .LFE1-.LFB1
24094 .byte 0x4
24095 .4byte .L1-.LFB1
24096 .LEFDE1:' > conftest.s
24097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24099 (eval $ac_try) 2>&5
24100 ac_status=$?
24101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24102 test $ac_status = 0; }; }
24103 then
24104 cat > conftest.lit <<EOF
24105 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24106 0010 01000000 12000000 18000000 00000000 ................
24107 0020 08000000 04080000 0044 .........D
24108 EOF
24109 cat > conftest.big <<EOF
24110 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24111 0010 00000001 00000012 00000018 00000000 ................
24112 0020 00000008 04000000 0844 .........D
24113 EOF
24114 # If the assembler didn't choke, and we can objdump,
24115 # and we got the correct data, then succeed.
24116 # The text in the here-document typically retains its unix-style line
24117 # endings, while the output of objdump will use host line endings.
24118 # Therefore, use diff -b for the comparisons.
24119 if test x$gcc_cv_objdump != x \
24120 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24121 | tail -3 > conftest.got \
24122 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24123 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24124 then
24125 gcc_cv_as_eh_frame=yes
24126 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24128 (eval $ac_try) 2>&5
24129 ac_status=$?
24130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24131 test $ac_status = 0; }; }; then
24132 gcc_cv_as_eh_frame=buggy
24133 else
24134 # Uh oh, what do we do now?
24135 gcc_cv_as_eh_frame=no
24136 fi
24137 else
24138 echo "configure: failed program was" >&5
24139 cat conftest.s >&5
24140 fi
24141 rm -f conftest.o conftest.s
24142 fi
24143 fi
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24145 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24146
24147
24148
24149 if test $gcc_cv_as_eh_frame = buggy; then
24150
24151 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24152
24153 fi
24154
24155 # Test if the assembler supports the section flag 'e' or #exclude for
24156 # specifying an excluded section.
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24158 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24159 if ${gcc_cv_as_section_exclude_e+:} false; then :
24160 $as_echo_n "(cached) " >&6
24161 else
24162 gcc_cv_as_section_exclude_e=no
24163 if test $in_tree_gas = yes; then
24164 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24165 then gcc_cv_as_section_exclude_e=yes
24166 fi
24167 elif test x$gcc_cv_as != x; then
24168 $as_echo '.section foo1,"e"
24169 .byte 0,0,0,0' > conftest.s
24170 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24172 (eval $ac_try) 2>&5
24173 ac_status=$?
24174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24175 test $ac_status = 0; }; }
24176 then
24177 gcc_cv_as_section_exclude_e=yes
24178 else
24179 echo "configure: failed program was" >&5
24180 cat conftest.s >&5
24181 fi
24182 rm -f conftest.o conftest.s
24183 fi
24184 fi
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24186 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24187
24188
24189 if test $gcc_cv_as_section_exclude_e = no; then
24190 case "${target}" in
24191 # Solaris as uses #exclude instead.
24192 *-*-solaris2*)
24193 case "${target}" in
24194 sparc*-*-solaris2*)
24195 conftest_s='.section "foo1", #exclude'
24196 ;;
24197 i?86-*-solaris2* | x86_64-*-solaris2*)
24198 conftest_s='.section foo1, #exclude'
24199 ;;
24200 esac
24201 ;;
24202 esac
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24204 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24205 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24206 $as_echo_n "(cached) " >&6
24207 else
24208 gcc_cv_as_section_exclude_hash=no
24209 if test x$gcc_cv_as != x; then
24210 $as_echo "$conftest_s
24211 .byte 0,0,0,0" > conftest.s
24212 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24214 (eval $ac_try) 2>&5
24215 ac_status=$?
24216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24217 test $ac_status = 0; }; }
24218 then
24219 gcc_cv_as_section_exclude_hash=yes
24220 else
24221 echo "configure: failed program was" >&5
24222 cat conftest.s >&5
24223 fi
24224 rm -f conftest.o conftest.s
24225 fi
24226 fi
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24228 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24229
24230
24231 fi
24232
24233 cat >>confdefs.h <<_ACEOF
24234 #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`
24235 _ACEOF
24236
24237
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24239 $as_echo_n "checking assembler for section merging support... " >&6; }
24240 if ${gcc_cv_as_shf_merge+:} false; then :
24241 $as_echo_n "(cached) " >&6
24242 else
24243 gcc_cv_as_shf_merge=no
24244 if test $in_tree_gas = yes; then
24245 if test $in_tree_gas_is_elf = yes \
24246 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24247 then gcc_cv_as_shf_merge=yes
24248 fi
24249 elif test x$gcc_cv_as != x; then
24250 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24251 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24253 (eval $ac_try) 2>&5
24254 ac_status=$?
24255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24256 test $ac_status = 0; }; }
24257 then
24258 gcc_cv_as_shf_merge=yes
24259 else
24260 echo "configure: failed program was" >&5
24261 cat conftest.s >&5
24262 fi
24263 rm -f conftest.o conftest.s
24264 fi
24265 fi
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24267 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24268
24269
24270 if test $gcc_cv_as_shf_merge = no; then
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24272 $as_echo_n "checking assembler for section merging support... " >&6; }
24273 if ${gcc_cv_as_shf_merge+:} false; then :
24274 $as_echo_n "(cached) " >&6
24275 else
24276 gcc_cv_as_shf_merge=no
24277 if test $in_tree_gas = yes; then
24278 if test $in_tree_gas_is_elf = yes \
24279 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24280 then gcc_cv_as_shf_merge=yes
24281 fi
24282 elif test x$gcc_cv_as != x; then
24283 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24284 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24286 (eval $ac_try) 2>&5
24287 ac_status=$?
24288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24289 test $ac_status = 0; }; }
24290 then
24291 gcc_cv_as_shf_merge=yes
24292 else
24293 echo "configure: failed program was" >&5
24294 cat conftest.s >&5
24295 fi
24296 rm -f conftest.o conftest.s
24297 fi
24298 fi
24299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24300 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24301
24302
24303 fi
24304
24305 cat >>confdefs.h <<_ACEOF
24306 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24307 _ACEOF
24308
24309
24310 gcc_cv_ld_aligned_shf_merge=yes
24311 case "$target" in
24312 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24313 # alignment > 1.
24314 sparc*-*-solaris2.11*)
24315 if test x"$gnu_ld" = xno \
24316 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24317 gcc_cv_ld_aligned_shf_merge=no
24318 fi
24319 ;;
24320 esac
24321
24322 cat >>confdefs.h <<_ACEOF
24323 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24324 _ACEOF
24325
24326
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24328 $as_echo_n "checking assembler for stabs directive... " >&6; }
24329 if ${gcc_cv_as_stabs_directive+:} false; then :
24330 $as_echo_n "(cached) " >&6
24331 else
24332 gcc_cv_as_stabs_directive=no
24333 if test x$gcc_cv_as != x; then
24334 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24335 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24337 (eval $ac_try) 2>&5
24338 ac_status=$?
24339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24340 test $ac_status = 0; }; }
24341 then
24342 gcc_cv_as_stabs_directive=yes
24343 else
24344 echo "configure: failed program was" >&5
24345 cat conftest.s >&5
24346 fi
24347 rm -f conftest.o conftest.s
24348 fi
24349 fi
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24351 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24352 if test $gcc_cv_as_stabs_directive = yes; then
24353
24354 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24355
24356 fi
24357
24358
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24360 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24361 if ${gcc_cv_as_comdat_group+:} false; then :
24362 $as_echo_n "(cached) " >&6
24363 else
24364 gcc_cv_as_comdat_group=no
24365 if test $in_tree_gas = yes; then
24366 if test $in_tree_gas_is_elf = yes \
24367 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24368 then gcc_cv_as_comdat_group=yes
24369 fi
24370 elif test x$gcc_cv_as != x; then
24371 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24372 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24374 (eval $ac_try) 2>&5
24375 ac_status=$?
24376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24377 test $ac_status = 0; }; }
24378 then
24379 gcc_cv_as_comdat_group=yes
24380 else
24381 echo "configure: failed program was" >&5
24382 cat conftest.s >&5
24383 fi
24384 rm -f conftest.o conftest.s
24385 fi
24386 fi
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24388 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24389
24390
24391 if test $gcc_cv_as_comdat_group = yes; then
24392 gcc_cv_as_comdat_group_percent=no
24393 gcc_cv_as_comdat_group_group=no
24394 else
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24396 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24397 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24398 $as_echo_n "(cached) " >&6
24399 else
24400 gcc_cv_as_comdat_group_percent=no
24401 if test $in_tree_gas = yes; then
24402 if test $in_tree_gas_is_elf = yes \
24403 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24404 then gcc_cv_as_comdat_group_percent=yes
24405 fi
24406 elif test x$gcc_cv_as != x; then
24407 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24408 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24410 (eval $ac_try) 2>&5
24411 ac_status=$?
24412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24413 test $ac_status = 0; }; }
24414 then
24415 gcc_cv_as_comdat_group_percent=yes
24416 else
24417 echo "configure: failed program was" >&5
24418 cat conftest.s >&5
24419 fi
24420 rm -f conftest.o conftest.s
24421 fi
24422 fi
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24424 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24425
24426
24427 if test $gcc_cv_as_comdat_group_percent = yes; then
24428 gcc_cv_as_comdat_group_group=no
24429 else
24430 case "${target}" in
24431 # Sun as uses a completely different syntax.
24432 *-*-solaris2*)
24433 case "${target}" in
24434 sparc*-*-solaris2*)
24435 conftest_s='
24436 .group foo,".text%foo",#comdat
24437 .section ".text%foo", #alloc,#execinstr,#progbits
24438 .globl foo
24439 foo:
24440 '
24441 ;;
24442 i?86-*-solaris2* | x86_64-*-solaris2*)
24443 conftest_s='
24444 .group foo,.text%foo,#comdat
24445 .section .text%foo, "ax", @progbits
24446 .globl foo
24447 foo:
24448 '
24449 ;;
24450 esac
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24452 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24453 if ${gcc_cv_as_comdat_group_group+:} false; then :
24454 $as_echo_n "(cached) " >&6
24455 else
24456 gcc_cv_as_comdat_group_group=no
24457 if test x$gcc_cv_as != x; then
24458 $as_echo "$conftest_s" > conftest.s
24459 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24461 (eval $ac_try) 2>&5
24462 ac_status=$?
24463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24464 test $ac_status = 0; }; }
24465 then
24466 gcc_cv_as_comdat_group_group=yes
24467 else
24468 echo "configure: failed program was" >&5
24469 cat conftest.s >&5
24470 fi
24471 rm -f conftest.o conftest.s
24472 fi
24473 fi
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24475 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24476
24477
24478 ;;
24479 esac
24480 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24481 gcc_cv_as_comdat_group_group=no
24482 fi
24483 fi
24484 fi
24485 if test x"$ld_is_gold" = xyes; then
24486 comdat_group=yes
24487 elif test $in_tree_ld = yes ; then
24488 comdat_group=no
24489 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 \
24490 && test $in_tree_ld_is_elf = yes; then
24491 comdat_group=yes
24492 fi
24493 elif echo "$ld_ver" | grep GNU > /dev/null; then
24494 comdat_group=yes
24495 if test 0"$ld_date" -lt 20050308; then
24496 if test -n "$ld_date"; then
24497 # If there was date string, but was earlier than 2005-03-08, fail
24498 comdat_group=no
24499 elif test "$ld_vers_major" -lt 2; then
24500 comdat_group=no
24501 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24502 comdat_group=no
24503 fi
24504 fi
24505 else
24506 case "${target}" in
24507 *-*-solaris2.1[1-9]*)
24508 comdat_group=no
24509 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24510 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24511 # version 1.688.
24512 #
24513 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24514 # least ld version 1.2267.
24515 if test "$ld_vers_major" -gt 1; then
24516 comdat_group=yes
24517 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24518 comdat_group=yes
24519 elif test "$ld_vers_minor" -ge 2267; then
24520 comdat_group=yes
24521 fi
24522 ;;
24523 *)
24524 # Assume linkers other than GNU ld don't support COMDAT group.
24525 comdat_group=no
24526 ;;
24527 esac
24528 fi
24529 # Allow overriding the automatic COMDAT group tests above.
24530 # Check whether --enable-comdat was given.
24531 if test "${enable_comdat+set}" = set; then :
24532 enableval=$enable_comdat; comdat_group="$enable_comdat"
24533 fi
24534
24535 if test $comdat_group = no; then
24536 gcc_cv_as_comdat_group=no
24537 gcc_cv_as_comdat_group_percent=no
24538 gcc_cv_as_comdat_group_group=no
24539 fi
24540
24541 cat >>confdefs.h <<_ACEOF
24542 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24543 || test $gcc_cv_as_comdat_group_percent = yes \
24544 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24545 _ACEOF
24546
24547
24548 # Restrict this test to Solaris/x86: other targets define this statically.
24549 case "${target}" in
24550 i?86-*-solaris2* | x86_64-*-solaris2*)
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24552 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24553 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24554 hidden_linkonce=yes
24555 else
24556 case "${target}" in
24557 # Full support for hidden thunks in linkonce sections only appeared in
24558 # Solaris 11/OpenSolaris.
24559 *-*-solaris2.1[1-9]*)
24560 hidden_linkonce=yes
24561 ;;
24562 *)
24563 hidden_linkonce=no
24564 ;;
24565 esac
24566 fi
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24568 $as_echo "$hidden_linkonce" >&6; }
24569
24570 cat >>confdefs.h <<_ACEOF
24571 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24572 _ACEOF
24573
24574 ;;
24575 esac
24576
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24578 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24579 if ${gcc_cv_as_is_stmt+:} false; then :
24580 $as_echo_n "(cached) " >&6
24581 else
24582 gcc_cv_as_is_stmt=no
24583 if test $in_tree_gas = yes; then
24584 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24585 then gcc_cv_as_is_stmt=yes
24586 fi
24587 elif test x$gcc_cv_as != x; then
24588 $as_echo ' .text
24589 .file 1 "conf.c"
24590 .loc 1 1 0 is_stmt 1' > conftest.s
24591 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24593 (eval $ac_try) 2>&5
24594 ac_status=$?
24595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24596 test $ac_status = 0; }; }
24597 then
24598 gcc_cv_as_is_stmt=yes
24599 else
24600 echo "configure: failed program was" >&5
24601 cat conftest.s >&5
24602 fi
24603 rm -f conftest.o conftest.s
24604 fi
24605 fi
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24607 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24608 if test $gcc_cv_as_is_stmt = yes; then
24609
24610 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24611
24612 fi
24613
24614
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24616 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24617 if ${gcc_cv_as_discriminator+:} false; then :
24618 $as_echo_n "(cached) " >&6
24619 else
24620 gcc_cv_as_discriminator=no
24621 if test $in_tree_gas = yes; then
24622 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24623 then gcc_cv_as_discriminator=yes
24624 fi
24625 elif test x$gcc_cv_as != x; then
24626 $as_echo ' .text
24627 .file 1 "conf.c"
24628 .loc 1 1 0 discriminator 1' > conftest.s
24629 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24631 (eval $ac_try) 2>&5
24632 ac_status=$?
24633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24634 test $ac_status = 0; }; }
24635 then
24636 gcc_cv_as_discriminator=yes
24637 else
24638 echo "configure: failed program was" >&5
24639 cat conftest.s >&5
24640 fi
24641 rm -f conftest.o conftest.s
24642 fi
24643 fi
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24645 $as_echo "$gcc_cv_as_discriminator" >&6; }
24646 if test $gcc_cv_as_discriminator = yes; then
24647
24648 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24649
24650 fi
24651
24652
24653 # Catch the newlib flag of the same name so we can gate GCC features on it.
24654 # Check whether --enable-newlib-nano-formatted-io was given.
24655 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24656 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
24657 yes|no)
24658 ;;
24659 *)
24660 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24661 ;;
24662 esac
24663 fi
24664
24665
24666 # Thread-local storage - the check is heavily parameterized.
24667 conftest_s=
24668 tls_first_major=
24669 tls_first_minor=
24670 tls_as_opt=
24671 case "$target" in
24672 alpha*-*-*)
24673 conftest_s='
24674 .section ".tdata","awT",@progbits
24675 foo: .long 25
24676 .text
24677 ldq $27,__tls_get_addr($29) !literal!1
24678 lda $16,foo($29) !tlsgd!1
24679 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24680 ldq $27,__tls_get_addr($29) !literal!2
24681 lda $16,foo($29) !tlsldm!2
24682 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24683 ldq $1,foo($29) !gotdtprel
24684 ldah $2,foo($29) !dtprelhi
24685 lda $3,foo($2) !dtprello
24686 lda $4,foo($29) !dtprel
24687 ldq $1,foo($29) !gottprel
24688 ldah $2,foo($29) !tprelhi
24689 lda $3,foo($2) !tprello
24690 lda $4,foo($29) !tprel'
24691 tls_first_major=2
24692 tls_first_minor=13
24693 tls_as_opt=--fatal-warnings
24694 ;;
24695 arc*-*-*)
24696 conftest_s='
24697 add_s r0,r0, @foo@tpoff'
24698 tls_first_major=2
24699 tls_first_minor=23
24700 ;;
24701 cris-*-*|crisv32-*-*)
24702 conftest_s='
24703 .section ".tdata","awT",@progbits
24704 x: .long 25
24705 .text
24706 move.d x:IE,$r10
24707 nop'
24708 tls_first_major=2
24709 tls_first_minor=20
24710 tls_as_opt=--fatal-warnings
24711 ;;
24712 frv*-*-*)
24713 conftest_s='
24714 .section ".tdata","awT",@progbits
24715 x: .long 25
24716 .text
24717 call #gettlsoff(x)'
24718 tls_first_major=2
24719 tls_first_minor=14
24720 ;;
24721 hppa*-*-linux*)
24722 conftest_s='
24723 t1: .reg %r20
24724 t2: .reg %r21
24725 gp: .reg %r19
24726 .section ".tdata","awT",@progbits
24727 foo: .long 25
24728 .text
24729 .align 4
24730 addil LT%foo-$tls_gdidx$,gp
24731 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24732 b __tls_get_addr
24733 nop
24734 addil LT%foo-$tls_ldidx$,gp
24735 b __tls_get_addr
24736 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24737 addil LR%foo-$tls_dtpoff$,%ret0
24738 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24739 mfctl %cr27,%t1
24740 addil LT%foo-$tls_ieoff$,gp
24741 ldw RT%foo-$tls_ieoff$(%r1),%t2
24742 add %t1,%t2,%t3
24743 mfctl %cr27,%t1
24744 addil LR%foo-$tls_leoff$,%t1
24745 ldo RR%foo-$tls_leoff$(%r1),%t2'
24746 tls_first_major=2
24747 tls_first_minor=15
24748 tls_as_opt=--fatal-warnings
24749 ;;
24750 arm*-*-*)
24751 conftest_s='
24752 .section ".tdata","awT",%progbits
24753 foo: .long 25
24754 .text
24755 .word foo(gottpoff)
24756 .word foo(tpoff)
24757 .word foo(tlsgd)
24758 .word foo(tlsldm)
24759 .word foo(tlsldo)'
24760 tls_first_major=2
24761 tls_first_minor=17
24762 ;;
24763 i[34567]86-*-* | x86_64-*-*)
24764 case "$target" in
24765 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
24766 on_solaris=yes
24767 ;;
24768 *)
24769 on_solaris=no
24770 ;;
24771 esac
24772 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24773 conftest_s='
24774 .section .tdata,"awt",@progbits'
24775 tls_first_major=0
24776 tls_first_minor=0
24777 tls_section_flag=t
24778
24779 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24780
24781 else
24782 conftest_s='
24783 .section ".tdata","awT",@progbits'
24784 tls_first_major=2
24785 tls_first_minor=14
24786 tls_section_flag=T
24787 tls_as_opt="--fatal-warnings"
24788 fi
24789 case "$target" in
24790 i[34567]86-*-*)
24791 if test x$on_solaris = xyes; then
24792 case $gas_flag in
24793 yes) tls_as_opt="$tls_as_opt --32" ;;
24794 esac
24795 fi
24796 conftest_s="$conftest_s
24797 foo: .long 25
24798 .text
24799 movl %gs:0, %eax
24800 leal foo@tlsgd(,%ebx,1), %eax
24801 leal foo@tlsldm(%ebx), %eax
24802 leal foo@dtpoff(%eax), %edx
24803 movl foo@gottpoff(%ebx), %eax
24804 subl foo@gottpoff(%ebx), %eax
24805 addl foo@gotntpoff(%ebx), %eax
24806 movl foo@indntpoff, %eax
24807 movl \$foo@tpoff, %eax
24808 subl \$foo@tpoff, %eax
24809 leal foo@ntpoff(%ecx), %eax"
24810 ;;
24811 x86_64-*-*)
24812 if test x$on_solaris = xyes; then
24813 case $gas_flag in
24814 yes) tls_as_opt="$tls_as_opt --64" ;;
24815 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24816 esac
24817 fi
24818 conftest_s="$conftest_s
24819 foo: .long 25
24820 .text
24821 movq %fs:0, %rax
24822 leaq foo@tlsgd(%rip), %rdi
24823 leaq foo@tlsld(%rip), %rdi
24824 leaq foo@dtpoff(%rax), %rdx
24825 movq foo@gottpoff(%rip), %rax
24826 movq \$foo@tpoff, %rax"
24827 ;;
24828 esac
24829 ;;
24830 ia64-*-*)
24831 conftest_s='
24832 .section ".tdata","awT",@progbits
24833 foo: data8 25
24834 .text
24835 addl r16 = @ltoff(@dtpmod(foo#)), gp
24836 addl r17 = @ltoff(@dtprel(foo#)), gp
24837 addl r18 = @ltoff(@tprel(foo#)), gp
24838 addl r19 = @dtprel(foo#), gp
24839 adds r21 = @dtprel(foo#), r13
24840 movl r23 = @dtprel(foo#)
24841 addl r20 = @tprel(foo#), gp
24842 adds r22 = @tprel(foo#), r13
24843 movl r24 = @tprel(foo#)'
24844 tls_first_major=2
24845 tls_first_minor=13
24846 tls_as_opt=--fatal-warnings
24847 ;;
24848 microblaze*-*-*)
24849 conftest_s='
24850 .section .tdata,"awT",@progbits
24851 x:
24852 .word 2
24853 .text
24854 addik r5,r20,x@TLSGD
24855 addik r5,r20,x@TLSLDM'
24856 tls_first_major=2
24857 tls_first_minor=20
24858 tls_as_opt='--fatal-warnings'
24859 ;;
24860 mips*-*-*)
24861 conftest_s='
24862 .section .tdata,"awT",@progbits
24863 x:
24864 .word 2
24865 .text
24866 addiu $4, $28, %tlsgd(x)
24867 addiu $4, $28, %tlsldm(x)
24868 lui $4, %dtprel_hi(x)
24869 addiu $4, $4, %dtprel_lo(x)
24870 lw $4, %gottprel(x)($28)
24871 lui $4, %tprel_hi(x)
24872 addiu $4, $4, %tprel_lo(x)'
24873 tls_first_major=2
24874 tls_first_minor=16
24875 tls_as_opt='-32 --fatal-warnings'
24876 ;;
24877 m68k-*-*)
24878 conftest_s='
24879 .section .tdata,"awT",@progbits
24880 x:
24881 .word 2
24882 .text
24883 foo:
24884 move.l x@TLSGD(%a5),%a0
24885 move.l x@TLSLDM(%a5),%a0
24886 move.l x@TLSLDO(%a5),%a0
24887 move.l x@TLSIE(%a5),%a0
24888 move.l x@TLSLE(%a5),%a0'
24889 tls_first_major=2
24890 tls_first_minor=19
24891 tls_as_opt='--fatal-warnings'
24892 ;;
24893 nios2-*-*)
24894 conftest_s='
24895 .section ".tdata","awT",@progbits'
24896 tls_first_major=2
24897 tls_first_minor=23
24898 tls_as_opt="--fatal-warnings"
24899 ;;
24900 aarch64*-*-*)
24901 conftest_s='
24902 .section ".tdata","awT",%progbits
24903 foo: .long 25
24904 .text
24905 adrp x0, :tlsgd:x
24906 add x0, x0, #:tlsgd_lo12:x
24907 bl __tls_get_addr
24908 nop'
24909 tls_first_major=2
24910 tls_first_minor=20
24911 tls_as_opt='--fatal-warnings'
24912 ;;
24913 or1k*-*-*)
24914 conftest_s='
24915 .section ".tdata","awT",@progbits
24916 foo: .long 25
24917 .text
24918 l.movhi r3, tpoffha(foo)
24919 l.add r3, r3, r10
24920 l.lwz r4, tpofflo(foo)(r3)'
24921 tls_first_major=2
24922 tls_first_minor=30
24923 tls_as_opt=--fatal-warnings
24924 ;;
24925 powerpc-ibm-aix*)
24926 conftest_s='
24927 .extern __get_tpointer
24928 .toc
24929 LC..1:
24930 .tc a[TC],a[TL]@le
24931 .csect .text[PR]
24932 .tlstest:
24933 lwz 9,LC..1(2)
24934 bla __get_tpointer
24935 lwzx 3,9,3
24936 .globl a
24937 .csect a[TL],4
24938 a:
24939 .space 4'
24940 tls_first_major=0
24941 tls_first_minor=0
24942 ;;
24943 powerpc64*-*-*)
24944 conftest_s='
24945 .section ".tdata","awT",@progbits
24946 .align 3
24947 ld0: .space 8
24948 ld1: .space 8
24949 x1: .space 8
24950 x2: .space 8
24951 x3: .space 8
24952 .text
24953 addi 3,2,ld0@got@tlsgd
24954 bl .__tls_get_addr
24955 nop
24956 addi 3,2,ld1@toc
24957 bl .__tls_get_addr
24958 nop
24959 addi 3,2,x1@got@tlsld
24960 bl .__tls_get_addr
24961 nop
24962 addi 9,3,x1@dtprel
24963 bl .__tls_get_addr
24964 nop
24965 addis 9,3,x2@dtprel@ha
24966 addi 9,9,x2@dtprel@l
24967 bl .__tls_get_addr
24968 nop
24969 ld 9,x3@got@dtprel(2)
24970 add 9,9,3
24971 bl .__tls_get_addr
24972 nop'
24973 tls_first_major=2
24974 tls_first_minor=14
24975 tls_as_opt="-a64 --fatal-warnings"
24976 ;;
24977 powerpc*-*-*)
24978 conftest_s='
24979 .section ".tdata","awT",@progbits
24980 .align 2
24981 ld0: .space 4
24982 ld1: .space 4
24983 x1: .space 4
24984 x2: .space 4
24985 x3: .space 4
24986 .text
24987 addi 3,31,ld0@got@tlsgd
24988 bl __tls_get_addr
24989 addi 3,31,x1@got@tlsld
24990 bl __tls_get_addr
24991 addi 9,3,x1@dtprel
24992 addis 9,3,x2@dtprel@ha
24993 addi 9,9,x2@dtprel@l
24994 lwz 9,x3@got@tprel(31)
24995 add 9,9,x@tls
24996 addi 9,2,x1@tprel
24997 addis 9,2,x2@tprel@ha
24998 addi 9,9,x2@tprel@l'
24999 tls_first_major=2
25000 tls_first_minor=14
25001 tls_as_opt="-a32 --fatal-warnings"
25002 ;;
25003 riscv*-*-*)
25004 conftest_s='
25005 .section .tdata,"awT",@progbits
25006 x: .word 2
25007 .text
25008 la.tls.gd a0,x
25009 call __tls_get_addr'
25010 tls_first_major=2
25011 tls_first_minor=21
25012 tls_as_opt='--fatal-warnings'
25013 ;;
25014 s390-*-*)
25015 conftest_s='
25016 .section ".tdata","awT",@progbits
25017 foo: .long 25
25018 .text
25019 .long foo@TLSGD
25020 .long foo@TLSLDM
25021 .long foo@DTPOFF
25022 .long foo@NTPOFF
25023 .long foo@GOTNTPOFF
25024 .long foo@INDNTPOFF
25025 l %r1,foo@GOTNTPOFF(%r12)
25026 l %r1,0(%r1):tls_load:foo
25027 bas %r14,0(%r1,%r13):tls_gdcall:foo
25028 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25029 tls_first_major=2
25030 tls_first_minor=14
25031 tls_as_opt="-m31 --fatal-warnings"
25032 ;;
25033 s390x-*-*)
25034 conftest_s='
25035 .section ".tdata","awT",@progbits
25036 foo: .long 25
25037 .text
25038 .quad foo@TLSGD
25039 .quad foo@TLSLDM
25040 .quad foo@DTPOFF
25041 .quad foo@NTPOFF
25042 .quad foo@GOTNTPOFF
25043 lg %r1,foo@GOTNTPOFF(%r12)
25044 larl %r1,foo@INDNTPOFF
25045 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25046 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25047 tls_first_major=2
25048 tls_first_minor=14
25049 tls_as_opt="-m64 -Aesame --fatal-warnings"
25050 ;;
25051 sh-*-* | sh[123456789lbe]*-*-*)
25052 conftest_s='
25053 .section ".tdata","awT",@progbits
25054 foo: .long 25
25055 .text
25056 .long foo@TLSGD
25057 .long foo@TLSLDM
25058 .long foo@DTPOFF
25059 .long foo@GOTTPOFF
25060 .long foo@TPOFF'
25061 tls_first_major=2
25062 tls_first_minor=13
25063 tls_as_opt=--fatal-warnings
25064 ;;
25065 sparc*-*-*)
25066 case "$target" in
25067 sparc*-sun-solaris2.*)
25068 on_solaris=yes
25069 ;;
25070 *)
25071 on_solaris=no
25072 ;;
25073 esac
25074 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25075 conftest_s='
25076 .section ".tdata",#alloc,#write,#tls'
25077 tls_first_major=0
25078 tls_first_minor=0
25079 else
25080 conftest_s='
25081 .section ".tdata","awT",@progbits'
25082 tls_first_major=2
25083 tls_first_minor=14
25084 tls_as_opt="-32 --fatal-warnings"
25085 fi
25086 conftest_s="$conftest_s
25087 foo: .long 25
25088 .text
25089 sethi %tgd_hi22(foo), %o0
25090 add %o0, %tgd_lo10(foo), %o1
25091 add %l7, %o1, %o0, %tgd_add(foo)
25092 call __tls_get_addr, %tgd_call(foo)
25093 sethi %tldm_hi22(foo), %l1
25094 add %l1, %tldm_lo10(foo), %l2
25095 add %l7, %l2, %o0, %tldm_add(foo)
25096 call __tls_get_addr, %tldm_call(foo)
25097 sethi %tldo_hix22(foo), %l3
25098 xor %l3, %tldo_lox10(foo), %l4
25099 add %o0, %l4, %l5, %tldo_add(foo)
25100 sethi %tie_hi22(foo), %o3
25101 add %o3, %tie_lo10(foo), %o3
25102 ld [%l7 + %o3], %o2, %tie_ld(foo)
25103 add %g7, %o2, %o4, %tie_add(foo)
25104 sethi %tle_hix22(foo), %l1
25105 xor %l1, %tle_lox10(foo), %o5
25106 ld [%g7 + %o5], %o1"
25107 ;;
25108 tilepro*-*-*)
25109 conftest_s='
25110 .section ".tdata","awT",@progbits
25111 foo: .long 25
25112 .text
25113 addli r0, zero, tls_gd(foo)
25114 auli r0, zero, tls_gd_ha16(foo)
25115 addli r0, r0, tls_gd_lo16(foo)
25116 jal __tls_get_addr
25117 addli r0, zero, tls_ie(foo)
25118 auli r0, r0, tls_ie_ha16(foo)
25119 addli r0, r0, tls_ie_lo16(foo)'
25120 tls_first_major=2
25121 tls_first_minor=22
25122 tls_as_opt="--fatal-warnings"
25123 ;;
25124 tilegx*-*-*)
25125 conftest_s='
25126 .section ".tdata","awT",@progbits
25127 foo: .long 25
25128 .text
25129 shl16insli r0, zero, hw0_last_tls_gd(foo)
25130 shl16insli r0, zero, hw1_last_tls_gd(foo)
25131 shl16insli r0, r0, hw0_tls_gd(foo)
25132 jal __tls_get_addr
25133 shl16insli r0, zero, hw1_last_tls_ie(foo)
25134 shl16insli r0, r0, hw0_tls_ie(foo)'
25135 tls_first_major=2
25136 tls_first_minor=22
25137 tls_as_opt="--fatal-warnings"
25138 ;;
25139 xtensa*-*-*)
25140 conftest_s='
25141 .section ".tdata","awT",@progbits
25142 foo: .long 25
25143 .text
25144 movi a8, foo@TLSFUNC
25145 movi a10, foo@TLSARG
25146 callx8.tls a8, foo@TLSCALL'
25147 tls_first_major=2
25148 tls_first_minor=19
25149 ;;
25150 esac
25151 set_have_as_tls=no
25152 if test "x$enable_tls" = xno ; then
25153 : # TLS explicitly disabled.
25154 elif test "x$enable_tls" = xyes ; then
25155 set_have_as_tls=yes # TLS explicitly enabled.
25156 elif test -z "$tls_first_major"; then
25157 : # If we don't have a check, assume no support.
25158 else
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25160 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25161 if ${gcc_cv_as_tls+:} false; then :
25162 $as_echo_n "(cached) " >&6
25163 else
25164 gcc_cv_as_tls=no
25165 if test $in_tree_gas = yes; then
25166 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25167 then gcc_cv_as_tls=yes
25168 fi
25169 elif test x$gcc_cv_as != x; then
25170 $as_echo "$conftest_s" > conftest.s
25171 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25173 (eval $ac_try) 2>&5
25174 ac_status=$?
25175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25176 test $ac_status = 0; }; }
25177 then
25178 gcc_cv_as_tls=yes
25179 else
25180 echo "configure: failed program was" >&5
25181 cat conftest.s >&5
25182 fi
25183 rm -f conftest.o conftest.s
25184 fi
25185 fi
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25187 $as_echo "$gcc_cv_as_tls" >&6; }
25188 if test $gcc_cv_as_tls = yes; then
25189 set_have_as_tls=yes
25190 fi
25191
25192 fi
25193 if test $set_have_as_tls = yes ; then
25194
25195 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25196
25197 fi
25198
25199 # Target-specific assembler checks.
25200
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25202 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25203 gcc_cv_ld_static_dynamic=no
25204 gcc_cv_ld_static_option='-Bstatic'
25205 gcc_cv_ld_dynamic_option='-Bdynamic'
25206 if test $in_tree_ld = yes ; then
25207 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
25208 gcc_cv_ld_static_dynamic=yes
25209 fi
25210 elif test x$gcc_cv_ld != x; then
25211 # Check if linker supports -Bstatic/-Bdynamic option
25212 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25213 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25214 gcc_cv_ld_static_dynamic=yes
25215 else
25216 case "$target" in
25217 # AIX ld uses -b flags
25218 *-*-aix4.[23]* | *-*-aix[5-9]*)
25219 gcc_cv_ld_static_dynamic=yes
25220 gcc_cv_ld_static_option="-bstatic"
25221 gcc_cv_ld_dynamic_option="-bdynamic"
25222 ;;
25223 # HP-UX ld uses -a flags to select between shared and archive.
25224 *-*-hpux*)
25225 if test x"$gnu_ld" = xno; then
25226 gcc_cv_ld_static_dynamic=yes
25227 gcc_cv_ld_static_option="-aarchive_shared"
25228 gcc_cv_ld_dynamic_option="-adefault"
25229 fi
25230 ;;
25231 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25232 *-*-solaris2*)
25233 gcc_cv_ld_static_dynamic=yes
25234 ;;
25235 esac
25236 fi
25237 fi
25238 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25239
25240 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25241
25242
25243 cat >>confdefs.h <<_ACEOF
25244 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25245 _ACEOF
25246
25247
25248 cat >>confdefs.h <<_ACEOF
25249 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25250 _ACEOF
25251
25252 fi
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25254 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25255
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25257 $as_echo_n "checking linker --version-script option... " >&6; }
25258 gcc_cv_ld_version_script=no
25259 ld_version_script_option=''
25260 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25261 gcc_cv_ld_version_script=yes
25262 ld_version_script_option='--version-script'
25263 elif test x$gcc_cv_ld != x; then
25264 case "$target" in
25265 # Solaris 2 ld always supports -M. It also supports a subset of
25266 # --version-script since Solaris 11.4, but requires
25267 # -z gnu-version-script-compat to activate.
25268 *-*-solaris2*)
25269 gcc_cv_ld_version_script=yes
25270 ld_version_script_option='-M'
25271 ;;
25272 esac
25273 fi
25274 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25276 $as_echo "$gcc_cv_ld_version_script" >&6; }
25277
25278
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25280 $as_echo_n "checking linker soname option... " >&6; }
25281 gcc_cv_ld_soname=no
25282 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25283 gcc_cv_ld_soname=yes
25284 ld_soname_option='-soname'
25285 elif test x$gcc_cv_ld != x; then
25286 case "$target" in
25287 *-*-darwin*)
25288 gcc_cv_ld_soname=yes
25289 ld_soname_option='-install_name'
25290 ;;
25291 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25292 # ld compatiblity since some Solaris 10 update.
25293 *-*-solaris2*)
25294 gcc_cv_ld_soname=yes
25295 ld_soname_option='-h'
25296 ;;
25297 esac
25298 fi
25299 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25301 $as_echo "$gcc_cv_ld_soname" >&6; }
25302
25303
25304 if test x"$demangler_in_ld" = xyes; then
25305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25306 $as_echo_n "checking linker --demangle support... " >&6; }
25307 gcc_cv_ld_demangle=no
25308 if test $in_tree_ld = yes; then
25309 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 \
25310 gcc_cv_ld_demangle=yes
25311 fi
25312 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25313 # Check if the GNU linker supports --demangle option
25314 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25315 gcc_cv_ld_demangle=yes
25316 fi
25317 fi
25318 if test x"$gcc_cv_ld_demangle" = xyes; then
25319
25320 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25321
25322 fi
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25324 $as_echo "$gcc_cv_ld_demangle" >&6; }
25325 fi
25326
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25328 $as_echo_n "checking linker plugin support... " >&6; }
25329 gcc_cv_lto_plugin=0
25330 if test -f liblto_plugin.la; then
25331 save_ld_ver="$ld_ver"
25332 save_ld_vers_major="$ld_vers_major"
25333 save_ld_vers_minor="$ld_vers_minor"
25334 save_ld_is_gold="$ld_is_gold"
25335
25336 ld_is_gold=no
25337
25338 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25339 ld_ver="GNU ld"
25340 # FIXME: ld_is_gold?
25341 ld_vers_major="$gcc_cv_gld_major_version"
25342 ld_vers_minor="$gcc_cv_gld_minor_version"
25343 else
25344 # Determine plugin linker version.
25345 # FIXME: Partial duplicate from above, generalize.
25346 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25347 if echo "$ld_ver" | grep GNU > /dev/null; then
25348 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25349 ld_is_gold=yes
25350 ld_vers=`echo $ld_ver | sed -n \
25351 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25352 else
25353 ld_vers=`echo $ld_ver | sed -n \
25354 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25355 fi
25356 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25357 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25358 fi
25359 fi
25360
25361 # Determine plugin support.
25362 if echo "$ld_ver" | grep GNU > /dev/null; then
25363 # Require GNU ld or gold 2.21+ for plugin support by default.
25364 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25365 gcc_cv_lto_plugin=2
25366 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25367 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25368 gcc_cv_lto_plugin=1
25369 fi
25370 fi
25371
25372 ld_ver="$save_ld_ver"
25373 ld_vers_major="$save_ld_vers_major"
25374 ld_vers_minor="$save_ld_vers_minor"
25375 ld_is_gold="$save_ld_is_gold"
25376 fi
25377
25378 cat >>confdefs.h <<_ACEOF
25379 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25380 _ACEOF
25381
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25383 $as_echo "$gcc_cv_lto_plugin" >&6; }
25384
25385 # Target OS-specific assembler checks.
25386
25387 case "$target_os" in
25388 darwin*)
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25390 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25391 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25392 $as_echo_n "(cached) " >&6
25393 else
25394 gcc_cv_as_mmacosx_version_min=no
25395 if test x$gcc_cv_as != x; then
25396 $as_echo '.text' > conftest.s
25397 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25399 (eval $ac_try) 2>&5
25400 ac_status=$?
25401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25402 test $ac_status = 0; }; }
25403 then
25404 gcc_cv_as_mmacosx_version_min=yes
25405 else
25406 echo "configure: failed program was" >&5
25407 cat conftest.s >&5
25408 fi
25409 rm -f conftest.o conftest.s
25410 fi
25411 fi
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25413 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25414 if test $gcc_cv_as_mmacosx_version_min = yes; then
25415
25416 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25417
25418 fi
25419
25420 ;;
25421 esac
25422
25423 # Target CPU-specific assembler checks.
25424
25425 case "$target" in
25426 aarch64*-*-*)
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25428 $as_echo_n "checking assembler for -mabi option... " >&6; }
25429 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25430 $as_echo_n "(cached) " >&6
25431 else
25432 gcc_cv_as_aarch64_mabi=no
25433 if test x$gcc_cv_as != x; then
25434 $as_echo '.text' > conftest.s
25435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25437 (eval $ac_try) 2>&5
25438 ac_status=$?
25439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25440 test $ac_status = 0; }; }
25441 then
25442 gcc_cv_as_aarch64_mabi=yes
25443 else
25444 echo "configure: failed program was" >&5
25445 cat conftest.s >&5
25446 fi
25447 rm -f conftest.o conftest.s
25448 fi
25449 fi
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25451 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25452
25453
25454 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25455
25456 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25457
25458 else
25459 if test x$with_abi = xilp32; then
25460 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25461 Upgrade the Assembler." "$LINENO" 5
25462 fi
25463 if test x"$with_multilib_list" = xdefault; then
25464 TM_MULTILIB_CONFIG=lp64
25465 else
25466 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25467 for aarch64_multilib in ${aarch64_multilibs}; do
25468 case ${aarch64_multilib} in
25469 ilp32)
25470 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25471 Upgrade the Assembler." "$LINENO" 5
25472 ;;
25473 *)
25474 ;;
25475 esac
25476 done
25477 fi
25478 fi
25479 # Check if we have binutils support for relocations types needed by -fpic
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25481 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25482 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25483 $as_echo_n "(cached) " >&6
25484 else
25485 gcc_cv_as_aarch64_picreloc=no
25486 if test x$gcc_cv_as != x; then
25487 $as_echo '
25488 .text
25489 ldr x0, [x2, #:gotpage_lo15:globalsym]
25490 ' > conftest.s
25491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25493 (eval $ac_try) 2>&5
25494 ac_status=$?
25495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25496 test $ac_status = 0; }; }
25497 then
25498 gcc_cv_as_aarch64_picreloc=yes
25499 else
25500 echo "configure: failed program was" >&5
25501 cat conftest.s >&5
25502 fi
25503 rm -f conftest.o conftest.s
25504 fi
25505 fi
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25507 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25508 if test $gcc_cv_as_aarch64_picreloc = yes; then
25509
25510 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25511
25512 fi
25513
25514 # Enable Branch Target Identification Mechanism and Return Address
25515 # Signing by default.
25516 # Check whether --enable-standard-branch-protection was given.
25517 if test "${enable_standard_branch_protection+set}" = set; then :
25518 enableval=$enable_standard_branch_protection;
25519 case $enableval in
25520 yes)
25521 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25522 ;;
25523 no)
25524 ;;
25525 *)
25526 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25527 Valid choices are 'yes' and 'no'." "$LINENO" 5
25528 ;;
25529 esac
25530
25531 fi
25532
25533 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25534 # Check whether --enable-fix-cortex-a53-835769 was given.
25535 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25536 enableval=$enable_fix_cortex_a53_835769;
25537 case $enableval in
25538 yes)
25539 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25540 ;;
25541 no)
25542 ;;
25543 *)
25544 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25545 Valid choices are 'yes' and 'no'." "$LINENO" 5
25546 ;;
25547
25548 esac
25549
25550 fi
25551
25552 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25553 # Check whether --enable-fix-cortex-a53-843419 was given.
25554 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25555 enableval=$enable_fix_cortex_a53_843419;
25556 case $enableval in
25557 yes)
25558 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25559 ;;
25560 no)
25561 ;;
25562 *)
25563 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25564 Valid choices are 'yes' and 'no'." "$LINENO" 5
25565 ;;
25566
25567 esac
25568
25569 fi
25570
25571 ;;
25572
25573 # All TARGET_ABI_OSF targets.
25574 alpha*-*-linux* | alpha*-*-*bsd*)
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25576 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25577 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25578 $as_echo_n "(cached) " >&6
25579 else
25580 gcc_cv_as_alpha_explicit_relocs=no
25581 if test $in_tree_gas = yes; then
25582 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25583 then gcc_cv_as_alpha_explicit_relocs=yes
25584 fi
25585 elif test x$gcc_cv_as != x; then
25586 $as_echo ' .set nomacro
25587 .text
25588 extbl $3, $2, $3 !lituse_bytoff!1
25589 ldq $2, a($29) !literal!1
25590 ldq $4, b($29) !literal!2
25591 ldq_u $3, 0($2) !lituse_base!1
25592 ldq $27, f($29) !literal!5
25593 jsr $26, ($27), f !lituse_jsr!5
25594 ldah $29, 0($26) !gpdisp!3
25595 lda $0, c($29) !gprel
25596 ldah $1, d($29) !gprelhigh
25597 lda $1, d($1) !gprellow
25598 lda $29, 0($29) !gpdisp!3' > conftest.s
25599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25601 (eval $ac_try) 2>&5
25602 ac_status=$?
25603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25604 test $ac_status = 0; }; }
25605 then
25606 gcc_cv_as_alpha_explicit_relocs=yes
25607 else
25608 echo "configure: failed program was" >&5
25609 cat conftest.s >&5
25610 fi
25611 rm -f conftest.o conftest.s
25612 fi
25613 fi
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25615 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25616 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25617
25618 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25619
25620 fi
25621
25622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25623 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25624 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25625 $as_echo_n "(cached) " >&6
25626 else
25627 gcc_cv_as_alpha_jsrdirect_relocs=no
25628 if test $in_tree_gas = yes; then
25629 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25630 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25631 fi
25632 elif test x$gcc_cv_as != x; then
25633 $as_echo ' .set nomacro
25634 .text
25635 ldq $27, a($29) !literal!1
25636 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25637 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25639 (eval $ac_try) 2>&5
25640 ac_status=$?
25641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25642 test $ac_status = 0; }; }
25643 then
25644 gcc_cv_as_alpha_jsrdirect_relocs=yes
25645 else
25646 echo "configure: failed program was" >&5
25647 cat conftest.s >&5
25648 fi
25649 rm -f conftest.o conftest.s
25650 fi
25651 fi
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25653 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25654 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25655
25656 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25657
25658 fi
25659
25660 ;;
25661
25662 avr-*-*)
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25664 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25665 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25666 $as_echo_n "(cached) " >&6
25667 else
25668 gcc_cv_as_avr_mlink_relax=no
25669 if test x$gcc_cv_as != x; then
25670 $as_echo '.text' > conftest.s
25671 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25673 (eval $ac_try) 2>&5
25674 ac_status=$?
25675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25676 test $ac_status = 0; }; }
25677 then
25678 gcc_cv_as_avr_mlink_relax=yes
25679 else
25680 echo "configure: failed program was" >&5
25681 cat conftest.s >&5
25682 fi
25683 rm -f conftest.o conftest.s
25684 fi
25685 fi
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25687 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25688 if test $gcc_cv_as_avr_mlink_relax = yes; then
25689
25690 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25691
25692 fi
25693
25694
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25696 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25697 if ${gcc_cv_as_avr_mrmw+:} false; then :
25698 $as_echo_n "(cached) " >&6
25699 else
25700 gcc_cv_as_avr_mrmw=no
25701 if test x$gcc_cv_as != x; then
25702 $as_echo '.text' > conftest.s
25703 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25705 (eval $ac_try) 2>&5
25706 ac_status=$?
25707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25708 test $ac_status = 0; }; }
25709 then
25710 gcc_cv_as_avr_mrmw=yes
25711 else
25712 echo "configure: failed program was" >&5
25713 cat conftest.s >&5
25714 fi
25715 rm -f conftest.o conftest.s
25716 fi
25717 fi
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25719 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25720 if test $gcc_cv_as_avr_mrmw = yes; then
25721
25722 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25723
25724 fi
25725
25726
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25728 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25729 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25730 $as_echo_n "(cached) " >&6
25731 else
25732 gcc_cv_as_avr_mgccisr=no
25733 if test x$gcc_cv_as != x; then
25734 $as_echo '.text
25735 __gcc_isr 1
25736 __gcc_isr 2
25737 __gcc_isr 0,r24
25738 ' > conftest.s
25739 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25741 (eval $ac_try) 2>&5
25742 ac_status=$?
25743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25744 test $ac_status = 0; }; }
25745 then
25746 gcc_cv_as_avr_mgccisr=yes
25747 else
25748 echo "configure: failed program was" >&5
25749 cat conftest.s >&5
25750 fi
25751 rm -f conftest.o conftest.s
25752 fi
25753 fi
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25755 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25756 if test $gcc_cv_as_avr_mgccisr = yes; then
25757
25758 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25759
25760 fi
25761
25762
25763 # Check how default linker description file implements .rodata for
25764 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25765 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25767 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25768 cat > conftest.s <<EOF
25769 .section .rodata,"a",@progbits
25770 .global xxvaryy
25771 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25772 xxvaryy:
25773 .word 1
25774 EOF
25775 rm -f conftest.nm
25776 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
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 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25784 (eval $ac_try) 2>&5
25785 ac_status=$?
25786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25787 test $ac_status = 0; }; }
25788 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25790 (eval $ac_try) 2>&5
25791 ac_status=$?
25792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25793 test $ac_status = 0; }; }
25794 if test -s conftest.nm
25795 then
25796 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25798 $as_echo "yes" >&6; }
25799
25800 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25801
25802 else
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25804 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25805 echo "$as_me: nm output was" >&5
25806 cat conftest.nm >&5
25807 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25808 { $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
25809 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25810 fi
25811 else
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25813 $as_echo "test failed" >&6; }
25814 echo "$as_me: failed program was" >&5
25815 cat conftest.s >&5
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25817 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25818 fi
25819 rm -f conftest.s conftest.o conftest.elf conftest.nm
25820 ;;
25821
25822 cris-*-*)
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25824 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25825 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25826 $as_echo_n "(cached) " >&6
25827 else
25828 gcc_cv_as_cris_no_mul_bug=no
25829 if test $in_tree_gas = yes; then
25830 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25831 then gcc_cv_as_cris_no_mul_bug=yes
25832 fi
25833 elif test x$gcc_cv_as != x; then
25834 $as_echo '.text' > conftest.s
25835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25837 (eval $ac_try) 2>&5
25838 ac_status=$?
25839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25840 test $ac_status = 0; }; }
25841 then
25842 gcc_cv_as_cris_no_mul_bug=yes
25843 else
25844 echo "configure: failed program was" >&5
25845 cat conftest.s >&5
25846 fi
25847 rm -f conftest.o conftest.s
25848 fi
25849 fi
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25851 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25852 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25853
25854 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25855
25856 fi
25857
25858 ;;
25859
25860 sparc*-*-*)
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25862 $as_echo_n "checking assembler for -relax option... " >&6; }
25863 if ${gcc_cv_as_sparc_relax+:} false; then :
25864 $as_echo_n "(cached) " >&6
25865 else
25866 gcc_cv_as_sparc_relax=no
25867 if test x$gcc_cv_as != x; then
25868 $as_echo '.text' > conftest.s
25869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25871 (eval $ac_try) 2>&5
25872 ac_status=$?
25873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25874 test $ac_status = 0; }; }
25875 then
25876 gcc_cv_as_sparc_relax=yes
25877 else
25878 echo "configure: failed program was" >&5
25879 cat conftest.s >&5
25880 fi
25881 rm -f conftest.o conftest.s
25882 fi
25883 fi
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25885 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25886 if test $gcc_cv_as_sparc_relax = yes; then
25887
25888 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25889
25890 fi
25891
25892
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25894 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25895 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25896 $as_echo_n "(cached) " >&6
25897 else
25898 gcc_cv_as_sparc_gotdata_op=no
25899 if test x$gcc_cv_as != x; then
25900 $as_echo '.text
25901 .align 4
25902 foo:
25903 nop
25904 bar:
25905 sethi %gdop_hix22(foo), %g1
25906 xor %g1, %gdop_lox10(foo), %g1
25907 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25910 (eval $ac_try) 2>&5
25911 ac_status=$?
25912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25913 test $ac_status = 0; }; }
25914 then
25915 if test x$gcc_cv_ld != x \
25916 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25917 if test x$gcc_cv_objdump != x; then
25918 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25919 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25920 gcc_cv_as_sparc_gotdata_op=no
25921 else
25922 gcc_cv_as_sparc_gotdata_op=yes
25923 fi
25924 fi
25925 fi
25926 rm -f conftest
25927 else
25928 echo "configure: failed program was" >&5
25929 cat conftest.s >&5
25930 fi
25931 rm -f conftest.o conftest.s
25932 fi
25933 fi
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25935 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25936 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25937
25938 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25939
25940 fi
25941
25942
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25944 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25945 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25946 $as_echo_n "(cached) " >&6
25947 else
25948 gcc_cv_as_sparc_ua_pcrel=no
25949 if test x$gcc_cv_as != x; then
25950 $as_echo '.text
25951 foo:
25952 nop
25953 .data
25954 .align 4
25955 .byte 0
25956 .uaword %r_disp32(foo)' > conftest.s
25957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25959 (eval $ac_try) 2>&5
25960 ac_status=$?
25961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25962 test $ac_status = 0; }; }
25963 then
25964 if test x$gcc_cv_ld != x \
25965 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25966 gcc_cv_as_sparc_ua_pcrel=yes
25967 fi
25968 rm -f conftest
25969 else
25970 echo "configure: failed program was" >&5
25971 cat conftest.s >&5
25972 fi
25973 rm -f conftest.o conftest.s
25974 fi
25975 fi
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25977 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25978 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25979
25980 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25981
25982
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25984 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25985 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25986 $as_echo_n "(cached) " >&6
25987 else
25988 gcc_cv_as_sparc_ua_pcrel_hidden=no
25989 if test x$gcc_cv_as != x; then
25990 $as_echo '.data
25991 .align 4
25992 .byte 0x31
25993 .uaword %r_disp32(foo)
25994 .byte 0x32, 0x33, 0x34
25995 .global foo
25996 .hidden foo
25997 foo:
25998 .skip 4' > conftest.s
25999 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26001 (eval $ac_try) 2>&5
26002 ac_status=$?
26003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26004 test $ac_status = 0; }; }
26005 then
26006 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26007 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26008 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26009 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26010 if $gcc_cv_objdump -R conftest 2> /dev/null \
26011 | grep 'DISP32' > /dev/null 2>&1; then
26012 :
26013 else
26014 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26015 fi
26016 fi
26017 rm -f conftest
26018 else
26019 echo "configure: failed program was" >&5
26020 cat conftest.s >&5
26021 fi
26022 rm -f conftest.o conftest.s
26023 fi
26024 fi
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26026 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26027 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26028
26029 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26030
26031 fi
26032
26033
26034 fi
26035 # unaligned pcrel relocs
26036
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26038 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26039 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26040 $as_echo_n "(cached) " >&6
26041 else
26042 gcc_cv_as_sparc_offsetable_lo10=no
26043 if test x$gcc_cv_as != x; then
26044 $as_echo '.text
26045 or %g1, %lo(ab) + 12, %g1
26046 or %g1, %lo(ab + 12), %g1' > conftest.s
26047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26049 (eval $ac_try) 2>&5
26050 ac_status=$?
26051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26052 test $ac_status = 0; }; }
26053 then
26054 if test x$gcc_cv_objdump != x \
26055 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26056 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26057 gcc_cv_as_sparc_offsetable_lo10=yes
26058 fi
26059 else
26060 echo "configure: failed program was" >&5
26061 cat conftest.s >&5
26062 fi
26063 rm -f conftest.o conftest.s
26064 fi
26065 fi
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26067 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26068 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26069
26070 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26071
26072 fi
26073
26074
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26076 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26077 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26078 $as_echo_n "(cached) " >&6
26079 else
26080 gcc_cv_as_sparc_fmaf=no
26081 if test x$gcc_cv_as != x; then
26082 $as_echo '.text
26083 .register %g2, #scratch
26084 .register %g3, #scratch
26085 .align 4
26086 fmaddd %f0, %f2, %f4, %f6
26087 addxccc %g1, %g2, %g3
26088 fsrl32 %f2, %f4, %f8
26089 fnaddd %f10, %f12, %f14' > conftest.s
26090 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26092 (eval $ac_try) 2>&5
26093 ac_status=$?
26094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26095 test $ac_status = 0; }; }
26096 then
26097 gcc_cv_as_sparc_fmaf=yes
26098 else
26099 echo "configure: failed program was" >&5
26100 cat conftest.s >&5
26101 fi
26102 rm -f conftest.o conftest.s
26103 fi
26104 fi
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26106 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26107 if test $gcc_cv_as_sparc_fmaf = yes; then
26108
26109 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26110
26111 fi
26112
26113
26114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26115 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26116 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26117 $as_echo_n "(cached) " >&6
26118 else
26119 gcc_cv_as_sparc_sparc4=no
26120 if test x$gcc_cv_as != x; then
26121 $as_echo '.text
26122 .register %g2, #scratch
26123 .register %g3, #scratch
26124 .align 4
26125 cxbe %g2, %g3, 1f
26126 1: cwbneg %g2, %g3, 1f
26127 1: sha1
26128 md5
26129 aes_kexpand0 %f4, %f6, %f8
26130 des_round %f38, %f40, %f42, %f44
26131 camellia_f %f54, %f56, %f58, %f60
26132 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26135 (eval $ac_try) 2>&5
26136 ac_status=$?
26137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26138 test $ac_status = 0; }; }
26139 then
26140 gcc_cv_as_sparc_sparc4=yes
26141 else
26142 echo "configure: failed program was" >&5
26143 cat conftest.s >&5
26144 fi
26145 rm -f conftest.o conftest.s
26146 fi
26147 fi
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26149 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26150 if test $gcc_cv_as_sparc_sparc4 = yes; then
26151
26152 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26153
26154 fi
26155
26156
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26158 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26159 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26160 $as_echo_n "(cached) " >&6
26161 else
26162 gcc_cv_as_sparc_sparc5=no
26163 if test x$gcc_cv_as != x; then
26164 $as_echo '.text
26165 .register %g2, #scratch
26166 .register %g3, #scratch
26167 .align 4
26168 subxc %g1, %g2, %g3
26169 fpadd8 %f0, %f2, %f4' > conftest.s
26170 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26172 (eval $ac_try) 2>&5
26173 ac_status=$?
26174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26175 test $ac_status = 0; }; }
26176 then
26177 gcc_cv_as_sparc_sparc5=yes
26178 else
26179 echo "configure: failed program was" >&5
26180 cat conftest.s >&5
26181 fi
26182 rm -f conftest.o conftest.s
26183 fi
26184 fi
26185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26186 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26187 if test $gcc_cv_as_sparc_sparc5 = yes; then
26188
26189 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26190
26191 fi
26192
26193
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26195 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26196 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26197 $as_echo_n "(cached) " >&6
26198 else
26199 gcc_cv_as_sparc_sparc6=no
26200 if test x$gcc_cv_as != x; then
26201 $as_echo '.text
26202 .register %g2, #scratch
26203 .register %g3, #scratch
26204 .align 4
26205 rd %entropy, %g1
26206 fpsll64x %f0, %f2, %f4' > conftest.s
26207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26209 (eval $ac_try) 2>&5
26210 ac_status=$?
26211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26212 test $ac_status = 0; }; }
26213 then
26214 gcc_cv_as_sparc_sparc6=yes
26215 else
26216 echo "configure: failed program was" >&5
26217 cat conftest.s >&5
26218 fi
26219 rm -f conftest.o conftest.s
26220 fi
26221 fi
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26223 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26224 if test $gcc_cv_as_sparc_sparc6 = yes; then
26225
26226 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26227
26228 fi
26229
26230
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26232 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26233 if ${gcc_cv_as_sparc_leon+:} false; then :
26234 $as_echo_n "(cached) " >&6
26235 else
26236 gcc_cv_as_sparc_leon=no
26237 if test x$gcc_cv_as != x; then
26238 $as_echo '.text
26239 .register %g2, #scratch
26240 .register %g3, #scratch
26241 .align 4
26242 smac %g2, %g3, %g1
26243 umac %g2, %g3, %g1
26244 casa [%g2] 0xb, %g3, %g1' > conftest.s
26245 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26247 (eval $ac_try) 2>&5
26248 ac_status=$?
26249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26250 test $ac_status = 0; }; }
26251 then
26252 gcc_cv_as_sparc_leon=yes
26253 else
26254 echo "configure: failed program was" >&5
26255 cat conftest.s >&5
26256 fi
26257 rm -f conftest.o conftest.s
26258 fi
26259 fi
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26261 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26262 if test $gcc_cv_as_sparc_leon = yes; then
26263
26264 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26265
26266 fi
26267
26268 ;;
26269
26270 i[34567]86-*-* | x86_64-*-*)
26271 case $target_os in
26272 cygwin*)
26273 # Full C++ conformance when using a shared libstdc++-v3 requires some
26274 # support from the Cygwin DLL, which in more recent versions exports
26275 # wrappers to aid in interposing and redirecting operators new, delete,
26276 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26277 # are configuring for a version of Cygwin that exports the wrappers.
26278 if test x$host = x$target && test x$host_cpu = xi686; then
26279 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26280 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26281 gcc_ac_cygwin_dll_wrappers=yes
26282 else
26283 gcc_ac_cygwin_dll_wrappers=no
26284 fi
26285
26286 else
26287 # Can't check presence of libc functions during cross-compile, so
26288 # we just have to assume we're building for an up-to-date target.
26289 gcc_ac_cygwin_dll_wrappers=yes
26290 fi
26291
26292 cat >>confdefs.h <<_ACEOF
26293 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26294 _ACEOF
26295
26296 esac
26297 case $target_os in
26298 cygwin* | pe | mingw32*)
26299 # Recent binutils allows the three-operand form of ".comm" on PE. This
26300 # definition is used unconditionally to initialise the default state of
26301 # the target option variable that governs usage of the feature.
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26303 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26304 if ${gcc_cv_as_comm_has_align+:} false; then :
26305 $as_echo_n "(cached) " >&6
26306 else
26307 gcc_cv_as_comm_has_align=no
26308 if test $in_tree_gas = yes; then
26309 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26310 then gcc_cv_as_comm_has_align=yes
26311 fi
26312 elif test x$gcc_cv_as != x; then
26313 $as_echo '.comm foo,1,32' > conftest.s
26314 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26316 (eval $ac_try) 2>&5
26317 ac_status=$?
26318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26319 test $ac_status = 0; }; }
26320 then
26321 gcc_cv_as_comm_has_align=yes
26322 else
26323 echo "configure: failed program was" >&5
26324 cat conftest.s >&5
26325 fi
26326 rm -f conftest.o conftest.s
26327 fi
26328 fi
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26330 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26331
26332
26333
26334 cat >>confdefs.h <<_ACEOF
26335 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26336 _ACEOF
26337
26338 # Used for DWARF 2 in PE
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26340 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26341 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26342 $as_echo_n "(cached) " >&6
26343 else
26344 gcc_cv_as_ix86_pe_secrel32=no
26345 if test $in_tree_gas = yes; then
26346 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26347 then gcc_cv_as_ix86_pe_secrel32=yes
26348 fi
26349 elif test x$gcc_cv_as != x; then
26350 $as_echo '.text
26351 foo: nop
26352 .data
26353 .secrel32 foo' > conftest.s
26354 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26356 (eval $ac_try) 2>&5
26357 ac_status=$?
26358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26359 test $ac_status = 0; }; }
26360 then
26361 if test x$gcc_cv_ld != x \
26362 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26363 gcc_cv_as_ix86_pe_secrel32=yes
26364 fi
26365 rm -f conftest
26366 else
26367 echo "configure: failed program was" >&5
26368 cat conftest.s >&5
26369 fi
26370 rm -f conftest.o conftest.s
26371 fi
26372 fi
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26374 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26375 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26376
26377 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26378
26379 fi
26380
26381 # Test if the assembler supports the extended form of the .section
26382 # directive that specifies section alignment. LTO support uses this,
26383 # but normally only after installation, so we warn but don't fail the
26384 # configure if LTO is enabled but the assembler does not support it.
26385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26386 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26387 if ${gcc_cv_as_section_has_align+:} false; then :
26388 $as_echo_n "(cached) " >&6
26389 else
26390 gcc_cv_as_section_has_align=no
26391 if test $in_tree_gas = yes; then
26392 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26393 then gcc_cv_as_section_has_align=yes
26394 fi
26395 elif test x$gcc_cv_as != x; then
26396 $as_echo '.section lto_test,"dr0"' > conftest.s
26397 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26399 (eval $ac_try) 2>&5
26400 ac_status=$?
26401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26402 test $ac_status = 0; }; }
26403 then
26404 gcc_cv_as_section_has_align=yes
26405 else
26406 echo "configure: failed program was" >&5
26407 cat conftest.s >&5
26408 fi
26409 rm -f conftest.o conftest.s
26410 fi
26411 fi
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26413 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26414
26415
26416 if test x$gcc_cv_as_section_has_align != xyes; then
26417 case ",$enable_languages," in
26418 *,lto,*)
26419 { $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
26420 $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;}
26421 ;;
26422 esac
26423 fi
26424 ;;
26425 esac
26426
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26428 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26429 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26430 $as_echo_n "(cached) " >&6
26431 else
26432 gcc_cv_as_ix86_xbrace_comment=no
26433 if test x$gcc_cv_as != x; then
26434 $as_echo '.text' > conftest.s
26435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26437 (eval $ac_try) 2>&5
26438 ac_status=$?
26439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26440 test $ac_status = 0; }; }
26441 then
26442 gcc_cv_as_ix86_xbrace_comment=yes
26443 else
26444 echo "configure: failed program was" >&5
26445 cat conftest.s >&5
26446 fi
26447 rm -f conftest.o conftest.s
26448 fi
26449 fi
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26451 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26452 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26453
26454 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26455
26456 fi
26457
26458
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26460 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26461 if ${gcc_cv_as_ix86_filds+:} false; then :
26462 $as_echo_n "(cached) " >&6
26463 else
26464 gcc_cv_as_ix86_filds=no
26465 if test x$gcc_cv_as != x; then
26466 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26467 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26469 (eval $ac_try) 2>&5
26470 ac_status=$?
26471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26472 test $ac_status = 0; }; }
26473 then
26474 gcc_cv_as_ix86_filds=yes
26475 else
26476 echo "configure: failed program was" >&5
26477 cat conftest.s >&5
26478 fi
26479 rm -f conftest.o conftest.s
26480 fi
26481 fi
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26483 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26484 if test $gcc_cv_as_ix86_filds = yes; then
26485
26486 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26487
26488 fi
26489
26490
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26492 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26493 if ${gcc_cv_as_ix86_fildq+:} false; then :
26494 $as_echo_n "(cached) " >&6
26495 else
26496 gcc_cv_as_ix86_fildq=no
26497 if test x$gcc_cv_as != x; then
26498 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26499 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26501 (eval $ac_try) 2>&5
26502 ac_status=$?
26503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26504 test $ac_status = 0; }; }
26505 then
26506 gcc_cv_as_ix86_fildq=yes
26507 else
26508 echo "configure: failed program was" >&5
26509 cat conftest.s >&5
26510 fi
26511 rm -f conftest.o conftest.s
26512 fi
26513 fi
26514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26515 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26516 if test $gcc_cv_as_ix86_fildq = yes; then
26517
26518 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26519
26520 fi
26521
26522
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26524 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26525 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26526 $as_echo_n "(cached) " >&6
26527 else
26528 gcc_cv_as_ix86_cmov_sun_syntax=no
26529 if test x$gcc_cv_as != x; then
26530 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26531 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26533 (eval $ac_try) 2>&5
26534 ac_status=$?
26535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26536 test $ac_status = 0; }; }
26537 then
26538 gcc_cv_as_ix86_cmov_sun_syntax=yes
26539 else
26540 echo "configure: failed program was" >&5
26541 cat conftest.s >&5
26542 fi
26543 rm -f conftest.o conftest.s
26544 fi
26545 fi
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26547 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26548 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26549
26550 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26551
26552 fi
26553
26554
26555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26556 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26557 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26558 $as_echo_n "(cached) " >&6
26559 else
26560 gcc_cv_as_ix86_ffreep=no
26561 if test x$gcc_cv_as != x; then
26562 $as_echo 'ffreep %st(1)' > conftest.s
26563 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26565 (eval $ac_try) 2>&5
26566 ac_status=$?
26567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26568 test $ac_status = 0; }; }
26569 then
26570 gcc_cv_as_ix86_ffreep=yes
26571 else
26572 echo "configure: failed program was" >&5
26573 cat conftest.s >&5
26574 fi
26575 rm -f conftest.o conftest.s
26576 fi
26577 fi
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26579 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26580 if test $gcc_cv_as_ix86_ffreep = yes; then
26581
26582 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26583
26584 fi
26585
26586
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26588 $as_echo_n "checking assembler for .quad directive... " >&6; }
26589 if ${gcc_cv_as_ix86_quad+:} false; then :
26590 $as_echo_n "(cached) " >&6
26591 else
26592 gcc_cv_as_ix86_quad=no
26593 if test x$gcc_cv_as != x; then
26594 $as_echo '.quad 0' > conftest.s
26595 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26597 (eval $ac_try) 2>&5
26598 ac_status=$?
26599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26600 test $ac_status = 0; }; }
26601 then
26602 gcc_cv_as_ix86_quad=yes
26603 else
26604 echo "configure: failed program was" >&5
26605 cat conftest.s >&5
26606 fi
26607 rm -f conftest.o conftest.s
26608 fi
26609 fi
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26611 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26612 if test $gcc_cv_as_ix86_quad = yes; then
26613
26614 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26615
26616 fi
26617
26618
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26620 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26621 if ${gcc_cv_as_ix86_sahf+:} false; then :
26622 $as_echo_n "(cached) " >&6
26623 else
26624 gcc_cv_as_ix86_sahf=no
26625 if test x$gcc_cv_as != x; then
26626 $as_echo '.code64
26627 sahf' > 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_ix86_sahf=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_ix86_sahf" >&5
26644 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26645 if test $gcc_cv_as_ix86_sahf = yes; then
26646
26647 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26648
26649 fi
26650
26651
26652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26653 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26654 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26655 $as_echo_n "(cached) " >&6
26656 else
26657 gcc_cv_as_ix86_interunit_movq=no
26658 if test x$gcc_cv_as != x; then
26659 $as_echo '.code64
26660 movq %mm0, %rax
26661 movq %rax, %xmm0' > conftest.s
26662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26664 (eval $ac_try) 2>&5
26665 ac_status=$?
26666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26667 test $ac_status = 0; }; }
26668 then
26669 gcc_cv_as_ix86_interunit_movq=yes
26670 else
26671 echo "configure: failed program was" >&5
26672 cat conftest.s >&5
26673 fi
26674 rm -f conftest.o conftest.s
26675 fi
26676 fi
26677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26678 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26679
26680
26681
26682 cat >>confdefs.h <<_ACEOF
26683 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26684 _ACEOF
26685
26686
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26688 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26689 if ${gcc_cv_as_ix86_hle+:} false; then :
26690 $as_echo_n "(cached) " >&6
26691 else
26692 gcc_cv_as_ix86_hle=no
26693 if test x$gcc_cv_as != x; then
26694 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26697 (eval $ac_try) 2>&5
26698 ac_status=$?
26699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26700 test $ac_status = 0; }; }
26701 then
26702 gcc_cv_as_ix86_hle=yes
26703 else
26704 echo "configure: failed program was" >&5
26705 cat conftest.s >&5
26706 fi
26707 rm -f conftest.o conftest.s
26708 fi
26709 fi
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26711 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26712 if test $gcc_cv_as_ix86_hle = yes; then
26713
26714 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26715
26716 fi
26717
26718
26719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26720 $as_echo_n "checking assembler for swap suffix... " >&6; }
26721 if ${gcc_cv_as_ix86_swap+:} false; then :
26722 $as_echo_n "(cached) " >&6
26723 else
26724 gcc_cv_as_ix86_swap=no
26725 if test x$gcc_cv_as != x; then
26726 $as_echo 'movl.s %esp, %ebp' > conftest.s
26727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_ix86_swap=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_ix86_swap" >&5
26743 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26744 if test $gcc_cv_as_ix86_swap = yes; then
26745
26746 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26747
26748 fi
26749
26750
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26752 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26753 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26754 $as_echo_n "(cached) " >&6
26755 else
26756 gcc_cv_as_ix86_diff_sect_delta=no
26757 if test x$gcc_cv_as != x; then
26758 $as_echo '.section .rodata
26759 .L1:
26760 .long .L2-.L1
26761 .long .L3-.L1
26762 .text
26763 .L3: nop
26764 .L2: nop' > conftest.s
26765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26767 (eval $ac_try) 2>&5
26768 ac_status=$?
26769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26770 test $ac_status = 0; }; }
26771 then
26772 gcc_cv_as_ix86_diff_sect_delta=yes
26773 else
26774 echo "configure: failed program was" >&5
26775 cat conftest.s >&5
26776 fi
26777 rm -f conftest.o conftest.s
26778 fi
26779 fi
26780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26781 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26782 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26783
26784 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26785
26786 fi
26787
26788
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26790 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26791 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26792 $as_echo_n "(cached) " >&6
26793 else
26794 gcc_cv_as_ix86_rep_lock_prefix=no
26795 if test x$gcc_cv_as != x; then
26796 $as_echo 'rep movsl
26797 rep ret
26798 rep nop
26799 rep bsf %ecx, %eax
26800 rep bsr %ecx, %eax
26801 lock addl %edi, (%eax,%esi)
26802 lock orl $0, (%esp)' > conftest.s
26803 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26805 (eval $ac_try) 2>&5
26806 ac_status=$?
26807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26808 test $ac_status = 0; }; }
26809 then
26810 gcc_cv_as_ix86_rep_lock_prefix=yes
26811 else
26812 echo "configure: failed program was" >&5
26813 cat conftest.s >&5
26814 fi
26815 rm -f conftest.o conftest.s
26816 fi
26817 fi
26818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26819 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26820 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26821
26822 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26823
26824 fi
26825
26826
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26828 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26829 if ${gcc_cv_as_ix86_ud2+:} false; then :
26830 $as_echo_n "(cached) " >&6
26831 else
26832 gcc_cv_as_ix86_ud2=no
26833 if test x$gcc_cv_as != x; then
26834 $as_echo 'ud2' > conftest.s
26835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26837 (eval $ac_try) 2>&5
26838 ac_status=$?
26839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26840 test $ac_status = 0; }; }
26841 then
26842 gcc_cv_as_ix86_ud2=yes
26843 else
26844 echo "configure: failed program was" >&5
26845 cat conftest.s >&5
26846 fi
26847 rm -f conftest.o conftest.s
26848 fi
26849 fi
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26851 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26852 if test $gcc_cv_as_ix86_ud2 = yes; then
26853
26854 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26855
26856 fi
26857
26858
26859 # Enforce 32-bit output with gas and gld.
26860 if test x$gas = xyes; then
26861 as_ix86_gas_32_opt="--32"
26862 fi
26863 if echo "$ld_ver" | grep GNU > /dev/null; then
26864 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26865 ld_ix86_gld_32_opt="-melf_i386_sol2"
26866 else
26867 ld_ix86_gld_32_opt="-melf_i386"
26868 fi
26869 fi
26870
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26872 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26873 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26874 $as_echo_n "(cached) " >&6
26875 else
26876 gcc_cv_as_ix86_tlsgdplt=no
26877 if test x$gcc_cv_as != x; then
26878 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26879 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26881 (eval $ac_try) 2>&5
26882 ac_status=$?
26883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26884 test $ac_status = 0; }; }
26885 then
26886 if test x$gcc_cv_ld != x \
26887 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26888 gcc_cv_as_ix86_tlsgdplt=yes
26889 fi
26890 rm -f conftest
26891 else
26892 echo "configure: failed program was" >&5
26893 cat conftest.s >&5
26894 fi
26895 rm -f conftest.o conftest.s
26896 fi
26897 fi
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26899 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26900 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26901
26902 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26903
26904 fi
26905
26906
26907 conftest_s='
26908 .section .tdata,"aw'$tls_section_flag'",@progbits
26909 tls_ld:
26910 .section .text,"ax",@progbits
26911 call tls_ld@tlsldmplt'
26912
26913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26914 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26915 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26916 $as_echo_n "(cached) " >&6
26917 else
26918 gcc_cv_as_ix86_tlsldmplt=no
26919 if test x$gcc_cv_as != x; then
26920 $as_echo "$conftest_s" > conftest.s
26921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26923 (eval $ac_try) 2>&5
26924 ac_status=$?
26925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26926 test $ac_status = 0; }; }
26927 then
26928 if test x$gcc_cv_ld != x \
26929 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26930 gcc_cv_as_ix86_tlsldmplt=yes
26931 fi
26932 rm -f conftest
26933 else
26934 echo "configure: failed program was" >&5
26935 cat conftest.s >&5
26936 fi
26937 rm -f conftest.o conftest.s
26938 fi
26939 fi
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26941 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26942
26943
26944
26945 cat >>confdefs.h <<_ACEOF
26946 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26947 _ACEOF
26948
26949
26950 conftest_s='
26951 .section .text,"ax",@progbits
26952 .globl _start
26953 .type _start, @function
26954 _start:
26955 leal value@tlsldm(%ebx), %eax
26956 call ___tls_get_addr@plt
26957
26958 .section .tdata,"aw'$tls_section_flag'",@progbits
26959 .type value, @object
26960 value:'
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26962 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26963 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26964 $as_echo_n "(cached) " >&6
26965 else
26966 gcc_cv_as_ix86_tlsldm=no
26967 if test x$gcc_cv_as != x; then
26968 $as_echo "$conftest_s" > conftest.s
26969 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26971 (eval $ac_try) 2>&5
26972 ac_status=$?
26973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26974 test $ac_status = 0; }; }
26975 then
26976 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26977 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26978 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26979 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26980 gcc_cv_as_ix86_tlsldm=yes
26981 fi
26982 fi
26983 rm -f conftest
26984 else
26985 echo "configure: failed program was" >&5
26986 cat conftest.s >&5
26987 fi
26988 rm -f conftest.o conftest.s
26989 fi
26990 fi
26991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26992 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26993
26994
26995
26996 cat >>confdefs.h <<_ACEOF
26997 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26998 _ACEOF
26999
27000
27001 conftest_s='
27002 .data
27003 bar:
27004 .byte 1
27005 .text
27006 .global _start
27007 _start:
27008 cmpl $0, bar@GOT
27009 jmp *_start@GOT'
27010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27011 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27012 if ${gcc_cv_as_ix86_got32x+:} false; then :
27013 $as_echo_n "(cached) " >&6
27014 else
27015 gcc_cv_as_ix86_got32x=no
27016 if test x$gcc_cv_as != x; then
27017 $as_echo "$conftest_s" > conftest.s
27018 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27020 (eval $ac_try) 2>&5
27021 ac_status=$?
27022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27023 test $ac_status = 0; }; }
27024 then
27025 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27026 && test x$gcc_cv_readelf != x \
27027 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27028 | grep R_386_GOT32X > /dev/null 2>&1 \
27029 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27030 if $gcc_cv_objdump -dw conftest 2>&1 \
27031 | grep 0xffffff > /dev/null 2>&1; then
27032 gcc_cv_as_ix86_got32x=no
27033 else
27034 gcc_cv_as_ix86_got32x=yes
27035 fi
27036 fi
27037 rm -f conftest
27038 else
27039 echo "configure: failed program was" >&5
27040 cat conftest.s >&5
27041 fi
27042 rm -f conftest.o conftest.s
27043 fi
27044 fi
27045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27046 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27047
27048
27049
27050 cat >>confdefs.h <<_ACEOF
27051 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27052 _ACEOF
27053
27054
27055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27056 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27057 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27058 $as_echo_n "(cached) " >&6
27059 else
27060 gcc_cv_as_ix86_gotoff_in_data=no
27061 if test $in_tree_gas = yes; then
27062 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27063 then gcc_cv_as_ix86_gotoff_in_data=yes
27064 fi
27065 elif test x$gcc_cv_as != x; then
27066 $as_echo ' .text
27067 .L0:
27068 nop
27069 .data
27070 .long .L0@GOTOFF' > conftest.s
27071 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27073 (eval $ac_try) 2>&5
27074 ac_status=$?
27075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27076 test $ac_status = 0; }; }
27077 then
27078 gcc_cv_as_ix86_gotoff_in_data=yes
27079 else
27080 echo "configure: failed program was" >&5
27081 cat conftest.s >&5
27082 fi
27083 rm -f conftest.o conftest.s
27084 fi
27085 fi
27086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27087 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27088
27089
27090
27091 cat >>confdefs.h <<_ACEOF
27092 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27093 _ACEOF
27094
27095
27096 conftest_s='
27097 .section .text,"ax",@progbits
27098 .globl _start
27099 .type _start, @function
27100 _start:
27101 leal ld@tlsldm(%ecx), %eax
27102 call *___tls_get_addr@GOT(%ecx)
27103 leal gd@tlsgd(%ecx), %eax
27104 call *___tls_get_addr@GOT(%ecx)
27105
27106 .section .tdata,"aw'$tls_section_flag'",@progbits
27107 .type ld, @object
27108 ld:
27109 .byte 0
27110 .globl gd
27111 .type gd, @object
27112 gd:
27113 .byte 0'
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27115 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27116 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27117 $as_echo_n "(cached) " >&6
27118 else
27119 gcc_cv_as_ix86_tls_get_addr_via_got=no
27120 if test x$gcc_cv_as != x; then
27121 $as_echo "$conftest_s" > conftest.s
27122 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27124 (eval $ac_try) 2>&5
27125 ac_status=$?
27126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27127 test $ac_status = 0; }; }
27128 then
27129 if test x$gcc_cv_ld != x \
27130 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27131 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27132 fi
27133 rm -f conftest
27134 else
27135 echo "configure: failed program was" >&5
27136 cat conftest.s >&5
27137 fi
27138 rm -f conftest.o conftest.s
27139 fi
27140 fi
27141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27142 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27143
27144
27145
27146 cat >>confdefs.h <<_ACEOF
27147 #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`
27148 _ACEOF
27149
27150 ;;
27151
27152 ia64*-*-*)
27153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27154 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27155 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27156 $as_echo_n "(cached) " >&6
27157 else
27158 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27159 if test $in_tree_gas = yes; then
27160 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27161 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27162 fi
27163 elif test x$gcc_cv_as != x; then
27164 $as_echo ' .text
27165 addl r15 = @ltoffx(x#), gp
27166 ;;
27167 ld8.mov r16 = [r15], x#
27168 ' > conftest.s
27169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27171 (eval $ac_try) 2>&5
27172 ac_status=$?
27173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27174 test $ac_status = 0; }; }
27175 then
27176 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27177 else
27178 echo "configure: failed program was" >&5
27179 cat conftest.s >&5
27180 fi
27181 rm -f conftest.o conftest.s
27182 fi
27183 fi
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27185 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27186 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27187
27188 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27189
27190 fi
27191
27192
27193 ;;
27194
27195 powerpc*-*-*)
27196
27197 case $target in
27198 *-*-darwin*)
27199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27200 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27201 if ${gcc_cv_as_machine_directive+:} false; then :
27202 $as_echo_n "(cached) " >&6
27203 else
27204 gcc_cv_as_machine_directive=no
27205 if test x$gcc_cv_as != x; then
27206 $as_echo ' .machine ppc7400' > conftest.s
27207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27209 (eval $ac_try) 2>&5
27210 ac_status=$?
27211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27212 test $ac_status = 0; }; }
27213 then
27214 gcc_cv_as_machine_directive=yes
27215 else
27216 echo "configure: failed program was" >&5
27217 cat conftest.s >&5
27218 fi
27219 rm -f conftest.o conftest.s
27220 fi
27221 fi
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27223 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27224
27225
27226 if test x$gcc_cv_as_machine_directive != xyes; then
27227 echo "*** This target requires an assembler supporting \".machine\"" >&2
27228 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27229 test x$build = x$target && exit 1
27230 fi
27231 ;;
27232 esac
27233
27234 case $target in
27235 *-*-aix*) conftest_s=' .machine "pwr5"
27236 .csect .text[PR]
27237 mfcr 3,128';;
27238 *-*-darwin*) conftest_s=' .text
27239 mfcr r3,128';;
27240 *) conftest_s=' .machine power4
27241 .text
27242 mfcr 3,128';;
27243 esac
27244
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27246 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27247 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27248 $as_echo_n "(cached) " >&6
27249 else
27250 gcc_cv_as_powerpc_mfcrf=no
27251 if test $in_tree_gas = yes; then
27252 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27253 then gcc_cv_as_powerpc_mfcrf=yes
27254 fi
27255 elif test x$gcc_cv_as != x; then
27256 $as_echo "$conftest_s" > conftest.s
27257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27259 (eval $ac_try) 2>&5
27260 ac_status=$?
27261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27262 test $ac_status = 0; }; }
27263 then
27264 gcc_cv_as_powerpc_mfcrf=yes
27265 else
27266 echo "configure: failed program was" >&5
27267 cat conftest.s >&5
27268 fi
27269 rm -f conftest.o conftest.s
27270 fi
27271 fi
27272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27273 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27274 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27275
27276 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27277
27278 fi
27279
27280
27281 case $target in
27282 *-*-aix*) conftest_s=' .csect .text[PR]
27283 LCF..0:
27284 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27285 *-*-darwin*)
27286 conftest_s=' .text
27287 LCF0:
27288 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27289 *) conftest_s=' .text
27290 .LCF0:
27291 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27292 esac
27293
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27295 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27296 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27297 $as_echo_n "(cached) " >&6
27298 else
27299 gcc_cv_as_powerpc_rel16=no
27300 if test $in_tree_gas = yes; then
27301 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27302 then gcc_cv_as_powerpc_rel16=yes
27303 fi
27304 elif test x$gcc_cv_as != x; then
27305 $as_echo "$conftest_s" > conftest.s
27306 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27308 (eval $ac_try) 2>&5
27309 ac_status=$?
27310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27311 test $ac_status = 0; }; }
27312 then
27313 gcc_cv_as_powerpc_rel16=yes
27314 else
27315 echo "configure: failed program was" >&5
27316 cat conftest.s >&5
27317 fi
27318 rm -f conftest.o conftest.s
27319 fi
27320 fi
27321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27322 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27323 if test $gcc_cv_as_powerpc_rel16 = yes; then
27324
27325 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27326
27327 fi
27328
27329
27330 case $target in
27331 *-*-aix*) conftest_s=' .machine "pwr7"
27332 .csect .text[PR]
27333 lxvd2x 1,2,3';;
27334 *) conftest_s=' .machine power7
27335 .text
27336 lxvd2x 1,2,3';;
27337 esac
27338
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27340 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27341 if ${gcc_cv_as_powerpc_vsx+:} false; then :
27342 $as_echo_n "(cached) " >&6
27343 else
27344 gcc_cv_as_powerpc_vsx=no
27345 if test $in_tree_gas = yes; then
27346 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27347 then gcc_cv_as_powerpc_vsx=yes
27348 fi
27349 elif test x$gcc_cv_as != x; then
27350 $as_echo "$conftest_s" > conftest.s
27351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27353 (eval $ac_try) 2>&5
27354 ac_status=$?
27355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27356 test $ac_status = 0; }; }
27357 then
27358 gcc_cv_as_powerpc_vsx=yes
27359 else
27360 echo "configure: failed program was" >&5
27361 cat conftest.s >&5
27362 fi
27363 rm -f conftest.o conftest.s
27364 fi
27365 fi
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27367 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27368 if test $gcc_cv_as_powerpc_vsx = yes; then
27369
27370 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27371
27372 fi
27373
27374
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27376 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27377 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27378 $as_echo_n "(cached) " >&6
27379 else
27380 gcc_cv_as_powerpc_gnu_attribute=no
27381 if test $in_tree_gas = yes; then
27382 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27383 then gcc_cv_as_powerpc_gnu_attribute=yes
27384 fi
27385 elif test x$gcc_cv_as != x; then
27386 $as_echo '.gnu_attribute 4,1' > conftest.s
27387 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27389 (eval $ac_try) 2>&5
27390 ac_status=$?
27391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27392 test $ac_status = 0; }; }
27393 then
27394 gcc_cv_as_powerpc_gnu_attribute=yes
27395 else
27396 echo "configure: failed program was" >&5
27397 cat conftest.s >&5
27398 fi
27399 rm -f conftest.o conftest.s
27400 fi
27401 fi
27402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27403 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27404 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27405
27406 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27407
27408 fi
27409
27410
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27412 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27413 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27414 $as_echo_n "(cached) " >&6
27415 else
27416 gcc_cv_as_powerpc_entry_markers=no
27417 if test $in_tree_gas = yes; then
27418 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27419 then gcc_cv_as_powerpc_entry_markers=yes
27420 fi
27421 elif test x$gcc_cv_as != x; then
27422 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27423 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27425 (eval $ac_try) 2>&5
27426 ac_status=$?
27427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27428 test $ac_status = 0; }; }
27429 then
27430 gcc_cv_as_powerpc_entry_markers=yes
27431 else
27432 echo "configure: failed program was" >&5
27433 cat conftest.s >&5
27434 fi
27435 rm -f conftest.o conftest.s
27436 fi
27437 fi
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27439 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27440 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27441
27442 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27443
27444 fi
27445
27446
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27448 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27449 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27450 $as_echo_n "(cached) " >&6
27451 else
27452 gcc_cv_as_powerpc_pltseq_markers=no
27453 if test $in_tree_gas = yes; then
27454 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27455 then gcc_cv_as_powerpc_pltseq_markers=yes
27456 fi
27457 elif test x$gcc_cv_as != x; then
27458 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27459 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -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_powerpc_pltseq_markers=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_powerpc_pltseq_markers" >&5
27475 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27476 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27477
27478 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27479
27480 fi
27481
27482
27483 case $target in
27484 *-*-aix*)
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27486 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27487 if ${gcc_cv_as_aix_ref+:} false; then :
27488 $as_echo_n "(cached) " >&6
27489 else
27490 gcc_cv_as_aix_ref=no
27491 if test $in_tree_gas = yes; then
27492 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27493 then gcc_cv_as_aix_ref=yes
27494 fi
27495 elif test x$gcc_cv_as != x; then
27496 $as_echo ' .csect stuff[rw]
27497 stuff:
27498 .long 1
27499 .extern sym
27500 .ref sym
27501 ' > conftest.s
27502 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27504 (eval $ac_try) 2>&5
27505 ac_status=$?
27506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27507 test $ac_status = 0; }; }
27508 then
27509 gcc_cv_as_aix_ref=yes
27510 else
27511 echo "configure: failed program was" >&5
27512 cat conftest.s >&5
27513 fi
27514 rm -f conftest.o conftest.s
27515 fi
27516 fi
27517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27518 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27519 if test $gcc_cv_as_aix_ref = yes; then
27520
27521 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27522
27523 fi
27524
27525
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27527 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27528 if ${gcc_cv_as_aix_dwloc+:} false; then :
27529 $as_echo_n "(cached) " >&6
27530 else
27531 gcc_cv_as_aix_dwloc=no
27532 if test $in_tree_gas = yes; then
27533 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27534 then gcc_cv_as_aix_dwloc=yes
27535 fi
27536 elif test x$gcc_cv_as != x; then
27537 $as_echo ' .dwsect 0xA0000
27538 Lframe..0:
27539 .vbyte 4,Lframe..0
27540 ' > conftest.s
27541 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27543 (eval $ac_try) 2>&5
27544 ac_status=$?
27545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27546 test $ac_status = 0; }; }
27547 then
27548 gcc_cv_as_aix_dwloc=yes
27549 else
27550 echo "configure: failed program was" >&5
27551 cat conftest.s >&5
27552 fi
27553 rm -f conftest.o conftest.s
27554 fi
27555 fi
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27557 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27558 if test $gcc_cv_as_aix_dwloc = yes; then
27559
27560 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27561
27562 fi
27563
27564 ;;
27565 esac
27566 ;;
27567
27568 mips*-*-*)
27569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27570 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27571 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27572 $as_echo_n "(cached) " >&6
27573 else
27574 gcc_cv_as_mips_explicit_relocs=no
27575 if test $in_tree_gas = yes; then
27576 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27577 then gcc_cv_as_mips_explicit_relocs=yes
27578 fi
27579 elif test x$gcc_cv_as != x; then
27580 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27581 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27583 (eval $ac_try) 2>&5
27584 ac_status=$?
27585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27586 test $ac_status = 0; }; }
27587 then
27588 gcc_cv_as_mips_explicit_relocs=yes
27589 else
27590 echo "configure: failed program was" >&5
27591 cat conftest.s >&5
27592 fi
27593 rm -f conftest.o conftest.s
27594 fi
27595 fi
27596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27597 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27598 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27599 if test x$target_cpu_default = x
27600 then target_cpu_default=MASK_EXPLICIT_RELOCS
27601 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27602 fi
27603 fi
27604
27605
27606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27607 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27608 if ${gcc_cv_as_mips_no_shared+:} false; then :
27609 $as_echo_n "(cached) " >&6
27610 else
27611 gcc_cv_as_mips_no_shared=no
27612 if test $in_tree_gas = yes; then
27613 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27614 then gcc_cv_as_mips_no_shared=yes
27615 fi
27616 elif test x$gcc_cv_as != x; then
27617 $as_echo 'nop' > conftest.s
27618 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27620 (eval $ac_try) 2>&5
27621 ac_status=$?
27622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27623 test $ac_status = 0; }; }
27624 then
27625 gcc_cv_as_mips_no_shared=yes
27626 else
27627 echo "configure: failed program was" >&5
27628 cat conftest.s >&5
27629 fi
27630 rm -f conftest.o conftest.s
27631 fi
27632 fi
27633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27634 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27635 if test $gcc_cv_as_mips_no_shared = yes; then
27636
27637 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27638
27639 fi
27640
27641
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27643 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27644 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27645 $as_echo_n "(cached) " >&6
27646 else
27647 gcc_cv_as_mips_gnu_attribute=no
27648 if test $in_tree_gas = yes; then
27649 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27650 then gcc_cv_as_mips_gnu_attribute=yes
27651 fi
27652 elif test x$gcc_cv_as != x; then
27653 $as_echo '.gnu_attribute 4,1' > conftest.s
27654 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27656 (eval $ac_try) 2>&5
27657 ac_status=$?
27658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27659 test $ac_status = 0; }; }
27660 then
27661 gcc_cv_as_mips_gnu_attribute=yes
27662 else
27663 echo "configure: failed program was" >&5
27664 cat conftest.s >&5
27665 fi
27666 rm -f conftest.o conftest.s
27667 fi
27668 fi
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27670 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27671 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27672
27673 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27674
27675 fi
27676
27677
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27679 $as_echo_n "checking assembler for .module support... " >&6; }
27680 if ${gcc_cv_as_mips_dot_module+:} false; then :
27681 $as_echo_n "(cached) " >&6
27682 else
27683 gcc_cv_as_mips_dot_module=no
27684 if test x$gcc_cv_as != x; then
27685 $as_echo '.module mips2
27686 .module fp=xx' > conftest.s
27687 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27689 (eval $ac_try) 2>&5
27690 ac_status=$?
27691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27692 test $ac_status = 0; }; }
27693 then
27694 gcc_cv_as_mips_dot_module=yes
27695 else
27696 echo "configure: failed program was" >&5
27697 cat conftest.s >&5
27698 fi
27699 rm -f conftest.o conftest.s
27700 fi
27701 fi
27702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27703 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27704 if test $gcc_cv_as_mips_dot_module = yes; then
27705
27706 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27707
27708 fi
27709
27710 if test x$gcc_cv_as_mips_dot_module = xno \
27711 && test x$with_fp_32 != x; then
27712 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27713 fi
27714
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27716 $as_echo_n "checking assembler for .micromips support... " >&6; }
27717 if ${gcc_cv_as_micromips_support+:} false; then :
27718 $as_echo_n "(cached) " >&6
27719 else
27720 gcc_cv_as_micromips_support=no
27721 if test x$gcc_cv_as != x; then
27722 $as_echo '.set micromips' > conftest.s
27723 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27725 (eval $ac_try) 2>&5
27726 ac_status=$?
27727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27728 test $ac_status = 0; }; }
27729 then
27730 gcc_cv_as_micromips_support=yes
27731 else
27732 echo "configure: failed program was" >&5
27733 cat conftest.s >&5
27734 fi
27735 rm -f conftest.o conftest.s
27736 fi
27737 fi
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27739 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27740 if test $gcc_cv_as_micromips_support = yes; then
27741
27742 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27743
27744 fi
27745
27746
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27748 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27749 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27750 $as_echo_n "(cached) " >&6
27751 else
27752 gcc_cv_as_mips_dtprelword=no
27753 if test $in_tree_gas = yes; then
27754 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27755 then gcc_cv_as_mips_dtprelword=yes
27756 fi
27757 elif test x$gcc_cv_as != x; then
27758 $as_echo '.section .tdata,"awT",@progbits
27759 x:
27760 .word 2
27761 .text
27762 .dtprelword x+0x8000' > conftest.s
27763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27765 (eval $ac_try) 2>&5
27766 ac_status=$?
27767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27768 test $ac_status = 0; }; }
27769 then
27770 gcc_cv_as_mips_dtprelword=yes
27771 else
27772 echo "configure: failed program was" >&5
27773 cat conftest.s >&5
27774 fi
27775 rm -f conftest.o conftest.s
27776 fi
27777 fi
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27779 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27780 if test $gcc_cv_as_mips_dtprelword = yes; then
27781
27782 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27783
27784 fi
27785
27786
27787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27788 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27789 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27790 $as_echo_n "(cached) " >&6
27791 else
27792 gcc_cv_as_mips_dspr1_mult=no
27793 if test x$gcc_cv_as != x; then
27794 $as_echo ' .set mips32r2
27795 .set nodspr2
27796 .set dsp
27797 madd $ac3,$4,$5
27798 maddu $ac3,$4,$5
27799 msub $ac3,$4,$5
27800 msubu $ac3,$4,$5
27801 mult $ac3,$4,$5
27802 multu $ac3,$4,$5' > conftest.s
27803 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27805 (eval $ac_try) 2>&5
27806 ac_status=$?
27807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27808 test $ac_status = 0; }; }
27809 then
27810 gcc_cv_as_mips_dspr1_mult=yes
27811 else
27812 echo "configure: failed program was" >&5
27813 cat conftest.s >&5
27814 fi
27815 rm -f conftest.o conftest.s
27816 fi
27817 fi
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27819 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27820 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27821
27822 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27823
27824 fi
27825
27826
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27828 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27829 gcc_cv_as_ld_jalr_reloc=no
27830 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27831 if test $in_tree_ld = yes ; then
27832 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 \
27833 && test $in_tree_ld_is_elf = yes; then
27834 gcc_cv_as_ld_jalr_reloc=yes
27835 fi
27836 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27837 echo ' .ent x' > conftest.s
27838 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27839 echo ' lw $25,%call16(y)($28)' >> conftest.s
27840 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27841 echo '1: jalr $25' >> conftest.s
27842 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27843 echo '1: jalr $25' >> conftest.s
27844 echo ' .end x' >> conftest.s
27845 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27846 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27847 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27848 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27849 gcc_cv_as_ld_jalr_reloc=yes
27850 fi
27851 fi
27852 rm -f conftest.*
27853 fi
27854 fi
27855 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27856 if test x$target_cpu_default = x; then
27857 target_cpu_default=MASK_RELAX_PIC_CALLS
27858 else
27859 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27860 fi
27861 fi
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27863 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27864
27865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27866 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27867 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27868 $as_echo_n "(cached) " >&6
27869 else
27870 gcc_cv_ld_mips_personality_relaxation=no
27871 if test $in_tree_ld = yes ; then
27872 if test "$gcc_cv_gld_major_version" -eq 2 \
27873 -a "$gcc_cv_gld_minor_version" -ge 21 \
27874 -o "$gcc_cv_gld_major_version" -gt 2; then
27875 gcc_cv_ld_mips_personality_relaxation=yes
27876 fi
27877 elif test x$gcc_cv_as != x \
27878 -a x$gcc_cv_ld != x \
27879 -a x$gcc_cv_readelf != x ; then
27880 cat > conftest.s <<EOF
27881 .cfi_startproc
27882 .cfi_personality 0x80,indirect_ptr
27883 .ent test
27884 test:
27885 nop
27886 .end test
27887 .cfi_endproc
27888
27889 .section .data,"aw",@progbits
27890 indirect_ptr:
27891 .dc.a personality
27892 EOF
27893 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27894 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27895 if $gcc_cv_readelf -d conftest 2>&1 \
27896 | grep TEXTREL > /dev/null 2>&1; then
27897 :
27898 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27899 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27900 :
27901 else
27902 gcc_cv_ld_mips_personality_relaxation=yes
27903 fi
27904 fi
27905 fi
27906 rm -f conftest.s conftest.o conftest
27907 fi
27908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27909 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27910 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27911
27912 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27913
27914 fi
27915
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27917 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27918 if ${gcc_cv_as_mips_nan+:} false; then :
27919 $as_echo_n "(cached) " >&6
27920 else
27921 gcc_cv_as_mips_nan=no
27922 if test x$gcc_cv_as != x; then
27923 $as_echo '' > conftest.s
27924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27926 (eval $ac_try) 2>&5
27927 ac_status=$?
27928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27929 test $ac_status = 0; }; }
27930 then
27931 gcc_cv_as_mips_nan=yes
27932 else
27933 echo "configure: failed program was" >&5
27934 cat conftest.s >&5
27935 fi
27936 rm -f conftest.o conftest.s
27937 fi
27938 fi
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27940 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27941 if test $gcc_cv_as_mips_nan = yes; then
27942
27943 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27944
27945 fi
27946
27947 if test x$gcc_cv_as_mips_nan = xno \
27948 && test x$with_nan != x; then
27949 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27950 fi
27951 ;;
27952 msp430-*-*)
27953 # Earlier GAS versions generically support .gnu_attribute, but the
27954 # msp430 assembler will not do anything with it.
27955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27956 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27957 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
27958 $as_echo_n "(cached) " >&6
27959 else
27960 gcc_cv_as_msp430_gnu_attribute=no
27961 if test $in_tree_gas = yes; then
27962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27963 then gcc_cv_as_msp430_gnu_attribute=yes
27964 fi
27965 elif test x$gcc_cv_as != x; then
27966 $as_echo '.gnu_attribute 4,1' > conftest.s
27967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27969 (eval $ac_try) 2>&5
27970 ac_status=$?
27971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27972 test $ac_status = 0; }; }
27973 then
27974 gcc_cv_as_msp430_gnu_attribute=yes
27975 else
27976 echo "configure: failed program was" >&5
27977 cat conftest.s >&5
27978 fi
27979 rm -f conftest.o conftest.s
27980 fi
27981 fi
27982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
27983 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27984 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27985
27986 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27987
27988 fi
27989
27990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27991 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27992 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
27993 $as_echo_n "(cached) " >&6
27994 else
27995 gcc_cv_as_msp430_mspabi_attribute=no
27996 if test $in_tree_gas = yes; then
27997 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27998 then gcc_cv_as_msp430_mspabi_attribute=yes
27999 fi
28000 elif test x$gcc_cv_as != x; then
28001 $as_echo '.mspabi_attribute 4,2' > conftest.s
28002 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28004 (eval $ac_try) 2>&5
28005 ac_status=$?
28006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28007 test $ac_status = 0; }; }
28008 then
28009 gcc_cv_as_msp430_mspabi_attribute=yes
28010 else
28011 echo "configure: failed program was" >&5
28012 cat conftest.s >&5
28013 fi
28014 rm -f conftest.o conftest.s
28015 fi
28016 fi
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28018 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28019 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28020
28021 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28022
28023 fi
28024
28025 if test x$enable_newlib_nano_formatted_io = xyes; then
28026
28027 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28028
28029 fi
28030 ;;
28031 nios2-*-*)
28032 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28033 # syntax that is documented in the ABI specification.
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28035 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28036 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28037 $as_echo_n "(cached) " >&6
28038 else
28039 gcc_cv_as_nios2_gotoff_relocation=no
28040 if test x$gcc_cv_as != x; then
28041 $as_echo ' .extern foo
28042 .data
28043 .long %gotoff(foo)' > conftest.s
28044 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28046 (eval $ac_try) 2>&5
28047 ac_status=$?
28048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28049 test $ac_status = 0; }; }
28050 then
28051 gcc_cv_as_nios2_gotoff_relocation=yes
28052 else
28053 echo "configure: failed program was" >&5
28054 cat conftest.s >&5
28055 fi
28056 rm -f conftest.o conftest.s
28057 fi
28058 fi
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28060 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28061 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28062
28063 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28064
28065 fi
28066
28067 ;;
28068 riscv*-*-*)
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28070 $as_echo_n "checking assembler for .attribute support... " >&6; }
28071 if ${gcc_cv_as_riscv_attribute+:} false; then :
28072 $as_echo_n "(cached) " >&6
28073 else
28074 gcc_cv_as_riscv_attribute=no
28075 if test $in_tree_gas = yes; then
28076 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
28077 then gcc_cv_as_riscv_attribute=yes
28078 fi
28079 elif test x$gcc_cv_as != x; then
28080 $as_echo '.attribute stack_align,4' > conftest.s
28081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28083 (eval $ac_try) 2>&5
28084 ac_status=$?
28085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28086 test $ac_status = 0; }; }
28087 then
28088 gcc_cv_as_riscv_attribute=yes
28089 else
28090 echo "configure: failed program was" >&5
28091 cat conftest.s >&5
28092 fi
28093 rm -f conftest.o conftest.s
28094 fi
28095 fi
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28097 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28098 if test $gcc_cv_as_riscv_attribute = yes; then
28099
28100 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28101
28102 fi
28103
28104 ;;
28105 s390*-*-*)
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28107 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28108 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28109 $as_echo_n "(cached) " >&6
28110 else
28111 gcc_cv_as_s390_gnu_attribute=no
28112 if test $in_tree_gas = yes; then
28113 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28114 then gcc_cv_as_s390_gnu_attribute=yes
28115 fi
28116 elif test x$gcc_cv_as != x; then
28117 $as_echo '.gnu_attribute 8,1' > conftest.s
28118 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28120 (eval $ac_try) 2>&5
28121 ac_status=$?
28122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28123 test $ac_status = 0; }; }
28124 then
28125 gcc_cv_as_s390_gnu_attribute=yes
28126 else
28127 echo "configure: failed program was" >&5
28128 cat conftest.s >&5
28129 fi
28130 rm -f conftest.o conftest.s
28131 fi
28132 fi
28133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28134 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28135 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28136
28137 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28138
28139 fi
28140
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28142 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28143 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28144 $as_echo_n "(cached) " >&6
28145 else
28146 gcc_cv_as_s390_machine_machinemode=no
28147 if test $in_tree_gas = yes; then
28148 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28149 then gcc_cv_as_s390_machine_machinemode=yes
28150 fi
28151 elif test x$gcc_cv_as != x; then
28152 $as_echo ' .machinemode push
28153 .machinemode pop
28154 .machine push
28155 .machine pop' > conftest.s
28156 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28158 (eval $ac_try) 2>&5
28159 ac_status=$?
28160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28161 test $ac_status = 0; }; }
28162 then
28163 gcc_cv_as_s390_machine_machinemode=yes
28164 else
28165 echo "configure: failed program was" >&5
28166 cat conftest.s >&5
28167 fi
28168 rm -f conftest.o conftest.s
28169 fi
28170 fi
28171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28172 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28173 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28174
28175 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28176
28177 fi
28178
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28180 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28181 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28182 $as_echo_n "(cached) " >&6
28183 else
28184 gcc_cv_as_s390_architecture_modifiers=no
28185 if test $in_tree_gas = yes; then
28186 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28187 then gcc_cv_as_s390_architecture_modifiers=yes
28188 fi
28189 elif test x$gcc_cv_as != x; then
28190 $as_echo ' .machine z13+vx ' > conftest.s
28191 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28193 (eval $ac_try) 2>&5
28194 ac_status=$?
28195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28196 test $ac_status = 0; }; }
28197 then
28198 gcc_cv_as_s390_architecture_modifiers=yes
28199 else
28200 echo "configure: failed program was" >&5
28201 cat conftest.s >&5
28202 fi
28203 rm -f conftest.o conftest.s
28204 fi
28205 fi
28206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28207 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28208 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28209
28210 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28211
28212 fi
28213
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28215 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28216 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28217 $as_echo_n "(cached) " >&6
28218 else
28219 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28220 if test $in_tree_gas = yes; then
28221 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28222 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28223 fi
28224 elif test x$gcc_cv_as != x; then
28225 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28226 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28228 (eval $ac_try) 2>&5
28229 ac_status=$?
28230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28231 test $ac_status = 0; }; }
28232 then
28233 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28234 else
28235 echo "configure: failed program was" >&5
28236 cat conftest.s >&5
28237 fi
28238 rm -f conftest.o conftest.s
28239 fi
28240 fi
28241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28242 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28243 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28244
28245 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28246
28247 fi
28248
28249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28250 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28251 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
28252 $as_echo_n "(cached) " >&6
28253 else
28254 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
28255 if test x$gcc_cv_as != x; then
28256 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28259 (eval $ac_try) 2>&5
28260 ac_status=$?
28261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28262 test $ac_status = 0; }; }
28263 then
28264 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
28265 else
28266 echo "configure: failed program was" >&5
28267 cat conftest.s >&5
28268 fi
28269 rm -f conftest.o conftest.s
28270 fi
28271 fi
28272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28273 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28274 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28275
28276 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
28277
28278 fi
28279
28280
28281 ;;
28282 esac
28283
28284 # Mips and HP-UX need the GNU assembler.
28285 # Linux on IA64 might be able to use the Intel assembler.
28286
28287 case "$target" in
28288 mips*-*-* | *-*-hpux* )
28289 if test x$gas_flag = xyes \
28290 || test x"$host" != x"$build" \
28291 || test ! -x "$gcc_cv_as" \
28292 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28293 :
28294 else
28295 echo "*** This configuration requires the GNU assembler" >&2
28296 exit 1
28297 fi
28298 ;;
28299 esac
28300
28301 # ??? Not all targets support dwarf2 debug_line, even within a version
28302 # of gas. Moreover, we need to emit a valid instruction to trigger any
28303 # info to the output file. So, as supported targets are added to gas 2.11,
28304 # add some instruction here to (also) show we expect this might work.
28305 # ??? Once 2.11 is released, probably need to add first known working
28306 # version to the per-target configury.
28307 case "$cpu_type" in
28308 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28309 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28310 | tilegx | tilepro | visium | xstormy16 | xtensa)
28311 insn="nop"
28312 ;;
28313 ia64 | s390)
28314 insn="nop 0"
28315 ;;
28316 mmix)
28317 insn="swym 0"
28318 ;;
28319 esac
28320 if test x"$insn" != x; then
28321 conftest_s="\
28322 .file 1 \"conftest.s\"
28323 .loc 1 3 0
28324 $insn"
28325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28326 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28327 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
28328 $as_echo_n "(cached) " >&6
28329 else
28330 gcc_cv_as_dwarf2_debug_line=no
28331 if test $in_tree_gas = yes; then
28332 if test $in_tree_gas_is_elf = yes \
28333 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28334 then gcc_cv_as_dwarf2_debug_line=yes
28335 fi
28336 elif test x$gcc_cv_as != x; then
28337 $as_echo "$conftest_s" > conftest.s
28338 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28340 (eval $ac_try) 2>&5
28341 ac_status=$?
28342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28343 test $ac_status = 0; }; }
28344 then
28345 if test x$gcc_cv_objdump != x \
28346 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
28347 | grep debug_line > /dev/null 2>&1; then
28348 gcc_cv_as_dwarf2_debug_line=yes
28349 elif test x$gcc_cv_otool != x \
28350 && $gcc_cv_otool -l conftest.o 2> /dev/null \
28351 | grep debug_line > /dev/null 2>&1; then
28352 gcc_cv_as_dwarf2_debug_line=yes
28353 fi
28354 else
28355 echo "configure: failed program was" >&5
28356 cat conftest.s >&5
28357 fi
28358 rm -f conftest.o conftest.s
28359 fi
28360 fi
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28362 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28363
28364
28365
28366 # The .debug_line file table must be in the exact order that
28367 # we specified the files, since these indices are also used
28368 # by DW_AT_decl_file. Approximate this test by testing if
28369 # the assembler bitches if the same index is assigned twice.
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28371 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28372 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
28373 $as_echo_n "(cached) " >&6
28374 else
28375 gcc_cv_as_dwarf2_file_buggy=no
28376 if test x$gcc_cv_as != x; then
28377 $as_echo ' .file 1 "foo.s"
28378 .file 1 "bar.s"' > conftest.s
28379 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28381 (eval $ac_try) 2>&5
28382 ac_status=$?
28383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28384 test $ac_status = 0; }; }
28385 then
28386 gcc_cv_as_dwarf2_file_buggy=yes
28387 else
28388 echo "configure: failed program was" >&5
28389 cat conftest.s >&5
28390 fi
28391 rm -f conftest.o conftest.s
28392 fi
28393 fi
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28395 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28396
28397
28398
28399 if test $gcc_cv_as_dwarf2_debug_line = yes \
28400 && test $gcc_cv_as_dwarf2_file_buggy = no; then
28401
28402 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28403
28404
28405 if test $gcc_cv_as_leb128 = yes; then
28406 conftest_s="\
28407 .file 1 \"conftest.s\"
28408 .loc 1 3 0 view .LVU1
28409 $insn
28410 .data
28411 .uleb128 .LVU1
28412 .uleb128 .LVU1
28413 "
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28415 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28416 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
28417 $as_echo_n "(cached) " >&6
28418 else
28419 gcc_cv_as_dwarf2_debug_view=no
28420 if test $in_tree_gas = yes; then
28421 if test $in_tree_gas_is_elf = yes \
28422 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28423 then gcc_cv_as_dwarf2_debug_view=yes
28424 fi
28425 elif test x$gcc_cv_as != x; then
28426 $as_echo "$conftest_s" > conftest.s
28427 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28429 (eval $ac_try) 2>&5
28430 ac_status=$?
28431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28432 test $ac_status = 0; }; }
28433 then
28434 gcc_cv_as_dwarf2_debug_view=yes
28435 else
28436 echo "configure: failed program was" >&5
28437 cat conftest.s >&5
28438 fi
28439 rm -f conftest.o conftest.s
28440 fi
28441 fi
28442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28443 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28444 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28445
28446 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28447
28448 fi
28449
28450 fi
28451 fi
28452
28453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28454 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28455 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
28456 $as_echo_n "(cached) " >&6
28457 else
28458 gcc_cv_as_gdwarf2_flag=no
28459 if test $in_tree_gas = yes; then
28460 if test $in_tree_gas_is_elf = yes \
28461 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28462 then gcc_cv_as_gdwarf2_flag=yes
28463 fi
28464 elif test x$gcc_cv_as != x; then
28465 $as_echo "$insn" > conftest.s
28466 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28468 (eval $ac_try) 2>&5
28469 ac_status=$?
28470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28471 test $ac_status = 0; }; }
28472 then
28473 gcc_cv_as_gdwarf2_flag=yes
28474 else
28475 echo "configure: failed program was" >&5
28476 cat conftest.s >&5
28477 fi
28478 rm -f conftest.o conftest.s
28479 fi
28480 fi
28481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28482 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28483 if test $gcc_cv_as_gdwarf2_flag = yes; then
28484
28485 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28486
28487 fi
28488
28489
28490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
28491 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
28492 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
28493 $as_echo_n "(cached) " >&6
28494 else
28495 gcc_cv_as_gdwarf_5_flag=no
28496 if test $in_tree_gas = yes; then
28497 if test $in_tree_gas_is_elf = yes \
28498 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
28499 then gcc_cv_as_gdwarf_5_flag=yes
28500 fi
28501 elif test x$gcc_cv_as != x; then
28502 $as_echo "$insn" > conftest.s
28503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
28504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28505 (eval $ac_try) 2>&5
28506 ac_status=$?
28507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28508 test $ac_status = 0; }; }
28509 then
28510 gcc_cv_as_gdwarf_5_flag=yes
28511 else
28512 echo "configure: failed program was" >&5
28513 cat conftest.s >&5
28514 fi
28515 rm -f conftest.o conftest.s
28516 fi
28517 fi
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
28519 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
28520 if test $gcc_cv_as_gdwarf_5_flag = yes; then
28521
28522 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
28523
28524 fi
28525
28526
28527 dwarf4_debug_info_size=0x46
28528 dwarf4_high_pc_form=7
28529 dwarf4_debug_aranges_size=0x2c
28530 dwarf4_line_sz=9
28531 for dwarf4_addr_size in 8 4; do
28532 conftest_s="\
28533 .file \"a.c\"
28534 .text
28535 .Ltext0:
28536 .p2align 4
28537 .globl foo
28538 .type foo, %function
28539 foo:
28540 .LFB0:
28541 .LM1:
28542 $insn
28543 .LM2:
28544 .LFE0:
28545 .size foo, .-foo
28546 .Letext0:
28547 .section .debug_info,\"\",%progbits
28548 .Ldebug_info0:
28549 .4byte $dwarf4_debug_info_size
28550 .2byte 0x4
28551 .4byte .Ldebug_abbrev0
28552 .byte 0x$dwarf4_addr_size
28553 .byte 0x1
28554 .ascii \"GNU C17\\0\"
28555 .byte 0xc
28556 .ascii \"a.c\\0\"
28557 .ascii \"/\\0\"
28558 .${dwarf4_addr_size}byte .Ltext0
28559 .${dwarf4_addr_size}byte .Letext0-.Ltext0
28560 .4byte .Ldebug_line0
28561 .byte 0x2
28562 .ascii \"foo\\0\"
28563 .byte 0x1
28564 .byte 0x2
28565 .byte 0x1
28566 .${dwarf4_addr_size}byte .LFB0
28567 .${dwarf4_addr_size}byte .LFE0-.LFB0
28568 .byte 0x1
28569 .byte 0x9c
28570 .byte 0
28571 .section .debug_abbrev,\"\",%progbits
28572 .Ldebug_abbrev0:
28573 .byte 0x1
28574 .byte 0x11
28575 .byte 0x1
28576 .byte 0x25
28577 .byte 0x8
28578 .byte 0x13
28579 .byte 0xb
28580 .byte 0x3
28581 .byte 0x8
28582 .byte 0x1b
28583 .byte 0x8
28584 .byte 0x11
28585 .byte 0x1
28586 .byte 0x12
28587 .byte 0x$dwarf4_high_pc_form
28588 .byte 0x10
28589 .byte 0x17
28590 .byte 0
28591 .byte 0
28592 .byte 0x2
28593 .byte 0x2e
28594 .byte 0
28595 .byte 0x3f
28596 .byte 0x19
28597 .byte 0x3
28598 .byte 0x8
28599 .byte 0x3a
28600 .byte 0xb
28601 .byte 0x3b
28602 .byte 0xb
28603 .byte 0x39
28604 .byte 0xb
28605 .byte 0x11
28606 .byte 0x1
28607 .byte 0x12
28608 .byte 0x$dwarf4_high_pc_form
28609 .byte 0x40
28610 .byte 0x18
28611 .byte 0
28612 .byte 0
28613 .byte 0
28614 .section .debug_aranges,\"\",%progbits
28615 .4byte $dwarf4_debug_aranges_size
28616 .2byte 0x2
28617 .4byte .Ldebug_info0
28618 .byte 0x8
28619 .byte 0
28620 .2byte 0
28621 .2byte 0
28622 .${dwarf4_addr_size}byte .Ltext0
28623 .${dwarf4_addr_size}byte .Letext0-.Ltext0
28624 .${dwarf4_addr_size}byte 0
28625 .${dwarf4_addr_size}byte 0
28626 .section .debug_line,\"\",%progbits
28627 .Ldebug_line0:
28628 .4byte .LELT0-.LSLT0
28629 .LSLT0:
28630 .2byte 0x4
28631 .4byte .LELTP0-.LASLTP0
28632 .LASLTP0:
28633 .byte 0x1
28634 .byte 0x1
28635 .byte 0x1
28636 .byte 0xf6
28637 .byte 0xf2
28638 .byte 0xd
28639 .byte 0
28640 .byte 0x1
28641 .byte 0x1
28642 .byte 0x1
28643 .byte 0x1
28644 .byte 0
28645 .byte 0
28646 .byte 0
28647 .byte 0x1
28648 .byte 0
28649 .byte 0
28650 .byte 0x1
28651 .byte 0
28652 .ascii \"a.c\\0\"
28653 .byte 0
28654 .byte 0
28655 .byte 0
28656 .byte 0
28657 .LELTP0:
28658 .byte 0
28659 .byte 0x$dwarf4_line_sz
28660 .byte 0x2
28661 .${dwarf4_addr_size}byte .LM1
28662 .byte 0x18
28663 .byte 0x5
28664 .byte 0x1
28665 .byte 0
28666 .byte 0x$dwarf4_line_sz
28667 .byte 0x2
28668 .${dwarf4_addr_size}byte .LM2
28669 .byte 0x1
28670 .byte 0x5
28671 .byte 0x1
28672 .byte 0
28673 .byte 0x$dwarf4_line_sz
28674 .byte 0x2
28675 .${dwarf4_addr_size}byte .Letext0
28676 .byte 0
28677 .byte 0x1
28678 .byte 0x1
28679 .LELT0:
28680 .section .debug_str,\"\",%progbits
28681 .ident \"GCC\"
28682 "
28683 dwarf4_success=no
28684 if test $dwarf4_addr_size = 4; then
28685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
28686 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
28687 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
28688 $as_echo_n "(cached) " >&6
28689 else
28690 gcc_cv_as_debug_line_32_flag=no
28691 if test $in_tree_gas = yes; then
28692 if test $in_tree_gas_is_elf = yes \
28693 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
28694 then gcc_cv_as_debug_line_32_flag=yes
28695 fi
28696 elif test x$gcc_cv_as != x; then
28697 $as_echo "$conftest_s" > conftest.s
28698 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28700 (eval $ac_try) 2>&5
28701 ac_status=$?
28702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28703 test $ac_status = 0; }; }
28704 then
28705 gcc_cv_as_debug_line_32_flag=yes
28706 else
28707 echo "configure: failed program was" >&5
28708 cat conftest.s >&5
28709 fi
28710 rm -f conftest.o conftest.s
28711 fi
28712 fi
28713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
28714 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
28715 if test $gcc_cv_as_debug_line_32_flag = yes; then
28716 dwarf4_success=yes
28717 fi
28718
28719 else
28720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
28721 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
28722 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
28723 $as_echo_n "(cached) " >&6
28724 else
28725 gcc_cv_as_debug_line_64_flag=no
28726 if test $in_tree_gas = yes; then
28727 if test $in_tree_gas_is_elf = yes \
28728 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
28729 then gcc_cv_as_debug_line_64_flag=yes
28730 fi
28731 elif test x$gcc_cv_as != x; then
28732 $as_echo "$conftest_s" > conftest.s
28733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28735 (eval $ac_try) 2>&5
28736 ac_status=$?
28737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28738 test $ac_status = 0; }; }
28739 then
28740 gcc_cv_as_debug_line_64_flag=yes
28741 else
28742 echo "configure: failed program was" >&5
28743 cat conftest.s >&5
28744 fi
28745 rm -f conftest.o conftest.s
28746 fi
28747 fi
28748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
28749 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
28750 if test $gcc_cv_as_debug_line_64_flag = yes; then
28751 dwarf4_success=yes
28752 fi
28753
28754 fi
28755 if test $dwarf4_success = yes; then
28756 dwarf4_success=no
28757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
28758 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
28759 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
28760 $as_echo_n "(cached) " >&6
28761 else
28762 gcc_cv_as_dwarf_4_debug_line_flag=no
28763 if test $in_tree_gas = yes; then
28764 if test $in_tree_gas_is_elf = yes \
28765 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
28766 then gcc_cv_as_dwarf_4_debug_line_flag=yes
28767 fi
28768 elif test x$gcc_cv_as != x; then
28769 $as_echo "$conftest_s" > conftest.s
28770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
28771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28772 (eval $ac_try) 2>&5
28773 ac_status=$?
28774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28775 test $ac_status = 0; }; }
28776 then
28777 gcc_cv_as_dwarf_4_debug_line_flag=yes
28778 else
28779 echo "configure: failed program was" >&5
28780 cat conftest.s >&5
28781 fi
28782 rm -f conftest.o conftest.s
28783 fi
28784 fi
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
28786 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
28787 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
28788 dwarf4_success=yes
28789 fi
28790
28791 break
28792 fi
28793 dwarf4_debug_info_size=0x36
28794 dwarf4_high_pc_form=6
28795 dwarf4_debug_aranges_size=0x1c
28796 dwarf4_line_sz=5
28797 done
28798
28799 if test $dwarf4_success = yes; then
28800 conftest_s="\
28801 .file \"foo.c\"
28802 .text
28803 bar:
28804 #APP
28805 # 82 \"xxx.h\" 1
28806 $insn
28807 # 0 \"\" 2
28808 #NO_APP
28809 $insn
28810 foo:
28811 .file 1 \"foo.c\"
28812 $insn
28813 .file 2 \"foo.h\"
28814 ret
28815 "
28816 dwarf4_success=no
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
28818 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
28819 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
28820 $as_echo_n "(cached) " >&6
28821 else
28822 gcc_cv_as_dwarf_4_app_flag=no
28823 if test x$gcc_cv_as != x; then
28824 $as_echo "$conftest_s" > conftest.s
28825 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
28826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28827 (eval $ac_try) 2>&5
28828 ac_status=$?
28829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28830 test $ac_status = 0; }; }
28831 then
28832 gcc_cv_as_dwarf_4_app_flag=yes
28833 else
28834 echo "configure: failed program was" >&5
28835 cat conftest.s >&5
28836 fi
28837 rm -f conftest.o conftest.s
28838 fi
28839 fi
28840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
28841 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
28842 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
28843 dwarf4_success=yes
28844 fi
28845
28846 fi
28847
28848 if test $dwarf4_success = yes; then
28849 conftest_s="\
28850 .text
28851 .globl foo
28852 .type foo, %function
28853 foo:
28854 $insn
28855 .size foo, .-foo
28856 .file 1 \"foo.c\"
28857 "
28858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
28859 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
28860 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
28861 $as_echo_n "(cached) " >&6
28862 else
28863 gcc_cv_as_working_gdwarf_n_flag=no
28864 if test x$gcc_cv_as != x; then
28865 $as_echo "$conftest_s" > conftest.s
28866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
28867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28868 (eval $ac_try) 2>&5
28869 ac_status=$?
28870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28871 test $ac_status = 0; }; }
28872 then
28873 if test x$gcc_cv_readelf != x \
28874 && $gcc_cv_readelf -w conftest.o 2>&1 \
28875 | grep conftest.s > /dev/null 2>&1; then
28876 gcc_cv_as_working_gdwarf_n_flag=no
28877 else
28878 gcc_cv_as_working_gdwarf_n_flag=yes
28879 fi
28880 else
28881 echo "configure: failed program was" >&5
28882 cat conftest.s >&5
28883 fi
28884 rm -f conftest.o conftest.s
28885 fi
28886 fi
28887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
28888 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
28889
28890
28891 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
28892
28893 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
28894
28895 fi
28896 fi
28897
28898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28899 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28900 if ${gcc_cv_as_gstabs_flag+:} false; then :
28901 $as_echo_n "(cached) " >&6
28902 else
28903 gcc_cv_as_gstabs_flag=no
28904 if test $in_tree_gas = yes; then
28905 if test $in_tree_gas_is_elf = yes \
28906 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28907 then gcc_cv_as_gstabs_flag=yes
28908 fi
28909 elif test x$gcc_cv_as != x; then
28910 $as_echo "$insn" > conftest.s
28911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28913 (eval $ac_try) 2>&5
28914 ac_status=$?
28915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28916 test $ac_status = 0; }; }
28917 then
28918 gcc_cv_as_gstabs_flag=yes
28919 else
28920 echo "configure: failed program was" >&5
28921 cat conftest.s >&5
28922 fi
28923 rm -f conftest.o conftest.s
28924 fi
28925 fi
28926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28927 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28928 if test $gcc_cv_as_gstabs_flag = yes; then
28929
28930 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28931
28932 fi
28933
28934
28935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28936 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28937 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28938 $as_echo_n "(cached) " >&6
28939 else
28940 gcc_cv_as_debug_prefix_map_flag=no
28941 if test $in_tree_gas = yes; then
28942 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28943 then gcc_cv_as_debug_prefix_map_flag=yes
28944 fi
28945 elif test x$gcc_cv_as != x; then
28946 $as_echo "$insn" > conftest.s
28947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28949 (eval $ac_try) 2>&5
28950 ac_status=$?
28951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28952 test $ac_status = 0; }; }
28953 then
28954 gcc_cv_as_debug_prefix_map_flag=yes
28955 else
28956 echo "configure: failed program was" >&5
28957 cat conftest.s >&5
28958 fi
28959 rm -f conftest.o conftest.s
28960 fi
28961 fi
28962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28963 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28964 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28965
28966 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28967
28968 fi
28969
28970 fi
28971
28972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28973 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28974 if ${gcc_cv_as_compress_debug+:} false; then :
28975 $as_echo_n "(cached) " >&6
28976 else
28977 gcc_cv_as_compress_debug=no
28978 if test x$gcc_cv_as != x; then
28979 $as_echo '' > conftest.s
28980 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28982 (eval $ac_try) 2>&5
28983 ac_status=$?
28984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28985 test $ac_status = 0; }; }
28986 then
28987 # gas compiled without zlib cannot compress debug sections and warns
28988 # about it, but still exits successfully. So check for this, too.
28989 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28990 then
28991 gcc_cv_as_compress_debug=0
28992 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28993 # defaulting to the ELF gABI format.
28994 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28995 then
28996 gcc_cv_as_compress_debug=2
28997 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28998 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28999 # Before binutils 2.26, gas only supported --compress-debug-options and
29000 # emitted the traditional GNU format.
29001 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
29002 then
29003 gcc_cv_as_compress_debug=1
29004 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29005 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29006 else
29007 gcc_cv_as_compress_debug=0
29008 fi
29009 else
29010 echo "configure: failed program was" >&5
29011 cat conftest.s >&5
29012 fi
29013 rm -f conftest.o conftest.s
29014 fi
29015 fi
29016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29017 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29018
29019
29020
29021 cat >>confdefs.h <<_ACEOF
29022 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29023 _ACEOF
29024
29025
29026 cat >>confdefs.h <<_ACEOF
29027 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29028 _ACEOF
29029
29030
29031 cat >>confdefs.h <<_ACEOF
29032 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29033 _ACEOF
29034
29035
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29037 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29038 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29039 $as_echo_n "(cached) " >&6
29040 else
29041 gcc_cv_as_lcomm_with_alignment=no
29042 if test x$gcc_cv_as != x; then
29043 $as_echo '.lcomm bar,4,16' > conftest.s
29044 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29046 (eval $ac_try) 2>&5
29047 ac_status=$?
29048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29049 test $ac_status = 0; }; }
29050 then
29051 gcc_cv_as_lcomm_with_alignment=yes
29052 else
29053 echo "configure: failed program was" >&5
29054 cat conftest.s >&5
29055 fi
29056 rm -f conftest.o conftest.s
29057 fi
29058 fi
29059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29060 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29061 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29062
29063 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29064
29065 fi
29066
29067
29068 if test x$with_sysroot = x && test x$host = x$target \
29069 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29070 && test "$prefix" != "NONE"; then
29071
29072 cat >>confdefs.h <<_ACEOF
29073 #define PREFIX_INCLUDE_DIR "$prefix/include"
29074 _ACEOF
29075
29076 fi
29077
29078 # Determine the version of glibc, if any, used on the target.
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29080 $as_echo_n "checking for target glibc version... " >&6; }
29081
29082 # Check whether --with-glibc-version was given.
29083 if test "${with_glibc_version+set}" = set; then :
29084 withval=$with_glibc_version;
29085 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29086 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29087 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29088 else
29089 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
29090 fi
29091 else
29092
29093 glibc_version_major=0
29094 glibc_version_minor=0
29095 if test -f $target_header_dir/features.h \
29096 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29097 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29098 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29099 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29100 fi
29101 fi
29102
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29104 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29105
29106 cat >>confdefs.h <<_ACEOF
29107 #define TARGET_GLIBC_MAJOR $glibc_version_major
29108 _ACEOF
29109
29110
29111 cat >>confdefs.h <<_ACEOF
29112 #define TARGET_GLIBC_MINOR $glibc_version_minor
29113 _ACEOF
29114
29115
29116 # Check whether --enable-gnu-unique-object was given.
29117 if test "${enable_gnu_unique_object+set}" = set; then :
29118 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29119 yes | no) ;;
29120 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29121 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29122 esac
29123 else
29124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29125 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29126 if ${gcc_cv_as_gnu_unique_object+:} false; then :
29127 $as_echo_n "(cached) " >&6
29128 else
29129 gcc_cv_as_gnu_unique_object=no
29130 if test $in_tree_gas = yes; then
29131 if test $in_tree_gas_is_elf = yes \
29132 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
29133 then gcc_cv_as_gnu_unique_object=yes
29134 fi
29135 elif test x$gcc_cv_as != x; then
29136 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29137 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29139 (eval $ac_try) 2>&5
29140 ac_status=$?
29141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29142 test $ac_status = 0; }; }
29143 then
29144 gcc_cv_as_gnu_unique_object=yes
29145 else
29146 echo "configure: failed program was" >&5
29147 cat conftest.s >&5
29148 fi
29149 rm -f conftest.o conftest.s
29150 fi
29151 fi
29152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29153 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29154 if test $gcc_cv_as_gnu_unique_object = yes; then
29155 # We need to unquote above to to use the definition from config.gcc.
29156 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29157
29158 if test $glibc_version_major -gt 2 \
29159 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29160 enable_gnu_unique_object=yes
29161 fi
29162
29163 fi
29164
29165 fi
29166
29167 if test x$enable_gnu_unique_object = xyes; then
29168
29169 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29170
29171 fi
29172
29173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29174 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29175 if ${gcc_cv_as_line_zero+:} false; then :
29176 $as_echo_n "(cached) " >&6
29177 else
29178 gcc_cv_as_line_zero=no
29179 if test $in_tree_gas = yes; then
29180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
29181 then gcc_cv_as_line_zero=yes
29182 fi
29183 elif test "x$gcc_cv_as" != x; then
29184 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29185 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29187 (eval $ac_try) 2>&5
29188 ac_status=$?
29189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29190 test $ac_status = 0; }; } &&
29191 test "x`cat conftest.out`" = x
29192 then
29193 gcc_cv_as_line_zero=yes
29194 else
29195 echo "configure: failed program was" >&5
29196 cat conftest.s >&5
29197 echo "configure: error output was" >&5
29198 cat conftest.out >&5
29199 fi
29200 rm -f conftest.o conftest.s conftest.out
29201 fi
29202 fi
29203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29204 $as_echo "$gcc_cv_as_line_zero" >&6; }
29205 if test "x$gcc_cv_as_line_zero" = xyes; then
29206
29207 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29208
29209 fi
29210
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29212 $as_echo_n "checking support for thin archives... " >&6; }
29213 thin_archive_support=no
29214 echo 'int main (void) { return 0; }' > conftest.c
29215 if ($AR --version | sed 1q | grep "GNU ar" \
29216 && $CC $CFLAGS -c conftest.c \
29217 && $AR rcT conftest.a conftest.o \
29218 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
29219 thin_archive_support=yes
29220 fi
29221 rm -f conftest.c conftest.o conftest.a conftest
29222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29223 $as_echo "$thin_archive_support" >&6; }
29224
29225
29226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29227 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29228 gcc_cv_ld_eh_frame_hdr=no
29229 if test $in_tree_ld = yes ; then
29230 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 \
29231 && test $in_tree_ld_is_elf = yes; then
29232 gcc_cv_ld_eh_frame_hdr=yes
29233 fi
29234 elif test x$gcc_cv_ld != x; then
29235 if echo "$ld_ver" | grep GNU > /dev/null; then
29236 # Check if linker supports --eh-frame-hdr option
29237 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
29238 gcc_cv_ld_eh_frame_hdr=yes
29239 fi
29240 else
29241 case "$target" in
29242 *-*-solaris2*)
29243 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
29244 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
29245 gcc_cv_ld_eh_frame_hdr=yes
29246 fi
29247 ;;
29248 esac
29249 fi
29250 fi
29251
29252 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
29253
29254 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
29255
29256 fi
29257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
29258 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
29259
29260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
29261 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
29262 gcc_cv_ld_eh_frame_ciev3=no
29263 if test $in_tree_ld = yes ; then
29264 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 \
29265 && test $in_tree_ld_is_elf = yes; then
29266 gcc_cv_ld_eh_frame_ciev3=yes
29267 fi
29268 elif test x$gcc_cv_ld != x; then
29269 if echo "$ld_ver" | grep GNU > /dev/null; then
29270 gcc_cv_ld_eh_frame_ciev3=yes
29271 if test 0"$ld_date" -lt 20040513; then
29272 if test -n "$ld_date"; then
29273 # If there was date string, but was earlier than 2004-05-13, fail
29274 gcc_cv_ld_eh_frame_ciev3=no
29275 elif test "$ld_vers_major" -lt 2; then
29276 gcc_cv_ld_eh_frame_ciev3=no
29277 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
29278 gcc_cv_ld_eh_frame_ciev3=no
29279 fi
29280 fi
29281 else
29282 case "$target" in
29283 *-*-solaris2*)
29284 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
29285 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
29286 gcc_cv_ld_eh_frame_ciev3=yes
29287 fi
29288 ;;
29289 esac
29290 fi
29291 fi
29292
29293 cat >>confdefs.h <<_ACEOF
29294 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
29295 _ACEOF
29296
29297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
29298 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
29299
29300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
29301 $as_echo_n "checking linker position independent executable support... " >&6; }
29302 gcc_cv_ld_pie=no
29303 if test $in_tree_ld = yes ; then
29304 case "$target" in
29305 # Full PIE support on Solaris was only introduced in gld 2.26.
29306 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
29307 *) gcc_gld_pie_min_version=15 ;;
29308 esac
29309 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 \
29310 && test $in_tree_ld_is_elf = yes; then
29311 gcc_cv_ld_pie=yes
29312 fi
29313 elif test x$gcc_cv_ld != x; then
29314 # Check if linker supports -pie option
29315 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
29316 gcc_cv_ld_pie=yes
29317 case "$target" in
29318 *-*-solaris2*)
29319 if echo "$ld_ver" | grep GNU > /dev/null \
29320 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29321 gcc_cv_ld_pie=no
29322 fi
29323 ;;
29324 esac
29325 else
29326 case "$target" in
29327 *-*-solaris2.1[1-9]*)
29328 # Solaris 11.3 added PIE support.
29329 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
29330 gcc_cv_ld_pie=yes
29331 fi
29332 ;;
29333 esac
29334 fi
29335 fi
29336 if test x"$gcc_cv_ld_pie" = xyes; then
29337
29338 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
29339
29340 fi
29341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
29342 $as_echo "$gcc_cv_ld_pie" >&6; }
29343
29344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
29345 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
29346 gcc_cv_ld_pie_copyreloc=no
29347 if test $gcc_cv_ld_pie = yes ; then
29348 if test $in_tree_ld = yes ; then
29349 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
29350 gcc_cv_ld_pie_copyreloc=yes
29351 fi
29352 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29353 # Check if linker supports -pie option with copy reloc
29354 case "$target" in
29355 i?86-*-linux* | x86_64-*-linux*)
29356 cat > conftest1.s <<EOF
29357 .globl a_glob
29358 .data
29359 .type a_glob, @object
29360 .size a_glob, 4
29361 a_glob:
29362 .long 2
29363 EOF
29364 cat > conftest2.s <<EOF
29365 .text
29366 .globl main
29367 .type main, @function
29368 main:
29369 movl %eax, a_glob(%rip)
29370 .size main, .-main
29371 .globl ptr
29372 .section .data.rel,"aw",@progbits
29373 .type ptr, @object
29374 ptr:
29375 .quad a_glob
29376 EOF
29377 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29378 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
29379 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29380 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
29381 gcc_cv_ld_pie_copyreloc=yes
29382 fi
29383 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
29384 ;;
29385 esac
29386 fi
29387 fi
29388
29389 cat >>confdefs.h <<_ACEOF
29390 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
29391 _ACEOF
29392
29393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
29394 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
29395
29396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
29397 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
29398 gcc_cv_ld_eh_gc_sections=no
29399 if test $in_tree_ld = yes ; then
29400 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 \
29401 && test $in_tree_ld_is_elf = yes; then
29402 gcc_cv_ld_eh_gc_sections=yes
29403 fi
29404 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
29405 cat > conftest.s <<EOF
29406 .section .text
29407 .globl _start
29408 .type _start, @function
29409 _start:
29410 .long foo
29411 .size _start, .-_start
29412 .section .text.foo,"ax",@progbits
29413 .type foo, @function
29414 foo:
29415 .long 0
29416 .size foo, .-foo
29417 .section .gcc_except_table.foo,"a",@progbits
29418 .L0:
29419 .long 0
29420 .section .eh_frame,"a",@progbits
29421 .long .L0
29422 EOF
29423 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29424 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29425 | grep "gc-sections option ignored" > /dev/null; then
29426 gcc_cv_ld_eh_gc_sections=no
29427 elif $gcc_cv_objdump -h conftest 2> /dev/null \
29428 | grep gcc_except_table > /dev/null; then
29429 gcc_cv_ld_eh_gc_sections=yes
29430 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
29431 if test x$gcc_cv_as_comdat_group != xyes; then
29432 gcc_cv_ld_eh_gc_sections=no
29433 cat > conftest.s <<EOF
29434 .section .text
29435 .globl _start
29436 .type _start, @function
29437 _start:
29438 .long foo
29439 .size _start, .-_start
29440 .section .gnu.linkonce.t.foo,"ax",@progbits
29441 .type foo, @function
29442 foo:
29443 .long 0
29444 .size foo, .-foo
29445 .section .gcc_except_table.foo,"a",@progbits
29446 .L0:
29447 .long 0
29448 .section .eh_frame,"a",@progbits
29449 .long .L0
29450 EOF
29451 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29452 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29453 | grep "gc-sections option ignored" > /dev/null; then
29454 gcc_cv_ld_eh_gc_sections=no
29455 elif $gcc_cv_objdump -h conftest 2> /dev/null \
29456 | grep gcc_except_table > /dev/null; then
29457 gcc_cv_ld_eh_gc_sections=yes
29458 fi
29459 fi
29460 fi
29461 fi
29462 fi
29463 rm -f conftest.s conftest.o conftest
29464 fi
29465 case "$target" in
29466 hppa*-*-linux*)
29467 # ??? This apparently exposes a binutils bug with PC-relative relocations.
29468 gcc_cv_ld_eh_gc_sections=no
29469 ;;
29470 esac
29471 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
29472
29473 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
29474
29475 fi
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
29477 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
29478
29479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
29480 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
29481 gcc_cv_ld_eh_gc_sections_bug=no
29482 if test $in_tree_ld = yes ; then
29483 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 \
29484 && test $in_tree_ld_is_elf = yes; then
29485 gcc_cv_ld_eh_gc_sections_bug=yes
29486 fi
29487 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
29488 gcc_cv_ld_eh_gc_sections_bug=yes
29489 cat > conftest.s <<EOF
29490 .section .text
29491 .globl _start
29492 .type _start, @function
29493 _start:
29494 .long foo
29495 .size _start, .-_start
29496 .section .text.startup.foo,"ax",@progbits
29497 .type foo, @function
29498 foo:
29499 .long 0
29500 .size foo, .-foo
29501 .section .gcc_except_table.foo,"a",@progbits
29502 .L0:
29503 .long 0
29504 .section .eh_frame,"a",@progbits
29505 .long .L0
29506 EOF
29507 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29508 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29509 | grep "gc-sections option ignored" > /dev/null; then
29510 :
29511 elif $gcc_cv_objdump -h conftest 2> /dev/null \
29512 | grep gcc_except_table > /dev/null; then
29513 gcc_cv_ld_eh_gc_sections_bug=no
29514 fi
29515 fi
29516 rm -f conftest.s conftest.o conftest
29517 fi
29518 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
29519
29520 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
29521
29522 fi
29523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
29524 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
29525
29526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
29527 $as_echo_n "checking linker for compressed debug sections... " >&6; }
29528 # gold/gld support compressed debug sections since binutils 2.19/2.21
29529 # In binutils 2.26, gld gained support for the ELF gABI format.
29530 if test $in_tree_ld = yes ; then
29531 gcc_cv_ld_compress_debug=0
29532 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 \
29533 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
29534 gcc_cv_ld_compress_debug=2
29535 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29536 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 \
29537 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
29538 gcc_cv_ld_compress_debug=3
29539 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29540 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 \
29541 && test $in_tree_ld_is_elf = yes; then
29542 gcc_cv_ld_compress_debug=1
29543 fi
29544 elif echo "$ld_ver" | grep GNU > /dev/null; then
29545 if test "$ld_vers_major" -lt 2 \
29546 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
29547 gcc_cv_ld_compress_debug=0
29548 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29549 gcc_cv_ld_compress_debug=1
29550 else
29551 gcc_cv_ld_compress_debug=3
29552 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29553 fi
29554 if test $ld_is_gold = yes; then
29555 gcc_cv_ld_compress_debug=2
29556 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29557 fi
29558 else
29559 case "${target}" in
29560 *-*-solaris2*)
29561 # Introduced in Solaris 11.2.
29562 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
29563 gcc_cv_ld_compress_debug=3
29564 gcc_cv_ld_compress_debug_option="-z compress-sections"
29565 else
29566 gcc_cv_ld_compress_debug=0
29567 fi
29568 ;;
29569 *)
29570 # Assume linkers other than GNU ld don't support compessed debug
29571 # sections.
29572 gcc_cv_ld_compress_debug=0
29573 ;;
29574 esac
29575 fi
29576
29577 cat >>confdefs.h <<_ACEOF
29578 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
29579 _ACEOF
29580
29581
29582 cat >>confdefs.h <<_ACEOF
29583 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
29584 _ACEOF
29585
29586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
29587 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
29588
29589 if test x"$ld64_flag" = x"yes"; then
29590
29591 # Set defaults for possibly untestable items.
29592 gcc_cv_ld64_export_dynamic=0
29593
29594 if test "$build" = "$host"; then
29595 darwin_try_test=1
29596 else
29597 darwin_try_test=0
29598 fi
29599
29600 # On Darwin, because of FAT library support, it is often possible to execute
29601 # exes from compatible archs even when the host differs from the build system.
29602 case "$build","$host" in
29603 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
29604 darwin_try_test=1;;
29605 *) ;;
29606 esac
29607
29608 # If the configurer specified a minimum ld64 version to be supported, then use
29609 # that to determine feature support.
29610 if test x"${gcc_cv_ld64_version}" != x; then
29611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
29612 $as_echo_n "checking ld64 specified version... " >&6; }
29613 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
29614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
29615 $as_echo "$gcc_cv_ld64_major" >&6; }
29616 if test "$gcc_cv_ld64_major" -ge 236; then
29617 gcc_cv_ld64_export_dynamic=1
29618 fi
29619 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
29620 # If the version was not specified, try to find it.
29621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
29622 $as_echo_n "checking linker version... " >&6; }
29623 if test x"${gcc_cv_ld64_version}" = x; then
29624 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29625 fi
29626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29627 $as_echo "$gcc_cv_ld64_version" >&6; }
29628
29629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29630 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
29631 gcc_cv_ld64_export_dynamic=1
29632 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
29633 gcc_cv_ld64_export_dynamic=0
29634 fi
29635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29636 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29637 fi
29638
29639 if test x"${gcc_cv_ld64_version}" != x; then
29640
29641 cat >>confdefs.h <<_ACEOF
29642 #define LD64_VERSION "${gcc_cv_ld64_version}"
29643 _ACEOF
29644
29645 fi
29646
29647
29648 cat >>confdefs.h <<_ACEOF
29649 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29650 _ACEOF
29651
29652 fi
29653
29654 # --------
29655 # UNSORTED
29656 # --------
29657
29658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29659 $as_echo_n "checking linker --as-needed support... " >&6; }
29660 if ${gcc_cv_ld_as_needed+:} false; then :
29661 $as_echo_n "(cached) " >&6
29662 else
29663 gcc_cv_ld_as_needed=no
29664 gcc_cv_ld_as_needed_option='--as-needed'
29665 gcc_cv_ld_no_as_needed_option='--no-as-needed'
29666 if test $in_tree_ld = yes ; then
29667 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 \
29668 && test $in_tree_ld_is_elf = yes; then
29669 gcc_cv_ld_as_needed=yes
29670 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29671 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29672 gcc_cv_ld_no_as_needed_option='--pop-state'
29673 fi
29674 fi
29675 elif test x$gcc_cv_ld != x; then
29676 # Check if linker supports --as-needed and --no-as-needed options
29677 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
29678 gcc_cv_ld_as_needed=yes
29679 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
29680 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
29681 && echo "$ld_ver" | grep GNU > /dev/null \
29682 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29683 # Use these options only when both ld.bfd and ld.gold support
29684 # --push-state/--pop-state, which unfortunately wasn't added
29685 # at the same time.
29686 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29687 gcc_cv_ld_no_as_needed_option='--pop-state'
29688 fi
29689 fi
29690 case "$target:$gnu_ld" in
29691 *-*-solaris2*:no)
29692 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
29693 # forms.
29694 gcc_cv_ld_as_needed=yes
29695 gcc_cv_ld_as_needed_option="-z ignore"
29696 gcc_cv_ld_no_as_needed_option="-z record"
29697 ;;
29698 esac
29699 fi
29700 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29701 # dl_iterate_phdr, i.e. since Solaris 11.
29702 case "$target" in
29703 *-*-solaris2.1[1-9]*)
29704 case "$target" in
29705 i?86-*-* | x86_64-*-*)
29706 if echo "$ld_ver" | grep GNU > /dev/null; then
29707 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29708 gcc_cv_ld_as_needed=no
29709 fi
29710 ;;
29711 esac
29712 ;;
29713 *-*-solaris2*)
29714 gcc_cv_ld_as_needed=no
29715 ;;
29716 esac
29717
29718 fi
29719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29720 $as_echo "$gcc_cv_ld_as_needed" >&6; }
29721 if test x"$gcc_cv_ld_as_needed" = xyes; then
29722
29723 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29724
29725
29726 cat >>confdefs.h <<_ACEOF
29727 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29728 _ACEOF
29729
29730
29731 cat >>confdefs.h <<_ACEOF
29732 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29733 _ACEOF
29734
29735 fi
29736
29737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29738 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29739 saved_LDFLAGS="$LDFLAGS"
29740 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
29741 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29743 /* end confdefs.h. */
29744 int main(void) {return 0;}
29745 _ACEOF
29746 if ac_fn_cxx_try_link "$LINENO"; then :
29747 gcc_cv_ld_clearcap=yes; break
29748 else
29749 gcc_cv_ld_clearcap=no
29750 fi
29751 rm -f core conftest.err conftest.$ac_objext \
29752 conftest$ac_exeext conftest.$ac_ext
29753 done
29754 LDFLAGS="$saved_LDFLAGS"
29755 if test "x$gcc_cv_ld_clearcap" = xyes; then
29756
29757 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29758
29759 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29760
29761 fi
29762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29763 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29764
29765 case "$target" in
29766 powerpc*-*-*)
29767 case "$target" in
29768 *le-*-linux*)
29769 emul_name="-melf32lppc"
29770 ;;
29771 *)
29772 emul_name="-melf32ppc"
29773 ;;
29774 esac
29775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29776 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29777 if ${gcc_cv_ld_ppc_attr+:} false; then :
29778 $as_echo_n "(cached) " >&6
29779 else
29780 gcc_cv_ld_ppc_attr=no
29781 if test x"$ld_is_gold" = xyes; then
29782 gcc_cv_ld_ppc_attr=yes
29783 elif test $in_tree_ld = yes ; then
29784 if test "$gcc_cv_gld_major_version" -eq 2 \
29785 -a "$gcc_cv_gld_minor_version" -ge 28 \
29786 -o "$gcc_cv_gld_major_version" -gt 2; then
29787 gcc_cv_ld_ppc_attr=yes
29788 fi
29789 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29790 # check that merging the long double .gnu_attribute doesn't warn
29791 cat > conftest1.s <<EOF
29792 .gnu_attribute 4,1
29793 EOF
29794 cat > conftest2.s <<EOF
29795 .gnu_attribute 4,9
29796 EOF
29797 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29798 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29799 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
29800 && test ! -s conftest.err; then
29801 gcc_cv_ld_ppc_attr=yes
29802 fi
29803 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29804 fi
29805
29806 fi
29807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29808 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29809 if test x$gcc_cv_ld_ppc_attr = xyes; then
29810
29811 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29812
29813 fi
29814 ;;
29815 esac
29816
29817 case "$target:$tm_file" in
29818 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
29819 case "$target" in
29820 *le-*-linux*)
29821 emul_name="-melf64lppc"
29822 ;;
29823 *-*-linux*)
29824 emul_name="-melf64ppc"
29825 ;;
29826 *-*-freebsd*)
29827 emul_name="-melf64ppc_fbsd"
29828 ;;
29829 esac
29830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29831 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29832 if ${gcc_cv_ld_no_dot_syms+:} false; then :
29833 $as_echo_n "(cached) " >&6
29834 else
29835 gcc_cv_ld_no_dot_syms=no
29836 if test x"$ld_is_gold" = xyes; then
29837 gcc_cv_ld_no_dot_syms=yes
29838 elif test $in_tree_ld = yes ; then
29839 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
29840 gcc_cv_ld_no_dot_syms=yes
29841 fi
29842 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29843 cat > conftest1.s <<EOF
29844 .text
29845 bl .foo
29846 EOF
29847 cat > conftest2.s <<EOF
29848 .section ".opd","aw"
29849 .align 3
29850 .globl foo
29851 .type foo,@function
29852 foo:
29853 .quad .LEfoo,.TOC.@tocbase,0
29854 .text
29855 .LEfoo:
29856 blr
29857 .size foo,.-.LEfoo
29858 EOF
29859 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29860 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29861 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
29862 gcc_cv_ld_no_dot_syms=yes
29863 fi
29864 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29865 fi
29866
29867 fi
29868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29869 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29870 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
29871
29872 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29873
29874 fi
29875
29876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29877 $as_echo_n "checking linker large toc support... " >&6; }
29878 if ${gcc_cv_ld_large_toc+:} false; then :
29879 $as_echo_n "(cached) " >&6
29880 else
29881 gcc_cv_ld_large_toc=no
29882 if test x"$ld_is_gold" = xyes; then
29883 gcc_cv_ld_large_toc=yes
29884 elif test $in_tree_ld = yes ; then
29885 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
29886 gcc_cv_ld_large_toc=yes
29887 fi
29888 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29889 cat > conftest.s <<EOF
29890 .section ".tbss","awT",@nobits
29891 .align 3
29892 ie0: .space 8
29893 .global _start
29894 .text
29895 _start:
29896 addis 9,13,ie0@got@tprel@ha
29897 ld 9,ie0@got@tprel@l(9)
29898 EOF
29899 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29900 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
29901 gcc_cv_ld_large_toc=yes
29902 fi
29903 rm -f conftest conftest.o conftest.s
29904 fi
29905
29906 fi
29907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29908 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29909 if test x"$gcc_cv_ld_large_toc" = xyes; then
29910
29911 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29912
29913 fi
29914
29915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29916 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29917 if ${gcc_cv_ld_toc_align+:} false; then :
29918 $as_echo_n "(cached) " >&6
29919 else
29920 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29921 cat > conftest.s <<EOF
29922 .global _start
29923 .text
29924 _start:
29925 addis 9,2,x@got@ha
29926 .section .data.rel.ro,"aw",@progbits
29927 .p2align 16
29928 .space 32768
29929 x: .quad .TOC.
29930 EOF
29931 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29932 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29933 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)) }'`
29934 fi
29935 rm -f conftest conftest.o conftest.s
29936 fi
29937
29938 fi
29939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29940 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29941 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29942
29943 cat >>confdefs.h <<_ACEOF
29944 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29945 _ACEOF
29946
29947 fi
29948 ;;
29949 esac
29950
29951 case "$target" in
29952 *-*-aix*)
29953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29954 $as_echo_n "checking linker large toc support... " >&6; }
29955 if ${gcc_cv_ld_large_toc+:} false; then :
29956 $as_echo_n "(cached) " >&6
29957 else
29958 gcc_cv_ld_large_toc=no
29959 if test x$gcc_cv_as != x ; then
29960 cat > conftest.s <<EOF
29961 .toc
29962 LC..1:
29963 .tc a[TC],a[RW]
29964 .extern a[RW]
29965 .csect .text[PR]
29966 .largetoctest:
29967 addis 9,LC..1@u(2)
29968 ld 3,LC..1@l(9)
29969 EOF
29970 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29971 gcc_cv_ld_large_toc=yes
29972 fi
29973 rm -f conftest conftest.o conftest.s
29974 fi
29975
29976 fi
29977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29978 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29979 if test x"$gcc_cv_ld_large_toc" = xyes; then
29980
29981 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29982
29983 fi
29984 ;;
29985 esac
29986
29987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29988 $as_echo_n "checking linker --build-id support... " >&6; }
29989 if ${gcc_cv_ld_buildid+:} false; then :
29990 $as_echo_n "(cached) " >&6
29991 else
29992 gcc_cv_ld_buildid=no
29993 if test $in_tree_ld = yes ; then
29994 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29995 "$gcc_cv_gld_minor_version" -ge 18 -o \
29996 "$gcc_cv_gld_major_version" -gt 2 \
29997 && test $in_tree_ld_is_elf = yes; then
29998 gcc_cv_ld_buildid=yes
29999 fi
30000 elif test x$gcc_cv_ld != x; then
30001 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
30002 gcc_cv_ld_buildid=yes
30003 fi
30004 fi
30005 fi
30006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30007 $as_echo "$gcc_cv_ld_buildid" >&6; }
30008 if test x"$gcc_cv_ld_buildid" = xyes; then
30009
30010 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30011
30012 fi
30013
30014 # Check whether --enable-linker-build-id was given.
30015 if test "${enable_linker_build_id+set}" = set; then :
30016 enableval=$enable_linker_build_id;
30017 else
30018 enable_linker_build_id=no
30019 fi
30020
30021
30022 if test x"$enable_linker_build_id" = xyes; then
30023 if test x"$gcc_cv_ld_buildid" = xyes; then
30024
30025 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30026
30027 else
30028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30029 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30030 fi
30031 fi
30032
30033 # In binutils 2.21, GNU ld gained support for new emulations fully
30034 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30036 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30037 if ${gcc_cv_ld_sol2_emulation+:} false; then :
30038 $as_echo_n "(cached) " >&6
30039 else
30040 gcc_cv_ld_sol2_emulation=no
30041 if test $in_tree_ld = yes ; then
30042 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30043 "$gcc_cv_gld_minor_version" -ge 21 -o \
30044 "$gcc_cv_gld_major_version" -gt 2 \
30045 && test $in_tree_ld_is_elf = yes; then
30046 gcc_cv_ld_sol2_emulation=yes
30047 fi
30048 elif test x$gcc_cv_ld != x; then
30049 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
30050 grep _sol2 > /dev/null; then
30051 gcc_cv_ld_sol2_emulation=yes
30052 fi
30053 fi
30054 fi
30055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30056 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30057 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
30058
30059 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30060
30061 fi
30062
30063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30064 $as_echo_n "checking linker --sysroot support... " >&6; }
30065 if ${gcc_cv_ld_sysroot+:} false; then :
30066 $as_echo_n "(cached) " >&6
30067 else
30068 gcc_cv_ld_sysroot=no
30069 if test $in_tree_ld = yes ; then
30070 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
30071 gcc_cv_ld_sysroot=yes
30072 fi
30073 elif test x$gcc_cv_ld != x; then
30074 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
30075 gcc_cv_ld_sysroot=yes
30076 fi
30077 fi
30078 fi
30079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30080 $as_echo "$gcc_cv_ld_sysroot" >&6; }
30081 if test x"$gcc_cv_ld_sysroot" = xyes; then
30082
30083 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30084
30085 fi
30086
30087 case $target in
30088 *-*-solaris2*)
30089 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30091 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30092 if ${gcc_cv_solaris_crts+:} false; then :
30093 $as_echo_n "(cached) " >&6
30094 else
30095 gcc_cv_solaris_crts=no
30096 if test x$host != x$target; then
30097 if test "x$with_sysroot" = xyes; then
30098 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
30099 else
30100 target_sysroot="${with_sysroot}"
30101 fi
30102 fi
30103 target_libdir="$target_sysroot/usr/lib"
30104 # At the time they were added, gcrt1.o became a symlink for backwards
30105 # compatibility on x86, while crt1.o was added on sparc, so check for that.
30106 case $target in
30107 i?86-*-solaris2* | x86_64-*-solaris2*)
30108 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
30109 ;;
30110 sparc*-*-solaris2*)
30111 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
30112 ;;
30113 esac
30114 fi
30115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30116 $as_echo "$gcc_cv_solaris_crts" >&6; }
30117 ;;
30118 esac
30119 if test x$gcc_cv_solaris_crts = xyes; then
30120
30121 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30122
30123 fi
30124
30125 # Check whether --enable-libssp was given.
30126 if test "${enable_libssp+set}" = set; then :
30127 enableval=$enable_libssp; case "${enableval}" in
30128 yes|no)
30129 ;;
30130 *)
30131 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
30132 ;;
30133 esac
30134 fi
30135
30136
30137 # Test for stack protector support in target C library.
30138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
30139 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
30140 if ${gcc_cv_libc_provides_ssp+:} false; then :
30141 $as_echo_n "(cached) " >&6
30142 else
30143 gcc_cv_libc_provides_ssp=no
30144 if test "x$enable_libssp" = "xno"; then
30145 gcc_cv_libc_provides_ssp=yes
30146 elif test "x$enable_libssp" = "xyes"; then
30147 gcc_cv_libc_provides_ssp=no
30148 else
30149 case "$target" in
30150 *-*-musl*)
30151 # All versions of musl provide stack protector
30152 gcc_cv_libc_provides_ssp=yes;;
30153 *-*-linux* | *-*-kfreebsd*-gnu)
30154 # glibc 2.4 and later provides __stack_chk_fail and
30155 # either __stack_chk_guard, or TLS access to stack guard canary.
30156
30157 if test $glibc_version_major -gt 2 \
30158 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30159 gcc_cv_libc_provides_ssp=yes
30160 else
30161
30162 if test -f $target_header_dir/features.h \
30163 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
30164 $target_header_dir/features.h > /dev/null; then
30165 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
30166 $target_header_dir/features.h > /dev/null && \
30167 test -f $target_header_dir/bits/uClibc_config.h && \
30168 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
30169 $target_header_dir/bits/uClibc_config.h > /dev/null; then
30170 gcc_cv_libc_provides_ssp=yes
30171 fi
30172 # all versions of Bionic support stack protector
30173 elif test -f $target_header_dir/sys/cdefs.h \
30174 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
30175 $target_header_dir/sys/cdefs.h > /dev/null; then
30176 gcc_cv_libc_provides_ssp=yes
30177 fi
30178 fi
30179 ;;
30180 *-*-gnu*)
30181 # Avoid complicated tests (see
30182 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
30183 # simply assert that glibc does provide this, which is true for all
30184 # realistically usable GNU/Hurd configurations.
30185 # All supported versions of musl provide it as well
30186 gcc_cv_libc_provides_ssp=yes;;
30187 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
30188 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
30189 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
30190 gcc_cv_libc_provides_ssp=yes
30191 else
30192 echo "no __stack_chk_fail on this target"
30193 fi
30194
30195 ;;
30196 *) gcc_cv_libc_provides_ssp=no ;;
30197 esac
30198 fi
30199 fi
30200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
30201 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
30202
30203 if test x$gcc_cv_libc_provides_ssp = xyes; then
30204
30205 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
30206
30207 fi
30208
30209 # Check whether --enable-default-ssp was given.
30210 # Check whether --enable-default-ssp was given.
30211 if test "${enable_default_ssp+set}" = set; then :
30212 enableval=$enable_default_ssp;
30213 if test x$gcc_cv_libc_provides_ssp = xyes; then
30214 case "$target" in
30215 ia64*-*-*) enable_default_ssp=no ;;
30216 *) enable_default_ssp=$enableval ;;
30217 esac
30218 else
30219 enable_default_ssp=no
30220 fi
30221 else
30222 enable_default_ssp=no
30223 fi
30224
30225 if test x$enable_default_ssp = xyes ; then
30226
30227 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
30228
30229 fi
30230
30231
30232 # Test for <sys/sdt.h> on the target.
30233
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
30235 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
30236 have_sys_sdt_h=no
30237 if test -f $target_header_dir/sys/sdt.h; then
30238 have_sys_sdt_h=yes
30239
30240 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
30241
30242 fi
30243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
30244 $as_echo "$have_sys_sdt_h" >&6; }
30245
30246 # Check if TFmode long double should be used by default or not.
30247 # Some glibc targets used DFmode long double, but with glibc 2.4
30248 # and later they can use TFmode.
30249 case "$target" in
30250 powerpc*-*-linux* | \
30251 sparc*-*-linux* | \
30252 s390*-*-linux* | \
30253 alpha*-*-linux*)
30254
30255 # Check whether --with-long-double-128 was given.
30256 if test "${with_long_double_128+set}" = set; then :
30257 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
30258 else
30259
30260 case "$target" in
30261 s390*-*-linux-musl*)
30262 gcc_cv_target_ldbl128=yes
30263 ;;
30264 powerpc*-*-linux-musl*)
30265 gcc_cv_target_ldbl128=no
30266 ;;
30267 *)
30268
30269 if test $glibc_version_major -gt 2 \
30270 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30271 gcc_cv_target_ldbl128=yes
30272 else
30273
30274 gcc_cv_target_ldbl128=no
30275 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
30276 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
30277 && gcc_cv_target_ldbl128=yes
30278
30279 fi
30280
30281 ;;
30282 esac
30283
30284 fi
30285
30286 ;;
30287 esac
30288 if test x$gcc_cv_target_ldbl128 = xyes; then
30289
30290 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
30291
30292 fi
30293
30294 # Check if TFmode long double target should use the IBM extended double or IEEE
30295 # 128-bit floating point formats if long doubles are 128-bits long. The long
30296 # double type can only be switched on powerpc64 bit Linux systems where VSX is
30297 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
30298 # libgcc.
30299
30300 # Check whether --with-long-double-format was given.
30301 if test "${with_long_double_format+set}" = set; then :
30302 withval=$with_long_double_format;
30303 case "$target:$with_long_double_format" in
30304 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
30305 :
30306 ;;
30307 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
30308 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
30309 case "$with_cpu" in
30310 power7 | power8 | power9 | power1*)
30311 :
30312 ;;
30313 *)
30314 as_fn_error $? "Configuration option --with-long-double-format is only \
30315 supported if the default cpu is power7 or newer" "$LINENO" 5
30316 with_long_double_format=""
30317 ;;
30318 esac
30319 ;;
30320 powerpc64*-*-linux*:*)
30321 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
30322 with_long_double_format=""
30323 ;;
30324 *)
30325 as_fn_error $? "Configure option --with-long-double-format is only supported \
30326 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
30327 with_long_double_format=""
30328 ;;
30329 esac
30330 fi
30331
30332
30333 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
30334 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
30335 gcc_cv_libc_provides_hwcap_in_tcb=no
30336 case "$target" in
30337 powerpc*-*-linux*)
30338
30339 if test $glibc_version_major -gt 2 \
30340 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
30341 gcc_cv_libc_provides_hwcap_in_tcb=yes
30342 fi
30343 ;;
30344 esac
30345 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
30346
30347 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
30348
30349 fi
30350
30351 # Check if the target LIBC handles PT_GNU_STACK.
30352 gcc_cv_libc_gnustack=unknown
30353 case "$target" in
30354 mips*-*-linux*)
30355
30356 if test $glibc_version_major -gt 2 \
30357 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
30358 gcc_cv_libc_gnustack=yes
30359 fi
30360 ;;
30361 esac
30362 if test x$gcc_cv_libc_gnustack = xyes; then
30363
30364 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
30365
30366 fi
30367
30368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
30369 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
30370 gcc_cv_target_dl_iterate_phdr=unknown
30371 case "$target" in
30372 *-*-solaris2*)
30373 # <link.h> needs both a dl_iterate_phdr declaration and support for
30374 # compilation with largefile support.
30375 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
30376 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
30377 gcc_cv_target_dl_iterate_phdr=yes
30378 else
30379 gcc_cv_target_dl_iterate_phdr=no
30380 fi
30381 ;;
30382 *-*-dragonfly* | *-*-freebsd*)
30383 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
30384 gcc_cv_target_dl_iterate_phdr=yes
30385 else
30386 gcc_cv_target_dl_iterate_phdr=no
30387 fi
30388 ;;
30389 *-linux-musl*)
30390 gcc_cv_target_dl_iterate_phdr=yes
30391 ;;
30392 esac
30393
30394 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
30395
30396 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
30397
30398 fi
30399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
30400 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
30401
30402 # We no longer support different GC mechanisms. Emit an error if
30403 # the user configures with --with-gc.
30404
30405 # Check whether --with-gc was given.
30406 if test "${with_gc+set}" = set; then :
30407 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
30408 fi
30409
30410
30411 # Libraries to use on the host. This will normally be set by the top
30412 # level Makefile. Here we simply capture the value for our Makefile.
30413 if test -z "${HOST_LIBS+set}"; then
30414 HOST_LIBS=
30415 fi
30416
30417
30418 # Use the system's zlib library.
30419
30420 # Use the system's zlib library.
30421 zlibdir="-L\$(top_builddir)/../zlib"
30422 zlibinc="-I\$(top_srcdir)/../zlib"
30423
30424 # Check whether --with-system-zlib was given.
30425 if test "${with_system_zlib+set}" = set; then :
30426 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
30427 zlibdir=
30428 zlibinc=
30429 fi
30430
30431 fi
30432
30433
30434
30435
30436
30437
30438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
30439 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
30440 # Check whether --enable-maintainer-mode was given.
30441 if test "${enable_maintainer_mode+set}" = set; then :
30442 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
30443 else
30444 maintainer_mode=no
30445 fi
30446
30447
30448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
30449 $as_echo "$maintainer_mode" >&6; }
30450
30451 if test "$maintainer_mode" = "yes"; then
30452 MAINT=''
30453 else
30454 MAINT='#'
30455 fi
30456
30457
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
30459 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
30460 # Check whether --enable-link-mutex was given.
30461 if test "${enable_link_mutex+set}" = set; then :
30462 enableval=$enable_link_mutex; do_link_mutex=$enableval
30463 else
30464 do_link_mutex=no
30465 fi
30466
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
30468 $as_echo "$do_link_mutex" >&6; }
30469
30470 if test "$do_link_mutex" = "yes"; then
30471 DO_LINK_MUTEX=true
30472 else
30473 DO_LINK_MUTEX=false
30474 fi
30475
30476
30477 # --------------
30478 # Language hooks
30479 # --------------
30480
30481 # Make empty files to contain the specs and options for each language.
30482 # Then add #include lines to for a compiler that has specs and/or options.
30483
30484 subdirs=
30485 lang_opt_files=
30486 lang_specs_files=
30487 lang_tree_files=
30488 # These (without "all_") are set in each config-lang.in.
30489 # `language' must be a single word so is spelled singularly.
30490 all_languages=
30491 all_compilers=
30492 all_outputs='Makefile'
30493 # List of language configure and makefile fragments.
30494 all_lang_configurefrags=
30495 all_lang_makefrags=
30496 # Additional files for gengtype
30497 all_gtfiles="$target_gtfiles"
30498
30499 # These are the languages that are set in --enable-languages,
30500 # and are available in the GCC tree.
30501 all_selected_languages=
30502
30503 # Add the language fragments.
30504 # Languages are added via two mechanisms. Some information must be
30505 # recorded in makefile variables, these are defined in config-lang.in.
30506 # We accumulate them and plug them into the main Makefile.
30507 # The other mechanism is a set of hooks for each of the main targets
30508 # like `clean', `install', etc.
30509
30510 language_hooks="Make-hooks"
30511
30512 for lang in ${srcdir}/*/config-lang.in
30513 do
30514 test "$lang" = "${srcdir}/*/config-lang.in" && continue
30515
30516 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
30517 if test "x$lang_alias" = x
30518 then
30519 echo "$lang doesn't set \$language." 1>&2
30520 exit 1
30521 fi
30522 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
30523 subdirs="$subdirs $subdir"
30524
30525 # $gcc_subdir is where the gcc integration files are to be found
30526 # for a language, both for internal compiler purposes (compiler
30527 # sources implementing front-end to GCC tree converters), and for
30528 # build infrastructure purposes (Make-lang.in, etc.)
30529 #
30530 # This will be <subdir> (relative to $srcdir) if a line like
30531 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
30532 # is found in <langdir>/config-lang.in, and will remain <langdir>
30533 # otherwise.
30534 #
30535 # Except for the language alias (fetched above), the regular
30536 # "config-lang.in" contents are always retrieved from $gcc_subdir,
30537 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
30538 # only this and the language alias.
30539
30540 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
30541 if [ "$gcc_subdir" = "" ]; then
30542 gcc_subdir="$subdir"
30543 fi
30544
30545 case ",$enable_languages," in
30546 *,$lang_alias,*)
30547 all_selected_languages="$all_selected_languages $lang_alias"
30548 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
30549 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
30550 fi
30551 ;;
30552 esac
30553
30554 language=
30555 boot_language=
30556 compilers=
30557 outputs=
30558 gtfiles=
30559 subdir_requires=
30560 . ${srcdir}/$gcc_subdir/config-lang.in
30561 if test "x$language" = x
30562 then
30563 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
30564 exit 1
30565 fi
30566
30567 ok=:
30568 case ",$enable_languages," in
30569 *,$lang_alias,*) ;;
30570 *)
30571 for i in $subdir_requires; do
30572 test -f "${srcdir}/$i/config-lang.in" && continue
30573 ok=false
30574 break
30575 done
30576 ;;
30577 esac
30578 $ok || continue
30579
30580 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
30581 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
30582 if test -f $srcdir/$gcc_subdir/lang.opt; then
30583 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
30584 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
30585 fi
30586 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
30587 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
30588 fi
30589 all_languages="$all_languages $language"
30590 all_compilers="$all_compilers $compilers"
30591 all_outputs="$all_outputs $outputs"
30592 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
30593 case ",$enable_languages," in
30594 *,lto,*)
30595
30596 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
30597
30598 enable_lto=yes
30599
30600 ;;
30601 *) ;;
30602 esac
30603 done
30604
30605 check_languages=
30606 for language in $all_selected_languages
30607 do
30608 check_languages="$check_languages check-$language"
30609 done
30610
30611 selftest_languages=
30612 for language in $all_selected_languages
30613 do
30614 selftest_languages="$selftest_languages selftest-$language"
30615 done
30616
30617 # We link each language in with a set of hooks, reached indirectly via
30618 # lang.${target}. Only do so for selected languages.
30619
30620 rm -f Make-hooks
30621 touch Make-hooks
30622 target_list="all.cross start.encap rest.encap tags \
30623 install-common install-man install-info install-pdf install-html dvi \
30624 pdf html uninstall info man srcextra srcman srcinfo \
30625 mostlyclean clean distclean maintainer-clean install-plugin"
30626
30627 for t in $target_list
30628 do
30629 x=
30630 for lang in $all_selected_languages
30631 do
30632 x="$x $lang.$t"
30633 done
30634 echo "lang.$t: $x" >> Make-hooks
30635 done
30636
30637 # --------
30638 # Option include files
30639 # --------
30640
30641 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
30642 option_includes="option-includes.mk"
30643
30644
30645 # --------
30646 # UNSORTED
30647 # --------
30648
30649 # Create .gdbinit.
30650
30651 echo "dir ." > .gdbinit
30652 echo "dir ${srcdir}" >> .gdbinit
30653 if test x$gdb_needs_out_file_path = xyes
30654 then
30655 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30656 fi
30657 if test "x$subdirs" != x; then
30658 for s in $subdirs
30659 do
30660 echo "dir ${srcdir}/$s" >> .gdbinit
30661 done
30662 fi
30663 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30664 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30665
30666 # Put a breakpoint on __asan_report_error to help with debugging buffer
30667 # overflow.
30668 case "$CFLAGS" in
30669 *-fsanitize=address*)
30670 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30671 ;;
30672 esac
30673
30674 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30675
30676
30677
30678 # Find a directory in which to install a shared libgcc.
30679
30680 # Check whether --enable-version-specific-runtime-libs was given.
30681 if test "${enable_version_specific_runtime_libs+set}" = set; then :
30682 enableval=$enable_version_specific_runtime_libs;
30683 fi
30684
30685
30686 # Substitute configuration variables
30687
30688
30689
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699
30700
30701
30702
30703
30704
30705
30706
30707
30708
30709
30710
30711
30712
30713
30714
30715
30716
30717
30718
30719
30720
30721
30722
30723
30724
30725
30726
30727
30728
30729
30730
30731
30732
30733
30734
30735
30736
30737
30738
30739
30740
30741
30742
30743
30744
30745
30746
30747
30748
30749
30750
30751
30752
30753
30754 # Echo link setup.
30755 if test x${build} = x${host} ; then
30756 if test x${host} = x${target} ; then
30757 echo "Links are now set up to build a native compiler for ${target}." 1>&2
30758 else
30759 echo "Links are now set up to build a cross-compiler" 1>&2
30760 echo " from ${host} to ${target}." 1>&2
30761 fi
30762 else
30763 if test x${host} = x${target} ; then
30764 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30765 echo " for ${target}." 1>&2
30766 else
30767 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30768 echo " from ${host} to ${target}." 1>&2
30769 fi
30770 fi
30771
30772
30773
30774
30775
30776
30777 if test "x${ISLLIBS}" != "x" ; then
30778
30779 $as_echo "#define HAVE_isl 1" >>confdefs.h
30780
30781 fi
30782
30783 # Check for plugin support
30784 # Check whether --enable-plugin was given.
30785 if test "${enable_plugin+set}" = set; then :
30786 enableval=$enable_plugin; enable_plugin=$enableval
30787 else
30788 enable_plugin=yes; default_plugin=yes
30789 fi
30790
30791
30792 pluginlibs=
30793 plugin_check=yes
30794
30795 case "${host}" in
30796 *-*-mingw*)
30797 # Since plugin support under MinGW is not as straightforward as on
30798 # other platforms (e.g., we have to link import library, etc), we
30799 # only enable it if explicitly requested.
30800 if test x"$default_plugin" = x"yes"; then
30801 enable_plugin=no
30802 elif test x"$enable_plugin" = x"yes"; then
30803 # Use make's target variable to derive import library name.
30804 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30805 plugin_check=no
30806 fi
30807 ;;
30808 *-*-darwin*)
30809 if test x$build = x$host; then
30810 export_sym_check="nm${exeext} -g"
30811 elif test x$host = x$target; then
30812 export_sym_check="$gcc_cv_nm -g"
30813 else
30814 export_sym_check=
30815 fi
30816 ;;
30817 *)
30818 if test x$build = x$host; then
30819 export_sym_check="objdump${exeext} -T"
30820 elif test x$host = x$target; then
30821 export_sym_check="$gcc_cv_objdump -T"
30822 else
30823 export_sym_check=
30824 fi
30825 ;;
30826 esac
30827
30828 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
30829
30830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30831 $as_echo_n "checking for exported symbols... " >&6; }
30832 if test "x$export_sym_check" != x; then
30833 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30834 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30835 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30836 : # No need to use a flag
30837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30838 $as_echo "yes" >&6; }
30839 else
30840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30841 $as_echo "yes" >&6; }
30842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30843 $as_echo_n "checking for -rdynamic... " >&6; }
30844 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30845 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30846 plugin_rdynamic=yes
30847 pluginlibs="-rdynamic"
30848 else
30849 plugin_rdynamic=no
30850 enable_plugin=no
30851 fi
30852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30853 $as_echo "$plugin_rdynamic" >&6; }
30854 fi
30855 else
30856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30857 $as_echo "unable to check" >&6; }
30858 fi
30859
30860 # Check -ldl
30861 saved_LIBS="$LIBS"
30862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30863 $as_echo_n "checking for library containing dlopen... " >&6; }
30864 if ${ac_cv_search_dlopen+:} false; then :
30865 $as_echo_n "(cached) " >&6
30866 else
30867 ac_func_search_save_LIBS=$LIBS
30868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30869 /* end confdefs.h. */
30870
30871 /* Override any GCC internal prototype to avoid an error.
30872 Use char because int might match the return type of a GCC
30873 builtin and then its argument prototype would still apply. */
30874 #ifdef __cplusplus
30875 extern "C"
30876 #endif
30877 char dlopen ();
30878 int
30879 main ()
30880 {
30881 return dlopen ();
30882 ;
30883 return 0;
30884 }
30885 _ACEOF
30886 for ac_lib in '' dl; do
30887 if test -z "$ac_lib"; then
30888 ac_res="none required"
30889 else
30890 ac_res=-l$ac_lib
30891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30892 fi
30893 if ac_fn_cxx_try_link "$LINENO"; then :
30894 ac_cv_search_dlopen=$ac_res
30895 fi
30896 rm -f core conftest.err conftest.$ac_objext \
30897 conftest$ac_exeext
30898 if ${ac_cv_search_dlopen+:} false; then :
30899 break
30900 fi
30901 done
30902 if ${ac_cv_search_dlopen+:} false; then :
30903
30904 else
30905 ac_cv_search_dlopen=no
30906 fi
30907 rm conftest.$ac_ext
30908 LIBS=$ac_func_search_save_LIBS
30909 fi
30910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30911 $as_echo "$ac_cv_search_dlopen" >&6; }
30912 ac_res=$ac_cv_search_dlopen
30913 if test "$ac_res" != no; then :
30914 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30915
30916 fi
30917
30918 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
30919 pluginlibs="$pluginlibs -ldl"
30920 fi
30921 LIBS="$saved_LIBS"
30922
30923 # Check that we can build shared objects with -fPIC -shared
30924 saved_LDFLAGS="$LDFLAGS"
30925 saved_CFLAGS="$CFLAGS"
30926 case "${host}" in
30927 *-*-darwin*)
30928 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30929 CFLAGS="$CFLAGS -fPIC"
30930 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
30931 ;;
30932 *)
30933 CFLAGS="$CFLAGS -fPIC"
30934 LDFLAGS="$LDFLAGS -fPIC -shared"
30935 ;;
30936 esac
30937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30938 $as_echo_n "checking for -fPIC -shared... " >&6; }
30939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30940 /* end confdefs.h. */
30941 extern int X;
30942 int
30943 main ()
30944 {
30945 return X == 0;
30946 ;
30947 return 0;
30948 }
30949 _ACEOF
30950 if ac_fn_cxx_try_link "$LINENO"; then :
30951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30952 $as_echo "yes" >&6; }; have_pic_shared=yes
30953 else
30954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30955 $as_echo "no" >&6; }; have_pic_shared=no
30956 fi
30957 rm -f core conftest.err conftest.$ac_objext \
30958 conftest$ac_exeext conftest.$ac_ext
30959 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30960 pluginlibs=
30961 enable_plugin=no
30962 fi
30963 LDFLAGS="$saved_LDFLAGS"
30964 CFLAGS="$saved_CFLAGS"
30965
30966 # If plugin support had been requested but not available, fail.
30967 if test x"$enable_plugin" = x"no" ; then
30968 if test x"$default_plugin" != x"yes"; then
30969 as_fn_error $? "
30970 Building GCC with plugin support requires a host that supports
30971 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30972 fi
30973 fi
30974 fi
30975
30976
30977
30978 if test x"$enable_plugin" = x"yes"; then
30979
30980 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30981
30982 fi
30983
30984
30985 # Enable --enable-host-shared
30986 # Check whether --enable-host-shared was given.
30987 if test "${enable_host_shared+set}" = set; then :
30988 enableval=$enable_host_shared; PICFLAG=-fPIC
30989 else
30990 PICFLAG=
30991 fi
30992
30993
30994
30995
30996
30997 # Check whether --enable-libquadmath-support was given.
30998 if test "${enable_libquadmath_support+set}" = set; then :
30999 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
31000 else
31001 ENABLE_LIBQUADMATH_SUPPORT=yes
31002 fi
31003
31004 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31005
31006 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31007
31008 fi
31009
31010
31011 # Specify what hash style to use by default.
31012
31013 # Check whether --with-linker-hash-style was given.
31014 if test "${with_linker_hash_style+set}" = set; then :
31015 withval=$with_linker_hash_style; case x"$withval" in
31016 xsysv)
31017 LINKER_HASH_STYLE=sysv
31018 ;;
31019 xgnu)
31020 LINKER_HASH_STYLE=gnu
31021 ;;
31022 xboth)
31023 LINKER_HASH_STYLE=both
31024 ;;
31025 *)
31026 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
31027 ;;
31028 esac
31029 else
31030 LINKER_HASH_STYLE=''
31031 fi
31032
31033 if test x"${LINKER_HASH_STYLE}" != x; then
31034
31035 cat >>confdefs.h <<_ACEOF
31036 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
31037 _ACEOF
31038
31039 fi
31040
31041 # Specify what should be the default of -fdiagnostics-color option.
31042
31043 # Check whether --with-diagnostics-color was given.
31044 if test "${with_diagnostics_color+set}" = set; then :
31045 withval=$with_diagnostics_color; case x"$withval" in
31046 xnever)
31047 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
31048 ;;
31049 xauto)
31050 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
31051 ;;
31052 xauto-if-env)
31053 DIAGNOSTICS_COLOR_DEFAULT=-1
31054 ;;
31055 xalways)
31056 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
31057 ;;
31058 *)
31059 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
31060 ;;
31061 esac
31062 else
31063 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
31064 fi
31065
31066
31067 cat >>confdefs.h <<_ACEOF
31068 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
31069 _ACEOF
31070
31071
31072 # Specify what should be the default of -fdiagnostics-urls option.
31073
31074 # Check whether --with-diagnostics-urls was given.
31075 if test "${with_diagnostics_urls+set}" = set; then :
31076 withval=$with_diagnostics_urls; case x"$withval" in
31077 xnever)
31078 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
31079 ;;
31080 xauto)
31081 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
31082 ;;
31083 xauto-if-env)
31084 DIAGNOSTICS_URLS_DEFAULT=-1
31085 ;;
31086 xalways)
31087 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
31088 ;;
31089 *)
31090 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
31091 ;;
31092 esac
31093 else
31094 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
31095 fi
31096
31097
31098 cat >>confdefs.h <<_ACEOF
31099 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
31100 _ACEOF
31101
31102
31103 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
31104 # of jit/jit-playback.c.
31105 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
31106 echo "gcc_driver_version: ${gcc_driver_version}"
31107 cat > gcc-driver-name.h <<EOF
31108 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
31109 EOF
31110
31111 # Check whether --enable-default-pie was given.
31112 # Check whether --enable-default-pie was given.
31113 if test "${enable_default_pie+set}" = set; then :
31114 enableval=$enable_default_pie; enable_default_pie=$enableval
31115 else
31116 enable_default_pie=no
31117 fi
31118
31119 if test x$enable_default_pie = xyes ; then
31120
31121 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
31122
31123 fi
31124
31125
31126 # Check if -fno-PIE works.
31127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
31128 $as_echo_n "checking for -fno-PIE option... " >&6; }
31129 if ${gcc_cv_c_no_fpie+:} false; then :
31130 $as_echo_n "(cached) " >&6
31131 else
31132 saved_CXXFLAGS="$CXXFLAGS"
31133 CXXFLAGS="$CXXFLAGS -fno-PIE"
31134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31135 /* end confdefs.h. */
31136 int main(void) {return 0;}
31137 _ACEOF
31138 if ac_fn_cxx_try_compile "$LINENO"; then :
31139 gcc_cv_c_no_fpie=yes
31140 else
31141 gcc_cv_c_no_fpie=no
31142 fi
31143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31144 CXXFLAGS="$saved_CXXFLAGS"
31145 fi
31146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
31147 $as_echo "$gcc_cv_c_no_fpie" >&6; }
31148 if test "$gcc_cv_c_no_fpie" = "yes"; then
31149 NO_PIE_CFLAGS="-fno-PIE"
31150 fi
31151
31152
31153 # Check if -no-pie works.
31154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
31155 $as_echo_n "checking for -no-pie option... " >&6; }
31156 if ${gcc_cv_no_pie+:} false; then :
31157 $as_echo_n "(cached) " >&6
31158 else
31159 saved_LDFLAGS="$LDFLAGS"
31160 LDFLAGS="$LDFLAGS -no-pie"
31161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31162 /* end confdefs.h. */
31163 int main(void) {return 0;}
31164 _ACEOF
31165 if ac_fn_cxx_try_link "$LINENO"; then :
31166 gcc_cv_no_pie=yes
31167 else
31168 gcc_cv_no_pie=no
31169 fi
31170 rm -f core conftest.err conftest.$ac_objext \
31171 conftest$ac_exeext conftest.$ac_ext
31172 LDFLAGS="$saved_LDFLAGS"
31173 fi
31174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
31175 $as_echo "$gcc_cv_no_pie" >&6; }
31176 if test "$gcc_cv_no_pie" = "yes"; then
31177 NO_PIE_FLAG="-no-pie"
31178 fi
31179
31180
31181 # Enable Intel CET on Intel CET enabled host if jit is enabled.
31182 # Check whether --enable-cet was given.
31183 if test "${enable_cet+set}" = set; then :
31184 enableval=$enable_cet;
31185 case "$enableval" in
31186 yes|no|auto) ;;
31187 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
31188 esac
31189
31190 else
31191 enable_cet=auto
31192 fi
31193
31194
31195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
31196 $as_echo_n "checking for CET support... " >&6; }
31197
31198 case "$host" in
31199 i[34567]86-*-linux* | x86_64-*-linux*)
31200 may_have_cet=yes
31201 cet_save_CFLAGS="$CFLAGS"
31202 CFLAGS="$CFLAGS -fcf-protection"
31203 case "$enable_cet" in
31204 auto)
31205 # Check if target supports multi-byte NOPs
31206 # and if compiler and assembler support CET.
31207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31208 /* end confdefs.h. */
31209
31210 int
31211 main ()
31212 {
31213
31214 #if !defined(__SSE2__)
31215 #error target does not support multi-byte NOPs
31216 #else
31217 asm ("setssbsy");
31218 #endif
31219
31220 ;
31221 return 0;
31222 }
31223 _ACEOF
31224 if ac_fn_cxx_try_compile "$LINENO"; then :
31225 enable_cet=yes
31226 else
31227 enable_cet=no
31228 fi
31229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31230 ;;
31231 yes)
31232 # Check if compiler and assembler support CET.
31233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31234 /* end confdefs.h. */
31235
31236 int
31237 main ()
31238 {
31239 asm ("setssbsy");
31240 ;
31241 return 0;
31242 }
31243 _ACEOF
31244 if ac_fn_cxx_try_compile "$LINENO"; then :
31245 support_cet=yes
31246 else
31247 support_cet=no
31248 fi
31249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31250 if test $support_cet = "no"; then
31251 if test x$enable_bootstrap != xno \
31252 && test -z "${with_build_subdir}" \
31253 && (test ! -f ../stage_current \
31254 || test `cat ../stage_current` != "stage1"); then
31255 # Require CET support only for the final GCC build.
31256 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
31257 else
31258 # Don't enable CET without CET support for non-bootstrap
31259 # build, in stage1 nor for build support.
31260 enable_cet=no
31261 fi
31262 fi
31263 ;;
31264 esac
31265 CFLAGS="$cet_save_CFLAGS"
31266 ;;
31267 *)
31268 may_have_cet=no
31269 enable_cet=no
31270 ;;
31271 esac
31272
31273 cet_save_CFLAGS="$CFLAGS"
31274 CFLAGS="$CFLAGS -fcf-protection=none"
31275 cet_save_LDFLAGS="$LDFLAGS"
31276 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
31277 if test x$may_have_cet = xyes; then
31278 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
31279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31280 /* end confdefs.h. */
31281
31282 int
31283 main ()
31284 {
31285 return 0;
31286 ;
31287 return 0;
31288 }
31289 _ACEOF
31290 if ac_fn_cxx_try_link "$LINENO"; then :
31291 may_have_cet=yes
31292 else
31293 may_have_cet=no
31294 fi
31295 rm -f core conftest.err conftest.$ac_objext \
31296 conftest$ac_exeext conftest.$ac_ext
31297 fi
31298
31299 if test x$may_have_cet = xyes; then
31300 if test x$cross_compiling = xno; then
31301 if test "$cross_compiling" = yes; then :
31302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31304 as_fn_error $? "cannot run test program while cross compiling
31305 See \`config.log' for more details" "$LINENO" 5; }
31306 else
31307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31308 /* end confdefs.h. */
31309
31310 static void
31311 foo (void)
31312 {
31313 }
31314
31315 static void
31316 __attribute__ ((noinline, noclone))
31317 xxx (void (*f) (void))
31318 {
31319 f ();
31320 }
31321
31322 static void
31323 __attribute__ ((noinline, noclone))
31324 bar (void)
31325 {
31326 xxx (foo);
31327 }
31328
31329 int
31330 main ()
31331 {
31332 bar ();
31333 return 0;
31334 }
31335
31336 _ACEOF
31337 if ac_fn_cxx_try_run "$LINENO"; then :
31338 have_cet=no
31339 else
31340 have_cet=yes
31341 fi
31342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31343 conftest.$ac_objext conftest.beam conftest.$ac_ext
31344 fi
31345
31346 if test x$enable_cet = xno -a x$have_cet = xyes; then
31347 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
31348 fi
31349 fi
31350 else
31351 # Enable CET in cross compiler if possible so that it will run on both
31352 # CET and non-CET hosts.
31353 have_cet=yes
31354 fi
31355 if test x$enable_cet = xyes; then
31356 CET_HOST_FLAGS="-fcf-protection"
31357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31358 $as_echo "yes" >&6; }
31359 else
31360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31361 $as_echo "no" >&6; }
31362 fi
31363 CFLAGS="$cet_save_CFLAGS"
31364 LDFLAGS="$cet_save_LDFLAGS"
31365
31366 case x$enable_languages in
31367 *jit*)
31368 ;;
31369 *)
31370 CET_HOST_FLAGS=
31371 ;;
31372 esac
31373
31374
31375 # Check linker supports '-z bndplt'
31376 ld_bndplt_support=no
31377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
31378 $as_echo_n "checking linker -z bndplt option... " >&6; }
31379 if test x"$ld_is_gold" = xno; then
31380 if test $in_tree_ld = yes ; then
31381 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
31382 ld_bndplt_support=yes
31383 fi
31384 elif test x$gcc_cv_ld != x; then
31385 # Check if linker supports -a bndplt option
31386 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
31387 ld_bndplt_support=yes
31388 fi
31389 fi
31390 fi
31391 if test x"$ld_bndplt_support" = xyes; then
31392
31393 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
31394
31395 fi
31396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
31397 $as_echo "$ld_bndplt_support" >&6; }
31398
31399 # Check linker supports '--push-state'/'--pop-state'
31400 ld_pushpopstate_support=no
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
31402 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
31403 if test x"$ld_is_gold" = xno; then
31404 if test $in_tree_ld = yes ; then
31405 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
31406 ld_pushpopstate_support=yes
31407 fi
31408 elif test x$gcc_cv_ld != x; then
31409 # Check if linker supports --push-state/--pop-state options
31410 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
31411 ld_pushpopstate_support=yes
31412 fi
31413 fi
31414 fi
31415 if test x"$ld_pushpopstate_support" = xyes; then
31416
31417 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
31418
31419 fi
31420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
31421 $as_echo "$ld_pushpopstate_support" >&6; }
31422
31423 # Configure the subdirectories
31424 # AC_CONFIG_SUBDIRS($subdirs)
31425
31426 # Create the Makefile
31427 # and configure language subdirectories
31428 ac_config_files="$ac_config_files $all_outputs"
31429
31430
31431 ac_config_commands="$ac_config_commands default"
31432
31433 cat >confcache <<\_ACEOF
31434 # This file is a shell script that caches the results of configure
31435 # tests run on this system so they can be shared between configure
31436 # scripts and configure runs, see configure's option --config-cache.
31437 # It is not useful on other systems. If it contains results you don't
31438 # want to keep, you may remove or edit it.
31439 #
31440 # config.status only pays attention to the cache file if you give it
31441 # the --recheck option to rerun configure.
31442 #
31443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31445 # following values.
31446
31447 _ACEOF
31448
31449 # The following way of writing the cache mishandles newlines in values,
31450 # but we know of no workaround that is simple, portable, and efficient.
31451 # So, we kill variables containing newlines.
31452 # Ultrix sh set writes to stderr and can't be redirected directly,
31453 # and sets the high bit in the cache file unless we assign to the vars.
31454 (
31455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31456 eval ac_val=\$$ac_var
31457 case $ac_val in #(
31458 *${as_nl}*)
31459 case $ac_var in #(
31460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31461 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31462 esac
31463 case $ac_var in #(
31464 _ | IFS | as_nl) ;; #(
31465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31466 *) { eval $ac_var=; unset $ac_var;} ;;
31467 esac ;;
31468 esac
31469 done
31470
31471 (set) 2>&1 |
31472 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31473 *${as_nl}ac_space=\ *)
31474 # `set' does not quote correctly, so add quotes: double-quote
31475 # substitution turns \\\\ into \\, and sed turns \\ into \.
31476 sed -n \
31477 "s/'/'\\\\''/g;
31478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31479 ;; #(
31480 *)
31481 # `set' quotes correctly as required by POSIX, so do not add quotes.
31482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31483 ;;
31484 esac |
31485 sort
31486 ) |
31487 sed '
31488 /^ac_cv_env_/b end
31489 t clear
31490 :clear
31491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31492 t end
31493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31494 :end' >>confcache
31495 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31496 if test -w "$cache_file"; then
31497 if test "x$cache_file" != "x/dev/null"; then
31498 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31499 $as_echo "$as_me: updating cache $cache_file" >&6;}
31500 if test ! -f "$cache_file" || test -h "$cache_file"; then
31501 cat confcache >"$cache_file"
31502 else
31503 case $cache_file in #(
31504 */* | ?:*)
31505 mv -f confcache "$cache_file"$$ &&
31506 mv -f "$cache_file"$$ "$cache_file" ;; #(
31507 *)
31508 mv -f confcache "$cache_file" ;;
31509 esac
31510 fi
31511 fi
31512 else
31513 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31514 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31515 fi
31516 fi
31517 rm -f confcache
31518
31519 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31520 # Let make expand exec_prefix.
31521 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31522
31523 DEFS=-DHAVE_CONFIG_H
31524
31525 ac_libobjs=
31526 ac_ltlibobjs=
31527 U=
31528 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31529 # 1. Remove the extension, and $U if already installed.
31530 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31531 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31532 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31533 # will be set to the directory where LIBOBJS objects are built.
31534 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31535 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31536 done
31537 LIBOBJS=$ac_libobjs
31538
31539 LTLIBOBJS=$ac_ltlibobjs
31540
31541
31542
31543
31544 : "${CONFIG_STATUS=./config.status}"
31545 ac_write_fail=0
31546 ac_clean_files_save=$ac_clean_files
31547 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31549 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31550 as_write_fail=0
31551 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31552 #! $SHELL
31553 # Generated by $as_me.
31554 # Run this file to recreate the current configuration.
31555 # Compiler output produced by configure, useful for debugging
31556 # configure, is in config.log if it exists.
31557
31558 debug=false
31559 ac_cs_recheck=false
31560 ac_cs_silent=false
31561
31562 SHELL=\${CONFIG_SHELL-$SHELL}
31563 export SHELL
31564 _ASEOF
31565 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31566 ## -------------------- ##
31567 ## M4sh Initialization. ##
31568 ## -------------------- ##
31569
31570 # Be more Bourne compatible
31571 DUALCASE=1; export DUALCASE # for MKS sh
31572 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31573 emulate sh
31574 NULLCMD=:
31575 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31576 # is contrary to our usage. Disable this feature.
31577 alias -g '${1+"$@"}'='"$@"'
31578 setopt NO_GLOB_SUBST
31579 else
31580 case `(set -o) 2>/dev/null` in #(
31581 *posix*) :
31582 set -o posix ;; #(
31583 *) :
31584 ;;
31585 esac
31586 fi
31587
31588
31589 as_nl='
31590 '
31591 export as_nl
31592 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31593 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31594 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31595 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31596 # Prefer a ksh shell builtin over an external printf program on Solaris,
31597 # but without wasting forks for bash or zsh.
31598 if test -z "$BASH_VERSION$ZSH_VERSION" \
31599 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31600 as_echo='print -r --'
31601 as_echo_n='print -rn --'
31602 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31603 as_echo='printf %s\n'
31604 as_echo_n='printf %s'
31605 else
31606 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31607 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31608 as_echo_n='/usr/ucb/echo -n'
31609 else
31610 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31611 as_echo_n_body='eval
31612 arg=$1;
31613 case $arg in #(
31614 *"$as_nl"*)
31615 expr "X$arg" : "X\\(.*\\)$as_nl";
31616 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31617 esac;
31618 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31619 '
31620 export as_echo_n_body
31621 as_echo_n='sh -c $as_echo_n_body as_echo'
31622 fi
31623 export as_echo_body
31624 as_echo='sh -c $as_echo_body as_echo'
31625 fi
31626
31627 # The user is always right.
31628 if test "${PATH_SEPARATOR+set}" != set; then
31629 PATH_SEPARATOR=:
31630 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31631 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31632 PATH_SEPARATOR=';'
31633 }
31634 fi
31635
31636
31637 # IFS
31638 # We need space, tab and new line, in precisely that order. Quoting is
31639 # there to prevent editors from complaining about space-tab.
31640 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31641 # splitting by setting IFS to empty value.)
31642 IFS=" "" $as_nl"
31643
31644 # Find who we are. Look in the path if we contain no directory separator.
31645 as_myself=
31646 case $0 in #((
31647 *[\\/]* ) as_myself=$0 ;;
31648 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31649 for as_dir in $PATH
31650 do
31651 IFS=$as_save_IFS
31652 test -z "$as_dir" && as_dir=.
31653 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31654 done
31655 IFS=$as_save_IFS
31656
31657 ;;
31658 esac
31659 # We did not find ourselves, most probably we were run as `sh COMMAND'
31660 # in which case we are not to be found in the path.
31661 if test "x$as_myself" = x; then
31662 as_myself=$0
31663 fi
31664 if test ! -f "$as_myself"; then
31665 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31666 exit 1
31667 fi
31668
31669 # Unset variables that we do not need and which cause bugs (e.g. in
31670 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31671 # suppresses any "Segmentation fault" message there. '((' could
31672 # trigger a bug in pdksh 5.2.14.
31673 for as_var in BASH_ENV ENV MAIL MAILPATH
31674 do eval test x\${$as_var+set} = xset \
31675 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31676 done
31677 PS1='$ '
31678 PS2='> '
31679 PS4='+ '
31680
31681 # NLS nuisances.
31682 LC_ALL=C
31683 export LC_ALL
31684 LANGUAGE=C
31685 export LANGUAGE
31686
31687 # CDPATH.
31688 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31689
31690
31691 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31692 # ----------------------------------------
31693 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31694 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31695 # script with STATUS, using 1 if that was 0.
31696 as_fn_error ()
31697 {
31698 as_status=$1; test $as_status -eq 0 && as_status=1
31699 if test "$4"; then
31700 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31701 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31702 fi
31703 $as_echo "$as_me: error: $2" >&2
31704 as_fn_exit $as_status
31705 } # as_fn_error
31706
31707
31708 # as_fn_set_status STATUS
31709 # -----------------------
31710 # Set $? to STATUS, without forking.
31711 as_fn_set_status ()
31712 {
31713 return $1
31714 } # as_fn_set_status
31715
31716 # as_fn_exit STATUS
31717 # -----------------
31718 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31719 as_fn_exit ()
31720 {
31721 set +e
31722 as_fn_set_status $1
31723 exit $1
31724 } # as_fn_exit
31725
31726 # as_fn_unset VAR
31727 # ---------------
31728 # Portably unset VAR.
31729 as_fn_unset ()
31730 {
31731 { eval $1=; unset $1;}
31732 }
31733 as_unset=as_fn_unset
31734 # as_fn_append VAR VALUE
31735 # ----------------------
31736 # Append the text in VALUE to the end of the definition contained in VAR. Take
31737 # advantage of any shell optimizations that allow amortized linear growth over
31738 # repeated appends, instead of the typical quadratic growth present in naive
31739 # implementations.
31740 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31741 eval 'as_fn_append ()
31742 {
31743 eval $1+=\$2
31744 }'
31745 else
31746 as_fn_append ()
31747 {
31748 eval $1=\$$1\$2
31749 }
31750 fi # as_fn_append
31751
31752 # as_fn_arith ARG...
31753 # ------------------
31754 # Perform arithmetic evaluation on the ARGs, and store the result in the
31755 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31756 # must be portable across $(()) and expr.
31757 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31758 eval 'as_fn_arith ()
31759 {
31760 as_val=$(( $* ))
31761 }'
31762 else
31763 as_fn_arith ()
31764 {
31765 as_val=`expr "$@" || test $? -eq 1`
31766 }
31767 fi # as_fn_arith
31768
31769
31770 if expr a : '\(a\)' >/dev/null 2>&1 &&
31771 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31772 as_expr=expr
31773 else
31774 as_expr=false
31775 fi
31776
31777 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31778 as_basename=basename
31779 else
31780 as_basename=false
31781 fi
31782
31783 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31784 as_dirname=dirname
31785 else
31786 as_dirname=false
31787 fi
31788
31789 as_me=`$as_basename -- "$0" ||
31790 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31791 X"$0" : 'X\(//\)$' \| \
31792 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31793 $as_echo X/"$0" |
31794 sed '/^.*\/\([^/][^/]*\)\/*$/{
31795 s//\1/
31796 q
31797 }
31798 /^X\/\(\/\/\)$/{
31799 s//\1/
31800 q
31801 }
31802 /^X\/\(\/\).*/{
31803 s//\1/
31804 q
31805 }
31806 s/.*/./; q'`
31807
31808 # Avoid depending upon Character Ranges.
31809 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31810 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31811 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31812 as_cr_digits='0123456789'
31813 as_cr_alnum=$as_cr_Letters$as_cr_digits
31814
31815 ECHO_C= ECHO_N= ECHO_T=
31816 case `echo -n x` in #(((((
31817 -n*)
31818 case `echo 'xy\c'` in
31819 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31820 xy) ECHO_C='\c';;
31821 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31822 ECHO_T=' ';;
31823 esac;;
31824 *)
31825 ECHO_N='-n';;
31826 esac
31827
31828 rm -f conf$$ conf$$.exe conf$$.file
31829 if test -d conf$$.dir; then
31830 rm -f conf$$.dir/conf$$.file
31831 else
31832 rm -f conf$$.dir
31833 mkdir conf$$.dir 2>/dev/null
31834 fi
31835 if (echo >conf$$.file) 2>/dev/null; then
31836 if ln -s conf$$.file conf$$ 2>/dev/null; then
31837 as_ln_s='ln -s'
31838 # ... but there are two gotchas:
31839 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31840 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31841 # In both cases, we have to default to `cp -pR'.
31842 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31843 as_ln_s='cp -pR'
31844 elif ln conf$$.file conf$$ 2>/dev/null; then
31845 as_ln_s=ln
31846 else
31847 as_ln_s='cp -pR'
31848 fi
31849 else
31850 as_ln_s='cp -pR'
31851 fi
31852 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31853 rmdir conf$$.dir 2>/dev/null
31854
31855
31856 # as_fn_mkdir_p
31857 # -------------
31858 # Create "$as_dir" as a directory, including parents if necessary.
31859 as_fn_mkdir_p ()
31860 {
31861
31862 case $as_dir in #(
31863 -*) as_dir=./$as_dir;;
31864 esac
31865 test -d "$as_dir" || eval $as_mkdir_p || {
31866 as_dirs=
31867 while :; do
31868 case $as_dir in #(
31869 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31870 *) as_qdir=$as_dir;;
31871 esac
31872 as_dirs="'$as_qdir' $as_dirs"
31873 as_dir=`$as_dirname -- "$as_dir" ||
31874 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31875 X"$as_dir" : 'X\(//\)[^/]' \| \
31876 X"$as_dir" : 'X\(//\)$' \| \
31877 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31878 $as_echo X"$as_dir" |
31879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31880 s//\1/
31881 q
31882 }
31883 /^X\(\/\/\)[^/].*/{
31884 s//\1/
31885 q
31886 }
31887 /^X\(\/\/\)$/{
31888 s//\1/
31889 q
31890 }
31891 /^X\(\/\).*/{
31892 s//\1/
31893 q
31894 }
31895 s/.*/./; q'`
31896 test -d "$as_dir" && break
31897 done
31898 test -z "$as_dirs" || eval "mkdir $as_dirs"
31899 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31900
31901
31902 } # as_fn_mkdir_p
31903 if mkdir -p . 2>/dev/null; then
31904 as_mkdir_p='mkdir -p "$as_dir"'
31905 else
31906 test -d ./-p && rmdir ./-p
31907 as_mkdir_p=false
31908 fi
31909
31910
31911 # as_fn_executable_p FILE
31912 # -----------------------
31913 # Test if FILE is an executable regular file.
31914 as_fn_executable_p ()
31915 {
31916 test -f "$1" && test -x "$1"
31917 } # as_fn_executable_p
31918 as_test_x='test -x'
31919 as_executable_p=as_fn_executable_p
31920
31921 # Sed expression to map a string onto a valid CPP name.
31922 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31923
31924 # Sed expression to map a string onto a valid variable name.
31925 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31926
31927
31928 exec 6>&1
31929 ## ----------------------------------- ##
31930 ## Main body of $CONFIG_STATUS script. ##
31931 ## ----------------------------------- ##
31932 _ASEOF
31933 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31934
31935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31936 # Save the log message, to keep $0 and so on meaningful, and to
31937 # report actual input values of CONFIG_FILES etc. instead of their
31938 # values after options handling.
31939 ac_log="
31940 This file was extended by $as_me, which was
31941 generated by GNU Autoconf 2.69. Invocation command line was
31942
31943 CONFIG_FILES = $CONFIG_FILES
31944 CONFIG_HEADERS = $CONFIG_HEADERS
31945 CONFIG_LINKS = $CONFIG_LINKS
31946 CONFIG_COMMANDS = $CONFIG_COMMANDS
31947 $ $0 $@
31948
31949 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31950 "
31951
31952 _ACEOF
31953
31954 case $ac_config_files in *"
31955 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31956 esac
31957
31958 case $ac_config_headers in *"
31959 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31960 esac
31961
31962
31963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31964 # Files that config.status was made for.
31965 config_files="$ac_config_files"
31966 config_headers="$ac_config_headers"
31967 config_links="$ac_config_links"
31968 config_commands="$ac_config_commands"
31969
31970 _ACEOF
31971
31972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31973 ac_cs_usage="\
31974 \`$as_me' instantiates files and other configuration actions
31975 from templates according to the current configuration. Unless the files
31976 and actions are specified as TAGs, all are instantiated by default.
31977
31978 Usage: $0 [OPTION]... [TAG]...
31979
31980 -h, --help print this help, then exit
31981 -V, --version print version number and configuration settings, then exit
31982 --config print configuration, then exit
31983 -q, --quiet, --silent
31984 do not print progress messages
31985 -d, --debug don't remove temporary files
31986 --recheck update $as_me by reconfiguring in the same conditions
31987 --file=FILE[:TEMPLATE]
31988 instantiate the configuration file FILE
31989 --header=FILE[:TEMPLATE]
31990 instantiate the configuration header FILE
31991
31992 Configuration files:
31993 $config_files
31994
31995 Configuration headers:
31996 $config_headers
31997
31998 Configuration links:
31999 $config_links
32000
32001 Configuration commands:
32002 $config_commands
32003
32004 Report bugs to the package provider."
32005
32006 _ACEOF
32007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32008 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32009 ac_cs_version="\\
32010 config.status
32011 configured by $0, generated by GNU Autoconf 2.69,
32012 with options \\"\$ac_cs_config\\"
32013
32014 Copyright (C) 2012 Free Software Foundation, Inc.
32015 This config.status script is free software; the Free Software Foundation
32016 gives unlimited permission to copy, distribute and modify it."
32017
32018 ac_pwd='$ac_pwd'
32019 srcdir='$srcdir'
32020 AWK='$AWK'
32021 test -n "\$AWK" || AWK=awk
32022 _ACEOF
32023
32024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32025 # The default lists apply if the user does not specify any file.
32026 ac_need_defaults=:
32027 while test $# != 0
32028 do
32029 case $1 in
32030 --*=?*)
32031 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32032 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32033 ac_shift=:
32034 ;;
32035 --*=)
32036 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32037 ac_optarg=
32038 ac_shift=:
32039 ;;
32040 *)
32041 ac_option=$1
32042 ac_optarg=$2
32043 ac_shift=shift
32044 ;;
32045 esac
32046
32047 case $ac_option in
32048 # Handling of the options.
32049 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32050 ac_cs_recheck=: ;;
32051 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32052 $as_echo "$ac_cs_version"; exit ;;
32053 --config | --confi | --conf | --con | --co | --c )
32054 $as_echo "$ac_cs_config"; exit ;;
32055 --debug | --debu | --deb | --de | --d | -d )
32056 debug=: ;;
32057 --file | --fil | --fi | --f )
32058 $ac_shift
32059 case $ac_optarg in
32060 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32061 '') as_fn_error $? "missing file argument" ;;
32062 esac
32063 as_fn_append CONFIG_FILES " '$ac_optarg'"
32064 ac_need_defaults=false;;
32065 --header | --heade | --head | --hea )
32066 $ac_shift
32067 case $ac_optarg in
32068 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32069 esac
32070 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32071 ac_need_defaults=false;;
32072 --he | --h)
32073 # Conflict between --help and --header
32074 as_fn_error $? "ambiguous option: \`$1'
32075 Try \`$0 --help' for more information.";;
32076 --help | --hel | -h )
32077 $as_echo "$ac_cs_usage"; exit ;;
32078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32079 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32080 ac_cs_silent=: ;;
32081
32082 # This is an error.
32083 -*) as_fn_error $? "unrecognized option: \`$1'
32084 Try \`$0 --help' for more information." ;;
32085
32086 *) as_fn_append ac_config_targets " $1"
32087 ac_need_defaults=false ;;
32088
32089 esac
32090 shift
32091 done
32092
32093 ac_configure_extra_args=
32094
32095 if $ac_cs_silent; then
32096 exec 6>/dev/null
32097 ac_configure_extra_args="$ac_configure_extra_args --silent"
32098 fi
32099
32100 _ACEOF
32101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32102 if \$ac_cs_recheck; then
32103 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32104 shift
32105 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32106 CONFIG_SHELL='$SHELL'
32107 export CONFIG_SHELL
32108 exec "\$@"
32109 fi
32110
32111 _ACEOF
32112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32113 exec 5>>config.log
32114 {
32115 echo
32116 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32117 ## Running $as_me. ##
32118 _ASBOX
32119 $as_echo "$ac_log"
32120 } >&5
32121
32122 _ACEOF
32123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32124 #
32125 # INIT-COMMANDS
32126 #
32127 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32128 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32129 subdirs='$subdirs'
32130
32131 _ACEOF
32132
32133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32134
32135 # Handling of arguments.
32136 for ac_config_target in $ac_config_targets
32137 do
32138 case $ac_config_target in
32139 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
32140 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
32141 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
32142 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
32143 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
32144 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
32145 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
32146 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
32147 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32148
32149 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32150 esac
32151 done
32152
32153
32154 # If the user did not use the arguments to specify the items to instantiate,
32155 # then the envvar interface is used. Set only those that are not.
32156 # We use the long form for the default assignment because of an extremely
32157 # bizarre bug on SunOS 4.1.3.
32158 if $ac_need_defaults; then
32159 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32160 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32161 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
32162 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32163 fi
32164
32165 # Have a temporary directory for convenience. Make it in the build tree
32166 # simply because there is no reason against having it here, and in addition,
32167 # creating and moving files from /tmp can sometimes cause problems.
32168 # Hook for its removal unless debugging.
32169 # Note that there is a small window in which the directory will not be cleaned:
32170 # after its creation but before its name has been assigned to `$tmp'.
32171 $debug ||
32172 {
32173 tmp= ac_tmp=
32174 trap 'exit_status=$?
32175 : "${ac_tmp:=$tmp}"
32176 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32177 ' 0
32178 trap 'as_fn_exit 1' 1 2 13 15
32179 }
32180 # Create a (secure) tmp directory for tmp files.
32181
32182 {
32183 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32184 test -d "$tmp"
32185 } ||
32186 {
32187 tmp=./conf$$-$RANDOM
32188 (umask 077 && mkdir "$tmp")
32189 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32190 ac_tmp=$tmp
32191
32192 # Set up the scripts for CONFIG_FILES section.
32193 # No need to generate them if there are no CONFIG_FILES.
32194 # This happens for instance with `./config.status config.h'.
32195 if test -n "$CONFIG_FILES"; then
32196
32197 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32198 ac_cs_awk_getline=:
32199 ac_cs_awk_pipe_init=
32200 ac_cs_awk_read_file='
32201 while ((getline aline < (F[key])) > 0)
32202 print(aline)
32203 close(F[key])'
32204 ac_cs_awk_pipe_fini=
32205 else
32206 ac_cs_awk_getline=false
32207 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32208 ac_cs_awk_read_file='
32209 print "|#_!!_#|"
32210 print "cat " F[key] " &&"
32211 '$ac_cs_awk_pipe_init
32212 # The final `:' finishes the AND list.
32213 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32214 fi
32215 ac_cr=`echo X | tr X '\015'`
32216 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32217 # But we know of no other shell where ac_cr would be empty at this
32218 # point, so we can use a bashism as a fallback.
32219 if test "x$ac_cr" = x; then
32220 eval ac_cr=\$\'\\r\'
32221 fi
32222 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32223 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32224 ac_cs_awk_cr='\\r'
32225 else
32226 ac_cs_awk_cr=$ac_cr
32227 fi
32228
32229 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32230 _ACEOF
32231
32232 # Create commands to substitute file output variables.
32233 {
32234 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32235 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32236 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32237 echo "_ACAWK" &&
32238 echo "_ACEOF"
32239 } >conf$$files.sh &&
32240 . ./conf$$files.sh ||
32241 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32242 rm -f conf$$files.sh
32243
32244 {
32245 echo "cat >conf$$subs.awk <<_ACEOF" &&
32246 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32247 echo "_ACEOF"
32248 } >conf$$subs.sh ||
32249 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32250 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32251 ac_delim='%!_!# '
32252 for ac_last_try in false false false false false :; do
32253 . ./conf$$subs.sh ||
32254 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32255
32256 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32257 if test $ac_delim_n = $ac_delim_num; then
32258 break
32259 elif $ac_last_try; then
32260 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32261 else
32262 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32263 fi
32264 done
32265 rm -f conf$$subs.sh
32266
32267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32268 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32269 _ACEOF
32270 sed -n '
32271 h
32272 s/^/S["/; s/!.*/"]=/
32273 p
32274 g
32275 s/^[^!]*!//
32276 :repl
32277 t repl
32278 s/'"$ac_delim"'$//
32279 t delim
32280 :nl
32281 h
32282 s/\(.\{148\}\)..*/\1/
32283 t more1
32284 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32285 p
32286 n
32287 b repl
32288 :more1
32289 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32290 p
32291 g
32292 s/.\{148\}//
32293 t nl
32294 :delim
32295 h
32296 s/\(.\{148\}\)..*/\1/
32297 t more2
32298 s/["\\]/\\&/g; s/^/"/; s/$/"/
32299 p
32300 b
32301 :more2
32302 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32303 p
32304 g
32305 s/.\{148\}//
32306 t delim
32307 ' <conf$$subs.awk | sed '
32308 /^[^""]/{
32309 N
32310 s/\n//
32311 }
32312 ' >>$CONFIG_STATUS || ac_write_fail=1
32313 rm -f conf$$subs.awk
32314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32315 _ACAWK
32316 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32317 for (key in S) S_is_set[key] = 1
32318 FS = "\a"
32319 \$ac_cs_awk_pipe_init
32320 }
32321 {
32322 line = $ 0
32323 nfields = split(line, field, "@")
32324 substed = 0
32325 len = length(field[1])
32326 for (i = 2; i < nfields; i++) {
32327 key = field[i]
32328 keylen = length(key)
32329 if (S_is_set[key]) {
32330 value = S[key]
32331 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32332 len += length(value) + length(field[++i])
32333 substed = 1
32334 } else
32335 len += 1 + keylen
32336 }
32337 if (nfields == 3 && !substed) {
32338 key = field[2]
32339 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
32340 \$ac_cs_awk_read_file
32341 next
32342 }
32343 }
32344 print line
32345 }
32346 \$ac_cs_awk_pipe_fini
32347 _ACAWK
32348 _ACEOF
32349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32350 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32351 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32352 else
32353 cat
32354 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32355 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32356 _ACEOF
32357
32358 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32359 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32360 # trailing colons and then remove the whole line if VPATH becomes empty
32361 # (actually we leave an empty line to preserve line numbers).
32362 if test "x$srcdir" = x.; then
32363 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32364 h
32365 s///
32366 s/^/:/
32367 s/[ ]*$/:/
32368 s/:\$(srcdir):/:/g
32369 s/:\${srcdir}:/:/g
32370 s/:@srcdir@:/:/g
32371 s/^:*//
32372 s/:*$//
32373 x
32374 s/\(=[ ]*\).*/\1/
32375 G
32376 s/\n//
32377 s/^[^=]*=[ ]*$//
32378 }'
32379 fi
32380
32381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32382 fi # test -n "$CONFIG_FILES"
32383
32384 # Set up the scripts for CONFIG_HEADERS section.
32385 # No need to generate them if there are no CONFIG_HEADERS.
32386 # This happens for instance with `./config.status Makefile'.
32387 if test -n "$CONFIG_HEADERS"; then
32388 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32389 BEGIN {
32390 _ACEOF
32391
32392 # Transform confdefs.h into an awk script `defines.awk', embedded as
32393 # here-document in config.status, that substitutes the proper values into
32394 # config.h.in to produce config.h.
32395
32396 # Create a delimiter string that does not exist in confdefs.h, to ease
32397 # handling of long lines.
32398 ac_delim='%!_!# '
32399 for ac_last_try in false false :; do
32400 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32401 if test -z "$ac_tt"; then
32402 break
32403 elif $ac_last_try; then
32404 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32405 else
32406 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32407 fi
32408 done
32409
32410 # For the awk script, D is an array of macro values keyed by name,
32411 # likewise P contains macro parameters if any. Preserve backslash
32412 # newline sequences.
32413
32414 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32415 sed -n '
32416 s/.\{148\}/&'"$ac_delim"'/g
32417 t rset
32418 :rset
32419 s/^[ ]*#[ ]*define[ ][ ]*/ /
32420 t def
32421 d
32422 :def
32423 s/\\$//
32424 t bsnl
32425 s/["\\]/\\&/g
32426 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32427 D["\1"]=" \3"/p
32428 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32429 d
32430 :bsnl
32431 s/["\\]/\\&/g
32432 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32433 D["\1"]=" \3\\\\\\n"\\/p
32434 t cont
32435 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32436 t cont
32437 d
32438 :cont
32439 n
32440 s/.\{148\}/&'"$ac_delim"'/g
32441 t clear
32442 :clear
32443 s/\\$//
32444 t bsnlc
32445 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32446 d
32447 :bsnlc
32448 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32449 b cont
32450 ' <confdefs.h | sed '
32451 s/'"$ac_delim"'/"\\\
32452 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32453
32454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32455 for (key in D) D_is_set[key] = 1
32456 FS = "\a"
32457 }
32458 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32459 line = \$ 0
32460 split(line, arg, " ")
32461 if (arg[1] == "#") {
32462 defundef = arg[2]
32463 mac1 = arg[3]
32464 } else {
32465 defundef = substr(arg[1], 2)
32466 mac1 = arg[2]
32467 }
32468 split(mac1, mac2, "(") #)
32469 macro = mac2[1]
32470 prefix = substr(line, 1, index(line, defundef) - 1)
32471 if (D_is_set[macro]) {
32472 # Preserve the white space surrounding the "#".
32473 print prefix "define", macro P[macro] D[macro]
32474 next
32475 } else {
32476 # Replace #undef with comments. This is necessary, for example,
32477 # in the case of _POSIX_SOURCE, which is predefined and required
32478 # on some systems where configure will not decide to define it.
32479 if (defundef == "undef") {
32480 print "/*", prefix defundef, macro, "*/"
32481 next
32482 }
32483 }
32484 }
32485 { print }
32486 _ACAWK
32487 _ACEOF
32488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32489 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32490 fi # test -n "$CONFIG_HEADERS"
32491
32492
32493 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
32494 shift
32495 for ac_tag
32496 do
32497 case $ac_tag in
32498 :[FHLC]) ac_mode=$ac_tag; continue;;
32499 esac
32500 case $ac_mode$ac_tag in
32501 :[FHL]*:*);;
32502 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32503 :[FH]-) ac_tag=-:-;;
32504 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32505 esac
32506 ac_save_IFS=$IFS
32507 IFS=:
32508 set x $ac_tag
32509 IFS=$ac_save_IFS
32510 shift
32511 ac_file=$1
32512 shift
32513
32514 case $ac_mode in
32515 :L) ac_source=$1;;
32516 :[FH])
32517 ac_file_inputs=
32518 for ac_f
32519 do
32520 case $ac_f in
32521 -) ac_f="$ac_tmp/stdin";;
32522 *) # Look for the file first in the build tree, then in the source tree
32523 # (if the path is not absolute). The absolute path cannot be DOS-style,
32524 # because $ac_f cannot contain `:'.
32525 test -f "$ac_f" ||
32526 case $ac_f in
32527 [\\/$]*) false;;
32528 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32529 esac ||
32530 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32531 esac
32532 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32533 as_fn_append ac_file_inputs " '$ac_f'"
32534 done
32535
32536 # Let's still pretend it is `configure' which instantiates (i.e., don't
32537 # use $as_me), people would be surprised to read:
32538 # /* config.h. Generated by config.status. */
32539 configure_input='Generated from '`
32540 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32541 `' by configure.'
32542 if test x"$ac_file" != x-; then
32543 configure_input="$ac_file. $configure_input"
32544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32545 $as_echo "$as_me: creating $ac_file" >&6;}
32546 fi
32547 # Neutralize special characters interpreted by sed in replacement strings.
32548 case $configure_input in #(
32549 *\&* | *\|* | *\\* )
32550 ac_sed_conf_input=`$as_echo "$configure_input" |
32551 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32552 *) ac_sed_conf_input=$configure_input;;
32553 esac
32554
32555 case $ac_tag in
32556 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32558 esac
32559 ;;
32560 esac
32561
32562 ac_dir=`$as_dirname -- "$ac_file" ||
32563 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32564 X"$ac_file" : 'X\(//\)[^/]' \| \
32565 X"$ac_file" : 'X\(//\)$' \| \
32566 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32567 $as_echo X"$ac_file" |
32568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32569 s//\1/
32570 q
32571 }
32572 /^X\(\/\/\)[^/].*/{
32573 s//\1/
32574 q
32575 }
32576 /^X\(\/\/\)$/{
32577 s//\1/
32578 q
32579 }
32580 /^X\(\/\).*/{
32581 s//\1/
32582 q
32583 }
32584 s/.*/./; q'`
32585 as_dir="$ac_dir"; as_fn_mkdir_p
32586 ac_builddir=.
32587
32588 case "$ac_dir" in
32589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32590 *)
32591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32592 # A ".." for each directory in $ac_dir_suffix.
32593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32594 case $ac_top_builddir_sub in
32595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32597 esac ;;
32598 esac
32599 ac_abs_top_builddir=$ac_pwd
32600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32601 # for backward compatibility:
32602 ac_top_builddir=$ac_top_build_prefix
32603
32604 case $srcdir in
32605 .) # We are building in place.
32606 ac_srcdir=.
32607 ac_top_srcdir=$ac_top_builddir_sub
32608 ac_abs_top_srcdir=$ac_pwd ;;
32609 [\\/]* | ?:[\\/]* ) # Absolute name.
32610 ac_srcdir=$srcdir$ac_dir_suffix;
32611 ac_top_srcdir=$srcdir
32612 ac_abs_top_srcdir=$srcdir ;;
32613 *) # Relative name.
32614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32615 ac_top_srcdir=$ac_top_build_prefix$srcdir
32616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32617 esac
32618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32619
32620
32621 case $ac_mode in
32622 :F)
32623 #
32624 # CONFIG_FILE
32625 #
32626
32627 _ACEOF
32628
32629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32630 # If the template does not know about datarootdir, expand it.
32631 # FIXME: This hack should be removed a few years after 2.60.
32632 ac_datarootdir_hack=; ac_datarootdir_seen=
32633 ac_sed_dataroot='
32634 /datarootdir/ {
32635 p
32636 q
32637 }
32638 /@datadir@/p
32639 /@docdir@/p
32640 /@infodir@/p
32641 /@localedir@/p
32642 /@mandir@/p'
32643 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32644 *datarootdir*) ac_datarootdir_seen=yes;;
32645 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32647 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32648 _ACEOF
32649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32650 ac_datarootdir_hack='
32651 s&@datadir@&$datadir&g
32652 s&@docdir@&$docdir&g
32653 s&@infodir@&$infodir&g
32654 s&@localedir@&$localedir&g
32655 s&@mandir@&$mandir&g
32656 s&\\\${datarootdir}&$datarootdir&g' ;;
32657 esac
32658 _ACEOF
32659
32660 # Neutralize VPATH when `$srcdir' = `.'.
32661 # Shell code in configure.ac might set extrasub.
32662 # FIXME: do we really want to maintain this feature?
32663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32664 ac_sed_extra="$ac_vpsub
32665 $extrasub
32666 _ACEOF
32667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32668 :t
32669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32670 s|@configure_input@|$ac_sed_conf_input|;t t
32671 s&@top_builddir@&$ac_top_builddir_sub&;t t
32672 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32673 s&@srcdir@&$ac_srcdir&;t t
32674 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32675 s&@top_srcdir@&$ac_top_srcdir&;t t
32676 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32677 s&@builddir@&$ac_builddir&;t t
32678 s&@abs_builddir@&$ac_abs_builddir&;t t
32679 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32680 $ac_datarootdir_hack
32681 "
32682 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32683 if $ac_cs_awk_getline; then
32684 $AWK -f "$ac_tmp/subs.awk"
32685 else
32686 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32687 fi \
32688 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32689
32690 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32691 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32692 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32693 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32695 which seems to be undefined. Please make sure it is defined" >&5
32696 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32697 which seems to be undefined. Please make sure it is defined" >&2;}
32698
32699 rm -f "$ac_tmp/stdin"
32700 case $ac_file in
32701 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32702 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32703 esac \
32704 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32705 ;;
32706 :H)
32707 #
32708 # CONFIG_HEADER
32709 #
32710 if test x"$ac_file" != x-; then
32711 {
32712 $as_echo "/* $configure_input */" \
32713 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32714 } >"$ac_tmp/config.h" \
32715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32716 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32717 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32718 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32719 else
32720 rm -f "$ac_file"
32721 mv "$ac_tmp/config.h" "$ac_file" \
32722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32723 fi
32724 else
32725 $as_echo "/* $configure_input */" \
32726 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32727 || as_fn_error $? "could not create -" "$LINENO" 5
32728 fi
32729 ;;
32730 :L)
32731 #
32732 # CONFIG_LINK
32733 #
32734
32735 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
32736 :
32737 else
32738 # Prefer the file from the source tree if names are identical.
32739 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32740 ac_source=$srcdir/$ac_source
32741 fi
32742
32743 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32744 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32745
32746 if test ! -r "$ac_source"; then
32747 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32748 fi
32749 rm -f "$ac_file"
32750
32751 # Try a relative symlink, then a hard link, then a copy.
32752 case $ac_source in
32753 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32754 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32755 esac
32756 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32757 ln "$ac_source" "$ac_file" 2>/dev/null ||
32758 cp -p "$ac_source" "$ac_file" ||
32759 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32760 fi
32761 ;;
32762 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32763 $as_echo "$as_me: executing $ac_file commands" >&6;}
32764 ;;
32765 esac
32766
32767
32768 case $ac_file$ac_mode in
32769 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
32770 "gccdepdir":C)
32771 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
32772 for lang in $subdirs c-family common analyzer
32773 do
32774 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
32775 done ;;
32776 "as":F) chmod +x as ;;
32777 "collect-ld":F) chmod +x collect-ld ;;
32778 "nm":F) chmod +x nm ;;
32779 "default":C)
32780 case ${CONFIG_HEADERS} in
32781 *auto-host.h:config.in*)
32782 echo > cstamp-h ;;
32783 esac
32784 # Make sure all the subdirs exist.
32785 for d in $subdirs doc build common c-family
32786 do
32787 test -d $d || mkdir $d
32788 done
32789 ;;
32790
32791 esac
32792 done # for ac_tag
32793
32794
32795 as_fn_exit 0
32796 _ACEOF
32797 ac_clean_files=$ac_clean_files_save
32798
32799 test $ac_write_fail = 0 ||
32800 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32801
32802
32803 # configure is writing to config.log, and then calls config.status.
32804 # config.status does its own redirection, appending to config.log.
32805 # Unfortunately, on DOS this fails, as config.log is still kept open
32806 # by configure, so config.status won't be able to write to it; its
32807 # output is simply discarded. So we exec the FD to /dev/null,
32808 # effectively closing config.log, so it can be properly (re)opened and
32809 # appended to by config.status. When coming back to configure, we
32810 # need to make the FD available again.
32811 if test "$no_create" != yes; then
32812 ac_cs_success=:
32813 ac_config_status_args=
32814 test "$silent" = yes &&
32815 ac_config_status_args="$ac_config_status_args --quiet"
32816 exec 5>/dev/null
32817 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32818 exec 5>>config.log
32819 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32820 # would make configure fail if this is the last instruction.
32821 $ac_cs_success || as_fn_exit 1
32822 fi
32823 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32825 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32826 fi
32827
32828