]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
aa0960991c92f130f53edcf70cc959b106efefe1
[thirdparty/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.cc"
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_libcxx_include_dir_add_sysroot
679 gcc_gxx_libcxx_include_dir
680 gcc_gxx_include_dir_add_sysroot
681 gcc_gxx_include_dir
682 gcc_config_arguments
683 float_h_file
684 extra_programs
685 extra_objs
686 extra_headers_list
687 user_headers_inc_next_post
688 user_headers_inc_next_pre
689 extra_gcc_objs
690 TM_MULTILIB_EXCEPTIONS_CONFIG
691 TM_MULTILIB_CONFIG
692 TM_ENDIAN_CONFIG
693 tmake_file
694 xmake_file
695 cpp_install_dir
696 selftest_languages
697 check_languages
698 build_file_translate
699 build_xm_defines
700 build_xm_include_list
701 build_xm_file_list
702 build_install_headers_dir
703 build_exeext
704 all_selected_languages
705 all_languages
706 all_lang_makefrags
707 all_lang_configurefrags
708 all_gtfiles
709 all_compilers
710 srcdir
711 subdirs
712 dollar
713 gcc_tooldir
714 enable_lto
715 DO_LINK_SERIALIZATION
716 DO_LINK_MUTEX
717 CSCOPE
718 ETAGS
719 CTAGS
720 MAINT
721 zlibinc
722 zlibdir
723 HOST_LIBS
724 enable_default_ssp
725 thin_archive_support
726 ld_soname_option
727 ld_version_script_option
728 libgcc_visibility
729 ORIGINAL_DSYMUTIL_FOR_TARGET
730 gcc_cv_dsymutil
731 gcc_cv_otool
732 gcc_cv_readelf
733 gcc_cv_objdump
734 ORIGINAL_NM_FOR_TARGET
735 gcc_cv_nm
736 ORIGINAL_LD_GOLD_FOR_TARGET
737 ORIGINAL_LD_BFD_FOR_TARGET
738 ORIGINAL_LD_FOR_TARGET
739 ORIGINAL_PLUGIN_LD_FOR_TARGET
740 gcc_cv_ld
741 ORIGINAL_AS_FOR_TARGET
742 gcc_cv_as
743 enable_fast_install
744 objdir
745 OTOOL64
746 OTOOL
747 LIPO
748 NMEDIT
749 DSYMUTIL
750 STRIP
751 OBJDUMP
752 ac_ct_DUMPBIN
753 DUMPBIN
754 LD
755 FGREP
756 SED
757 LIBTOOL
758 collect2
759 STMP_FIXINC
760 BUILD_LDFLAGS
761 BUILD_CXXFLAGS
762 BUILD_CFLAGS
763 CXX_FOR_BUILD
764 CC_FOR_BUILD
765 inhibit_libc
766 BUILD_SYSTEM_HEADER_DIR
767 SYSTEM_HEADER_DIR
768 ALL
769 CROSS
770 CATOBJEXT
771 GENCAT
772 INSTOBJEXT
773 DATADIRNAME
774 CATALOGS
775 POSUB
776 GMSGFMT
777 XGETTEXT
778 INCINTL
779 LIBINTL_DEP
780 LIBINTL
781 USE_NLS
782 get_gcc_base_ver
783 HAVE_AUTO_BUILD
784 extra_opt_files
785 extra_modes_file
786 NATIVE_SYSTEM_HEADER_DIR
787 objext
788 manext
789 LIBICONV_DEP
790 LTLIBICONV
791 LIBICONV
792 ZSTD_LDFLAGS
793 ZSTD_CPPFLAGS
794 ZSTD_LIB
795 ZSTD_INCLUDE
796 DL_LIB
797 LDEXP_LIB
798 NETLIBS
799 EXTRA_GCC_LIBS
800 GNAT_LIBEXC
801 COLLECT2_LIBS
802 CXXDEPMODE
803 DEPDIR
804 am__leading_dot
805 doc_build_sys
806 AR
807 NM
808 BISON
809 FLEX
810 GENERATED_MANPAGES
811 BUILD_INFO
812 MAKEINFO
813 have_mktemp_command
814 make_compare_target
815 INSTALL_DATA
816 INSTALL_PROGRAM
817 INSTALL
818 ranlib_flags
819 RANLIB
820 LN
821 LN_S
822 AWK
823 SET_MAKE
824 omp_device_property_deps
825 omp_device_properties
826 accel_dir_suffix
827 real_target_noncanonical
828 enable_as_accelerator
829 gnat_install_lib
830 REPORT_BUGS_TEXI
831 REPORT_BUGS_TO
832 PKGVERSION
833 CONFIGURE_SPECS
834 enable_gcov
835 enable_shared
836 enable_fixed_point
837 enable_decimal_float
838 with_float
839 with_cpu
840 enable_multiarch
841 enable_multilib
842 coverage_flags
843 valgrind_command
844 valgrind_path_defines
845 valgrind_path
846 TREECHECKING
847 nocommon_flag
848 noexception_flags
849 warn_cxxflags
850 warn_cflags
851 c_strict_warn
852 strict_warn
853 c_loose_warn
854 loose_warn
855 aliasing_flags
856 CPP
857 EGREP
858 GREP
859 CXXCPP
860 PICFLAG_FOR_TARGET
861 GDCFLAGS
862 GDC
863 GNATMAKE
864 GNATBIND
865 ac_ct_CXX
866 CXXFLAGS
867 CXX
868 OBJEXT
869 EXEEXT
870 ac_ct_CC
871 CPPFLAGS
872 LDFLAGS
873 CFLAGS
874 CC
875 GENINSRC
876 CROSS_SYSTEM_HEADER_DIR
877 TARGET_SYSTEM_ROOT_DEFINE
878 TARGET_SYSTEM_ROOT
879 SYSROOT_CFLAGS_FOR_TARGET
880 target_subdir
881 host_subdir
882 build_subdir
883 build_libsubdir
884 target_noncanonical
885 host_noncanonical
886 target_os
887 target_vendor
888 target_cpu
889 target
890 host_os
891 host_vendor
892 host_cpu
893 host
894 build_os
895 build_vendor
896 build_cpu
897 build
898 target_alias
899 host_alias
900 build_alias
901 LIBS
902 ECHO_T
903 ECHO_N
904 ECHO_C
905 DEFS
906 mandir
907 localedir
908 libdir
909 psdir
910 pdfdir
911 dvidir
912 htmldir
913 infodir
914 docdir
915 oldincludedir
916 includedir
917 localstatedir
918 sharedstatedir
919 sysconfdir
920 datadir
921 datarootdir
922 libexecdir
923 sbindir
924 bindir
925 program_transform_name
926 prefix
927 exec_prefix
928 PACKAGE_URL
929 PACKAGE_BUGREPORT
930 PACKAGE_STRING
931 PACKAGE_VERSION
932 PACKAGE_TARNAME
933 PACKAGE_NAME
934 PATH_SEPARATOR
935 SHELL'
936 ac_subst_files='option_includes
937 language_hooks'
938 ac_user_opts='
939 enable_option_checking
940 with_build_libsubdir
941 with_local_prefix
942 with_native_system_header_dir
943 with_build_sysroot
944 with_sysroot
945 with_gxx_include_dir
946 with_gxx_libcxx_include_dir
947 with_cpp_install_dir
948 enable_generated_files_in_srcdir
949 with_gnu_ld
950 with_ld
951 with_demangler_in_ld
952 with_dsymutil
953 with_gnu_as
954 with_as
955 enable_largefile
956 enable_build_format_warnings
957 enable_werror_always
958 enable_checking
959 enable_coverage
960 enable_gather_detailed_mem_stats
961 enable_valgrind_annotations
962 enable_multilib
963 enable_multiarch
964 with_stack_clash_protection_guard_size
965 enable___cxa_atexit
966 enable_decimal_float
967 enable_fixed_point
968 enable_threads
969 enable_tls
970 enable_vtable_verify
971 enable_analyzer
972 enable_objc_gc
973 with_dwarf2
974 enable_shared
975 enable_gcov
976 with_specs
977 with_pkgversion
978 with_bugurl
979 with_documentation_root_url
980 with_changes_root_url
981 enable_languages
982 with_multilib_list
983 with_multilib_generator
984 with_zstd
985 with_zstd_include
986 with_zstd_lib
987 enable_rpath
988 with_libiconv_prefix
989 with_libiconv_type
990 enable_sjlj_exceptions
991 with_gcc_major_version_only
992 enable_secureplt
993 enable_mingw_wildcard
994 enable_large_address_aware
995 enable_leading_mingw64_underscores
996 enable_cld
997 enable_frame_pointer
998 enable_win32_registry
999 enable_static
1000 with_pic
1001 enable_fast_install
1002 enable_libtool_lock
1003 enable_ld
1004 enable_gold
1005 with_plugin_ld
1006 enable_gnu_indirect_function
1007 enable_initfini_array
1008 enable_comdat
1009 enable_newlib_nano_formatted_io
1010 enable_standard_branch_protection
1011 enable_fix_cortex_a53_835769
1012 enable_fix_cortex_a53_843419
1013 with_glibc_version
1014 enable_gnu_unique_object
1015 enable_linker_build_id
1016 enable_libssp
1017 enable_default_ssp
1018 with_long_double_128
1019 with_long_double_format
1020 with_gc
1021 with_system_zlib
1022 enable_maintainer_mode
1023 enable_link_mutex
1024 enable_link_serialization
1025 enable_version_specific_runtime_libs
1026 enable_plugin
1027 enable_host_shared
1028 enable_libquadmath_support
1029 with_linker_hash_style
1030 with_diagnostics_color
1031 with_diagnostics_urls
1032 enable_default_pie
1033 enable_cet
1034 enable_s390_excess_float_precision
1035 '
1036 ac_precious_vars='build_alias
1037 host_alias
1038 target_alias
1039 CC
1040 CFLAGS
1041 LDFLAGS
1042 LIBS
1043 CPPFLAGS
1044 CXX
1045 CXXFLAGS
1046 CCC
1047 CXXCPP
1048 CPP
1049 GMPLIBS
1050 GMPINC
1051 ISLLIBS
1052 ISLINC'
1053
1054
1055 # Initialize some variables set by options.
1056 ac_init_help=
1057 ac_init_version=false
1058 ac_unrecognized_opts=
1059 ac_unrecognized_sep=
1060 # The variables have the same names as the options, with
1061 # dashes changed to underlines.
1062 cache_file=/dev/null
1063 exec_prefix=NONE
1064 no_create=
1065 no_recursion=
1066 prefix=NONE
1067 program_prefix=NONE
1068 program_suffix=NONE
1069 program_transform_name=s,x,x,
1070 silent=
1071 site=
1072 srcdir=
1073 verbose=
1074 x_includes=NONE
1075 x_libraries=NONE
1076
1077 # Installation directory options.
1078 # These are left unexpanded so users can "make install exec_prefix=/foo"
1079 # and all the variables that are supposed to be based on exec_prefix
1080 # by default will actually change.
1081 # Use braces instead of parens because sh, perl, etc. also accept them.
1082 # (The list follows the same order as the GNU Coding Standards.)
1083 bindir='${exec_prefix}/bin'
1084 sbindir='${exec_prefix}/sbin'
1085 libexecdir='${exec_prefix}/libexec'
1086 datarootdir='${prefix}/share'
1087 datadir='${datarootdir}'
1088 sysconfdir='${prefix}/etc'
1089 sharedstatedir='${prefix}/com'
1090 localstatedir='${prefix}/var'
1091 includedir='${prefix}/include'
1092 oldincludedir='/usr/include'
1093 docdir='${datarootdir}/doc/${PACKAGE}'
1094 infodir='${datarootdir}/info'
1095 htmldir='${docdir}'
1096 dvidir='${docdir}'
1097 pdfdir='${docdir}'
1098 psdir='${docdir}'
1099 libdir='${exec_prefix}/lib'
1100 localedir='${datarootdir}/locale'
1101 mandir='${datarootdir}/man'
1102
1103 ac_prev=
1104 ac_dashdash=
1105 for ac_option
1106 do
1107 # If the previous option needs an argument, assign it.
1108 if test -n "$ac_prev"; then
1109 eval $ac_prev=\$ac_option
1110 ac_prev=
1111 continue
1112 fi
1113
1114 case $ac_option in
1115 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1116 *=) ac_optarg= ;;
1117 *) ac_optarg=yes ;;
1118 esac
1119
1120 # Accept the important Cygnus configure options, so we can diagnose typos.
1121
1122 case $ac_dashdash$ac_option in
1123 --)
1124 ac_dashdash=yes ;;
1125
1126 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1127 ac_prev=bindir ;;
1128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1129 bindir=$ac_optarg ;;
1130
1131 -build | --build | --buil | --bui | --bu)
1132 ac_prev=build_alias ;;
1133 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1134 build_alias=$ac_optarg ;;
1135
1136 -cache-file | --cache-file | --cache-fil | --cache-fi \
1137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1138 ac_prev=cache_file ;;
1139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1141 cache_file=$ac_optarg ;;
1142
1143 --config-cache | -C)
1144 cache_file=config.cache ;;
1145
1146 -datadir | --datadir | --datadi | --datad)
1147 ac_prev=datadir ;;
1148 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1149 datadir=$ac_optarg ;;
1150
1151 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1152 | --dataroo | --dataro | --datar)
1153 ac_prev=datarootdir ;;
1154 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1155 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1156 datarootdir=$ac_optarg ;;
1157
1158 -disable-* | --disable-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid feature name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167 "enable_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval enable_$ac_useropt=no ;;
1173
1174 -docdir | --docdir | --docdi | --doc | --do)
1175 ac_prev=docdir ;;
1176 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1177 docdir=$ac_optarg ;;
1178
1179 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1180 ac_prev=dvidir ;;
1181 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1182 dvidir=$ac_optarg ;;
1183
1184 -enable-* | --enable-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid feature name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1192 *"
1193 "enable_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval enable_$ac_useropt=\$ac_optarg ;;
1199
1200 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1201 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1202 | --exec | --exe | --ex)
1203 ac_prev=exec_prefix ;;
1204 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1205 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1206 | --exec=* | --exe=* | --ex=*)
1207 exec_prefix=$ac_optarg ;;
1208
1209 -gas | --gas | --ga | --g)
1210 # Obsolete; use --with-gas.
1211 with_gas=yes ;;
1212
1213 -help | --help | --hel | --he | -h)
1214 ac_init_help=long ;;
1215 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1216 ac_init_help=recursive ;;
1217 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1218 ac_init_help=short ;;
1219
1220 -host | --host | --hos | --ho)
1221 ac_prev=host_alias ;;
1222 -host=* | --host=* | --hos=* | --ho=*)
1223 host_alias=$ac_optarg ;;
1224
1225 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1226 ac_prev=htmldir ;;
1227 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1228 | --ht=*)
1229 htmldir=$ac_optarg ;;
1230
1231 -includedir | --includedir | --includedi | --included | --include \
1232 | --includ | --inclu | --incl | --inc)
1233 ac_prev=includedir ;;
1234 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1235 | --includ=* | --inclu=* | --incl=* | --inc=*)
1236 includedir=$ac_optarg ;;
1237
1238 -infodir | --infodir | --infodi | --infod | --info | --inf)
1239 ac_prev=infodir ;;
1240 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1241 infodir=$ac_optarg ;;
1242
1243 -libdir | --libdir | --libdi | --libd)
1244 ac_prev=libdir ;;
1245 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1246 libdir=$ac_optarg ;;
1247
1248 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1249 | --libexe | --libex | --libe)
1250 ac_prev=libexecdir ;;
1251 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1252 | --libexe=* | --libex=* | --libe=*)
1253 libexecdir=$ac_optarg ;;
1254
1255 -localedir | --localedir | --localedi | --localed | --locale)
1256 ac_prev=localedir ;;
1257 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1258 localedir=$ac_optarg ;;
1259
1260 -localstatedir | --localstatedir | --localstatedi | --localstated \
1261 | --localstate | --localstat | --localsta | --localst | --locals)
1262 ac_prev=localstatedir ;;
1263 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1264 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1265 localstatedir=$ac_optarg ;;
1266
1267 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1268 ac_prev=mandir ;;
1269 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1270 mandir=$ac_optarg ;;
1271
1272 -nfp | --nfp | --nf)
1273 # Obsolete; use --without-fp.
1274 with_fp=no ;;
1275
1276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1277 | --no-cr | --no-c | -n)
1278 no_create=yes ;;
1279
1280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1282 no_recursion=yes ;;
1283
1284 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1285 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1286 | --oldin | --oldi | --old | --ol | --o)
1287 ac_prev=oldincludedir ;;
1288 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1289 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1290 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1291 oldincludedir=$ac_optarg ;;
1292
1293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1294 ac_prev=prefix ;;
1295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1296 prefix=$ac_optarg ;;
1297
1298 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1299 | --program-pre | --program-pr | --program-p)
1300 ac_prev=program_prefix ;;
1301 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1302 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1303 program_prefix=$ac_optarg ;;
1304
1305 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1306 | --program-suf | --program-su | --program-s)
1307 ac_prev=program_suffix ;;
1308 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1309 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1310 program_suffix=$ac_optarg ;;
1311
1312 -program-transform-name | --program-transform-name \
1313 | --program-transform-nam | --program-transform-na \
1314 | --program-transform-n | --program-transform- \
1315 | --program-transform | --program-transfor \
1316 | --program-transfo | --program-transf \
1317 | --program-trans | --program-tran \
1318 | --progr-tra | --program-tr | --program-t)
1319 ac_prev=program_transform_name ;;
1320 -program-transform-name=* | --program-transform-name=* \
1321 | --program-transform-nam=* | --program-transform-na=* \
1322 | --program-transform-n=* | --program-transform-=* \
1323 | --program-transform=* | --program-transfor=* \
1324 | --program-transfo=* | --program-transf=* \
1325 | --program-trans=* | --program-tran=* \
1326 | --progr-tra=* | --program-tr=* | --program-t=*)
1327 program_transform_name=$ac_optarg ;;
1328
1329 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1330 ac_prev=pdfdir ;;
1331 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1332 pdfdir=$ac_optarg ;;
1333
1334 -psdir | --psdir | --psdi | --psd | --ps)
1335 ac_prev=psdir ;;
1336 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1337 psdir=$ac_optarg ;;
1338
1339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1340 | -silent | --silent | --silen | --sile | --sil)
1341 silent=yes ;;
1342
1343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1344 ac_prev=sbindir ;;
1345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1346 | --sbi=* | --sb=*)
1347 sbindir=$ac_optarg ;;
1348
1349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1351 | --sharedst | --shareds | --shared | --share | --shar \
1352 | --sha | --sh)
1353 ac_prev=sharedstatedir ;;
1354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1357 | --sha=* | --sh=*)
1358 sharedstatedir=$ac_optarg ;;
1359
1360 -site | --site | --sit)
1361 ac_prev=site ;;
1362 -site=* | --site=* | --sit=*)
1363 site=$ac_optarg ;;
1364
1365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1366 ac_prev=srcdir ;;
1367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1368 srcdir=$ac_optarg ;;
1369
1370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1371 | --syscon | --sysco | --sysc | --sys | --sy)
1372 ac_prev=sysconfdir ;;
1373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1375 sysconfdir=$ac_optarg ;;
1376
1377 -target | --target | --targe | --targ | --tar | --ta | --t)
1378 ac_prev=target_alias ;;
1379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1380 target_alias=$ac_optarg ;;
1381
1382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1383 verbose=yes ;;
1384
1385 -version | --version | --versio | --versi | --vers | -V)
1386 ac_init_version=: ;;
1387
1388 -with-* | --with-*)
1389 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1390 # Reject names that are not valid shell variable names.
1391 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1392 as_fn_error $? "invalid package name: $ac_useropt"
1393 ac_useropt_orig=$ac_useropt
1394 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1395 case $ac_user_opts in
1396 *"
1397 "with_$ac_useropt"
1398 "*) ;;
1399 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1400 ac_unrecognized_sep=', ';;
1401 esac
1402 eval with_$ac_useropt=\$ac_optarg ;;
1403
1404 -without-* | --without-*)
1405 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1408 as_fn_error $? "invalid package name: $ac_useropt"
1409 ac_useropt_orig=$ac_useropt
1410 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1412 *"
1413 "with_$ac_useropt"
1414 "*) ;;
1415 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1416 ac_unrecognized_sep=', ';;
1417 esac
1418 eval with_$ac_useropt=no ;;
1419
1420 --x)
1421 # Obsolete; use --with-x.
1422 with_x=yes ;;
1423
1424 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1425 | --x-incl | --x-inc | --x-in | --x-i)
1426 ac_prev=x_includes ;;
1427 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1428 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1429 x_includes=$ac_optarg ;;
1430
1431 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1432 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1433 ac_prev=x_libraries ;;
1434 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1435 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1436 x_libraries=$ac_optarg ;;
1437
1438 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1439 Try \`$0 --help' for more information"
1440 ;;
1441
1442 *=*)
1443 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1444 # Reject names that are not valid shell variable names.
1445 case $ac_envvar in #(
1446 '' | [0-9]* | *[!_$as_cr_alnum]* )
1447 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1448 esac
1449 eval $ac_envvar=\$ac_optarg
1450 export $ac_envvar ;;
1451
1452 *)
1453 # FIXME: should be removed in autoconf 3.0.
1454 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1455 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1456 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1457 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1458 ;;
1459
1460 esac
1461 done
1462
1463 if test -n "$ac_prev"; then
1464 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1465 as_fn_error $? "missing argument to $ac_option"
1466 fi
1467
1468 if test -n "$ac_unrecognized_opts"; then
1469 case $enable_option_checking in
1470 no) ;;
1471 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1472 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1473 esac
1474 fi
1475
1476 # Check all directory arguments for consistency.
1477 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1478 datadir sysconfdir sharedstatedir localstatedir includedir \
1479 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1480 libdir localedir mandir
1481 do
1482 eval ac_val=\$$ac_var
1483 # Remove trailing slashes.
1484 case $ac_val in
1485 */ )
1486 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1487 eval $ac_var=\$ac_val;;
1488 esac
1489 # Be sure to have absolute directory names.
1490 case $ac_val in
1491 [\\/$]* | ?:[\\/]* ) continue;;
1492 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1493 esac
1494 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1495 done
1496
1497 # There might be people who depend on the old broken behavior: `$host'
1498 # used to hold the argument of --host etc.
1499 # FIXME: To remove some day.
1500 build=$build_alias
1501 host=$host_alias
1502 target=$target_alias
1503
1504 # FIXME: To remove some day.
1505 if test "x$host_alias" != x; then
1506 if test "x$build_alias" = x; then
1507 cross_compiling=maybe
1508 elif test "x$build_alias" != "x$host_alias"; then
1509 cross_compiling=yes
1510 fi
1511 fi
1512
1513 ac_tool_prefix=
1514 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1515
1516 test "$silent" = yes && exec 6>/dev/null
1517
1518
1519 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1520 ac_ls_di=`ls -di .` &&
1521 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1522 as_fn_error $? "working directory cannot be determined"
1523 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1524 as_fn_error $? "pwd does not report name of working directory"
1525
1526
1527 # Find the source files, if location was not specified.
1528 if test -z "$srcdir"; then
1529 ac_srcdir_defaulted=yes
1530 # Try the directory containing this script, then the parent directory.
1531 ac_confdir=`$as_dirname -- "$as_myself" ||
1532 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1533 X"$as_myself" : 'X\(//\)[^/]' \| \
1534 X"$as_myself" : 'X\(//\)$' \| \
1535 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1536 $as_echo X"$as_myself" |
1537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1538 s//\1/
1539 q
1540 }
1541 /^X\(\/\/\)[^/].*/{
1542 s//\1/
1543 q
1544 }
1545 /^X\(\/\/\)$/{
1546 s//\1/
1547 q
1548 }
1549 /^X\(\/\).*/{
1550 s//\1/
1551 q
1552 }
1553 s/.*/./; q'`
1554 srcdir=$ac_confdir
1555 if test ! -r "$srcdir/$ac_unique_file"; then
1556 srcdir=..
1557 fi
1558 else
1559 ac_srcdir_defaulted=no
1560 fi
1561 if test ! -r "$srcdir/$ac_unique_file"; then
1562 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1563 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1564 fi
1565 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1566 ac_abs_confdir=`(
1567 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1568 pwd)`
1569 # When building in place, set srcdir=.
1570 if test "$ac_abs_confdir" = "$ac_pwd"; then
1571 srcdir=.
1572 fi
1573 # Remove unnecessary trailing slashes from srcdir.
1574 # Double slashes in file names in object file debugging info
1575 # mess up M-x gdb in Emacs.
1576 case $srcdir in
1577 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1578 esac
1579 for ac_var in $ac_precious_vars; do
1580 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1581 eval ac_env_${ac_var}_value=\$${ac_var}
1582 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1583 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1584 done
1585
1586 #
1587 # Report the --help message.
1588 #
1589 if test "$ac_init_help" = "long"; then
1590 # Omit some internal or obsolete options to make the list less imposing.
1591 # This message is too long to be a string in the A/UX 3.1 sh.
1592 cat <<_ACEOF
1593 \`configure' configures this package to adapt to many kinds of systems.
1594
1595 Usage: $0 [OPTION]... [VAR=VALUE]...
1596
1597 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1598 VAR=VALUE. See below for descriptions of some of the useful variables.
1599
1600 Defaults for the options are specified in brackets.
1601
1602 Configuration:
1603 -h, --help display this help and exit
1604 --help=short display options specific to this package
1605 --help=recursive display the short help of all the included packages
1606 -V, --version display version information and exit
1607 -q, --quiet, --silent do not print \`checking ...' messages
1608 --cache-file=FILE cache test results in FILE [disabled]
1609 -C, --config-cache alias for \`--cache-file=config.cache'
1610 -n, --no-create do not create output files
1611 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1612
1613 Installation directories:
1614 --prefix=PREFIX install architecture-independent files in PREFIX
1615 [$ac_default_prefix]
1616 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1617 [PREFIX]
1618
1619 By default, \`make install' will install all the files in
1620 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1621 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1622 for instance \`--prefix=\$HOME'.
1623
1624 For better control, use the options below.
1625
1626 Fine tuning of the installation directories:
1627 --bindir=DIR user executables [EPREFIX/bin]
1628 --sbindir=DIR system admin executables [EPREFIX/sbin]
1629 --libexecdir=DIR program executables [EPREFIX/libexec]
1630 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1631 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1632 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1633 --libdir=DIR object code libraries [EPREFIX/lib]
1634 --includedir=DIR C header files [PREFIX/include]
1635 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1636 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1637 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1638 --infodir=DIR info documentation [DATAROOTDIR/info]
1639 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1640 --mandir=DIR man documentation [DATAROOTDIR/man]
1641 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1642 --htmldir=DIR html documentation [DOCDIR]
1643 --dvidir=DIR dvi documentation [DOCDIR]
1644 --pdfdir=DIR pdf documentation [DOCDIR]
1645 --psdir=DIR ps documentation [DOCDIR]
1646 _ACEOF
1647
1648 cat <<\_ACEOF
1649
1650 Program names:
1651 --program-prefix=PREFIX prepend PREFIX to installed program names
1652 --program-suffix=SUFFIX append SUFFIX to installed program names
1653 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1654
1655 System types:
1656 --build=BUILD configure for building on BUILD [guessed]
1657 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1658 --target=TARGET configure for building compilers for TARGET [HOST]
1659 _ACEOF
1660 fi
1661
1662 if test -n "$ac_init_help"; then
1663
1664 cat <<\_ACEOF
1665
1666 Optional Features:
1667 --disable-option-checking ignore unrecognized --enable/--with options
1668 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1669 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1670 --enable-generated-files-in-srcdir
1671 put copies of generated files in source dir intended
1672 for creating source tarballs for users without
1673 texinfo bison or flex
1674 --disable-largefile omit support for large files
1675 --disable-build-format-warnings
1676 don't use -Wformat while building GCC
1677 --enable-werror-always enable -Werror despite compiler version
1678 --enable-checking[=LIST]
1679 enable expensive run-time checks. With LIST, enable
1680 only specific categories of checks. Categories are:
1681 yes,no,all,none,release. Flags are:
1682 assert,df,extra,fold,gc,gcac,gimple,misc,
1683 rtlflag,rtl,runtime,tree,valgrind,types
1684 --enable-coverage[=LEVEL]
1685 enable compiler's code coverage collection. Use to
1686 measure compiler performance and locate unused parts
1687 of the compiler. With LEVEL, specify optimization.
1688 Values are opt, noopt, default is noopt
1689 --enable-gather-detailed-mem-stats
1690 enable detailed memory allocation stats gathering
1691 --enable-valgrind-annotations
1692 enable valgrind runtime interaction
1693 --enable-multilib enable library support for multiple ABIs
1694 --enable-multiarch enable support for multiarch paths
1695 --enable-__cxa_atexit enable __cxa_atexit for C++
1696 --enable-decimal-float={no,yes,bid,dpd}
1697 enable decimal float extension to C. Selecting 'bid'
1698 or 'dpd' choses which decimal floating point format
1699 to use
1700 --enable-fixed-point enable fixed-point arithmetic extension to C
1701 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1702 package
1703 --enable-tls enable or disable generation of tls code overriding
1704 the assembler check for tls support
1705 --enable-vtable-verify enable vtable verification feature
1706 --disable-analyzer disable -fanalyzer static analyzer
1707 --enable-objc-gc enable the use of Boehm's garbage collector with the
1708 GNU Objective-C runtime
1709 --disable-shared don't provide a shared libgcc
1710 --disable-gcov don't provide libgcov and related host tools
1711 --enable-languages=LIST specify which front-ends to build
1712 --disable-rpath do not hardcode runtime library paths
1713 --enable-sjlj-exceptions
1714 arrange to use setjmp/longjmp exception handling
1715 --enable-secureplt enable -msecure-plt by default for PowerPC
1716 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1717 Default to platform configuration
1718 --enable-large-address-aware
1719 Link mingw executables with --large-address-aware
1720 --enable-leading-mingw64-underscores
1721 enable leading underscores on 64 bit mingw targets
1722 --enable-cld enable -mcld by default for 32bit x86
1723 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1724 --disable-win32-registry
1725 disable lookup of installation paths in the Registry
1726 on Windows hosts
1727 --enable-win32-registry enable registry lookup (default)
1728 --enable-win32-registry=KEY
1729 use KEY instead of GCC version as the last portion
1730 of the registry key
1731 --enable-shared[=PKGS] build shared libraries [default=yes]
1732 --enable-static[=PKGS] build static libraries [default=yes]
1733 --enable-fast-install[=PKGS]
1734 optimize for fast installation [default=yes]
1735 --disable-libtool-lock avoid locking (might break parallel builds)
1736 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1737 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1738 --enable-gnu-indirect-function
1739 enable the use of the @gnu_indirect_function to
1740 glibc systems
1741 --enable-initfini-array use .init_array/.fini_array sections
1742 --enable-comdat enable COMDAT group support
1743 --enable-newlib-nano-formatted-io
1744 Use nano version formatted IO
1745
1746 --enable-standard-branch-protection
1747 enable Branch Target Identification Mechanism and
1748 Return Address Signing by default for AArch64
1749 --disable-standard-branch-protection
1750 disable Branch Target Identification Mechanism and
1751 Return Address Signing by default for AArch64
1752
1753
1754 --enable-fix-cortex-a53-835769
1755 enable workaround for AArch64 Cortex-A53 erratum
1756 835769 by default
1757 --disable-fix-cortex-a53-835769
1758 disable workaround for AArch64 Cortex-A53 erratum
1759 835769 by default
1760
1761
1762 --enable-fix-cortex-a53-843419
1763 enable workaround for AArch64 Cortex-A53 erratum
1764 843419 by default
1765 --disable-fix-cortex-a53-843419
1766 disable workaround for AArch64 Cortex-A53 erratum
1767 843419 by default
1768
1769 --enable-gnu-unique-object
1770 enable the use of the @gnu_unique_object ELF
1771 extension on glibc systems
1772 --enable-linker-build-id
1773 compiler will always pass --build-id to linker
1774 --enable-libssp enable linking against libssp
1775 --enable-default-ssp enable Stack Smashing Protection as default
1776 --enable-maintainer-mode
1777 enable make rules and dependencies not useful (and
1778 sometimes confusing) to the casual installer
1779 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1780 thrashing on the build machine
1781 --enable-link-serialization
1782 avoid linking multiple GCC front-ends at once using
1783 make dependencies to avoid thrashing on the build
1784 machine
1785 --enable-version-specific-runtime-libs
1786 specify that runtime libraries should be installed
1787 in a compiler-specific directory
1788 --enable-plugin enable plugin support
1789 --enable-host-shared build host code as shared libraries
1790 --disable-libquadmath-support
1791 disable libquadmath support for Fortran
1792 --enable-default-pie enable Position Independent Executable as default
1793 --enable-cet enable Intel CET in host libraries [default=auto]
1794 --enable-s390-excess-float-precision
1795 on s390 targets, evaluate float with double
1796 precision when in standards-conforming mode
1797
1798 Optional Packages:
1799 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1800 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1801 --with-build-libsubdir=DIR Directory where to find libraries for build system
1802 --with-local-prefix=DIR specifies directory to put local include
1803 --with-native-system-header-dir=dir
1804 use dir as the directory to look for standard
1805 system header files in. Defaults to /usr/include.
1806 --with-build-sysroot=sysroot
1807 use sysroot as the system root during the build
1808 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1809 --with-gxx-include-dir=DIR
1810 specifies directory to put g++ header files
1811 --with-gxx-libcxx-include-dir=DIR
1812 specifies directory to find libc++ header files
1813 --with-cpp-install-dir=DIR
1814 install the user visible C preprocessor in DIR
1815 (relative to PREFIX) as well as PREFIX/bin
1816 --with-gnu-ld arrange to work with GNU ld
1817 --with-ld arrange to use the specified ld (full pathname)
1818 --with-demangler-in-ld try to use demangler in GNU ld
1819 --with-dsymutil arrange to use the specified dsymutil (full
1820 pathname)
1821 --with-gnu-as arrange to work with GNU as
1822 --with-as arrange to use the specified as (full pathname)
1823 --with-stack-clash-protection-guard-size=size
1824 Set the default stack clash protection guard size
1825 for specific targets as a power of two in bytes.
1826 --with-dwarf2 force the default debug format to be DWARF 2
1827 --with-specs=SPECS add SPECS to driver command-line processing
1828 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1829 --with-bugurl=URL Direct users to URL to report a bug
1830 --with-documentation-root-url=URL
1831 Root for documentation URLs
1832 --with-changes-root-url=URL
1833 Root for GCC changes URLs
1834 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1835 SH and x86-64 only)
1836 --with-multilib-generator
1837 Multi-libs configuration string (RISC-V only)
1838 --with-zstd=PATH specify prefix directory for installed zstd library.
1839 Equivalent to --with-zstd-include=PATH/include plus
1840 --with-zstd-lib=PATH/lib
1841 --with-zstd-include=PATH
1842 specify directory for installed zstd include files
1843 --with-zstd-lib=PATH specify directory for the installed zstd library
1844 --with-gnu-ld assume the C compiler uses GNU ld default=no
1845 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1846 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1847 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1848 --with-gcc-major-version-only
1849 use only GCC major number in filesystem paths
1850 --with-pic try to use only PIC/non-PIC objects [default=use
1851 both]
1852 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1853 --with-plugin-ld=[ARG] specify the plugin linker
1854 --with-glibc-version=M.N
1855 assume GCC used with glibc version M.N or later
1856 --with-long-double-128 use 128-bit long double by default
1857 --with-long-double-format={ieee,ibm}
1858 Specify whether PowerPC long double uses IEEE or IBM format
1859
1860 --with-gc={page,zone} this option is not supported anymore. It used to
1861 choose the garbage collection mechanism to use with
1862 the compiler
1863 --with-system-zlib use installed libz
1864 --with-linker-hash-style={sysv,gnu,both}
1865 specify the linker hash style
1866 --with-diagnostics-color={never,auto,auto-if-env,always}
1867 specify the default of -fdiagnostics-color option
1868 auto-if-env stands for -fdiagnostics-color=auto if
1869 GCC_COLOR environment variable is present and
1870 -fdiagnostics-color=never otherwise
1871 --with-diagnostics-urls={never,auto,auto-if-env,always}
1872 specify the default of -fdiagnostics-urls option
1873 auto-if-env stands for -fdiagnostics-urls=auto if
1874 GCC_URLS or TERM_URLS environment variable is
1875 present and -fdiagnostics-urls=never otherwise
1876
1877 Some influential environment variables:
1878 CC C compiler command
1879 CFLAGS C compiler flags
1880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1881 nonstandard directory <lib dir>
1882 LIBS libraries to pass to the linker, e.g. -l<library>
1883 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1884 you have headers in a nonstandard directory <include dir>
1885 CXX C++ compiler command
1886 CXXFLAGS C++ compiler flags
1887 CXXCPP C++ preprocessor
1888 CPP C preprocessor
1889 GMPLIBS How to link GMP
1890 GMPINC How to find GMP include files
1891 ISLLIBS How to link isl
1892 ISLINC How to find isl include files
1893
1894 Use these variables to override the choices made by `configure' or to help
1895 it to find libraries and programs with nonstandard names/locations.
1896
1897 Report bugs to the package provider.
1898 _ACEOF
1899 ac_status=$?
1900 fi
1901
1902 if test "$ac_init_help" = "recursive"; then
1903 # If there are subdirs, report their specific --help.
1904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1905 test -d "$ac_dir" ||
1906 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1907 continue
1908 ac_builddir=.
1909
1910 case "$ac_dir" in
1911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1912 *)
1913 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1914 # A ".." for each directory in $ac_dir_suffix.
1915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1916 case $ac_top_builddir_sub in
1917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1919 esac ;;
1920 esac
1921 ac_abs_top_builddir=$ac_pwd
1922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1923 # for backward compatibility:
1924 ac_top_builddir=$ac_top_build_prefix
1925
1926 case $srcdir in
1927 .) # We are building in place.
1928 ac_srcdir=.
1929 ac_top_srcdir=$ac_top_builddir_sub
1930 ac_abs_top_srcdir=$ac_pwd ;;
1931 [\\/]* | ?:[\\/]* ) # Absolute name.
1932 ac_srcdir=$srcdir$ac_dir_suffix;
1933 ac_top_srcdir=$srcdir
1934 ac_abs_top_srcdir=$srcdir ;;
1935 *) # Relative name.
1936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1937 ac_top_srcdir=$ac_top_build_prefix$srcdir
1938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1939 esac
1940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1941
1942 cd "$ac_dir" || { ac_status=$?; continue; }
1943 # Check for guested configure.
1944 if test -f "$ac_srcdir/configure.gnu"; then
1945 echo &&
1946 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1947 elif test -f "$ac_srcdir/configure"; then
1948 echo &&
1949 $SHELL "$ac_srcdir/configure" --help=recursive
1950 else
1951 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1952 fi || ac_status=$?
1953 cd "$ac_pwd" || { ac_status=$?; break; }
1954 done
1955 fi
1956
1957 test -n "$ac_init_help" && exit $ac_status
1958 if $ac_init_version; then
1959 cat <<\_ACEOF
1960 configure
1961 generated by GNU Autoconf 2.69
1962
1963 Copyright (C) 2012 Free Software Foundation, Inc.
1964 This configure script is free software; the Free Software Foundation
1965 gives unlimited permission to copy, distribute and modify it.
1966 _ACEOF
1967 exit
1968 fi
1969
1970 ## ------------------------ ##
1971 ## Autoconf initialization. ##
1972 ## ------------------------ ##
1973
1974 # ac_fn_c_try_compile LINENO
1975 # --------------------------
1976 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1977 ac_fn_c_try_compile ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 rm -f conftest.$ac_objext
1981 if { { ac_try="$ac_compile"
1982 case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_compile") 2>conftest.err
1989 ac_status=$?
1990 if test -s conftest.err; then
1991 grep -v '^ *+' conftest.err >conftest.er1
1992 cat conftest.er1 >&5
1993 mv -f conftest.er1 conftest.err
1994 fi
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && {
1997 test -z "$ac_c_werror_flag" ||
1998 test ! -s conftest.err
1999 } && test -s conftest.$ac_objext; then :
2000 ac_retval=0
2001 else
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2004
2005 ac_retval=1
2006 fi
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008 as_fn_set_status $ac_retval
2009
2010 } # ac_fn_c_try_compile
2011
2012 # ac_fn_cxx_try_compile LINENO
2013 # ----------------------------
2014 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2015 ac_fn_cxx_try_compile ()
2016 {
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 rm -f conftest.$ac_objext
2019 if { { ac_try="$ac_compile"
2020 case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023 esac
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_compile") 2>conftest.err
2027 ac_status=$?
2028 if test -s conftest.err; then
2029 grep -v '^ *+' conftest.err >conftest.er1
2030 cat conftest.er1 >&5
2031 mv -f conftest.er1 conftest.err
2032 fi
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && {
2035 test -z "$ac_cxx_werror_flag" ||
2036 test ! -s conftest.err
2037 } && test -s conftest.$ac_objext; then :
2038 ac_retval=0
2039 else
2040 $as_echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2042
2043 ac_retval=1
2044 fi
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2047
2048 } # ac_fn_cxx_try_compile
2049
2050 # ac_fn_cxx_try_cpp LINENO
2051 # ------------------------
2052 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2053 ac_fn_cxx_try_cpp ()
2054 {
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if { { ac_try="$ac_cpp conftest.$ac_ext"
2057 case "(($ac_try" in
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2060 esac
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2064 ac_status=$?
2065 if test -s conftest.err; then
2066 grep -v '^ *+' conftest.err >conftest.er1
2067 cat conftest.er1 >&5
2068 mv -f conftest.er1 conftest.err
2069 fi
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } > conftest.i && {
2072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2073 test ! -s conftest.err
2074 }; then :
2075 ac_retval=0
2076 else
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2079
2080 ac_retval=1
2081 fi
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
2084
2085 } # ac_fn_cxx_try_cpp
2086
2087 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2088 # ---------------------------------------------------------
2089 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2090 # the include files in INCLUDES and setting the cache variable VAR
2091 # accordingly.
2092 ac_fn_cxx_check_header_mongrel ()
2093 {
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 if eval \${$3+:} false; then :
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \${$3+:} false; then :
2099 $as_echo_n "(cached) " >&6
2100 fi
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 else
2105 # Is the header compilable?
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2107 $as_echo_n "checking $2 usability... " >&6; }
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2110 $4
2111 #include <$2>
2112 _ACEOF
2113 if ac_fn_cxx_try_compile "$LINENO"; then :
2114 ac_header_compiler=yes
2115 else
2116 ac_header_compiler=no
2117 fi
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2120 $as_echo "$ac_header_compiler" >&6; }
2121
2122 # Is the header present?
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2124 $as_echo_n "checking $2 presence... " >&6; }
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2127 #include <$2>
2128 _ACEOF
2129 if ac_fn_cxx_try_cpp "$LINENO"; then :
2130 ac_header_preproc=yes
2131 else
2132 ac_header_preproc=no
2133 fi
2134 rm -f conftest.err conftest.i conftest.$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2136 $as_echo "$ac_header_preproc" >&6; }
2137
2138 # So? What about this header?
2139 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2140 yes:no: )
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2142 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2145 ;;
2146 no:yes:* )
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2148 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2150 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2152 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2154 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2157 ;;
2158 esac
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \${$3+:} false; then :
2162 $as_echo_n "(cached) " >&6
2163 else
2164 eval "$3=\$ac_header_compiler"
2165 fi
2166 eval ac_res=\$$3
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2169 fi
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171
2172 } # ac_fn_cxx_check_header_mongrel
2173
2174 # ac_fn_cxx_try_run LINENO
2175 # ------------------------
2176 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2177 # that executables *can* be run.
2178 ac_fn_cxx_try_run ()
2179 {
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 if { { ac_try="$ac_link"
2182 case "(($ac_try" in
2183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2184 *) ac_try_echo=$ac_try;;
2185 esac
2186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2187 $as_echo "$ac_try_echo"; } >&5
2188 (eval "$ac_link") 2>&5
2189 ac_status=$?
2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2192 { { case "(($ac_try" in
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2195 esac
2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_try") 2>&5
2199 ac_status=$?
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; }; }; then :
2202 ac_retval=0
2203 else
2204 $as_echo "$as_me: program exited with status $ac_status" >&5
2205 $as_echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2207
2208 ac_retval=$ac_status
2209 fi
2210 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 as_fn_set_status $ac_retval
2213
2214 } # ac_fn_cxx_try_run
2215
2216 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2217 # ---------------------------------------------------------
2218 # Tests whether HEADER exists and can be compiled using the include files in
2219 # INCLUDES, setting the cache variable VAR accordingly.
2220 ac_fn_cxx_check_header_compile ()
2221 {
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if eval \${$3+:} false; then :
2226 $as_echo_n "(cached) " >&6
2227 else
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2230 $4
2231 #include <$2>
2232 _ACEOF
2233 if ac_fn_cxx_try_compile "$LINENO"; then :
2234 eval "$3=yes"
2235 else
2236 eval "$3=no"
2237 fi
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 fi
2240 eval ac_res=\$$3
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244
2245 } # ac_fn_cxx_check_header_compile
2246
2247 # ac_fn_c_try_cpp LINENO
2248 # ----------------------
2249 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2250 ac_fn_c_try_cpp ()
2251 {
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 if { { ac_try="$ac_cpp conftest.$ac_ext"
2254 case "(($ac_try" in
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2257 esac
2258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259 $as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2261 ac_status=$?
2262 if test -s conftest.err; then
2263 grep -v '^ *+' conftest.err >conftest.er1
2264 cat conftest.er1 >&5
2265 mv -f conftest.er1 conftest.err
2266 fi
2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2268 test $ac_status = 0; } > conftest.i && {
2269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2270 test ! -s conftest.err
2271 }; then :
2272 ac_retval=0
2273 else
2274 $as_echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 ac_retval=1
2278 fi
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 as_fn_set_status $ac_retval
2281
2282 } # ac_fn_c_try_cpp
2283
2284 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2285 # ----------------------------------------------
2286 # Tries to find the compile-time value of EXPR in a program that includes
2287 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2288 # computed
2289 ac_fn_cxx_compute_int ()
2290 {
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 if test "$cross_compiling" = yes; then
2293 # Depending upon the size, compute the lo and hi bounds.
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2296 $4
2297 int
2298 main ()
2299 {
2300 static int test_array [1 - 2 * !(($2) >= 0)];
2301 test_array [0] = 0;
2302 return test_array [0];
2303
2304 ;
2305 return 0;
2306 }
2307 _ACEOF
2308 if ac_fn_cxx_try_compile "$LINENO"; then :
2309 ac_lo=0 ac_mid=0
2310 while :; do
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2313 $4
2314 int
2315 main ()
2316 {
2317 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2318 test_array [0] = 0;
2319 return test_array [0];
2320
2321 ;
2322 return 0;
2323 }
2324 _ACEOF
2325 if ac_fn_cxx_try_compile "$LINENO"; then :
2326 ac_hi=$ac_mid; break
2327 else
2328 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2329 if test $ac_lo -le $ac_mid; then
2330 ac_lo= ac_hi=
2331 break
2332 fi
2333 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2334 fi
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 done
2337 else
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2340 $4
2341 int
2342 main ()
2343 {
2344 static int test_array [1 - 2 * !(($2) < 0)];
2345 test_array [0] = 0;
2346 return test_array [0];
2347
2348 ;
2349 return 0;
2350 }
2351 _ACEOF
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2353 ac_hi=-1 ac_mid=-1
2354 while :; do
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2357 $4
2358 int
2359 main ()
2360 {
2361 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2362 test_array [0] = 0;
2363 return test_array [0];
2364
2365 ;
2366 return 0;
2367 }
2368 _ACEOF
2369 if ac_fn_cxx_try_compile "$LINENO"; then :
2370 ac_lo=$ac_mid; break
2371 else
2372 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2373 if test $ac_mid -le $ac_hi; then
2374 ac_lo= ac_hi=
2375 break
2376 fi
2377 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2378 fi
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 done
2381 else
2382 ac_lo= ac_hi=
2383 fi
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 fi
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 # Binary search between lo and hi bounds.
2388 while test "x$ac_lo" != "x$ac_hi"; do
2389 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2392 $4
2393 int
2394 main ()
2395 {
2396 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2397 test_array [0] = 0;
2398 return test_array [0];
2399
2400 ;
2401 return 0;
2402 }
2403 _ACEOF
2404 if ac_fn_cxx_try_compile "$LINENO"; then :
2405 ac_hi=$ac_mid
2406 else
2407 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2408 fi
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 done
2411 case $ac_lo in #((
2412 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2413 '') ac_retval=1 ;;
2414 esac
2415 else
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2418 $4
2419 static long int longval () { return $2; }
2420 static unsigned long int ulongval () { return $2; }
2421 #include <stdio.h>
2422 #include <stdlib.h>
2423 int
2424 main ()
2425 {
2426
2427 FILE *f = fopen ("conftest.val", "w");
2428 if (! f)
2429 return 1;
2430 if (($2) < 0)
2431 {
2432 long int i = longval ();
2433 if (i != ($2))
2434 return 1;
2435 fprintf (f, "%ld", i);
2436 }
2437 else
2438 {
2439 unsigned long int i = ulongval ();
2440 if (i != ($2))
2441 return 1;
2442 fprintf (f, "%lu", i);
2443 }
2444 /* Do not output a trailing newline, as this causes \r\n confusion
2445 on some platforms. */
2446 return ferror (f) || fclose (f) != 0;
2447
2448 ;
2449 return 0;
2450 }
2451 _ACEOF
2452 if ac_fn_cxx_try_run "$LINENO"; then :
2453 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2454 else
2455 ac_retval=1
2456 fi
2457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2458 conftest.$ac_objext conftest.beam conftest.$ac_ext
2459 rm -f conftest.val
2460
2461 fi
2462 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463 as_fn_set_status $ac_retval
2464
2465 } # ac_fn_cxx_compute_int
2466
2467 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2468 # ---------------------------------------------
2469 # Tests whether TYPE exists after having included INCLUDES, setting cache
2470 # variable VAR accordingly.
2471 ac_fn_cxx_check_type ()
2472 {
2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475 $as_echo_n "checking for $2... " >&6; }
2476 if eval \${$3+:} false; then :
2477 $as_echo_n "(cached) " >&6
2478 else
2479 eval "$3=no"
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2482 $4
2483 int
2484 main ()
2485 {
2486 if (sizeof ($2))
2487 return 0;
2488 ;
2489 return 0;
2490 }
2491 _ACEOF
2492 if ac_fn_cxx_try_compile "$LINENO"; then :
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2495 $4
2496 int
2497 main ()
2498 {
2499 if (sizeof (($2)))
2500 return 0;
2501 ;
2502 return 0;
2503 }
2504 _ACEOF
2505 if ac_fn_cxx_try_compile "$LINENO"; then :
2506
2507 else
2508 eval "$3=yes"
2509 fi
2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2511 fi
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2513 fi
2514 eval ac_res=\$$3
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516 $as_echo "$ac_res" >&6; }
2517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2518
2519 } # ac_fn_cxx_check_type
2520
2521 # ac_fn_c_find_intX_t LINENO BITS VAR
2522 # -----------------------------------
2523 # Finds a signed integer type with width BITS, setting cache variable VAR
2524 # accordingly.
2525 ac_fn_c_find_intX_t ()
2526 {
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2529 $as_echo_n "checking for int$2_t... " >&6; }
2530 if eval \${$3+:} false; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 eval "$3=no"
2534 # Order is important - never check a type that is potentially smaller
2535 # than half of the expected target width.
2536 for ac_type in int$2_t 'int' 'long int' \
2537 'long long int' 'short int' 'signed char'; do
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2540 $ac_includes_default
2541 enum { N = $2 / 2 - 1 };
2542 int
2543 main ()
2544 {
2545 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2546 test_array [0] = 0;
2547 return test_array [0];
2548
2549 ;
2550 return 0;
2551 }
2552 _ACEOF
2553 if ac_fn_cxx_try_compile "$LINENO"; then :
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 $ac_includes_default
2557 enum { N = $2 / 2 - 1 };
2558 int
2559 main ()
2560 {
2561 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2562 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2563 test_array [0] = 0;
2564 return test_array [0];
2565
2566 ;
2567 return 0;
2568 }
2569 _ACEOF
2570 if ac_fn_cxx_try_compile "$LINENO"; then :
2571
2572 else
2573 case $ac_type in #(
2574 int$2_t) :
2575 eval "$3=yes" ;; #(
2576 *) :
2577 eval "$3=\$ac_type" ;;
2578 esac
2579 fi
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581 fi
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 if eval test \"x\$"$3"\" = x"no"; then :
2584
2585 else
2586 break
2587 fi
2588 done
2589 fi
2590 eval ac_res=\$$3
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2592 $as_echo "$ac_res" >&6; }
2593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2594
2595 } # ac_fn_c_find_intX_t
2596
2597 # ac_fn_cxx_try_link LINENO
2598 # -------------------------
2599 # Try to link conftest.$ac_ext, and return whether this succeeded.
2600 ac_fn_cxx_try_link ()
2601 {
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 rm -f conftest.$ac_objext conftest$ac_exeext
2604 if { { ac_try="$ac_link"
2605 case "(($ac_try" in
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2608 esac
2609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2610 $as_echo "$ac_try_echo"; } >&5
2611 (eval "$ac_link") 2>conftest.err
2612 ac_status=$?
2613 if test -s conftest.err; then
2614 grep -v '^ *+' conftest.err >conftest.er1
2615 cat conftest.er1 >&5
2616 mv -f conftest.er1 conftest.err
2617 fi
2618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2619 test $ac_status = 0; } && {
2620 test -z "$ac_cxx_werror_flag" ||
2621 test ! -s conftest.err
2622 } && test -s conftest$ac_exeext && {
2623 test "$cross_compiling" = yes ||
2624 test -x conftest$ac_exeext
2625 }; then :
2626 ac_retval=0
2627 else
2628 $as_echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2630
2631 ac_retval=1
2632 fi
2633 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2634 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2635 # interfere with the next link command; also delete a directory that is
2636 # left behind by Apple's compiler. We do this before executing the actions.
2637 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2639 as_fn_set_status $ac_retval
2640
2641 } # ac_fn_cxx_try_link
2642
2643 # ac_fn_c_find_uintX_t LINENO BITS VAR
2644 # ------------------------------------
2645 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2646 # accordingly.
2647 ac_fn_c_find_uintX_t ()
2648 {
2649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2651 $as_echo_n "checking for uint$2_t... " >&6; }
2652 if eval \${$3+:} false; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 eval "$3=no"
2656 # Order is important - never check a type that is potentially smaller
2657 # than half of the expected target width.
2658 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2659 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2662 $ac_includes_default
2663 int
2664 main ()
2665 {
2666 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2667 test_array [0] = 0;
2668 return test_array [0];
2669
2670 ;
2671 return 0;
2672 }
2673 _ACEOF
2674 if ac_fn_cxx_try_compile "$LINENO"; then :
2675 case $ac_type in #(
2676 uint$2_t) :
2677 eval "$3=yes" ;; #(
2678 *) :
2679 eval "$3=\$ac_type" ;;
2680 esac
2681 fi
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 if eval test \"x\$"$3"\" = x"no"; then :
2684
2685 else
2686 break
2687 fi
2688 done
2689 fi
2690 eval ac_res=\$$3
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2694
2695 } # ac_fn_c_find_uintX_t
2696
2697 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2698 # ------------------------------------------------
2699 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2700 ac_fn_cxx_check_header_preproc ()
2701 {
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2704 $as_echo_n "checking for $2... " >&6; }
2705 if eval \${$3+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2710 #include <$2>
2711 _ACEOF
2712 if ac_fn_cxx_try_cpp "$LINENO"; then :
2713 eval "$3=yes"
2714 else
2715 eval "$3=no"
2716 fi
2717 rm -f conftest.err conftest.i conftest.$ac_ext
2718 fi
2719 eval ac_res=\$$3
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2721 $as_echo "$ac_res" >&6; }
2722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2723
2724 } # ac_fn_cxx_check_header_preproc
2725
2726 # ac_fn_cxx_check_func LINENO FUNC VAR
2727 # ------------------------------------
2728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2729 ac_fn_cxx_check_func ()
2730 {
2731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2733 $as_echo_n "checking for $2... " >&6; }
2734 if eval \${$3+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2741 #define $2 innocuous_$2
2742
2743 /* System header to define __stub macros and hopefully few prototypes,
2744 which can conflict with char $2 (); below.
2745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2746 <limits.h> exists even on freestanding compilers. */
2747
2748 #ifdef __STDC__
2749 # include <limits.h>
2750 #else
2751 # include <assert.h>
2752 #endif
2753
2754 #undef $2
2755
2756 /* Override any GCC internal prototype to avoid an error.
2757 Use char because int might match the return type of a GCC
2758 builtin and then its argument prototype would still apply. */
2759 #ifdef __cplusplus
2760 extern "C"
2761 #endif
2762 char $2 ();
2763 /* The GNU C library defines this for functions which it implements
2764 to always fail with ENOSYS. Some functions are actually named
2765 something starting with __ and the normal name is an alias. */
2766 #if defined __stub_$2 || defined __stub___$2
2767 choke me
2768 #endif
2769
2770 int
2771 main ()
2772 {
2773 return $2 ();
2774 ;
2775 return 0;
2776 }
2777 _ACEOF
2778 if ac_fn_cxx_try_link "$LINENO"; then :
2779 eval "$3=yes"
2780 else
2781 eval "$3=no"
2782 fi
2783 rm -f core conftest.err conftest.$ac_objext \
2784 conftest$ac_exeext conftest.$ac_ext
2785 fi
2786 eval ac_res=\$$3
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2790
2791 } # ac_fn_cxx_check_func
2792
2793 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2794 # -----------------------------------------------
2795 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2796 # accordingly.
2797 ac_fn_cxx_check_decl ()
2798 {
2799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800 as_decl_name=`echo $2|sed 's/ *(.*//'`
2801 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2803 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2804 if eval \${$3+:} false; then :
2805 $as_echo_n "(cached) " >&6
2806 else
2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h. */
2809 $4
2810 int
2811 main ()
2812 {
2813 #ifndef $as_decl_name
2814 #ifdef __cplusplus
2815 (void) $as_decl_use;
2816 #else
2817 (void) $as_decl_name;
2818 #endif
2819 #endif
2820
2821 ;
2822 return 0;
2823 }
2824 _ACEOF
2825 if ac_fn_cxx_try_compile "$LINENO"; then :
2826 eval "$3=yes"
2827 else
2828 eval "$3=no"
2829 fi
2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2831 fi
2832 eval ac_res=\$$3
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834 $as_echo "$ac_res" >&6; }
2835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2836
2837 } # ac_fn_cxx_check_decl
2838
2839 # ac_fn_c_try_link LINENO
2840 # -----------------------
2841 # Try to link conftest.$ac_ext, and return whether this succeeded.
2842 ac_fn_c_try_link ()
2843 {
2844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2845 rm -f conftest.$ac_objext conftest$ac_exeext
2846 if { { ac_try="$ac_link"
2847 case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850 esac
2851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2852 $as_echo "$ac_try_echo"; } >&5
2853 (eval "$ac_link") 2>conftest.err
2854 ac_status=$?
2855 if test -s conftest.err; then
2856 grep -v '^ *+' conftest.err >conftest.er1
2857 cat conftest.er1 >&5
2858 mv -f conftest.er1 conftest.err
2859 fi
2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861 test $ac_status = 0; } && {
2862 test -z "$ac_c_werror_flag" ||
2863 test ! -s conftest.err
2864 } && test -s conftest$ac_exeext && {
2865 test "$cross_compiling" = yes ||
2866 test -x conftest$ac_exeext
2867 }; then :
2868 ac_retval=0
2869 else
2870 $as_echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2872
2873 ac_retval=1
2874 fi
2875 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2876 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2877 # interfere with the next link command; also delete a directory that is
2878 # left behind by Apple's compiler. We do this before executing the actions.
2879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2881 as_fn_set_status $ac_retval
2882
2883 } # ac_fn_c_try_link
2884
2885 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2886 # ----------------------------------------------
2887 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2888 ac_fn_c_check_header_preproc ()
2889 {
2890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2892 $as_echo_n "checking for $2... " >&6; }
2893 if eval \${$3+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897 /* end confdefs.h. */
2898 #include <$2>
2899 _ACEOF
2900 if ac_fn_c_try_cpp "$LINENO"; then :
2901 eval "$3=yes"
2902 else
2903 eval "$3=no"
2904 fi
2905 rm -f conftest.err conftest.i conftest.$ac_ext
2906 fi
2907 eval ac_res=\$$3
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2909 $as_echo "$ac_res" >&6; }
2910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2911
2912 } # ac_fn_c_check_header_preproc
2913
2914 # ac_fn_c_check_func LINENO FUNC VAR
2915 # ----------------------------------
2916 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2917 ac_fn_c_check_func ()
2918 {
2919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2921 $as_echo_n "checking for $2... " >&6; }
2922 if eval \${$3+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2927 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2929 #define $2 innocuous_$2
2930
2931 /* System header to define __stub macros and hopefully few prototypes,
2932 which can conflict with char $2 (); below.
2933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2934 <limits.h> exists even on freestanding compilers. */
2935
2936 #ifdef __STDC__
2937 # include <limits.h>
2938 #else
2939 # include <assert.h>
2940 #endif
2941
2942 #undef $2
2943
2944 /* Override any GCC internal prototype to avoid an error.
2945 Use char because int might match the return type of a GCC
2946 builtin and then its argument prototype would still apply. */
2947 #ifdef __cplusplus
2948 extern "C"
2949 #endif
2950 char $2 ();
2951 /* The GNU C library defines this for functions which it implements
2952 to always fail with ENOSYS. Some functions are actually named
2953 something starting with __ and the normal name is an alias. */
2954 #if defined __stub_$2 || defined __stub___$2
2955 choke me
2956 #endif
2957
2958 int
2959 main ()
2960 {
2961 return $2 ();
2962 ;
2963 return 0;
2964 }
2965 _ACEOF
2966 if ac_fn_c_try_link "$LINENO"; then :
2967 eval "$3=yes"
2968 else
2969 eval "$3=no"
2970 fi
2971 rm -f core conftest.err conftest.$ac_objext \
2972 conftest$ac_exeext conftest.$ac_ext
2973 fi
2974 eval ac_res=\$$3
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2976 $as_echo "$ac_res" >&6; }
2977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2978
2979 } # ac_fn_c_check_func
2980 cat >config.log <<_ACEOF
2981 This file contains any messages produced by compilers while
2982 running configure, to aid debugging if configure makes a mistake.
2983
2984 It was created by $as_me, which was
2985 generated by GNU Autoconf 2.69. Invocation command line was
2986
2987 $ $0 $@
2988
2989 _ACEOF
2990 exec 5>>config.log
2991 {
2992 cat <<_ASUNAME
2993 ## --------- ##
2994 ## Platform. ##
2995 ## --------- ##
2996
2997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3002
3003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3005
3006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3009 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3013
3014 _ASUNAME
3015
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 $as_echo "PATH: $as_dir"
3022 done
3023 IFS=$as_save_IFS
3024
3025 } >&5
3026
3027 cat >&5 <<_ACEOF
3028
3029
3030 ## ----------- ##
3031 ## Core tests. ##
3032 ## ----------- ##
3033
3034 _ACEOF
3035
3036
3037 # Keep a trace of the command line.
3038 # Strip out --no-create and --no-recursion so they do not pile up.
3039 # Strip out --silent because we don't want to record it for future runs.
3040 # Also quote any args containing shell meta-characters.
3041 # Make two passes to allow for proper duplicate-argument suppression.
3042 ac_configure_args=
3043 ac_configure_args0=
3044 ac_configure_args1=
3045 ac_must_keep_next=false
3046 for ac_pass in 1 2
3047 do
3048 for ac_arg
3049 do
3050 case $ac_arg in
3051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3053 | -silent | --silent | --silen | --sile | --sil)
3054 continue ;;
3055 *\'*)
3056 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3057 esac
3058 case $ac_pass in
3059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3060 2)
3061 as_fn_append ac_configure_args1 " '$ac_arg'"
3062 if test $ac_must_keep_next = true; then
3063 ac_must_keep_next=false # Got value, back to normal.
3064 else
3065 case $ac_arg in
3066 *=* | --config-cache | -C | -disable-* | --disable-* \
3067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3069 | -with-* | --with-* | -without-* | --without-* | --x)
3070 case "$ac_configure_args0 " in
3071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3072 esac
3073 ;;
3074 -* ) ac_must_keep_next=true ;;
3075 esac
3076 fi
3077 as_fn_append ac_configure_args " '$ac_arg'"
3078 ;;
3079 esac
3080 done
3081 done
3082 { ac_configure_args0=; unset ac_configure_args0;}
3083 { ac_configure_args1=; unset ac_configure_args1;}
3084
3085 # When interrupted or exit'd, cleanup temporary files, and complete
3086 # config.log. We remove comments because anyway the quotes in there
3087 # would cause problems or look ugly.
3088 # WARNING: Use '\'' to represent an apostrophe within the trap.
3089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3090 trap 'exit_status=$?
3091 # Save into config.log some information that might help in debugging.
3092 {
3093 echo
3094
3095 $as_echo "## ---------------- ##
3096 ## Cache variables. ##
3097 ## ---------------- ##"
3098 echo
3099 # The following way of writing the cache mishandles newlines in values,
3100 (
3101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3102 eval ac_val=\$$ac_var
3103 case $ac_val in #(
3104 *${as_nl}*)
3105 case $ac_var in #(
3106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3108 esac
3109 case $ac_var in #(
3110 _ | IFS | as_nl) ;; #(
3111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3112 *) { eval $ac_var=; unset $ac_var;} ;;
3113 esac ;;
3114 esac
3115 done
3116 (set) 2>&1 |
3117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3118 *${as_nl}ac_space=\ *)
3119 sed -n \
3120 "s/'\''/'\''\\\\'\'''\''/g;
3121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3122 ;; #(
3123 *)
3124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3125 ;;
3126 esac |
3127 sort
3128 )
3129 echo
3130
3131 $as_echo "## ----------------- ##
3132 ## Output variables. ##
3133 ## ----------------- ##"
3134 echo
3135 for ac_var in $ac_subst_vars
3136 do
3137 eval ac_val=\$$ac_var
3138 case $ac_val in
3139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3140 esac
3141 $as_echo "$ac_var='\''$ac_val'\''"
3142 done | sort
3143 echo
3144
3145 if test -n "$ac_subst_files"; then
3146 $as_echo "## ------------------- ##
3147 ## File substitutions. ##
3148 ## ------------------- ##"
3149 echo
3150 for ac_var in $ac_subst_files
3151 do
3152 eval ac_val=\$$ac_var
3153 case $ac_val in
3154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3155 esac
3156 $as_echo "$ac_var='\''$ac_val'\''"
3157 done | sort
3158 echo
3159 fi
3160
3161 if test -s confdefs.h; then
3162 $as_echo "## ----------- ##
3163 ## confdefs.h. ##
3164 ## ----------- ##"
3165 echo
3166 cat confdefs.h
3167 echo
3168 fi
3169 test "$ac_signal" != 0 &&
3170 $as_echo "$as_me: caught signal $ac_signal"
3171 $as_echo "$as_me: exit $exit_status"
3172 } >&5
3173 rm -f core *.core core.conftest.* &&
3174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3175 exit $exit_status
3176 ' 0
3177 for ac_signal in 1 2 13 15; do
3178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3179 done
3180 ac_signal=0
3181
3182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3183 rm -f -r conftest* confdefs.h
3184
3185 $as_echo "/* confdefs.h */" > confdefs.h
3186
3187 # Predefined preprocessor variables.
3188
3189 cat >>confdefs.h <<_ACEOF
3190 #define PACKAGE_NAME "$PACKAGE_NAME"
3191 _ACEOF
3192
3193 cat >>confdefs.h <<_ACEOF
3194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3195 _ACEOF
3196
3197 cat >>confdefs.h <<_ACEOF
3198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3199 _ACEOF
3200
3201 cat >>confdefs.h <<_ACEOF
3202 #define PACKAGE_STRING "$PACKAGE_STRING"
3203 _ACEOF
3204
3205 cat >>confdefs.h <<_ACEOF
3206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3207 _ACEOF
3208
3209 cat >>confdefs.h <<_ACEOF
3210 #define PACKAGE_URL "$PACKAGE_URL"
3211 _ACEOF
3212
3213
3214 # Let the site file select an alternate cache file if it wants to.
3215 # Prefer an explicitly selected file to automatically selected ones.
3216 ac_site_file1=NONE
3217 ac_site_file2=NONE
3218 if test -n "$CONFIG_SITE"; then
3219 # We do not want a PATH search for config.site.
3220 case $CONFIG_SITE in #((
3221 -*) ac_site_file1=./$CONFIG_SITE;;
3222 */*) ac_site_file1=$CONFIG_SITE;;
3223 *) ac_site_file1=./$CONFIG_SITE;;
3224 esac
3225 elif test "x$prefix" != xNONE; then
3226 ac_site_file1=$prefix/share/config.site
3227 ac_site_file2=$prefix/etc/config.site
3228 else
3229 ac_site_file1=$ac_default_prefix/share/config.site
3230 ac_site_file2=$ac_default_prefix/etc/config.site
3231 fi
3232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3233 do
3234 test "x$ac_site_file" = xNONE && continue
3235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3238 sed 's/^/| /' "$ac_site_file" >&5
3239 . "$ac_site_file" \
3240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "failed to load site script $ac_site_file
3243 See \`config.log' for more details" "$LINENO" 5; }
3244 fi
3245 done
3246
3247 if test -r "$cache_file"; then
3248 # Some versions of bash will fail to source /dev/null (special files
3249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3252 $as_echo "$as_me: loading cache $cache_file" >&6;}
3253 case $cache_file in
3254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3255 *) . "./$cache_file";;
3256 esac
3257 fi
3258 else
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3260 $as_echo "$as_me: creating cache $cache_file" >&6;}
3261 >$cache_file
3262 fi
3263
3264 # Check that the precious variables saved in the cache have kept the same
3265 # value.
3266 ac_cache_corrupted=false
3267 for ac_var in $ac_precious_vars; do
3268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3269 eval ac_new_set=\$ac_env_${ac_var}_set
3270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3271 eval ac_new_val=\$ac_env_${ac_var}_value
3272 case $ac_old_set,$ac_new_set in
3273 set,)
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3275 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3276 ac_cache_corrupted=: ;;
3277 ,set)
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3279 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3280 ac_cache_corrupted=: ;;
3281 ,);;
3282 *)
3283 if test "x$ac_old_val" != "x$ac_new_val"; then
3284 # differences in whitespace do not lead to failure.
3285 ac_old_val_w=`echo x $ac_old_val`
3286 ac_new_val_w=`echo x $ac_new_val`
3287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3290 ac_cache_corrupted=:
3291 else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3294 eval $ac_var=\$ac_old_val
3295 fi
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3297 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3299 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3300 fi;;
3301 esac
3302 # Pass precious variables to config.status.
3303 if test "$ac_new_set" = set; then
3304 case $ac_new_val in
3305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3306 *) ac_arg=$ac_var=$ac_new_val ;;
3307 esac
3308 case " $ac_configure_args " in
3309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3311 esac
3312 fi
3313 done
3314 if $ac_cache_corrupted; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3319 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3320 fi
3321 ## -------------------- ##
3322 ## Main body of script. ##
3323 ## -------------------- ##
3324
3325 ac_ext=c
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330
3331
3332
3333
3334
3335
3336
3337 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3338
3339
3340 gcc_version=`cat $srcdir/BASE-VER`
3341
3342 # Determine the host, build, and target systems
3343 ac_aux_dir=
3344 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3345 if test -f "$ac_dir/install-sh"; then
3346 ac_aux_dir=$ac_dir
3347 ac_install_sh="$ac_aux_dir/install-sh -c"
3348 break
3349 elif test -f "$ac_dir/install.sh"; then
3350 ac_aux_dir=$ac_dir
3351 ac_install_sh="$ac_aux_dir/install.sh -c"
3352 break
3353 elif test -f "$ac_dir/shtool"; then
3354 ac_aux_dir=$ac_dir
3355 ac_install_sh="$ac_aux_dir/shtool install -c"
3356 break
3357 fi
3358 done
3359 if test -z "$ac_aux_dir"; then
3360 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3361 fi
3362
3363 # These three variables are undocumented and unsupported,
3364 # and are intended to be withdrawn in a future Autoconf release.
3365 # They can cause serious problems if a builder's source tree is in a directory
3366 # whose full name contains unusual characters.
3367 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3368 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3369 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3370
3371
3372 # Make sure we can run config.sub.
3373 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3374 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3375
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3377 $as_echo_n "checking build system type... " >&6; }
3378 if ${ac_cv_build+:} false; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 ac_build_alias=$build_alias
3382 test "x$ac_build_alias" = x &&
3383 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3384 test "x$ac_build_alias" = x &&
3385 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3386 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3388
3389 fi
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3391 $as_echo "$ac_cv_build" >&6; }
3392 case $ac_cv_build in
3393 *-*-*) ;;
3394 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3395 esac
3396 build=$ac_cv_build
3397 ac_save_IFS=$IFS; IFS='-'
3398 set x $ac_cv_build
3399 shift
3400 build_cpu=$1
3401 build_vendor=$2
3402 shift; shift
3403 # Remember, the first character of IFS is used to create $*,
3404 # except with old shells:
3405 build_os=$*
3406 IFS=$ac_save_IFS
3407 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3408
3409
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3411 $as_echo_n "checking host system type... " >&6; }
3412 if ${ac_cv_host+:} false; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 if test "x$host_alias" = x; then
3416 ac_cv_host=$ac_cv_build
3417 else
3418 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3419 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3420 fi
3421
3422 fi
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3424 $as_echo "$ac_cv_host" >&6; }
3425 case $ac_cv_host in
3426 *-*-*) ;;
3427 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3428 esac
3429 host=$ac_cv_host
3430 ac_save_IFS=$IFS; IFS='-'
3431 set x $ac_cv_host
3432 shift
3433 host_cpu=$1
3434 host_vendor=$2
3435 shift; shift
3436 # Remember, the first character of IFS is used to create $*,
3437 # except with old shells:
3438 host_os=$*
3439 IFS=$ac_save_IFS
3440 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3441
3442
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3444 $as_echo_n "checking target system type... " >&6; }
3445 if ${ac_cv_target+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447 else
3448 if test "x$target_alias" = x; then
3449 ac_cv_target=$ac_cv_host
3450 else
3451 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3453 fi
3454
3455 fi
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3457 $as_echo "$ac_cv_target" >&6; }
3458 case $ac_cv_target in
3459 *-*-*) ;;
3460 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3461 esac
3462 target=$ac_cv_target
3463 ac_save_IFS=$IFS; IFS='-'
3464 set x $ac_cv_target
3465 shift
3466 target_cpu=$1
3467 target_vendor=$2
3468 shift; shift
3469 # Remember, the first character of IFS is used to create $*,
3470 # except with old shells:
3471 target_os=$*
3472 IFS=$ac_save_IFS
3473 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3474
3475
3476 # The aliases save the names the user supplied, while $host etc.
3477 # will get canonicalized.
3478 test -n "$target_alias" &&
3479 test "$program_prefix$program_suffix$program_transform_name" = \
3480 NONENONEs,x,x, &&
3481 program_prefix=${target_alias}-
3482
3483 # Determine the noncanonical host name, for Ada.
3484 case ${build_alias} in
3485 "") build_noncanonical=${build} ;;
3486 *) build_noncanonical=${build_alias} ;;
3487 esac
3488
3489 case ${host_alias} in
3490 "") host_noncanonical=${build_noncanonical} ;;
3491 *) host_noncanonical=${host_alias} ;;
3492 esac
3493
3494
3495
3496
3497 # Determine the noncanonical target name, for directory use.
3498 case ${target_alias} in
3499 "") target_noncanonical=${host_noncanonical} ;;
3500 *) target_noncanonical=${target_alias} ;;
3501 esac
3502
3503
3504
3505
3506 # Used for constructing correct paths for offload compilers.
3507 real_target_noncanonical=${target_noncanonical}
3508 accel_dir_suffix=
3509
3510 # Determine the target- and build-specific subdirectories
3511
3512 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3513 # have matching libraries, they should use host libraries: Makefile.tpl
3514 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3515 # However, they still use the build modules, because the corresponding
3516 # host modules (e.g. bison) are only built for the host when bootstrap
3517 # finishes. So:
3518 # - build_subdir is where we find build modules, and never changes.
3519 # - build_libsubdir is where we find build libraries, and can be overridden.
3520
3521 # Prefix 'build-' so this never conflicts with target_subdir.
3522 build_subdir="build-${build_noncanonical}"
3523
3524 # Check whether --with-build-libsubdir was given.
3525 if test "${with_build_libsubdir+set}" = set; then :
3526 withval=$with_build_libsubdir; build_libsubdir="$withval"
3527 else
3528 build_libsubdir="$build_subdir"
3529 fi
3530
3531 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3532 if ( test $srcdir = . && test -d gcc ) \
3533 || test -d $srcdir/../host-${host_noncanonical}; then
3534 host_subdir="host-${host_noncanonical}"
3535 else
3536 host_subdir=.
3537 fi
3538 # No prefix.
3539 target_subdir=${target_noncanonical}
3540
3541
3542 # Set program_transform_name
3543 test "$program_prefix" != NONE &&
3544 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3545 # Use a double $ so make ignores it.
3546 test "$program_suffix" != NONE &&
3547 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3548 # Double any \ or $.
3549 # By default was `s,x,x', remove it if useless.
3550 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3551 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3552
3553
3554 # Check for bogus environment variables.
3555 # Test if LIBRARY_PATH contains the notation for the current directory
3556 # since this would lead to problems installing/building glibc.
3557 # LIBRARY_PATH contains the current directory if one of the following
3558 # is true:
3559 # - one of the terminals (":" and ";") is the first or last sign
3560 # - two terminals occur directly after each other
3561 # - the path contains an element with a dot in it
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3563 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3564 case ${LIBRARY_PATH} in
3565 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3566 library_path_setting="contains current directory"
3567 ;;
3568 *)
3569 library_path_setting="ok"
3570 ;;
3571 esac
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3573 $as_echo "$library_path_setting" >&6; }
3574 if test "$library_path_setting" != "ok"; then
3575 as_fn_error $? "
3576 *** LIBRARY_PATH shouldn't contain the current directory when
3577 *** building gcc. Please change the environment variable
3578 *** and run configure again." "$LINENO" 5
3579 fi
3580
3581 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3582 # since this would lead to problems installing/building glibc.
3583 # GCC_EXEC_PREFIX contains the current directory if one of the following
3584 # is true:
3585 # - one of the terminals (":" and ";") is the first or last sign
3586 # - two terminals occur directly after each other
3587 # - the path contains an element with a dot in it
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3589 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3590 case ${GCC_EXEC_PREFIX} in
3591 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3592 gcc_exec_prefix_setting="contains current directory"
3593 ;;
3594 *)
3595 gcc_exec_prefix_setting="ok"
3596 ;;
3597 esac
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3599 $as_echo "$gcc_exec_prefix_setting" >&6; }
3600 if test "$gcc_exec_prefix_setting" != "ok"; then
3601 as_fn_error $? "
3602 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3603 *** building gcc. Please change the environment variable
3604 *** and run configure again." "$LINENO" 5
3605 fi
3606
3607 # -----------
3608 # Directories
3609 # -----------
3610
3611 # Specify the local prefix
3612 local_prefix=
3613
3614 # Check whether --with-local-prefix was given.
3615 if test "${with_local_prefix+set}" = set; then :
3616 withval=$with_local_prefix; case "${withval}" in
3617 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3618 no) ;;
3619 *) local_prefix=$with_local_prefix ;;
3620 esac
3621 fi
3622
3623
3624 # Default local prefix if it is empty
3625 if test x$local_prefix = x; then
3626 local_prefix=/usr/local
3627 fi
3628
3629
3630 # Check whether --with-native-system-header-dir was given.
3631 if test "${with_native_system_header_dir+set}" = set; then :
3632 withval=$with_native_system_header_dir;
3633 case ${with_native_system_header_dir} in
3634 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3635 /* | [A-Za-z]:[\\/]*) ;;
3636 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3637 esac
3638 configured_native_system_header_dir="${withval}"
3639
3640 else
3641 configured_native_system_header_dir=
3642 fi
3643
3644
3645
3646 # Check whether --with-build-sysroot was given.
3647 if test "${with_build_sysroot+set}" = set; then :
3648 withval=$with_build_sysroot; if test x"$withval" != x ; then
3649 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3650 fi
3651 else
3652 SYSROOT_CFLAGS_FOR_TARGET=
3653 fi
3654
3655
3656
3657 if test "x$prefix" = xNONE; then
3658 test_prefix=/usr/local
3659 else
3660 test_prefix=$prefix
3661 fi
3662 if test "x$exec_prefix" = xNONE; then
3663 test_exec_prefix=$test_prefix
3664 else
3665 test_exec_prefix=$exec_prefix
3666 fi
3667
3668
3669 # Check whether --with-sysroot was given.
3670 if test "${with_sysroot+set}" = set; then :
3671 withval=$with_sysroot;
3672 case ${with_sysroot} in
3673 /) ;;
3674 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3675 esac
3676 case ${with_sysroot} in
3677 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3678 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3679 esac
3680
3681 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3682 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3683
3684 case ${TARGET_SYSTEM_ROOT} in
3685 "${test_prefix}"|"${test_prefix}/"*|\
3686 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3687 '${prefix}'|'${prefix}/'*|\
3688 '${exec_prefix}'|'${exec_prefix}/'*)
3689 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3690 TARGET_SYSTEM_ROOT_DEFINE="$t"
3691 ;;
3692 esac
3693
3694 else
3695
3696 TARGET_SYSTEM_ROOT=
3697 TARGET_SYSTEM_ROOT_DEFINE=
3698 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3699
3700 fi
3701
3702
3703
3704
3705
3706 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3707 # passed in by the toplevel make and thus we'd get different behavior
3708 # depending on where we built the sources.
3709 gcc_gxx_include_dir=
3710 # Specify the g++ header file directory
3711
3712 # Check whether --with-gxx-include-dir was given.
3713 if test "${with_gxx_include_dir+set}" = set; then :
3714 withval=$with_gxx_include_dir; case "${withval}" in
3715 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3716 no) ;;
3717 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3718 esac
3719 fi
3720
3721
3722 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3723 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3724 # relative to the sysroot.
3725 gcc_gxx_include_dir_add_sysroot=0
3726
3727 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3728 if test x${gcc_gxx_include_dir} = x; then
3729 if test x${enable_version_specific_runtime_libs} = xyes; then
3730 gcc_gxx_include_dir='${libsubdir}/include/c++'
3731 else
3732 libstdcxx_incdir='include/c++/$(version)'
3733 if test x$host != x$target; then
3734 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3735 fi
3736 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3737 fi
3738 elif test "${with_sysroot+set}" = set; then
3739 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3740 if test "${gcc_gxx_without_sysroot}"; then
3741 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3742 gcc_gxx_include_dir_add_sysroot=1
3743 fi
3744 fi
3745
3746 # Configuration for an alternate set of C++ headers.
3747 gcc_gxx_libcxx_include_dir=
3748 # Specify the alternate g++ header file directory
3749
3750 # Check whether --with-gxx-libcxx-include-dir was given.
3751 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3752 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3753 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3754 no) ;;
3755 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3756 esac
3757 fi
3758
3759
3760 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3761 # check to see if the latter starts with the former and, upon success, compute
3762 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3763 gcc_gxx_libcxx_include_dir_add_sysroot=0
3764
3765 if test x${gcc_gxx_libcxx_include_dir} != x; then
3766
3767 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3768
3769 else
3770 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3771
3772 fi
3773 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3774 if test x${gcc_gxx_libcxx_include_dir} = x; then
3775 if test x${enable_version_specific_runtime_libs} = xyes; then
3776 gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3777 else
3778 libcxx_incdir='libc++_include/c++/$(version)/v1'
3779 if test x$host != x$target; then
3780 libcxx_incdir="$target_alias/$libcxx_incdir"
3781 fi
3782 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3783 fi
3784 elif test "${with_sysroot+set}" = set; then
3785 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3786 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3787 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3788 gcc_gxx_libcxx_include_dir_add_sysroot=1
3789 fi
3790 fi
3791
3792
3793 # Check whether --with-cpp_install_dir was given.
3794 if test "${with_cpp_install_dir+set}" = set; then :
3795 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3796 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3797 elif test x$withval != xno; then
3798 cpp_install_dir=$withval
3799 fi
3800 fi
3801
3802
3803 # We would like to our source tree to be readonly. However when releases or
3804 # pre-releases are generated, the flex/bison generated files as well as the
3805 # various formats of manuals need to be included along with the rest of the
3806 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3807 # just that.
3808
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3810 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3811 # Check whether --enable-generated-files-in-srcdir was given.
3812 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3813 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3814 else
3815 generated_files_in_srcdir=no
3816 fi
3817
3818
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3820 $as_echo "$generated_files_in_srcdir" >&6; }
3821
3822 if test "$generated_files_in_srcdir" = "yes"; then
3823 GENINSRC=''
3824 else
3825 GENINSRC='#'
3826 fi
3827
3828
3829 # -------------------
3830 # Find default linker
3831 # -------------------
3832
3833 # With GNU ld
3834
3835 # Check whether --with-gnu-ld was given.
3836 if test "${with_gnu_ld+set}" = set; then :
3837 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3838 else
3839 gnu_ld_flag=no
3840 fi
3841
3842
3843 case $target in
3844 *darwin*)
3845 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3846 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3847 ;;
3848 *)
3849 ld64_flag=no
3850 dsymutil_flag=no
3851 ;;
3852 esac
3853
3854 # With pre-defined ld
3855
3856 # Check whether --with-ld was given.
3857 if test "${with_ld+set}" = set; then :
3858 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3859 fi
3860
3861 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3862 if test ! -x "$DEFAULT_LINKER"; then
3863 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3864 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3865 gnu_ld_flag=yes
3866 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3867 ld64_flag=yes
3868 fi
3869
3870 cat >>confdefs.h <<_ACEOF
3871 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3872 _ACEOF
3873
3874 fi
3875
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3877 $as_echo_n "checking whether a default linker was specified... " >&6; }
3878 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3879 if test x"$gnu_ld_flag" = x"no"; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3881 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3882 else
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3884 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3885 fi
3886 else
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888 $as_echo "no" >&6; }
3889 fi
3890
3891 # With demangler in GNU ld
3892
3893 # Check whether --with-demangler-in-ld was given.
3894 if test "${with_demangler_in_ld+set}" = set; then :
3895 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3896 else
3897 demangler_in_ld=yes
3898 fi
3899
3900
3901 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3902
3903 # Check whether --with-dsymutil was given.
3904 if test "${with_dsymutil+set}" = set; then :
3905 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3906 fi
3907
3908
3909 dsymutil_vers=
3910 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3911 if test ! -x "$DEFAULT_DSYMUTIL"; then
3912 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3913 else
3914 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3915 dsymutil_flag=yes
3916 fi
3917 fi
3918
3919 cat >>confdefs.h <<_ACEOF
3920 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3921 _ACEOF
3922
3923 fi
3924
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3926 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3927 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3929 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3930 else
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3933 fi
3934
3935 # ----------------------
3936 # Find default assembler
3937 # ----------------------
3938
3939 # With GNU as
3940
3941 # Check whether --with-gnu-as was given.
3942 if test "${with_gnu_as+set}" = set; then :
3943 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3944 else
3945 gas_flag=no
3946 fi
3947
3948
3949
3950 # Check whether --with-as was given.
3951 if test "${with_as+set}" = set; then :
3952 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3953 fi
3954
3955 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3956 if test ! -x "$DEFAULT_ASSEMBLER"; then
3957 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3958 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3959 gas_flag=yes
3960 fi
3961
3962 cat >>confdefs.h <<_ACEOF
3963 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3964 _ACEOF
3965
3966 fi
3967
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3969 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3970 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3971 if test x"$gas_flag" = x"no"; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3973 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3974 else
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3976 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3977 fi
3978 else
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 $as_echo "no" >&6; }
3981 fi
3982
3983 # ---------------
3984 # Find C compiler
3985 # ---------------
3986
3987 # If a non-executable a.out is present (e.g. created by GNU as above even if
3988 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3989 # file, even when creating an executable, so an execution test fails.
3990 # Remove possible default executable files to avoid this.
3991 #
3992 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3993 # Autoconf includes it.
3994 rm -f a.out a.exe b.out
3995
3996 # Find the native compiler
3997 ac_ext=c
3998 ac_cpp='$CPP $CPPFLAGS'
3999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002 if test -n "$ac_tool_prefix"; then
4003 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4004 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if ${ac_cv_prog_CC+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 if test -n "$CC"; then
4011 ac_cv_prog_CC="$CC" # Let the user override the test.
4012 else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4015 do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 break 2
4023 fi
4024 done
4025 done
4026 IFS=$as_save_IFS
4027
4028 fi
4029 fi
4030 CC=$ac_cv_prog_CC
4031 if test -n "$CC"; then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4033 $as_echo "$CC" >&6; }
4034 else
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4037 fi
4038
4039
4040 fi
4041 if test -z "$ac_cv_prog_CC"; then
4042 ac_ct_CC=$CC
4043 # Extract the first word of "gcc", so it can be a program name with args.
4044 set dummy gcc; ac_word=$2
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4046 $as_echo_n "checking for $ac_word... " >&6; }
4047 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 if test -n "$ac_ct_CC"; then
4051 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4052 else
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4055 do
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_ac_ct_CC="gcc"
4061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4063 fi
4064 done
4065 done
4066 IFS=$as_save_IFS
4067
4068 fi
4069 fi
4070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4071 if test -n "$ac_ct_CC"; then
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4073 $as_echo "$ac_ct_CC" >&6; }
4074 else
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076 $as_echo "no" >&6; }
4077 fi
4078
4079 if test "x$ac_ct_CC" = x; then
4080 CC=""
4081 else
4082 case $cross_compiling:$ac_tool_warned in
4083 yes:)
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4086 ac_tool_warned=yes ;;
4087 esac
4088 CC=$ac_ct_CC
4089 fi
4090 else
4091 CC="$ac_cv_prog_CC"
4092 fi
4093
4094 if test -z "$CC"; then
4095 if test -n "$ac_tool_prefix"; then
4096 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4097 set dummy ${ac_tool_prefix}cc; ac_word=$2
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if ${ac_cv_prog_CC+:} false; then :
4101 $as_echo_n "(cached) " >&6
4102 else
4103 if test -n "$CC"; then
4104 ac_cv_prog_CC="$CC" # Let the user override the test.
4105 else
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4108 do
4109 IFS=$as_save_IFS
4110 test -z "$as_dir" && as_dir=.
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113 ac_cv_prog_CC="${ac_tool_prefix}cc"
4114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 break 2
4116 fi
4117 done
4118 done
4119 IFS=$as_save_IFS
4120
4121 fi
4122 fi
4123 CC=$ac_cv_prog_CC
4124 if test -n "$CC"; then
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4126 $as_echo "$CC" >&6; }
4127 else
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 $as_echo "no" >&6; }
4130 fi
4131
4132
4133 fi
4134 fi
4135 if test -z "$CC"; then
4136 # Extract the first word of "cc", so it can be a program name with args.
4137 set dummy cc; ac_word=$2
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 $as_echo_n "checking for $ac_word... " >&6; }
4140 if ${ac_cv_prog_CC+:} false; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 if test -n "$CC"; then
4144 ac_cv_prog_CC="$CC" # Let the user override the test.
4145 else
4146 ac_prog_rejected=no
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4154 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4155 ac_prog_rejected=yes
4156 continue
4157 fi
4158 ac_cv_prog_CC="cc"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4161 fi
4162 done
4163 done
4164 IFS=$as_save_IFS
4165
4166 if test $ac_prog_rejected = yes; then
4167 # We found a bogon in the path, so make sure we never use it.
4168 set dummy $ac_cv_prog_CC
4169 shift
4170 if test $# != 0; then
4171 # We chose a different compiler from the bogus one.
4172 # However, it has the same basename, so the bogon will be chosen
4173 # first if we set CC to just the basename; use the full file name.
4174 shift
4175 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4176 fi
4177 fi
4178 fi
4179 fi
4180 CC=$ac_cv_prog_CC
4181 if test -n "$CC"; then
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4183 $as_echo "$CC" >&6; }
4184 else
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186 $as_echo "no" >&6; }
4187 fi
4188
4189
4190 fi
4191 if test -z "$CC"; then
4192 if test -n "$ac_tool_prefix"; then
4193 for ac_prog in cl.exe
4194 do
4195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198 $as_echo_n "checking for $ac_word... " >&6; }
4199 if ${ac_cv_prog_CC+:} false; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 if test -n "$CC"; then
4203 ac_cv_prog_CC="$CC" # Let the user override the test.
4204 else
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4207 do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4215 fi
4216 done
4217 done
4218 IFS=$as_save_IFS
4219
4220 fi
4221 fi
4222 CC=$ac_cv_prog_CC
4223 if test -n "$CC"; then
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4225 $as_echo "$CC" >&6; }
4226 else
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228 $as_echo "no" >&6; }
4229 fi
4230
4231
4232 test -n "$CC" && break
4233 done
4234 fi
4235 if test -z "$CC"; then
4236 ac_ct_CC=$CC
4237 for ac_prog in cl.exe
4238 do
4239 # Extract the first word of "$ac_prog", so it can be a program name with args.
4240 set dummy $ac_prog; ac_word=$2
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242 $as_echo_n "checking for $ac_word... " >&6; }
4243 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 if test -n "$ac_ct_CC"; then
4247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4251 do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4256 ac_cv_prog_ac_ct_CC="$ac_prog"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4259 fi
4260 done
4261 done
4262 IFS=$as_save_IFS
4263
4264 fi
4265 fi
4266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4267 if test -n "$ac_ct_CC"; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4269 $as_echo "$ac_ct_CC" >&6; }
4270 else
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272 $as_echo "no" >&6; }
4273 fi
4274
4275
4276 test -n "$ac_ct_CC" && break
4277 done
4278
4279 if test "x$ac_ct_CC" = x; then
4280 CC=""
4281 else
4282 case $cross_compiling:$ac_tool_warned in
4283 yes:)
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4286 ac_tool_warned=yes ;;
4287 esac
4288 CC=$ac_ct_CC
4289 fi
4290 fi
4291
4292 fi
4293
4294
4295 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4297 as_fn_error $? "no acceptable C compiler found in \$PATH
4298 See \`config.log' for more details" "$LINENO" 5; }
4299
4300 # Provide some information about the compiler.
4301 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4302 set X $ac_compile
4303 ac_compiler=$2
4304 for ac_option in --version -v -V -qversion; do
4305 { { ac_try="$ac_compiler $ac_option >&5"
4306 case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4313 ac_status=$?
4314 if test -s conftest.err; then
4315 sed '10a\
4316 ... rest of stderr output deleted ...
4317 10q' conftest.err >conftest.er1
4318 cat conftest.er1 >&5
4319 fi
4320 rm -f conftest.er1 conftest.err
4321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322 test $ac_status = 0; }
4323 done
4324
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4327
4328 int
4329 main ()
4330 {
4331
4332 ;
4333 return 0;
4334 }
4335 _ACEOF
4336 ac_clean_files_save=$ac_clean_files
4337 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4338 # Try to create an executable without -o first, disregard a.out.
4339 # It will help us diagnose broken compilers, and finding out an intuition
4340 # of exeext.
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4342 $as_echo_n "checking whether the C compiler works... " >&6; }
4343 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4344
4345 # The possible output files:
4346 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4347
4348 ac_rmfiles=
4349 for ac_file in $ac_files
4350 do
4351 case $ac_file in
4352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4353 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4354 esac
4355 done
4356 rm -f $ac_rmfiles
4357
4358 if { { ac_try="$ac_link_default"
4359 case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4362 esac
4363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4364 $as_echo "$ac_try_echo"; } >&5
4365 (eval "$ac_link_default") 2>&5
4366 ac_status=$?
4367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4368 test $ac_status = 0; }; then :
4369 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4370 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4371 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4372 # so that the user can short-circuit this test for compilers unknown to
4373 # Autoconf.
4374 for ac_file in $ac_files ''
4375 do
4376 test -f "$ac_file" || continue
4377 case $ac_file in
4378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4379 ;;
4380 [ab].out )
4381 # We found the default executable, but exeext='' is most
4382 # certainly right.
4383 break;;
4384 *.* )
4385 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4386 then :; else
4387 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4388 fi
4389 # We set ac_cv_exeext here because the later test for it is not
4390 # safe: cross compilers may not add the suffix if given an `-o'
4391 # argument, so we may need to know it at that point already.
4392 # Even if this section looks crufty: it has the advantage of
4393 # actually working.
4394 break;;
4395 * )
4396 break;;
4397 esac
4398 done
4399 test "$ac_cv_exeext" = no && ac_cv_exeext=
4400
4401 else
4402 ac_file=''
4403 fi
4404 if test -z "$ac_file"; then :
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4407 $as_echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4409
4410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4412 as_fn_error 77 "C compiler cannot create executables
4413 See \`config.log' for more details" "$LINENO" 5; }
4414 else
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4416 $as_echo "yes" >&6; }
4417 fi
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4419 $as_echo_n "checking for C compiler default output file name... " >&6; }
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4421 $as_echo "$ac_file" >&6; }
4422 ac_exeext=$ac_cv_exeext
4423
4424 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4425 ac_clean_files=$ac_clean_files_save
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4427 $as_echo_n "checking for suffix of executables... " >&6; }
4428 if { { ac_try="$ac_link"
4429 case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432 esac
4433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4434 $as_echo "$ac_try_echo"; } >&5
4435 (eval "$ac_link") 2>&5
4436 ac_status=$?
4437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4438 test $ac_status = 0; }; then :
4439 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4440 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4441 # work properly (i.e., refer to `conftest.exe'), while it won't with
4442 # `rm'.
4443 for ac_file in conftest.exe conftest conftest.*; do
4444 test -f "$ac_file" || continue
4445 case $ac_file in
4446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4447 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4448 break;;
4449 * ) break;;
4450 esac
4451 done
4452 else
4453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4455 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4456 See \`config.log' for more details" "$LINENO" 5; }
4457 fi
4458 rm -f conftest conftest$ac_cv_exeext
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4460 $as_echo "$ac_cv_exeext" >&6; }
4461
4462 rm -f conftest.$ac_ext
4463 EXEEXT=$ac_cv_exeext
4464 ac_exeext=$EXEEXT
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467 #include <stdio.h>
4468 int
4469 main ()
4470 {
4471 FILE *f = fopen ("conftest.out", "w");
4472 return ferror (f) || fclose (f) != 0;
4473
4474 ;
4475 return 0;
4476 }
4477 _ACEOF
4478 ac_clean_files="$ac_clean_files conftest.out"
4479 # Check that the compiler produces executables we can run. If not, either
4480 # the compiler is broken, or we cross compile.
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4482 $as_echo_n "checking whether we are cross compiling... " >&6; }
4483 if test "$cross_compiling" != yes; then
4484 { { ac_try="$ac_link"
4485 case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488 esac
4489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4490 $as_echo "$ac_try_echo"; } >&5
4491 (eval "$ac_link") 2>&5
4492 ac_status=$?
4493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4494 test $ac_status = 0; }
4495 if { ac_try='./conftest$ac_cv_exeext'
4496 { { case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499 esac
4500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501 $as_echo "$ac_try_echo"; } >&5
4502 (eval "$ac_try") 2>&5
4503 ac_status=$?
4504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505 test $ac_status = 0; }; }; then
4506 cross_compiling=no
4507 else
4508 if test "$cross_compiling" = maybe; then
4509 cross_compiling=yes
4510 else
4511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4513 as_fn_error $? "cannot run C compiled programs.
4514 If you meant to cross compile, use \`--host'.
4515 See \`config.log' for more details" "$LINENO" 5; }
4516 fi
4517 fi
4518 fi
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4520 $as_echo "$cross_compiling" >&6; }
4521
4522 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4523 ac_clean_files=$ac_clean_files_save
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4525 $as_echo_n "checking for suffix of object files... " >&6; }
4526 if ${ac_cv_objext+:} false; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531
4532 int
4533 main ()
4534 {
4535
4536 ;
4537 return 0;
4538 }
4539 _ACEOF
4540 rm -f conftest.o conftest.obj
4541 if { { ac_try="$ac_compile"
4542 case "(($ac_try" in
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4545 esac
4546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4547 $as_echo "$ac_try_echo"; } >&5
4548 (eval "$ac_compile") 2>&5
4549 ac_status=$?
4550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4551 test $ac_status = 0; }; then :
4552 for ac_file in conftest.o conftest.obj conftest.*; do
4553 test -f "$ac_file" || continue;
4554 case $ac_file in
4555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4556 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4557 break;;
4558 esac
4559 done
4560 else
4561 $as_echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4563
4564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4566 as_fn_error $? "cannot compute suffix of object files: cannot compile
4567 See \`config.log' for more details" "$LINENO" 5; }
4568 fi
4569 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4570 fi
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4572 $as_echo "$ac_cv_objext" >&6; }
4573 OBJEXT=$ac_cv_objext
4574 ac_objext=$OBJEXT
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4576 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4577 if ${ac_cv_c_compiler_gnu+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4582
4583 int
4584 main ()
4585 {
4586 #ifndef __GNUC__
4587 choke me
4588 #endif
4589
4590 ;
4591 return 0;
4592 }
4593 _ACEOF
4594 if ac_fn_c_try_compile "$LINENO"; then :
4595 ac_compiler_gnu=yes
4596 else
4597 ac_compiler_gnu=no
4598 fi
4599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4600 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4601
4602 fi
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4604 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4605 if test $ac_compiler_gnu = yes; then
4606 GCC=yes
4607 else
4608 GCC=
4609 fi
4610 ac_test_CFLAGS=${CFLAGS+set}
4611 ac_save_CFLAGS=$CFLAGS
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4613 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4614 if ${ac_cv_prog_cc_g+:} false; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 ac_save_c_werror_flag=$ac_c_werror_flag
4618 ac_c_werror_flag=yes
4619 ac_cv_prog_cc_g=no
4620 CFLAGS="-g"
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4623
4624 int
4625 main ()
4626 {
4627
4628 ;
4629 return 0;
4630 }
4631 _ACEOF
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_prog_cc_g=yes
4634 else
4635 CFLAGS=""
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4638
4639 int
4640 main ()
4641 {
4642
4643 ;
4644 return 0;
4645 }
4646 _ACEOF
4647 if ac_fn_c_try_compile "$LINENO"; then :
4648
4649 else
4650 ac_c_werror_flag=$ac_save_c_werror_flag
4651 CFLAGS="-g"
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4654
4655 int
4656 main ()
4657 {
4658
4659 ;
4660 return 0;
4661 }
4662 _ACEOF
4663 if ac_fn_c_try_compile "$LINENO"; then :
4664 ac_cv_prog_cc_g=yes
4665 fi
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 fi
4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 fi
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 ac_c_werror_flag=$ac_save_c_werror_flag
4672 fi
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4674 $as_echo "$ac_cv_prog_cc_g" >&6; }
4675 if test "$ac_test_CFLAGS" = set; then
4676 CFLAGS=$ac_save_CFLAGS
4677 elif test $ac_cv_prog_cc_g = yes; then
4678 if test "$GCC" = yes; then
4679 CFLAGS="-g -O2"
4680 else
4681 CFLAGS="-g"
4682 fi
4683 else
4684 if test "$GCC" = yes; then
4685 CFLAGS="-O2"
4686 else
4687 CFLAGS=
4688 fi
4689 fi
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4691 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4692 if ${ac_cv_prog_cc_c89+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 ac_cv_prog_cc_c89=no
4696 ac_save_CC=$CC
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699 #include <stdarg.h>
4700 #include <stdio.h>
4701 struct stat;
4702 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4703 struct buf { int x; };
4704 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4705 static char *e (p, i)
4706 char **p;
4707 int i;
4708 {
4709 return p[i];
4710 }
4711 static char *f (char * (*g) (char **, int), char **p, ...)
4712 {
4713 char *s;
4714 va_list v;
4715 va_start (v,p);
4716 s = g (p, va_arg (v,int));
4717 va_end (v);
4718 return s;
4719 }
4720
4721 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4722 function prototypes and stuff, but not '\xHH' hex character constants.
4723 These don't provoke an error unfortunately, instead are silently treated
4724 as 'x'. The following induces an error, until -std is added to get
4725 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4726 array size at least. It's necessary to write '\x00'==0 to get something
4727 that's true only with -std. */
4728 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4729
4730 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4731 inside strings and character constants. */
4732 #define FOO(x) 'x'
4733 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4734
4735 int test (int i, double x);
4736 struct s1 {int (*f) (int a);};
4737 struct s2 {int (*f) (double a);};
4738 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4739 int argc;
4740 char **argv;
4741 int
4742 main ()
4743 {
4744 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4745 ;
4746 return 0;
4747 }
4748 _ACEOF
4749 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4750 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4751 do
4752 CC="$ac_save_CC $ac_arg"
4753 if ac_fn_c_try_compile "$LINENO"; then :
4754 ac_cv_prog_cc_c89=$ac_arg
4755 fi
4756 rm -f core conftest.err conftest.$ac_objext
4757 test "x$ac_cv_prog_cc_c89" != "xno" && break
4758 done
4759 rm -f conftest.$ac_ext
4760 CC=$ac_save_CC
4761
4762 fi
4763 # AC_CACHE_VAL
4764 case "x$ac_cv_prog_cc_c89" in
4765 x)
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4767 $as_echo "none needed" >&6; } ;;
4768 xno)
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4770 $as_echo "unsupported" >&6; } ;;
4771 *)
4772 CC="$CC $ac_cv_prog_cc_c89"
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4774 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4775 esac
4776 if test "x$ac_cv_prog_cc_c89" != xno; then :
4777
4778 fi
4779
4780 ac_ext=c
4781 ac_cpp='$CPP $CPPFLAGS'
4782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4785
4786 ac_ext=cpp
4787 ac_cpp='$CXXCPP $CPPFLAGS'
4788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4791 if test -z "$CXX"; then
4792 if test -n "$CCC"; then
4793 CXX=$CCC
4794 else
4795 if test -n "$ac_tool_prefix"; then
4796 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4797 do
4798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4799 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801 $as_echo_n "checking for $ac_word... " >&6; }
4802 if ${ac_cv_prog_CXX+:} false; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 if test -n "$CXX"; then
4806 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4810 do
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4818 fi
4819 done
4820 done
4821 IFS=$as_save_IFS
4822
4823 fi
4824 fi
4825 CXX=$ac_cv_prog_CXX
4826 if test -n "$CXX"; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4828 $as_echo "$CXX" >&6; }
4829 else
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4832 fi
4833
4834
4835 test -n "$CXX" && break
4836 done
4837 fi
4838 if test -z "$CXX"; then
4839 ac_ct_CXX=$CXX
4840 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4841 do
4842 # Extract the first word of "$ac_prog", so it can be a program name with args.
4843 set dummy $ac_prog; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 if test -n "$ac_ct_CXX"; then
4850 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859 ac_cv_prog_ac_ct_CXX="$ac_prog"
4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4862 fi
4863 done
4864 done
4865 IFS=$as_save_IFS
4866
4867 fi
4868 fi
4869 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4870 if test -n "$ac_ct_CXX"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4872 $as_echo "$ac_ct_CXX" >&6; }
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876 fi
4877
4878
4879 test -n "$ac_ct_CXX" && break
4880 done
4881
4882 if test "x$ac_ct_CXX" = x; then
4883 CXX="g++"
4884 else
4885 case $cross_compiling:$ac_tool_warned in
4886 yes:)
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4889 ac_tool_warned=yes ;;
4890 esac
4891 CXX=$ac_ct_CXX
4892 fi
4893 fi
4894
4895 fi
4896 fi
4897 # Provide some information about the compiler.
4898 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4899 set X $ac_compile
4900 ac_compiler=$2
4901 for ac_option in --version -v -V -qversion; do
4902 { { ac_try="$ac_compiler $ac_option >&5"
4903 case "(($ac_try" in
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4906 esac
4907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4908 $as_echo "$ac_try_echo"; } >&5
4909 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4910 ac_status=$?
4911 if test -s conftest.err; then
4912 sed '10a\
4913 ... rest of stderr output deleted ...
4914 10q' conftest.err >conftest.er1
4915 cat conftest.er1 >&5
4916 fi
4917 rm -f conftest.er1 conftest.err
4918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4919 test $ac_status = 0; }
4920 done
4921
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4923 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4924 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929
4930 int
4931 main ()
4932 {
4933 #ifndef __GNUC__
4934 choke me
4935 #endif
4936
4937 ;
4938 return 0;
4939 }
4940 _ACEOF
4941 if ac_fn_cxx_try_compile "$LINENO"; then :
4942 ac_compiler_gnu=yes
4943 else
4944 ac_compiler_gnu=no
4945 fi
4946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4948
4949 fi
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4951 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4952 if test $ac_compiler_gnu = yes; then
4953 GXX=yes
4954 else
4955 GXX=
4956 fi
4957 ac_test_CXXFLAGS=${CXXFLAGS+set}
4958 ac_save_CXXFLAGS=$CXXFLAGS
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4960 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4961 if ${ac_cv_prog_cxx_g+:} false; then :
4962 $as_echo_n "(cached) " >&6
4963 else
4964 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4965 ac_cxx_werror_flag=yes
4966 ac_cv_prog_cxx_g=no
4967 CXXFLAGS="-g"
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4970
4971 int
4972 main ()
4973 {
4974
4975 ;
4976 return 0;
4977 }
4978 _ACEOF
4979 if ac_fn_cxx_try_compile "$LINENO"; then :
4980 ac_cv_prog_cxx_g=yes
4981 else
4982 CXXFLAGS=""
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4985
4986 int
4987 main ()
4988 {
4989
4990 ;
4991 return 0;
4992 }
4993 _ACEOF
4994 if ac_fn_cxx_try_compile "$LINENO"; then :
4995
4996 else
4997 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4998 CXXFLAGS="-g"
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001
5002 int
5003 main ()
5004 {
5005
5006 ;
5007 return 0;
5008 }
5009 _ACEOF
5010 if ac_fn_cxx_try_compile "$LINENO"; then :
5011 ac_cv_prog_cxx_g=yes
5012 fi
5013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 fi
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 fi
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5019 fi
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5021 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5022 if test "$ac_test_CXXFLAGS" = set; then
5023 CXXFLAGS=$ac_save_CXXFLAGS
5024 elif test $ac_cv_prog_cxx_g = yes; then
5025 if test "$GXX" = yes; then
5026 CXXFLAGS="-g -O2"
5027 else
5028 CXXFLAGS="-g"
5029 fi
5030 else
5031 if test "$GXX" = yes; then
5032 CXXFLAGS="-O2"
5033 else
5034 CXXFLAGS=
5035 fi
5036 fi
5037 ac_ext=c
5038 ac_cpp='$CPP $CPPFLAGS'
5039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5042
5043
5044
5045
5046 if test -n "$ac_tool_prefix"; then
5047 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5048 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 $as_echo_n "checking for $ac_word... " >&6; }
5051 if ${ac_cv_prog_GNATBIND+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 if test -n "$GNATBIND"; then
5055 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5067 fi
5068 done
5069 done
5070 IFS=$as_save_IFS
5071
5072 fi
5073 fi
5074 GNATBIND=$ac_cv_prog_GNATBIND
5075 if test -n "$GNATBIND"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5077 $as_echo "$GNATBIND" >&6; }
5078 else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5081 fi
5082
5083
5084 fi
5085 if test -z "$ac_cv_prog_GNATBIND"; then
5086 ac_ct_GNATBIND=$GNATBIND
5087 # Extract the first word of "gnatbind", so it can be a program name with args.
5088 set dummy gnatbind; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 if test -n "$ac_ct_GNATBIND"; then
5095 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5107 fi
5108 done
5109 done
5110 IFS=$as_save_IFS
5111
5112 fi
5113 fi
5114 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5115 if test -n "$ac_ct_GNATBIND"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5117 $as_echo "$ac_ct_GNATBIND" >&6; }
5118 else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5121 fi
5122
5123 if test "x$ac_ct_GNATBIND" = x; then
5124 GNATBIND="no"
5125 else
5126 case $cross_compiling:$ac_tool_warned in
5127 yes:)
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5130 ac_tool_warned=yes ;;
5131 esac
5132 GNATBIND=$ac_ct_GNATBIND
5133 fi
5134 else
5135 GNATBIND="$ac_cv_prog_GNATBIND"
5136 fi
5137
5138 if test -n "$ac_tool_prefix"; then
5139 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5140 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_prog_GNATMAKE+:} false; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 if test -n "$GNATMAKE"; then
5147 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5159 fi
5160 done
5161 done
5162 IFS=$as_save_IFS
5163
5164 fi
5165 fi
5166 GNATMAKE=$ac_cv_prog_GNATMAKE
5167 if test -n "$GNATMAKE"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5169 $as_echo "$GNATMAKE" >&6; }
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5173 fi
5174
5175
5176 fi
5177 if test -z "$ac_cv_prog_GNATMAKE"; then
5178 ac_ct_GNATMAKE=$GNATMAKE
5179 # Extract the first word of "gnatmake", so it can be a program name with args.
5180 set dummy gnatmake; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 if test -n "$ac_ct_GNATMAKE"; then
5187 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200 done
5201 done
5202 IFS=$as_save_IFS
5203
5204 fi
5205 fi
5206 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5207 if test -n "$ac_ct_GNATMAKE"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5209 $as_echo "$ac_ct_GNATMAKE" >&6; }
5210 else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5213 fi
5214
5215 if test "x$ac_ct_GNATMAKE" = x; then
5216 GNATMAKE="no"
5217 else
5218 case $cross_compiling:$ac_tool_warned in
5219 yes:)
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5222 ac_tool_warned=yes ;;
5223 esac
5224 GNATMAKE=$ac_ct_GNATMAKE
5225 fi
5226 else
5227 GNATMAKE="$ac_cv_prog_GNATMAKE"
5228 fi
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5231 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5232 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 cat >conftest.adb <<EOF
5236 pragma Warnings (Off);
5237 with System.CRTL;
5238 pragma Warnings (On);
5239 use type System.CRTL.int64;
5240 procedure conftest is begin null; end conftest;
5241 EOF
5242 acx_cv_cc_gcc_supports_ada=no
5243 # There is a bug in old released versions of GCC which causes the
5244 # driver to exit successfully when the appropriate language module
5245 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5246 # Therefore we must check for the error message as well as an
5247 # unsuccessful exit.
5248 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5249 # given a .adb file, but produce no object file. So we must check
5250 # if an object file was really produced to guard against this.
5251 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5252 if test x"$errors" = x && test -f conftest.$ac_objext; then
5253 acx_cv_cc_gcc_supports_ada=yes
5254 fi
5255 rm -f conftest.*
5256 fi
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5258 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5259
5260 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5261 have_gnat=yes
5262 else
5263 have_gnat=no
5264 fi
5265
5266
5267
5268 if test -n "$ac_tool_prefix"; then
5269 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5270 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272 $as_echo_n "checking for $ac_word... " >&6; }
5273 if ${ac_cv_prog_GDC+:} false; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 if test -n "$GDC"; then
5277 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5278 else
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH
5281 do
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 break 2
5289 fi
5290 done
5291 done
5292 IFS=$as_save_IFS
5293
5294 fi
5295 fi
5296 GDC=$ac_cv_prog_GDC
5297 if test -n "$GDC"; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5299 $as_echo "$GDC" >&6; }
5300 else
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5303 fi
5304
5305
5306 fi
5307 if test -z "$ac_cv_prog_GDC"; then
5308 ac_ct_GDC=$GDC
5309 # Extract the first word of "gdc", so it can be a program name with args.
5310 set dummy gdc; ac_word=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 if test -n "$ac_ct_GDC"; then
5317 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5321 do
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5326 ac_cv_prog_ac_ct_GDC="gdc"
5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
5329 fi
5330 done
5331 done
5332 IFS=$as_save_IFS
5333
5334 fi
5335 fi
5336 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5337 if test -n "$ac_ct_GDC"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5339 $as_echo "$ac_ct_GDC" >&6; }
5340 else
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5343 fi
5344
5345 if test "x$ac_ct_GDC" = x; then
5346 GDC="no"
5347 else
5348 case $cross_compiling:$ac_tool_warned in
5349 yes:)
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5352 ac_tool_warned=yes ;;
5353 esac
5354 GDC=$ac_ct_GDC
5355 fi
5356 else
5357 GDC="$ac_cv_prog_GDC"
5358 fi
5359
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5361 $as_echo_n "checking whether the D compiler works... " >&6; }
5362 if ${acx_cv_d_compiler_works+:} false; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 cat >conftest.d <<EOF
5366 module conftest; int main() { return 0; }
5367 EOF
5368 acx_cv_d_compiler_works=no
5369 if test "x$GDC" != xno; then
5370 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5371 if test x"$errors" = x && test -f conftest.$ac_objext; then
5372 acx_cv_d_compiler_works=yes
5373 fi
5374 rm -f conftest.*
5375 fi
5376 fi
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5378 $as_echo "$acx_cv_d_compiler_works" >&6; }
5379 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5380 have_gdc=yes
5381 else
5382 have_gdc=no
5383 fi
5384
5385
5386 # Do configure tests with the C++ compiler, since that's what we build with.
5387 ac_ext=cpp
5388 ac_cpp='$CXXCPP $CPPFLAGS'
5389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5392
5393
5394 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5395 # optimizations to be activated explicitly by the toplevel.
5396 case "$CC" in
5397 */prev-gcc/xgcc*) ;;
5398 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5399 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5400 esac
5401
5402
5403
5404
5405 # Determine PICFLAG for target gnatlib.
5406
5407
5408
5409
5410 case "${target}" in
5411 # PIC is the default on some targets or must not be used.
5412 *-*-darwin*)
5413 # For darwin, common symbols are not allowed in MH_DYLIB files
5414 case "${CFLAGS}" in
5415 # If we are using a compiler supporting mdynamic-no-pic
5416 # and the option has been tested as safe to add, then cancel
5417 # it here, since the code generated is incompatible with shared
5418 # libs.
5419 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5420 *) PICFLAG_FOR_TARGET=-fno-common ;;
5421 esac
5422 ;;
5423 alpha*-dec-osf5*)
5424 # PIC is the default.
5425 ;;
5426 hppa*64*-*-hpux*)
5427 # PIC is the default for 64-bit PA HP-UX.
5428 ;;
5429 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5430 ;;
5431 i[34567]86-*-mingw* | x86_64-*-mingw*)
5432 ;;
5433 i[34567]86-*-interix[3-9]*)
5434 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5435 # Instead, we relocate shared libraries at runtime.
5436 ;;
5437 i[34567]86-*-nto-qnx*)
5438 # QNX uses GNU C++, but need to define -shared option too, otherwise
5439 # it will coredump.
5440 PICFLAG_FOR_TARGET='-fPIC -shared'
5441 ;;
5442 i[34567]86-pc-msdosdjgpp*)
5443 # DJGPP does not support shared libraries at all.
5444 ;;
5445 ia64*-*-hpux*)
5446 # On IA64 HP-UX, PIC is the default but the pic flag
5447 # sets the default TLS model and affects inlining.
5448 PICFLAG_FOR_TARGET=-fPIC
5449 ;;
5450 loongarch*-*-*)
5451 PICFLAG_FOR_TARGET=-fpic
5452 ;;
5453 mips-sgi-irix6*)
5454 # PIC is the default.
5455 ;;
5456 rs6000-ibm-aix* | powerpc-ibm-aix*)
5457 # All AIX code is PIC.
5458 ;;
5459
5460 # Some targets support both -fPIC and -fpic, but prefer the latter.
5461 # FIXME: Why?
5462 i[34567]86-*-* | x86_64-*-*)
5463 PICFLAG_FOR_TARGET=-fpic
5464 ;;
5465 # FIXME: Override -fPIC default in libgcc only?
5466 sh-*-linux* | sh[2346lbe]*-*-linux*)
5467 PICFLAG_FOR_TARGET=-fpic
5468 ;;
5469 # FIXME: Simplify to sh*-*-netbsd*?
5470 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5471 sh64-*-netbsd* | sh64l*-*-netbsd*)
5472 PICFLAG_FOR_TARGET=-fpic
5473 ;;
5474 # Default to -fPIC unless specified otherwise.
5475 *)
5476 PICFLAG_FOR_TARGET=-fPIC
5477 ;;
5478 esac
5479
5480 # If the user explicitly uses -fpic/-fPIC, keep that.
5481 case "${CFLAGS_FOR_TARGET}" in
5482 *-fpic*)
5483 PICFLAG_FOR_TARGET=-fpic
5484 ;;
5485 *-fPIC*)
5486 PICFLAG_FOR_TARGET=-fPIC
5487 ;;
5488 esac
5489
5490
5491
5492 # -------------------------
5493 # Check C compiler features
5494 # -------------------------
5495
5496
5497 ac_ext=cpp
5498 ac_cpp='$CXXCPP $CPPFLAGS'
5499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5503 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5504 if test -z "$CXXCPP"; then
5505 if ${ac_cv_prog_CXXCPP+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 # Double quotes because CXXCPP needs to be expanded
5509 for CXXCPP in "$CXX -E" "/lib/cpp"
5510 do
5511 ac_preproc_ok=false
5512 for ac_cxx_preproc_warn_flag in '' yes
5513 do
5514 # Use a header file that comes with gcc, so configuring glibc
5515 # with a fresh cross-compiler works.
5516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5517 # <limits.h> exists even on freestanding compilers.
5518 # On the NeXT, cc -E runs the code through the compiler's parser,
5519 # not just through cpp. "Syntax error" is here to catch this case.
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522 #ifdef __STDC__
5523 # include <limits.h>
5524 #else
5525 # include <assert.h>
5526 #endif
5527 Syntax error
5528 _ACEOF
5529 if ac_fn_cxx_try_cpp "$LINENO"; then :
5530
5531 else
5532 # Broken: fails on valid input.
5533 continue
5534 fi
5535 rm -f conftest.err conftest.i conftest.$ac_ext
5536
5537 # OK, works on sane cases. Now check whether nonexistent headers
5538 # can be detected and how.
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 #include <ac_nonexistent.h>
5542 _ACEOF
5543 if ac_fn_cxx_try_cpp "$LINENO"; then :
5544 # Broken: success on invalid input.
5545 continue
5546 else
5547 # Passes both tests.
5548 ac_preproc_ok=:
5549 break
5550 fi
5551 rm -f conftest.err conftest.i conftest.$ac_ext
5552
5553 done
5554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5555 rm -f conftest.i conftest.err conftest.$ac_ext
5556 if $ac_preproc_ok; then :
5557 break
5558 fi
5559
5560 done
5561 ac_cv_prog_CXXCPP=$CXXCPP
5562
5563 fi
5564 CXXCPP=$ac_cv_prog_CXXCPP
5565 else
5566 ac_cv_prog_CXXCPP=$CXXCPP
5567 fi
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5569 $as_echo "$CXXCPP" >&6; }
5570 ac_preproc_ok=false
5571 for ac_cxx_preproc_warn_flag in '' yes
5572 do
5573 # Use a header file that comes with gcc, so configuring glibc
5574 # with a fresh cross-compiler works.
5575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5576 # <limits.h> exists even on freestanding compilers.
5577 # On the NeXT, cc -E runs the code through the compiler's parser,
5578 # not just through cpp. "Syntax error" is here to catch this case.
5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h. */
5581 #ifdef __STDC__
5582 # include <limits.h>
5583 #else
5584 # include <assert.h>
5585 #endif
5586 Syntax error
5587 _ACEOF
5588 if ac_fn_cxx_try_cpp "$LINENO"; then :
5589
5590 else
5591 # Broken: fails on valid input.
5592 continue
5593 fi
5594 rm -f conftest.err conftest.i conftest.$ac_ext
5595
5596 # OK, works on sane cases. Now check whether nonexistent headers
5597 # can be detected and how.
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5600 #include <ac_nonexistent.h>
5601 _ACEOF
5602 if ac_fn_cxx_try_cpp "$LINENO"; then :
5603 # Broken: success on invalid input.
5604 continue
5605 else
5606 # Passes both tests.
5607 ac_preproc_ok=:
5608 break
5609 fi
5610 rm -f conftest.err conftest.i conftest.$ac_ext
5611
5612 done
5613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5614 rm -f conftest.i conftest.err conftest.$ac_ext
5615 if $ac_preproc_ok; then :
5616
5617 else
5618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5620 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5621 See \`config.log' for more details" "$LINENO" 5; }
5622 fi
5623
5624 ac_ext=cpp
5625 ac_cpp='$CXXCPP $CPPFLAGS'
5626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5629
5630
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5632 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5633 if ${ac_cv_path_GREP+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 if test -z "$GREP"; then
5637 ac_path_GREP_found=false
5638 # Loop through the user's path and test for each of PROGNAME-LIST
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5641 do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_prog in grep ggrep; do
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5647 as_fn_executable_p "$ac_path_GREP" || continue
5648 # Check for GNU ac_path_GREP and select it if it is found.
5649 # Check for GNU $ac_path_GREP
5650 case `"$ac_path_GREP" --version 2>&1` in
5651 *GNU*)
5652 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5653 *)
5654 ac_count=0
5655 $as_echo_n 0123456789 >"conftest.in"
5656 while :
5657 do
5658 cat "conftest.in" "conftest.in" >"conftest.tmp"
5659 mv "conftest.tmp" "conftest.in"
5660 cp "conftest.in" "conftest.nl"
5661 $as_echo 'GREP' >> "conftest.nl"
5662 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5663 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5664 as_fn_arith $ac_count + 1 && ac_count=$as_val
5665 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5666 # Best one so far, save it but keep looking for a better one
5667 ac_cv_path_GREP="$ac_path_GREP"
5668 ac_path_GREP_max=$ac_count
5669 fi
5670 # 10*(2^10) chars as input seems more than enough
5671 test $ac_count -gt 10 && break
5672 done
5673 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5674 esac
5675
5676 $ac_path_GREP_found && break 3
5677 done
5678 done
5679 done
5680 IFS=$as_save_IFS
5681 if test -z "$ac_cv_path_GREP"; then
5682 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5683 fi
5684 else
5685 ac_cv_path_GREP=$GREP
5686 fi
5687
5688 fi
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5690 $as_echo "$ac_cv_path_GREP" >&6; }
5691 GREP="$ac_cv_path_GREP"
5692
5693
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5695 $as_echo_n "checking for egrep... " >&6; }
5696 if ${ac_cv_path_EGREP+:} false; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5700 then ac_cv_path_EGREP="$GREP -E"
5701 else
5702 if test -z "$EGREP"; then
5703 ac_path_EGREP_found=false
5704 # Loop through the user's path and test for each of PROGNAME-LIST
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5707 do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_prog in egrep; do
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5713 as_fn_executable_p "$ac_path_EGREP" || continue
5714 # Check for GNU ac_path_EGREP and select it if it is found.
5715 # Check for GNU $ac_path_EGREP
5716 case `"$ac_path_EGREP" --version 2>&1` in
5717 *GNU*)
5718 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5719 *)
5720 ac_count=0
5721 $as_echo_n 0123456789 >"conftest.in"
5722 while :
5723 do
5724 cat "conftest.in" "conftest.in" >"conftest.tmp"
5725 mv "conftest.tmp" "conftest.in"
5726 cp "conftest.in" "conftest.nl"
5727 $as_echo 'EGREP' >> "conftest.nl"
5728 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5729 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5730 as_fn_arith $ac_count + 1 && ac_count=$as_val
5731 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5732 # Best one so far, save it but keep looking for a better one
5733 ac_cv_path_EGREP="$ac_path_EGREP"
5734 ac_path_EGREP_max=$ac_count
5735 fi
5736 # 10*(2^10) chars as input seems more than enough
5737 test $ac_count -gt 10 && break
5738 done
5739 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5740 esac
5741
5742 $ac_path_EGREP_found && break 3
5743 done
5744 done
5745 done
5746 IFS=$as_save_IFS
5747 if test -z "$ac_cv_path_EGREP"; then
5748 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5749 fi
5750 else
5751 ac_cv_path_EGREP=$EGREP
5752 fi
5753
5754 fi
5755 fi
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5757 $as_echo "$ac_cv_path_EGREP" >&6; }
5758 EGREP="$ac_cv_path_EGREP"
5759
5760
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5762 $as_echo_n "checking for ANSI C header files... " >&6; }
5763 if ${ac_cv_header_stdc+:} false; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768 #include <stdlib.h>
5769 #include <stdarg.h>
5770 #include <string.h>
5771 #include <float.h>
5772
5773 int
5774 main ()
5775 {
5776
5777 ;
5778 return 0;
5779 }
5780 _ACEOF
5781 if ac_fn_cxx_try_compile "$LINENO"; then :
5782 ac_cv_header_stdc=yes
5783 else
5784 ac_cv_header_stdc=no
5785 fi
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787
5788 if test $ac_cv_header_stdc = yes; then
5789 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 #include <string.h>
5793
5794 _ACEOF
5795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5796 $EGREP "memchr" >/dev/null 2>&1; then :
5797
5798 else
5799 ac_cv_header_stdc=no
5800 fi
5801 rm -f conftest*
5802
5803 fi
5804
5805 if test $ac_cv_header_stdc = yes; then
5806 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5809 #include <stdlib.h>
5810
5811 _ACEOF
5812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5813 $EGREP "free" >/dev/null 2>&1; then :
5814
5815 else
5816 ac_cv_header_stdc=no
5817 fi
5818 rm -f conftest*
5819
5820 fi
5821
5822 if test $ac_cv_header_stdc = yes; then
5823 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5824 if test "$cross_compiling" = yes; then :
5825 :
5826 else
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 #include <ctype.h>
5830 #include <stdlib.h>
5831 #if ((' ' & 0x0FF) == 0x020)
5832 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5833 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5834 #else
5835 # define ISLOWER(c) \
5836 (('a' <= (c) && (c) <= 'i') \
5837 || ('j' <= (c) && (c) <= 'r') \
5838 || ('s' <= (c) && (c) <= 'z'))
5839 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5840 #endif
5841
5842 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5843 int
5844 main ()
5845 {
5846 int i;
5847 for (i = 0; i < 256; i++)
5848 if (XOR (islower (i), ISLOWER (i))
5849 || toupper (i) != TOUPPER (i))
5850 return 2;
5851 return 0;
5852 }
5853 _ACEOF
5854 if ac_fn_cxx_try_run "$LINENO"; then :
5855
5856 else
5857 ac_cv_header_stdc=no
5858 fi
5859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5860 conftest.$ac_objext conftest.beam conftest.$ac_ext
5861 fi
5862
5863 fi
5864 fi
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5866 $as_echo "$ac_cv_header_stdc" >&6; }
5867 if test $ac_cv_header_stdc = yes; then
5868
5869 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5870
5871 fi
5872
5873 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5874 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5875 inttypes.h stdint.h unistd.h
5876 do :
5877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5878 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5879 "
5880 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5881 cat >>confdefs.h <<_ACEOF
5882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5883 _ACEOF
5884
5885 fi
5886
5887 done
5888
5889
5890
5891 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5892 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5893 MINIX=yes
5894 else
5895 MINIX=
5896 fi
5897
5898
5899 if test "$MINIX" = yes; then
5900
5901 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5902
5903
5904 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5905
5906
5907 $as_echo "#define _MINIX 1" >>confdefs.h
5908
5909 fi
5910
5911
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5913 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5914 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5919
5920 # define __EXTENSIONS__ 1
5921 $ac_includes_default
5922 int
5923 main ()
5924 {
5925
5926 ;
5927 return 0;
5928 }
5929 _ACEOF
5930 if ac_fn_cxx_try_compile "$LINENO"; then :
5931 ac_cv_safe_to_define___extensions__=yes
5932 else
5933 ac_cv_safe_to_define___extensions__=no
5934 fi
5935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5936 fi
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5938 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5939 test $ac_cv_safe_to_define___extensions__ = yes &&
5940 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5941
5942 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5943
5944 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5945
5946 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5947
5948 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5949
5950
5951
5952 ac_ext=c
5953 ac_cpp='$CPP $CPPFLAGS'
5954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5958 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5959 # On Suns, sometimes $CPP names a directory.
5960 if test -n "$CPP" && test -d "$CPP"; then
5961 CPP=
5962 fi
5963 if test -z "$CPP"; then
5964 if ${ac_cv_prog_CPP+:} false; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 # Double quotes because CPP needs to be expanded
5968 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5969 do
5970 ac_preproc_ok=false
5971 for ac_c_preproc_warn_flag in '' yes
5972 do
5973 # Use a header file that comes with gcc, so configuring glibc
5974 # with a fresh cross-compiler works.
5975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5976 # <limits.h> exists even on freestanding compilers.
5977 # On the NeXT, cc -E runs the code through the compiler's parser,
5978 # not just through cpp. "Syntax error" is here to catch this case.
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981 #ifdef __STDC__
5982 # include <limits.h>
5983 #else
5984 # include <assert.h>
5985 #endif
5986 Syntax error
5987 _ACEOF
5988 if ac_fn_c_try_cpp "$LINENO"; then :
5989
5990 else
5991 # Broken: fails on valid input.
5992 continue
5993 fi
5994 rm -f conftest.err conftest.i conftest.$ac_ext
5995
5996 # OK, works on sane cases. Now check whether nonexistent headers
5997 # can be detected and how.
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6000 #include <ac_nonexistent.h>
6001 _ACEOF
6002 if ac_fn_c_try_cpp "$LINENO"; then :
6003 # Broken: success on invalid input.
6004 continue
6005 else
6006 # Passes both tests.
6007 ac_preproc_ok=:
6008 break
6009 fi
6010 rm -f conftest.err conftest.i conftest.$ac_ext
6011
6012 done
6013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6014 rm -f conftest.i conftest.err conftest.$ac_ext
6015 if $ac_preproc_ok; then :
6016 break
6017 fi
6018
6019 done
6020 ac_cv_prog_CPP=$CPP
6021
6022 fi
6023 CPP=$ac_cv_prog_CPP
6024 else
6025 ac_cv_prog_CPP=$CPP
6026 fi
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6028 $as_echo "$CPP" >&6; }
6029 ac_preproc_ok=false
6030 for ac_c_preproc_warn_flag in '' yes
6031 do
6032 # Use a header file that comes with gcc, so configuring glibc
6033 # with a fresh cross-compiler works.
6034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6035 # <limits.h> exists even on freestanding compilers.
6036 # On the NeXT, cc -E runs the code through the compiler's parser,
6037 # not just through cpp. "Syntax error" is here to catch this case.
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6040 #ifdef __STDC__
6041 # include <limits.h>
6042 #else
6043 # include <assert.h>
6044 #endif
6045 Syntax error
6046 _ACEOF
6047 if ac_fn_c_try_cpp "$LINENO"; then :
6048
6049 else
6050 # Broken: fails on valid input.
6051 continue
6052 fi
6053 rm -f conftest.err conftest.i conftest.$ac_ext
6054
6055 # OK, works on sane cases. Now check whether nonexistent headers
6056 # can be detected and how.
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6059 #include <ac_nonexistent.h>
6060 _ACEOF
6061 if ac_fn_c_try_cpp "$LINENO"; then :
6062 # Broken: success on invalid input.
6063 continue
6064 else
6065 # Passes both tests.
6066 ac_preproc_ok=:
6067 break
6068 fi
6069 rm -f conftest.err conftest.i conftest.$ac_ext
6070
6071 done
6072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6073 rm -f conftest.i conftest.err conftest.$ac_ext
6074 if $ac_preproc_ok; then :
6075
6076 else
6077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6079 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6080 See \`config.log' for more details" "$LINENO" 5; }
6081 fi
6082
6083 ac_ext=cpp
6084 ac_cpp='$CXXCPP $CPPFLAGS'
6085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6088
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6090 $as_echo_n "checking for inline... " >&6; }
6091 if ${ac_cv_c_inline+:} false; then :
6092 $as_echo_n "(cached) " >&6
6093 else
6094 ac_cv_c_inline=no
6095 for ac_kw in inline __inline__ __inline; do
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6098 #ifndef __cplusplus
6099 typedef int foo_t;
6100 static $ac_kw foo_t static_foo () {return 0; }
6101 $ac_kw foo_t foo () {return 0; }
6102 #endif
6103
6104 _ACEOF
6105 if ac_fn_cxx_try_compile "$LINENO"; then :
6106 ac_cv_c_inline=$ac_kw
6107 fi
6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 test "$ac_cv_c_inline" != no && break
6110 done
6111
6112 fi
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6114 $as_echo "$ac_cv_c_inline" >&6; }
6115
6116 case $ac_cv_c_inline in
6117 inline | yes) ;;
6118 *)
6119 case $ac_cv_c_inline in
6120 no) ac_val=;;
6121 *) ac_val=$ac_cv_c_inline;;
6122 esac
6123 cat >>confdefs.h <<_ACEOF
6124 #ifndef __cplusplus
6125 #define inline $ac_val
6126 #endif
6127 _ACEOF
6128 ;;
6129 esac
6130
6131
6132 # Check whether --enable-largefile was given.
6133 if test "${enable_largefile+set}" = set; then :
6134 enableval=$enable_largefile;
6135 fi
6136
6137 if test "$enable_largefile" != no; then
6138
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6140 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6141 if ${ac_cv_sys_largefile_CC+:} false; then :
6142 $as_echo_n "(cached) " >&6
6143 else
6144 ac_cv_sys_largefile_CC=no
6145 if test "$GCC" != yes; then
6146 ac_save_CC=$CC
6147 while :; do
6148 # IRIX 6.2 and later do not support large files by default,
6149 # so use the C compiler's -n32 option if that helps.
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6152 #include <sys/types.h>
6153 /* Check that off_t can represent 2**63 - 1 correctly.
6154 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6155 since some C++ compilers masquerading as C compilers
6156 incorrectly reject 9223372036854775807. */
6157 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6158 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6159 && LARGE_OFF_T % 2147483647 == 1)
6160 ? 1 : -1];
6161 int
6162 main ()
6163 {
6164
6165 ;
6166 return 0;
6167 }
6168 _ACEOF
6169 if ac_fn_cxx_try_compile "$LINENO"; then :
6170 break
6171 fi
6172 rm -f core conftest.err conftest.$ac_objext
6173 CC="$CC -n32"
6174 if ac_fn_cxx_try_compile "$LINENO"; then :
6175 ac_cv_sys_largefile_CC=' -n32'; break
6176 fi
6177 rm -f core conftest.err conftest.$ac_objext
6178 break
6179 done
6180 CC=$ac_save_CC
6181 rm -f conftest.$ac_ext
6182 fi
6183 fi
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6185 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6186 if test "$ac_cv_sys_largefile_CC" != no; then
6187 CC=$CC$ac_cv_sys_largefile_CC
6188 fi
6189
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6191 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6192 if ${ac_cv_sys_file_offset_bits+:} false; then :
6193 $as_echo_n "(cached) " >&6
6194 else
6195 while :; do
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198 #include <sys/types.h>
6199 /* Check that off_t can represent 2**63 - 1 correctly.
6200 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6201 since some C++ compilers masquerading as C compilers
6202 incorrectly reject 9223372036854775807. */
6203 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6204 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6205 && LARGE_OFF_T % 2147483647 == 1)
6206 ? 1 : -1];
6207 int
6208 main ()
6209 {
6210
6211 ;
6212 return 0;
6213 }
6214 _ACEOF
6215 if ac_fn_cxx_try_compile "$LINENO"; then :
6216 ac_cv_sys_file_offset_bits=no; break
6217 fi
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6221 #define _FILE_OFFSET_BITS 64
6222 #include <sys/types.h>
6223 /* Check that off_t can represent 2**63 - 1 correctly.
6224 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6225 since some C++ compilers masquerading as C compilers
6226 incorrectly reject 9223372036854775807. */
6227 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6228 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6229 && LARGE_OFF_T % 2147483647 == 1)
6230 ? 1 : -1];
6231 int
6232 main ()
6233 {
6234
6235 ;
6236 return 0;
6237 }
6238 _ACEOF
6239 if ac_fn_cxx_try_compile "$LINENO"; then :
6240 ac_cv_sys_file_offset_bits=64; break
6241 fi
6242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243 ac_cv_sys_file_offset_bits=unknown
6244 break
6245 done
6246 fi
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6248 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6249 case $ac_cv_sys_file_offset_bits in #(
6250 no | unknown) ;;
6251 *)
6252 cat >>confdefs.h <<_ACEOF
6253 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6254 _ACEOF
6255 ;;
6256 esac
6257 rm -rf conftest*
6258 if test $ac_cv_sys_file_offset_bits = unknown; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6260 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6261 if ${ac_cv_sys_large_files+:} false; then :
6262 $as_echo_n "(cached) " >&6
6263 else
6264 while :; do
6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h. */
6267 #include <sys/types.h>
6268 /* Check that off_t can represent 2**63 - 1 correctly.
6269 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6270 since some C++ compilers masquerading as C compilers
6271 incorrectly reject 9223372036854775807. */
6272 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6273 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6274 && LARGE_OFF_T % 2147483647 == 1)
6275 ? 1 : -1];
6276 int
6277 main ()
6278 {
6279
6280 ;
6281 return 0;
6282 }
6283 _ACEOF
6284 if ac_fn_cxx_try_compile "$LINENO"; then :
6285 ac_cv_sys_large_files=no; break
6286 fi
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6290 #define _LARGE_FILES 1
6291 #include <sys/types.h>
6292 /* Check that off_t can represent 2**63 - 1 correctly.
6293 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6294 since some C++ compilers masquerading as C compilers
6295 incorrectly reject 9223372036854775807. */
6296 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6297 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6298 && LARGE_OFF_T % 2147483647 == 1)
6299 ? 1 : -1];
6300 int
6301 main ()
6302 {
6303
6304 ;
6305 return 0;
6306 }
6307 _ACEOF
6308 if ac_fn_cxx_try_compile "$LINENO"; then :
6309 ac_cv_sys_large_files=1; break
6310 fi
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 ac_cv_sys_large_files=unknown
6313 break
6314 done
6315 fi
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6317 $as_echo "$ac_cv_sys_large_files" >&6; }
6318 case $ac_cv_sys_large_files in #(
6319 no | unknown) ;;
6320 *)
6321 cat >>confdefs.h <<_ACEOF
6322 #define _LARGE_FILES $ac_cv_sys_large_files
6323 _ACEOF
6324 ;;
6325 esac
6326 rm -rf conftest*
6327 fi
6328
6329
6330 fi
6331
6332 # The cast to long int works around a bug in the HP C Compiler
6333 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6334 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6335 # This bug is HP SR number 8606223364.
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6337 $as_echo_n "checking size of ino_t... " >&6; }
6338 if ${ac_cv_sizeof_ino_t+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6342
6343 else
6344 if test "$ac_cv_type_ino_t" = yes; then
6345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6347 as_fn_error 77 "cannot compute sizeof (ino_t)
6348 See \`config.log' for more details" "$LINENO" 5; }
6349 else
6350 ac_cv_sizeof_ino_t=0
6351 fi
6352 fi
6353
6354 fi
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6356 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6357
6358
6359
6360 cat >>confdefs.h <<_ACEOF
6361 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6362 _ACEOF
6363
6364
6365 # The cast to long int works around a bug in the HP C Compiler
6366 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6367 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6368 # This bug is HP SR number 8606223364.
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6370 $as_echo_n "checking size of dev_t... " >&6; }
6371 if ${ac_cv_sizeof_dev_t+:} false; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6375
6376 else
6377 if test "$ac_cv_type_dev_t" = yes; then
6378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6380 as_fn_error 77 "cannot compute sizeof (dev_t)
6381 See \`config.log' for more details" "$LINENO" 5; }
6382 else
6383 ac_cv_sizeof_dev_t=0
6384 fi
6385 fi
6386
6387 fi
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6389 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6390
6391
6392
6393 cat >>confdefs.h <<_ACEOF
6394 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6395 _ACEOF
6396
6397
6398
6399 # Select the right stat being able to handle 64bit inodes, if needed.
6400 if test "$enable_largefile" != no; then
6401 case "$host, $build" in
6402 *-*-aix*,*|*,*-*-aix*)
6403 if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then
6404
6405 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6406
6407 fi;;
6408 esac
6409 fi
6410
6411
6412 # sizeof(char) is 1 by definition.
6413 # The cast to long int works around a bug in the HP C Compiler
6414 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6415 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6416 # This bug is HP SR number 8606223364.
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6418 $as_echo_n "checking size of void *... " >&6; }
6419 if ${ac_cv_sizeof_void_p+:} false; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6423
6424 else
6425 if test "$ac_cv_type_void_p" = yes; then
6426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6428 as_fn_error 77 "cannot compute sizeof (void *)
6429 See \`config.log' for more details" "$LINENO" 5; }
6430 else
6431 ac_cv_sizeof_void_p=0
6432 fi
6433 fi
6434
6435 fi
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6437 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6438
6439
6440
6441 cat >>confdefs.h <<_ACEOF
6442 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6443 _ACEOF
6444
6445
6446 # The cast to long int works around a bug in the HP C Compiler
6447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6449 # This bug is HP SR number 8606223364.
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6451 $as_echo_n "checking size of short... " >&6; }
6452 if ${ac_cv_sizeof_short+:} false; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6456
6457 else
6458 if test "$ac_cv_type_short" = yes; then
6459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6461 as_fn_error 77 "cannot compute sizeof (short)
6462 See \`config.log' for more details" "$LINENO" 5; }
6463 else
6464 ac_cv_sizeof_short=0
6465 fi
6466 fi
6467
6468 fi
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6470 $as_echo "$ac_cv_sizeof_short" >&6; }
6471
6472
6473
6474 cat >>confdefs.h <<_ACEOF
6475 #define SIZEOF_SHORT $ac_cv_sizeof_short
6476 _ACEOF
6477
6478
6479 # The cast to long int works around a bug in the HP C Compiler
6480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6482 # This bug is HP SR number 8606223364.
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6484 $as_echo_n "checking size of int... " >&6; }
6485 if ${ac_cv_sizeof_int+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6489
6490 else
6491 if test "$ac_cv_type_int" = yes; then
6492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6494 as_fn_error 77 "cannot compute sizeof (int)
6495 See \`config.log' for more details" "$LINENO" 5; }
6496 else
6497 ac_cv_sizeof_int=0
6498 fi
6499 fi
6500
6501 fi
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6503 $as_echo "$ac_cv_sizeof_int" >&6; }
6504
6505
6506
6507 cat >>confdefs.h <<_ACEOF
6508 #define SIZEOF_INT $ac_cv_sizeof_int
6509 _ACEOF
6510
6511
6512 # The cast to long int works around a bug in the HP C Compiler
6513 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6514 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6515 # This bug is HP SR number 8606223364.
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6517 $as_echo_n "checking size of long... " >&6; }
6518 if ${ac_cv_sizeof_long+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6522
6523 else
6524 if test "$ac_cv_type_long" = yes; then
6525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6527 as_fn_error 77 "cannot compute sizeof (long)
6528 See \`config.log' for more details" "$LINENO" 5; }
6529 else
6530 ac_cv_sizeof_long=0
6531 fi
6532 fi
6533
6534 fi
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6536 $as_echo "$ac_cv_sizeof_long" >&6; }
6537
6538
6539
6540 cat >>confdefs.h <<_ACEOF
6541 #define SIZEOF_LONG $ac_cv_sizeof_long
6542 _ACEOF
6543
6544
6545 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6546 if test "x$ac_cv_type_long_long" = xyes; then :
6547
6548 cat >>confdefs.h <<_ACEOF
6549 #define HAVE_LONG_LONG 1
6550 _ACEOF
6551
6552 # The cast to long int works around a bug in the HP C Compiler
6553 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6554 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6555 # This bug is HP SR number 8606223364.
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6557 $as_echo_n "checking size of long long... " >&6; }
6558 if ${ac_cv_sizeof_long_long+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6562
6563 else
6564 if test "$ac_cv_type_long_long" = yes; then
6565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6567 as_fn_error 77 "cannot compute sizeof (long long)
6568 See \`config.log' for more details" "$LINENO" 5; }
6569 else
6570 ac_cv_sizeof_long_long=0
6571 fi
6572 fi
6573
6574 fi
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6576 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6577
6578
6579
6580 cat >>confdefs.h <<_ACEOF
6581 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6582 _ACEOF
6583
6584
6585 fi
6586
6587 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6588 case $ac_cv_c_int8_t in #(
6589 no|yes) ;; #(
6590 *)
6591
6592 cat >>confdefs.h <<_ACEOF
6593 #define int8_t $ac_cv_c_int8_t
6594 _ACEOF
6595 ;;
6596 esac
6597
6598 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6599 case $ac_cv_c_int16_t in #(
6600 no|yes) ;; #(
6601 *)
6602
6603 cat >>confdefs.h <<_ACEOF
6604 #define int16_t $ac_cv_c_int16_t
6605 _ACEOF
6606 ;;
6607 esac
6608
6609 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6610 case $ac_cv_c_int32_t in #(
6611 no|yes) ;; #(
6612 *)
6613
6614 cat >>confdefs.h <<_ACEOF
6615 #define int32_t $ac_cv_c_int32_t
6616 _ACEOF
6617 ;;
6618 esac
6619
6620 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6621 case $ac_cv_c_int64_t in #(
6622 no|yes) ;; #(
6623 *)
6624
6625 cat >>confdefs.h <<_ACEOF
6626 #define int64_t $ac_cv_c_int64_t
6627 _ACEOF
6628 ;;
6629 esac
6630
6631
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6633 $as_echo_n "checking for unsigned long long int... " >&6; }
6634 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 ac_cv_type_unsigned_long_long_int=yes
6638 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641
6642 /* For now, do not test the preprocessor; as of 2007 there are too many
6643 implementations with broken preprocessors. Perhaps this can
6644 be revisited in 2012. In the meantime, code should not expect
6645 #if to work with literals wider than 32 bits. */
6646 /* Test literals. */
6647 long long int ll = 9223372036854775807ll;
6648 long long int nll = -9223372036854775807LL;
6649 unsigned long long int ull = 18446744073709551615ULL;
6650 /* Test constant expressions. */
6651 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6652 ? 1 : -1)];
6653 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6654 ? 1 : -1)];
6655 int i = 63;
6656 int
6657 main ()
6658 {
6659 /* Test availability of runtime routines for shift and division. */
6660 long long int llmax = 9223372036854775807ll;
6661 unsigned long long int ullmax = 18446744073709551615ull;
6662 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6663 | (llmax / ll) | (llmax % ll)
6664 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6665 | (ullmax / ull) | (ullmax % ull));
6666 ;
6667 return 0;
6668 }
6669
6670 _ACEOF
6671 if ac_fn_cxx_try_link "$LINENO"; then :
6672
6673 else
6674 ac_cv_type_unsigned_long_long_int=no
6675 fi
6676 rm -f core conftest.err conftest.$ac_objext \
6677 conftest$ac_exeext conftest.$ac_ext
6678 fi
6679 fi
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6681 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6682 if test $ac_cv_type_unsigned_long_long_int = yes; then
6683
6684 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6685
6686 fi
6687
6688
6689
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6691 $as_echo_n "checking for long long int... " >&6; }
6692 if ${ac_cv_type_long_long_int+:} false; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 ac_cv_type_long_long_int=yes
6696 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6697 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6698 if test $ac_cv_type_long_long_int = yes; then
6699 if test "$cross_compiling" = yes; then :
6700 :
6701 else
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 #include <limits.h>
6705 #ifndef LLONG_MAX
6706 # define HALF \
6707 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6708 # define LLONG_MAX (HALF - 1 + HALF)
6709 #endif
6710 int
6711 main ()
6712 {
6713 long long int n = 1;
6714 int i;
6715 for (i = 0; ; i++)
6716 {
6717 long long int m = n << i;
6718 if (m >> i != n)
6719 return 1;
6720 if (LLONG_MAX / 2 < m)
6721 break;
6722 }
6723 return 0;
6724 ;
6725 return 0;
6726 }
6727 _ACEOF
6728 if ac_fn_cxx_try_run "$LINENO"; then :
6729
6730 else
6731 ac_cv_type_long_long_int=no
6732 fi
6733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6734 conftest.$ac_objext conftest.beam conftest.$ac_ext
6735 fi
6736
6737 fi
6738 fi
6739 fi
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6741 $as_echo "$ac_cv_type_long_long_int" >&6; }
6742 if test $ac_cv_type_long_long_int = yes; then
6743
6744 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6745
6746 fi
6747
6748
6749
6750 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6751 if test "x$ac_cv_type_intmax_t" = xyes; then :
6752
6753 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6754
6755 else
6756 test $ac_cv_type_long_long_int = yes \
6757 && ac_type='long long int' \
6758 || ac_type='long int'
6759
6760 cat >>confdefs.h <<_ACEOF
6761 #define intmax_t $ac_type
6762 _ACEOF
6763
6764 fi
6765
6766
6767
6768 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6769 if test "x$ac_cv_type_intptr_t" = xyes; then :
6770
6771 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6772
6773 else
6774 for ac_type in 'int' 'long int' 'long long int'; do
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 $ac_includes_default
6778 int
6779 main ()
6780 {
6781 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6782 test_array [0] = 0;
6783 return test_array [0];
6784
6785 ;
6786 return 0;
6787 }
6788 _ACEOF
6789 if ac_fn_cxx_try_compile "$LINENO"; then :
6790
6791 cat >>confdefs.h <<_ACEOF
6792 #define intptr_t $ac_type
6793 _ACEOF
6794
6795 ac_type=
6796 fi
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798 test -z "$ac_type" && break
6799 done
6800 fi
6801
6802
6803 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6804 case $ac_cv_c_uint8_t in #(
6805 no|yes) ;; #(
6806 *)
6807
6808 $as_echo "#define _UINT8_T 1" >>confdefs.h
6809
6810
6811 cat >>confdefs.h <<_ACEOF
6812 #define uint8_t $ac_cv_c_uint8_t
6813 _ACEOF
6814 ;;
6815 esac
6816
6817 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6818 case $ac_cv_c_uint16_t in #(
6819 no|yes) ;; #(
6820 *)
6821
6822
6823 cat >>confdefs.h <<_ACEOF
6824 #define uint16_t $ac_cv_c_uint16_t
6825 _ACEOF
6826 ;;
6827 esac
6828
6829 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6830 case $ac_cv_c_uint32_t in #(
6831 no|yes) ;; #(
6832 *)
6833
6834 $as_echo "#define _UINT32_T 1" >>confdefs.h
6835
6836
6837 cat >>confdefs.h <<_ACEOF
6838 #define uint32_t $ac_cv_c_uint32_t
6839 _ACEOF
6840 ;;
6841 esac
6842
6843 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6844 case $ac_cv_c_uint64_t in #(
6845 no|yes) ;; #(
6846 *)
6847
6848 $as_echo "#define _UINT64_T 1" >>confdefs.h
6849
6850
6851 cat >>confdefs.h <<_ACEOF
6852 #define uint64_t $ac_cv_c_uint64_t
6853 _ACEOF
6854 ;;
6855 esac
6856
6857
6858
6859 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6860 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6861
6862 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6863
6864 else
6865 test $ac_cv_type_unsigned_long_long_int = yes \
6866 && ac_type='unsigned long long int' \
6867 || ac_type='unsigned long int'
6868
6869 cat >>confdefs.h <<_ACEOF
6870 #define uintmax_t $ac_type
6871 _ACEOF
6872
6873 fi
6874
6875
6876
6877 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6878 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6879
6880 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6881
6882 else
6883 for ac_type in 'unsigned int' 'unsigned long int' \
6884 'unsigned long long int'; do
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6887 $ac_includes_default
6888 int
6889 main ()
6890 {
6891 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6892 test_array [0] = 0;
6893 return test_array [0];
6894
6895 ;
6896 return 0;
6897 }
6898 _ACEOF
6899 if ac_fn_cxx_try_compile "$LINENO"; then :
6900
6901 cat >>confdefs.h <<_ACEOF
6902 #define uintptr_t $ac_type
6903 _ACEOF
6904
6905 ac_type=
6906 fi
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 test -z "$ac_type" && break
6909 done
6910 fi
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6926 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6927 fi
6928
6929 # check what underlying integer type int64_t uses
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6931 $as_echo_n "checking for int64_t underlying type... " >&6; }
6932 if ${ac_cv_int64_t_type+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6938
6939 #ifdef HAVE_STDINT_H
6940 #include <stdint.h>
6941 #endif
6942 template <typename T> struct X { };
6943 template <>
6944 struct X<long> { typedef long t; };
6945
6946 int
6947 main ()
6948 {
6949 X<int64_t>::t x;
6950 ;
6951 return 0;
6952 }
6953 _ACEOF
6954 if ac_fn_cxx_try_compile "$LINENO"; then :
6955 ac_cv_int64_t_type=long
6956 else
6957 ac_cv_int64_t_type="long long"
6958 fi
6959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6960 fi
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6962 $as_echo "$ac_cv_int64_t_type" >&6; }
6963 if test "$ac_cv_int64_t_type" = "long"; then
6964
6965 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6966
6967 else
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6970
6971 #ifdef HAVE_STDINT_H
6972 #include <stdint.h>
6973 #endif
6974 template <typename T> struct X { };
6975 template <>
6976 struct X<long long> { typedef long long t; };
6977
6978 int
6979 main ()
6980 {
6981 X<int64_t>::t x;
6982 ;
6983 return 0;
6984 }
6985 _ACEOF
6986 if ac_fn_cxx_try_compile "$LINENO"; then :
6987
6988 else
6989 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6990 fi
6991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6992 fi
6993
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6995 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6996 if ${ac_cv_std_swap_in_utility+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7002
7003 #include <utility>
7004
7005 int
7006 main ()
7007 {
7008 int a, b; std::swap(a,b);
7009 ;
7010 return 0;
7011 }
7012 _ACEOF
7013 if ac_fn_cxx_try_compile "$LINENO"; then :
7014 ac_cv_std_swap_in_utility=yes
7015 else
7016 ac_cv_std_swap_in_utility=no
7017 fi
7018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019 fi
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7021 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7022 if test $ac_cv_std_swap_in_utility = yes; then
7023
7024 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7025
7026 fi
7027
7028 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7029 # If the host compiler is affected by the bug, and we build with optimization
7030 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7031 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7032 # Since there is no reliable feature check for the presence of this bug,
7033 # we simply use a GCC version number check. (This should never trigger for
7034 # stages 2 or 3 of a native bootstrap.)
7035 aliasing_flags=
7036 if test "$GCC" = yes; then
7037 saved_CXXFLAGS="$CXXFLAGS"
7038
7039 # The following test compilation will succeed if and only if $CXX accepts
7040 # -fno-strict-aliasing *and* is older than GCC 4.3.
7041 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7043 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7046
7047 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7048 #error compiler not affected by placement new aliasing bug
7049 #endif
7050
7051 _ACEOF
7052 if ac_fn_cxx_try_compile "$LINENO"; then :
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7054 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7055 else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7058 fi
7059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060
7061 CXXFLAGS="$saved_CXXFLAGS"
7062 fi
7063
7064
7065
7066
7067 # ---------------------
7068 # Warnings and checking
7069 # ---------------------
7070
7071 # Check $CC warning features (if it's GCC).
7072 # We want to use -pedantic, but we don't want warnings about
7073 # * 'long long'
7074 # * variadic macros
7075 # * overlong strings
7076 # * C++11 narrowing conversions in { }
7077 # So, we only use -pedantic if we can disable those warnings.
7078
7079 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7080 # Check whether --enable-build-format-warnings was given.
7081 if test "${enable_build_format_warnings+set}" = set; then :
7082 enableval=$enable_build_format_warnings;
7083 else
7084 enable_build_format_warnings=yes
7085 fi
7086
7087 if test $enable_build_format_warnings = no; then :
7088 wf_opt=-Wno-format
7089 else
7090 wf_opt=
7091 fi
7092 ac_ext=cpp
7093 ac_cpp='$CXXCPP $CPPFLAGS'
7094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7097
7098 loose_warn=
7099 save_CXXFLAGS="$CXXFLAGS"
7100 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7101 # Do the check with the no- prefix removed since gcc silently
7102 # accepts any -Wno-* option on purpose
7103 case $real_option in
7104 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7105 *) option=$real_option ;;
7106 esac
7107 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7108
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7110 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7111 if eval \${$as_acx_Woption+:} false; then :
7112 $as_echo_n "(cached) " >&6
7113 else
7114 CXXFLAGS="$option"
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117
7118 int
7119 main ()
7120 {
7121
7122 ;
7123 return 0;
7124 }
7125 _ACEOF
7126 if ac_fn_cxx_try_compile "$LINENO"; then :
7127 eval "$as_acx_Woption=yes"
7128 else
7129 eval "$as_acx_Woption=no"
7130 fi
7131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7132
7133 fi
7134 eval ac_res=\$$as_acx_Woption
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7136 $as_echo "$ac_res" >&6; }
7137 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7138 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7139 fi
7140 done
7141 CXXFLAGS="$save_CXXFLAGS"
7142 ac_ext=cpp
7143 ac_cpp='$CXXCPP $CPPFLAGS'
7144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7147
7148
7149
7150 ac_ext=c
7151 ac_cpp='$CPP $CPPFLAGS'
7152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7155
7156 c_loose_warn=
7157 save_CFLAGS="$CFLAGS"
7158 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7159 # Do the check with the no- prefix removed since gcc silently
7160 # accepts any -Wno-* option on purpose
7161 case $real_option in
7162 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7163 *) option=$real_option ;;
7164 esac
7165 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7166
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7168 $as_echo_n "checking whether $CC supports $option... " >&6; }
7169 if eval \${$as_acx_Woption+:} false; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 CFLAGS="$option"
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7175
7176 int
7177 main ()
7178 {
7179
7180 ;
7181 return 0;
7182 }
7183 _ACEOF
7184 if ac_fn_c_try_compile "$LINENO"; then :
7185 eval "$as_acx_Woption=yes"
7186 else
7187 eval "$as_acx_Woption=no"
7188 fi
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190
7191 fi
7192 eval ac_res=\$$as_acx_Woption
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7194 $as_echo "$ac_res" >&6; }
7195 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7196 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7197 fi
7198 done
7199 CFLAGS="$save_CFLAGS"
7200 ac_ext=cpp
7201 ac_cpp='$CXXCPP $CPPFLAGS'
7202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7205
7206
7207 ac_ext=cpp
7208 ac_cpp='$CXXCPP $CPPFLAGS'
7209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7212
7213 strict_warn=
7214 save_CXXFLAGS="$CXXFLAGS"
7215 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
7216 # Do the check with the no- prefix removed since gcc silently
7217 # accepts any -Wno-* option on purpose
7218 case $real_option in
7219 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7220 *) option=$real_option ;;
7221 esac
7222 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7223
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7225 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7226 if eval \${$as_acx_Woption+:} false; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229 CXXFLAGS="$option"
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232
7233 int
7234 main ()
7235 {
7236
7237 ;
7238 return 0;
7239 }
7240 _ACEOF
7241 if ac_fn_cxx_try_compile "$LINENO"; then :
7242 eval "$as_acx_Woption=yes"
7243 else
7244 eval "$as_acx_Woption=no"
7245 fi
7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247
7248 fi
7249 eval ac_res=\$$as_acx_Woption
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7251 $as_echo "$ac_res" >&6; }
7252 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7253 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7254 fi
7255 done
7256 CXXFLAGS="$save_CXXFLAGS"
7257 ac_ext=cpp
7258 ac_cpp='$CXXCPP $CPPFLAGS'
7259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7262
7263
7264 ac_ext=c
7265 ac_cpp='$CPP $CPPFLAGS'
7266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269
7270 c_strict_warn=
7271 save_CFLAGS="$CFLAGS"
7272 for real_option in -Wold-style-definition -Wc++-compat; do
7273 # Do the check with the no- prefix removed since gcc silently
7274 # accepts any -Wno-* option on purpose
7275 case $real_option in
7276 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7277 *) option=$real_option ;;
7278 esac
7279 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7280
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7282 $as_echo_n "checking whether $CC supports $option... " >&6; }
7283 if eval \${$as_acx_Woption+:} false; then :
7284 $as_echo_n "(cached) " >&6
7285 else
7286 CFLAGS="$option"
7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7289
7290 int
7291 main ()
7292 {
7293
7294 ;
7295 return 0;
7296 }
7297 _ACEOF
7298 if ac_fn_c_try_compile "$LINENO"; then :
7299 eval "$as_acx_Woption=yes"
7300 else
7301 eval "$as_acx_Woption=no"
7302 fi
7303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7304
7305 fi
7306 eval ac_res=\$$as_acx_Woption
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7308 $as_echo "$ac_res" >&6; }
7309 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7310 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7311 fi
7312 done
7313 CFLAGS="$save_CFLAGS"
7314 ac_ext=cpp
7315 ac_cpp='$CXXCPP $CPPFLAGS'
7316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7319
7320
7321 ac_ext=cpp
7322 ac_cpp='$CXXCPP $CPPFLAGS'
7323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7326
7327 # Do the check with the no- prefix removed from the warning options
7328 # since gcc silently accepts any -Wno-* option on purpose
7329 if test "$GXX" = yes; then :
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7331 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7332 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 save_CXXFLAGS="$CXXFLAGS"
7336 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339
7340 int
7341 main ()
7342 {
7343
7344 ;
7345 return 0;
7346 }
7347 _ACEOF
7348 if ac_fn_cxx_try_compile "$LINENO"; then :
7349 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7350 else
7351 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7352 fi
7353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7354 CXXFLAGS="$save_CXXFLAGS"
7355 fi
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7357 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7358 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7359 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7360 fi
7361
7362 fi
7363 ac_ext=cpp
7364 ac_cpp='$CXXCPP $CPPFLAGS'
7365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7368
7369
7370 ac_ext=cpp
7371 ac_cpp='$CXXCPP $CPPFLAGS'
7372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7375
7376 # Check whether --enable-werror-always was given.
7377 if test "${enable_werror_always+set}" = set; then :
7378 enableval=$enable_werror_always;
7379 else
7380 enable_werror_always=no
7381 fi
7382
7383 if test $enable_werror_always = yes; then :
7384 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7385 fi
7386
7387 ac_ext=cpp
7388 ac_cpp='$CXXCPP $CPPFLAGS'
7389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7392
7393
7394
7395 # The above macros do nothing if the compiler is not GCC. However, the
7396 # Makefile has more goo to add other flags, so these variables are used
7397 # to enable warnings only for GCC.
7398 warn_cflags=
7399 warn_cxxflags=
7400 if test "x$GCC" = "xyes"; then
7401 warn_cflags='$(GCC_WARN_CFLAGS)'
7402 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7403 fi
7404
7405
7406
7407 # Disable exceptions and RTTI if building with g++
7408 ac_ext=c
7409 ac_cpp='$CPP $CPPFLAGS'
7410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7413
7414 noexception_flags=
7415 save_CFLAGS="$CFLAGS"
7416 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7417 # Do the check with the no- prefix removed since gcc silently
7418 # accepts any -Wno-* option on purpose
7419 case $real_option in
7420 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7421 *) option=$real_option ;;
7422 esac
7423 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7424
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7426 $as_echo_n "checking whether $CC supports $option... " >&6; }
7427 if eval \${$as_acx_Woption+:} false; then :
7428 $as_echo_n "(cached) " >&6
7429 else
7430 CFLAGS="$option"
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433
7434 int
7435 main ()
7436 {
7437
7438 ;
7439 return 0;
7440 }
7441 _ACEOF
7442 if ac_fn_c_try_compile "$LINENO"; then :
7443 eval "$as_acx_Woption=yes"
7444 else
7445 eval "$as_acx_Woption=no"
7446 fi
7447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7448
7449 fi
7450 eval ac_res=\$$as_acx_Woption
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7452 $as_echo "$ac_res" >&6; }
7453 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7454 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7455 fi
7456 done
7457 CFLAGS="$save_CFLAGS"
7458 ac_ext=cpp
7459 ac_cpp='$CXXCPP $CPPFLAGS'
7460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7463
7464
7465
7466 # Enable expensive internal checks
7467 is_release=
7468 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7469 is_release=yes
7470 fi
7471
7472 # Check whether --enable-checking was given.
7473 if test "${enable_checking+set}" = set; then :
7474 enableval=$enable_checking; ac_checking_flags="${enableval}"
7475 else
7476
7477 # Determine the default checks.
7478 if test x$is_release = x ; then
7479 ac_checking_flags=yes,extra
7480 else
7481 ac_checking_flags=release
7482 fi
7483 fi
7484
7485 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7486 for check in release $ac_checking_flags
7487 do
7488 case $check in
7489 # these set all the flags to specific states
7490 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7491 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7492 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7493 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7494 ac_tree_checking=1 ; ac_valgrind_checking= ;
7495 ac_types_checking=1 ;;
7496 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7497 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7498 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7499 ac_rtlflag_checking= ; ac_runtime_checking= ;
7500 ac_tree_checking= ; ac_valgrind_checking= ;
7501 ac_types_checking= ;;
7502 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7503 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7504 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7505 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7506 ac_tree_checking=1 ; ac_valgrind_checking= ;
7507 ac_types_checking=1 ;;
7508 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7509 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7510 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7511 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7512 ac_tree_checking= ; ac_valgrind_checking= ;
7513 ac_types_checking= ;;
7514 # these enable particular checks
7515 assert) ac_assert_checking=1 ;;
7516 df) ac_df_checking=1 ;;
7517 extra) ac_extra_checking=1 ;;
7518 fold) ac_fold_checking=1 ;;
7519 gc) ac_gc_checking=1 ;;
7520 gcac) ac_gc_always_collect=1 ;;
7521 gimple) ac_gimple_checking=1 ;;
7522 misc) ac_checking=1 ;;
7523 rtl) ac_rtl_checking=1 ;;
7524 rtlflag) ac_rtlflag_checking=1 ;;
7525 runtime) ac_runtime_checking=1 ;;
7526 tree) ac_tree_checking=1 ;;
7527 types) ac_types_checking=1 ;;
7528 valgrind) ac_valgrind_checking=1 ;;
7529 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7530 esac
7531 done
7532 IFS="$ac_save_IFS"
7533
7534 nocommon_flag=""
7535 if test x$ac_checking != x ; then
7536
7537 $as_echo "#define CHECKING_P 1" >>confdefs.h
7538
7539 nocommon_flag=-fno-common
7540 else
7541 $as_echo "#define CHECKING_P 0" >>confdefs.h
7542
7543 fi
7544
7545 if test x$ac_extra_checking != x ; then
7546
7547 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7548
7549 else
7550 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7551
7552 fi
7553 if test x$ac_df_checking != x ; then
7554
7555 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7556
7557 fi
7558 if test x$ac_assert_checking != x ; then
7559
7560 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7561
7562 fi
7563 if test x$ac_gimple_checking != x ; then
7564
7565 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7566
7567 fi
7568
7569 if test x$ac_runtime_checking != x ; then
7570
7571 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7572
7573 fi
7574 if test x$ac_tree_checking != x ; then
7575
7576 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7577
7578 TREECHECKING=yes
7579 fi
7580 if test x$ac_types_checking != x ; then
7581
7582 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7583
7584 fi
7585
7586 if test x$ac_rtl_checking != x ; then
7587
7588 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7589
7590 fi
7591 if test x$ac_rtlflag_checking != x ; then
7592
7593 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7594
7595 fi
7596 if test x$ac_gc_checking != x ; then
7597
7598 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7599
7600 fi
7601 if test x$ac_gc_always_collect != x ; then
7602
7603 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7604
7605 fi
7606 if test x$ac_fold_checking != x ; then
7607
7608 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7609
7610 fi
7611 valgrind_path_defines=
7612 valgrind_command=
7613
7614 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7615 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7616 have_valgrind_h=yes
7617 else
7618 have_valgrind_h=no
7619 fi
7620
7621
7622
7623 # It is certainly possible that there's valgrind but no valgrind.h.
7624 # GCC relies on making annotations so we must have both.
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7626 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7629 #include <valgrind/memcheck.h>
7630 #ifndef VALGRIND_DISCARD
7631 #error VALGRIND_DISCARD not defined
7632 #endif
7633 _ACEOF
7634 if ac_fn_cxx_try_cpp "$LINENO"; then :
7635 gcc_cv_header_valgrind_memcheck_h=yes
7636 else
7637 gcc_cv_header_valgrind_memcheck_h=no
7638 fi
7639 rm -f conftest.err conftest.i conftest.$ac_ext
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7641 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7643 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7646 #include <memcheck.h>
7647 #ifndef VALGRIND_DISCARD
7648 #error VALGRIND_DISCARD not defined
7649 #endif
7650 _ACEOF
7651 if ac_fn_cxx_try_cpp "$LINENO"; then :
7652 gcc_cv_header_memcheck_h=yes
7653 else
7654 gcc_cv_header_memcheck_h=no
7655 fi
7656 rm -f conftest.err conftest.i conftest.$ac_ext
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7658 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7659 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7660
7661 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7662
7663 fi
7664 if test $gcc_cv_header_memcheck_h = yes; then
7665
7666 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7667
7668 fi
7669
7670 if test x$ac_valgrind_checking != x ; then
7671
7672 # Prepare PATH_SEPARATOR.
7673 # The user is always right.
7674 if test "${PATH_SEPARATOR+set}" != set; then
7675 echo "#! /bin/sh" >conf$$.sh
7676 echo "exit 0" >>conf$$.sh
7677 chmod +x conf$$.sh
7678 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7679 PATH_SEPARATOR=';'
7680 else
7681 PATH_SEPARATOR=:
7682 fi
7683 rm -f conf$$.sh
7684 fi
7685
7686 # Find out how to test for executable files. Don't use a zero-byte file,
7687 # as systems may use methods other than mode bits to determine executability.
7688 cat >conf$$.file <<_ASEOF
7689 #! /bin/sh
7690 exit 0
7691 _ASEOF
7692 chmod +x conf$$.file
7693 if test -x conf$$.file >/dev/null 2>&1; then
7694 ac_executable_p="test -x"
7695 else
7696 ac_executable_p="test -f"
7697 fi
7698 rm -f conf$$.file
7699
7700 # Extract the first word of "valgrind", so it can be a program name with args.
7701 set dummy valgrind; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if ${ac_cv_path_valgrind_path+:} false; then :
7705 $as_echo_n "(cached) " >&6
7706 else
7707 case "$valgrind_path" in
7708 [\\/]* | ?:[\\/]*)
7709 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7710 ;;
7711 *)
7712 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7713 for ac_dir in $PATH; do
7714 IFS="$ac_save_IFS"
7715 test -z "$ac_dir" && ac_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7718 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7719 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7720 break 2
7721 fi
7722 fi
7723 done
7724 done
7725 IFS="$ac_save_IFS"
7726 ;;
7727 esac
7728 fi
7729 valgrind_path="$ac_cv_path_valgrind_path"
7730 if test -n "$valgrind_path"; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7732 $as_echo "$valgrind_path" >&6; }
7733 else
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7736 fi
7737
7738 if test "x$valgrind_path" = "x" \
7739 || (test $have_valgrind_h = no \
7740 && test $gcc_cv_header_memcheck_h = no \
7741 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7742 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7743 fi
7744 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7745 valgrind_command="$valgrind_path -q"
7746
7747 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7748
7749 fi
7750
7751
7752
7753 # Enable code coverage collection
7754 # Check whether --enable-coverage was given.
7755 if test "${enable_coverage+set}" = set; then :
7756 enableval=$enable_coverage; case "${enableval}" in
7757 yes|noopt)
7758 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7759 ;;
7760 opt)
7761 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7762 ;;
7763 no)
7764 # a.k.a. --disable-coverage
7765 coverage_flags=""
7766 ;;
7767 *)
7768 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7769 ;;
7770 esac
7771 else
7772 coverage_flags=""
7773 fi
7774
7775
7776
7777 # Check whether --enable-gather-detailed-mem-stats was given.
7778 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7779 enableval=$enable_gather_detailed_mem_stats;
7780 else
7781 enable_gather_detailed_mem_stats=no
7782 fi
7783
7784 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7785
7786 cat >>confdefs.h <<_ACEOF
7787 #define GATHER_STATISTICS $gather_stats
7788 _ACEOF
7789
7790
7791 # Check whether --enable-valgrind-annotations was given.
7792 if test "${enable_valgrind_annotations+set}" = set; then :
7793 enableval=$enable_valgrind_annotations;
7794 else
7795 enable_valgrind_annotations=no
7796 fi
7797
7798 if test x$enable_valgrind_annotations != xno \
7799 || test x$ac_valgrind_checking != x; then
7800 if (test $have_valgrind_h = no \
7801 && test $gcc_cv_header_memcheck_h = no \
7802 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7803 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7804 fi
7805
7806 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7807
7808 fi
7809
7810 # -------------------------------
7811 # Miscenalleous configure options
7812 # -------------------------------
7813
7814 # Determine whether or not multilibs are enabled.
7815 # Check whether --enable-multilib was given.
7816 if test "${enable_multilib+set}" = set; then :
7817 enableval=$enable_multilib;
7818 else
7819 enable_multilib=yes
7820 fi
7821
7822
7823
7824 # Determine whether or not multiarch is enabled.
7825 # Check whether --enable-multiarch was given.
7826 if test "${enable_multiarch+set}" = set; then :
7827 enableval=$enable_multiarch; case "${enableval}" in
7828 yes|no|auto) enable_multiarch=$enableval;;
7829 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7830 esac
7831 else
7832 enable_multiarch=auto
7833 fi
7834
7835 if test x${enable_multiarch} = xauto; then
7836 if test x${with_native_system_header_dir} != x; then
7837 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7838 enable_multiarch=no
7839 fi
7840 if test x$host != x$target && test "x$with_sysroot" = x; then
7841 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7842 enable_multiarch=no
7843 fi
7844 fi
7845 if test x${enable_multiarch} = xyes; then
7846 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7847
7848 fi
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7850 $as_echo_n "checking for multiarch configuration... " >&6; }
7851
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7853 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7854
7855 # needed for setting the multiarch name for soft-float/hard-float ABIs
7856
7857
7858
7859 # default stack clash protection guard size as power of twos in bytes.
7860 # Please keep these in sync with params.def.
7861 stk_clash_min=12
7862 stk_clash_max=30
7863
7864 # Keep the default value when the option is not used to 0, this allows us to
7865 # distinguish between the cases where the user specifially set a value via
7866 # configure and when the normal default value is used.
7867
7868 # Check whether --with-stack-clash-protection-guard-size was given.
7869 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7870 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7871 else
7872 DEFAULT_STK_CLASH_GUARD_SIZE=0
7873 fi
7874
7875 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7876 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7877 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7878 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
7879 fi
7880
7881
7882 cat >>confdefs.h <<_ACEOF
7883 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7884 _ACEOF
7885
7886
7887 # Enable __cxa_atexit for C++.
7888 # Check whether --enable-__cxa_atexit was given.
7889 if test "${enable___cxa_atexit+set}" = set; then :
7890 enableval=$enable___cxa_atexit;
7891 fi
7892
7893
7894 # Enable C extension for decimal float if target supports it.
7895
7896 # Check whether --enable-decimal-float was given.
7897 if test "${enable_decimal_float+set}" = set; then :
7898 enableval=$enable_decimal_float;
7899 case $enable_decimal_float in
7900 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7901 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7902 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7903 esac
7904
7905 else
7906
7907 case $target in
7908 aarch64* | \
7909 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7910 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7911 i?86*-*-mingw* | x86_64*-*-mingw* | \
7912 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7913 enable_decimal_float=yes
7914 ;;
7915 *)
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7917 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7918 enable_decimal_float=no
7919 ;;
7920 esac
7921
7922 fi
7923
7924
7925 # x86's use BID format instead of DPD
7926 case x$enable_decimal_float in
7927 xyes)
7928 case $target in
7929 aarch64* | i?86*-*-* | x86_64*-*-*)
7930 enable_decimal_float=bid
7931 ;;
7932 *)
7933 enable_decimal_float=dpd
7934 ;;
7935 esac
7936 default_decimal_float=$enable_decimal_float
7937 ;;
7938 xno)
7939 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7940 # dependency on libdecnumber.
7941 default_decimal_float=dpd
7942 ;;
7943 esac
7944
7945
7946
7947
7948 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7949
7950 cat >>confdefs.h <<_ACEOF
7951 #define ENABLE_DECIMAL_FLOAT $dfp
7952 _ACEOF
7953
7954
7955 # Use default_decimal_float for dependency.
7956 enable_decimal_float=$default_decimal_float
7957
7958 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7959
7960 cat >>confdefs.h <<_ACEOF
7961 #define ENABLE_DECIMAL_BID_FORMAT $bid
7962 _ACEOF
7963
7964
7965 # Enable C extension for fixed-point arithmetic.
7966 # Check whether --enable-fixed-point was given.
7967 if test "${enable_fixed_point+set}" = set; then :
7968 enableval=$enable_fixed_point;
7969 else
7970
7971 case $target in
7972 arm*)
7973 enable_fixed_point=yes
7974 ;;
7975
7976 mips*-*-*)
7977 enable_fixed_point=yes
7978 ;;
7979 loongarch*-*-*)
7980 enable_fixed_point=yes
7981 ;;
7982 *)
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7984 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7985 enable_fixed_point=no
7986 ;;
7987 esac
7988
7989 fi
7990
7991
7992
7993 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7994
7995 cat >>confdefs.h <<_ACEOF
7996 #define ENABLE_FIXED_POINT $fixedpoint
7997 _ACEOF
7998
7999
8000 # Enable threads
8001 # Pass with no value to take the default
8002 # Pass with a value to specify a thread package
8003 # Check whether --enable-threads was given.
8004 if test "${enable_threads+set}" = set; then :
8005 enableval=$enable_threads;
8006 else
8007 enable_threads=''
8008 fi
8009
8010
8011 # Check whether --enable-tls was given.
8012 if test "${enable_tls+set}" = set; then :
8013 enableval=$enable_tls;
8014 case $enable_tls in
8015 yes | no) ;;
8016 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8017 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8018 esac
8019
8020 else
8021 enable_tls=''
8022 fi
8023
8024
8025 # Check whether --enable-vtable-verify was given.
8026 if test "${enable_vtable_verify+set}" = set; then :
8027 enableval=$enable_vtable_verify;
8028 else
8029 enable_vtable_verify=no
8030 fi
8031
8032 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8033
8034 cat >>confdefs.h <<_ACEOF
8035 #define ENABLE_VTABLE_VERIFY $vtable_verify
8036 _ACEOF
8037
8038
8039 # Check whether --enable-analyzer was given.
8040 if test "${enable_analyzer+set}" = set; then :
8041 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8042 analyzer=0
8043 else
8044 analyzer=1
8045 fi
8046 else
8047 analyzer=1
8048 fi
8049
8050
8051 cat >>confdefs.h <<_ACEOF
8052 #define ENABLE_ANALYZER $analyzer
8053 _ACEOF
8054
8055
8056 # Check whether --enable-objc-gc was given.
8057 if test "${enable_objc_gc+set}" = set; then :
8058 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8059 objc_boehm_gc=''
8060 else
8061 objc_boehm_gc=1
8062 fi
8063 else
8064 objc_boehm_gc=''
8065 fi
8066
8067
8068
8069 # Check whether --with-dwarf2 was given.
8070 if test "${with_dwarf2+set}" = set; then :
8071 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8072 else
8073 dwarf2=no
8074 fi
8075
8076
8077 # Check whether --enable-shared was given.
8078 if test "${enable_shared+set}" = set; then :
8079 enableval=$enable_shared;
8080 case $enable_shared in
8081 yes | no) ;;
8082 *)
8083 enable_shared=no
8084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8085 for pkg in $enableval; do
8086 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8087 enable_shared=yes
8088 fi
8089 done
8090 IFS="$ac_save_ifs"
8091 ;;
8092 esac
8093
8094 else
8095 enable_shared=yes
8096 fi
8097
8098
8099
8100 # Check whether --enable-gcov was given.
8101 if test "${enable_gcov+set}" = set; then :
8102 enableval=$enable_gcov;
8103 else
8104 case $target in
8105 bpf-*-*)
8106 enable_gcov=no
8107 ;;
8108 *)
8109 enable_gcov=yes
8110 ;;
8111 esac
8112 fi
8113
8114
8115
8116
8117
8118 # Check whether --with-specs was given.
8119 if test "${with_specs+set}" = set; then :
8120 withval=$with_specs; CONFIGURE_SPECS=$withval
8121 else
8122 CONFIGURE_SPECS=
8123
8124 fi
8125
8126
8127
8128
8129
8130 # Check whether --with-pkgversion was given.
8131 if test "${with_pkgversion+set}" = set; then :
8132 withval=$with_pkgversion; case "$withval" in
8133 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8134 no) PKGVERSION= ;;
8135 *) PKGVERSION="($withval) " ;;
8136 esac
8137 else
8138 PKGVERSION="(GCC) "
8139
8140 fi
8141
8142
8143
8144
8145
8146 # Check whether --with-bugurl was given.
8147 if test "${with_bugurl+set}" = set; then :
8148 withval=$with_bugurl; case "$withval" in
8149 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8150 no) BUGURL=
8151 ;;
8152 *) BUGURL="$withval"
8153 ;;
8154 esac
8155 else
8156 BUGURL="https://gcc.gnu.org/bugs/"
8157
8158 fi
8159
8160 case ${BUGURL} in
8161 "")
8162 REPORT_BUGS_TO=
8163 REPORT_BUGS_TEXI=
8164 ;;
8165 *)
8166 REPORT_BUGS_TO="<$BUGURL>"
8167 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8168 ;;
8169 esac;
8170
8171
8172
8173
8174 # Allow overriding the default URL for documentation
8175
8176 # Check whether --with-documentation-root-url was given.
8177 if test "${with_documentation_root_url+set}" = set; then :
8178 withval=$with_documentation_root_url; case "$withval" in
8179 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8180 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8181 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8182 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8183 esac
8184 else
8185 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8186
8187 fi
8188
8189
8190 cat >>confdefs.h <<_ACEOF
8191 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8192 _ACEOF
8193
8194
8195 # Allow overriding the default URL for GCC changes
8196
8197 # Check whether --with-changes-root-url was given.
8198 if test "${with_changes_root_url+set}" = set; then :
8199 withval=$with_changes_root_url; case "$withval" in
8200 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8201 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8202 */) CHANGES_ROOT_URL="$withval" ;;
8203 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8204 esac
8205 else
8206 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8207
8208 fi
8209
8210
8211 cat >>confdefs.h <<_ACEOF
8212 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8213 _ACEOF
8214
8215
8216 # Sanity check enable_languages in case someone does not run the toplevel
8217 # configure # script.
8218 # Check whether --enable-languages was given.
8219 if test "${enable_languages+set}" = set; then :
8220 enableval=$enable_languages; case ,${enable_languages}, in
8221 ,,|,yes,)
8222 # go safe -- we cannot be much sure without the toplevel
8223 # configure's
8224 # analysis of which target libs are present and usable
8225 enable_languages=c
8226 ;;
8227 *,all,*)
8228 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8229 ;;
8230 *,c,*)
8231 ;;
8232 *)
8233 enable_languages=c,${enable_languages}
8234 ;;
8235 esac
8236 else
8237 enable_languages=c
8238 fi
8239
8240
8241 # If top-level libada has been disabled, then wire in install-gnatlib
8242 # invocation with `make install', so that one can build and install
8243 # the library manually with `make -C gcc all gnatlib gnattools install'.
8244 if test x"$enable_libada" = xno; then
8245 gnat_install_lib=gnat-install-lib
8246 else
8247 gnat_install_lib=
8248 fi
8249
8250
8251 if test x"$enable_as_accelerator_for" != x; then
8252
8253 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8254
8255 enable_as_accelerator=yes
8256 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8257 program_transform_name=`echo $program_transform_name | sed $sedscript`
8258 accel_dir_suffix=/accel/${target_noncanonical}
8259 real_target_noncanonical=${enable_as_accelerator_for}
8260 fi
8261
8262
8263
8264
8265 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8266 tgt=`echo $tgt | sed 's/=.*//'`
8267
8268 enable_offloading=1
8269 case "$tgt" in
8270 amdgcn*)
8271 omp_device_property=omp-device-properties-gcn
8272 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8273 ;;
8274 nvptx*)
8275 omp_device_property=omp-device-properties-nvptx
8276 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8277 ;;
8278 *)
8279 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8280 ;;
8281 esac
8282 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8283 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8284
8285 if test x"$offload_targets" = x; then
8286 offload_targets=$tgt
8287 else
8288 offload_targets="$offload_targets,$tgt"
8289 fi
8290 done
8291
8292
8293
8294
8295 cat >>confdefs.h <<_ACEOF
8296 #define OFFLOAD_TARGETS "$offload_targets"
8297 _ACEOF
8298
8299 if test x"$enable_offloading" != x; then
8300
8301 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8302
8303 else
8304
8305 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8306
8307 fi
8308
8309 if test "x$enable_offload_defaulted" = xyes; then
8310
8311 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8312
8313 fi
8314
8315
8316 # Check whether --with-multilib-list was given.
8317 if test "${with_multilib_list+set}" = set; then :
8318 withval=$with_multilib_list; :
8319 else
8320 with_multilib_list=default
8321 fi
8322
8323
8324
8325 # Check whether --with-multilib-generator was given.
8326 if test "${with_multilib_generator+set}" = set; then :
8327 withval=$with_multilib_generator; :
8328 else
8329 with_multilib_generator=default
8330 fi
8331
8332
8333 # -------------------------
8334 # Checks for other programs
8335 # -------------------------
8336
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8338 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8339 set x ${MAKE-make}
8340 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8341 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8342 $as_echo_n "(cached) " >&6
8343 else
8344 cat >conftest.make <<\_ACEOF
8345 SHELL = /bin/sh
8346 all:
8347 @echo '@@@%%%=$(MAKE)=@@@%%%'
8348 _ACEOF
8349 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8350 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8351 *@@@%%%=?*=@@@%%%*)
8352 eval ac_cv_prog_make_${ac_make}_set=yes;;
8353 *)
8354 eval ac_cv_prog_make_${ac_make}_set=no;;
8355 esac
8356 rm -f conftest.make
8357 fi
8358 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8360 $as_echo "yes" >&6; }
8361 SET_MAKE=
8362 else
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8365 SET_MAKE="MAKE=${MAKE-make}"
8366 fi
8367
8368
8369 # Find some useful tools
8370 for ac_prog in gawk mawk nawk awk
8371 do
8372 # Extract the first word of "$ac_prog", so it can be a program name with args.
8373 set dummy $ac_prog; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if ${ac_cv_prog_AWK+:} false; then :
8377 $as_echo_n "(cached) " >&6
8378 else
8379 if test -n "$AWK"; then
8380 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8381 else
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383 for as_dir in $PATH
8384 do
8385 IFS=$as_save_IFS
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8389 ac_cv_prog_AWK="$ac_prog"
8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 break 2
8392 fi
8393 done
8394 done
8395 IFS=$as_save_IFS
8396
8397 fi
8398 fi
8399 AWK=$ac_cv_prog_AWK
8400 if test -n "$AWK"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8402 $as_echo "$AWK" >&6; }
8403 else
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8406 fi
8407
8408
8409 test -n "$AWK" && break
8410 done
8411
8412 # We need awk to create options.cc and options.h.
8413 # Bail out if it's missing.
8414 case ${AWK} in
8415 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8416 esac
8417
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8419 $as_echo_n "checking whether ln -s works... " >&6; }
8420 if ${gcc_cv_prog_LN_S+:} false; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423 rm -f conftestdata_t
8424 echo >conftestdata_f
8425 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8426 then
8427 gcc_cv_prog_LN_S="ln -s"
8428 else
8429 if ln conftestdata_f conftestdata_t 2>/dev/null
8430 then
8431 gcc_cv_prog_LN_S=ln
8432 else
8433 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8434 then
8435 gcc_cv_prog_LN_S="cp -p"
8436 else
8437 gcc_cv_prog_LN_S=cp
8438 fi
8439 fi
8440 fi
8441 rm -f conftestdata_f conftestdata_t
8442
8443 fi
8444 LN_S="$gcc_cv_prog_LN_S"
8445 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8447 $as_echo "yes" >&6; }
8448 else
8449 if test "$gcc_cv_prog_LN_S" = "ln"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8451 $as_echo "no, using ln" >&6; }
8452 else
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8454 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8455 fi
8456 fi
8457
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8459 $as_echo_n "checking whether ln works... " >&6; }
8460 if ${acx_cv_prog_LN+:} false; then :
8461 $as_echo_n "(cached) " >&6
8462 else
8463 rm -f conftestdata_t
8464 echo >conftestdata_f
8465 if ln conftestdata_f conftestdata_t 2>/dev/null
8466 then
8467 acx_cv_prog_LN=ln
8468 else
8469 acx_cv_prog_LN=no
8470 fi
8471 rm -f conftestdata_f conftestdata_t
8472
8473 fi
8474 if test $acx_cv_prog_LN = no; then
8475 LN="$LN_S"
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8477 $as_echo "no, using $LN" >&6; }
8478 else
8479 LN="$acx_cv_prog_LN"
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8481 $as_echo "yes" >&6; }
8482 fi
8483
8484 if test -n "$ac_tool_prefix"; then
8485 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8486 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if ${ac_cv_prog_RANLIB+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 if test -n "$RANLIB"; then
8493 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8494 else
8495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 for as_dir in $PATH
8497 do
8498 IFS=$as_save_IFS
8499 test -z "$as_dir" && as_dir=.
8500 for ac_exec_ext in '' $ac_executable_extensions; do
8501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8502 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8504 break 2
8505 fi
8506 done
8507 done
8508 IFS=$as_save_IFS
8509
8510 fi
8511 fi
8512 RANLIB=$ac_cv_prog_RANLIB
8513 if test -n "$RANLIB"; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8515 $as_echo "$RANLIB" >&6; }
8516 else
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8519 fi
8520
8521
8522 fi
8523 if test -z "$ac_cv_prog_RANLIB"; then
8524 ac_ct_RANLIB=$RANLIB
8525 # Extract the first word of "ranlib", so it can be a program name with args.
8526 set dummy ranlib; ac_word=$2
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8528 $as_echo_n "checking for $ac_word... " >&6; }
8529 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8530 $as_echo_n "(cached) " >&6
8531 else
8532 if test -n "$ac_ct_RANLIB"; then
8533 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8534 else
8535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536 for as_dir in $PATH
8537 do
8538 IFS=$as_save_IFS
8539 test -z "$as_dir" && as_dir=.
8540 for ac_exec_ext in '' $ac_executable_extensions; do
8541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8542 ac_cv_prog_ac_ct_RANLIB="ranlib"
8543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8544 break 2
8545 fi
8546 done
8547 done
8548 IFS=$as_save_IFS
8549
8550 fi
8551 fi
8552 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8553 if test -n "$ac_ct_RANLIB"; then
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8555 $as_echo "$ac_ct_RANLIB" >&6; }
8556 else
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558 $as_echo "no" >&6; }
8559 fi
8560
8561 if test "x$ac_ct_RANLIB" = x; then
8562 RANLIB=":"
8563 else
8564 case $cross_compiling:$ac_tool_warned in
8565 yes:)
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8568 ac_tool_warned=yes ;;
8569 esac
8570 RANLIB=$ac_ct_RANLIB
8571 fi
8572 else
8573 RANLIB="$ac_cv_prog_RANLIB"
8574 fi
8575
8576 ranlib_flags=""
8577
8578
8579 # Find a good install program. We prefer a C program (faster),
8580 # so one script is as good as another. But avoid the broken or
8581 # incompatible versions:
8582 # SysV /etc/install, /usr/sbin/install
8583 # SunOS /usr/etc/install
8584 # IRIX /sbin/install
8585 # AIX /bin/install
8586 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8587 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8588 # ./install, which can be erroneously created by make from ./install.sh.
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8590 $as_echo_n "checking for a BSD compatible install... " >&6; }
8591 if test -z "$INSTALL"; then
8592 if ${ac_cv_path_install+:} false; then :
8593 $as_echo_n "(cached) " >&6
8594 else
8595 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8596 for ac_dir in $PATH; do
8597 # Account for people who put trailing slashes in PATH elements.
8598 case "$ac_dir/" in
8599 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8600 *)
8601 # OSF1 and SCO ODT 3.0 have their own names for install.
8602 for ac_prog in ginstall scoinst install; do
8603 if test -f $ac_dir/$ac_prog; then
8604 if test $ac_prog = install &&
8605 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8606 # AIX install. It has an incompatible calling convention.
8607 # OSF/1 installbsd also uses dspmsg, but is usable.
8608 :
8609 else
8610 ac_cv_path_install="$ac_dir/$ac_prog -c"
8611 break 2
8612 fi
8613 fi
8614 done
8615 ;;
8616 esac
8617 done
8618 IFS="$ac_save_IFS"
8619
8620 fi
8621 if test "${ac_cv_path_install+set}" = set; then
8622 INSTALL="$ac_cv_path_install"
8623 else
8624 # As a last resort, use the slow shell script. We don't cache a
8625 # path for INSTALL within a source directory, because that will
8626 # break other packages using the cache if that directory is
8627 # removed, or if the path is relative.
8628 INSTALL="$ac_install_sh"
8629 fi
8630 fi
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8632 $as_echo "$INSTALL" >&6; }
8633
8634 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8635 # It thinks the first close brace ends the variable substitution.
8636 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8637
8638 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8639
8640
8641 # See if cmp has --ignore-initial.
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8643 $as_echo_n "checking for cmp's capabilities... " >&6; }
8644 if ${gcc_cv_prog_cmp_skip+:} false; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 echo abfoo >t1
8648 echo cdfoo >t2
8649 gcc_cv_prog_cmp_skip=slowcompare
8650 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8651 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8652 :
8653 else
8654 gcc_cv_prog_cmp_skip=gnucompare
8655 fi
8656 fi
8657 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8658 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8659 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8660 :
8661 else
8662 gcc_cv_prog_cmp_skip=fastcompare
8663 fi
8664 fi
8665 fi
8666 rm t1 t2
8667
8668 fi
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8670 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8671 make_compare_target=$gcc_cv_prog_cmp_skip
8672
8673
8674
8675 # See if we have the mktemp command.
8676 # Extract the first word of "mktemp", so it can be a program name with args.
8677 set dummy mktemp; ac_word=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8681 $as_echo_n "(cached) " >&6
8682 else
8683 if test -n "$have_mktemp_command"; then
8684 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8685 else
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8688 do
8689 IFS=$as_save_IFS
8690 test -z "$as_dir" && as_dir=.
8691 for ac_exec_ext in '' $ac_executable_extensions; do
8692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8693 ac_cv_prog_have_mktemp_command="yes"
8694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695 break 2
8696 fi
8697 done
8698 done
8699 IFS=$as_save_IFS
8700
8701 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8702 fi
8703 fi
8704 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8705 if test -n "$have_mktemp_command"; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8707 $as_echo "$have_mktemp_command" >&6; }
8708 else
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 $as_echo "no" >&6; }
8711 fi
8712
8713
8714
8715 # See if makeinfo has been installed and is modern enough
8716 # that we can use it.
8717
8718 # Extract the first word of "makeinfo", so it can be a program name with args.
8719 set dummy makeinfo; ac_word=$2
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8721 $as_echo_n "checking for $ac_word... " >&6; }
8722 if ${ac_cv_prog_MAKEINFO+:} false; then :
8723 $as_echo_n "(cached) " >&6
8724 else
8725 if test -n "$MAKEINFO"; then
8726 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8727 else
8728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8729 for as_dir in $PATH
8730 do
8731 IFS=$as_save_IFS
8732 test -z "$as_dir" && as_dir=.
8733 for ac_exec_ext in '' $ac_executable_extensions; do
8734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8735 ac_cv_prog_MAKEINFO="makeinfo"
8736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8737 break 2
8738 fi
8739 done
8740 done
8741 IFS=$as_save_IFS
8742
8743 fi
8744 fi
8745 MAKEINFO=$ac_cv_prog_MAKEINFO
8746 if test -n "$MAKEINFO"; then
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8748 $as_echo "$MAKEINFO" >&6; }
8749 else
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751 $as_echo "no" >&6; }
8752 fi
8753
8754
8755 if test -n "$MAKEINFO"; then
8756 # Found it, now check the version.
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8758 $as_echo_n "checking for modern makeinfo... " >&6; }
8759 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8760 $as_echo_n "(cached) " >&6
8761 else
8762 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8763 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8764
8765 case $ac_prog_version in
8766 '') gcc_cv_prog_makeinfo_modern=no;;
8767 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8768 *) gcc_cv_prog_makeinfo_modern=no;;
8769 esac
8770
8771 fi
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8773 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8774 else
8775 gcc_cv_prog_makeinfo_modern=no
8776 fi
8777 if test $gcc_cv_prog_makeinfo_modern = no; then
8778 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8779 fi
8780
8781 if test $gcc_cv_prog_makeinfo_modern = no; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8783 *** Makeinfo is missing or too old.
8784 *** Info documentation will not be built." >&5
8785 $as_echo "$as_me: WARNING:
8786 *** Makeinfo is missing or too old.
8787 *** Info documentation will not be built." >&2;}
8788 BUILD_INFO=
8789 else
8790 BUILD_INFO=info
8791 fi
8792
8793
8794 # Is pod2man recent enough to regenerate manpages?
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8796 $as_echo_n "checking for recent Pod::Man... " >&6; }
8797 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8799 $as_echo "yes" >&6; }
8800 GENERATED_MANPAGES=generated-manpages
8801 else
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8804 GENERATED_MANPAGES=
8805 fi
8806
8807
8808 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8809
8810 # How about lex?
8811 for ac_prog in flex
8812 do
8813 # Extract the first word of "$ac_prog", so it can be a program name with args.
8814 set dummy $ac_prog; ac_word=$2
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8816 $as_echo_n "checking for $ac_word... " >&6; }
8817 if ${ac_cv_prog_FLEX+:} false; then :
8818 $as_echo_n "(cached) " >&6
8819 else
8820 if test -n "$FLEX"; then
8821 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8822 else
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in $PATH
8825 do
8826 IFS=$as_save_IFS
8827 test -z "$as_dir" && as_dir=.
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8830 ac_cv_prog_FLEX="$ac_prog"
8831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 break 2
8833 fi
8834 done
8835 done
8836 IFS=$as_save_IFS
8837
8838 fi
8839 fi
8840 FLEX=$ac_cv_prog_FLEX
8841 if test -n "$FLEX"; then
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8843 $as_echo "$FLEX" >&6; }
8844 else
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846 $as_echo "no" >&6; }
8847 fi
8848
8849
8850 test -n "$FLEX" && break
8851 done
8852 test -n "$FLEX" || FLEX="$MISSING flex"
8853
8854
8855 # Bison?
8856 for ac_prog in bison
8857 do
8858 # Extract the first word of "$ac_prog", so it can be a program name with args.
8859 set dummy $ac_prog; ac_word=$2
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if ${ac_cv_prog_BISON+:} false; then :
8863 $as_echo_n "(cached) " >&6
8864 else
8865 if test -n "$BISON"; then
8866 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8867 else
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869 for as_dir in $PATH
8870 do
8871 IFS=$as_save_IFS
8872 test -z "$as_dir" && as_dir=.
8873 for ac_exec_ext in '' $ac_executable_extensions; do
8874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8875 ac_cv_prog_BISON="$ac_prog"
8876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8877 break 2
8878 fi
8879 done
8880 done
8881 IFS=$as_save_IFS
8882
8883 fi
8884 fi
8885 BISON=$ac_cv_prog_BISON
8886 if test -n "$BISON"; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8888 $as_echo "$BISON" >&6; }
8889 else
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891 $as_echo "no" >&6; }
8892 fi
8893
8894
8895 test -n "$BISON" && break
8896 done
8897 test -n "$BISON" || BISON="$MISSING bison"
8898
8899
8900 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8901 # check for build == host before using them.
8902
8903 # NM
8904 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8905 && test -d ../binutils ; then
8906 NM='${objdir}/../binutils/nm-new'
8907 else
8908 # Extract the first word of "nm", so it can be a program name with args.
8909 set dummy nm; ac_word=$2
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8911 $as_echo_n "checking for $ac_word... " >&6; }
8912 if ${ac_cv_prog_NM+:} false; then :
8913 $as_echo_n "(cached) " >&6
8914 else
8915 if test -n "$NM"; then
8916 ac_cv_prog_NM="$NM" # Let the user override the test.
8917 else
8918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8919 for as_dir in $PATH
8920 do
8921 IFS=$as_save_IFS
8922 test -z "$as_dir" && as_dir=.
8923 for ac_exec_ext in '' $ac_executable_extensions; do
8924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8925 ac_cv_prog_NM="nm"
8926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8927 break 2
8928 fi
8929 done
8930 done
8931 IFS=$as_save_IFS
8932
8933 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8934 fi
8935 fi
8936 NM=$ac_cv_prog_NM
8937 if test -n "$NM"; then
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8939 $as_echo "$NM" >&6; }
8940 else
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942 $as_echo "no" >&6; }
8943 fi
8944
8945
8946 fi
8947
8948 # AR
8949 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8950 && test -d ../binutils ; then
8951 AR='${objdir}/../binutils/ar'
8952 else
8953 # Extract the first word of "ar", so it can be a program name with args.
8954 set dummy ar; ac_word=$2
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8956 $as_echo_n "checking for $ac_word... " >&6; }
8957 if ${ac_cv_prog_AR+:} false; then :
8958 $as_echo_n "(cached) " >&6
8959 else
8960 if test -n "$AR"; then
8961 ac_cv_prog_AR="$AR" # Let the user override the test.
8962 else
8963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8964 for as_dir in $PATH
8965 do
8966 IFS=$as_save_IFS
8967 test -z "$as_dir" && as_dir=.
8968 for ac_exec_ext in '' $ac_executable_extensions; do
8969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8970 ac_cv_prog_AR="ar"
8971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8972 break 2
8973 fi
8974 done
8975 done
8976 IFS=$as_save_IFS
8977
8978 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8979 fi
8980 fi
8981 AR=$ac_cv_prog_AR
8982 if test -n "$AR"; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8984 $as_echo "$AR" >&6; }
8985 else
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8987 $as_echo "no" >&6; }
8988 fi
8989
8990
8991 fi
8992
8993 # The jit documentation looks better if built with sphinx, but can be
8994 # built with texinfo if sphinx is not available.
8995 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8996 # Extract the first word of "sphinx-build", so it can be a program name with args.
8997 set dummy sphinx-build; ac_word=$2
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8999 $as_echo_n "checking for $ac_word... " >&6; }
9000 if ${ac_cv_prog_doc_build_sys+:} false; then :
9001 $as_echo_n "(cached) " >&6
9002 else
9003 if test -n "$doc_build_sys"; then
9004 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9005 else
9006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007 for as_dir in $PATH
9008 do
9009 IFS=$as_save_IFS
9010 test -z "$as_dir" && as_dir=.
9011 for ac_exec_ext in '' $ac_executable_extensions; do
9012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9013 ac_cv_prog_doc_build_sys="sphinx"
9014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9015 break 2
9016 fi
9017 done
9018 done
9019 IFS=$as_save_IFS
9020
9021 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9022 fi
9023 fi
9024 doc_build_sys=$ac_cv_prog_doc_build_sys
9025 if test -n "$doc_build_sys"; then
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9027 $as_echo "$doc_build_sys" >&6; }
9028 else
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030 $as_echo "no" >&6; }
9031 fi
9032
9033
9034
9035 # --------------------
9036 # Checks for C headers
9037 # --------------------
9038
9039 # Need to reject headers which give warnings, so that the -Werror bootstrap
9040 # works later. *sigh* This needs to come before all header checks.
9041
9042 ac_c_preproc_warn_flag=yes
9043
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9045 $as_echo_n "checking for ANSI C header files... " >&6; }
9046 if ${ac_cv_header_stdc+:} false; then :
9047 $as_echo_n "(cached) " >&6
9048 else
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9051 #include <stdlib.h>
9052 #include <stdarg.h>
9053 #include <string.h>
9054 #include <float.h>
9055
9056 int
9057 main ()
9058 {
9059
9060 ;
9061 return 0;
9062 }
9063 _ACEOF
9064 if ac_fn_cxx_try_compile "$LINENO"; then :
9065 ac_cv_header_stdc=yes
9066 else
9067 ac_cv_header_stdc=no
9068 fi
9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070
9071 if test $ac_cv_header_stdc = yes; then
9072 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9075 #include <string.h>
9076
9077 _ACEOF
9078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9079 $EGREP "memchr" >/dev/null 2>&1; then :
9080
9081 else
9082 ac_cv_header_stdc=no
9083 fi
9084 rm -f conftest*
9085
9086 fi
9087
9088 if test $ac_cv_header_stdc = yes; then
9089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h. */
9092 #include <stdlib.h>
9093
9094 _ACEOF
9095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9096 $EGREP "free" >/dev/null 2>&1; then :
9097
9098 else
9099 ac_cv_header_stdc=no
9100 fi
9101 rm -f conftest*
9102
9103 fi
9104
9105 if test $ac_cv_header_stdc = yes; then
9106 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9107 if test "$cross_compiling" = yes; then :
9108 :
9109 else
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112 #include <ctype.h>
9113 #include <stdlib.h>
9114 #if ((' ' & 0x0FF) == 0x020)
9115 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9116 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9117 #else
9118 # define ISLOWER(c) \
9119 (('a' <= (c) && (c) <= 'i') \
9120 || ('j' <= (c) && (c) <= 'r') \
9121 || ('s' <= (c) && (c) <= 'z'))
9122 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9123 #endif
9124
9125 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9126 int
9127 main ()
9128 {
9129 int i;
9130 for (i = 0; i < 256; i++)
9131 if (XOR (islower (i), ISLOWER (i))
9132 || toupper (i) != TOUPPER (i))
9133 return 2;
9134 return 0;
9135 }
9136 _ACEOF
9137 if ac_fn_cxx_try_run "$LINENO"; then :
9138
9139 else
9140 ac_cv_header_stdc=no
9141 fi
9142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9143 conftest.$ac_objext conftest.beam conftest.$ac_ext
9144 fi
9145
9146 fi
9147 fi
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9149 $as_echo "$ac_cv_header_stdc" >&6; }
9150 if test $ac_cv_header_stdc = yes; then
9151
9152 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9153
9154 fi
9155
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9157 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9158 if ${ac_cv_header_time+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9163 #include <sys/types.h>
9164 #include <sys/time.h>
9165 #include <time.h>
9166
9167 int
9168 main ()
9169 {
9170 if ((struct tm *) 0)
9171 return 0;
9172 ;
9173 return 0;
9174 }
9175 _ACEOF
9176 if ac_fn_cxx_try_compile "$LINENO"; then :
9177 ac_cv_header_time=yes
9178 else
9179 ac_cv_header_time=no
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 fi
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9184 $as_echo "$ac_cv_header_time" >&6; }
9185 if test $ac_cv_header_time = yes; then
9186
9187 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9188
9189 fi
9190
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9192 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9193 if ${gcc_cv_header_string+:} false; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198 #include <string.h>
9199 #include <strings.h>
9200 int
9201 main ()
9202 {
9203
9204 ;
9205 return 0;
9206 }
9207 _ACEOF
9208 if ac_fn_cxx_try_compile "$LINENO"; then :
9209 gcc_cv_header_string=yes
9210 else
9211 gcc_cv_header_string=no
9212 fi
9213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9214 fi
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9216 $as_echo "$gcc_cv_header_string" >&6; }
9217 if test $gcc_cv_header_string = yes; then
9218
9219 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9220
9221 fi
9222
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9224 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9225 if ${ac_cv_header_sys_wait_h+:} false; then :
9226 $as_echo_n "(cached) " >&6
9227 else
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9230 #include <sys/types.h>
9231 #include <sys/wait.h>
9232 #ifndef WEXITSTATUS
9233 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9234 #endif
9235 #ifndef WIFEXITED
9236 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9237 #endif
9238
9239 int
9240 main ()
9241 {
9242 int s;
9243 wait (&s);
9244 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9245 ;
9246 return 0;
9247 }
9248 _ACEOF
9249 if ac_fn_cxx_try_compile "$LINENO"; then :
9250 ac_cv_header_sys_wait_h=yes
9251 else
9252 ac_cv_header_sys_wait_h=no
9253 fi
9254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9255 fi
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9257 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9258 if test $ac_cv_header_sys_wait_h = yes; then
9259
9260 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9261
9262 fi
9263
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9265 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9266 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9267 $as_echo_n "(cached) " >&6
9268 else
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9271 #include <sys/types.h>
9272 #include <termios.h>
9273 #ifdef TIOCGWINSZ
9274 yes
9275 #endif
9276
9277 _ACEOF
9278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9279 $EGREP "yes" >/dev/null 2>&1; then :
9280 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9281 else
9282 ac_cv_sys_tiocgwinsz_in_termios_h=no
9283 fi
9284 rm -f conftest*
9285
9286 fi
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9288 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9289
9290 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9292 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9293 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9298 #include <sys/types.h>
9299 #include <sys/ioctl.h>
9300 #ifdef TIOCGWINSZ
9301 yes
9302 #endif
9303
9304 _ACEOF
9305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9306 $EGREP "yes" >/dev/null 2>&1; then :
9307 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9308 else
9309 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9310 fi
9311 rm -f conftest*
9312
9313 fi
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9315 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9316
9317 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9318
9319 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9320
9321 fi
9322 fi
9323
9324 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9325 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9326 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9327 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9328 do :
9329 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9330 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9331 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9332 cat >>confdefs.h <<_ACEOF
9333 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9334 _ACEOF
9335
9336 fi
9337 done
9338
9339
9340 # Check for thread headers.
9341 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9342 if test "x$ac_cv_header_thread_h" = xyes; then :
9343 have_thread_h=yes
9344 else
9345 have_thread_h=
9346 fi
9347
9348 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9349 if test "x$ac_cv_header_pthread_h" = xyes; then :
9350 have_pthread_h=yes
9351 else
9352 have_pthread_h=
9353 fi
9354
9355
9356 # These tests can't be done till we know if we have limits.h.
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9358 $as_echo_n "checking for CHAR_BIT... " >&6; }
9359 if ${gcc_cv_decl_char_bit+:} false; then :
9360 $as_echo_n "(cached) " >&6
9361 else
9362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9363 /* end confdefs.h. */
9364 #ifdef HAVE_LIMITS_H
9365 #include <limits.h>
9366 #endif
9367 #ifdef CHAR_BIT
9368 found
9369 #endif
9370 _ACEOF
9371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9372 $EGREP "found" >/dev/null 2>&1; then :
9373 gcc_cv_decl_char_bit=yes
9374 else
9375 gcc_cv_decl_char_bit=no
9376 fi
9377 rm -f conftest*
9378
9379
9380 fi
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9382 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9383 if test $gcc_cv_decl_char_bit = no; then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9385 $as_echo_n "checking number of bits in a byte... " >&6; }
9386 if ${gcc_cv_c_nbby+:} false; then :
9387 $as_echo_n "(cached) " >&6
9388 else
9389 i=8
9390 gcc_cv_c_nbby=
9391 while test $i -lt 65; do
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9394
9395 int
9396 main ()
9397 {
9398 switch(0) {
9399 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9400 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9401 ; }
9402 ;
9403 return 0;
9404 }
9405 _ACEOF
9406 if ac_fn_cxx_try_compile "$LINENO"; then :
9407 gcc_cv_c_nbby=$i; break
9408 fi
9409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9410 i=`expr $i + 1`
9411 done
9412 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9413
9414 fi
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9416 $as_echo "$gcc_cv_c_nbby" >&6; }
9417 if test $gcc_cv_c_nbby = failed; then
9418 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9419 else
9420
9421 cat >>confdefs.h <<_ACEOF
9422 #define CHAR_BIT $gcc_cv_c_nbby
9423 _ACEOF
9424
9425 fi
9426 fi
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9428 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9429 if ${ac_cv_c_bigendian+:} false; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432 ac_cv_c_bigendian=unknown
9433 # See if we're dealing with a universal compiler.
9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h. */
9436 #ifndef __APPLE_CC__
9437 not a universal capable compiler
9438 #endif
9439 typedef int dummy;
9440
9441 _ACEOF
9442 if ac_fn_cxx_try_compile "$LINENO"; then :
9443
9444 # Check for potential -arch flags. It is not universal unless
9445 # there are at least two -arch flags with different values.
9446 ac_arch=
9447 ac_prev=
9448 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9449 if test -n "$ac_prev"; then
9450 case $ac_word in
9451 i?86 | x86_64 | ppc | ppc64)
9452 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9453 ac_arch=$ac_word
9454 else
9455 ac_cv_c_bigendian=universal
9456 break
9457 fi
9458 ;;
9459 esac
9460 ac_prev=
9461 elif test "x$ac_word" = "x-arch"; then
9462 ac_prev=arch
9463 fi
9464 done
9465 fi
9466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9467 if test $ac_cv_c_bigendian = unknown; then
9468 # See if sys/param.h defines the BYTE_ORDER macro.
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9471 #include <sys/types.h>
9472 #include <sys/param.h>
9473
9474 int
9475 main ()
9476 {
9477 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9478 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9479 && LITTLE_ENDIAN)
9480 bogus endian macros
9481 #endif
9482
9483 ;
9484 return 0;
9485 }
9486 _ACEOF
9487 if ac_fn_cxx_try_compile "$LINENO"; then :
9488 # It does; now see whether it defined to BIG_ENDIAN or not.
9489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9490 /* end confdefs.h. */
9491 #include <sys/types.h>
9492 #include <sys/param.h>
9493
9494 int
9495 main ()
9496 {
9497 #if BYTE_ORDER != BIG_ENDIAN
9498 not big endian
9499 #endif
9500
9501 ;
9502 return 0;
9503 }
9504 _ACEOF
9505 if ac_fn_cxx_try_compile "$LINENO"; then :
9506 ac_cv_c_bigendian=yes
9507 else
9508 ac_cv_c_bigendian=no
9509 fi
9510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9511 fi
9512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9513 fi
9514 if test $ac_cv_c_bigendian = unknown; then
9515 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517 /* end confdefs.h. */
9518 #include <limits.h>
9519
9520 int
9521 main ()
9522 {
9523 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9524 bogus endian macros
9525 #endif
9526
9527 ;
9528 return 0;
9529 }
9530 _ACEOF
9531 if ac_fn_cxx_try_compile "$LINENO"; then :
9532 # It does; now see whether it defined to _BIG_ENDIAN or not.
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9535 #include <limits.h>
9536
9537 int
9538 main ()
9539 {
9540 #ifndef _BIG_ENDIAN
9541 not big endian
9542 #endif
9543
9544 ;
9545 return 0;
9546 }
9547 _ACEOF
9548 if ac_fn_cxx_try_compile "$LINENO"; then :
9549 ac_cv_c_bigendian=yes
9550 else
9551 ac_cv_c_bigendian=no
9552 fi
9553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9554 fi
9555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9556 fi
9557 if test $ac_cv_c_bigendian = unknown; then
9558 # Compile a test program.
9559 if test "$cross_compiling" = yes; then :
9560 # Try to guess by grepping values from an object file.
9561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9562 /* end confdefs.h. */
9563 short int ascii_mm[] =
9564 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9565 short int ascii_ii[] =
9566 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9567 int use_ascii (int i) {
9568 return ascii_mm[i] + ascii_ii[i];
9569 }
9570 short int ebcdic_ii[] =
9571 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9572 short int ebcdic_mm[] =
9573 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9574 int use_ebcdic (int i) {
9575 return ebcdic_mm[i] + ebcdic_ii[i];
9576 }
9577 extern int foo;
9578
9579 int
9580 main ()
9581 {
9582 return use_ascii (foo) == use_ebcdic (foo);
9583 ;
9584 return 0;
9585 }
9586 _ACEOF
9587 if ac_fn_cxx_try_compile "$LINENO"; then :
9588 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9589 ac_cv_c_bigendian=yes
9590 fi
9591 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9592 if test "$ac_cv_c_bigendian" = unknown; then
9593 ac_cv_c_bigendian=no
9594 else
9595 # finding both strings is unlikely to happen, but who knows?
9596 ac_cv_c_bigendian=unknown
9597 fi
9598 fi
9599 fi
9600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9601 else
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604 $ac_includes_default
9605 int
9606 main ()
9607 {
9608
9609 /* Are we little or big endian? From Harbison&Steele. */
9610 union
9611 {
9612 long int l;
9613 char c[sizeof (long int)];
9614 } u;
9615 u.l = 1;
9616 return u.c[sizeof (long int) - 1] == 1;
9617
9618 ;
9619 return 0;
9620 }
9621 _ACEOF
9622 if ac_fn_cxx_try_run "$LINENO"; then :
9623 ac_cv_c_bigendian=no
9624 else
9625 ac_cv_c_bigendian=yes
9626 fi
9627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9628 conftest.$ac_objext conftest.beam conftest.$ac_ext
9629 fi
9630
9631 fi
9632 fi
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9634 $as_echo "$ac_cv_c_bigendian" >&6; }
9635 case $ac_cv_c_bigendian in #(
9636 yes)
9637 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9638 ;; #(
9639 no)
9640 ;; #(
9641 universal)
9642
9643 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9644
9645 ;; #(
9646 *)
9647 as_fn_error $? "unknown endianness
9648 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9649 esac
9650
9651
9652 # ----------------------
9653 # Checks for C++ headers
9654 # ----------------------
9655
9656 ac_ext=cpp
9657 ac_cpp='$CXXCPP $CPPFLAGS'
9658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9662 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9663 if test -z "$CXXCPP"; then
9664 if ${ac_cv_prog_CXXCPP+:} false; then :
9665 $as_echo_n "(cached) " >&6
9666 else
9667 # Double quotes because CXXCPP needs to be expanded
9668 for CXXCPP in "$CXX -E" "/lib/cpp"
9669 do
9670 ac_preproc_ok=false
9671 for ac_cxx_preproc_warn_flag in '' yes
9672 do
9673 # Use a header file that comes with gcc, so configuring glibc
9674 # with a fresh cross-compiler works.
9675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9676 # <limits.h> exists even on freestanding compilers.
9677 # On the NeXT, cc -E runs the code through the compiler's parser,
9678 # not just through cpp. "Syntax error" is here to catch this case.
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9681 #ifdef __STDC__
9682 # include <limits.h>
9683 #else
9684 # include <assert.h>
9685 #endif
9686 Syntax error
9687 _ACEOF
9688 if ac_fn_cxx_try_cpp "$LINENO"; then :
9689
9690 else
9691 # Broken: fails on valid input.
9692 continue
9693 fi
9694 rm -f conftest.err conftest.i conftest.$ac_ext
9695
9696 # OK, works on sane cases. Now check whether nonexistent headers
9697 # can be detected and how.
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9700 #include <ac_nonexistent.h>
9701 _ACEOF
9702 if ac_fn_cxx_try_cpp "$LINENO"; then :
9703 # Broken: success on invalid input.
9704 continue
9705 else
9706 # Passes both tests.
9707 ac_preproc_ok=:
9708 break
9709 fi
9710 rm -f conftest.err conftest.i conftest.$ac_ext
9711
9712 done
9713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9714 rm -f conftest.i conftest.err conftest.$ac_ext
9715 if $ac_preproc_ok; then :
9716 break
9717 fi
9718
9719 done
9720 ac_cv_prog_CXXCPP=$CXXCPP
9721
9722 fi
9723 CXXCPP=$ac_cv_prog_CXXCPP
9724 else
9725 ac_cv_prog_CXXCPP=$CXXCPP
9726 fi
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9728 $as_echo "$CXXCPP" >&6; }
9729 ac_preproc_ok=false
9730 for ac_cxx_preproc_warn_flag in '' yes
9731 do
9732 # Use a header file that comes with gcc, so configuring glibc
9733 # with a fresh cross-compiler works.
9734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9735 # <limits.h> exists even on freestanding compilers.
9736 # On the NeXT, cc -E runs the code through the compiler's parser,
9737 # not just through cpp. "Syntax error" is here to catch this case.
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9740 #ifdef __STDC__
9741 # include <limits.h>
9742 #else
9743 # include <assert.h>
9744 #endif
9745 Syntax error
9746 _ACEOF
9747 if ac_fn_cxx_try_cpp "$LINENO"; then :
9748
9749 else
9750 # Broken: fails on valid input.
9751 continue
9752 fi
9753 rm -f conftest.err conftest.i conftest.$ac_ext
9754
9755 # OK, works on sane cases. Now check whether nonexistent headers
9756 # can be detected and how.
9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758 /* end confdefs.h. */
9759 #include <ac_nonexistent.h>
9760 _ACEOF
9761 if ac_fn_cxx_try_cpp "$LINENO"; then :
9762 # Broken: success on invalid input.
9763 continue
9764 else
9765 # Passes both tests.
9766 ac_preproc_ok=:
9767 break
9768 fi
9769 rm -f conftest.err conftest.i conftest.$ac_ext
9770
9771 done
9772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9773 rm -f conftest.i conftest.err conftest.$ac_ext
9774 if $ac_preproc_ok; then :
9775
9776 else
9777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9780 See \`config.log' for more details" >&5
9781 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9782 See \`config.log' for more details" >&2;}; }
9783 fi
9784
9785 ac_ext=cpp
9786 ac_cpp='$CXXCPP $CPPFLAGS'
9787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9790
9791
9792 for ac_header in unordered_map
9793 do :
9794 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9795 if test "x$ac_cv_header_unordered_map" = xyes; then :
9796 cat >>confdefs.h <<_ACEOF
9797 #define HAVE_UNORDERED_MAP 1
9798 _ACEOF
9799
9800 fi
9801 done
9802
9803 for ac_header in tr1/unordered_map
9804 do :
9805 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9806 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9807 cat >>confdefs.h <<_ACEOF
9808 #define HAVE_TR1_UNORDERED_MAP 1
9809 _ACEOF
9810
9811 fi
9812 done
9813
9814 for ac_header in ext/hash_map
9815 do :
9816 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9817 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9818 cat >>confdefs.h <<_ACEOF
9819 #define HAVE_EXT_HASH_MAP 1
9820 _ACEOF
9821
9822 fi
9823 done
9824
9825
9826 # --------
9827 # Dependency checking.
9828 # --------
9829
9830 rm -rf .tst 2>/dev/null
9831 mkdir .tst 2>/dev/null
9832 if test -d .tst; then
9833 am__leading_dot=.
9834 else
9835 am__leading_dot=_
9836 fi
9837 rmdir .tst 2>/dev/null
9838
9839 DEPDIR="${am__leading_dot}deps"
9840
9841 ac_config_commands="$ac_config_commands depdir"
9842
9843
9844 ac_config_commands="$ac_config_commands gccdepdir"
9845
9846
9847 depcc="$CXX" am_compiler_list=
9848
9849 am_depcomp=$ac_aux_dir/depcomp
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9851 $as_echo_n "checking dependency style of $depcc... " >&6; }
9852 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9853 $as_echo_n "(cached) " >&6
9854 else
9855 if test -f "$am_depcomp"; then
9856 # We make a subdir and do the tests there. Otherwise we can end up
9857 # making bogus files that we don't know about and never remove. For
9858 # instance it was reported that on HP-UX the gcc test will end up
9859 # making a dummy file named `D' -- because `-MD' means `put the output
9860 # in D'.
9861 mkdir conftest.dir
9862 # Copy depcomp to subdir because otherwise we won't find it if we're
9863 # using a relative directory.
9864 cp "$am_depcomp" conftest.dir
9865 cd conftest.dir
9866 # We will build objects and dependencies in a subdirectory because
9867 # it helps to detect inapplicable dependency modes. For instance
9868 # both Tru64's cc and ICC support -MD to output dependencies as a
9869 # side effect of compilation, but ICC will put the dependencies in
9870 # the current directory while Tru64 will put them in the object
9871 # directory.
9872 mkdir sub
9873
9874 am_cv_CXX_dependencies_compiler_type=none
9875 if test "$am_compiler_list" = ""; then
9876 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9877 fi
9878 for depmode in $am_compiler_list; do
9879 if test $depmode = none; then break; fi
9880
9881 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9882 # Setup a source with many dependencies, because some compilers
9883 # like to wrap large dependency lists on column 80 (with \), and
9884 # we should not choose a depcomp mode which is confused by this.
9885 #
9886 # We need to recreate these files for each test, as the compiler may
9887 # overwrite some of them when testing with obscure command lines.
9888 # This happens at least with the AIX C compiler.
9889 : > sub/conftest.c
9890 for i in 1 2 3 4 5 6; do
9891 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9892 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9893 # Solaris 8's {/usr,}/bin/sh.
9894 touch sub/conftst$i.h
9895 done
9896 echo "include sub/conftest.Po" > confmf
9897
9898 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9899 # mode. It turns out that the SunPro C++ compiler does not properly
9900 # handle `-M -o', and we need to detect this.
9901 depcmd="depmode=$depmode \
9902 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9903 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9904 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9905 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9906 if env $depcmd > conftest.err 2>&1 &&
9907 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9908 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9909 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9910 # icc doesn't choke on unknown options, it will just issue warnings
9911 # or remarks (even with -Werror). So we grep stderr for any message
9912 # that says an option was ignored or not supported.
9913 # When given -MP, icc 7.0 and 7.1 complain thusly:
9914 # icc: Command line warning: ignoring option '-M'; no argument required
9915 # The diagnosis changed in icc 8.0:
9916 # icc: Command line remark: option '-MP' not supported
9917 if (grep 'ignoring option' conftest.err ||
9918 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9919 am_cv_CXX_dependencies_compiler_type=$depmode
9920 $as_echo "$as_me:$LINENO: success" >&5
9921 break
9922 fi
9923 fi
9924 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9925 sed -e 's/^/| /' < conftest.err >&5
9926 done
9927
9928 cd ..
9929 rm -rf conftest.dir
9930 else
9931 am_cv_CXX_dependencies_compiler_type=none
9932 fi
9933
9934 fi
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9936 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9937 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9938 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9939 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9940
9941 fi
9942
9943
9944 # --------
9945 # UNSORTED
9946 # --------
9947
9948
9949 # These libraries may be used by collect2.
9950 # We may need a special search path to get them linked.
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9952 $as_echo_n "checking for collect2 libraries... " >&6; }
9953 if ${gcc_cv_collect2_libs+:} false; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956 save_LIBS="$LIBS"
9957 for libs in '' -lld -lmld \
9958 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9959 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9960 do
9961 LIBS="$libs"
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9964
9965 /* Override any GCC internal prototype to avoid an error.
9966 Use char because int might match the return type of a GCC
9967 builtin and then its argument prototype would still apply. */
9968 #ifdef __cplusplus
9969 extern "C"
9970 #endif
9971 char ldopen ();
9972 int
9973 main ()
9974 {
9975 return ldopen ();
9976 ;
9977 return 0;
9978 }
9979 _ACEOF
9980 if ac_fn_cxx_try_link "$LINENO"; then :
9981 gcc_cv_collect2_libs="$libs"; break
9982 fi
9983 rm -f core conftest.err conftest.$ac_objext \
9984 conftest$ac_exeext conftest.$ac_ext
9985 done
9986 LIBS="$save_LIBS"
9987 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9988 fi
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9990 $as_echo "$gcc_cv_collect2_libs" >&6; }
9991 case $gcc_cv_collect2_libs in
9992 "none required") ;;
9993 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9994 esac
9995
9996
9997 # When building Ada code on Alpha, we need exc_resume which is usually in
9998 # -lexc. So test for it.
9999 save_LIBS="$LIBS"
10000 LIBS=
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10002 $as_echo_n "checking for library containing exc_resume... " >&6; }
10003 if ${ac_cv_search_exc_resume+:} false; then :
10004 $as_echo_n "(cached) " >&6
10005 else
10006 ac_func_search_save_LIBS=$LIBS
10007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008 /* end confdefs.h. */
10009
10010 /* Override any GCC internal prototype to avoid an error.
10011 Use char because int might match the return type of a GCC
10012 builtin and then its argument prototype would still apply. */
10013 #ifdef __cplusplus
10014 extern "C"
10015 #endif
10016 char exc_resume ();
10017 int
10018 main ()
10019 {
10020 return exc_resume ();
10021 ;
10022 return 0;
10023 }
10024 _ACEOF
10025 for ac_lib in '' exc; do
10026 if test -z "$ac_lib"; then
10027 ac_res="none required"
10028 else
10029 ac_res=-l$ac_lib
10030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10031 fi
10032 if ac_fn_cxx_try_link "$LINENO"; then :
10033 ac_cv_search_exc_resume=$ac_res
10034 fi
10035 rm -f core conftest.err conftest.$ac_objext \
10036 conftest$ac_exeext
10037 if ${ac_cv_search_exc_resume+:} false; then :
10038 break
10039 fi
10040 done
10041 if ${ac_cv_search_exc_resume+:} false; then :
10042
10043 else
10044 ac_cv_search_exc_resume=no
10045 fi
10046 rm conftest.$ac_ext
10047 LIBS=$ac_func_search_save_LIBS
10048 fi
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10050 $as_echo "$ac_cv_search_exc_resume" >&6; }
10051 ac_res=$ac_cv_search_exc_resume
10052 if test "$ac_res" != no; then :
10053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10054
10055 fi
10056
10057 GNAT_LIBEXC="$LIBS"
10058 LIBS="$save_LIBS"
10059
10060
10061 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10062 save_LIBS="$LIBS"
10063 LIBS=
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10065 $as_echo_n "checking for library containing kstat_open... " >&6; }
10066 if ${ac_cv_search_kstat_open+:} false; then :
10067 $as_echo_n "(cached) " >&6
10068 else
10069 ac_func_search_save_LIBS=$LIBS
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10072
10073 /* Override any GCC internal prototype to avoid an error.
10074 Use char because int might match the return type of a GCC
10075 builtin and then its argument prototype would still apply. */
10076 #ifdef __cplusplus
10077 extern "C"
10078 #endif
10079 char kstat_open ();
10080 int
10081 main ()
10082 {
10083 return kstat_open ();
10084 ;
10085 return 0;
10086 }
10087 _ACEOF
10088 for ac_lib in '' kstat; do
10089 if test -z "$ac_lib"; then
10090 ac_res="none required"
10091 else
10092 ac_res=-l$ac_lib
10093 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10094 fi
10095 if ac_fn_cxx_try_link "$LINENO"; then :
10096 ac_cv_search_kstat_open=$ac_res
10097 fi
10098 rm -f core conftest.err conftest.$ac_objext \
10099 conftest$ac_exeext
10100 if ${ac_cv_search_kstat_open+:} false; then :
10101 break
10102 fi
10103 done
10104 if ${ac_cv_search_kstat_open+:} false; then :
10105
10106 else
10107 ac_cv_search_kstat_open=no
10108 fi
10109 rm conftest.$ac_ext
10110 LIBS=$ac_func_search_save_LIBS
10111 fi
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10113 $as_echo "$ac_cv_search_kstat_open" >&6; }
10114 ac_res=$ac_cv_search_kstat_open
10115 if test "$ac_res" != no; then :
10116 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10117
10118 fi
10119
10120 EXTRA_GCC_LIBS="$LIBS"
10121 LIBS="$save_LIBS"
10122
10123
10124 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10125 # C++ needs those for libcody.
10126 save_LIBS="$LIBS"
10127 LIBS=
10128
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10130 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10131 if ${ac_cv_search_gethostbyname+:} false; then :
10132 $as_echo_n "(cached) " >&6
10133 else
10134 ac_func_search_save_LIBS=$LIBS
10135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10136 /* end confdefs.h. */
10137
10138 /* Override any GCC internal prototype to avoid an error.
10139 Use char because int might match the return type of a GCC
10140 builtin and then its argument prototype would still apply. */
10141 #ifdef __cplusplus
10142 extern "C"
10143 #endif
10144 char gethostbyname ();
10145 int
10146 main ()
10147 {
10148 return gethostbyname ();
10149 ;
10150 return 0;
10151 }
10152 _ACEOF
10153 for ac_lib in '' nsl; do
10154 if test -z "$ac_lib"; then
10155 ac_res="none required"
10156 else
10157 ac_res=-l$ac_lib
10158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10159 fi
10160 if ac_fn_cxx_try_link "$LINENO"; then :
10161 ac_cv_search_gethostbyname=$ac_res
10162 fi
10163 rm -f core conftest.err conftest.$ac_objext \
10164 conftest$ac_exeext
10165 if ${ac_cv_search_gethostbyname+:} false; then :
10166 break
10167 fi
10168 done
10169 if ${ac_cv_search_gethostbyname+:} false; then :
10170
10171 else
10172 ac_cv_search_gethostbyname=no
10173 fi
10174 rm conftest.$ac_ext
10175 LIBS=$ac_func_search_save_LIBS
10176 fi
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10178 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10179 ac_res=$ac_cv_search_gethostbyname
10180 if test "$ac_res" != no; then :
10181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10182
10183 fi
10184
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10186 $as_echo_n "checking for library containing socket... " >&6; }
10187 if ${ac_cv_search_socket+:} false; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 ac_func_search_save_LIBS=$LIBS
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10193
10194 /* Override any GCC internal prototype to avoid an error.
10195 Use char because int might match the return type of a GCC
10196 builtin and then its argument prototype would still apply. */
10197 #ifdef __cplusplus
10198 extern "C"
10199 #endif
10200 char socket ();
10201 int
10202 main ()
10203 {
10204 return socket ();
10205 ;
10206 return 0;
10207 }
10208 _ACEOF
10209 for ac_lib in '' socket; do
10210 if test -z "$ac_lib"; then
10211 ac_res="none required"
10212 else
10213 ac_res=-l$ac_lib
10214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10215 fi
10216 if ac_fn_cxx_try_link "$LINENO"; then :
10217 ac_cv_search_socket=$ac_res
10218 fi
10219 rm -f core conftest.err conftest.$ac_objext \
10220 conftest$ac_exeext
10221 if ${ac_cv_search_socket+:} false; then :
10222 break
10223 fi
10224 done
10225 if ${ac_cv_search_socket+:} false; then :
10226
10227 else
10228 ac_cv_search_socket=no
10229 fi
10230 rm conftest.$ac_ext
10231 LIBS=$ac_func_search_save_LIBS
10232 fi
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10234 $as_echo "$ac_cv_search_socket" >&6; }
10235 ac_res=$ac_cv_search_socket
10236 if test "$ac_res" != no; then :
10237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10238
10239 else
10240
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10242 $as_echo_n "checking for socket in -lsocket... " >&6; }
10243 if ${ac_cv_lib_socket_socket+:} false; then :
10244 $as_echo_n "(cached) " >&6
10245 else
10246 ac_check_lib_save_LIBS=$LIBS
10247 LIBS="-lsocket -lnsl $LIBS"
10248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10250
10251 /* Override any GCC internal prototype to avoid an error.
10252 Use char because int might match the return type of a GCC
10253 builtin and then its argument prototype would still apply. */
10254 #ifdef __cplusplus
10255 extern "C"
10256 #endif
10257 char socket ();
10258 int
10259 main ()
10260 {
10261 return socket ();
10262 ;
10263 return 0;
10264 }
10265 _ACEOF
10266 if ac_fn_cxx_try_link "$LINENO"; then :
10267 ac_cv_lib_socket_socket=yes
10268 else
10269 ac_cv_lib_socket_socket=no
10270 fi
10271 rm -f core conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
10273 LIBS=$ac_check_lib_save_LIBS
10274 fi
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10276 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10277 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10278 LIBS="-lsocket -lnsl $LIBS"
10279 fi
10280
10281 fi
10282
10283
10284 NETLIBS="$LIBS"
10285 LIBS="$save_LIBS"
10286
10287
10288 # Some systems put ldexp and frexp in libm instead of libc; assume
10289 # they're both in the same place. jcf-dump needs them.
10290 save_LIBS="$LIBS"
10291 LIBS=
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10293 $as_echo_n "checking for library containing ldexp... " >&6; }
10294 if ${ac_cv_search_ldexp+:} false; then :
10295 $as_echo_n "(cached) " >&6
10296 else
10297 ac_func_search_save_LIBS=$LIBS
10298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299 /* end confdefs.h. */
10300
10301 /* Override any GCC internal prototype to avoid an error.
10302 Use char because int might match the return type of a GCC
10303 builtin and then its argument prototype would still apply. */
10304 #ifdef __cplusplus
10305 extern "C"
10306 #endif
10307 char ldexp ();
10308 int
10309 main ()
10310 {
10311 return ldexp ();
10312 ;
10313 return 0;
10314 }
10315 _ACEOF
10316 for ac_lib in '' m; do
10317 if test -z "$ac_lib"; then
10318 ac_res="none required"
10319 else
10320 ac_res=-l$ac_lib
10321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10322 fi
10323 if ac_fn_cxx_try_link "$LINENO"; then :
10324 ac_cv_search_ldexp=$ac_res
10325 fi
10326 rm -f core conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext
10328 if ${ac_cv_search_ldexp+:} false; then :
10329 break
10330 fi
10331 done
10332 if ${ac_cv_search_ldexp+:} false; then :
10333
10334 else
10335 ac_cv_search_ldexp=no
10336 fi
10337 rm conftest.$ac_ext
10338 LIBS=$ac_func_search_save_LIBS
10339 fi
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10341 $as_echo "$ac_cv_search_ldexp" >&6; }
10342 ac_res=$ac_cv_search_ldexp
10343 if test "$ac_res" != no; then :
10344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10345
10346 fi
10347
10348 LDEXP_LIB="$LIBS"
10349 LIBS="$save_LIBS"
10350
10351
10352 # Some systems need dlopen
10353 save_LIBS="$LIBS"
10354 LIBS=
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10356 $as_echo_n "checking for library containing dlopen... " >&6; }
10357 if ${ac_cv_search_dlopen+:} false; then :
10358 $as_echo_n "(cached) " >&6
10359 else
10360 ac_func_search_save_LIBS=$LIBS
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10363
10364 /* Override any GCC internal prototype to avoid an error.
10365 Use char because int might match the return type of a GCC
10366 builtin and then its argument prototype would still apply. */
10367 #ifdef __cplusplus
10368 extern "C"
10369 #endif
10370 char dlopen ();
10371 int
10372 main ()
10373 {
10374 return dlopen ();
10375 ;
10376 return 0;
10377 }
10378 _ACEOF
10379 for ac_lib in '' dl; do
10380 if test -z "$ac_lib"; then
10381 ac_res="none required"
10382 else
10383 ac_res=-l$ac_lib
10384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10385 fi
10386 if ac_fn_cxx_try_link "$LINENO"; then :
10387 ac_cv_search_dlopen=$ac_res
10388 fi
10389 rm -f core conftest.err conftest.$ac_objext \
10390 conftest$ac_exeext
10391 if ${ac_cv_search_dlopen+:} false; then :
10392 break
10393 fi
10394 done
10395 if ${ac_cv_search_dlopen+:} false; then :
10396
10397 else
10398 ac_cv_search_dlopen=no
10399 fi
10400 rm conftest.$ac_ext
10401 LIBS=$ac_func_search_save_LIBS
10402 fi
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10404 $as_echo "$ac_cv_search_dlopen" >&6; }
10405 ac_res=$ac_cv_search_dlopen
10406 if test "$ac_res" != no; then :
10407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10408
10409 fi
10410
10411 DL_LIB="$LIBS"
10412 LIBS="$save_LIBS"
10413
10414
10415 # Use <inttypes.h> only if it exists,
10416 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10417 # PRId64
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10419 $as_echo_n "checking for inttypes.h... " >&6; }
10420 if ${gcc_cv_header_inttypes_h+:} false; then :
10421 $as_echo_n "(cached) " >&6
10422 else
10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10425 #define __STDC_FORMAT_MACROS
10426 #include <sys/types.h>
10427 #include <inttypes.h>
10428 int
10429 main ()
10430 {
10431 intmax_t i = -1;
10432 #ifndef PRId64
10433 choke me
10434 #endif
10435 ;
10436 return 0;
10437 }
10438 _ACEOF
10439 if ac_fn_cxx_try_compile "$LINENO"; then :
10440 gcc_cv_header_inttypes_h=yes
10441 else
10442 gcc_cv_header_inttypes_h=no
10443 fi
10444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10445 fi
10446
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10448 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10449 if test $gcc_cv_header_inttypes_h = yes; then
10450
10451 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10452
10453 fi
10454
10455 # Look for the ZSTD package.
10456 ZSTD_INCLUDE=
10457 ZSTD_LIB=
10458
10459
10460 ZSTD_CPPFLAGS=
10461 ZSTD_LDFLAGS=
10462
10463
10464
10465 # Check whether --with-zstd was given.
10466 if test "${with_zstd+set}" = set; then :
10467 withval=$with_zstd;
10468 fi
10469
10470
10471 # Check whether --with-zstd-include was given.
10472 if test "${with_zstd_include+set}" = set; then :
10473 withval=$with_zstd_include;
10474 fi
10475
10476
10477 # Check whether --with-zstd-lib was given.
10478 if test "${with_zstd_lib+set}" = set; then :
10479 withval=$with_zstd_lib;
10480 fi
10481
10482 case "x$with_zstd" in
10483 x) ;;
10484 xno)
10485 ZSTD_INCLUDE=
10486 ZSTD_LIB=
10487 ;;
10488 *) ZSTD_INCLUDE=$with_zstd/include
10489 ZSTD_LIB=$with_zstd/lib
10490 ;;
10491 esac
10492
10493 if test "x$with_zstd" != xno; then
10494 if test "x$with_zstd_include" != x; then
10495 ZSTD_INCLUDE=$with_zstd_include
10496 fi
10497 if test "x$with_zstd_lib" != x; then
10498 ZSTD_LIB=$with_zstd_lib
10499 fi
10500 if test "x$ZSTD_INCLUDE" != x \
10501 && test "x$ZSTD_INCLUDE" != xno; then
10502 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10503 fi
10504 if test "x$ZSTD_LIB" != x \
10505 && test "x$ZSTD_LIB" != xno; then
10506 ZSTD_LDFLAGS=-L$ZSTD_LIB
10507 fi
10508
10509 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10510 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10511
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10513 $as_echo_n "checking for zstd.h... " >&6; }
10514 if ${gcc_cv_header_zstd_h+:} false; then :
10515 $as_echo_n "(cached) " >&6
10516 else
10517 # We require version 1.3.0 or later. This is the first version that has
10518 # ZSTD_getFrameContentSize.
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 #include <zstd.h>
10522 #if ZSTD_VERSION_NUMBER < 10300
10523 #error "need zstd 1.3.0 or better"
10524 #endif
10525 int
10526 main ()
10527 {
10528
10529 ;
10530 return 0;
10531 }
10532 _ACEOF
10533 if ac_fn_cxx_try_compile "$LINENO"; then :
10534 gcc_cv_header_zstd_h=yes
10535 else
10536 gcc_cv_header_zstd_h=no
10537 fi
10538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10539 fi
10540
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10542 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10543 if test $gcc_cv_header_zstd_h = yes; then
10544
10545 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10546
10547 elif test "x$with_zstd" != x; then
10548 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10549 fi
10550
10551 # LTO can use zstd compression algorithm
10552 save_LIBS="$LIBS"
10553 LIBS=
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10555 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10556 if ${ac_cv_search_ZSTD_compress+:} false; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 ac_func_search_save_LIBS=$LIBS
10560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10561 /* end confdefs.h. */
10562
10563 /* Override any GCC internal prototype to avoid an error.
10564 Use char because int might match the return type of a GCC
10565 builtin and then its argument prototype would still apply. */
10566 #ifdef __cplusplus
10567 extern "C"
10568 #endif
10569 char ZSTD_compress ();
10570 int
10571 main ()
10572 {
10573 return ZSTD_compress ();
10574 ;
10575 return 0;
10576 }
10577 _ACEOF
10578 for ac_lib in '' zstd; do
10579 if test -z "$ac_lib"; then
10580 ac_res="none required"
10581 else
10582 ac_res=-l$ac_lib
10583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10584 fi
10585 if ac_fn_cxx_try_link "$LINENO"; then :
10586 ac_cv_search_ZSTD_compress=$ac_res
10587 fi
10588 rm -f core conftest.err conftest.$ac_objext \
10589 conftest$ac_exeext
10590 if ${ac_cv_search_ZSTD_compress+:} false; then :
10591 break
10592 fi
10593 done
10594 if ${ac_cv_search_ZSTD_compress+:} false; then :
10595
10596 else
10597 ac_cv_search_ZSTD_compress=no
10598 fi
10599 rm conftest.$ac_ext
10600 LIBS=$ac_func_search_save_LIBS
10601 fi
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10603 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10604 ac_res=$ac_cv_search_ZSTD_compress
10605 if test "$ac_res" != no; then :
10606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10607
10608 fi
10609
10610 ZSTD_LIB="$LIBS"
10611 LIBS="$save_LIBS"
10612
10613 fi
10614
10615
10616
10617 for ac_func in times clock kill getrlimit setrlimit atoq \
10618 popen sysconf strsignal getrusage nl_langinfo \
10619 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10620 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 fstatat getauxval
10621 do :
10622 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10623 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10624 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10625 cat >>confdefs.h <<_ACEOF
10626 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10627 _ACEOF
10628
10629 fi
10630 done
10631
10632
10633 if test x$ac_cv_func_mbstowcs = xyes; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10635 $as_echo_n "checking whether mbstowcs works... " >&6; }
10636 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10637 $as_echo_n "(cached) " >&6
10638 else
10639 if test "$cross_compiling" = yes; then :
10640 gcc_cv_func_mbstowcs_works=yes
10641 else
10642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643 /* end confdefs.h. */
10644 #include <stdlib.h>
10645 int main()
10646 {
10647 mbstowcs(0, "", 0);
10648 return 0;
10649 }
10650 _ACEOF
10651 if ac_fn_cxx_try_run "$LINENO"; then :
10652 gcc_cv_func_mbstowcs_works=yes
10653 else
10654 gcc_cv_func_mbstowcs_works=no
10655 fi
10656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10657 conftest.$ac_objext conftest.beam conftest.$ac_ext
10658 fi
10659
10660 fi
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10662 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10663 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10664
10665 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10666
10667 fi
10668 fi
10669
10670 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10671 if test "x$ac_cv_type_ssize_t" = xyes; then :
10672
10673 else
10674
10675 cat >>confdefs.h <<_ACEOF
10676 #define ssize_t int
10677 _ACEOF
10678
10679 fi
10680
10681 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10682 if test "x$ac_cv_type_caddr_t" = xyes; then :
10683
10684 else
10685
10686 cat >>confdefs.h <<_ACEOF
10687 #define caddr_t char *
10688 _ACEOF
10689
10690 fi
10691
10692 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10693 "
10694 if test "x$ac_cv_type_sighander_t" = xyes; then :
10695
10696 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10697
10698 fi
10699
10700
10701
10702 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10703 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10704 gcc_header_sys_mman_h=yes
10705 else
10706 gcc_header_sys_mman_h=no
10707 fi
10708
10709 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10710 if test "x$ac_cv_func_mmap" = xyes; then :
10711 gcc_func_mmap=yes
10712 else
10713 gcc_func_mmap=no
10714 fi
10715
10716 if test "$gcc_header_sys_mman_h" != yes \
10717 || test "$gcc_func_mmap" != yes; then
10718 gcc_cv_func_mmap_file=no
10719 gcc_cv_func_mmap_dev_zero=no
10720 gcc_cv_func_mmap_anon=no
10721 else
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10723 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10724 if ${gcc_cv_func_mmap_file+:} false; then :
10725 $as_echo_n "(cached) " >&6
10726 else
10727 # Add a system to this blacklist if
10728 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10729 # memory area containing the same data that you'd get if you applied
10730 # read() to the same fd. The only system known to have a problem here
10731 # is VMS, where text files have record structure.
10732 case "$host_os" in
10733 *vms* | ultrix*)
10734 gcc_cv_func_mmap_file=no ;;
10735 *)
10736 gcc_cv_func_mmap_file=yes;;
10737 esac
10738 fi
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10740 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10742 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10743 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10744 $as_echo_n "(cached) " >&6
10745 else
10746 # Add a system to this blacklist if it has mmap() but /dev/zero
10747 # does not exist, or if mmapping /dev/zero does not give anonymous
10748 # zeroed pages with both the following properties:
10749 # 1. If you map N consecutive pages in with one call, and then
10750 # unmap any subset of those pages, the pages that were not
10751 # explicitly unmapped remain accessible.
10752 # 2. If you map two adjacent blocks of memory and then unmap them
10753 # both at once, they must both go away.
10754 # Systems known to be in this category are Windows (all variants),
10755 # VMS, and Darwin.
10756 case "$host_os" in
10757 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10758 gcc_cv_func_mmap_dev_zero=no ;;
10759 *)
10760 gcc_cv_func_mmap_dev_zero=yes;;
10761 esac
10762 fi
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10764 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10765
10766 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10768 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10769 if ${gcc_cv_decl_map_anon+:} false; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10774 #include <sys/types.h>
10775 #include <sys/mman.h>
10776 #include <unistd.h>
10777
10778 #ifndef MAP_ANONYMOUS
10779 #define MAP_ANONYMOUS MAP_ANON
10780 #endif
10781
10782 int
10783 main ()
10784 {
10785 int n = MAP_ANONYMOUS;
10786 ;
10787 return 0;
10788 }
10789 _ACEOF
10790 if ac_fn_cxx_try_compile "$LINENO"; then :
10791 gcc_cv_decl_map_anon=yes
10792 else
10793 gcc_cv_decl_map_anon=no
10794 fi
10795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10796 fi
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10798 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10799
10800 if test $gcc_cv_decl_map_anon = no; then
10801 gcc_cv_func_mmap_anon=no
10802 else
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10804 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10805 if ${gcc_cv_func_mmap_anon+:} false; then :
10806 $as_echo_n "(cached) " >&6
10807 else
10808 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10809 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10810 # doesn't give anonymous zeroed pages with the same properties listed
10811 # above for use of /dev/zero.
10812 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10813 case "$host_os" in
10814 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10815 gcc_cv_func_mmap_anon=no ;;
10816 *)
10817 gcc_cv_func_mmap_anon=yes;;
10818 esac
10819 fi
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10821 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10822 fi
10823 fi
10824
10825 if test $gcc_cv_func_mmap_file = yes; then
10826
10827 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10828
10829 fi
10830 if test $gcc_cv_func_mmap_dev_zero = yes; then
10831
10832 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10833
10834 fi
10835 if test $gcc_cv_func_mmap_anon = yes; then
10836
10837 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10838
10839 fi
10840
10841
10842 case "${host}" in
10843 *-*-*vms*)
10844 # Under VMS, vfork works very differently than on Unix. The standard test
10845 # won't work, and it isn't easily adaptable. It makes more sense to
10846 # just force it.
10847 ac_cv_func_vfork_works=yes
10848 ;;
10849 esac
10850 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10851 if test "x$ac_cv_type_pid_t" = xyes; then :
10852
10853 else
10854
10855 cat >>confdefs.h <<_ACEOF
10856 #define pid_t int
10857 _ACEOF
10858
10859 fi
10860
10861 for ac_header in vfork.h
10862 do :
10863 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10864 if test "x$ac_cv_header_vfork_h" = xyes; then :
10865 cat >>confdefs.h <<_ACEOF
10866 #define HAVE_VFORK_H 1
10867 _ACEOF
10868
10869 fi
10870 done
10871
10872 for ac_func in fork vfork
10873 do :
10874 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10875 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10876 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10877 cat >>confdefs.h <<_ACEOF
10878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10879 _ACEOF
10880
10881 fi
10882 done
10883
10884 if test "x$ac_cv_func_fork" = xyes; then
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10886 $as_echo_n "checking for working fork... " >&6; }
10887 if ${ac_cv_func_fork_works+:} false; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 if test "$cross_compiling" = yes; then :
10891 ac_cv_func_fork_works=cross
10892 else
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10895 $ac_includes_default
10896 int
10897 main ()
10898 {
10899
10900 /* By Ruediger Kuhlmann. */
10901 return fork () < 0;
10902
10903 ;
10904 return 0;
10905 }
10906 _ACEOF
10907 if ac_fn_cxx_try_run "$LINENO"; then :
10908 ac_cv_func_fork_works=yes
10909 else
10910 ac_cv_func_fork_works=no
10911 fi
10912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10913 conftest.$ac_objext conftest.beam conftest.$ac_ext
10914 fi
10915
10916 fi
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10918 $as_echo "$ac_cv_func_fork_works" >&6; }
10919
10920 else
10921 ac_cv_func_fork_works=$ac_cv_func_fork
10922 fi
10923 if test "x$ac_cv_func_fork_works" = xcross; then
10924 case $host in
10925 *-*-amigaos* | *-*-msdosdjgpp*)
10926 # Override, as these systems have only a dummy fork() stub
10927 ac_cv_func_fork_works=no
10928 ;;
10929 *)
10930 ac_cv_func_fork_works=yes
10931 ;;
10932 esac
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10934 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10935 fi
10936 ac_cv_func_vfork_works=$ac_cv_func_vfork
10937 if test "x$ac_cv_func_vfork" = xyes; then
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10939 $as_echo_n "checking for working vfork... " >&6; }
10940 if ${ac_cv_func_vfork_works+:} false; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10943 if test "$cross_compiling" = yes; then :
10944 ac_cv_func_vfork_works=cross
10945 else
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948 /* Thanks to Paul Eggert for this test. */
10949 $ac_includes_default
10950 #include <sys/wait.h>
10951 #ifdef HAVE_VFORK_H
10952 # include <vfork.h>
10953 #endif
10954 /* On some sparc systems, changes by the child to local and incoming
10955 argument registers are propagated back to the parent. The compiler
10956 is told about this with #include <vfork.h>, but some compilers
10957 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10958 static variable whose address is put into a register that is
10959 clobbered by the vfork. */
10960 static void
10961 #ifdef __cplusplus
10962 sparc_address_test (int arg)
10963 # else
10964 sparc_address_test (arg) int arg;
10965 #endif
10966 {
10967 static pid_t child;
10968 if (!child) {
10969 child = vfork ();
10970 if (child < 0) {
10971 perror ("vfork");
10972 _exit(2);
10973 }
10974 if (!child) {
10975 arg = getpid();
10976 write(-1, "", 0);
10977 _exit (arg);
10978 }
10979 }
10980 }
10981
10982 int
10983 main ()
10984 {
10985 pid_t parent = getpid ();
10986 pid_t child;
10987
10988 sparc_address_test (0);
10989
10990 child = vfork ();
10991
10992 if (child == 0) {
10993 /* Here is another test for sparc vfork register problems. This
10994 test uses lots of local variables, at least as many local
10995 variables as main has allocated so far including compiler
10996 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10997 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10998 reuse the register of parent for one of the local variables,
10999 since it will think that parent can't possibly be used any more
11000 in this routine. Assigning to the local variable will thus
11001 munge parent in the parent process. */
11002 pid_t
11003 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11004 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11005 /* Convince the compiler that p..p7 are live; otherwise, it might
11006 use the same hardware register for all 8 local variables. */
11007 if (p != p1 || p != p2 || p != p3 || p != p4
11008 || p != p5 || p != p6 || p != p7)
11009 _exit(1);
11010
11011 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11012 from child file descriptors. If the child closes a descriptor
11013 before it execs or exits, this munges the parent's descriptor
11014 as well. Test for this by closing stdout in the child. */
11015 _exit(close(fileno(stdout)) != 0);
11016 } else {
11017 int status;
11018 struct stat st;
11019
11020 while (wait(&status) != child)
11021 ;
11022 return (
11023 /* Was there some problem with vforking? */
11024 child < 0
11025
11026 /* Did the child fail? (This shouldn't happen.) */
11027 || status
11028
11029 /* Did the vfork/compiler bug occur? */
11030 || parent != getpid()
11031
11032 /* Did the file descriptor bug occur? */
11033 || fstat(fileno(stdout), &st) != 0
11034 );
11035 }
11036 }
11037 _ACEOF
11038 if ac_fn_cxx_try_run "$LINENO"; then :
11039 ac_cv_func_vfork_works=yes
11040 else
11041 ac_cv_func_vfork_works=no
11042 fi
11043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11044 conftest.$ac_objext conftest.beam conftest.$ac_ext
11045 fi
11046
11047 fi
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11049 $as_echo "$ac_cv_func_vfork_works" >&6; }
11050
11051 fi;
11052 if test "x$ac_cv_func_fork_works" = xcross; then
11053 ac_cv_func_vfork_works=$ac_cv_func_vfork
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11055 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11056 fi
11057
11058 if test "x$ac_cv_func_vfork_works" = xyes; then
11059
11060 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11061
11062 else
11063
11064 $as_echo "#define vfork fork" >>confdefs.h
11065
11066 fi
11067 if test "x$ac_cv_func_fork_works" = xyes; then
11068
11069 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11070
11071 fi
11072
11073
11074
11075 if test "X$prefix" = "XNONE"; then
11076 acl_final_prefix="$ac_default_prefix"
11077 else
11078 acl_final_prefix="$prefix"
11079 fi
11080 if test "X$exec_prefix" = "XNONE"; then
11081 acl_final_exec_prefix='${prefix}'
11082 else
11083 acl_final_exec_prefix="$exec_prefix"
11084 fi
11085 acl_save_prefix="$prefix"
11086 prefix="$acl_final_prefix"
11087 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11088 prefix="$acl_save_prefix"
11089
11090
11091 # Check whether --with-gnu-ld was given.
11092 if test "${with_gnu_ld+set}" = set; then :
11093 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11094 else
11095 with_gnu_ld=no
11096 fi
11097
11098 # Prepare PATH_SEPARATOR.
11099 # The user is always right.
11100 if test "${PATH_SEPARATOR+set}" != set; then
11101 echo "#! /bin/sh" >conf$$.sh
11102 echo "exit 0" >>conf$$.sh
11103 chmod +x conf$$.sh
11104 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11105 PATH_SEPARATOR=';'
11106 else
11107 PATH_SEPARATOR=:
11108 fi
11109 rm -f conf$$.sh
11110 fi
11111 ac_prog=ld
11112 if test "$GCC" = yes; then
11113 # Check if gcc -print-prog-name=ld gives a path.
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11115 $as_echo_n "checking for ld used by GCC... " >&6; }
11116 case $host in
11117 *-*-mingw*)
11118 # gcc leaves a trailing carriage return which upsets mingw
11119 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11120 *)
11121 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11122 esac
11123 case $ac_prog in
11124 # Accept absolute paths.
11125 [\\/]* | [A-Za-z]:[\\/]*)
11126 re_direlt='/[^/][^/]*/\.\./'
11127 # Canonicalize the path of ld
11128 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11129 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11130 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11131 done
11132 test -z "$LD" && LD="$ac_prog"
11133 ;;
11134 "")
11135 # If it fails, then pretend we aren't using GCC.
11136 ac_prog=ld
11137 ;;
11138 *)
11139 # If it is relative, then search for the first ld in PATH.
11140 with_gnu_ld=unknown
11141 ;;
11142 esac
11143 elif test "$with_gnu_ld" = yes; then
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11145 $as_echo_n "checking for GNU ld... " >&6; }
11146 else
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11148 $as_echo_n "checking for non-GNU ld... " >&6; }
11149 fi
11150 if ${acl_cv_path_LD+:} false; then :
11151 $as_echo_n "(cached) " >&6
11152 else
11153 if test -z "$LD"; then
11154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11155 for ac_dir in $PATH; do
11156 test -z "$ac_dir" && ac_dir=.
11157 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11158 acl_cv_path_LD="$ac_dir/$ac_prog"
11159 # Check to see if the program is GNU ld. I'd rather use --version,
11160 # but apparently some GNU ld's only accept -v.
11161 # Break only if it was the GNU/non-GNU ld that we prefer.
11162 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11163 test "$with_gnu_ld" != no && break
11164 else
11165 test "$with_gnu_ld" != yes && break
11166 fi
11167 fi
11168 done
11169 IFS="$ac_save_ifs"
11170 else
11171 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11172 fi
11173 fi
11174
11175 LD="$acl_cv_path_LD"
11176 if test -n "$LD"; then
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11178 $as_echo "$LD" >&6; }
11179 else
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; }
11182 fi
11183 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11185 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11186 if ${acl_cv_prog_gnu_ld+:} false; then :
11187 $as_echo_n "(cached) " >&6
11188 else
11189 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11190 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11191 acl_cv_prog_gnu_ld=yes
11192 else
11193 acl_cv_prog_gnu_ld=no
11194 fi
11195 fi
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11197 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11198 with_gnu_ld=$acl_cv_prog_gnu_ld
11199
11200
11201
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11203 $as_echo_n "checking for shared library run path origin... " >&6; }
11204 if ${acl_cv_rpath+:} false; then :
11205 $as_echo_n "(cached) " >&6
11206 else
11207
11208 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11209 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11210 . ./conftest.sh
11211 rm -f ./conftest.sh
11212 acl_cv_rpath=done
11213
11214 fi
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11216 $as_echo "$acl_cv_rpath" >&6; }
11217 wl="$acl_cv_wl"
11218 libext="$acl_cv_libext"
11219 shlibext="$acl_cv_shlibext"
11220 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11221 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11222 hardcode_direct="$acl_cv_hardcode_direct"
11223 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11224 # Check whether --enable-rpath was given.
11225 if test "${enable_rpath+set}" = set; then :
11226 enableval=$enable_rpath; :
11227 else
11228 enable_rpath=yes
11229 fi
11230
11231
11232
11233
11234
11235
11236
11237
11238 use_additional=yes
11239
11240 acl_save_prefix="$prefix"
11241 prefix="$acl_final_prefix"
11242 acl_save_exec_prefix="$exec_prefix"
11243 exec_prefix="$acl_final_exec_prefix"
11244
11245 eval additional_includedir=\"$includedir\"
11246 eval additional_libdir=\"$libdir\"
11247
11248 exec_prefix="$acl_save_exec_prefix"
11249 prefix="$acl_save_prefix"
11250
11251
11252 # Check whether --with-libiconv-prefix was given.
11253 if test "${with_libiconv_prefix+set}" = set; then :
11254 withval=$with_libiconv_prefix;
11255 if test "X$withval" = "Xno"; then
11256 use_additional=no
11257 else
11258 if test "X$withval" = "X"; then
11259
11260 acl_save_prefix="$prefix"
11261 prefix="$acl_final_prefix"
11262 acl_save_exec_prefix="$exec_prefix"
11263 exec_prefix="$acl_final_exec_prefix"
11264
11265 eval additional_includedir=\"$includedir\"
11266 eval additional_libdir=\"$libdir\"
11267
11268 exec_prefix="$acl_save_exec_prefix"
11269 prefix="$acl_save_prefix"
11270
11271 else
11272 additional_includedir="$withval/include"
11273 additional_libdir="$withval/lib"
11274 fi
11275 fi
11276
11277 fi
11278
11279
11280 # Check whether --with-libiconv-type was given.
11281 if test "${with_libiconv_type+set}" = set; then :
11282 withval=$with_libiconv_type; with_libiconv_type=$withval
11283 else
11284 with_libiconv_type=auto
11285 fi
11286
11287 lib_type=`eval echo \$with_libiconv_type`
11288
11289 LIBICONV=
11290 LTLIBICONV=
11291 INCICONV=
11292 rpathdirs=
11293 ltrpathdirs=
11294 names_already_handled=
11295 names_next_round='iconv '
11296 while test -n "$names_next_round"; do
11297 names_this_round="$names_next_round"
11298 names_next_round=
11299 for name in $names_this_round; do
11300 already_handled=
11301 for n in $names_already_handled; do
11302 if test "$n" = "$name"; then
11303 already_handled=yes
11304 break
11305 fi
11306 done
11307 if test -z "$already_handled"; then
11308 names_already_handled="$names_already_handled $name"
11309 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11310 eval value=\"\$HAVE_LIB$uppername\"
11311 if test -n "$value"; then
11312 if test "$value" = yes; then
11313 eval value=\"\$LIB$uppername\"
11314 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11315 eval value=\"\$LTLIB$uppername\"
11316 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11317 else
11318 :
11319 fi
11320 else
11321 found_dir=
11322 found_la=
11323 found_so=
11324 found_a=
11325 if test $use_additional = yes; then
11326 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11327 found_dir="$additional_libdir"
11328 found_so="$additional_libdir/lib$name.$shlibext"
11329 if test -f "$additional_libdir/lib$name.la"; then
11330 found_la="$additional_libdir/lib$name.la"
11331 fi
11332 elif test x$lib_type != xshared; then
11333 if test -f "$additional_libdir/lib$name.$libext"; then
11334 found_dir="$additional_libdir"
11335 found_a="$additional_libdir/lib$name.$libext"
11336 if test -f "$additional_libdir/lib$name.la"; then
11337 found_la="$additional_libdir/lib$name.la"
11338 fi
11339 fi
11340 fi
11341 fi
11342 if test "X$found_dir" = "X"; then
11343 for x in $LDFLAGS $LTLIBICONV; do
11344
11345 acl_save_prefix="$prefix"
11346 prefix="$acl_final_prefix"
11347 acl_save_exec_prefix="$exec_prefix"
11348 exec_prefix="$acl_final_exec_prefix"
11349 eval x=\"$x\"
11350 exec_prefix="$acl_save_exec_prefix"
11351 prefix="$acl_save_prefix"
11352
11353 case "$x" in
11354 -L*)
11355 dir=`echo "X$x" | sed -e 's/^X-L//'`
11356 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11357 found_dir="$dir"
11358 found_so="$dir/lib$name.$shlibext"
11359 if test -f "$dir/lib$name.la"; then
11360 found_la="$dir/lib$name.la"
11361 fi
11362 elif test x$lib_type != xshared; then
11363 if test -f "$dir/lib$name.$libext"; then
11364 found_dir="$dir"
11365 found_a="$dir/lib$name.$libext"
11366 if test -f "$dir/lib$name.la"; then
11367 found_la="$dir/lib$name.la"
11368 fi
11369 fi
11370 fi
11371 ;;
11372 esac
11373 if test "X$found_dir" != "X"; then
11374 break
11375 fi
11376 done
11377 fi
11378 if test "X$found_dir" != "X"; then
11379 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11380 if test "X$found_so" != "X"; then
11381 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11382 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11383 else
11384 haveit=
11385 for x in $ltrpathdirs; do
11386 if test "X$x" = "X$found_dir"; then
11387 haveit=yes
11388 break
11389 fi
11390 done
11391 if test -z "$haveit"; then
11392 ltrpathdirs="$ltrpathdirs $found_dir"
11393 fi
11394 if test "$hardcode_direct" = yes; then
11395 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11396 else
11397 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11398 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11399 haveit=
11400 for x in $rpathdirs; do
11401 if test "X$x" = "X$found_dir"; then
11402 haveit=yes
11403 break
11404 fi
11405 done
11406 if test -z "$haveit"; then
11407 rpathdirs="$rpathdirs $found_dir"
11408 fi
11409 else
11410 haveit=
11411 for x in $LDFLAGS $LIBICONV; do
11412
11413 acl_save_prefix="$prefix"
11414 prefix="$acl_final_prefix"
11415 acl_save_exec_prefix="$exec_prefix"
11416 exec_prefix="$acl_final_exec_prefix"
11417 eval x=\"$x\"
11418 exec_prefix="$acl_save_exec_prefix"
11419 prefix="$acl_save_prefix"
11420
11421 if test "X$x" = "X-L$found_dir"; then
11422 haveit=yes
11423 break
11424 fi
11425 done
11426 if test -z "$haveit"; then
11427 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11428 fi
11429 if test "$hardcode_minus_L" != no; then
11430 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11431 else
11432 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11433 fi
11434 fi
11435 fi
11436 fi
11437 else
11438 if test "X$found_a" != "X"; then
11439 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11440 else
11441 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11442 fi
11443 fi
11444 additional_includedir=
11445 case "$found_dir" in
11446 */lib | */lib/)
11447 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11448 additional_includedir="$basedir/include"
11449 ;;
11450 esac
11451 if test "X$additional_includedir" != "X"; then
11452 if test "X$additional_includedir" != "X/usr/include"; then
11453 haveit=
11454 if test "X$additional_includedir" = "X/usr/local/include"; then
11455 if test -n "$GCC"; then
11456 case $host_os in
11457 linux*) haveit=yes;;
11458 esac
11459 fi
11460 fi
11461 if test -z "$haveit"; then
11462 for x in $CPPFLAGS $INCICONV; do
11463
11464 acl_save_prefix="$prefix"
11465 prefix="$acl_final_prefix"
11466 acl_save_exec_prefix="$exec_prefix"
11467 exec_prefix="$acl_final_exec_prefix"
11468 eval x=\"$x\"
11469 exec_prefix="$acl_save_exec_prefix"
11470 prefix="$acl_save_prefix"
11471
11472 if test "X$x" = "X-I$additional_includedir"; then
11473 haveit=yes
11474 break
11475 fi
11476 done
11477 if test -z "$haveit"; then
11478 if test -d "$additional_includedir"; then
11479 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11480 fi
11481 fi
11482 fi
11483 fi
11484 fi
11485 if test -n "$found_la"; then
11486 save_libdir="$libdir"
11487 case "$found_la" in
11488 */* | *\\*) . "$found_la" ;;
11489 *) . "./$found_la" ;;
11490 esac
11491 libdir="$save_libdir"
11492 for dep in $dependency_libs; do
11493 case "$dep" in
11494 -L*)
11495 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11496 if test "X$additional_libdir" != "X/usr/lib"; then
11497 haveit=
11498 if test "X$additional_libdir" = "X/usr/local/lib"; then
11499 if test -n "$GCC"; then
11500 case $host_os in
11501 linux*) haveit=yes;;
11502 esac
11503 fi
11504 fi
11505 if test -z "$haveit"; then
11506 haveit=
11507 for x in $LDFLAGS $LIBICONV; do
11508
11509 acl_save_prefix="$prefix"
11510 prefix="$acl_final_prefix"
11511 acl_save_exec_prefix="$exec_prefix"
11512 exec_prefix="$acl_final_exec_prefix"
11513 eval x=\"$x\"
11514 exec_prefix="$acl_save_exec_prefix"
11515 prefix="$acl_save_prefix"
11516
11517 if test "X$x" = "X-L$additional_libdir"; then
11518 haveit=yes
11519 break
11520 fi
11521 done
11522 if test -z "$haveit"; then
11523 if test -d "$additional_libdir"; then
11524 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11525 fi
11526 fi
11527 haveit=
11528 for x in $LDFLAGS $LTLIBICONV; do
11529
11530 acl_save_prefix="$prefix"
11531 prefix="$acl_final_prefix"
11532 acl_save_exec_prefix="$exec_prefix"
11533 exec_prefix="$acl_final_exec_prefix"
11534 eval x=\"$x\"
11535 exec_prefix="$acl_save_exec_prefix"
11536 prefix="$acl_save_prefix"
11537
11538 if test "X$x" = "X-L$additional_libdir"; then
11539 haveit=yes
11540 break
11541 fi
11542 done
11543 if test -z "$haveit"; then
11544 if test -d "$additional_libdir"; then
11545 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11546 fi
11547 fi
11548 fi
11549 fi
11550 ;;
11551 -R*)
11552 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11553 if test "$enable_rpath" != no; then
11554 haveit=
11555 for x in $rpathdirs; do
11556 if test "X$x" = "X$dir"; then
11557 haveit=yes
11558 break
11559 fi
11560 done
11561 if test -z "$haveit"; then
11562 rpathdirs="$rpathdirs $dir"
11563 fi
11564 haveit=
11565 for x in $ltrpathdirs; do
11566 if test "X$x" = "X$dir"; then
11567 haveit=yes
11568 break
11569 fi
11570 done
11571 if test -z "$haveit"; then
11572 ltrpathdirs="$ltrpathdirs $dir"
11573 fi
11574 fi
11575 ;;
11576 -l*)
11577 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11578 ;;
11579 *.la)
11580 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11581 ;;
11582 *)
11583 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11584 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11585 ;;
11586 esac
11587 done
11588 fi
11589 else
11590 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11591 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11592 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11593 else
11594 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11595 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11596 fi
11597 fi
11598 fi
11599 fi
11600 done
11601 done
11602 if test "X$rpathdirs" != "X"; then
11603 if test -n "$hardcode_libdir_separator"; then
11604 alldirs=
11605 for found_dir in $rpathdirs; do
11606 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11607 done
11608 acl_save_libdir="$libdir"
11609 libdir="$alldirs"
11610 eval flag=\"$hardcode_libdir_flag_spec\"
11611 libdir="$acl_save_libdir"
11612 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11613 else
11614 for found_dir in $rpathdirs; do
11615 acl_save_libdir="$libdir"
11616 libdir="$found_dir"
11617 eval flag=\"$hardcode_libdir_flag_spec\"
11618 libdir="$acl_save_libdir"
11619 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11620 done
11621 fi
11622 fi
11623 if test "X$ltrpathdirs" != "X"; then
11624 for found_dir in $ltrpathdirs; do
11625 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11626 done
11627 fi
11628
11629
11630
11631
11632
11633
11634
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11636 $as_echo_n "checking for iconv... " >&6; }
11637 if ${am_cv_func_iconv+:} false; then :
11638 $as_echo_n "(cached) " >&6
11639 else
11640
11641 am_cv_func_iconv="no, consider installing GNU libiconv"
11642 am_cv_lib_iconv=no
11643 am_save_CPPFLAGS="$CPPFLAGS"
11644 CPPFLAGS="$CPPFLAGS $INCICONV"
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11647 #include <stdlib.h>
11648 #include <iconv.h>
11649 int
11650 main ()
11651 {
11652 iconv_t cd = iconv_open("","");
11653 iconv(cd,NULL,NULL,NULL,NULL);
11654 iconv_close(cd);
11655 ;
11656 return 0;
11657 }
11658 _ACEOF
11659 if ac_fn_cxx_try_link "$LINENO"; then :
11660 am_cv_func_iconv=yes
11661 fi
11662 rm -f core conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
11664 CPPFLAGS="$am_save_CPPFLAGS"
11665
11666 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11667 for _libs in .libs _libs; do
11668 am_save_CPPFLAGS="$CPPFLAGS"
11669 am_save_LIBS="$LIBS"
11670 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11671 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11673 /* end confdefs.h. */
11674 #include <stdlib.h>
11675 #include <iconv.h>
11676 int
11677 main ()
11678 {
11679 iconv_t cd = iconv_open("","");
11680 iconv(cd,NULL,NULL,NULL,NULL);
11681 iconv_close(cd);
11682 ;
11683 return 0;
11684 }
11685 _ACEOF
11686 if ac_fn_cxx_try_link "$LINENO"; then :
11687 INCICONV="-I../libiconv/include"
11688 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11689 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11690 am_cv_lib_iconv=yes
11691 am_cv_func_iconv=yes
11692 fi
11693 rm -f core conftest.err conftest.$ac_objext \
11694 conftest$ac_exeext conftest.$ac_ext
11695 CPPFLAGS="$am_save_CPPFLAGS"
11696 LIBS="$am_save_LIBS"
11697 if test "$am_cv_func_iconv" = "yes"; then
11698 break
11699 fi
11700 done
11701 fi
11702
11703 if test "$am_cv_func_iconv" != yes; then
11704 am_save_CPPFLAGS="$CPPFLAGS"
11705 am_save_LIBS="$LIBS"
11706 CPPFLAGS="$CPPFLAGS $INCICONV"
11707 LIBS="$LIBS $LIBICONV"
11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h. */
11710 #include <stdlib.h>
11711 #include <iconv.h>
11712 int
11713 main ()
11714 {
11715 iconv_t cd = iconv_open("","");
11716 iconv(cd,NULL,NULL,NULL,NULL);
11717 iconv_close(cd);
11718 ;
11719 return 0;
11720 }
11721 _ACEOF
11722 if ac_fn_cxx_try_link "$LINENO"; then :
11723 am_cv_lib_iconv=yes
11724 am_cv_func_iconv=yes
11725 fi
11726 rm -f core conftest.err conftest.$ac_objext \
11727 conftest$ac_exeext conftest.$ac_ext
11728 CPPFLAGS="$am_save_CPPFLAGS"
11729 LIBS="$am_save_LIBS"
11730 fi
11731
11732 fi
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11734 $as_echo "$am_cv_func_iconv" >&6; }
11735 if test "$am_cv_func_iconv" = yes; then
11736
11737 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11738
11739 fi
11740 if test "$am_cv_lib_iconv" = yes; then
11741
11742 for element in $INCICONV; do
11743 haveit=
11744 for x in $CPPFLAGS; do
11745
11746 acl_save_prefix="$prefix"
11747 prefix="$acl_final_prefix"
11748 acl_save_exec_prefix="$exec_prefix"
11749 exec_prefix="$acl_final_exec_prefix"
11750 eval x=\"$x\"
11751 exec_prefix="$acl_save_exec_prefix"
11752 prefix="$acl_save_prefix"
11753
11754 if test "X$x" = "X$element"; then
11755 haveit=yes
11756 break
11757 fi
11758 done
11759 if test -z "$haveit"; then
11760 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11761 fi
11762 done
11763
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11765 $as_echo_n "checking how to link with libiconv... " >&6; }
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11767 $as_echo "$LIBICONV" >&6; }
11768 else
11769 LIBICONV=
11770 LTLIBICONV=
11771 fi
11772
11773
11774
11775 if test "$am_cv_func_iconv" = yes; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11777 $as_echo_n "checking for iconv declaration... " >&6; }
11778 if ${am_cv_proto_iconv+:} false; then :
11779 $as_echo_n "(cached) " >&6
11780 else
11781
11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h. */
11784
11785 #include <stdlib.h>
11786 #include <iconv.h>
11787 extern
11788 #ifdef __cplusplus
11789 "C"
11790 #endif
11791 #if defined(__STDC__) || defined(__cplusplus)
11792 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11793 #else
11794 size_t iconv();
11795 #endif
11796
11797 int
11798 main ()
11799 {
11800
11801 ;
11802 return 0;
11803 }
11804 _ACEOF
11805 if ac_fn_cxx_try_compile "$LINENO"; then :
11806 am_cv_proto_iconv_arg1=""
11807 else
11808 am_cv_proto_iconv_arg1="const"
11809 fi
11810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11811 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);"
11812 fi
11813
11814 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11816 }$am_cv_proto_iconv" >&5
11817 $as_echo "${ac_t:-
11818 }$am_cv_proto_iconv" >&6; }
11819
11820 cat >>confdefs.h <<_ACEOF
11821 #define ICONV_CONST $am_cv_proto_iconv_arg1
11822 _ACEOF
11823
11824 fi
11825
11826
11827 # Until we have in-tree GNU iconv:
11828 LIBICONV_DEP=
11829 if test -f "$LTLIBICONV"; then
11830 LIBICONV_DEP=$LTLIBICONV
11831 fi
11832
11833
11834
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11836 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11837 if ${am_cv_val_LC_MESSAGES+:} false; then :
11838 $as_echo_n "(cached) " >&6
11839 else
11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11841 /* end confdefs.h. */
11842 #include <locale.h>
11843 int
11844 main ()
11845 {
11846 return LC_MESSAGES
11847 ;
11848 return 0;
11849 }
11850 _ACEOF
11851 if ac_fn_cxx_try_link "$LINENO"; then :
11852 am_cv_val_LC_MESSAGES=yes
11853 else
11854 am_cv_val_LC_MESSAGES=no
11855 fi
11856 rm -f core conftest.err conftest.$ac_objext \
11857 conftest$ac_exeext conftest.$ac_ext
11858 fi
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11860 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11861 if test $am_cv_val_LC_MESSAGES = yes; then
11862
11863 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11864
11865 fi
11866
11867
11868
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11870 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11871 if ${am_cv_langinfo_codeset+:} false; then :
11872 $as_echo_n "(cached) " >&6
11873 else
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11876 #include <langinfo.h>
11877 int
11878 main ()
11879 {
11880 char* cs = nl_langinfo(CODESET);
11881 ;
11882 return 0;
11883 }
11884 _ACEOF
11885 if ac_fn_cxx_try_link "$LINENO"; then :
11886 am_cv_langinfo_codeset=yes
11887 else
11888 am_cv_langinfo_codeset=no
11889 fi
11890 rm -f core conftest.err conftest.$ac_objext \
11891 conftest$ac_exeext conftest.$ac_ext
11892
11893 fi
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11895 $as_echo "$am_cv_langinfo_codeset" >&6; }
11896 if test $am_cv_langinfo_codeset = yes; then
11897
11898 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11899
11900 fi
11901
11902
11903 # We will need to find libiberty.h and ansidecl.h
11904 saved_CFLAGS="$CFLAGS"
11905 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11906 saved_CXXFLAGS="$CXXFLAGS"
11907 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11908
11909 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11910 # normal autoconf function for these. But force definition of
11911 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11912 # basename handling in libiberty.h.
11913 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11914 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11915 #undef HAVE_DECL_BASENAME
11916 #define HAVE_DECL_BASENAME 1
11917 #include \"ansidecl.h\"
11918 #include \"system.h\"
11919 "
11920 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11921 ac_have_decl=1
11922 else
11923 ac_have_decl=0
11924 fi
11925
11926 cat >>confdefs.h <<_ACEOF
11927 #define HAVE_DECL_BASENAME $ac_have_decl
11928 _ACEOF
11929 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11930 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11931 #undef HAVE_DECL_BASENAME
11932 #define HAVE_DECL_BASENAME 1
11933 #include \"ansidecl.h\"
11934 #include \"system.h\"
11935 "
11936 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11937 ac_have_decl=1
11938 else
11939 ac_have_decl=0
11940 fi
11941
11942 cat >>confdefs.h <<_ACEOF
11943 #define HAVE_DECL_STRSTR $ac_have_decl
11944 _ACEOF
11945
11946
11947 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11948 madvise stpcpy strnlen strsignal strverscmp \
11949 strtol strtoul strtoll strtoull setenv unsetenv \
11950 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11951 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
11952 do
11953 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11955 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11956 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11957 $as_echo_n "(cached) " >&6
11958 else
11959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h. */
11961 #undef $ac_tr_decl
11962 #define $ac_tr_decl 1
11963
11964 #include "ansidecl.h"
11965 #include "system.h"
11966
11967 int
11968 main ()
11969 {
11970 #ifndef $ac_func
11971 char *(*pfn) = (char *(*)) $ac_func ;
11972 #endif
11973 ;
11974 return 0;
11975 }
11976 _ACEOF
11977 if ac_fn_cxx_try_compile "$LINENO"; then :
11978 eval "gcc_cv_have_decl_$ac_func=yes"
11979 else
11980 eval "gcc_cv_have_decl_$ac_func=no"
11981 fi
11982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11983 fi
11984
11985 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11987 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11988 #define $ac_tr_decl 1
11989 _ACEOF
11990
11991 else
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11994 #define $ac_tr_decl 0
11995 _ACEOF
11996
11997 fi
11998
11999 done
12000
12001
12002 for ac_func in getrlimit setrlimit getrusage
12003 do
12004 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12006 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12007 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12012 #undef $ac_tr_decl
12013 #define $ac_tr_decl 1
12014
12015 #include "ansidecl.h"
12016 #include "system.h"
12017 #ifdef HAVE_SYS_RESOURCE_H
12018 #include <sys/resource.h>
12019 #endif
12020
12021
12022 int
12023 main ()
12024 {
12025 #ifndef $ac_func
12026 char *(*pfn) = (char *(*)) $ac_func ;
12027 #endif
12028 ;
12029 return 0;
12030 }
12031 _ACEOF
12032 if ac_fn_cxx_try_compile "$LINENO"; then :
12033 eval "gcc_cv_have_decl_$ac_func=yes"
12034 else
12035 eval "gcc_cv_have_decl_$ac_func=no"
12036 fi
12037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12038 fi
12039
12040 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12042 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12043 #define $ac_tr_decl 1
12044 _ACEOF
12045
12046 else
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12049 #define $ac_tr_decl 0
12050 _ACEOF
12051
12052 fi
12053
12054 done
12055
12056
12057 for ac_func in mallinfo mallinfo2
12058 do
12059 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12061 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12062 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h. */
12067 #undef $ac_tr_decl
12068 #define $ac_tr_decl 1
12069
12070 #include "ansidecl.h"
12071 #include "system.h"
12072 #ifdef HAVE_MALLOC_H
12073 #include <malloc.h>
12074 #endif
12075
12076
12077 int
12078 main ()
12079 {
12080 #ifndef $ac_func
12081 char *(*pfn) = (char *(*)) $ac_func ;
12082 #endif
12083 ;
12084 return 0;
12085 }
12086 _ACEOF
12087 if ac_fn_cxx_try_compile "$LINENO"; then :
12088 eval "gcc_cv_have_decl_$ac_func=yes"
12089 else
12090 eval "gcc_cv_have_decl_$ac_func=no"
12091 fi
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12093 fi
12094
12095 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12097 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12098 #define $ac_tr_decl 1
12099 _ACEOF
12100
12101 else
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12104 #define $ac_tr_decl 0
12105 _ACEOF
12106
12107 fi
12108
12109 done
12110
12111
12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h. */
12114
12115 #include "ansidecl.h"
12116 #include "system.h"
12117 #ifdef HAVE_SYS_RESOURCE_H
12118 #include <sys/resource.h>
12119 #endif
12120
12121 int
12122 main ()
12123 {
12124 rlim_t l = 0;
12125 ;
12126 return 0;
12127 }
12128 _ACEOF
12129 if ac_fn_cxx_try_compile "$LINENO"; then :
12130
12131 else
12132
12133 $as_echo "#define rlim_t long" >>confdefs.h
12134
12135 fi
12136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12137
12138 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12139 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12140 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12141 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12142 for ac_func in ldgetname
12143 do
12144 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12146 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12147 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12152 #undef $ac_tr_decl
12153 #define $ac_tr_decl 1
12154
12155 #include "ansidecl.h"
12156 #include "system.h"
12157 #ifdef HAVE_LDFCN_H
12158 #undef FREAD
12159 #undef FWRITE
12160 #include <ldfcn.h>
12161 #endif
12162
12163
12164 int
12165 main ()
12166 {
12167 #ifndef $ac_func
12168 char *(*pfn) = (char *(*)) $ac_func ;
12169 #endif
12170 ;
12171 return 0;
12172 }
12173 _ACEOF
12174 if ac_fn_cxx_try_compile "$LINENO"; then :
12175 eval "gcc_cv_have_decl_$ac_func=yes"
12176 else
12177 eval "gcc_cv_have_decl_$ac_func=no"
12178 fi
12179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12180 fi
12181
12182 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12184 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12185 #define $ac_tr_decl 1
12186 _ACEOF
12187
12188 else
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12191 #define $ac_tr_decl 0
12192 _ACEOF
12193
12194 fi
12195
12196 done
12197
12198
12199 for ac_func in times
12200 do
12201 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12203 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12204 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12208 /* end confdefs.h. */
12209 #undef $ac_tr_decl
12210 #define $ac_tr_decl 1
12211
12212 #include "ansidecl.h"
12213 #include "system.h"
12214 #ifdef HAVE_SYS_TIMES_H
12215 #include <sys/times.h>
12216 #endif
12217
12218
12219 int
12220 main ()
12221 {
12222 #ifndef $ac_func
12223 char *(*pfn) = (char *(*)) $ac_func ;
12224 #endif
12225 ;
12226 return 0;
12227 }
12228 _ACEOF
12229 if ac_fn_cxx_try_compile "$LINENO"; then :
12230 eval "gcc_cv_have_decl_$ac_func=yes"
12231 else
12232 eval "gcc_cv_have_decl_$ac_func=no"
12233 fi
12234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235 fi
12236
12237 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12239 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12240 #define $ac_tr_decl 1
12241 _ACEOF
12242
12243 else
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12246 #define $ac_tr_decl 0
12247 _ACEOF
12248
12249 fi
12250
12251 done
12252
12253
12254 for ac_func in sigaltstack
12255 do
12256 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12258 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12259 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12260 $as_echo_n "(cached) " >&6
12261 else
12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12264 #undef $ac_tr_decl
12265 #define $ac_tr_decl 1
12266
12267 #include "ansidecl.h"
12268 #include "system.h"
12269 #include <signal.h>
12270
12271
12272 int
12273 main ()
12274 {
12275 #ifndef $ac_func
12276 char *(*pfn) = (char *(*)) $ac_func ;
12277 #endif
12278 ;
12279 return 0;
12280 }
12281 _ACEOF
12282 if ac_fn_cxx_try_compile "$LINENO"; then :
12283 eval "gcc_cv_have_decl_$ac_func=yes"
12284 else
12285 eval "gcc_cv_have_decl_$ac_func=no"
12286 fi
12287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12288 fi
12289
12290 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12292 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12293 #define $ac_tr_decl 1
12294 _ACEOF
12295
12296 else
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12299 #define $ac_tr_decl 0
12300 _ACEOF
12301
12302 fi
12303
12304 done
12305
12306
12307 # More time-related stuff.
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12309 $as_echo_n "checking for struct tms... " >&6; }
12310 if ${ac_cv_struct_tms+:} false; then :
12311 $as_echo_n "(cached) " >&6
12312 else
12313
12314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h. */
12316
12317 #include "ansidecl.h"
12318 #include "system.h"
12319 #ifdef HAVE_SYS_TIMES_H
12320 #include <sys/times.h>
12321 #endif
12322
12323 int
12324 main ()
12325 {
12326 struct tms tms;
12327 ;
12328 return 0;
12329 }
12330 _ACEOF
12331 if ac_fn_cxx_try_compile "$LINENO"; then :
12332 ac_cv_struct_tms=yes
12333 else
12334 ac_cv_struct_tms=no
12335 fi
12336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12337 fi
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12339 $as_echo "$ac_cv_struct_tms" >&6; }
12340 if test $ac_cv_struct_tms = yes; then
12341
12342 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12343
12344 fi
12345
12346 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12347 # revisit after autoconf 2.50.
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12349 $as_echo_n "checking for clock_t... " >&6; }
12350 if ${gcc_cv_type_clock_t+:} false; then :
12351 $as_echo_n "(cached) " >&6
12352 else
12353
12354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12355 /* end confdefs.h. */
12356
12357 #include "ansidecl.h"
12358 #include "system.h"
12359
12360 int
12361 main ()
12362 {
12363 clock_t x;
12364 ;
12365 return 0;
12366 }
12367 _ACEOF
12368 if ac_fn_cxx_try_compile "$LINENO"; then :
12369 gcc_cv_type_clock_t=yes
12370 else
12371 gcc_cv_type_clock_t=no
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374 fi
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12376 $as_echo "$gcc_cv_type_clock_t" >&6; }
12377 if test $gcc_cv_type_clock_t = yes; then
12378
12379 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12380
12381 fi
12382
12383 # Check if F_SETLKW is supported by fcntl.
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12385 $as_echo_n "checking for F_SETLKW... " >&6; }
12386 if ${ac_cv_f_setlkw+:} false; then :
12387 $as_echo_n "(cached) " >&6
12388 else
12389
12390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h. */
12392
12393 #include <fcntl.h>
12394 int
12395 main ()
12396 {
12397
12398 struct flock fl;
12399 fl.l_whence = 0;
12400 fl.l_start = 0;
12401 fl.l_len = 0;
12402 fl.l_pid = 0;
12403 return fcntl (1, F_SETLKW, &fl);
12404 ;
12405 return 0;
12406 }
12407 _ACEOF
12408 if ac_fn_cxx_try_compile "$LINENO"; then :
12409 ac_cv_f_setlkw=yes
12410 else
12411 ac_cv_f_setlkw=no
12412 fi
12413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12414 fi
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12416 $as_echo "$ac_cv_f_setlkw" >&6; }
12417 if test $ac_cv_f_setlkw = yes; then
12418
12419 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12420
12421 fi
12422
12423 # Check if O_CLOEXEC is defined by fcntl
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12425 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12426 if ${ac_cv_o_cloexec+:} false; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12432
12433 #include <fcntl.h>
12434 int
12435 main ()
12436 {
12437
12438 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12439 ;
12440 return 0;
12441 }
12442 _ACEOF
12443 if ac_fn_cxx_try_compile "$LINENO"; then :
12444 ac_cv_o_cloexec=yes
12445 else
12446 ac_cv_o_cloexec=no
12447 fi
12448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12449 fi
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12451 $as_echo "$ac_cv_o_cloexec" >&6; }
12452 if test $ac_cv_o_cloexec = yes; then
12453
12454 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12455
12456 fi
12457
12458 # Check if O_NONBLOCK is defined by fcntl
12459 for ac_header in fcntl.h
12460 do :
12461 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12462 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12463 cat >>confdefs.h <<_ACEOF
12464 #define HAVE_FCNTL_H 1
12465 _ACEOF
12466
12467 fi
12468 done
12469
12470 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12471 "
12472 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12473
12474 fi
12475
12476 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12477
12478 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12479
12480 fi
12481
12482
12483 # C++ Modules would like some networking features to provide the mapping
12484 # server. You can still use modules without them though.
12485 # The following network-related checks could probably do with some
12486 # Windows and other non-linux defenses and checking.
12487
12488 # Local socket connectivity wants AF_UNIX networking
12489 # Check for AF_UNIX networking
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12491 $as_echo_n "checking for AF_UNIX... " >&6; }
12492 if ${ac_cv_af_unix+:} false; then :
12493 $as_echo_n "(cached) " >&6
12494 else
12495
12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497 /* end confdefs.h. */
12498
12499 #include <sys/types.h>
12500 #include <sys/socket.h>
12501 #include <sys/un.h>
12502 #include <netinet/in.h>
12503 int
12504 main ()
12505 {
12506
12507 sockaddr_un un;
12508 un.sun_family = AF_UNSPEC;
12509 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12510 connect (fd, (sockaddr *)&un, sizeof (un));
12511 ;
12512 return 0;
12513 }
12514 _ACEOF
12515 if ac_fn_cxx_try_compile "$LINENO"; then :
12516 ac_cv_af_unix=yes
12517 else
12518 ac_cv_af_unix=no
12519 fi
12520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12521 fi
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12523 $as_echo "$ac_cv_af_unix" >&6; }
12524 if test $ac_cv_af_unix = yes; then
12525
12526 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12527
12528 fi
12529
12530 # Remote socket connectivity wants AF_INET6 networking
12531 # Check for AF_INET6 networking
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12533 $as_echo_n "checking for AF_INET6... " >&6; }
12534 if ${ac_cv_af_inet6+:} false; then :
12535 $as_echo_n "(cached) " >&6
12536 else
12537
12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539 /* end confdefs.h. */
12540
12541 #include <sys/types.h>
12542 #include <sys/socket.h>
12543 #include <netinet/in.h>
12544 #include <netdb.h>
12545 int
12546 main ()
12547 {
12548
12549 sockaddr_in6 in6;
12550 in6.sin6_family = AF_UNSPEC;
12551 struct addrinfo *addrs = 0;
12552 struct addrinfo hints;
12553 hints.ai_flags = 0;
12554 hints.ai_family = AF_INET6;
12555 hints.ai_socktype = SOCK_STREAM;
12556 hints.ai_protocol = 0;
12557 hints.ai_canonname = 0;
12558 hints.ai_addr = 0;
12559 hints.ai_next = 0;
12560 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12561 const char *str = gai_strerror (e);
12562 freeaddrinfo (addrs);
12563 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12564 connect (fd, (sockaddr *)&in6, sizeof (in6));
12565 ;
12566 return 0;
12567 }
12568 _ACEOF
12569 if ac_fn_cxx_try_compile "$LINENO"; then :
12570 ac_cv_af_inet6=yes
12571 else
12572 ac_cv_af_inet6=no
12573 fi
12574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12575 fi
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12577 $as_echo "$ac_cv_af_inet6" >&6; }
12578 if test $ac_cv_af_inet6 = yes; then
12579
12580 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12581
12582 fi
12583
12584 # Check if _LK_LOCK is supported by _locking
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12586 $as_echo_n "checking for _LK_LOCK... " >&6; }
12587 if ${ac_cv_lk_lock+:} false; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590
12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592 /* end confdefs.h. */
12593
12594 #include <io.h>
12595 #include <sys/locking.h>
12596 int
12597 main ()
12598 {
12599
12600 int fd;
12601 return _locking (fd, _LK_LOCK, 0);
12602 ;
12603 return 0;
12604 }
12605 _ACEOF
12606 if ac_fn_cxx_try_compile "$LINENO"; then :
12607 ac_cv_lk_lock=yes
12608 else
12609 ac_cv_lk_lock=no
12610 fi
12611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612 fi
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12614 $as_echo "$ac_cv_lk_lock" >&6; }
12615 if test $ac_cv_lk_lock = yes; then
12616
12617 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12618
12619 fi
12620
12621 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12622 CFLAGS="$saved_CFLAGS"
12623 CXXFLAGS="$saved_CXXFLAGS"
12624
12625 # mkdir takes a single argument on some systems.
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12627 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12628 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12629 $as_echo_n "(cached) " >&6
12630 else
12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632 /* end confdefs.h. */
12633
12634 #include <sys/types.h>
12635 #ifdef HAVE_SYS_STAT_H
12636 # include <sys/stat.h>
12637 #endif
12638 #ifdef HAVE_UNISTD_H
12639 # include <unistd.h>
12640 #endif
12641 #ifdef HAVE_DIRECT_H
12642 # include <direct.h>
12643 #endif
12644 int
12645 main ()
12646 {
12647 mkdir ("foo", 0);
12648 ;
12649 return 0;
12650 }
12651 _ACEOF
12652 if ac_fn_cxx_try_compile "$LINENO"; then :
12653 gcc_cv_mkdir_takes_one_arg=no
12654 else
12655 gcc_cv_mkdir_takes_one_arg=yes
12656 fi
12657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12658 fi
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12660 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12661 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12662
12663 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12664
12665 fi
12666
12667
12668 # File extensions
12669 manext='.1'
12670 objext='.o'
12671
12672
12673
12674 # With Setjmp/Longjmp based exception handling.
12675 # Check whether --enable-sjlj-exceptions was given.
12676 if test "${enable_sjlj_exceptions+set}" = set; then :
12677 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
12678 else
12679 case $target in
12680 lm32*-*-*)
12681 force_sjlj_exceptions=yes
12682 enableval=yes
12683 ;;
12684 *)
12685 force_sjlj_exceptions=no
12686 ;;
12687 esac
12688 fi
12689
12690 if test $force_sjlj_exceptions = yes; then
12691 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12692
12693 cat >>confdefs.h <<_ACEOF
12694 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12695 _ACEOF
12696
12697 fi
12698
12699 # --------------------------------------------------------
12700 # Build, host, and target specific configuration fragments
12701 # --------------------------------------------------------
12702
12703 # Collect build-machine-specific information.
12704 . ${srcdir}/config.build || exit 1
12705
12706 # Collect host-machine-specific information.
12707 . ${srcdir}/config.host || exit 1
12708
12709 target_gtfiles=
12710
12711 # Collect target-machine-specific information.
12712 . ${srcdir}/config.gcc || exit 1
12713
12714 extra_objs="${host_extra_objs} ${extra_objs}"
12715 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12716
12717 # Default the target-machine variables that were not explicitly set.
12718 if test x"$tm_file" = x
12719 then tm_file=$cpu_type/$cpu_type.h; fi
12720
12721 if test x"$extra_headers" = x
12722 then extra_headers=; fi
12723
12724 if test x$md_file = x
12725 then md_file=$cpu_type/$cpu_type.md; fi
12726
12727 if test x$out_file = x
12728 then out_file=$cpu_type/$cpu_type.cc; fi
12729
12730 if test x"$tmake_file" = x
12731 then tmake_file=$cpu_type/t-$cpu_type
12732 fi
12733
12734 # Support --enable-initfini-array.
12735 if test x$enable_initfini_array != xno; then
12736 tm_file="${tm_file} initfini-array.h"
12737 fi
12738
12739 if test x"$dwarf2" = xyes
12740 then tm_file="$tm_file tm-dwarf2.h"
12741 fi
12742
12743 # Say what files are being used for the output code and MD file.
12744 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12745 echo "Using \`$srcdir/config/$md_file' as machine description file."
12746
12747 # If any of the xm_file variables contain nonexistent files, warn
12748 # about them and drop them.
12749
12750 bx=
12751 for x in $build_xm_file; do
12752 if test -f $srcdir/config/$x
12753 then bx="$bx $x"
12754 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12755 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12756 fi
12757 done
12758 build_xm_file="$bx"
12759
12760 hx=
12761 for x in $host_xm_file; do
12762 if test -f $srcdir/config/$x
12763 then hx="$hx $x"
12764 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12765 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12766 fi
12767 done
12768 host_xm_file="$hx"
12769
12770 tx=
12771 for x in $xm_file; do
12772 if test -f $srcdir/config/$x
12773 then tx="$tx $x"
12774 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12775 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12776 fi
12777 done
12778 xm_file="$tx"
12779
12780 count=a
12781 for f in $tm_file; do
12782 count=${count}x
12783 done
12784 if test $count = ax; then
12785 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12786 else
12787 echo "Using the following target machine macro files:"
12788 for f in $tm_file; do
12789 echo " $srcdir/config/$f"
12790 done
12791 fi
12792
12793 if test x$use_long_long_for_widest_fast_int = xyes; then
12794
12795 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12796
12797 fi
12798
12799 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12800
12801 cat >>confdefs.h <<_ACEOF
12802 #define HAVE_GNU_LD $gnu_ld_bool
12803 _ACEOF
12804
12805
12806 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12807
12808 cat >>confdefs.h <<_ACEOF
12809 #define HAVE_GNU_AS $gnu_as_bool
12810 _ACEOF
12811
12812
12813 count=a
12814 for f in $host_xm_file; do
12815 count=${count}x
12816 done
12817 if test $count = a; then
12818 :
12819 elif test $count = ax; then
12820 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12821 else
12822 echo "Using the following host machine macro files:"
12823 for f in $host_xm_file; do
12824 echo " $srcdir/config/$f"
12825 done
12826 fi
12827 echo "Using ${out_host_hook_obj} for host machine hooks."
12828
12829 if test "$host_xm_file" != "$build_xm_file"; then
12830 count=a
12831 for f in $build_xm_file; do
12832 count=${count}x
12833 done
12834 if test $count = a; then
12835 :
12836 elif test $count = ax; then
12837 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12838 else
12839 echo "Using the following build machine macro files:"
12840 for f in $build_xm_file; do
12841 echo " $srcdir/config/$f"
12842 done
12843 fi
12844 fi
12845
12846 if test -n "$configured_native_system_header_dir"; then
12847 native_system_header_dir=$configured_native_system_header_dir
12848 fi
12849 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12850
12851
12852 case ${host} in
12853 powerpc*-*-darwin*)
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12855 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12856 if ${gcc_cv_mcontext_underscores+:} false; then :
12857 $as_echo_n "(cached) " >&6
12858 else
12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h. */
12861
12862 #include <sys/cdefs.h>
12863 #include <sys/signal.h>
12864 #include <ucontext.h>
12865 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12866
12867 _ACEOF
12868 if ac_fn_cxx_try_compile "$LINENO"; then :
12869 gcc_cv_mcontext_underscores=no
12870 else
12871 gcc_cv_mcontext_underscores=yes
12872 fi
12873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874 fi
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12876 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12877 if test $gcc_cv_mcontext_underscores = yes; then
12878
12879 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12880
12881 fi
12882 ;;
12883 esac
12884
12885 # ---------
12886 # Threading
12887 # ---------
12888
12889 # Check if a valid thread package
12890 case ${enable_threads} in
12891 "" | no)
12892 # No threads
12893 target_thread_file='single'
12894 ;;
12895 yes)
12896 # default
12897 target_thread_file='single'
12898 ;;
12899 aix | dce | lynx | mipssde | posix | rtems | \
12900 single | tpf | vxworks | win32 | mcf)
12901 target_thread_file=${enable_threads}
12902 ;;
12903 *)
12904 echo "${enable_threads} is an unknown thread package" 1>&2
12905 exit 1
12906 ;;
12907 esac
12908
12909 if test x${thread_file} = x; then
12910 # No thread file set by target-specific clauses in config.gcc,
12911 # so use file chosen by default logic above
12912 thread_file=${target_thread_file}
12913 fi
12914
12915 # --------
12916 # UNSORTED
12917 # --------
12918
12919 use_cxa_atexit=no
12920 if test x$enable___cxa_atexit = xyes || \
12921 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12922 if test x$host = x$target; then
12923 case $host in
12924 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12925 # keyed to flag_use_cxa_atexit
12926 *-*-mingw32*)
12927 use_cxa_atexit=yes
12928 ;;
12929 powerpc-ibm-aix*)
12930 use_cxa_atexit=yes
12931 ;;
12932 *)
12933 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12934 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12935 use_cxa_atexit=yes
12936 else
12937 echo "__cxa_atexit can't be enabled on this target"
12938 fi
12939
12940 ;;
12941 esac
12942 else
12943 # We can't check for __cxa_atexit when building a cross, so assume
12944 # it is available
12945 use_cxa_atexit=yes
12946 fi
12947 if test x$use_cxa_atexit = xyes; then
12948
12949 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12950
12951 fi
12952 fi
12953
12954 # Look for a file containing extra machine modes.
12955 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12956 extra_modes_file='$(srcdir)'/config/${extra_modes}
12957
12958
12959 cat >>confdefs.h <<_ACEOF
12960 #define EXTRA_MODES_FILE "config/$extra_modes"
12961 _ACEOF
12962
12963 fi
12964
12965 # Convert extra_options into a form suitable for Makefile use.
12966 extra_opt_files=
12967 all_opt_files=
12968 for f in $extra_options; do
12969 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12970 all_opt_files="$all_opt_files $srcdir/config/$f"
12971 done
12972
12973
12974 # auto-host.h is the file containing items generated by autoconf and is
12975 # the first file included by config.h.
12976 # If host=build, it is correct to have bconfig include auto-host.h
12977 # as well. If host!=build, we are in error and need to do more
12978 # work to find out the build config parameters.
12979 if test x$host = x$build
12980 then
12981 build_auto=auto-host.h
12982 HAVE_AUTO_BUILD='# '
12983 else
12984 # We create a subdir, then run autoconf in the subdir.
12985 # To prevent recursion we set host and build for the new
12986 # invocation of configure to the build for this invocation
12987 # of configure.
12988 tempdir=build.$$
12989 rm -rf $tempdir
12990 mkdir $tempdir
12991 cd $tempdir
12992 case ${srcdir} in
12993 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12994 *) realsrcdir=../${srcdir};;
12995 esac
12996 # Clearing GMPINC is necessary to prevent host headers being
12997 # used by the build compiler. Defining GENERATOR_FILE stops
12998 # system.h from including gmp.h.
12999 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13000 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13001 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13002 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13003 ${realsrcdir}/configure \
13004 --enable-languages=${enable_languages-all} \
13005 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13006 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13007 --target=$target_alias --host=$build_alias \
13008 --build=$build_alias || exit # retaining $tempdir
13009
13010 # We just finished tests for the build machine, so rename
13011 # the file auto-build.h in the gcc directory.
13012 mv auto-host.h ../auto-build.h
13013 cd ..
13014 rm -rf $tempdir
13015 build_auto=auto-build.h
13016 HAVE_AUTO_BUILD=
13017 fi
13018
13019
13020
13021 tm_file="${tm_file} defaults.h"
13022 tm_p_file="${tm_p_file} tm-preds.h"
13023 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13024 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13025 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13026 # put this back in temporarily.
13027 xm_file="auto-host.h ansidecl.h ${xm_file}"
13028
13029 # --------
13030 # UNSORTED
13031 # --------
13032
13033 # Compile in configure arguments.
13034 if test -f configargs.h ; then
13035 # Being re-configured.
13036 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13037 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13038 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13039 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13040 fi
13041 else
13042 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13043 fi
13044
13045 # Double all backslashes and backslash all quotes to turn
13046 # gcc_config_arguments into a C string.
13047 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13048 $gcc_config_arguments
13049 EOF
13050 gcc_config_arguments_str=`cat conftest.out`
13051 rm -f conftest.out
13052
13053 cat > configargs.h <<EOF
13054 /* Generated automatically. */
13055 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13056 static const char thread_model[] = "$thread_file";
13057
13058 static const struct {
13059 const char *name, *value;
13060 } configure_default_options[] = $configure_default_options;
13061 EOF
13062
13063 gcc_BASEVER=`cat $srcdir/BASE-VER`
13064 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13065 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13066 if test -f $srcdir/REVISION ; then
13067 gcc_REVISION=`cat $srcdir/REVISION`
13068 else
13069 gcc_REVISION=""
13070 fi
13071 cat > plugin-version.h <<EOF
13072 #include "configargs.h"
13073
13074 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13075 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13076 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13077 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13078
13079 static char basever[] = "$gcc_BASEVER";
13080 static char datestamp[] = "$gcc_DATESTAMP";
13081 static char devphase[] = "$gcc_DEVPHASE";
13082 static char revision[] = "$gcc_REVISION";
13083
13084 /* FIXME plugins: We should make the version information more precise.
13085 One way to do is to add a checksum. */
13086
13087 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13088 devphase, revision,
13089 configuration_arguments};
13090 EOF
13091
13092 # Determine what GCC version number to use in filesystem paths.
13093
13094 get_gcc_base_ver="cat"
13095
13096 # Check whether --with-gcc-major-version-only was given.
13097 if test "${with_gcc_major_version_only+set}" = set; then :
13098 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13099 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13100 fi
13101
13102 fi
13103
13104
13105
13106
13107 # Internationalization
13108 # If we haven't got the data from the intl directory,
13109 # assume NLS is disabled.
13110 USE_NLS=no
13111 LIBINTL=
13112 LIBINTL_DEP=
13113 INCINTL=
13114 XGETTEXT=
13115 GMSGFMT=
13116 POSUB=
13117
13118 if test -f ../intl/config.intl; then
13119 . ../intl/config.intl
13120 fi
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13122 $as_echo_n "checking whether NLS is requested... " >&6; }
13123 if test x"$USE_NLS" != xyes; then
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125 $as_echo "no" >&6; }
13126 else
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13128 $as_echo "yes" >&6; }
13129
13130 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13131
13132
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13134 $as_echo_n "checking for catalogs to be installed... " >&6; }
13135 # Look for .po and .gmo files in the source directory.
13136 CATALOGS=
13137 XLINGUAS=
13138 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13139 # If there aren't any .gmo files the shell will give us the
13140 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13141 # weeded out.
13142 case "$cat" in *\**)
13143 continue;;
13144 esac
13145 # The quadruple backslash is collapsed to a double backslash
13146 # by the backticks, then collapsed again by the double quotes,
13147 # leaving us with one backslash in the sed expression (right
13148 # before the dot that mustn't act as a wildcard).
13149 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13150 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13151 # The user is allowed to set LINGUAS to a list of languages to
13152 # install catalogs for. If it's empty that means "all of them."
13153 if test "x$LINGUAS" = x; then
13154 CATALOGS="$CATALOGS $cat"
13155 XLINGUAS="$XLINGUAS $lang"
13156 else
13157 case "$LINGUAS" in *$lang*)
13158 CATALOGS="$CATALOGS $cat"
13159 XLINGUAS="$XLINGUAS $lang"
13160 ;;
13161 esac
13162 fi
13163 done
13164 LINGUAS="$XLINGUAS"
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13166 $as_echo "$LINGUAS" >&6; }
13167
13168
13169 DATADIRNAME=share
13170
13171 INSTOBJEXT=.mo
13172
13173 GENCAT=gencat
13174
13175 CATOBJEXT=.gmo
13176
13177 fi
13178
13179 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13180 # -liconv on the link line twice.
13181 case "$LIBINTL" in *$LIBICONV*)
13182 LIBICONV= ;;
13183 esac
13184
13185 # Check whether --enable-secureplt was given.
13186 if test "${enable_secureplt+set}" = set; then :
13187 enableval=$enable_secureplt;
13188 fi
13189
13190
13191 # Check whether --enable-mingw-wildcard was given.
13192 if test "${enable_mingw_wildcard+set}" = set; then :
13193 enableval=$enable_mingw_wildcard;
13194 else
13195 enable_mingw_wildcard=platform
13196 fi
13197
13198 if test x"$enable_mingw_wildcard" != xplatform ; then :
13199
13200 cat >>confdefs.h <<_ACEOF
13201 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13202 _ACEOF
13203
13204 fi
13205
13206 # Check whether --enable-large-address-aware was given.
13207 if test "${enable_large_address_aware+set}" = set; then :
13208 enableval=$enable_large_address_aware;
13209 fi
13210
13211 if test x"$enable_large_address_aware" = xyes; then :
13212
13213 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13214
13215 fi
13216
13217 # Check whether --enable-leading-mingw64-underscores was given.
13218 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13219 enableval=$enable_leading_mingw64_underscores;
13220 fi
13221
13222 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
13223
13224 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13225
13226 fi
13227
13228 # Check whether --enable-cld was given.
13229 if test "${enable_cld+set}" = set; then :
13230 enableval=$enable_cld;
13231 else
13232 enable_cld=no
13233 fi
13234
13235
13236 # Check whether --enable-frame-pointer was given.
13237 if test "${enable_frame_pointer+set}" = set; then :
13238 enableval=$enable_frame_pointer;
13239 else
13240
13241 case $target_os in
13242 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13243 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13244 enable_frame_pointer=no
13245 ;;
13246 *)
13247 enable_frame_pointer=yes
13248 ;;
13249 esac
13250
13251 fi
13252
13253
13254 case $target in
13255 i[34567]86-*-* | x86_64-*-*)
13256 if test "x$enable_cld" = xyes; then
13257 tm_defines="${tm_defines} USE_IX86_CLD=1"
13258 fi
13259 if test "x$enable_frame_pointer" = xyes; then
13260 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13261 fi
13262 ;;
13263 esac
13264
13265 # Windows32 Registry support for specifying GCC installation paths.
13266 # Check whether --enable-win32-registry was given.
13267 if test "${enable_win32_registry+set}" = set; then :
13268 enableval=$enable_win32_registry;
13269 fi
13270
13271
13272 case $host_os in
13273 win32 | pe | cygwin* | mingw32*)
13274 if test "x$enable_win32_registry" != xno; then
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13276 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13277 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13278 $as_echo_n "(cached) " >&6
13279 else
13280 ac_func_search_save_LIBS=$LIBS
13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13282 /* end confdefs.h. */
13283
13284 /* Override any GCC internal prototype to avoid an error.
13285 Use char because int might match the return type of a GCC
13286 builtin and then its argument prototype would still apply. */
13287 #ifdef __cplusplus
13288 extern "C"
13289 #endif
13290 char RegOpenKeyExA ();
13291 int
13292 main ()
13293 {
13294 return RegOpenKeyExA ();
13295 ;
13296 return 0;
13297 }
13298 _ACEOF
13299 for ac_lib in '' advapi32; do
13300 if test -z "$ac_lib"; then
13301 ac_res="none required"
13302 else
13303 ac_res=-l$ac_lib
13304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13305 fi
13306 if ac_fn_cxx_try_link "$LINENO"; then :
13307 ac_cv_search_RegOpenKeyExA=$ac_res
13308 fi
13309 rm -f core conftest.err conftest.$ac_objext \
13310 conftest$ac_exeext
13311 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13312 break
13313 fi
13314 done
13315 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13316
13317 else
13318 ac_cv_search_RegOpenKeyExA=no
13319 fi
13320 rm conftest.$ac_ext
13321 LIBS=$ac_func_search_save_LIBS
13322 fi
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13324 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13325 ac_res=$ac_cv_search_RegOpenKeyExA
13326 if test "$ac_res" != no; then :
13327 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13328
13329 else
13330 enable_win32_registry=no
13331 fi
13332
13333 fi
13334
13335 if test "x$enable_win32_registry" != xno; then
13336
13337 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13338
13339
13340 if test "x$enable_win32_registry" != xyes \
13341 && test "x$enable_win32_registry" != x; then
13342
13343 cat >>confdefs.h <<_ACEOF
13344 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13345 _ACEOF
13346
13347 fi
13348 fi
13349 ;;
13350 esac
13351
13352 # Get an absolute path to the GCC top-level source directory
13353 holddir=`${PWDCMD-pwd}`
13354 cd $srcdir
13355 topdir=`${PWDCMD-pwd}`
13356 cd $holddir
13357
13358 # Conditionalize the makefile for this host machine.
13359 xmake_file=
13360 for f in ${host_xmake_file}
13361 do
13362 if test -f ${srcdir}/config/$f
13363 then
13364 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13365 fi
13366 done
13367
13368 # Conditionalize the makefile for this target machine.
13369 tmake_file_=
13370 for f in ${tmake_file}
13371 do
13372 if test -f ${srcdir}/config/$f
13373 then
13374 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13375 fi
13376 done
13377 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13378
13379 out_object_file=`basename $out_file .cc`.o
13380 common_out_object_file=`basename $common_out_file .cc`.o
13381
13382 tm_file_list="options.h"
13383 tm_include_list="options.h insn-constants.h"
13384 for f in $tm_file; do
13385 case $f in
13386 ./* )
13387 f=`echo $f | sed 's/^..//'`
13388 tm_file_list="${tm_file_list} $f"
13389 tm_include_list="${tm_include_list} $f"
13390 ;;
13391 defaults.h )
13392 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13393 tm_include_list="${tm_include_list} $f"
13394 ;;
13395 * )
13396 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13397 tm_include_list="${tm_include_list} config/$f"
13398 ;;
13399 esac
13400 done
13401
13402 tm_p_file_list=
13403 tm_p_include_list=
13404 for f in $tm_p_file; do
13405 case $f in
13406 tm-preds.h )
13407 tm_p_file_list="${tm_p_file_list} $f"
13408 tm_p_include_list="${tm_p_include_list} $f"
13409 ;;
13410 * )
13411 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13412 tm_p_include_list="${tm_p_include_list} config/$f"
13413 esac
13414 done
13415
13416 tm_d_file_list=
13417 tm_d_include_list=
13418 for f in $tm_d_file; do
13419 case $f in
13420 * )
13421 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13422 tm_d_include_list="${tm_d_include_list} config/$f"
13423 ;;
13424 esac
13425 done
13426
13427 xm_file_list=
13428 xm_include_list=
13429 for f in $xm_file; do
13430 case $f in
13431 ansidecl.h )
13432 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13433 xm_include_list="${xm_include_list} $f"
13434 ;;
13435 auto-host.h )
13436 xm_file_list="${xm_file_list} $f"
13437 xm_include_list="${xm_include_list} $f"
13438 ;;
13439 * )
13440 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13441 xm_include_list="${xm_include_list} config/$f"
13442 ;;
13443 esac
13444 done
13445
13446 host_xm_file_list=
13447 host_xm_include_list=
13448 for f in $host_xm_file; do
13449 case $f in
13450 ansidecl.h )
13451 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13452 host_xm_include_list="${host_xm_include_list} $f"
13453 ;;
13454 auto-host.h )
13455 host_xm_file_list="${host_xm_file_list} $f"
13456 host_xm_include_list="${host_xm_include_list} $f"
13457 ;;
13458 * )
13459 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13460 host_xm_include_list="${host_xm_include_list} config/$f"
13461 ;;
13462 esac
13463 done
13464
13465 build_xm_file_list=
13466 for f in $build_xm_file; do
13467 case $f in
13468 ansidecl.h )
13469 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13470 build_xm_include_list="${build_xm_include_list} $f"
13471 ;;
13472 auto-build.h | auto-host.h )
13473 build_xm_file_list="${build_xm_file_list} $f"
13474 build_xm_include_list="${build_xm_include_list} $f"
13475 ;;
13476 * )
13477 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13478 build_xm_include_list="${build_xm_include_list} config/$f"
13479 ;;
13480 esac
13481 done
13482
13483 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13484 # cross-compiler which does not use the native headers and libraries.
13485 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13486 CROSS=
13487 ALL=all.internal
13488 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13489 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13490
13491 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13492 test x$build != x$host || test "x$with_build_sysroot" != x; then
13493 if test "x$with_build_sysroot" != x; then
13494 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13495 else
13496 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13497 fi
13498
13499 if test x$host != x$target
13500 then
13501 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13502 ALL=all.cross
13503 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13504 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13505 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13506 fi
13507
13508 if test "x$with_build_sysroot" != "x"; then
13509 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13510 elif test "x$with_sysroot" = x; then
13511 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13512 elif test "x$with_sysroot" = xyes; then
13513 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13514 else
13515 target_header_dir="${with_sysroot}${native_system_header_dir}"
13516 fi
13517 else
13518 target_header_dir=${native_system_header_dir}
13519 fi
13520
13521 # If this is a cross-compiler that does not
13522 # have its own set of headers then define
13523 # inhibit_libc
13524
13525 # If this is using newlib, without having the headers available now,
13526 # then define inhibit_libc in LIBGCC2_CFLAGS.
13527 # This prevents libgcc2 from containing any code which requires libc
13528 # support.
13529 : ${inhibit_libc=false}
13530 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13531 test x$with_newlib = xyes ; } &&
13532 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13533 inhibit_libc=true
13534 fi
13535
13536
13537 # When building gcc with a cross-compiler, we need to adjust things so
13538 # that the generator programs are still built with the native compiler.
13539 # Also, we cannot run fixincludes.
13540
13541 # These are the normal (build=host) settings:
13542 CC_FOR_BUILD='$(CC)'
13543 CXX_FOR_BUILD='$(CXX)'
13544 BUILD_CFLAGS='$(ALL_CFLAGS)'
13545 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13546 BUILD_LDFLAGS='$(LDFLAGS)'
13547 STMP_FIXINC=stmp-fixinc
13548
13549 # And these apply if build != host, or we are generating coverage data
13550 if test x$build != x$host || test "x$coverage_flags" != x
13551 then
13552 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13553 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13554 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13555 fi
13556
13557
13558 if test x$enable_fixincludes = xno;
13559 then
13560 STMP_FIXINC=''
13561 fi
13562
13563 # Expand extra_headers to include complete path.
13564 # This substitutes for lots of t-* files.
13565 extra_headers_list=
13566 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13567 for file in ${extra_headers} ; do
13568 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13569 done
13570
13571 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13572 if test x"$use_gcc_tgmath" = xyes
13573 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13574 fi
13575
13576 # Define collect2 in Makefile.
13577 case $host_can_use_collect2 in
13578 no) collect2= ;;
13579 *) collect2='collect2$(exeext)' ;;
13580 esac
13581
13582
13583 # Add a definition of USE_COLLECT2 if system wants one.
13584 case $use_collect2 in
13585 no) use_collect2= ;;
13586 "") ;;
13587 *)
13588 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13589 xm_defines="${xm_defines} USE_COLLECT2"
13590 case $host_can_use_collect2 in
13591 no)
13592 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13593 ;;
13594 esac
13595 ;;
13596 esac
13597
13598
13599 cat >>confdefs.h <<_ACEOF
13600 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13601 _ACEOF
13602
13603
13604 # ---------------------------
13605 # Assembler & linker features
13606 # ---------------------------
13607
13608 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13609 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13610 # However when ld-new is first executed from the build tree, libtool will
13611 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13612 # to the build tree. While doing this we need to use the previous-stage
13613 # linker, or we have an infinite loop. The presence of a shell script as
13614 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13615 # the gcc/collect-ld script. So we need to know how libtool works, or
13616 # exec-tool will fail.
13617
13618
13619 case `pwd` in
13620 *\ * | *\ *)
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13622 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13623 esac
13624
13625
13626
13627 macro_version='2.2.7a'
13628 macro_revision='1.3134'
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642 ltmain="$ac_aux_dir/ltmain.sh"
13643
13644 # Backslashify metacharacters that are still active within
13645 # double-quoted strings.
13646 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13647
13648 # Same as above, but do not quote variable references.
13649 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13650
13651 # Sed substitution to delay expansion of an escaped shell variable in a
13652 # double_quote_subst'ed string.
13653 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13654
13655 # Sed substitution to delay expansion of an escaped single quote.
13656 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13657
13658 # Sed substitution to avoid accidental globbing in evaled expressions
13659 no_glob_subst='s/\*/\\\*/g'
13660
13661 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13662 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13663 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13664
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13666 $as_echo_n "checking how to print strings... " >&6; }
13667 # Test print first, because it will be a builtin if present.
13668 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13669 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13670 ECHO='print -r --'
13671 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13672 ECHO='printf %s\n'
13673 else
13674 # Use this function as a fallback that always works.
13675 func_fallback_echo ()
13676 {
13677 eval 'cat <<_LTECHO_EOF
13678 $1
13679 _LTECHO_EOF'
13680 }
13681 ECHO='func_fallback_echo'
13682 fi
13683
13684 # func_echo_all arg...
13685 # Invoke $ECHO with all args, space-separated.
13686 func_echo_all ()
13687 {
13688 $ECHO ""
13689 }
13690
13691 case "$ECHO" in
13692 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13693 $as_echo "printf" >&6; } ;;
13694 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13695 $as_echo "print -r" >&6; } ;;
13696 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13697 $as_echo "cat" >&6; } ;;
13698 esac
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13714 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13715 if ${ac_cv_path_SED+:} false; then :
13716 $as_echo_n "(cached) " >&6
13717 else
13718 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13719 for ac_i in 1 2 3 4 5 6 7; do
13720 ac_script="$ac_script$as_nl$ac_script"
13721 done
13722 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13723 { ac_script=; unset ac_script;}
13724 if test -z "$SED"; then
13725 ac_path_SED_found=false
13726 # Loop through the user's path and test for each of PROGNAME-LIST
13727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13728 for as_dir in $PATH
13729 do
13730 IFS=$as_save_IFS
13731 test -z "$as_dir" && as_dir=.
13732 for ac_prog in sed gsed; do
13733 for ac_exec_ext in '' $ac_executable_extensions; do
13734 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13735 as_fn_executable_p "$ac_path_SED" || continue
13736 # Check for GNU ac_path_SED and select it if it is found.
13737 # Check for GNU $ac_path_SED
13738 case `"$ac_path_SED" --version 2>&1` in
13739 *GNU*)
13740 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13741 *)
13742 ac_count=0
13743 $as_echo_n 0123456789 >"conftest.in"
13744 while :
13745 do
13746 cat "conftest.in" "conftest.in" >"conftest.tmp"
13747 mv "conftest.tmp" "conftest.in"
13748 cp "conftest.in" "conftest.nl"
13749 $as_echo '' >> "conftest.nl"
13750 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13751 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13752 as_fn_arith $ac_count + 1 && ac_count=$as_val
13753 if test $ac_count -gt ${ac_path_SED_max-0}; then
13754 # Best one so far, save it but keep looking for a better one
13755 ac_cv_path_SED="$ac_path_SED"
13756 ac_path_SED_max=$ac_count
13757 fi
13758 # 10*(2^10) chars as input seems more than enough
13759 test $ac_count -gt 10 && break
13760 done
13761 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13762 esac
13763
13764 $ac_path_SED_found && break 3
13765 done
13766 done
13767 done
13768 IFS=$as_save_IFS
13769 if test -z "$ac_cv_path_SED"; then
13770 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13771 fi
13772 else
13773 ac_cv_path_SED=$SED
13774 fi
13775
13776 fi
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13778 $as_echo "$ac_cv_path_SED" >&6; }
13779 SED="$ac_cv_path_SED"
13780 rm -f conftest.sed
13781
13782 test -z "$SED" && SED=sed
13783 Xsed="$SED -e 1s/^X//"
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13796 $as_echo_n "checking for fgrep... " >&6; }
13797 if ${ac_cv_path_FGREP+:} false; then :
13798 $as_echo_n "(cached) " >&6
13799 else
13800 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13801 then ac_cv_path_FGREP="$GREP -F"
13802 else
13803 if test -z "$FGREP"; then
13804 ac_path_FGREP_found=false
13805 # Loop through the user's path and test for each of PROGNAME-LIST
13806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13807 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13808 do
13809 IFS=$as_save_IFS
13810 test -z "$as_dir" && as_dir=.
13811 for ac_prog in fgrep; do
13812 for ac_exec_ext in '' $ac_executable_extensions; do
13813 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13814 as_fn_executable_p "$ac_path_FGREP" || continue
13815 # Check for GNU ac_path_FGREP and select it if it is found.
13816 # Check for GNU $ac_path_FGREP
13817 case `"$ac_path_FGREP" --version 2>&1` in
13818 *GNU*)
13819 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13820 *)
13821 ac_count=0
13822 $as_echo_n 0123456789 >"conftest.in"
13823 while :
13824 do
13825 cat "conftest.in" "conftest.in" >"conftest.tmp"
13826 mv "conftest.tmp" "conftest.in"
13827 cp "conftest.in" "conftest.nl"
13828 $as_echo 'FGREP' >> "conftest.nl"
13829 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13831 as_fn_arith $ac_count + 1 && ac_count=$as_val
13832 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13833 # Best one so far, save it but keep looking for a better one
13834 ac_cv_path_FGREP="$ac_path_FGREP"
13835 ac_path_FGREP_max=$ac_count
13836 fi
13837 # 10*(2^10) chars as input seems more than enough
13838 test $ac_count -gt 10 && break
13839 done
13840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13841 esac
13842
13843 $ac_path_FGREP_found && break 3
13844 done
13845 done
13846 done
13847 IFS=$as_save_IFS
13848 if test -z "$ac_cv_path_FGREP"; then
13849 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13850 fi
13851 else
13852 ac_cv_path_FGREP=$FGREP
13853 fi
13854
13855 fi
13856 fi
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13858 $as_echo "$ac_cv_path_FGREP" >&6; }
13859 FGREP="$ac_cv_path_FGREP"
13860
13861
13862 test -z "$GREP" && GREP=grep
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882 # Check whether --with-gnu-ld was given.
13883 if test "${with_gnu_ld+set}" = set; then :
13884 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13885 else
13886 with_gnu_ld=no
13887 fi
13888
13889 ac_prog=ld
13890 if test "$GCC" = yes; then
13891 # Check if gcc -print-prog-name=ld gives a path.
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13893 $as_echo_n "checking for ld used by $CC... " >&6; }
13894 case $host in
13895 *-*-mingw*)
13896 # gcc leaves a trailing carriage return which upsets mingw
13897 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13898 *)
13899 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13900 esac
13901 case $ac_prog in
13902 # Accept absolute paths.
13903 [\\/]* | ?:[\\/]*)
13904 re_direlt='/[^/][^/]*/\.\./'
13905 # Canonicalize the pathname of ld
13906 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13907 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13908 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13909 done
13910 test -z "$LD" && LD="$ac_prog"
13911 ;;
13912 "")
13913 # If it fails, then pretend we aren't using GCC.
13914 ac_prog=ld
13915 ;;
13916 *)
13917 # If it is relative, then search for the first ld in PATH.
13918 with_gnu_ld=unknown
13919 ;;
13920 esac
13921 elif test "$with_gnu_ld" = yes; then
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13923 $as_echo_n "checking for GNU ld... " >&6; }
13924 else
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13926 $as_echo_n "checking for non-GNU ld... " >&6; }
13927 fi
13928 if ${lt_cv_path_LD+:} false; then :
13929 $as_echo_n "(cached) " >&6
13930 else
13931 if test -z "$LD"; then
13932 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13933 for ac_dir in $PATH; do
13934 IFS="$lt_save_ifs"
13935 test -z "$ac_dir" && ac_dir=.
13936 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13937 lt_cv_path_LD="$ac_dir/$ac_prog"
13938 # Check to see if the program is GNU ld. I'd rather use --version,
13939 # but apparently some variants of GNU ld only accept -v.
13940 # Break only if it was the GNU/non-GNU ld that we prefer.
13941 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13942 *GNU* | *'with BFD'*)
13943 test "$with_gnu_ld" != no && break
13944 ;;
13945 *)
13946 test "$with_gnu_ld" != yes && break
13947 ;;
13948 esac
13949 fi
13950 done
13951 IFS="$lt_save_ifs"
13952 else
13953 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13954 fi
13955 fi
13956
13957 LD="$lt_cv_path_LD"
13958 if test -n "$LD"; then
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13960 $as_echo "$LD" >&6; }
13961 else
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13963 $as_echo "no" >&6; }
13964 fi
13965 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13967 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13968 if ${lt_cv_prog_gnu_ld+:} false; then :
13969 $as_echo_n "(cached) " >&6
13970 else
13971 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13972 case `$LD -v 2>&1 </dev/null` in
13973 *GNU* | *'with BFD'*)
13974 lt_cv_prog_gnu_ld=yes
13975 ;;
13976 *)
13977 lt_cv_prog_gnu_ld=no
13978 ;;
13979 esac
13980 fi
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13982 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13983 with_gnu_ld=$lt_cv_prog_gnu_ld
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13994 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13995 if ${lt_cv_path_NM+:} false; then :
13996 $as_echo_n "(cached) " >&6
13997 else
13998 if test -n "$NM"; then
13999 # Let the user override the test.
14000 lt_cv_path_NM="$NM"
14001 else
14002 lt_nm_to_check="${ac_tool_prefix}nm"
14003 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14004 lt_nm_to_check="$lt_nm_to_check nm"
14005 fi
14006 for lt_tmp_nm in $lt_nm_to_check; do
14007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14008 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14009 IFS="$lt_save_ifs"
14010 test -z "$ac_dir" && ac_dir=.
14011 tmp_nm="$ac_dir/$lt_tmp_nm"
14012 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14013 # Check to see if the nm accepts a BSD-compat flag.
14014 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14015 # nm: unknown option "B" ignored
14016 # Tru64's nm complains that /dev/null is an invalid object file
14017 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14018 */dev/null* | *'Invalid file or object type'*)
14019 lt_cv_path_NM="$tmp_nm -B"
14020 break
14021 ;;
14022 *)
14023 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14024 */dev/null*)
14025 lt_cv_path_NM="$tmp_nm -p"
14026 break
14027 ;;
14028 *)
14029 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14030 continue # so that we can try to find one that supports BSD flags
14031 ;;
14032 esac
14033 ;;
14034 esac
14035 fi
14036 done
14037 IFS="$lt_save_ifs"
14038 done
14039 : ${lt_cv_path_NM=no}
14040 fi
14041 fi
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14043 $as_echo "$lt_cv_path_NM" >&6; }
14044 if test "$lt_cv_path_NM" != "no"; then
14045 NM="$lt_cv_path_NM"
14046 else
14047 # Didn't find any BSD compatible name lister, look for dumpbin.
14048 if test -n "$DUMPBIN"; then :
14049 # Let the user override the test.
14050 else
14051 if test -n "$ac_tool_prefix"; then
14052 for ac_prog in dumpbin "link -dump"
14053 do
14054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14057 $as_echo_n "checking for $ac_word... " >&6; }
14058 if ${ac_cv_prog_DUMPBIN+:} false; then :
14059 $as_echo_n "(cached) " >&6
14060 else
14061 if test -n "$DUMPBIN"; then
14062 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14063 else
14064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14065 for as_dir in $PATH
14066 do
14067 IFS=$as_save_IFS
14068 test -z "$as_dir" && as_dir=.
14069 for ac_exec_ext in '' $ac_executable_extensions; do
14070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14071 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14073 break 2
14074 fi
14075 done
14076 done
14077 IFS=$as_save_IFS
14078
14079 fi
14080 fi
14081 DUMPBIN=$ac_cv_prog_DUMPBIN
14082 if test -n "$DUMPBIN"; then
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14084 $as_echo "$DUMPBIN" >&6; }
14085 else
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14087 $as_echo "no" >&6; }
14088 fi
14089
14090
14091 test -n "$DUMPBIN" && break
14092 done
14093 fi
14094 if test -z "$DUMPBIN"; then
14095 ac_ct_DUMPBIN=$DUMPBIN
14096 for ac_prog in dumpbin "link -dump"
14097 do
14098 # Extract the first word of "$ac_prog", so it can be a program name with args.
14099 set dummy $ac_prog; ac_word=$2
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14101 $as_echo_n "checking for $ac_word... " >&6; }
14102 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
14103 $as_echo_n "(cached) " >&6
14104 else
14105 if test -n "$ac_ct_DUMPBIN"; then
14106 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14107 else
14108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14109 for as_dir in $PATH
14110 do
14111 IFS=$as_save_IFS
14112 test -z "$as_dir" && as_dir=.
14113 for ac_exec_ext in '' $ac_executable_extensions; do
14114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14115 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14117 break 2
14118 fi
14119 done
14120 done
14121 IFS=$as_save_IFS
14122
14123 fi
14124 fi
14125 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14126 if test -n "$ac_ct_DUMPBIN"; then
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14128 $as_echo "$ac_ct_DUMPBIN" >&6; }
14129 else
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14131 $as_echo "no" >&6; }
14132 fi
14133
14134
14135 test -n "$ac_ct_DUMPBIN" && break
14136 done
14137
14138 if test "x$ac_ct_DUMPBIN" = x; then
14139 DUMPBIN=":"
14140 else
14141 case $cross_compiling:$ac_tool_warned in
14142 yes:)
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14145 ac_tool_warned=yes ;;
14146 esac
14147 DUMPBIN=$ac_ct_DUMPBIN
14148 fi
14149 fi
14150
14151 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14152 *COFF*)
14153 DUMPBIN="$DUMPBIN -symbols"
14154 ;;
14155 *)
14156 DUMPBIN=:
14157 ;;
14158 esac
14159 fi
14160
14161 if test "$DUMPBIN" != ":"; then
14162 NM="$DUMPBIN"
14163 fi
14164 fi
14165 test -z "$NM" && NM=nm
14166
14167
14168
14169
14170
14171
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14173 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14174 if ${lt_cv_nm_interface+:} false; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 lt_cv_nm_interface="BSD nm"
14178 echo "int some_variable = 0;" > conftest.$ac_ext
14179 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14180 (eval "$ac_compile" 2>conftest.err)
14181 cat conftest.err >&5
14182 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14183 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14184 cat conftest.err >&5
14185 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14186 cat conftest.out >&5
14187 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14188 lt_cv_nm_interface="MS dumpbin"
14189 fi
14190 rm -f conftest*
14191 fi
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14193 $as_echo "$lt_cv_nm_interface" >&6; }
14194
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14196 $as_echo_n "checking whether ln -s works... " >&6; }
14197 LN_S=$as_ln_s
14198 if test "$LN_S" = "ln -s"; then
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14200 $as_echo "yes" >&6; }
14201 else
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14203 $as_echo "no, using $LN_S" >&6; }
14204 fi
14205
14206 # find the maximum length of command line arguments
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14208 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14209 if ${lt_cv_sys_max_cmd_len+:} false; then :
14210 $as_echo_n "(cached) " >&6
14211 else
14212 i=0
14213 teststring="ABCD"
14214
14215 case $build_os in
14216 msdosdjgpp*)
14217 # On DJGPP, this test can blow up pretty badly due to problems in libc
14218 # (any single argument exceeding 2000 bytes causes a buffer overrun
14219 # during glob expansion). Even if it were fixed, the result of this
14220 # check would be larger than it should be.
14221 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14222 ;;
14223
14224 gnu*)
14225 # Under GNU Hurd, this test is not required because there is
14226 # no limit to the length of command line arguments.
14227 # Libtool will interpret -1 as no limit whatsoever
14228 lt_cv_sys_max_cmd_len=-1;
14229 ;;
14230
14231 cygwin* | mingw* | cegcc*)
14232 # On Win9x/ME, this test blows up -- it succeeds, but takes
14233 # about 5 minutes as the teststring grows exponentially.
14234 # Worse, since 9x/ME are not pre-emptively multitasking,
14235 # you end up with a "frozen" computer, even though with patience
14236 # the test eventually succeeds (with a max line length of 256k).
14237 # Instead, let's just punt: use the minimum linelength reported by
14238 # all of the supported platforms: 8192 (on NT/2K/XP).
14239 lt_cv_sys_max_cmd_len=8192;
14240 ;;
14241
14242 mint*)
14243 # On MiNT this can take a long time and run out of memory.
14244 lt_cv_sys_max_cmd_len=8192;
14245 ;;
14246
14247 amigaos*)
14248 # On AmigaOS with pdksh, this test takes hours, literally.
14249 # So we just punt and use a minimum line length of 8192.
14250 lt_cv_sys_max_cmd_len=8192;
14251 ;;
14252
14253 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14254 # This has been around since 386BSD, at least. Likely further.
14255 if test -x /sbin/sysctl; then
14256 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14257 elif test -x /usr/sbin/sysctl; then
14258 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14259 else
14260 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14261 fi
14262 # And add a safety zone
14263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14265 ;;
14266
14267 interix*)
14268 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14269 lt_cv_sys_max_cmd_len=196608
14270 ;;
14271
14272 osf*)
14273 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14274 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14275 # nice to cause kernel panics so lets avoid the loop below.
14276 # First set a reasonable default.
14277 lt_cv_sys_max_cmd_len=16384
14278 #
14279 if test -x /sbin/sysconfig; then
14280 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14281 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14282 esac
14283 fi
14284 ;;
14285 sco3.2v5*)
14286 lt_cv_sys_max_cmd_len=102400
14287 ;;
14288 sysv5* | sco5v6* | sysv4.2uw2*)
14289 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14290 if test -n "$kargmax"; then
14291 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14292 else
14293 lt_cv_sys_max_cmd_len=32768
14294 fi
14295 ;;
14296 *)
14297 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14298 if test -n "$lt_cv_sys_max_cmd_len"; then
14299 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14300 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14301 else
14302 # Make teststring a little bigger before we do anything with it.
14303 # a 1K string should be a reasonable start.
14304 for i in 1 2 3 4 5 6 7 8 ; do
14305 teststring=$teststring$teststring
14306 done
14307 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14308 # If test is not a shell built-in, we'll probably end up computing a
14309 # maximum length that is only half of the actual maximum length, but
14310 # we can't tell.
14311 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14312 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14313 test $i != 17 # 1/2 MB should be enough
14314 do
14315 i=`expr $i + 1`
14316 teststring=$teststring$teststring
14317 done
14318 # Only check the string length outside the loop.
14319 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14320 teststring=
14321 # Add a significant safety factor because C++ compilers can tack on
14322 # massive amounts of additional arguments before passing them to the
14323 # linker. It appears as though 1/2 is a usable value.
14324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14325 fi
14326 ;;
14327 esac
14328
14329 fi
14330
14331 if test -n $lt_cv_sys_max_cmd_len ; then
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14333 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14334 else
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14336 $as_echo "none" >&6; }
14337 fi
14338 max_cmd_len=$lt_cv_sys_max_cmd_len
14339
14340
14341
14342
14343
14344
14345 : ${CP="cp -f"}
14346 : ${MV="mv -f"}
14347 : ${RM="rm -f"}
14348
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14350 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14351 # Try some XSI features
14352 xsi_shell=no
14353 ( _lt_dummy="a/b/c"
14354 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14355 = c,a/b,, \
14356 && eval 'test $(( 1 + 1 )) -eq 2 \
14357 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14358 && xsi_shell=yes
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14360 $as_echo "$xsi_shell" >&6; }
14361
14362
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14364 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14365 lt_shell_append=no
14366 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14367 >/dev/null 2>&1 \
14368 && lt_shell_append=yes
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14370 $as_echo "$lt_shell_append" >&6; }
14371
14372
14373 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14374 lt_unset=unset
14375 else
14376 lt_unset=false
14377 fi
14378
14379
14380
14381
14382
14383 # test EBCDIC or ASCII
14384 case `echo X|tr X '\101'` in
14385 A) # ASCII based system
14386 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14387 lt_SP2NL='tr \040 \012'
14388 lt_NL2SP='tr \015\012 \040\040'
14389 ;;
14390 *) # EBCDIC based system
14391 lt_SP2NL='tr \100 \n'
14392 lt_NL2SP='tr \r\n \100\100'
14393 ;;
14394 esac
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14405 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14406 if ${lt_cv_ld_reload_flag+:} false; then :
14407 $as_echo_n "(cached) " >&6
14408 else
14409 lt_cv_ld_reload_flag='-r'
14410 fi
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14412 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14413 reload_flag=$lt_cv_ld_reload_flag
14414 case $reload_flag in
14415 "" | " "*) ;;
14416 *) reload_flag=" $reload_flag" ;;
14417 esac
14418 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14419 case $host_os in
14420 darwin*)
14421 if test "$GCC" = yes; then
14422 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14423 else
14424 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14425 fi
14426 ;;
14427 esac
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437 if test -n "$ac_tool_prefix"; then
14438 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14439 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14441 $as_echo_n "checking for $ac_word... " >&6; }
14442 if ${ac_cv_prog_OBJDUMP+:} false; then :
14443 $as_echo_n "(cached) " >&6
14444 else
14445 if test -n "$OBJDUMP"; then
14446 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14447 else
14448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14449 for as_dir in $PATH
14450 do
14451 IFS=$as_save_IFS
14452 test -z "$as_dir" && as_dir=.
14453 for ac_exec_ext in '' $ac_executable_extensions; do
14454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14455 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14457 break 2
14458 fi
14459 done
14460 done
14461 IFS=$as_save_IFS
14462
14463 fi
14464 fi
14465 OBJDUMP=$ac_cv_prog_OBJDUMP
14466 if test -n "$OBJDUMP"; then
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14468 $as_echo "$OBJDUMP" >&6; }
14469 else
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14471 $as_echo "no" >&6; }
14472 fi
14473
14474
14475 fi
14476 if test -z "$ac_cv_prog_OBJDUMP"; then
14477 ac_ct_OBJDUMP=$OBJDUMP
14478 # Extract the first word of "objdump", so it can be a program name with args.
14479 set dummy objdump; ac_word=$2
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14481 $as_echo_n "checking for $ac_word... " >&6; }
14482 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14483 $as_echo_n "(cached) " >&6
14484 else
14485 if test -n "$ac_ct_OBJDUMP"; then
14486 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14487 else
14488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14489 for as_dir in $PATH
14490 do
14491 IFS=$as_save_IFS
14492 test -z "$as_dir" && as_dir=.
14493 for ac_exec_ext in '' $ac_executable_extensions; do
14494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14495 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14497 break 2
14498 fi
14499 done
14500 done
14501 IFS=$as_save_IFS
14502
14503 fi
14504 fi
14505 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14506 if test -n "$ac_ct_OBJDUMP"; then
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14508 $as_echo "$ac_ct_OBJDUMP" >&6; }
14509 else
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14511 $as_echo "no" >&6; }
14512 fi
14513
14514 if test "x$ac_ct_OBJDUMP" = x; then
14515 OBJDUMP="false"
14516 else
14517 case $cross_compiling:$ac_tool_warned in
14518 yes:)
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14521 ac_tool_warned=yes ;;
14522 esac
14523 OBJDUMP=$ac_ct_OBJDUMP
14524 fi
14525 else
14526 OBJDUMP="$ac_cv_prog_OBJDUMP"
14527 fi
14528
14529 test -z "$OBJDUMP" && OBJDUMP=objdump
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14540 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14541 if ${lt_cv_deplibs_check_method+:} false; then :
14542 $as_echo_n "(cached) " >&6
14543 else
14544 lt_cv_file_magic_cmd='$MAGIC_CMD'
14545 lt_cv_file_magic_test_file=
14546 lt_cv_deplibs_check_method='unknown'
14547 # Need to set the preceding variable on all platforms that support
14548 # interlibrary dependencies.
14549 # 'none' -- dependencies not supported.
14550 # `unknown' -- same as none, but documents that we really don't know.
14551 # 'pass_all' -- all dependencies passed with no checks.
14552 # 'test_compile' -- check by making test program.
14553 # 'file_magic [[regex]]' -- check by looking for files in library path
14554 # which responds to the $file_magic_cmd with a given extended regex.
14555 # If you have `file' or equivalent on your system and you're not sure
14556 # whether `pass_all' will *always* work, you probably want this one.
14557
14558 case $host_os in
14559 aix[4-9]*)
14560 lt_cv_deplibs_check_method=pass_all
14561 ;;
14562
14563 beos*)
14564 lt_cv_deplibs_check_method=pass_all
14565 ;;
14566
14567 bsdi[45]*)
14568 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14569 lt_cv_file_magic_cmd='/usr/bin/file -L'
14570 lt_cv_file_magic_test_file=/shlib/libc.so
14571 ;;
14572
14573 cygwin*)
14574 # func_win32_libid is a shell function defined in ltmain.sh
14575 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14576 lt_cv_file_magic_cmd='func_win32_libid'
14577 ;;
14578
14579 mingw* | pw32*)
14580 # Base MSYS/MinGW do not provide the 'file' command needed by
14581 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14582 # unless we find 'file', for example because we are cross-compiling.
14583 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14584 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14585 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14586 lt_cv_file_magic_cmd='func_win32_libid'
14587 else
14588 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14589 lt_cv_file_magic_cmd='$OBJDUMP -f'
14590 fi
14591 ;;
14592
14593 cegcc*)
14594 # use the weaker test based on 'objdump'. See mingw*.
14595 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14596 lt_cv_file_magic_cmd='$OBJDUMP -f'
14597 ;;
14598
14599 darwin* | rhapsody*)
14600 lt_cv_deplibs_check_method=pass_all
14601 ;;
14602
14603 freebsd* | dragonfly*)
14604 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14605 case $host_cpu in
14606 i*86 )
14607 # Not sure whether the presence of OpenBSD here was a mistake.
14608 # Let's accept both of them until this is cleared up.
14609 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14610 lt_cv_file_magic_cmd=/usr/bin/file
14611 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14612 ;;
14613 esac
14614 else
14615 lt_cv_deplibs_check_method=pass_all
14616 fi
14617 ;;
14618
14619 gnu*)
14620 lt_cv_deplibs_check_method=pass_all
14621 ;;
14622
14623 haiku*)
14624 lt_cv_deplibs_check_method=pass_all
14625 ;;
14626
14627 hpux10.20* | hpux11*)
14628 lt_cv_file_magic_cmd=/usr/bin/file
14629 case $host_cpu in
14630 ia64*)
14631 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14632 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14633 ;;
14634 hppa*64*)
14635 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]'
14636 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14637 ;;
14638 *)
14639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14640 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14641 ;;
14642 esac
14643 ;;
14644
14645 interix[3-9]*)
14646 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14648 ;;
14649
14650 irix5* | irix6* | nonstopux*)
14651 case $LD in
14652 *-32|*"-32 ") libmagic=32-bit;;
14653 *-n32|*"-n32 ") libmagic=N32;;
14654 *-64|*"-64 ") libmagic=64-bit;;
14655 *) libmagic=never-match;;
14656 esac
14657 lt_cv_deplibs_check_method=pass_all
14658 ;;
14659
14660 # This must be Linux ELF.
14661 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14662 lt_cv_deplibs_check_method=pass_all
14663 ;;
14664
14665 netbsd*)
14666 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14668 else
14669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14670 fi
14671 ;;
14672
14673 newos6*)
14674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14675 lt_cv_file_magic_cmd=/usr/bin/file
14676 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14677 ;;
14678
14679 *nto* | *qnx*)
14680 lt_cv_deplibs_check_method=pass_all
14681 ;;
14682
14683 openbsd*)
14684 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14686 else
14687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14688 fi
14689 ;;
14690
14691 osf3* | osf4* | osf5*)
14692 lt_cv_deplibs_check_method=pass_all
14693 ;;
14694
14695 rdos*)
14696 lt_cv_deplibs_check_method=pass_all
14697 ;;
14698
14699 solaris*)
14700 lt_cv_deplibs_check_method=pass_all
14701 ;;
14702
14703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14704 lt_cv_deplibs_check_method=pass_all
14705 ;;
14706
14707 sysv4 | sysv4.3*)
14708 case $host_vendor in
14709 motorola)
14710 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]'
14711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14712 ;;
14713 ncr)
14714 lt_cv_deplibs_check_method=pass_all
14715 ;;
14716 sequent)
14717 lt_cv_file_magic_cmd='/bin/file'
14718 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14719 ;;
14720 sni)
14721 lt_cv_file_magic_cmd='/bin/file'
14722 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14723 lt_cv_file_magic_test_file=/lib/libc.so
14724 ;;
14725 siemens)
14726 lt_cv_deplibs_check_method=pass_all
14727 ;;
14728 pc)
14729 lt_cv_deplibs_check_method=pass_all
14730 ;;
14731 esac
14732 ;;
14733
14734 tpf*)
14735 lt_cv_deplibs_check_method=pass_all
14736 ;;
14737 vxworks*)
14738 # Assume VxWorks cross toolchains are built on Linux, possibly
14739 # as canadian for Windows hosts.
14740 lt_cv_deplibs_check_method=pass_all
14741 ;;
14742 esac
14743
14744 fi
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14746 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14747 file_magic_cmd=$lt_cv_file_magic_cmd
14748 deplibs_check_method=$lt_cv_deplibs_check_method
14749 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762 if test -n "$ac_tool_prefix"; then
14763 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14764 set dummy ${ac_tool_prefix}ar; ac_word=$2
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14766 $as_echo_n "checking for $ac_word... " >&6; }
14767 if ${ac_cv_prog_AR+:} false; then :
14768 $as_echo_n "(cached) " >&6
14769 else
14770 if test -n "$AR"; then
14771 ac_cv_prog_AR="$AR" # Let the user override the test.
14772 else
14773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14774 for as_dir in $PATH
14775 do
14776 IFS=$as_save_IFS
14777 test -z "$as_dir" && as_dir=.
14778 for ac_exec_ext in '' $ac_executable_extensions; do
14779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14780 ac_cv_prog_AR="${ac_tool_prefix}ar"
14781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14782 break 2
14783 fi
14784 done
14785 done
14786 IFS=$as_save_IFS
14787
14788 fi
14789 fi
14790 AR=$ac_cv_prog_AR
14791 if test -n "$AR"; then
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14793 $as_echo "$AR" >&6; }
14794 else
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14796 $as_echo "no" >&6; }
14797 fi
14798
14799
14800 fi
14801 if test -z "$ac_cv_prog_AR"; then
14802 ac_ct_AR=$AR
14803 # Extract the first word of "ar", so it can be a program name with args.
14804 set dummy ar; ac_word=$2
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14806 $as_echo_n "checking for $ac_word... " >&6; }
14807 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14808 $as_echo_n "(cached) " >&6
14809 else
14810 if test -n "$ac_ct_AR"; then
14811 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14812 else
14813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14814 for as_dir in $PATH
14815 do
14816 IFS=$as_save_IFS
14817 test -z "$as_dir" && as_dir=.
14818 for ac_exec_ext in '' $ac_executable_extensions; do
14819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14820 ac_cv_prog_ac_ct_AR="ar"
14821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14822 break 2
14823 fi
14824 done
14825 done
14826 IFS=$as_save_IFS
14827
14828 fi
14829 fi
14830 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14831 if test -n "$ac_ct_AR"; then
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14833 $as_echo "$ac_ct_AR" >&6; }
14834 else
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14836 $as_echo "no" >&6; }
14837 fi
14838
14839 if test "x$ac_ct_AR" = x; then
14840 AR="false"
14841 else
14842 case $cross_compiling:$ac_tool_warned in
14843 yes:)
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14846 ac_tool_warned=yes ;;
14847 esac
14848 AR=$ac_ct_AR
14849 fi
14850 else
14851 AR="$ac_cv_prog_AR"
14852 fi
14853
14854 test -z "$AR" && AR=ar
14855 test -z "$AR_FLAGS" && AR_FLAGS=cru
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867 if test -n "$ac_tool_prefix"; then
14868 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14869 set dummy ${ac_tool_prefix}strip; ac_word=$2
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14871 $as_echo_n "checking for $ac_word... " >&6; }
14872 if ${ac_cv_prog_STRIP+:} false; then :
14873 $as_echo_n "(cached) " >&6
14874 else
14875 if test -n "$STRIP"; then
14876 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14877 else
14878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14879 for as_dir in $PATH
14880 do
14881 IFS=$as_save_IFS
14882 test -z "$as_dir" && as_dir=.
14883 for ac_exec_ext in '' $ac_executable_extensions; do
14884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14885 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14887 break 2
14888 fi
14889 done
14890 done
14891 IFS=$as_save_IFS
14892
14893 fi
14894 fi
14895 STRIP=$ac_cv_prog_STRIP
14896 if test -n "$STRIP"; then
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14898 $as_echo "$STRIP" >&6; }
14899 else
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14901 $as_echo "no" >&6; }
14902 fi
14903
14904
14905 fi
14906 if test -z "$ac_cv_prog_STRIP"; then
14907 ac_ct_STRIP=$STRIP
14908 # Extract the first word of "strip", so it can be a program name with args.
14909 set dummy strip; ac_word=$2
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14911 $as_echo_n "checking for $ac_word... " >&6; }
14912 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14913 $as_echo_n "(cached) " >&6
14914 else
14915 if test -n "$ac_ct_STRIP"; then
14916 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14917 else
14918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14919 for as_dir in $PATH
14920 do
14921 IFS=$as_save_IFS
14922 test -z "$as_dir" && as_dir=.
14923 for ac_exec_ext in '' $ac_executable_extensions; do
14924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14925 ac_cv_prog_ac_ct_STRIP="strip"
14926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14927 break 2
14928 fi
14929 done
14930 done
14931 IFS=$as_save_IFS
14932
14933 fi
14934 fi
14935 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14936 if test -n "$ac_ct_STRIP"; then
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14938 $as_echo "$ac_ct_STRIP" >&6; }
14939 else
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14941 $as_echo "no" >&6; }
14942 fi
14943
14944 if test "x$ac_ct_STRIP" = x; then
14945 STRIP=":"
14946 else
14947 case $cross_compiling:$ac_tool_warned in
14948 yes:)
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14951 ac_tool_warned=yes ;;
14952 esac
14953 STRIP=$ac_ct_STRIP
14954 fi
14955 else
14956 STRIP="$ac_cv_prog_STRIP"
14957 fi
14958
14959 test -z "$STRIP" && STRIP=:
14960
14961
14962
14963
14964
14965
14966 if test -n "$ac_tool_prefix"; then
14967 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14968 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
14972 $as_echo_n "(cached) " >&6
14973 else
14974 if test -n "$RANLIB"; then
14975 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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 RANLIB=$ac_cv_prog_RANLIB
14995 if test -n "$RANLIB"; then
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14997 $as_echo "$RANLIB" >&6; }
14998 else
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15000 $as_echo "no" >&6; }
15001 fi
15002
15003
15004 fi
15005 if test -z "$ac_cv_prog_RANLIB"; then
15006 ac_ct_RANLIB=$RANLIB
15007 # Extract the first word of "ranlib", so it can be a program name with args.
15008 set dummy ranlib; ac_word=$2
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15010 $as_echo_n "checking for $ac_word... " >&6; }
15011 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15012 $as_echo_n "(cached) " >&6
15013 else
15014 if test -n "$ac_ct_RANLIB"; then
15015 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15016 else
15017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15018 for as_dir in $PATH
15019 do
15020 IFS=$as_save_IFS
15021 test -z "$as_dir" && as_dir=.
15022 for ac_exec_ext in '' $ac_executable_extensions; do
15023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15024 ac_cv_prog_ac_ct_RANLIB="ranlib"
15025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15026 break 2
15027 fi
15028 done
15029 done
15030 IFS=$as_save_IFS
15031
15032 fi
15033 fi
15034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15035 if test -n "$ac_ct_RANLIB"; then
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15037 $as_echo "$ac_ct_RANLIB" >&6; }
15038 else
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15040 $as_echo "no" >&6; }
15041 fi
15042
15043 if test "x$ac_ct_RANLIB" = x; then
15044 RANLIB=":"
15045 else
15046 case $cross_compiling:$ac_tool_warned in
15047 yes:)
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15050 ac_tool_warned=yes ;;
15051 esac
15052 RANLIB=$ac_ct_RANLIB
15053 fi
15054 else
15055 RANLIB="$ac_cv_prog_RANLIB"
15056 fi
15057
15058 test -z "$RANLIB" && RANLIB=:
15059
15060
15061
15062
15063
15064
15065 # Determine commands to create old-style static archives.
15066 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15067 old_postinstall_cmds='chmod 644 $oldlib'
15068 old_postuninstall_cmds=
15069
15070 if test -n "$RANLIB"; then
15071 case $host_os in
15072 openbsd*)
15073 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15074 ;;
15075 *)
15076 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15077 ;;
15078 esac
15079 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15080 fi
15081
15082 case $host_os in
15083 darwin*)
15084 lock_old_archive_extraction=yes ;;
15085 *)
15086 lock_old_archive_extraction=no ;;
15087 esac
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127 # If no C compiler was specified, use CC.
15128 LTCC=${LTCC-"$CC"}
15129
15130 # If no C compiler flags were specified, use CFLAGS.
15131 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15132
15133 # Allow CC to be a program name with arguments.
15134 compiler=$CC
15135
15136
15137 # Check for command to grab the raw symbol name followed by C symbol from nm.
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15139 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15140 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15141 $as_echo_n "(cached) " >&6
15142 else
15143
15144 # These are sane defaults that work on at least a few old systems.
15145 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15146
15147 # Character class describing NM global symbol codes.
15148 symcode='[BCDEGRST]'
15149
15150 # Regexp to match symbols that can be accessed directly from C.
15151 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15152
15153 # Define system-specific variables.
15154 case $host_os in
15155 aix*)
15156 symcode='[BCDT]'
15157 ;;
15158 cygwin* | mingw* | pw32* | cegcc*)
15159 symcode='[ABCDGISTW]'
15160 ;;
15161 hpux*)
15162 if test "$host_cpu" = ia64; then
15163 symcode='[ABCDEGRST]'
15164 fi
15165 ;;
15166 irix* | nonstopux*)
15167 symcode='[BCDEGRST]'
15168 ;;
15169 osf*)
15170 symcode='[BCDEGQRST]'
15171 ;;
15172 solaris*)
15173 symcode='[BDRT]'
15174 ;;
15175 sco3.2v5*)
15176 symcode='[DT]'
15177 ;;
15178 sysv4.2uw2*)
15179 symcode='[DT]'
15180 ;;
15181 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15182 symcode='[ABDT]'
15183 ;;
15184 sysv4)
15185 symcode='[DFNSTU]'
15186 ;;
15187 esac
15188
15189 # If we're using GNU nm, then use its standard symbol codes.
15190 case `$NM -V 2>&1` in
15191 *GNU* | *'with BFD'*)
15192 symcode='[ABCDGIRSTW]' ;;
15193 esac
15194
15195 # Transform an extracted symbol line into a proper C declaration.
15196 # Some systems (esp. on ia64) link data and code symbols differently,
15197 # so use this general approach.
15198 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15199
15200 # Transform an extracted symbol line into symbol name and symbol address
15201 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15202 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'"
15203
15204 # Handle CRLF in mingw tool chain
15205 opt_cr=
15206 case $build_os in
15207 mingw*)
15208 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15209 ;;
15210 esac
15211
15212 # Try without a prefix underscore, then with it.
15213 for ac_symprfx in "" "_"; do
15214
15215 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15216 symxfrm="\\1 $ac_symprfx\\2 \\2"
15217
15218 # Write the raw and C identifiers.
15219 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15220 # Fake it for dumpbin and say T for any non-static function
15221 # and D for any global variable.
15222 # Also find C++ and __fastcall symbols from MSVC++,
15223 # which start with @ or ?.
15224 lt_cv_sys_global_symbol_pipe="$AWK '"\
15225 " {last_section=section; section=\$ 3};"\
15226 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15227 " \$ 0!~/External *\|/{next};"\
15228 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15229 " {if(hide[section]) next};"\
15230 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15231 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15232 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15233 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15234 " ' prfx=^$ac_symprfx"
15235 else
15236 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15237 fi
15238
15239 # Check to see that the pipe works correctly.
15240 pipe_works=no
15241
15242 rm -f conftest*
15243 cat > conftest.$ac_ext <<_LT_EOF
15244 #ifdef __cplusplus
15245 extern "C" {
15246 #endif
15247 char nm_test_var;
15248 void nm_test_func(void);
15249 void nm_test_func(void){}
15250 #ifdef __cplusplus
15251 }
15252 #endif
15253 int main(){nm_test_var='a';nm_test_func();return(0);}
15254 _LT_EOF
15255
15256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15257 (eval $ac_compile) 2>&5
15258 ac_status=$?
15259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15260 test $ac_status = 0; }; then
15261 # Now try to grab the symbols.
15262 nlist=conftest.nm
15263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15264 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15265 ac_status=$?
15266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15267 test $ac_status = 0; } && test -s "$nlist"; then
15268 # Try sorting and uniquifying the output.
15269 if sort "$nlist" | uniq > "$nlist"T; then
15270 mv -f "$nlist"T "$nlist"
15271 else
15272 rm -f "$nlist"T
15273 fi
15274
15275 # Make sure that we snagged all the symbols we need.
15276 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15277 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15278 cat <<_LT_EOF > conftest.$ac_ext
15279 #ifdef __cplusplus
15280 extern "C" {
15281 #endif
15282
15283 _LT_EOF
15284 # Now generate the symbol file.
15285 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15286
15287 cat <<_LT_EOF >> conftest.$ac_ext
15288
15289 /* The mapping between symbol names and symbols. */
15290 const struct {
15291 const char *name;
15292 void *address;
15293 }
15294 lt__PROGRAM__LTX_preloaded_symbols[] =
15295 {
15296 { "@PROGRAM@", (void *) 0 },
15297 _LT_EOF
15298 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15299 cat <<\_LT_EOF >> conftest.$ac_ext
15300 {0, (void *) 0}
15301 };
15302
15303 /* This works around a problem in FreeBSD linker */
15304 #ifdef FREEBSD_WORKAROUND
15305 static const void *lt_preloaded_setup() {
15306 return lt__PROGRAM__LTX_preloaded_symbols;
15307 }
15308 #endif
15309
15310 #ifdef __cplusplus
15311 }
15312 #endif
15313 _LT_EOF
15314 # Now try linking the two files.
15315 mv conftest.$ac_objext conftstm.$ac_objext
15316 lt_save_LIBS="$LIBS"
15317 lt_save_CFLAGS="$CFLAGS"
15318 LIBS="conftstm.$ac_objext"
15319 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15321 (eval $ac_link) 2>&5
15322 ac_status=$?
15323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15324 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15325 pipe_works=yes
15326 fi
15327 LIBS="$lt_save_LIBS"
15328 CFLAGS="$lt_save_CFLAGS"
15329 else
15330 echo "cannot find nm_test_func in $nlist" >&5
15331 fi
15332 else
15333 echo "cannot find nm_test_var in $nlist" >&5
15334 fi
15335 else
15336 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15337 fi
15338 else
15339 echo "$progname: failed program was:" >&5
15340 cat conftest.$ac_ext >&5
15341 fi
15342 rm -rf conftest* conftst*
15343
15344 # Do not use the global_symbol_pipe unless it works.
15345 if test "$pipe_works" = yes; then
15346 break
15347 else
15348 lt_cv_sys_global_symbol_pipe=
15349 fi
15350 done
15351
15352 fi
15353
15354 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15355 lt_cv_sys_global_symbol_to_cdecl=
15356 fi
15357 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15359 $as_echo "failed" >&6; }
15360 else
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15362 $as_echo "ok" >&6; }
15363 fi
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386 # Check whether --enable-libtool-lock was given.
15387 if test "${enable_libtool_lock+set}" = set; then :
15388 enableval=$enable_libtool_lock;
15389 fi
15390
15391 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15392
15393 # Some flags need to be propagated to the compiler or linker for good
15394 # libtool support.
15395 case $host in
15396 ia64-*-hpux*)
15397 # Find out which ABI we are using.
15398 echo 'int i;' > conftest.$ac_ext
15399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15400 (eval $ac_compile) 2>&5
15401 ac_status=$?
15402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15403 test $ac_status = 0; }; then
15404 case `/usr/bin/file conftest.$ac_objext` in
15405 *ELF-32*)
15406 HPUX_IA64_MODE="32"
15407 ;;
15408 *ELF-64*)
15409 HPUX_IA64_MODE="64"
15410 ;;
15411 esac
15412 fi
15413 rm -rf conftest*
15414 ;;
15415 *-*-irix6*)
15416 # Find out which ABI we are using.
15417 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15419 (eval $ac_compile) 2>&5
15420 ac_status=$?
15421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15422 test $ac_status = 0; }; then
15423 if test "$lt_cv_prog_gnu_ld" = yes; then
15424 case `/usr/bin/file conftest.$ac_objext` in
15425 *32-bit*)
15426 LD="${LD-ld} -melf32bsmip"
15427 ;;
15428 *N32*)
15429 LD="${LD-ld} -melf32bmipn32"
15430 ;;
15431 *64-bit*)
15432 LD="${LD-ld} -melf64bmip"
15433 ;;
15434 esac
15435 else
15436 case `/usr/bin/file conftest.$ac_objext` in
15437 *32-bit*)
15438 LD="${LD-ld} -32"
15439 ;;
15440 *N32*)
15441 LD="${LD-ld} -n32"
15442 ;;
15443 *64-bit*)
15444 LD="${LD-ld} -64"
15445 ;;
15446 esac
15447 fi
15448 fi
15449 rm -rf conftest*
15450 ;;
15451
15452 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15453 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15454 # Find out which ABI we are using.
15455 echo 'int i;' > conftest.$ac_ext
15456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15457 (eval $ac_compile) 2>&5
15458 ac_status=$?
15459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15460 test $ac_status = 0; }; then
15461 case `/usr/bin/file conftest.o` in
15462 *32-bit*)
15463 case $host in
15464 x86_64-*kfreebsd*-gnu)
15465 LD="${LD-ld} -m elf_i386_fbsd"
15466 ;;
15467 x86_64-*linux*)
15468 case `/usr/bin/file conftest.o` in
15469 *x86-64*)
15470 LD="${LD-ld} -m elf32_x86_64"
15471 ;;
15472 *)
15473 LD="${LD-ld} -m elf_i386"
15474 ;;
15475 esac
15476 ;;
15477 powerpc64le-*linux*)
15478 LD="${LD-ld} -m elf32lppclinux"
15479 ;;
15480 powerpc64-*linux*)
15481 LD="${LD-ld} -m elf32ppclinux"
15482 ;;
15483 s390x-*linux*)
15484 LD="${LD-ld} -m elf_s390"
15485 ;;
15486 sparc64-*linux*)
15487 LD="${LD-ld} -m elf32_sparc"
15488 ;;
15489 esac
15490 ;;
15491 *64-bit*)
15492 case $host in
15493 x86_64-*kfreebsd*-gnu)
15494 LD="${LD-ld} -m elf_x86_64_fbsd"
15495 ;;
15496 x86_64-*linux*)
15497 LD="${LD-ld} -m elf_x86_64"
15498 ;;
15499 powerpcle-*linux*)
15500 LD="${LD-ld} -m elf64lppc"
15501 ;;
15502 powerpc-*linux*)
15503 LD="${LD-ld} -m elf64ppc"
15504 ;;
15505 s390*-*linux*|s390*-*tpf*)
15506 LD="${LD-ld} -m elf64_s390"
15507 ;;
15508 sparc*-*linux*)
15509 LD="${LD-ld} -m elf64_sparc"
15510 ;;
15511 esac
15512 ;;
15513 esac
15514 fi
15515 rm -rf conftest*
15516 ;;
15517
15518 *-*-sco3.2v5*)
15519 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15520 SAVE_CFLAGS="$CFLAGS"
15521 CFLAGS="$CFLAGS -belf"
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15523 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15524 if ${lt_cv_cc_needs_belf+:} false; then :
15525 $as_echo_n "(cached) " >&6
15526 else
15527 ac_ext=c
15528 ac_cpp='$CPP $CPPFLAGS'
15529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15532
15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15534 /* end confdefs.h. */
15535
15536 int
15537 main ()
15538 {
15539
15540 ;
15541 return 0;
15542 }
15543 _ACEOF
15544 if ac_fn_c_try_link "$LINENO"; then :
15545 lt_cv_cc_needs_belf=yes
15546 else
15547 lt_cv_cc_needs_belf=no
15548 fi
15549 rm -f core conftest.err conftest.$ac_objext \
15550 conftest$ac_exeext conftest.$ac_ext
15551 ac_ext=c
15552 ac_cpp='$CPP $CPPFLAGS'
15553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15556
15557 fi
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15559 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15560 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15561 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15562 CFLAGS="$SAVE_CFLAGS"
15563 fi
15564 ;;
15565 sparc*-*solaris*)
15566 # Find out which ABI we are using.
15567 echo 'int i;' > conftest.$ac_ext
15568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15569 (eval $ac_compile) 2>&5
15570 ac_status=$?
15571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15572 test $ac_status = 0; }; then
15573 case `/usr/bin/file conftest.o` in
15574 *64-bit*)
15575 case $lt_cv_prog_gnu_ld in
15576 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15577 *)
15578 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15579 LD="${LD-ld} -64"
15580 fi
15581 ;;
15582 esac
15583 ;;
15584 esac
15585 fi
15586 rm -rf conftest*
15587 ;;
15588 esac
15589
15590 need_locks="$enable_libtool_lock"
15591
15592
15593 case $host_os in
15594 rhapsody* | darwin*)
15595 if test -n "$ac_tool_prefix"; then
15596 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15597 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15599 $as_echo_n "checking for $ac_word... " >&6; }
15600 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15601 $as_echo_n "(cached) " >&6
15602 else
15603 if test -n "$DSYMUTIL"; then
15604 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15605 else
15606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15607 for as_dir in $PATH
15608 do
15609 IFS=$as_save_IFS
15610 test -z "$as_dir" && as_dir=.
15611 for ac_exec_ext in '' $ac_executable_extensions; do
15612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15613 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15615 break 2
15616 fi
15617 done
15618 done
15619 IFS=$as_save_IFS
15620
15621 fi
15622 fi
15623 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15624 if test -n "$DSYMUTIL"; then
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15626 $as_echo "$DSYMUTIL" >&6; }
15627 else
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15629 $as_echo "no" >&6; }
15630 fi
15631
15632
15633 fi
15634 if test -z "$ac_cv_prog_DSYMUTIL"; then
15635 ac_ct_DSYMUTIL=$DSYMUTIL
15636 # Extract the first word of "dsymutil", so it can be a program name with args.
15637 set dummy dsymutil; ac_word=$2
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15639 $as_echo_n "checking for $ac_word... " >&6; }
15640 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15641 $as_echo_n "(cached) " >&6
15642 else
15643 if test -n "$ac_ct_DSYMUTIL"; then
15644 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15645 else
15646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15647 for as_dir in $PATH
15648 do
15649 IFS=$as_save_IFS
15650 test -z "$as_dir" && as_dir=.
15651 for ac_exec_ext in '' $ac_executable_extensions; do
15652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15653 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15655 break 2
15656 fi
15657 done
15658 done
15659 IFS=$as_save_IFS
15660
15661 fi
15662 fi
15663 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15664 if test -n "$ac_ct_DSYMUTIL"; then
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15666 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15667 else
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15669 $as_echo "no" >&6; }
15670 fi
15671
15672 if test "x$ac_ct_DSYMUTIL" = x; then
15673 DSYMUTIL=":"
15674 else
15675 case $cross_compiling:$ac_tool_warned in
15676 yes:)
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15679 ac_tool_warned=yes ;;
15680 esac
15681 DSYMUTIL=$ac_ct_DSYMUTIL
15682 fi
15683 else
15684 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15685 fi
15686
15687 if test -n "$ac_tool_prefix"; then
15688 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15689 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15691 $as_echo_n "checking for $ac_word... " >&6; }
15692 if ${ac_cv_prog_NMEDIT+:} false; then :
15693 $as_echo_n "(cached) " >&6
15694 else
15695 if test -n "$NMEDIT"; then
15696 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15697 else
15698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15699 for as_dir in $PATH
15700 do
15701 IFS=$as_save_IFS
15702 test -z "$as_dir" && as_dir=.
15703 for ac_exec_ext in '' $ac_executable_extensions; do
15704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15705 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15707 break 2
15708 fi
15709 done
15710 done
15711 IFS=$as_save_IFS
15712
15713 fi
15714 fi
15715 NMEDIT=$ac_cv_prog_NMEDIT
15716 if test -n "$NMEDIT"; then
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15718 $as_echo "$NMEDIT" >&6; }
15719 else
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15721 $as_echo "no" >&6; }
15722 fi
15723
15724
15725 fi
15726 if test -z "$ac_cv_prog_NMEDIT"; then
15727 ac_ct_NMEDIT=$NMEDIT
15728 # Extract the first word of "nmedit", so it can be a program name with args.
15729 set dummy nmedit; ac_word=$2
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15731 $as_echo_n "checking for $ac_word... " >&6; }
15732 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15733 $as_echo_n "(cached) " >&6
15734 else
15735 if test -n "$ac_ct_NMEDIT"; then
15736 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15737 else
15738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15739 for as_dir in $PATH
15740 do
15741 IFS=$as_save_IFS
15742 test -z "$as_dir" && as_dir=.
15743 for ac_exec_ext in '' $ac_executable_extensions; do
15744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15745 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15747 break 2
15748 fi
15749 done
15750 done
15751 IFS=$as_save_IFS
15752
15753 fi
15754 fi
15755 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15756 if test -n "$ac_ct_NMEDIT"; then
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15758 $as_echo "$ac_ct_NMEDIT" >&6; }
15759 else
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15761 $as_echo "no" >&6; }
15762 fi
15763
15764 if test "x$ac_ct_NMEDIT" = x; then
15765 NMEDIT=":"
15766 else
15767 case $cross_compiling:$ac_tool_warned in
15768 yes:)
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15771 ac_tool_warned=yes ;;
15772 esac
15773 NMEDIT=$ac_ct_NMEDIT
15774 fi
15775 else
15776 NMEDIT="$ac_cv_prog_NMEDIT"
15777 fi
15778
15779 if test -n "$ac_tool_prefix"; then
15780 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15781 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15783 $as_echo_n "checking for $ac_word... " >&6; }
15784 if ${ac_cv_prog_LIPO+:} false; then :
15785 $as_echo_n "(cached) " >&6
15786 else
15787 if test -n "$LIPO"; then
15788 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15789 else
15790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15791 for as_dir in $PATH
15792 do
15793 IFS=$as_save_IFS
15794 test -z "$as_dir" && as_dir=.
15795 for ac_exec_ext in '' $ac_executable_extensions; do
15796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15797 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15799 break 2
15800 fi
15801 done
15802 done
15803 IFS=$as_save_IFS
15804
15805 fi
15806 fi
15807 LIPO=$ac_cv_prog_LIPO
15808 if test -n "$LIPO"; then
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15810 $as_echo "$LIPO" >&6; }
15811 else
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15813 $as_echo "no" >&6; }
15814 fi
15815
15816
15817 fi
15818 if test -z "$ac_cv_prog_LIPO"; then
15819 ac_ct_LIPO=$LIPO
15820 # Extract the first word of "lipo", so it can be a program name with args.
15821 set dummy lipo; ac_word=$2
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15823 $as_echo_n "checking for $ac_word... " >&6; }
15824 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15825 $as_echo_n "(cached) " >&6
15826 else
15827 if test -n "$ac_ct_LIPO"; then
15828 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15829 else
15830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15831 for as_dir in $PATH
15832 do
15833 IFS=$as_save_IFS
15834 test -z "$as_dir" && as_dir=.
15835 for ac_exec_ext in '' $ac_executable_extensions; do
15836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15837 ac_cv_prog_ac_ct_LIPO="lipo"
15838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15839 break 2
15840 fi
15841 done
15842 done
15843 IFS=$as_save_IFS
15844
15845 fi
15846 fi
15847 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15848 if test -n "$ac_ct_LIPO"; then
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15850 $as_echo "$ac_ct_LIPO" >&6; }
15851 else
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15853 $as_echo "no" >&6; }
15854 fi
15855
15856 if test "x$ac_ct_LIPO" = x; then
15857 LIPO=":"
15858 else
15859 case $cross_compiling:$ac_tool_warned in
15860 yes:)
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15863 ac_tool_warned=yes ;;
15864 esac
15865 LIPO=$ac_ct_LIPO
15866 fi
15867 else
15868 LIPO="$ac_cv_prog_LIPO"
15869 fi
15870
15871 if test -n "$ac_tool_prefix"; then
15872 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15873 set dummy ${ac_tool_prefix}otool; ac_word=$2
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15875 $as_echo_n "checking for $ac_word... " >&6; }
15876 if ${ac_cv_prog_OTOOL+:} false; then :
15877 $as_echo_n "(cached) " >&6
15878 else
15879 if test -n "$OTOOL"; then
15880 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15881 else
15882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15883 for as_dir in $PATH
15884 do
15885 IFS=$as_save_IFS
15886 test -z "$as_dir" && as_dir=.
15887 for ac_exec_ext in '' $ac_executable_extensions; do
15888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15889 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15891 break 2
15892 fi
15893 done
15894 done
15895 IFS=$as_save_IFS
15896
15897 fi
15898 fi
15899 OTOOL=$ac_cv_prog_OTOOL
15900 if test -n "$OTOOL"; then
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15902 $as_echo "$OTOOL" >&6; }
15903 else
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15905 $as_echo "no" >&6; }
15906 fi
15907
15908
15909 fi
15910 if test -z "$ac_cv_prog_OTOOL"; then
15911 ac_ct_OTOOL=$OTOOL
15912 # Extract the first word of "otool", so it can be a program name with args.
15913 set dummy otool; ac_word=$2
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15915 $as_echo_n "checking for $ac_word... " >&6; }
15916 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15917 $as_echo_n "(cached) " >&6
15918 else
15919 if test -n "$ac_ct_OTOOL"; then
15920 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15921 else
15922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15923 for as_dir in $PATH
15924 do
15925 IFS=$as_save_IFS
15926 test -z "$as_dir" && as_dir=.
15927 for ac_exec_ext in '' $ac_executable_extensions; do
15928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15929 ac_cv_prog_ac_ct_OTOOL="otool"
15930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15931 break 2
15932 fi
15933 done
15934 done
15935 IFS=$as_save_IFS
15936
15937 fi
15938 fi
15939 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15940 if test -n "$ac_ct_OTOOL"; then
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15942 $as_echo "$ac_ct_OTOOL" >&6; }
15943 else
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15945 $as_echo "no" >&6; }
15946 fi
15947
15948 if test "x$ac_ct_OTOOL" = x; then
15949 OTOOL=":"
15950 else
15951 case $cross_compiling:$ac_tool_warned in
15952 yes:)
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15955 ac_tool_warned=yes ;;
15956 esac
15957 OTOOL=$ac_ct_OTOOL
15958 fi
15959 else
15960 OTOOL="$ac_cv_prog_OTOOL"
15961 fi
15962
15963 if test -n "$ac_tool_prefix"; then
15964 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15965 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15967 $as_echo_n "checking for $ac_word... " >&6; }
15968 if ${ac_cv_prog_OTOOL64+:} false; then :
15969 $as_echo_n "(cached) " >&6
15970 else
15971 if test -n "$OTOOL64"; then
15972 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15973 else
15974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15975 for as_dir in $PATH
15976 do
15977 IFS=$as_save_IFS
15978 test -z "$as_dir" && as_dir=.
15979 for ac_exec_ext in '' $ac_executable_extensions; do
15980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15981 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15983 break 2
15984 fi
15985 done
15986 done
15987 IFS=$as_save_IFS
15988
15989 fi
15990 fi
15991 OTOOL64=$ac_cv_prog_OTOOL64
15992 if test -n "$OTOOL64"; then
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15994 $as_echo "$OTOOL64" >&6; }
15995 else
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15997 $as_echo "no" >&6; }
15998 fi
15999
16000
16001 fi
16002 if test -z "$ac_cv_prog_OTOOL64"; then
16003 ac_ct_OTOOL64=$OTOOL64
16004 # Extract the first word of "otool64", so it can be a program name with args.
16005 set dummy otool64; ac_word=$2
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16007 $as_echo_n "checking for $ac_word... " >&6; }
16008 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16009 $as_echo_n "(cached) " >&6
16010 else
16011 if test -n "$ac_ct_OTOOL64"; then
16012 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16013 else
16014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16015 for as_dir in $PATH
16016 do
16017 IFS=$as_save_IFS
16018 test -z "$as_dir" && as_dir=.
16019 for ac_exec_ext in '' $ac_executable_extensions; do
16020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16021 ac_cv_prog_ac_ct_OTOOL64="otool64"
16022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16023 break 2
16024 fi
16025 done
16026 done
16027 IFS=$as_save_IFS
16028
16029 fi
16030 fi
16031 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16032 if test -n "$ac_ct_OTOOL64"; then
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16034 $as_echo "$ac_ct_OTOOL64" >&6; }
16035 else
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16037 $as_echo "no" >&6; }
16038 fi
16039
16040 if test "x$ac_ct_OTOOL64" = x; then
16041 OTOOL64=":"
16042 else
16043 case $cross_compiling:$ac_tool_warned in
16044 yes:)
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16047 ac_tool_warned=yes ;;
16048 esac
16049 OTOOL64=$ac_ct_OTOOL64
16050 fi
16051 else
16052 OTOOL64="$ac_cv_prog_OTOOL64"
16053 fi
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16082 $as_echo_n "checking for -single_module linker flag... " >&6; }
16083 if ${lt_cv_apple_cc_single_mod+:} false; then :
16084 $as_echo_n "(cached) " >&6
16085 else
16086 lt_cv_apple_cc_single_mod=no
16087 if test -z "${LT_MULTI_MODULE}"; then
16088 # By default we will add the -single_module flag. You can override
16089 # by either setting the environment variable LT_MULTI_MODULE
16090 # non-empty at configure time, or by adding -multi_module to the
16091 # link flags.
16092 rm -rf libconftest.dylib*
16093 echo "int foo(void){return 1;}" > conftest.c
16094 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16095 -dynamiclib -Wl,-single_module conftest.c" >&5
16096 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16097 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16098 _lt_result=$?
16099 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16100 lt_cv_apple_cc_single_mod=yes
16101 else
16102 cat conftest.err >&5
16103 fi
16104 rm -rf libconftest.dylib*
16105 rm -f conftest.*
16106 fi
16107 fi
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16109 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16111 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16112 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16113 $as_echo_n "(cached) " >&6
16114 else
16115 lt_cv_ld_exported_symbols_list=no
16116 save_LDFLAGS=$LDFLAGS
16117 echo "_main" > conftest.sym
16118 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16120 /* end confdefs.h. */
16121
16122 int
16123 main ()
16124 {
16125
16126 ;
16127 return 0;
16128 }
16129 _ACEOF
16130 if ac_fn_c_try_link "$LINENO"; then :
16131 lt_cv_ld_exported_symbols_list=yes
16132 else
16133 lt_cv_ld_exported_symbols_list=no
16134 fi
16135 rm -f core conftest.err conftest.$ac_objext \
16136 conftest$ac_exeext conftest.$ac_ext
16137 LDFLAGS="$save_LDFLAGS"
16138
16139 fi
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16141 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16143 $as_echo_n "checking for -force_load linker flag... " >&6; }
16144 if ${lt_cv_ld_force_load+:} false; then :
16145 $as_echo_n "(cached) " >&6
16146 else
16147 lt_cv_ld_force_load=no
16148 cat > conftest.c << _LT_EOF
16149 int forced_loaded() { return 2;}
16150 _LT_EOF
16151 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16152 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16153 echo "$AR cru libconftest.a conftest.o" >&5
16154 $AR cru libconftest.a conftest.o 2>&5
16155 cat > conftest.c << _LT_EOF
16156 int main() { return 0;}
16157 _LT_EOF
16158 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16159 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16160 _lt_result=$?
16161 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16162 lt_cv_ld_force_load=yes
16163 else
16164 cat conftest.err >&5
16165 fi
16166 rm -f conftest.err libconftest.a conftest conftest.c
16167 rm -rf conftest.dSYM
16168
16169 fi
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16171 $as_echo "$lt_cv_ld_force_load" >&6; }
16172 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16173 # build without first building modern cctools / linker.
16174 case $host_cpu-$host_os in
16175 *-rhapsody* | *-darwin1.[012])
16176 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16177 *-darwin1.*)
16178 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16179 *-darwin*)
16180 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16181 # deployment target is forced to an earlier version.
16182 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16183 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16184 ;;
16185 10.[012][,.]*)
16186 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16187 ;;
16188 *)
16189 ;;
16190 esac
16191 ;;
16192 esac
16193 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16194 _lt_dar_single_mod='$single_module'
16195 fi
16196 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16197 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16198 else
16199 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16200 fi
16201 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
16202 _lt_dsymutil='~$DSYMUTIL $lib || :'
16203 else
16204 _lt_dsymutil=
16205 fi
16206 ;;
16207 esac
16208
16209
16210 for ac_header in dlfcn.h
16211 do :
16212 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16213 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16214 cat >>confdefs.h <<_ACEOF
16215 #define HAVE_DLFCN_H 1
16216 _ACEOF
16217
16218 fi
16219 done
16220
16221
16222
16223
16224
16225 # Set options
16226
16227
16228
16229 enable_dlopen=no
16230
16231
16232 enable_win32_dll=no
16233
16234
16235 # Check whether --enable-shared was given.
16236 if test "${enable_shared+set}" = set; then :
16237 enableval=$enable_shared; p=${PACKAGE-default}
16238 case $enableval in
16239 yes) enable_shared=yes ;;
16240 no) enable_shared=no ;;
16241 *)
16242 enable_shared=no
16243 # Look at the argument we got. We use all the common list separators.
16244 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16245 for pkg in $enableval; do
16246 IFS="$lt_save_ifs"
16247 if test "X$pkg" = "X$p"; then
16248 enable_shared=yes
16249 fi
16250 done
16251 IFS="$lt_save_ifs"
16252 ;;
16253 esac
16254 else
16255 enable_shared=yes
16256 fi
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266 # Check whether --enable-static was given.
16267 if test "${enable_static+set}" = set; then :
16268 enableval=$enable_static; p=${PACKAGE-default}
16269 case $enableval in
16270 yes) enable_static=yes ;;
16271 no) enable_static=no ;;
16272 *)
16273 enable_static=no
16274 # Look at the argument we got. We use all the common list separators.
16275 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16276 for pkg in $enableval; do
16277 IFS="$lt_save_ifs"
16278 if test "X$pkg" = "X$p"; then
16279 enable_static=yes
16280 fi
16281 done
16282 IFS="$lt_save_ifs"
16283 ;;
16284 esac
16285 else
16286 enable_static=yes
16287 fi
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298 # Check whether --with-pic was given.
16299 if test "${with_pic+set}" = set; then :
16300 withval=$with_pic; pic_mode="$withval"
16301 else
16302 pic_mode=default
16303 fi
16304
16305
16306 test -z "$pic_mode" && pic_mode=default
16307
16308
16309
16310
16311
16312
16313
16314 # Check whether --enable-fast-install was given.
16315 if test "${enable_fast_install+set}" = set; then :
16316 enableval=$enable_fast_install; p=${PACKAGE-default}
16317 case $enableval in
16318 yes) enable_fast_install=yes ;;
16319 no) enable_fast_install=no ;;
16320 *)
16321 enable_fast_install=no
16322 # Look at the argument we got. We use all the common list separators.
16323 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16324 for pkg in $enableval; do
16325 IFS="$lt_save_ifs"
16326 if test "X$pkg" = "X$p"; then
16327 enable_fast_install=yes
16328 fi
16329 done
16330 IFS="$lt_save_ifs"
16331 ;;
16332 esac
16333 else
16334 enable_fast_install=yes
16335 fi
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347 # This can be used to rebuild libtool when needed
16348 LIBTOOL_DEPS="$ltmain"
16349
16350 # Always use our own libtool.
16351 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378 test -z "$LN_S" && LN_S="ln -s"
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393 if test -n "${ZSH_VERSION+set}" ; then
16394 setopt NO_GLOB_SUBST
16395 fi
16396
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16398 $as_echo_n "checking for objdir... " >&6; }
16399 if ${lt_cv_objdir+:} false; then :
16400 $as_echo_n "(cached) " >&6
16401 else
16402 rm -f .libs 2>/dev/null
16403 mkdir .libs 2>/dev/null
16404 if test -d .libs; then
16405 lt_cv_objdir=.libs
16406 else
16407 # MS-DOS does not allow filenames that begin with a dot.
16408 lt_cv_objdir=_libs
16409 fi
16410 rmdir .libs 2>/dev/null
16411 fi
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16413 $as_echo "$lt_cv_objdir" >&6; }
16414 objdir=$lt_cv_objdir
16415
16416
16417
16418
16419
16420 cat >>confdefs.h <<_ACEOF
16421 #define LT_OBJDIR "$lt_cv_objdir/"
16422 _ACEOF
16423
16424
16425
16426
16427 case $host_os in
16428 aix3*)
16429 # AIX sometimes has problems with the GCC collect2 program. For some
16430 # reason, if we set the COLLECT_NAMES environment variable, the problems
16431 # vanish in a puff of smoke.
16432 if test "X${COLLECT_NAMES+set}" != Xset; then
16433 COLLECT_NAMES=
16434 export COLLECT_NAMES
16435 fi
16436 ;;
16437 esac
16438
16439 # Global variables:
16440 ofile=libtool
16441 can_build_shared=yes
16442
16443 # All known linkers require a `.a' archive for static linking (except MSVC,
16444 # which needs '.lib').
16445 libext=a
16446
16447 with_gnu_ld="$lt_cv_prog_gnu_ld"
16448
16449 old_CC="$CC"
16450 old_CFLAGS="$CFLAGS"
16451
16452 # Set sane defaults for various variables
16453 test -z "$CC" && CC=cc
16454 test -z "$LTCC" && LTCC=$CC
16455 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16456 test -z "$LD" && LD=ld
16457 test -z "$ac_objext" && ac_objext=o
16458
16459 for cc_temp in $compiler""; do
16460 case $cc_temp in
16461 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16462 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16463 \-*) ;;
16464 *) break;;
16465 esac
16466 done
16467 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16468
16469
16470 # Only perform the check for file, if the check method requires it
16471 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16472 case $deplibs_check_method in
16473 file_magic*)
16474 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16476 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16477 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16478 $as_echo_n "(cached) " >&6
16479 else
16480 case $MAGIC_CMD in
16481 [\\/*] | ?:[\\/]*)
16482 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16483 ;;
16484 *)
16485 lt_save_MAGIC_CMD="$MAGIC_CMD"
16486 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16487 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16488 for ac_dir in $ac_dummy; do
16489 IFS="$lt_save_ifs"
16490 test -z "$ac_dir" && ac_dir=.
16491 if test -f $ac_dir/${ac_tool_prefix}file; then
16492 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16493 if test -n "$file_magic_test_file"; then
16494 case $deplibs_check_method in
16495 "file_magic "*)
16496 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16498 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16499 $EGREP "$file_magic_regex" > /dev/null; then
16500 :
16501 else
16502 cat <<_LT_EOF 1>&2
16503
16504 *** Warning: the command libtool uses to detect shared libraries,
16505 *** $file_magic_cmd, produces output that libtool cannot recognize.
16506 *** The result is that libtool may fail to recognize shared libraries
16507 *** as such. This will affect the creation of libtool libraries that
16508 *** depend on shared libraries, but programs linked with such libtool
16509 *** libraries will work regardless of this problem. Nevertheless, you
16510 *** may want to report the problem to your system manager and/or to
16511 *** bug-libtool@gnu.org
16512
16513 _LT_EOF
16514 fi ;;
16515 esac
16516 fi
16517 break
16518 fi
16519 done
16520 IFS="$lt_save_ifs"
16521 MAGIC_CMD="$lt_save_MAGIC_CMD"
16522 ;;
16523 esac
16524 fi
16525
16526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16527 if test -n "$MAGIC_CMD"; then
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16529 $as_echo "$MAGIC_CMD" >&6; }
16530 else
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16532 $as_echo "no" >&6; }
16533 fi
16534
16535
16536
16537
16538
16539 if test -z "$lt_cv_path_MAGIC_CMD"; then
16540 if test -n "$ac_tool_prefix"; then
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16542 $as_echo_n "checking for file... " >&6; }
16543 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16544 $as_echo_n "(cached) " >&6
16545 else
16546 case $MAGIC_CMD in
16547 [\\/*] | ?:[\\/]*)
16548 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16549 ;;
16550 *)
16551 lt_save_MAGIC_CMD="$MAGIC_CMD"
16552 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16553 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16554 for ac_dir in $ac_dummy; do
16555 IFS="$lt_save_ifs"
16556 test -z "$ac_dir" && ac_dir=.
16557 if test -f $ac_dir/file; then
16558 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16559 if test -n "$file_magic_test_file"; then
16560 case $deplibs_check_method in
16561 "file_magic "*)
16562 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16564 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16565 $EGREP "$file_magic_regex" > /dev/null; then
16566 :
16567 else
16568 cat <<_LT_EOF 1>&2
16569
16570 *** Warning: the command libtool uses to detect shared libraries,
16571 *** $file_magic_cmd, produces output that libtool cannot recognize.
16572 *** The result is that libtool may fail to recognize shared libraries
16573 *** as such. This will affect the creation of libtool libraries that
16574 *** depend on shared libraries, but programs linked with such libtool
16575 *** libraries will work regardless of this problem. Nevertheless, you
16576 *** may want to report the problem to your system manager and/or to
16577 *** bug-libtool@gnu.org
16578
16579 _LT_EOF
16580 fi ;;
16581 esac
16582 fi
16583 break
16584 fi
16585 done
16586 IFS="$lt_save_ifs"
16587 MAGIC_CMD="$lt_save_MAGIC_CMD"
16588 ;;
16589 esac
16590 fi
16591
16592 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16593 if test -n "$MAGIC_CMD"; then
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16595 $as_echo "$MAGIC_CMD" >&6; }
16596 else
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16598 $as_echo "no" >&6; }
16599 fi
16600
16601
16602 else
16603 MAGIC_CMD=:
16604 fi
16605 fi
16606
16607 fi
16608 ;;
16609 esac
16610
16611 # Use C for the default configuration in the libtool script
16612
16613 lt_save_CC="$CC"
16614 ac_ext=c
16615 ac_cpp='$CPP $CPPFLAGS'
16616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16619
16620
16621 # Source file extension for C test sources.
16622 ac_ext=c
16623
16624 # Object file extension for compiled C test sources.
16625 objext=o
16626 objext=$objext
16627
16628 # Code to be used in simple compile tests
16629 lt_simple_compile_test_code="int some_variable = 0;"
16630
16631 # Code to be used in simple link tests
16632 lt_simple_link_test_code='int main(){return(0);}'
16633
16634
16635
16636
16637
16638
16639
16640 # If no C compiler was specified, use CC.
16641 LTCC=${LTCC-"$CC"}
16642
16643 # If no C compiler flags were specified, use CFLAGS.
16644 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16645
16646 # Allow CC to be a program name with arguments.
16647 compiler=$CC
16648
16649 # Save the default compiler, since it gets overwritten when the other
16650 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16651 compiler_DEFAULT=$CC
16652
16653 # save warnings/boilerplate of simple test code
16654 ac_outfile=conftest.$ac_objext
16655 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16657 _lt_compiler_boilerplate=`cat conftest.err`
16658 $RM conftest*
16659
16660 ac_outfile=conftest.$ac_objext
16661 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16663 _lt_linker_boilerplate=`cat conftest.err`
16664 $RM -r conftest*
16665
16666
16667 ## CAVEAT EMPTOR:
16668 ## There is no encapsulation within the following macros, do not change
16669 ## the running order or otherwise move them around unless you know exactly
16670 ## what you are doing...
16671 if test -n "$compiler"; then
16672
16673 lt_prog_compiler_no_builtin_flag=
16674
16675 if test "$GCC" = yes; then
16676 case $cc_basename in
16677 nvcc*)
16678 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16679 *)
16680 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16681 esac
16682
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16684 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16685 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16686 $as_echo_n "(cached) " >&6
16687 else
16688 lt_cv_prog_compiler_rtti_exceptions=no
16689 ac_outfile=conftest.$ac_objext
16690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16691 lt_compiler_flag="-fno-rtti -fno-exceptions"
16692 # Insert the option either (1) after the last *FLAGS variable, or
16693 # (2) before a word containing "conftest.", or (3) at the end.
16694 # Note that $ac_compile itself does not contain backslashes and begins
16695 # with a dollar sign (not a hyphen), so the echo should work correctly.
16696 # The option is referenced via a variable to avoid confusing sed.
16697 lt_compile=`echo "$ac_compile" | $SED \
16698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16700 -e 's:$: $lt_compiler_flag:'`
16701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16702 (eval "$lt_compile" 2>conftest.err)
16703 ac_status=$?
16704 cat conftest.err >&5
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 if (exit $ac_status) && test -s "$ac_outfile"; then
16707 # The compiler can only warn and ignore the option if not recognized
16708 # So say no if there are warnings other than the usual output.
16709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16712 lt_cv_prog_compiler_rtti_exceptions=yes
16713 fi
16714 fi
16715 $RM conftest*
16716
16717 fi
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16719 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16720
16721 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16722 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16723 else
16724 :
16725 fi
16726
16727 fi
16728
16729
16730
16731
16732
16733
16734 lt_prog_compiler_wl=
16735 lt_prog_compiler_pic=
16736 lt_prog_compiler_static=
16737
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16739 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16740
16741 if test "$GCC" = yes; then
16742 lt_prog_compiler_wl='-Wl,'
16743 lt_prog_compiler_static='-static'
16744
16745 case $host_os in
16746 aix*)
16747 # All AIX code is PIC.
16748 if test "$host_cpu" = ia64; then
16749 # AIX 5 now supports IA64 processor
16750 lt_prog_compiler_static='-Bstatic'
16751 fi
16752 lt_prog_compiler_pic='-fPIC'
16753 ;;
16754
16755 amigaos*)
16756 case $host_cpu in
16757 powerpc)
16758 # see comment about AmigaOS4 .so support
16759 lt_prog_compiler_pic='-fPIC'
16760 ;;
16761 m68k)
16762 # FIXME: we need at least 68020 code to build shared libraries, but
16763 # adding the `-m68020' flag to GCC prevents building anything better,
16764 # like `-m68040'.
16765 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16766 ;;
16767 esac
16768 ;;
16769
16770 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16771 # PIC is the default for these OSes.
16772 ;;
16773
16774 mingw* | cygwin* | pw32* | os2* | cegcc*)
16775 # This hack is so that the source file can tell whether it is being
16776 # built for inclusion in a dll (and should export symbols for example).
16777 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16778 # (--disable-auto-import) libraries
16779 lt_prog_compiler_pic='-DDLL_EXPORT'
16780 ;;
16781
16782 darwin* | rhapsody*)
16783 # PIC is the default on this platform
16784 # Common symbols not allowed in MH_DYLIB files
16785 lt_prog_compiler_pic='-fno-common'
16786 ;;
16787
16788 haiku*)
16789 # PIC is the default for Haiku.
16790 # The "-static" flag exists, but is broken.
16791 lt_prog_compiler_static=
16792 ;;
16793
16794 hpux*)
16795 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16796 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16797 # sets the default TLS model and affects inlining.
16798 case $host_cpu in
16799 hppa*64*)
16800 # +Z the default
16801 ;;
16802 *)
16803 lt_prog_compiler_pic='-fPIC'
16804 ;;
16805 esac
16806 ;;
16807
16808 interix[3-9]*)
16809 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16810 # Instead, we relocate shared libraries at runtime.
16811 ;;
16812
16813 msdosdjgpp*)
16814 # Just because we use GCC doesn't mean we suddenly get shared libraries
16815 # on systems that don't support them.
16816 lt_prog_compiler_can_build_shared=no
16817 enable_shared=no
16818 ;;
16819
16820 *nto* | *qnx*)
16821 # QNX uses GNU C++, but need to define -shared option too, otherwise
16822 # it will coredump.
16823 lt_prog_compiler_pic='-fPIC -shared'
16824 ;;
16825
16826 sysv4*MP*)
16827 if test -d /usr/nec; then
16828 lt_prog_compiler_pic=-Kconform_pic
16829 fi
16830 ;;
16831
16832 *)
16833 lt_prog_compiler_pic='-fPIC'
16834 ;;
16835 esac
16836
16837 case $cc_basename in
16838 nvcc*) # Cuda Compiler Driver 2.2
16839 lt_prog_compiler_wl='-Xlinker '
16840 lt_prog_compiler_pic='-Xcompiler -fPIC'
16841 ;;
16842 esac
16843 else
16844 # PORTME Check for flag to pass linker flags through the system compiler.
16845 case $host_os in
16846 aix*)
16847 lt_prog_compiler_wl='-Wl,'
16848 if test "$host_cpu" = ia64; then
16849 # AIX 5 now supports IA64 processor
16850 lt_prog_compiler_static='-Bstatic'
16851 else
16852 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16853 fi
16854 ;;
16855
16856 mingw* | cygwin* | pw32* | os2* | cegcc*)
16857 # This hack is so that the source file can tell whether it is being
16858 # built for inclusion in a dll (and should export symbols for example).
16859 lt_prog_compiler_pic='-DDLL_EXPORT'
16860 ;;
16861
16862 hpux9* | hpux10* | hpux11*)
16863 lt_prog_compiler_wl='-Wl,'
16864 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16865 # not for PA HP-UX.
16866 case $host_cpu in
16867 hppa*64*|ia64*)
16868 # +Z the default
16869 ;;
16870 *)
16871 lt_prog_compiler_pic='+Z'
16872 ;;
16873 esac
16874 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16875 lt_prog_compiler_static='${wl}-a ${wl}archive'
16876 ;;
16877
16878 irix5* | irix6* | nonstopux*)
16879 lt_prog_compiler_wl='-Wl,'
16880 # PIC (with -KPIC) is the default.
16881 lt_prog_compiler_static='-non_shared'
16882 ;;
16883
16884 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16885 case $cc_basename in
16886 # old Intel for x86_64 which still supported -KPIC.
16887 ecc*)
16888 lt_prog_compiler_wl='-Wl,'
16889 lt_prog_compiler_pic='-KPIC'
16890 lt_prog_compiler_static='-static'
16891 ;;
16892 # icc used to be incompatible with GCC.
16893 # ICC 10 doesn't accept -KPIC any more.
16894 icc* | ifort*)
16895 lt_prog_compiler_wl='-Wl,'
16896 lt_prog_compiler_pic='-fPIC'
16897 lt_prog_compiler_static='-static'
16898 ;;
16899 # Lahey Fortran 8.1.
16900 lf95*)
16901 lt_prog_compiler_wl='-Wl,'
16902 lt_prog_compiler_pic='--shared'
16903 lt_prog_compiler_static='--static'
16904 ;;
16905 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16906 # Portland Group compilers (*not* the Pentium gcc compiler,
16907 # which looks to be a dead project)
16908 lt_prog_compiler_wl='-Wl,'
16909 lt_prog_compiler_pic='-fpic'
16910 lt_prog_compiler_static='-Bstatic'
16911 ;;
16912 ccc*)
16913 lt_prog_compiler_wl='-Wl,'
16914 # All Alpha code is PIC.
16915 lt_prog_compiler_static='-non_shared'
16916 ;;
16917 xl* | bgxl* | bgf* | mpixl*)
16918 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16919 lt_prog_compiler_wl='-Wl,'
16920 lt_prog_compiler_pic='-qpic'
16921 lt_prog_compiler_static='-qstaticlink'
16922 ;;
16923 *)
16924 case `$CC -V 2>&1 | sed 5q` in
16925 *Sun\ F* | *Sun*Fortran*)
16926 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16927 lt_prog_compiler_pic='-KPIC'
16928 lt_prog_compiler_static='-Bstatic'
16929 lt_prog_compiler_wl=''
16930 ;;
16931 *Sun\ C*)
16932 # Sun C 5.9
16933 lt_prog_compiler_pic='-KPIC'
16934 lt_prog_compiler_static='-Bstatic'
16935 lt_prog_compiler_wl='-Wl,'
16936 ;;
16937 esac
16938 ;;
16939 esac
16940 ;;
16941
16942 newsos6)
16943 lt_prog_compiler_pic='-KPIC'
16944 lt_prog_compiler_static='-Bstatic'
16945 ;;
16946
16947 *nto* | *qnx*)
16948 # QNX uses GNU C++, but need to define -shared option too, otherwise
16949 # it will coredump.
16950 lt_prog_compiler_pic='-fPIC -shared'
16951 ;;
16952
16953 osf3* | osf4* | osf5*)
16954 lt_prog_compiler_wl='-Wl,'
16955 # All OSF/1 code is PIC.
16956 lt_prog_compiler_static='-non_shared'
16957 ;;
16958
16959 rdos*)
16960 lt_prog_compiler_static='-non_shared'
16961 ;;
16962
16963 solaris*)
16964 lt_prog_compiler_pic='-KPIC'
16965 lt_prog_compiler_static='-Bstatic'
16966 case $cc_basename in
16967 f77* | f90* | f95*)
16968 lt_prog_compiler_wl='-Qoption ld ';;
16969 *)
16970 lt_prog_compiler_wl='-Wl,';;
16971 esac
16972 ;;
16973
16974 sunos4*)
16975 lt_prog_compiler_wl='-Qoption ld '
16976 lt_prog_compiler_pic='-PIC'
16977 lt_prog_compiler_static='-Bstatic'
16978 ;;
16979
16980 sysv4 | sysv4.2uw2* | sysv4.3*)
16981 lt_prog_compiler_wl='-Wl,'
16982 lt_prog_compiler_pic='-KPIC'
16983 lt_prog_compiler_static='-Bstatic'
16984 ;;
16985
16986 sysv4*MP*)
16987 if test -d /usr/nec ;then
16988 lt_prog_compiler_pic='-Kconform_pic'
16989 lt_prog_compiler_static='-Bstatic'
16990 fi
16991 ;;
16992
16993 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16994 lt_prog_compiler_wl='-Wl,'
16995 lt_prog_compiler_pic='-KPIC'
16996 lt_prog_compiler_static='-Bstatic'
16997 ;;
16998
16999 unicos*)
17000 lt_prog_compiler_wl='-Wl,'
17001 lt_prog_compiler_can_build_shared=no
17002 ;;
17003
17004 uts4*)
17005 lt_prog_compiler_pic='-pic'
17006 lt_prog_compiler_static='-Bstatic'
17007 ;;
17008
17009 *)
17010 lt_prog_compiler_can_build_shared=no
17011 ;;
17012 esac
17013 fi
17014
17015 case $host_os in
17016 # For platforms which do not support PIC, -DPIC is meaningless:
17017 *djgpp*)
17018 lt_prog_compiler_pic=
17019 ;;
17020 *)
17021 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17022 ;;
17023 esac
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
17025 $as_echo "$lt_prog_compiler_pic" >&6; }
17026
17027
17028
17029
17030
17031
17032 #
17033 # Check to make sure the PIC flag actually works.
17034 #
17035 if test -n "$lt_prog_compiler_pic"; then
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17037 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17038 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17039 $as_echo_n "(cached) " >&6
17040 else
17041 lt_cv_prog_compiler_pic_works=no
17042 ac_outfile=conftest.$ac_objext
17043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17044 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17045 # Insert the option either (1) after the last *FLAGS variable, or
17046 # (2) before a word containing "conftest.", or (3) at the end.
17047 # Note that $ac_compile itself does not contain backslashes and begins
17048 # with a dollar sign (not a hyphen), so the echo should work correctly.
17049 # The option is referenced via a variable to avoid confusing sed.
17050 lt_compile=`echo "$ac_compile" | $SED \
17051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17053 -e 's:$: $lt_compiler_flag:'`
17054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17055 (eval "$lt_compile" 2>conftest.err)
17056 ac_status=$?
17057 cat conftest.err >&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 if (exit $ac_status) && test -s "$ac_outfile"; then
17060 # The compiler can only warn and ignore the option if not recognized
17061 # So say no if there are warnings other than the usual output.
17062 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17064 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17065 lt_cv_prog_compiler_pic_works=yes
17066 fi
17067 fi
17068 $RM conftest*
17069
17070 fi
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17072 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17073
17074 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17075 case $lt_prog_compiler_pic in
17076 "" | " "*) ;;
17077 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17078 esac
17079 else
17080 lt_prog_compiler_pic=
17081 lt_prog_compiler_can_build_shared=no
17082 fi
17083
17084 fi
17085
17086
17087
17088
17089
17090
17091 #
17092 # Check to make sure the static flag actually works.
17093 #
17094 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17096 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17097 if ${lt_cv_prog_compiler_static_works+:} false; then :
17098 $as_echo_n "(cached) " >&6
17099 else
17100 lt_cv_prog_compiler_static_works=no
17101 save_LDFLAGS="$LDFLAGS"
17102 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17103 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17104 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17105 # The linker can only warn and ignore the option if not recognized
17106 # So say no if there are warnings
17107 if test -s conftest.err; then
17108 # Append any errors to the config.log.
17109 cat conftest.err 1>&5
17110 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17111 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17112 if diff conftest.exp conftest.er2 >/dev/null; then
17113 lt_cv_prog_compiler_static_works=yes
17114 fi
17115 else
17116 lt_cv_prog_compiler_static_works=yes
17117 fi
17118 fi
17119 $RM -r conftest*
17120 LDFLAGS="$save_LDFLAGS"
17121
17122 fi
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17124 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17125
17126 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17127 :
17128 else
17129 lt_prog_compiler_static=
17130 fi
17131
17132
17133
17134
17135
17136
17137
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17139 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17140 if ${lt_cv_prog_compiler_c_o+:} false; then :
17141 $as_echo_n "(cached) " >&6
17142 else
17143 lt_cv_prog_compiler_c_o=no
17144 $RM -r conftest 2>/dev/null
17145 mkdir conftest
17146 cd conftest
17147 mkdir out
17148 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17149
17150 lt_compiler_flag="-o out/conftest2.$ac_objext"
17151 # Insert the option either (1) after the last *FLAGS variable, or
17152 # (2) before a word containing "conftest.", or (3) at the end.
17153 # Note that $ac_compile itself does not contain backslashes and begins
17154 # with a dollar sign (not a hyphen), so the echo should work correctly.
17155 lt_compile=`echo "$ac_compile" | $SED \
17156 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17158 -e 's:$: $lt_compiler_flag:'`
17159 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17160 (eval "$lt_compile" 2>out/conftest.err)
17161 ac_status=$?
17162 cat out/conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17165 then
17166 # The compiler can only warn and ignore the option if not recognized
17167 # So say no if there are warnings
17168 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17169 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17170 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17171 lt_cv_prog_compiler_c_o=yes
17172 fi
17173 fi
17174 chmod u+w . 2>&5
17175 $RM conftest*
17176 # SGI C++ compiler will create directory out/ii_files/ for
17177 # template instantiation
17178 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17179 $RM out/* && rmdir out
17180 cd ..
17181 $RM -r conftest
17182 $RM conftest*
17183
17184 fi
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17186 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17187
17188
17189
17190
17191
17192
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17194 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17195 if ${lt_cv_prog_compiler_c_o+:} false; then :
17196 $as_echo_n "(cached) " >&6
17197 else
17198 lt_cv_prog_compiler_c_o=no
17199 $RM -r conftest 2>/dev/null
17200 mkdir conftest
17201 cd conftest
17202 mkdir out
17203 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17204
17205 lt_compiler_flag="-o out/conftest2.$ac_objext"
17206 # Insert the option either (1) after the last *FLAGS variable, or
17207 # (2) before a word containing "conftest.", or (3) at the end.
17208 # Note that $ac_compile itself does not contain backslashes and begins
17209 # with a dollar sign (not a hyphen), so the echo should work correctly.
17210 lt_compile=`echo "$ac_compile" | $SED \
17211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17213 -e 's:$: $lt_compiler_flag:'`
17214 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17215 (eval "$lt_compile" 2>out/conftest.err)
17216 ac_status=$?
17217 cat out/conftest.err >&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17220 then
17221 # The compiler can only warn and ignore the option if not recognized
17222 # So say no if there are warnings
17223 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17224 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17225 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17226 lt_cv_prog_compiler_c_o=yes
17227 fi
17228 fi
17229 chmod u+w . 2>&5
17230 $RM conftest*
17231 # SGI C++ compiler will create directory out/ii_files/ for
17232 # template instantiation
17233 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17234 $RM out/* && rmdir out
17235 cd ..
17236 $RM -r conftest
17237 $RM conftest*
17238
17239 fi
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17241 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17242
17243
17244
17245
17246 hard_links="nottested"
17247 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17248 # do not overwrite the value of need_locks provided by the user
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17250 $as_echo_n "checking if we can lock with hard links... " >&6; }
17251 hard_links=yes
17252 $RM conftest*
17253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17254 touch conftest.a
17255 ln conftest.a conftest.b 2>&5 || hard_links=no
17256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17258 $as_echo "$hard_links" >&6; }
17259 if test "$hard_links" = no; then
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17261 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17262 need_locks=warn
17263 fi
17264 else
17265 need_locks=no
17266 fi
17267
17268
17269
17270
17271
17272
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17274 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17275
17276 runpath_var=
17277 allow_undefined_flag=
17278 always_export_symbols=no
17279 archive_cmds=
17280 archive_expsym_cmds=
17281 compiler_needs_object=no
17282 enable_shared_with_static_runtimes=no
17283 export_dynamic_flag_spec=
17284 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17285 hardcode_automatic=no
17286 hardcode_direct=no
17287 hardcode_direct_absolute=no
17288 hardcode_libdir_flag_spec=
17289 hardcode_libdir_flag_spec_ld=
17290 hardcode_libdir_separator=
17291 hardcode_minus_L=no
17292 hardcode_shlibpath_var=unsupported
17293 inherit_rpath=no
17294 link_all_deplibs=unknown
17295 module_cmds=
17296 module_expsym_cmds=
17297 old_archive_from_new_cmds=
17298 old_archive_from_expsyms_cmds=
17299 thread_safe_flag_spec=
17300 whole_archive_flag_spec=
17301 # include_expsyms should be a list of space-separated symbols to be *always*
17302 # included in the symbol list
17303 include_expsyms=
17304 # exclude_expsyms can be an extended regexp of symbols to exclude
17305 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17306 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17307 # as well as any symbol that contains `d'.
17308 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17309 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17310 # platforms (ab)use it in PIC code, but their linkers get confused if
17311 # the symbol is explicitly referenced. Since portable code cannot
17312 # rely on this symbol name, it's probably fine to never include it in
17313 # preloaded symbol tables.
17314 # Exclude shared library initialization/finalization symbols.
17315 extract_expsyms_cmds=
17316
17317 case $host_os in
17318 cygwin* | mingw* | pw32* | cegcc*)
17319 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17320 # When not using gcc, we currently assume that we are using
17321 # Microsoft Visual C++.
17322 if test "$GCC" != yes; then
17323 with_gnu_ld=no
17324 fi
17325 ;;
17326 interix*)
17327 # we just hope/assume this is gcc and not c89 (= MSVC++)
17328 with_gnu_ld=yes
17329 ;;
17330 openbsd*)
17331 with_gnu_ld=no
17332 ;;
17333 esac
17334
17335 ld_shlibs=yes
17336
17337 # On some targets, GNU ld is compatible enough with the native linker
17338 # that we're better off using the native interface for both.
17339 lt_use_gnu_ld_interface=no
17340 if test "$with_gnu_ld" = yes; then
17341 case $host_os in
17342 aix*)
17343 # The AIX port of GNU ld has always aspired to compatibility
17344 # with the native linker. However, as the warning in the GNU ld
17345 # block says, versions before 2.19.5* couldn't really create working
17346 # shared libraries, regardless of the interface used.
17347 case `$LD -v 2>&1` in
17348 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17349 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17350 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17351 *)
17352 lt_use_gnu_ld_interface=yes
17353 ;;
17354 esac
17355 ;;
17356 *)
17357 lt_use_gnu_ld_interface=yes
17358 ;;
17359 esac
17360 fi
17361
17362 if test "$lt_use_gnu_ld_interface" = yes; then
17363 # If archive_cmds runs LD, not CC, wlarc should be empty
17364 wlarc='${wl}'
17365
17366 # Set some defaults for GNU ld with shared library support. These
17367 # are reset later if shared libraries are not supported. Putting them
17368 # here allows them to be overridden if necessary.
17369 runpath_var=LD_RUN_PATH
17370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17371 export_dynamic_flag_spec='${wl}--export-dynamic'
17372 # ancient GNU ld didn't support --whole-archive et. al.
17373 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17374 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17375 else
17376 whole_archive_flag_spec=
17377 fi
17378 supports_anon_versioning=no
17379 case `$LD -v 2>&1` in
17380 *GNU\ gold*) supports_anon_versioning=yes ;;
17381 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17382 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17383 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17384 *\ 2.11.*) ;; # other 2.11 versions
17385 *) supports_anon_versioning=yes ;;
17386 esac
17387
17388 # See if GNU ld supports shared libraries.
17389 case $host_os in
17390 aix[3-9]*)
17391 # On AIX/PPC, the GNU linker is very broken
17392 if test "$host_cpu" != ia64; then
17393 ld_shlibs=no
17394 cat <<_LT_EOF 1>&2
17395
17396 *** Warning: the GNU linker, at least up to release 2.19, is reported
17397 *** to be unable to reliably create shared libraries on AIX.
17398 *** Therefore, libtool is disabling shared libraries support. If you
17399 *** really care for shared libraries, you may want to install binutils
17400 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17401 *** You will then need to restart the configuration process.
17402
17403 _LT_EOF
17404 fi
17405 ;;
17406
17407 amigaos*)
17408 case $host_cpu in
17409 powerpc)
17410 # see comment about AmigaOS4 .so support
17411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17412 archive_expsym_cmds=''
17413 ;;
17414 m68k)
17415 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)'
17416 hardcode_libdir_flag_spec='-L$libdir'
17417 hardcode_minus_L=yes
17418 ;;
17419 esac
17420 ;;
17421
17422 beos*)
17423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17424 allow_undefined_flag=unsupported
17425 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17426 # support --undefined. This deserves some investigation. FIXME
17427 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17428 else
17429 ld_shlibs=no
17430 fi
17431 ;;
17432
17433 cygwin* | mingw* | pw32* | cegcc*)
17434 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17435 # as there is no search path for DLLs.
17436 hardcode_libdir_flag_spec='-L$libdir'
17437 export_dynamic_flag_spec='${wl}--export-all-symbols'
17438 allow_undefined_flag=unsupported
17439 always_export_symbols=no
17440 enable_shared_with_static_runtimes=yes
17441 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17442
17443 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17444 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17445 # If the export-symbols file already is a .def file (1st line
17446 # is EXPORTS), use it as is; otherwise, prepend...
17447 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17448 cp $export_symbols $output_objdir/$soname.def;
17449 else
17450 echo EXPORTS > $output_objdir/$soname.def;
17451 cat $export_symbols >> $output_objdir/$soname.def;
17452 fi~
17453 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17454 else
17455 ld_shlibs=no
17456 fi
17457 ;;
17458
17459 haiku*)
17460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17461 link_all_deplibs=yes
17462 ;;
17463
17464 interix[3-9]*)
17465 hardcode_direct=no
17466 hardcode_shlibpath_var=no
17467 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17468 export_dynamic_flag_spec='${wl}-E'
17469 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17470 # Instead, shared libraries are loaded at an image base (0x10000000 by
17471 # default) and relocated if they conflict, which is a slow very memory
17472 # consuming and fragmenting process. To avoid this, we pick a random,
17473 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17474 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17475 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17476 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'
17477 ;;
17478
17479 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17480 tmp_diet=no
17481 if test "$host_os" = linux-dietlibc; then
17482 case $cc_basename in
17483 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17484 esac
17485 fi
17486 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17487 && test "$tmp_diet" = no
17488 then
17489 tmp_addflag=' $pic_flag'
17490 tmp_sharedflag='-shared'
17491 case $cc_basename,$host_cpu in
17492 pgcc*) # Portland Group C compiler
17493 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'
17494 tmp_addflag=' $pic_flag'
17495 ;;
17496 pgf77* | pgf90* | pgf95* | pgfortran*)
17497 # Portland Group f77 and f90 compilers
17498 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'
17499 tmp_addflag=' $pic_flag -Mnomain' ;;
17500 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17501 tmp_addflag=' -i_dynamic' ;;
17502 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17503 tmp_addflag=' -i_dynamic -nofor_main' ;;
17504 ifc* | ifort*) # Intel Fortran compiler
17505 tmp_addflag=' -nofor_main' ;;
17506 lf95*) # Lahey Fortran 8.1
17507 whole_archive_flag_spec=
17508 tmp_sharedflag='--shared' ;;
17509 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17510 tmp_sharedflag='-qmkshrobj'
17511 tmp_addflag= ;;
17512 nvcc*) # Cuda Compiler Driver 2.2
17513 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'
17514 compiler_needs_object=yes
17515 ;;
17516 esac
17517 case `$CC -V 2>&1 | sed 5q` in
17518 *Sun\ C*) # Sun C 5.9
17519 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'
17520 compiler_needs_object=yes
17521 tmp_sharedflag='-G' ;;
17522 *Sun\ F*) # Sun Fortran 8.3
17523 tmp_sharedflag='-G' ;;
17524 esac
17525 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17526
17527 if test "x$supports_anon_versioning" = xyes; then
17528 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17529 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17530 echo "local: *; };" >> $output_objdir/$libname.ver~
17531 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17532 fi
17533
17534 case $cc_basename in
17535 xlf* | bgf* | bgxlf* | mpixlf*)
17536 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17537 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17538 hardcode_libdir_flag_spec=
17539 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17540 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17541 if test "x$supports_anon_versioning" = xyes; then
17542 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17543 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17544 echo "local: *; };" >> $output_objdir/$libname.ver~
17545 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17546 fi
17547 ;;
17548 esac
17549 else
17550 ld_shlibs=no
17551 fi
17552 ;;
17553
17554 netbsd*)
17555 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17556 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17557 wlarc=
17558 else
17559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17560 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17561 fi
17562 ;;
17563
17564 solaris*)
17565 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17566 ld_shlibs=no
17567 cat <<_LT_EOF 1>&2
17568
17569 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17570 *** create shared libraries on Solaris systems. Therefore, libtool
17571 *** is disabling shared libraries support. We urge you to upgrade GNU
17572 *** binutils to release 2.9.1 or newer. Another option is to modify
17573 *** your PATH or compiler configuration so that the native linker is
17574 *** used, and then restart.
17575
17576 _LT_EOF
17577 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17579 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17580 else
17581 ld_shlibs=no
17582 fi
17583 ;;
17584
17585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17586 case `$LD -v 2>&1` in
17587 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17588 ld_shlibs=no
17589 cat <<_LT_EOF 1>&2
17590
17591 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17592 *** reliably create shared libraries on SCO systems. Therefore, libtool
17593 *** is disabling shared libraries support. We urge you to upgrade GNU
17594 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17595 *** your PATH or compiler configuration so that the native linker is
17596 *** used, and then restart.
17597
17598 _LT_EOF
17599 ;;
17600 *)
17601 # For security reasons, it is highly recommended that you always
17602 # use absolute paths for naming shared libraries, and exclude the
17603 # DT_RUNPATH tag from executables and libraries. But doing so
17604 # requires that you compile everything twice, which is a pain.
17605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17608 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17609 else
17610 ld_shlibs=no
17611 fi
17612 ;;
17613 esac
17614 ;;
17615
17616 sunos4*)
17617 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17618 wlarc=
17619 hardcode_direct=yes
17620 hardcode_shlibpath_var=no
17621 ;;
17622
17623 *)
17624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17626 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17627 else
17628 ld_shlibs=no
17629 fi
17630 ;;
17631 esac
17632
17633 if test "$ld_shlibs" = no; then
17634 runpath_var=
17635 hardcode_libdir_flag_spec=
17636 export_dynamic_flag_spec=
17637 whole_archive_flag_spec=
17638 fi
17639 else
17640 # PORTME fill in a description of your system's linker (not GNU ld)
17641 case $host_os in
17642 aix3*)
17643 allow_undefined_flag=unsupported
17644 always_export_symbols=yes
17645 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'
17646 # Note: this linker hardcodes the directories in LIBPATH if there
17647 # are no directories specified by -L.
17648 hardcode_minus_L=yes
17649 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17650 # Neither direct hardcoding nor static linking is supported with a
17651 # broken collect2.
17652 hardcode_direct=unsupported
17653 fi
17654 ;;
17655
17656 aix[4-9]*)
17657 if test "$host_cpu" = ia64; then
17658 # On IA64, the linker does run time linking by default, so we don't
17659 # have to do anything special.
17660 aix_use_runtimelinking=no
17661 exp_sym_flag='-Bexport'
17662 no_entry_flag=""
17663 else
17664 # If we're using GNU nm, then we don't want the "-C" option.
17665 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17666 # Also, AIX nm treats weak defined symbols like other global
17667 # defined symbols, whereas GNU nm marks them as "W".
17668 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17669 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'
17670 else
17671 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'
17672 fi
17673 aix_use_runtimelinking=no
17674
17675 # Test if we are trying to use run time linking or normal
17676 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17677 # need to do runtime linking.
17678 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17679 for ld_flag in $LDFLAGS; do
17680 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17681 aix_use_runtimelinking=yes
17682 break
17683 fi
17684 done
17685 ;;
17686 esac
17687
17688 exp_sym_flag='-bexport'
17689 no_entry_flag='-bnoentry'
17690 fi
17691
17692 # When large executables or shared objects are built, AIX ld can
17693 # have problems creating the table of contents. If linking a library
17694 # or program results in "error TOC overflow" add -mminimal-toc to
17695 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17696 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17697
17698 archive_cmds=''
17699 hardcode_direct=yes
17700 hardcode_direct_absolute=yes
17701 hardcode_libdir_separator=':'
17702 link_all_deplibs=yes
17703 file_list_spec='${wl}-f,'
17704
17705 if test "$GCC" = yes; then
17706 case $host_os in aix4.[012]|aix4.[012].*)
17707 # We only want to do this on AIX 4.2 and lower, the check
17708 # below for broken collect2 doesn't work under 4.3+
17709 collect2name=`${CC} -print-prog-name=collect2`
17710 if test -f "$collect2name" &&
17711 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17712 then
17713 # We have reworked collect2
17714 :
17715 else
17716 # We have old collect2
17717 hardcode_direct=unsupported
17718 # It fails to find uninstalled libraries when the uninstalled
17719 # path is not listed in the libpath. Setting hardcode_minus_L
17720 # to unsupported forces relinking
17721 hardcode_minus_L=yes
17722 hardcode_libdir_flag_spec='-L$libdir'
17723 hardcode_libdir_separator=
17724 fi
17725 ;;
17726 esac
17727 shared_flag='-shared'
17728 if test "$aix_use_runtimelinking" = yes; then
17729 shared_flag="$shared_flag "'${wl}-G'
17730 fi
17731 else
17732 # not using gcc
17733 if test "$host_cpu" = ia64; then
17734 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17735 # chokes on -Wl,-G. The following line is correct:
17736 shared_flag='-G'
17737 else
17738 if test "$aix_use_runtimelinking" = yes; then
17739 shared_flag='${wl}-G'
17740 else
17741 shared_flag='${wl}-bM:SRE'
17742 fi
17743 fi
17744 fi
17745
17746 export_dynamic_flag_spec='${wl}-bexpall'
17747 # It seems that -bexpall does not export symbols beginning with
17748 # underscore (_), so it is better to generate a list of symbols to export.
17749 always_export_symbols=yes
17750 if test "$aix_use_runtimelinking" = yes; then
17751 # Warning - without using the other runtime loading flags (-brtl),
17752 # -berok will link without error, but may produce a broken library.
17753 allow_undefined_flag='-berok'
17754 # Determine the default libpath from the value encoded in an
17755 # empty executable.
17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17757 /* end confdefs.h. */
17758
17759 int
17760 main ()
17761 {
17762
17763 ;
17764 return 0;
17765 }
17766 _ACEOF
17767 if ac_fn_c_try_link "$LINENO"; then :
17768
17769 lt_aix_libpath_sed='
17770 /Import File Strings/,/^$/ {
17771 /^0/ {
17772 s/^0 *\(.*\)$/\1/
17773 p
17774 }
17775 }'
17776 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17777 # Check for a 64-bit object if we didn't find anything.
17778 if test -z "$aix_libpath"; then
17779 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17780 fi
17781 fi
17782 rm -f core conftest.err conftest.$ac_objext \
17783 conftest$ac_exeext conftest.$ac_ext
17784 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17785
17786 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17787 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"
17788 else
17789 if test "$host_cpu" = ia64; then
17790 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17791 allow_undefined_flag="-z nodefs"
17792 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"
17793 else
17794 # Determine the default libpath from the value encoded in an
17795 # empty executable.
17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797 /* end confdefs.h. */
17798
17799 int
17800 main ()
17801 {
17802
17803 ;
17804 return 0;
17805 }
17806 _ACEOF
17807 if ac_fn_c_try_link "$LINENO"; then :
17808
17809 lt_aix_libpath_sed='
17810 /Import File Strings/,/^$/ {
17811 /^0/ {
17812 s/^0 *\(.*\)$/\1/
17813 p
17814 }
17815 }'
17816 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17817 # Check for a 64-bit object if we didn't find anything.
17818 if test -z "$aix_libpath"; then
17819 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17820 fi
17821 fi
17822 rm -f core conftest.err conftest.$ac_objext \
17823 conftest$ac_exeext conftest.$ac_ext
17824 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17825
17826 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17827 # Warning - without using the other run time loading flags,
17828 # -berok will link without error, but may produce a broken library.
17829 no_undefined_flag=' ${wl}-bernotok'
17830 allow_undefined_flag=' ${wl}-berok'
17831 if test "$with_gnu_ld" = yes; then
17832 # We only use this code for GNU lds that support --whole-archive.
17833 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17834 else
17835 # Exported symbols can be pulled into shared objects from archives
17836 whole_archive_flag_spec='$convenience'
17837 fi
17838 archive_cmds_need_lc=yes
17839 # This is similar to how AIX traditionally builds its shared libraries.
17840 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'
17841 fi
17842 fi
17843 ;;
17844
17845 amigaos*)
17846 case $host_cpu in
17847 powerpc)
17848 # see comment about AmigaOS4 .so support
17849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17850 archive_expsym_cmds=''
17851 ;;
17852 m68k)
17853 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)'
17854 hardcode_libdir_flag_spec='-L$libdir'
17855 hardcode_minus_L=yes
17856 ;;
17857 esac
17858 ;;
17859
17860 bsdi[45]*)
17861 export_dynamic_flag_spec=-rdynamic
17862 ;;
17863
17864 cygwin* | mingw* | pw32* | cegcc*)
17865 # When not using gcc, we currently assume that we are using
17866 # Microsoft Visual C++.
17867 # hardcode_libdir_flag_spec is actually meaningless, as there is
17868 # no search path for DLLs.
17869 hardcode_libdir_flag_spec=' '
17870 allow_undefined_flag=unsupported
17871 # Tell ltmain to make .lib files, not .a files.
17872 libext=lib
17873 # Tell ltmain to make .dll files, not .so files.
17874 shrext_cmds=".dll"
17875 # FIXME: Setting linknames here is a bad hack.
17876 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17877 # The linker will automatically build a .lib file if we build a DLL.
17878 old_archive_from_new_cmds='true'
17879 # FIXME: Should let the user specify the lib program.
17880 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17881 fix_srcfile_path='`cygpath -w "$srcfile"`'
17882 enable_shared_with_static_runtimes=yes
17883 ;;
17884
17885 darwin* | rhapsody*)
17886
17887
17888 archive_cmds_need_lc=no
17889 hardcode_direct=no
17890 hardcode_automatic=yes
17891 hardcode_shlibpath_var=unsupported
17892 if test "$lt_cv_ld_force_load" = "yes"; then
17893 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\"`'
17894 else
17895 whole_archive_flag_spec=''
17896 fi
17897 link_all_deplibs=yes
17898 allow_undefined_flag="$_lt_dar_allow_undefined"
17899 case $cc_basename in
17900 ifort*) _lt_dar_can_shared=yes ;;
17901 *) _lt_dar_can_shared=$GCC ;;
17902 esac
17903 if test "$_lt_dar_can_shared" = "yes"; then
17904 output_verbose_link_cmd=func_echo_all
17905 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17906 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17907 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}"
17908 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}"
17909
17910 else
17911 ld_shlibs=no
17912 fi
17913
17914 ;;
17915
17916 dgux*)
17917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17918 hardcode_libdir_flag_spec='-L$libdir'
17919 hardcode_shlibpath_var=no
17920 ;;
17921
17922 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17923 # support. Future versions do this automatically, but an explicit c++rt0.o
17924 # does not break anything, and helps significantly (at the cost of a little
17925 # extra space).
17926 freebsd2.2*)
17927 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17928 hardcode_libdir_flag_spec='-R$libdir'
17929 hardcode_direct=yes
17930 hardcode_shlibpath_var=no
17931 ;;
17932
17933 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17934 freebsd2.*)
17935 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17936 hardcode_direct=yes
17937 hardcode_minus_L=yes
17938 hardcode_shlibpath_var=no
17939 ;;
17940
17941 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17942 freebsd* | dragonfly*)
17943 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17944 hardcode_libdir_flag_spec='-R$libdir'
17945 hardcode_direct=yes
17946 hardcode_shlibpath_var=no
17947 ;;
17948
17949 hpux9*)
17950 if test "$GCC" = yes; then
17951 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'
17952 else
17953 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'
17954 fi
17955 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17956 hardcode_libdir_separator=:
17957 hardcode_direct=yes
17958
17959 # hardcode_minus_L: Not really in the search PATH,
17960 # but as the default location of the library.
17961 hardcode_minus_L=yes
17962 export_dynamic_flag_spec='${wl}-E'
17963 ;;
17964
17965 hpux10*)
17966 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17967 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17968 else
17969 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17970 fi
17971 if test "$with_gnu_ld" = no; then
17972 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17973 hardcode_libdir_flag_spec_ld='+b $libdir'
17974 hardcode_libdir_separator=:
17975 hardcode_direct=yes
17976 hardcode_direct_absolute=yes
17977 export_dynamic_flag_spec='${wl}-E'
17978 # hardcode_minus_L: Not really in the search PATH,
17979 # but as the default location of the library.
17980 hardcode_minus_L=yes
17981 fi
17982 ;;
17983
17984 hpux11*)
17985 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17986 case $host_cpu in
17987 hppa*64*)
17988 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17989 ;;
17990 ia64*)
17991 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17992 ;;
17993 *)
17994 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17995 ;;
17996 esac
17997 else
17998 case $host_cpu in
17999 hppa*64*)
18000 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18001 ;;
18002 ia64*)
18003 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18004 ;;
18005 *)
18006
18007 # Older versions of the 11.00 compiler do not understand -b yet
18008 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18010 $as_echo_n "checking if $CC understands -b... " >&6; }
18011 if ${lt_cv_prog_compiler__b+:} false; then :
18012 $as_echo_n "(cached) " >&6
18013 else
18014 lt_cv_prog_compiler__b=no
18015 save_LDFLAGS="$LDFLAGS"
18016 LDFLAGS="$LDFLAGS -b"
18017 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18018 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18019 # The linker can only warn and ignore the option if not recognized
18020 # So say no if there are warnings
18021 if test -s conftest.err; then
18022 # Append any errors to the config.log.
18023 cat conftest.err 1>&5
18024 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18026 if diff conftest.exp conftest.er2 >/dev/null; then
18027 lt_cv_prog_compiler__b=yes
18028 fi
18029 else
18030 lt_cv_prog_compiler__b=yes
18031 fi
18032 fi
18033 $RM -r conftest*
18034 LDFLAGS="$save_LDFLAGS"
18035
18036 fi
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18038 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18039
18040 if test x"$lt_cv_prog_compiler__b" = xyes; then
18041 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18042 else
18043 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18044 fi
18045
18046 ;;
18047 esac
18048 fi
18049 if test "$with_gnu_ld" = no; then
18050 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18051 hardcode_libdir_separator=:
18052
18053 case $host_cpu in
18054 hppa*64*|ia64*)
18055 hardcode_direct=no
18056 hardcode_shlibpath_var=no
18057 ;;
18058 *)
18059 hardcode_direct=yes
18060 hardcode_direct_absolute=yes
18061 export_dynamic_flag_spec='${wl}-E'
18062
18063 # hardcode_minus_L: Not really in the search PATH,
18064 # but as the default location of the library.
18065 hardcode_minus_L=yes
18066 ;;
18067 esac
18068 fi
18069 ;;
18070
18071 irix5* | irix6* | nonstopux*)
18072 if test "$GCC" = yes; then
18073 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'
18074 # Try to use the -exported_symbol ld option, if it does not
18075 # work, assume that -exports_file does not work either and
18076 # implicitly export all symbols.
18077 save_LDFLAGS="$LDFLAGS"
18078 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18080 /* end confdefs.h. */
18081 int foo(void) {}
18082 _ACEOF
18083 if ac_fn_c_try_link "$LINENO"; then :
18084 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'
18085
18086 fi
18087 rm -f core conftest.err conftest.$ac_objext \
18088 conftest$ac_exeext conftest.$ac_ext
18089 LDFLAGS="$save_LDFLAGS"
18090 else
18091 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'
18092 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'
18093 fi
18094 archive_cmds_need_lc='no'
18095 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18096 hardcode_libdir_separator=:
18097 inherit_rpath=yes
18098 link_all_deplibs=yes
18099 ;;
18100
18101 netbsd*)
18102 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18103 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18104 else
18105 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18106 fi
18107 hardcode_libdir_flag_spec='-R$libdir'
18108 hardcode_direct=yes
18109 hardcode_shlibpath_var=no
18110 ;;
18111
18112 newsos6)
18113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18114 hardcode_direct=yes
18115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18116 hardcode_libdir_separator=:
18117 hardcode_shlibpath_var=no
18118 ;;
18119
18120 *nto* | *qnx*)
18121 ;;
18122
18123 openbsd*)
18124 if test -f /usr/libexec/ld.so; then
18125 hardcode_direct=yes
18126 hardcode_shlibpath_var=no
18127 hardcode_direct_absolute=yes
18128 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18129 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18130 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18131 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18132 export_dynamic_flag_spec='${wl}-E'
18133 else
18134 case $host_os in
18135 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18136 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18137 hardcode_libdir_flag_spec='-R$libdir'
18138 ;;
18139 *)
18140 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18142 ;;
18143 esac
18144 fi
18145 else
18146 ld_shlibs=no
18147 fi
18148 ;;
18149
18150 os2*)
18151 hardcode_libdir_flag_spec='-L$libdir'
18152 hardcode_minus_L=yes
18153 allow_undefined_flag=unsupported
18154 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'
18155 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18156 ;;
18157
18158 osf3*)
18159 if test "$GCC" = yes; then
18160 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18161 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'
18162 else
18163 allow_undefined_flag=' -expect_unresolved \*'
18164 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'
18165 fi
18166 archive_cmds_need_lc='no'
18167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18168 hardcode_libdir_separator=:
18169 ;;
18170
18171 osf4* | osf5*) # as osf3* with the addition of -msym flag
18172 if test "$GCC" = yes; then
18173 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18174 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'
18175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18176 else
18177 allow_undefined_flag=' -expect_unresolved \*'
18178 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'
18179 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~
18180 $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'
18181
18182 # Both c and cxx compiler support -rpath directly
18183 hardcode_libdir_flag_spec='-rpath $libdir'
18184 fi
18185 archive_cmds_need_lc='no'
18186 hardcode_libdir_separator=:
18187 ;;
18188
18189 solaris*)
18190 no_undefined_flag=' -z defs'
18191 if test "$GCC" = yes; then
18192 wlarc='${wl}'
18193 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18194 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18195 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18196 else
18197 case `$CC -V 2>&1` in
18198 *"Compilers 5.0"*)
18199 wlarc=''
18200 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18201 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18202 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18203 ;;
18204 *)
18205 wlarc='${wl}'
18206 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18207 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18208 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18209 ;;
18210 esac
18211 fi
18212 hardcode_libdir_flag_spec='-R$libdir'
18213 hardcode_shlibpath_var=no
18214 case $host_os in
18215 solaris2.[0-5] | solaris2.[0-5].*) ;;
18216 *)
18217 # The compiler driver will combine and reorder linker options,
18218 # but understands `-z linker_flag'. GCC discards it without `$wl',
18219 # but is careful enough not to reorder.
18220 # Supported since Solaris 2.6 (maybe 2.5.1?)
18221 if test "$GCC" = yes; then
18222 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18223 else
18224 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18225 fi
18226 ;;
18227 esac
18228 link_all_deplibs=yes
18229 ;;
18230
18231 sunos4*)
18232 if test "x$host_vendor" = xsequent; then
18233 # Use $CC to link under sequent, because it throws in some extra .o
18234 # files that make .init and .fini sections work.
18235 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18236 else
18237 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18238 fi
18239 hardcode_libdir_flag_spec='-L$libdir'
18240 hardcode_direct=yes
18241 hardcode_minus_L=yes
18242 hardcode_shlibpath_var=no
18243 ;;
18244
18245 sysv4)
18246 case $host_vendor in
18247 sni)
18248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18249 hardcode_direct=yes # is this really true???
18250 ;;
18251 siemens)
18252 ## LD is ld it makes a PLAMLIB
18253 ## CC just makes a GrossModule.
18254 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18255 reload_cmds='$CC -r -o $output$reload_objs'
18256 hardcode_direct=no
18257 ;;
18258 motorola)
18259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18260 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18261 ;;
18262 esac
18263 runpath_var='LD_RUN_PATH'
18264 hardcode_shlibpath_var=no
18265 ;;
18266
18267 sysv4.3*)
18268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18269 hardcode_shlibpath_var=no
18270 export_dynamic_flag_spec='-Bexport'
18271 ;;
18272
18273 sysv4*MP*)
18274 if test -d /usr/nec; then
18275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18276 hardcode_shlibpath_var=no
18277 runpath_var=LD_RUN_PATH
18278 hardcode_runpath_var=yes
18279 ld_shlibs=yes
18280 fi
18281 ;;
18282
18283 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18284 no_undefined_flag='${wl}-z,text'
18285 archive_cmds_need_lc=no
18286 hardcode_shlibpath_var=no
18287 runpath_var='LD_RUN_PATH'
18288
18289 if test "$GCC" = yes; then
18290 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18291 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18292 else
18293 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18294 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18295 fi
18296 ;;
18297
18298 sysv5* | sco3.2v5* | sco5v6*)
18299 # Note: We can NOT use -z defs as we might desire, because we do not
18300 # link with -lc, and that would cause any symbols used from libc to
18301 # always be unresolved, which means just about no library would
18302 # ever link correctly. If we're not using GNU ld we use -z text
18303 # though, which does catch some bad symbols but isn't as heavy-handed
18304 # as -z defs.
18305 no_undefined_flag='${wl}-z,text'
18306 allow_undefined_flag='${wl}-z,nodefs'
18307 archive_cmds_need_lc=no
18308 hardcode_shlibpath_var=no
18309 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18310 hardcode_libdir_separator=':'
18311 link_all_deplibs=yes
18312 export_dynamic_flag_spec='${wl}-Bexport'
18313 runpath_var='LD_RUN_PATH'
18314
18315 if test "$GCC" = yes; then
18316 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18317 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18318 else
18319 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18320 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18321 fi
18322 ;;
18323
18324 uts4*)
18325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18326 hardcode_libdir_flag_spec='-L$libdir'
18327 hardcode_shlibpath_var=no
18328 ;;
18329
18330 *)
18331 ld_shlibs=no
18332 ;;
18333 esac
18334
18335 if test x$host_vendor = xsni; then
18336 case $host in
18337 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18338 export_dynamic_flag_spec='${wl}-Blargedynsym'
18339 ;;
18340 esac
18341 fi
18342 fi
18343
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18345 $as_echo "$ld_shlibs" >&6; }
18346 test "$ld_shlibs" = no && can_build_shared=no
18347
18348 with_gnu_ld=$with_gnu_ld
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364 #
18365 # Do we need to explicitly link libc?
18366 #
18367 case "x$archive_cmds_need_lc" in
18368 x|xyes)
18369 # Assume -lc should be added
18370 archive_cmds_need_lc=yes
18371
18372 if test "$enable_shared" = yes && test "$GCC" = yes; then
18373 case $archive_cmds in
18374 *'~'*)
18375 # FIXME: we may have to deal with multi-command sequences.
18376 ;;
18377 '$CC '*)
18378 # Test whether the compiler implicitly links with -lc since on some
18379 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18380 # to ld, don't add -lc before -lgcc.
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18382 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18383 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18384 $as_echo_n "(cached) " >&6
18385 else
18386 $RM conftest*
18387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18388
18389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18390 (eval $ac_compile) 2>&5
18391 ac_status=$?
18392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18393 test $ac_status = 0; } 2>conftest.err; then
18394 soname=conftest
18395 lib=conftest
18396 libobjs=conftest.$ac_objext
18397 deplibs=
18398 wl=$lt_prog_compiler_wl
18399 pic_flag=$lt_prog_compiler_pic
18400 compiler_flags=-v
18401 linker_flags=-v
18402 verstring=
18403 output_objdir=.
18404 libname=conftest
18405 lt_save_allow_undefined_flag=$allow_undefined_flag
18406 allow_undefined_flag=
18407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18408 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18409 ac_status=$?
18410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18411 test $ac_status = 0; }
18412 then
18413 lt_cv_archive_cmds_need_lc=no
18414 else
18415 lt_cv_archive_cmds_need_lc=yes
18416 fi
18417 allow_undefined_flag=$lt_save_allow_undefined_flag
18418 else
18419 cat conftest.err 1>&5
18420 fi
18421 $RM conftest*
18422
18423 fi
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18425 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18426 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18427 ;;
18428 esac
18429 fi
18430 ;;
18431 esac
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18590 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18591
18592 if test "$GCC" = yes; then
18593 case $host_os in
18594 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18595 *) lt_awk_arg="/^libraries:/" ;;
18596 esac
18597 case $host_os in
18598 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18599 *) lt_sed_strip_eq="s,=/,/,g" ;;
18600 esac
18601 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18602 case $lt_search_path_spec in
18603 *\;*)
18604 # if the path contains ";" then we assume it to be the separator
18605 # otherwise default to the standard path separator (i.e. ":") - it is
18606 # assumed that no part of a normal pathname contains ";" but that should
18607 # okay in the real world where ";" in dirpaths is itself problematic.
18608 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18609 ;;
18610 *)
18611 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18612 ;;
18613 esac
18614 # Ok, now we have the path, separated by spaces, we can step through it
18615 # and add multilib dir if necessary.
18616 lt_tmp_lt_search_path_spec=
18617 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18618 for lt_sys_path in $lt_search_path_spec; do
18619 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18620 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18621 else
18622 test -d "$lt_sys_path" && \
18623 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18624 fi
18625 done
18626 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18627 BEGIN {RS=" "; FS="/|\n";} {
18628 lt_foo="";
18629 lt_count=0;
18630 for (lt_i = NF; lt_i > 0; lt_i--) {
18631 if ($lt_i != "" && $lt_i != ".") {
18632 if ($lt_i == "..") {
18633 lt_count++;
18634 } else {
18635 if (lt_count == 0) {
18636 lt_foo="/" $lt_i lt_foo;
18637 } else {
18638 lt_count--;
18639 }
18640 }
18641 }
18642 }
18643 if (lt_foo != "") { lt_freq[lt_foo]++; }
18644 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18645 }'`
18646 # AWK program above erroneously prepends '/' to C:/dos/paths
18647 # for these hosts.
18648 case $host_os in
18649 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18650 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18651 esac
18652 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18653 else
18654 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18655 fi
18656 library_names_spec=
18657 libname_spec='lib$name'
18658 soname_spec=
18659 shrext_cmds=".so"
18660 postinstall_cmds=
18661 postuninstall_cmds=
18662 finish_cmds=
18663 finish_eval=
18664 shlibpath_var=
18665 shlibpath_overrides_runpath=unknown
18666 version_type=none
18667 dynamic_linker="$host_os ld.so"
18668 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18669 need_lib_prefix=unknown
18670 hardcode_into_libs=no
18671
18672 # when you set need_version to no, make sure it does not cause -set_version
18673 # flags to be left without arguments
18674 need_version=unknown
18675
18676 case $host_os in
18677 aix3*)
18678 version_type=linux
18679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18680 shlibpath_var=LIBPATH
18681
18682 # AIX 3 has no versioning support, so we append a major version to the name.
18683 soname_spec='${libname}${release}${shared_ext}$major'
18684 ;;
18685
18686 aix[4-9]*)
18687 version_type=linux
18688 need_lib_prefix=no
18689 need_version=no
18690 hardcode_into_libs=yes
18691 if test "$host_cpu" = ia64; then
18692 # AIX 5 supports IA64
18693 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18694 shlibpath_var=LD_LIBRARY_PATH
18695 else
18696 # With GCC up to 2.95.x, collect2 would create an import file
18697 # for dependence libraries. The import file would start with
18698 # the line `#! .'. This would cause the generated library to
18699 # depend on `.', always an invalid library. This was fixed in
18700 # development snapshots of GCC prior to 3.0.
18701 case $host_os in
18702 aix4 | aix4.[01] | aix4.[01].*)
18703 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18704 echo ' yes '
18705 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18706 :
18707 else
18708 can_build_shared=no
18709 fi
18710 ;;
18711 esac
18712 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18713 # soname into executable. Probably we can add versioning support to
18714 # collect2, so additional links can be useful in future.
18715 if test "$aix_use_runtimelinking" = yes; then
18716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18717 # instead of lib<name>.a to let people know that these are not
18718 # typical AIX shared libraries.
18719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18720 else
18721 # We preserve .a as extension for shared libraries through AIX4.2
18722 # and later when we are not doing run time linking.
18723 library_names_spec='${libname}${release}.a $libname.a'
18724 soname_spec='${libname}${release}${shared_ext}$major'
18725 fi
18726 shlibpath_var=LIBPATH
18727 fi
18728 ;;
18729
18730 amigaos*)
18731 case $host_cpu in
18732 powerpc)
18733 # Since July 2007 AmigaOS4 officially supports .so libraries.
18734 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18736 ;;
18737 m68k)
18738 library_names_spec='$libname.ixlibrary $libname.a'
18739 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18740 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'
18741 ;;
18742 esac
18743 ;;
18744
18745 beos*)
18746 library_names_spec='${libname}${shared_ext}'
18747 dynamic_linker="$host_os ld.so"
18748 shlibpath_var=LIBRARY_PATH
18749 ;;
18750
18751 bsdi[45]*)
18752 version_type=linux
18753 need_version=no
18754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18755 soname_spec='${libname}${release}${shared_ext}$major'
18756 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18757 shlibpath_var=LD_LIBRARY_PATH
18758 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18759 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18760 # the default ld.so.conf also contains /usr/contrib/lib and
18761 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18762 # libtool to hard-code these into programs
18763 ;;
18764
18765 cygwin* | mingw* | pw32* | cegcc*)
18766 version_type=windows
18767 shrext_cmds=".dll"
18768 need_version=no
18769 need_lib_prefix=no
18770
18771 case $GCC,$host_os in
18772 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18773 library_names_spec='$libname.dll.a'
18774 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18775 postinstall_cmds='base_file=`basename \${file}`~
18776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18777 dldir=$destdir/`dirname \$dlpath`~
18778 test -d \$dldir || mkdir -p \$dldir~
18779 $install_prog $dir/$dlname \$dldir/$dlname~
18780 chmod a+x \$dldir/$dlname~
18781 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18782 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18783 fi'
18784 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18785 dlpath=$dir/\$dldll~
18786 $RM \$dlpath'
18787 shlibpath_overrides_runpath=yes
18788
18789 case $host_os in
18790 cygwin*)
18791 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18792 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18793
18794 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18795 ;;
18796 mingw* | cegcc*)
18797 # MinGW DLLs use traditional 'lib' prefix
18798 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18799 ;;
18800 pw32*)
18801 # pw32 DLLs use 'pw' prefix rather than 'lib'
18802 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18803 ;;
18804 esac
18805 ;;
18806
18807 *)
18808 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18809 ;;
18810 esac
18811 dynamic_linker='Win32 ld.exe'
18812 # FIXME: first we should search . and the directory the executable is in
18813 shlibpath_var=PATH
18814 ;;
18815
18816 darwin* | rhapsody*)
18817 dynamic_linker="$host_os dyld"
18818 version_type=darwin
18819 need_lib_prefix=no
18820 need_version=no
18821 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18822 soname_spec='${libname}${release}${major}$shared_ext'
18823 shlibpath_overrides_runpath=yes
18824 shlibpath_var=DYLD_LIBRARY_PATH
18825 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18826
18827 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18828 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18829 ;;
18830
18831 dgux*)
18832 version_type=linux
18833 need_lib_prefix=no
18834 need_version=no
18835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18836 soname_spec='${libname}${release}${shared_ext}$major'
18837 shlibpath_var=LD_LIBRARY_PATH
18838 ;;
18839
18840 freebsd* | dragonfly*)
18841 # DragonFly does not have aout. When/if they implement a new
18842 # versioning mechanism, adjust this.
18843 if test -x /usr/bin/objformat; then
18844 objformat=`/usr/bin/objformat`
18845 else
18846 case $host_os in
18847 freebsd[23].*) objformat=aout ;;
18848 *) objformat=elf ;;
18849 esac
18850 fi
18851 version_type=freebsd-$objformat
18852 case $version_type in
18853 freebsd-elf*)
18854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18855 need_version=no
18856 need_lib_prefix=no
18857 ;;
18858 freebsd-*)
18859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18860 need_version=yes
18861 ;;
18862 esac
18863 shlibpath_var=LD_LIBRARY_PATH
18864 case $host_os in
18865 freebsd2.*)
18866 shlibpath_overrides_runpath=yes
18867 ;;
18868 freebsd3.[01]* | freebsdelf3.[01]*)
18869 shlibpath_overrides_runpath=yes
18870 hardcode_into_libs=yes
18871 ;;
18872 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18873 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18874 shlibpath_overrides_runpath=no
18875 hardcode_into_libs=yes
18876 ;;
18877 *) # from 4.6 on, and DragonFly
18878 shlibpath_overrides_runpath=yes
18879 hardcode_into_libs=yes
18880 ;;
18881 esac
18882 ;;
18883
18884 haiku*)
18885 version_type=linux
18886 need_lib_prefix=no
18887 need_version=no
18888 dynamic_linker="$host_os runtime_loader"
18889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18890 soname_spec='${libname}${release}${shared_ext}$major'
18891 shlibpath_var=LIBRARY_PATH
18892 shlibpath_overrides_runpath=yes
18893 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18894 hardcode_into_libs=yes
18895 ;;
18896
18897 hpux9* | hpux10* | hpux11*)
18898 # Give a soname corresponding to the major version so that dld.sl refuses to
18899 # link against other versions.
18900 version_type=sunos
18901 need_lib_prefix=no
18902 need_version=no
18903 case $host_cpu in
18904 ia64*)
18905 shrext_cmds='.so'
18906 hardcode_into_libs=yes
18907 dynamic_linker="$host_os dld.so"
18908 shlibpath_var=LD_LIBRARY_PATH
18909 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18911 soname_spec='${libname}${release}${shared_ext}$major'
18912 if test "X$HPUX_IA64_MODE" = X32; then
18913 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18914 else
18915 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18916 fi
18917 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18918 ;;
18919 hppa*64*)
18920 shrext_cmds='.sl'
18921 hardcode_into_libs=yes
18922 dynamic_linker="$host_os dld.sl"
18923 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18924 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18926 soname_spec='${libname}${release}${shared_ext}$major'
18927 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18928 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18929 ;;
18930 *)
18931 shrext_cmds='.sl'
18932 dynamic_linker="$host_os dld.sl"
18933 shlibpath_var=SHLIB_PATH
18934 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18936 soname_spec='${libname}${release}${shared_ext}$major'
18937 ;;
18938 esac
18939 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18940 postinstall_cmds='chmod 555 $lib'
18941 # or fails outright, so override atomically:
18942 install_override_mode=555
18943 ;;
18944
18945 interix[3-9]*)
18946 version_type=linux
18947 need_lib_prefix=no
18948 need_version=no
18949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18950 soname_spec='${libname}${release}${shared_ext}$major'
18951 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18952 shlibpath_var=LD_LIBRARY_PATH
18953 shlibpath_overrides_runpath=no
18954 hardcode_into_libs=yes
18955 ;;
18956
18957 irix5* | irix6* | nonstopux*)
18958 case $host_os in
18959 nonstopux*) version_type=nonstopux ;;
18960 *)
18961 if test "$lt_cv_prog_gnu_ld" = yes; then
18962 version_type=linux
18963 else
18964 version_type=irix
18965 fi ;;
18966 esac
18967 need_lib_prefix=no
18968 need_version=no
18969 soname_spec='${libname}${release}${shared_ext}$major'
18970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18971 case $host_os in
18972 irix5* | nonstopux*)
18973 libsuff= shlibsuff=
18974 ;;
18975 *)
18976 case $LD in # libtool.m4 will add one of these switches to LD
18977 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18978 libsuff= shlibsuff= libmagic=32-bit;;
18979 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18980 libsuff=32 shlibsuff=N32 libmagic=N32;;
18981 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18982 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18983 *) libsuff= shlibsuff= libmagic=never-match;;
18984 esac
18985 ;;
18986 esac
18987 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18988 shlibpath_overrides_runpath=no
18989 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18990 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18991 hardcode_into_libs=yes
18992 ;;
18993
18994 # No shared lib support for Linux oldld, aout, or coff.
18995 linux*oldld* | linux*aout* | linux*coff*)
18996 dynamic_linker=no
18997 ;;
18998
18999 # This must be Linux ELF.
19000
19001 # uclinux* changes (here and below) have been submitted to the libtool
19002 # project, but have not yet been accepted: they are GCC-local changes
19003 # for the time being. (See
19004 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19005 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
19006 version_type=linux
19007 need_lib_prefix=no
19008 need_version=no
19009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19010 soname_spec='${libname}${release}${shared_ext}$major'
19011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19012 shlibpath_var=LD_LIBRARY_PATH
19013 shlibpath_overrides_runpath=no
19014
19015 # Some binutils ld are patched to set DT_RUNPATH
19016 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19017 $as_echo_n "(cached) " >&6
19018 else
19019 lt_cv_shlibpath_overrides_runpath=no
19020 save_LDFLAGS=$LDFLAGS
19021 save_libdir=$libdir
19022 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19023 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19025 /* end confdefs.h. */
19026
19027 int
19028 main ()
19029 {
19030
19031 ;
19032 return 0;
19033 }
19034 _ACEOF
19035 if ac_fn_c_try_link "$LINENO"; then :
19036 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19037 lt_cv_shlibpath_overrides_runpath=yes
19038 fi
19039 fi
19040 rm -f core conftest.err conftest.$ac_objext \
19041 conftest$ac_exeext conftest.$ac_ext
19042 LDFLAGS=$save_LDFLAGS
19043 libdir=$save_libdir
19044
19045 fi
19046
19047 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19048
19049 # This implies no fast_install, which is unacceptable.
19050 # Some rework will be needed to allow for fast_install
19051 # before this can be enabled.
19052 hardcode_into_libs=yes
19053
19054 # Append ld.so.conf contents to the search path
19055 if test -f /etc/ld.so.conf; then
19056 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' ' '`
19057 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19058 fi
19059
19060 # We used to test for /lib/ld.so.1 and disable shared libraries on
19061 # powerpc, because MkLinux only supported shared libraries with the
19062 # GNU dynamic linker. Since this was broken with cross compilers,
19063 # most powerpc-linux boxes support dynamic linking these days and
19064 # people can always --disable-shared, the test was removed, and we
19065 # assume the GNU/Linux dynamic linker is in use.
19066 dynamic_linker='GNU/Linux ld.so'
19067 ;;
19068
19069 netbsd*)
19070 version_type=sunos
19071 need_lib_prefix=no
19072 need_version=no
19073 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19076 dynamic_linker='NetBSD (a.out) ld.so'
19077 else
19078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19079 soname_spec='${libname}${release}${shared_ext}$major'
19080 dynamic_linker='NetBSD ld.elf_so'
19081 fi
19082 shlibpath_var=LD_LIBRARY_PATH
19083 shlibpath_overrides_runpath=yes
19084 hardcode_into_libs=yes
19085 ;;
19086
19087 newsos6)
19088 version_type=linux
19089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19090 shlibpath_var=LD_LIBRARY_PATH
19091 shlibpath_overrides_runpath=yes
19092 ;;
19093
19094 *nto* | *qnx*)
19095 version_type=qnx
19096 need_lib_prefix=no
19097 need_version=no
19098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19099 soname_spec='${libname}${release}${shared_ext}$major'
19100 shlibpath_var=LD_LIBRARY_PATH
19101 shlibpath_overrides_runpath=no
19102 hardcode_into_libs=yes
19103 dynamic_linker='ldqnx.so'
19104 ;;
19105
19106 openbsd*)
19107 version_type=sunos
19108 sys_lib_dlsearch_path_spec="/usr/lib"
19109 need_lib_prefix=no
19110 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19111 case $host_os in
19112 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19113 *) need_version=no ;;
19114 esac
19115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19117 shlibpath_var=LD_LIBRARY_PATH
19118 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19119 case $host_os in
19120 openbsd2.[89] | openbsd2.[89].*)
19121 shlibpath_overrides_runpath=no
19122 ;;
19123 *)
19124 shlibpath_overrides_runpath=yes
19125 ;;
19126 esac
19127 else
19128 shlibpath_overrides_runpath=yes
19129 fi
19130 ;;
19131
19132 os2*)
19133 libname_spec='$name'
19134 shrext_cmds=".dll"
19135 need_lib_prefix=no
19136 library_names_spec='$libname${shared_ext} $libname.a'
19137 dynamic_linker='OS/2 ld.exe'
19138 shlibpath_var=LIBPATH
19139 ;;
19140
19141 osf3* | osf4* | osf5*)
19142 version_type=osf
19143 need_lib_prefix=no
19144 need_version=no
19145 soname_spec='${libname}${release}${shared_ext}$major'
19146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19147 shlibpath_var=LD_LIBRARY_PATH
19148 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19149 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19150 ;;
19151
19152 rdos*)
19153 dynamic_linker=no
19154 ;;
19155
19156 solaris*)
19157 version_type=linux
19158 need_lib_prefix=no
19159 need_version=no
19160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19161 soname_spec='${libname}${release}${shared_ext}$major'
19162 shlibpath_var=LD_LIBRARY_PATH
19163 shlibpath_overrides_runpath=yes
19164 hardcode_into_libs=yes
19165 # ldd complains unless libraries are executable
19166 postinstall_cmds='chmod +x $lib'
19167 ;;
19168
19169 sunos4*)
19170 version_type=sunos
19171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19172 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19173 shlibpath_var=LD_LIBRARY_PATH
19174 shlibpath_overrides_runpath=yes
19175 if test "$with_gnu_ld" = yes; then
19176 need_lib_prefix=no
19177 fi
19178 need_version=yes
19179 ;;
19180
19181 sysv4 | sysv4.3*)
19182 version_type=linux
19183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19184 soname_spec='${libname}${release}${shared_ext}$major'
19185 shlibpath_var=LD_LIBRARY_PATH
19186 case $host_vendor in
19187 sni)
19188 shlibpath_overrides_runpath=no
19189 need_lib_prefix=no
19190 runpath_var=LD_RUN_PATH
19191 ;;
19192 siemens)
19193 need_lib_prefix=no
19194 ;;
19195 motorola)
19196 need_lib_prefix=no
19197 need_version=no
19198 shlibpath_overrides_runpath=no
19199 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19200 ;;
19201 esac
19202 ;;
19203
19204 sysv4*MP*)
19205 if test -d /usr/nec ;then
19206 version_type=linux
19207 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19208 soname_spec='$libname${shared_ext}.$major'
19209 shlibpath_var=LD_LIBRARY_PATH
19210 fi
19211 ;;
19212
19213 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19214 version_type=freebsd-elf
19215 need_lib_prefix=no
19216 need_version=no
19217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19218 soname_spec='${libname}${release}${shared_ext}$major'
19219 shlibpath_var=LD_LIBRARY_PATH
19220 shlibpath_overrides_runpath=yes
19221 hardcode_into_libs=yes
19222 if test "$with_gnu_ld" = yes; then
19223 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19224 else
19225 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19226 case $host_os in
19227 sco3.2v5*)
19228 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19229 ;;
19230 esac
19231 fi
19232 sys_lib_dlsearch_path_spec='/usr/lib'
19233 ;;
19234
19235 tpf*)
19236 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19237 version_type=linux
19238 need_lib_prefix=no
19239 need_version=no
19240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19241 shlibpath_var=LD_LIBRARY_PATH
19242 shlibpath_overrides_runpath=no
19243 hardcode_into_libs=yes
19244 ;;
19245
19246 uts4*)
19247 version_type=linux
19248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19249 soname_spec='${libname}${release}${shared_ext}$major'
19250 shlibpath_var=LD_LIBRARY_PATH
19251 ;;
19252
19253 # Shared libraries for VwWorks, >= 7 only at this stage
19254 # and (fpic) still incompatible with "large" code models
19255 # in a few configurations. Only for RTP mode in any case,
19256 # and upon explicit request at configure time.
19257 vxworks7*)
19258 dynamic_linker=no
19259 case ${with_multisubdir}-${enable_shared} in
19260 *large*)
19261 ;;
19262 *mrtp*-yes)
19263 version_type=linux
19264 need_lib_prefix=no
19265 need_version=no
19266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19267 soname_spec='${libname}${release}${shared_ext}$major'
19268 dynamic_linker="$host_os module_loader"
19269 ;;
19270 esac
19271 ;;
19272 *)
19273 dynamic_linker=no
19274 ;;
19275 esac
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19277 $as_echo "$dynamic_linker" >&6; }
19278 test "$dynamic_linker" = no && can_build_shared=no
19279
19280 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19281 if test "$GCC" = yes; then
19282 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19283 fi
19284
19285 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19286 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19287 fi
19288 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19289 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19290 fi
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19384 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19385 hardcode_action=
19386 if test -n "$hardcode_libdir_flag_spec" ||
19387 test -n "$runpath_var" ||
19388 test "X$hardcode_automatic" = "Xyes" ; then
19389
19390 # We can hardcode non-existent directories.
19391 if test "$hardcode_direct" != no &&
19392 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19393 # have to relink, otherwise we might link with an installed library
19394 # when we should be linking with a yet-to-be-installed one
19395 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19396 test "$hardcode_minus_L" != no; then
19397 # Linking always hardcodes the temporary library directory.
19398 hardcode_action=relink
19399 else
19400 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19401 hardcode_action=immediate
19402 fi
19403 else
19404 # We cannot hardcode anything, or else we can only hardcode existing
19405 # directories.
19406 hardcode_action=unsupported
19407 fi
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19409 $as_echo "$hardcode_action" >&6; }
19410
19411 if test "$hardcode_action" = relink ||
19412 test "$inherit_rpath" = yes; then
19413 # Fast installation is not supported
19414 enable_fast_install=no
19415 elif test "$shlibpath_overrides_runpath" = yes ||
19416 test "$enable_shared" = no; then
19417 # Fast installation is not necessary
19418 enable_fast_install=needless
19419 fi
19420
19421
19422
19423
19424
19425
19426 if test "x$enable_dlopen" != xyes; then
19427 enable_dlopen=unknown
19428 enable_dlopen_self=unknown
19429 enable_dlopen_self_static=unknown
19430 else
19431 lt_cv_dlopen=no
19432 lt_cv_dlopen_libs=
19433
19434 case $host_os in
19435 beos*)
19436 lt_cv_dlopen="load_add_on"
19437 lt_cv_dlopen_libs=
19438 lt_cv_dlopen_self=yes
19439 ;;
19440
19441 mingw* | pw32* | cegcc*)
19442 lt_cv_dlopen="LoadLibrary"
19443 lt_cv_dlopen_libs=
19444 ;;
19445
19446 cygwin*)
19447 lt_cv_dlopen="dlopen"
19448 lt_cv_dlopen_libs=
19449 ;;
19450
19451 darwin*)
19452 # if libdl is installed we need to link against it
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19454 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19455 if ${ac_cv_lib_dl_dlopen+:} false; then :
19456 $as_echo_n "(cached) " >&6
19457 else
19458 ac_check_lib_save_LIBS=$LIBS
19459 LIBS="-ldl $LIBS"
19460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19461 /* end confdefs.h. */
19462
19463 /* Override any GCC internal prototype to avoid an error.
19464 Use char because int might match the return type of a GCC
19465 builtin and then its argument prototype would still apply. */
19466 #ifdef __cplusplus
19467 extern "C"
19468 #endif
19469 char dlopen ();
19470 int
19471 main ()
19472 {
19473 return dlopen ();
19474 ;
19475 return 0;
19476 }
19477 _ACEOF
19478 if ac_fn_c_try_link "$LINENO"; then :
19479 ac_cv_lib_dl_dlopen=yes
19480 else
19481 ac_cv_lib_dl_dlopen=no
19482 fi
19483 rm -f core conftest.err conftest.$ac_objext \
19484 conftest$ac_exeext conftest.$ac_ext
19485 LIBS=$ac_check_lib_save_LIBS
19486 fi
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19488 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19489 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19490 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19491 else
19492
19493 lt_cv_dlopen="dyld"
19494 lt_cv_dlopen_libs=
19495 lt_cv_dlopen_self=yes
19496
19497 fi
19498
19499 ;;
19500
19501 *)
19502 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19503 if test "x$ac_cv_func_shl_load" = xyes; then :
19504 lt_cv_dlopen="shl_load"
19505 else
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19507 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19508 if ${ac_cv_lib_dld_shl_load+:} false; then :
19509 $as_echo_n "(cached) " >&6
19510 else
19511 ac_check_lib_save_LIBS=$LIBS
19512 LIBS="-ldld $LIBS"
19513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19514 /* end confdefs.h. */
19515
19516 /* Override any GCC internal prototype to avoid an error.
19517 Use char because int might match the return type of a GCC
19518 builtin and then its argument prototype would still apply. */
19519 #ifdef __cplusplus
19520 extern "C"
19521 #endif
19522 char shl_load ();
19523 int
19524 main ()
19525 {
19526 return shl_load ();
19527 ;
19528 return 0;
19529 }
19530 _ACEOF
19531 if ac_fn_c_try_link "$LINENO"; then :
19532 ac_cv_lib_dld_shl_load=yes
19533 else
19534 ac_cv_lib_dld_shl_load=no
19535 fi
19536 rm -f core conftest.err conftest.$ac_objext \
19537 conftest$ac_exeext conftest.$ac_ext
19538 LIBS=$ac_check_lib_save_LIBS
19539 fi
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19541 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19542 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19543 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19544 else
19545 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19546 if test "x$ac_cv_func_dlopen" = xyes; then :
19547 lt_cv_dlopen="dlopen"
19548 else
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19550 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19551 if ${ac_cv_lib_dl_dlopen+:} false; then :
19552 $as_echo_n "(cached) " >&6
19553 else
19554 ac_check_lib_save_LIBS=$LIBS
19555 LIBS="-ldl $LIBS"
19556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557 /* end confdefs.h. */
19558
19559 /* Override any GCC internal prototype to avoid an error.
19560 Use char because int might match the return type of a GCC
19561 builtin and then its argument prototype would still apply. */
19562 #ifdef __cplusplus
19563 extern "C"
19564 #endif
19565 char dlopen ();
19566 int
19567 main ()
19568 {
19569 return dlopen ();
19570 ;
19571 return 0;
19572 }
19573 _ACEOF
19574 if ac_fn_c_try_link "$LINENO"; then :
19575 ac_cv_lib_dl_dlopen=yes
19576 else
19577 ac_cv_lib_dl_dlopen=no
19578 fi
19579 rm -f core conftest.err conftest.$ac_objext \
19580 conftest$ac_exeext conftest.$ac_ext
19581 LIBS=$ac_check_lib_save_LIBS
19582 fi
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19584 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19585 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19586 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19587 else
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19589 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19590 if ${ac_cv_lib_svld_dlopen+:} false; then :
19591 $as_echo_n "(cached) " >&6
19592 else
19593 ac_check_lib_save_LIBS=$LIBS
19594 LIBS="-lsvld $LIBS"
19595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19596 /* end confdefs.h. */
19597
19598 /* Override any GCC internal prototype to avoid an error.
19599 Use char because int might match the return type of a GCC
19600 builtin and then its argument prototype would still apply. */
19601 #ifdef __cplusplus
19602 extern "C"
19603 #endif
19604 char dlopen ();
19605 int
19606 main ()
19607 {
19608 return dlopen ();
19609 ;
19610 return 0;
19611 }
19612 _ACEOF
19613 if ac_fn_c_try_link "$LINENO"; then :
19614 ac_cv_lib_svld_dlopen=yes
19615 else
19616 ac_cv_lib_svld_dlopen=no
19617 fi
19618 rm -f core conftest.err conftest.$ac_objext \
19619 conftest$ac_exeext conftest.$ac_ext
19620 LIBS=$ac_check_lib_save_LIBS
19621 fi
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19623 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19624 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19625 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19626 else
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19628 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19629 if ${ac_cv_lib_dld_dld_link+:} false; then :
19630 $as_echo_n "(cached) " >&6
19631 else
19632 ac_check_lib_save_LIBS=$LIBS
19633 LIBS="-ldld $LIBS"
19634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19635 /* end confdefs.h. */
19636
19637 /* Override any GCC internal prototype to avoid an error.
19638 Use char because int might match the return type of a GCC
19639 builtin and then its argument prototype would still apply. */
19640 #ifdef __cplusplus
19641 extern "C"
19642 #endif
19643 char dld_link ();
19644 int
19645 main ()
19646 {
19647 return dld_link ();
19648 ;
19649 return 0;
19650 }
19651 _ACEOF
19652 if ac_fn_c_try_link "$LINENO"; then :
19653 ac_cv_lib_dld_dld_link=yes
19654 else
19655 ac_cv_lib_dld_dld_link=no
19656 fi
19657 rm -f core conftest.err conftest.$ac_objext \
19658 conftest$ac_exeext conftest.$ac_ext
19659 LIBS=$ac_check_lib_save_LIBS
19660 fi
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19662 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19663 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19664 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19665 fi
19666
19667
19668 fi
19669
19670
19671 fi
19672
19673
19674 fi
19675
19676
19677 fi
19678
19679
19680 fi
19681
19682 ;;
19683 esac
19684
19685 if test "x$lt_cv_dlopen" != xno; then
19686 enable_dlopen=yes
19687 else
19688 enable_dlopen=no
19689 fi
19690
19691 case $lt_cv_dlopen in
19692 dlopen)
19693 save_CPPFLAGS="$CPPFLAGS"
19694 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19695
19696 save_LDFLAGS="$LDFLAGS"
19697 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19698
19699 save_LIBS="$LIBS"
19700 LIBS="$lt_cv_dlopen_libs $LIBS"
19701
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19703 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19704 if ${lt_cv_dlopen_self+:} false; then :
19705 $as_echo_n "(cached) " >&6
19706 else
19707 if test "$cross_compiling" = yes; then :
19708 lt_cv_dlopen_self=cross
19709 else
19710 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19711 lt_status=$lt_dlunknown
19712 cat > conftest.$ac_ext <<_LT_EOF
19713 #line 19713 "configure"
19714 #include "confdefs.h"
19715
19716 #if HAVE_DLFCN_H
19717 #include <dlfcn.h>
19718 #endif
19719
19720 #include <stdio.h>
19721
19722 #ifdef RTLD_GLOBAL
19723 # define LT_DLGLOBAL RTLD_GLOBAL
19724 #else
19725 # ifdef DL_GLOBAL
19726 # define LT_DLGLOBAL DL_GLOBAL
19727 # else
19728 # define LT_DLGLOBAL 0
19729 # endif
19730 #endif
19731
19732 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19733 find out it does not work in some platform. */
19734 #ifndef LT_DLLAZY_OR_NOW
19735 # ifdef RTLD_LAZY
19736 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19737 # else
19738 # ifdef DL_LAZY
19739 # define LT_DLLAZY_OR_NOW DL_LAZY
19740 # else
19741 # ifdef RTLD_NOW
19742 # define LT_DLLAZY_OR_NOW RTLD_NOW
19743 # else
19744 # ifdef DL_NOW
19745 # define LT_DLLAZY_OR_NOW DL_NOW
19746 # else
19747 # define LT_DLLAZY_OR_NOW 0
19748 # endif
19749 # endif
19750 # endif
19751 # endif
19752 #endif
19753
19754 /* When -fvisbility=hidden is used, assume the code has been annotated
19755 correspondingly for the symbols needed. */
19756 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19757 void fnord () __attribute__((visibility("default")));
19758 #endif
19759
19760 void fnord () { int i=42; }
19761 int main ()
19762 {
19763 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19764 int status = $lt_dlunknown;
19765
19766 if (self)
19767 {
19768 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19769 else
19770 {
19771 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19772 else puts (dlerror ());
19773 }
19774 /* dlclose (self); */
19775 }
19776 else
19777 puts (dlerror ());
19778
19779 return status;
19780 }
19781 _LT_EOF
19782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19783 (eval $ac_link) 2>&5
19784 ac_status=$?
19785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19786 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19787 (./conftest; exit; ) >&5 2>/dev/null
19788 lt_status=$?
19789 case x$lt_status in
19790 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19791 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19792 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19793 esac
19794 else :
19795 # compilation failed
19796 lt_cv_dlopen_self=no
19797 fi
19798 fi
19799 rm -fr conftest*
19800
19801
19802 fi
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19804 $as_echo "$lt_cv_dlopen_self" >&6; }
19805
19806 if test "x$lt_cv_dlopen_self" = xyes; then
19807 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19809 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19810 if ${lt_cv_dlopen_self_static+:} false; then :
19811 $as_echo_n "(cached) " >&6
19812 else
19813 if test "$cross_compiling" = yes; then :
19814 lt_cv_dlopen_self_static=cross
19815 else
19816 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19817 lt_status=$lt_dlunknown
19818 cat > conftest.$ac_ext <<_LT_EOF
19819 #line 19819 "configure"
19820 #include "confdefs.h"
19821
19822 #if HAVE_DLFCN_H
19823 #include <dlfcn.h>
19824 #endif
19825
19826 #include <stdio.h>
19827
19828 #ifdef RTLD_GLOBAL
19829 # define LT_DLGLOBAL RTLD_GLOBAL
19830 #else
19831 # ifdef DL_GLOBAL
19832 # define LT_DLGLOBAL DL_GLOBAL
19833 # else
19834 # define LT_DLGLOBAL 0
19835 # endif
19836 #endif
19837
19838 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19839 find out it does not work in some platform. */
19840 #ifndef LT_DLLAZY_OR_NOW
19841 # ifdef RTLD_LAZY
19842 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19843 # else
19844 # ifdef DL_LAZY
19845 # define LT_DLLAZY_OR_NOW DL_LAZY
19846 # else
19847 # ifdef RTLD_NOW
19848 # define LT_DLLAZY_OR_NOW RTLD_NOW
19849 # else
19850 # ifdef DL_NOW
19851 # define LT_DLLAZY_OR_NOW DL_NOW
19852 # else
19853 # define LT_DLLAZY_OR_NOW 0
19854 # endif
19855 # endif
19856 # endif
19857 # endif
19858 #endif
19859
19860 /* When -fvisbility=hidden is used, assume the code has been annotated
19861 correspondingly for the symbols needed. */
19862 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19863 void fnord () __attribute__((visibility("default")));
19864 #endif
19865
19866 void fnord () { int i=42; }
19867 int main ()
19868 {
19869 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19870 int status = $lt_dlunknown;
19871
19872 if (self)
19873 {
19874 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19875 else
19876 {
19877 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19878 else puts (dlerror ());
19879 }
19880 /* dlclose (self); */
19881 }
19882 else
19883 puts (dlerror ());
19884
19885 return status;
19886 }
19887 _LT_EOF
19888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19889 (eval $ac_link) 2>&5
19890 ac_status=$?
19891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19892 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19893 (./conftest; exit; ) >&5 2>/dev/null
19894 lt_status=$?
19895 case x$lt_status in
19896 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19897 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19898 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19899 esac
19900 else :
19901 # compilation failed
19902 lt_cv_dlopen_self_static=no
19903 fi
19904 fi
19905 rm -fr conftest*
19906
19907
19908 fi
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19910 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19911 fi
19912
19913 CPPFLAGS="$save_CPPFLAGS"
19914 LDFLAGS="$save_LDFLAGS"
19915 LIBS="$save_LIBS"
19916 ;;
19917 esac
19918
19919 case $lt_cv_dlopen_self in
19920 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19921 *) enable_dlopen_self=unknown ;;
19922 esac
19923
19924 case $lt_cv_dlopen_self_static in
19925 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19926 *) enable_dlopen_self_static=unknown ;;
19927 esac
19928 fi
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946 striplib=
19947 old_striplib=
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19949 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19950 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19951 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19952 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19954 $as_echo "yes" >&6; }
19955 else
19956 # FIXME - insert some real tests, host_os isn't really good enough
19957 case $host_os in
19958 darwin*)
19959 if test -n "$STRIP" ; then
19960 striplib="$STRIP -x"
19961 old_striplib="$STRIP -S"
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19963 $as_echo "yes" >&6; }
19964 else
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19966 $as_echo "no" >&6; }
19967 fi
19968 ;;
19969 *)
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19971 $as_echo "no" >&6; }
19972 ;;
19973 esac
19974 fi
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987 # Report which library types will actually be built
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19989 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19991 $as_echo "$can_build_shared" >&6; }
19992
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19994 $as_echo_n "checking whether to build shared libraries... " >&6; }
19995 test "$can_build_shared" = "no" && enable_shared=no
19996
19997 # On AIX, shared libraries and static libraries use the same namespace, and
19998 # are all built from PIC.
19999 case $host_os in
20000 aix3*)
20001 test "$enable_shared" = yes && enable_static=no
20002 if test -n "$RANLIB"; then
20003 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20004 postinstall_cmds='$RANLIB $lib'
20005 fi
20006 ;;
20007
20008 aix[4-9]*)
20009 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20010 test "$enable_shared" = yes && enable_static=no
20011 fi
20012 ;;
20013 esac
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20015 $as_echo "$enable_shared" >&6; }
20016
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20018 $as_echo_n "checking whether to build static libraries... " >&6; }
20019 # Make sure either enable_shared or enable_static is yes.
20020 test "$enable_shared" = yes || enable_static=yes
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20022 $as_echo "$enable_static" >&6; }
20023
20024
20025
20026
20027 fi
20028 ac_ext=cpp
20029 ac_cpp='$CXXCPP $CPPFLAGS'
20030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20033
20034 CC="$lt_save_CC"
20035
20036 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20037 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20038 (test "X$CXX" != "Xg++"))) ; then
20039 ac_ext=cpp
20040 ac_cpp='$CXXCPP $CPPFLAGS'
20041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20045 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20046 if test -z "$CXXCPP"; then
20047 if ${ac_cv_prog_CXXCPP+:} false; then :
20048 $as_echo_n "(cached) " >&6
20049 else
20050 # Double quotes because CXXCPP needs to be expanded
20051 for CXXCPP in "$CXX -E" "/lib/cpp"
20052 do
20053 ac_preproc_ok=false
20054 for ac_cxx_preproc_warn_flag in '' yes
20055 do
20056 # Use a header file that comes with gcc, so configuring glibc
20057 # with a fresh cross-compiler works.
20058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20059 # <limits.h> exists even on freestanding compilers.
20060 # On the NeXT, cc -E runs the code through the compiler's parser,
20061 # not just through cpp. "Syntax error" is here to catch this case.
20062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20063 /* end confdefs.h. */
20064 #ifdef __STDC__
20065 # include <limits.h>
20066 #else
20067 # include <assert.h>
20068 #endif
20069 Syntax error
20070 _ACEOF
20071 if ac_fn_cxx_try_cpp "$LINENO"; then :
20072
20073 else
20074 # Broken: fails on valid input.
20075 continue
20076 fi
20077 rm -f conftest.err conftest.i conftest.$ac_ext
20078
20079 # OK, works on sane cases. Now check whether nonexistent headers
20080 # can be detected and how.
20081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20082 /* end confdefs.h. */
20083 #include <ac_nonexistent.h>
20084 _ACEOF
20085 if ac_fn_cxx_try_cpp "$LINENO"; then :
20086 # Broken: success on invalid input.
20087 continue
20088 else
20089 # Passes both tests.
20090 ac_preproc_ok=:
20091 break
20092 fi
20093 rm -f conftest.err conftest.i conftest.$ac_ext
20094
20095 done
20096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20097 rm -f conftest.i conftest.err conftest.$ac_ext
20098 if $ac_preproc_ok; then :
20099 break
20100 fi
20101
20102 done
20103 ac_cv_prog_CXXCPP=$CXXCPP
20104
20105 fi
20106 CXXCPP=$ac_cv_prog_CXXCPP
20107 else
20108 ac_cv_prog_CXXCPP=$CXXCPP
20109 fi
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20111 $as_echo "$CXXCPP" >&6; }
20112 ac_preproc_ok=false
20113 for ac_cxx_preproc_warn_flag in '' yes
20114 do
20115 # Use a header file that comes with gcc, so configuring glibc
20116 # with a fresh cross-compiler works.
20117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20118 # <limits.h> exists even on freestanding compilers.
20119 # On the NeXT, cc -E runs the code through the compiler's parser,
20120 # not just through cpp. "Syntax error" is here to catch this case.
20121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20122 /* end confdefs.h. */
20123 #ifdef __STDC__
20124 # include <limits.h>
20125 #else
20126 # include <assert.h>
20127 #endif
20128 Syntax error
20129 _ACEOF
20130 if ac_fn_cxx_try_cpp "$LINENO"; then :
20131
20132 else
20133 # Broken: fails on valid input.
20134 continue
20135 fi
20136 rm -f conftest.err conftest.i conftest.$ac_ext
20137
20138 # OK, works on sane cases. Now check whether nonexistent headers
20139 # can be detected and how.
20140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20141 /* end confdefs.h. */
20142 #include <ac_nonexistent.h>
20143 _ACEOF
20144 if ac_fn_cxx_try_cpp "$LINENO"; then :
20145 # Broken: success on invalid input.
20146 continue
20147 else
20148 # Passes both tests.
20149 ac_preproc_ok=:
20150 break
20151 fi
20152 rm -f conftest.err conftest.i conftest.$ac_ext
20153
20154 done
20155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20156 rm -f conftest.i conftest.err conftest.$ac_ext
20157 if $ac_preproc_ok; then :
20158
20159 else
20160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20162 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20163 See \`config.log' for more details" "$LINENO" 5; }
20164 fi
20165
20166 ac_ext=cpp
20167 ac_cpp='$CXXCPP $CPPFLAGS'
20168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20171
20172 else
20173 _lt_caught_CXX_error=yes
20174 fi
20175
20176 ac_ext=cpp
20177 ac_cpp='$CXXCPP $CPPFLAGS'
20178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20181
20182 archive_cmds_need_lc_CXX=no
20183 allow_undefined_flag_CXX=
20184 always_export_symbols_CXX=no
20185 archive_expsym_cmds_CXX=
20186 compiler_needs_object_CXX=no
20187 export_dynamic_flag_spec_CXX=
20188 hardcode_direct_CXX=no
20189 hardcode_direct_absolute_CXX=no
20190 hardcode_libdir_flag_spec_CXX=
20191 hardcode_libdir_flag_spec_ld_CXX=
20192 hardcode_libdir_separator_CXX=
20193 hardcode_minus_L_CXX=no
20194 hardcode_shlibpath_var_CXX=unsupported
20195 hardcode_automatic_CXX=no
20196 inherit_rpath_CXX=no
20197 module_cmds_CXX=
20198 module_expsym_cmds_CXX=
20199 link_all_deplibs_CXX=unknown
20200 old_archive_cmds_CXX=$old_archive_cmds
20201 reload_flag_CXX=$reload_flag
20202 reload_cmds_CXX=$reload_cmds
20203 no_undefined_flag_CXX=
20204 whole_archive_flag_spec_CXX=
20205 enable_shared_with_static_runtimes_CXX=no
20206
20207 # Source file extension for C++ test sources.
20208 ac_ext=cpp
20209
20210 # Object file extension for compiled C++ test sources.
20211 objext=o
20212 objext_CXX=$objext
20213
20214 # No sense in running all these tests if we already determined that
20215 # the CXX compiler isn't working. Some variables (like enable_shared)
20216 # are currently assumed to apply to all compilers on this platform,
20217 # and will be corrupted by setting them based on a non-working compiler.
20218 if test "$_lt_caught_CXX_error" != yes; then
20219 # Code to be used in simple compile tests
20220 lt_simple_compile_test_code="int some_variable = 0;"
20221
20222 # Code to be used in simple link tests
20223 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20224
20225 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20226
20227
20228
20229
20230
20231
20232 # If no C compiler was specified, use CC.
20233 LTCC=${LTCC-"$CC"}
20234
20235 # If no C compiler flags were specified, use CFLAGS.
20236 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20237
20238 # Allow CC to be a program name with arguments.
20239 compiler=$CC
20240
20241
20242 # save warnings/boilerplate of simple test code
20243 ac_outfile=conftest.$ac_objext
20244 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20245 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20246 _lt_compiler_boilerplate=`cat conftest.err`
20247 $RM conftest*
20248
20249 ac_outfile=conftest.$ac_objext
20250 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20251 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20252 _lt_linker_boilerplate=`cat conftest.err`
20253 $RM -r conftest*
20254
20255
20256 # Allow CC to be a program name with arguments.
20257 lt_save_CC=$CC
20258 lt_save_LD=$LD
20259 lt_save_GCC=$GCC
20260 GCC=$GXX
20261 lt_save_with_gnu_ld=$with_gnu_ld
20262 lt_save_path_LD=$lt_cv_path_LD
20263 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20264 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20265 else
20266 $as_unset lt_cv_prog_gnu_ld
20267 fi
20268 if test -n "${lt_cv_path_LDCXX+set}"; then
20269 lt_cv_path_LD=$lt_cv_path_LDCXX
20270 else
20271 $as_unset lt_cv_path_LD
20272 fi
20273 test -z "${LDCXX+set}" || LD=$LDCXX
20274 CC=${CXX-"c++"}
20275 compiler=$CC
20276 compiler_CXX=$CC
20277 for cc_temp in $compiler""; do
20278 case $cc_temp in
20279 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20280 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20281 \-*) ;;
20282 *) break;;
20283 esac
20284 done
20285 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20286
20287
20288 if test -n "$compiler"; then
20289 # We don't want -fno-exception when compiling C++ code, so set the
20290 # no_builtin_flag separately
20291 if test "$GXX" = yes; then
20292 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20293 else
20294 lt_prog_compiler_no_builtin_flag_CXX=
20295 fi
20296
20297 if test "$GXX" = yes; then
20298 # Set up default GNU C++ configuration
20299
20300
20301
20302 # Check whether --with-gnu-ld was given.
20303 if test "${with_gnu_ld+set}" = set; then :
20304 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20305 else
20306 with_gnu_ld=no
20307 fi
20308
20309 ac_prog=ld
20310 if test "$GCC" = yes; then
20311 # Check if gcc -print-prog-name=ld gives a path.
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20313 $as_echo_n "checking for ld used by $CC... " >&6; }
20314 case $host in
20315 *-*-mingw*)
20316 # gcc leaves a trailing carriage return which upsets mingw
20317 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20318 *)
20319 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20320 esac
20321 case $ac_prog in
20322 # Accept absolute paths.
20323 [\\/]* | ?:[\\/]*)
20324 re_direlt='/[^/][^/]*/\.\./'
20325 # Canonicalize the pathname of ld
20326 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20327 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20328 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20329 done
20330 test -z "$LD" && LD="$ac_prog"
20331 ;;
20332 "")
20333 # If it fails, then pretend we aren't using GCC.
20334 ac_prog=ld
20335 ;;
20336 *)
20337 # If it is relative, then search for the first ld in PATH.
20338 with_gnu_ld=unknown
20339 ;;
20340 esac
20341 elif test "$with_gnu_ld" = yes; then
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20343 $as_echo_n "checking for GNU ld... " >&6; }
20344 else
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20346 $as_echo_n "checking for non-GNU ld... " >&6; }
20347 fi
20348 if ${lt_cv_path_LD+:} false; then :
20349 $as_echo_n "(cached) " >&6
20350 else
20351 if test -z "$LD"; then
20352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20353 for ac_dir in $PATH; do
20354 IFS="$lt_save_ifs"
20355 test -z "$ac_dir" && ac_dir=.
20356 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20357 lt_cv_path_LD="$ac_dir/$ac_prog"
20358 # Check to see if the program is GNU ld. I'd rather use --version,
20359 # but apparently some variants of GNU ld only accept -v.
20360 # Break only if it was the GNU/non-GNU ld that we prefer.
20361 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20362 *GNU* | *'with BFD'*)
20363 test "$with_gnu_ld" != no && break
20364 ;;
20365 *)
20366 test "$with_gnu_ld" != yes && break
20367 ;;
20368 esac
20369 fi
20370 done
20371 IFS="$lt_save_ifs"
20372 else
20373 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20374 fi
20375 fi
20376
20377 LD="$lt_cv_path_LD"
20378 if test -n "$LD"; then
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20380 $as_echo "$LD" >&6; }
20381 else
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20383 $as_echo "no" >&6; }
20384 fi
20385 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20387 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20388 if ${lt_cv_prog_gnu_ld+:} false; then :
20389 $as_echo_n "(cached) " >&6
20390 else
20391 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20392 case `$LD -v 2>&1 </dev/null` in
20393 *GNU* | *'with BFD'*)
20394 lt_cv_prog_gnu_ld=yes
20395 ;;
20396 *)
20397 lt_cv_prog_gnu_ld=no
20398 ;;
20399 esac
20400 fi
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20402 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20403 with_gnu_ld=$lt_cv_prog_gnu_ld
20404
20405
20406
20407
20408
20409
20410
20411 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20412 # archiving commands below assume that GNU ld is being used.
20413 if test "$with_gnu_ld" = yes; then
20414 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20415 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'
20416
20417 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20418 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20419
20420 # If archive_cmds runs LD, not CC, wlarc should be empty
20421 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20422 # investigate it a little bit more. (MM)
20423 wlarc='${wl}'
20424
20425 # ancient GNU ld didn't support --whole-archive et. al.
20426 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20427 $GREP 'no-whole-archive' > /dev/null; then
20428 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20429 else
20430 whole_archive_flag_spec_CXX=
20431 fi
20432 else
20433 with_gnu_ld=no
20434 wlarc=
20435
20436 # A generic and very simple default shared library creation
20437 # command for GNU C++ for the case where it uses the native
20438 # linker, instead of GNU ld. If possible, this setting should
20439 # overridden to take advantage of the native linker features on
20440 # the platform it is being used on.
20441 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20442 fi
20443
20444 # Commands to make compiler produce verbose output that lists
20445 # what "hidden" libraries, object files and flags are used when
20446 # linking a shared library.
20447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20448
20449 else
20450 GXX=no
20451 with_gnu_ld=no
20452 wlarc=
20453 fi
20454
20455 # PORTME: fill in a description of your system's C++ link characteristics
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20457 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20458 ld_shlibs_CXX=yes
20459 case $host_os in
20460 aix3*)
20461 # FIXME: insert proper C++ library support
20462 ld_shlibs_CXX=no
20463 ;;
20464 aix[4-9]*)
20465 if test "$host_cpu" = ia64; then
20466 # On IA64, the linker does run time linking by default, so we don't
20467 # have to do anything special.
20468 aix_use_runtimelinking=no
20469 exp_sym_flag='-Bexport'
20470 no_entry_flag=""
20471 else
20472 aix_use_runtimelinking=no
20473
20474 # Test if we are trying to use run time linking or normal
20475 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20476 # need to do runtime linking.
20477 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20478 for ld_flag in $LDFLAGS; do
20479 case $ld_flag in
20480 *-brtl*)
20481 aix_use_runtimelinking=yes
20482 break
20483 ;;
20484 esac
20485 done
20486 ;;
20487 esac
20488
20489 exp_sym_flag='-bexport'
20490 no_entry_flag='-bnoentry'
20491 fi
20492
20493 # When large executables or shared objects are built, AIX ld can
20494 # have problems creating the table of contents. If linking a library
20495 # or program results in "error TOC overflow" add -mminimal-toc to
20496 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20497 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20498
20499 archive_cmds_CXX=''
20500 hardcode_direct_CXX=yes
20501 hardcode_direct_absolute_CXX=yes
20502 hardcode_libdir_separator_CXX=':'
20503 link_all_deplibs_CXX=yes
20504 file_list_spec_CXX='${wl}-f,'
20505
20506 if test "$GXX" = yes; then
20507 case $host_os in aix4.[012]|aix4.[012].*)
20508 # We only want to do this on AIX 4.2 and lower, the check
20509 # below for broken collect2 doesn't work under 4.3+
20510 collect2name=`${CC} -print-prog-name=collect2`
20511 if test -f "$collect2name" &&
20512 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20513 then
20514 # We have reworked collect2
20515 :
20516 else
20517 # We have old collect2
20518 hardcode_direct_CXX=unsupported
20519 # It fails to find uninstalled libraries when the uninstalled
20520 # path is not listed in the libpath. Setting hardcode_minus_L
20521 # to unsupported forces relinking
20522 hardcode_minus_L_CXX=yes
20523 hardcode_libdir_flag_spec_CXX='-L$libdir'
20524 hardcode_libdir_separator_CXX=
20525 fi
20526 esac
20527 shared_flag='-shared'
20528 if test "$aix_use_runtimelinking" = yes; then
20529 shared_flag="$shared_flag "'${wl}-G'
20530 fi
20531 else
20532 # not using gcc
20533 if test "$host_cpu" = ia64; then
20534 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20535 # chokes on -Wl,-G. The following line is correct:
20536 shared_flag='-G'
20537 else
20538 if test "$aix_use_runtimelinking" = yes; then
20539 shared_flag='${wl}-G'
20540 else
20541 shared_flag='${wl}-bM:SRE'
20542 fi
20543 fi
20544 fi
20545
20546 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20547 # It seems that -bexpall does not export symbols beginning with
20548 # underscore (_), so it is better to generate a list of symbols to
20549 # export.
20550 always_export_symbols_CXX=yes
20551 if test "$aix_use_runtimelinking" = yes; then
20552 # Warning - without using the other runtime loading flags (-brtl),
20553 # -berok will link without error, but may produce a broken library.
20554 allow_undefined_flag_CXX='-berok'
20555 # Determine the default libpath from the value encoded in an empty
20556 # executable.
20557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20558 /* end confdefs.h. */
20559
20560 int
20561 main ()
20562 {
20563
20564 ;
20565 return 0;
20566 }
20567 _ACEOF
20568 if ac_fn_cxx_try_link "$LINENO"; then :
20569
20570 lt_aix_libpath_sed='
20571 /Import File Strings/,/^$/ {
20572 /^0/ {
20573 s/^0 *\(.*\)$/\1/
20574 p
20575 }
20576 }'
20577 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20578 # Check for a 64-bit object if we didn't find anything.
20579 if test -z "$aix_libpath"; then
20580 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20581 fi
20582 fi
20583 rm -f core conftest.err conftest.$ac_objext \
20584 conftest$ac_exeext conftest.$ac_ext
20585 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20586
20587 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20588
20589 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"
20590 else
20591 if test "$host_cpu" = ia64; then
20592 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20593 allow_undefined_flag_CXX="-z nodefs"
20594 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"
20595 else
20596 # Determine the default libpath from the value encoded in an
20597 # empty executable.
20598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20599 /* end confdefs.h. */
20600
20601 int
20602 main ()
20603 {
20604
20605 ;
20606 return 0;
20607 }
20608 _ACEOF
20609 if ac_fn_cxx_try_link "$LINENO"; then :
20610
20611 lt_aix_libpath_sed='
20612 /Import File Strings/,/^$/ {
20613 /^0/ {
20614 s/^0 *\(.*\)$/\1/
20615 p
20616 }
20617 }'
20618 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20619 # Check for a 64-bit object if we didn't find anything.
20620 if test -z "$aix_libpath"; then
20621 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20622 fi
20623 fi
20624 rm -f core conftest.err conftest.$ac_objext \
20625 conftest$ac_exeext conftest.$ac_ext
20626 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20627
20628 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20629 # Warning - without using the other run time loading flags,
20630 # -berok will link without error, but may produce a broken library.
20631 no_undefined_flag_CXX=' ${wl}-bernotok'
20632 allow_undefined_flag_CXX=' ${wl}-berok'
20633 if test "$with_gnu_ld" = yes; then
20634 # We only use this code for GNU lds that support --whole-archive.
20635 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20636 else
20637 # Exported symbols can be pulled into shared objects from archives
20638 whole_archive_flag_spec_CXX='$convenience'
20639 fi
20640 archive_cmds_need_lc_CXX=yes
20641 # This is similar to how AIX traditionally builds its shared
20642 # libraries.
20643 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'
20644 fi
20645 fi
20646 ;;
20647
20648 beos*)
20649 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20650 allow_undefined_flag_CXX=unsupported
20651 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20652 # support --undefined. This deserves some investigation. FIXME
20653 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20654 else
20655 ld_shlibs_CXX=no
20656 fi
20657 ;;
20658
20659 chorus*)
20660 case $cc_basename in
20661 *)
20662 # FIXME: insert proper C++ library support
20663 ld_shlibs_CXX=no
20664 ;;
20665 esac
20666 ;;
20667
20668 cygwin* | mingw* | pw32* | cegcc*)
20669 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20670 # as there is no search path for DLLs.
20671 hardcode_libdir_flag_spec_CXX='-L$libdir'
20672 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20673 allow_undefined_flag_CXX=unsupported
20674 always_export_symbols_CXX=no
20675 enable_shared_with_static_runtimes_CXX=yes
20676
20677 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20678 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'
20679 # If the export-symbols file already is a .def file (1st line
20680 # is EXPORTS), use it as is; otherwise, prepend...
20681 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20682 cp $export_symbols $output_objdir/$soname.def;
20683 else
20684 echo EXPORTS > $output_objdir/$soname.def;
20685 cat $export_symbols >> $output_objdir/$soname.def;
20686 fi~
20687 $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'
20688 else
20689 ld_shlibs_CXX=no
20690 fi
20691 ;;
20692 darwin* | rhapsody*)
20693
20694
20695 archive_cmds_need_lc_CXX=no
20696 hardcode_direct_CXX=no
20697 hardcode_automatic_CXX=yes
20698 hardcode_shlibpath_var_CXX=unsupported
20699 if test "$lt_cv_ld_force_load" = "yes"; then
20700 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\"`'
20701 else
20702 whole_archive_flag_spec_CXX=''
20703 fi
20704 link_all_deplibs_CXX=yes
20705 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20706 case $cc_basename in
20707 ifort*) _lt_dar_can_shared=yes ;;
20708 *) _lt_dar_can_shared=$GCC ;;
20709 esac
20710 if test "$_lt_dar_can_shared" = "yes"; then
20711 output_verbose_link_cmd=func_echo_all
20712 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}"
20713 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20714 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}"
20715 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}"
20716 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20717 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}"
20718 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}"
20719 fi
20720
20721 else
20722 ld_shlibs_CXX=no
20723 fi
20724
20725 ;;
20726
20727 dgux*)
20728 case $cc_basename in
20729 ec++*)
20730 # FIXME: insert proper C++ library support
20731 ld_shlibs_CXX=no
20732 ;;
20733 ghcx*)
20734 # Green Hills C++ Compiler
20735 # FIXME: insert proper C++ library support
20736 ld_shlibs_CXX=no
20737 ;;
20738 *)
20739 # FIXME: insert proper C++ library support
20740 ld_shlibs_CXX=no
20741 ;;
20742 esac
20743 ;;
20744
20745 freebsd2.*)
20746 # C++ shared libraries reported to be fairly broken before
20747 # switch to ELF
20748 ld_shlibs_CXX=no
20749 ;;
20750
20751 freebsd-elf*)
20752 archive_cmds_need_lc_CXX=no
20753 ;;
20754
20755 freebsd* | dragonfly*)
20756 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20757 # conventions
20758 ld_shlibs_CXX=yes
20759 ;;
20760
20761 gnu*)
20762 ;;
20763
20764 haiku*)
20765 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20766 link_all_deplibs_CXX=yes
20767 ;;
20768
20769 hpux9*)
20770 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20771 hardcode_libdir_separator_CXX=:
20772 export_dynamic_flag_spec_CXX='${wl}-E'
20773 hardcode_direct_CXX=yes
20774 hardcode_minus_L_CXX=yes # Not in the search PATH,
20775 # but as the default
20776 # location of the library.
20777
20778 case $cc_basename in
20779 CC*)
20780 # FIXME: insert proper C++ library support
20781 ld_shlibs_CXX=no
20782 ;;
20783 aCC*)
20784 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'
20785 # Commands to make compiler produce verbose output that lists
20786 # what "hidden" libraries, object files and flags are used when
20787 # linking a shared library.
20788 #
20789 # There doesn't appear to be a way to prevent this compiler from
20790 # explicitly linking system object files so we need to strip them
20791 # from the output so that they don't get included in the library
20792 # dependencies.
20793 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"'
20794 ;;
20795 *)
20796 if test "$GXX" = yes; then
20797 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'
20798 else
20799 # FIXME: insert proper C++ library support
20800 ld_shlibs_CXX=no
20801 fi
20802 ;;
20803 esac
20804 ;;
20805
20806 hpux10*|hpux11*)
20807 if test $with_gnu_ld = no; then
20808 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20809 hardcode_libdir_separator_CXX=:
20810
20811 case $host_cpu in
20812 hppa*64*|ia64*)
20813 ;;
20814 *)
20815 export_dynamic_flag_spec_CXX='${wl}-E'
20816 ;;
20817 esac
20818 fi
20819 case $host_cpu in
20820 hppa*64*|ia64*)
20821 hardcode_direct_CXX=no
20822 hardcode_shlibpath_var_CXX=no
20823 ;;
20824 *)
20825 hardcode_direct_CXX=yes
20826 hardcode_direct_absolute_CXX=yes
20827 hardcode_minus_L_CXX=yes # Not in the search PATH,
20828 # but as the default
20829 # location of the library.
20830 ;;
20831 esac
20832
20833 case $cc_basename in
20834 CC*)
20835 # FIXME: insert proper C++ library support
20836 ld_shlibs_CXX=no
20837 ;;
20838 aCC*)
20839 case $host_cpu in
20840 hppa*64*)
20841 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20842 ;;
20843 ia64*)
20844 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20845 ;;
20846 *)
20847 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20848 ;;
20849 esac
20850 # Commands to make compiler produce verbose output that lists
20851 # what "hidden" libraries, object files and flags are used when
20852 # linking a shared library.
20853 #
20854 # There doesn't appear to be a way to prevent this compiler from
20855 # explicitly linking system object files so we need to strip them
20856 # from the output so that they don't get included in the library
20857 # dependencies.
20858 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"'
20859 ;;
20860 *)
20861 if test "$GXX" = yes; then
20862 if test $with_gnu_ld = no; then
20863 case $host_cpu in
20864 hppa*64*)
20865 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20866 ;;
20867 ia64*)
20868 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20869 ;;
20870 *)
20871 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'
20872 ;;
20873 esac
20874 fi
20875 else
20876 # FIXME: insert proper C++ library support
20877 ld_shlibs_CXX=no
20878 fi
20879 ;;
20880 esac
20881 ;;
20882
20883 interix[3-9]*)
20884 hardcode_direct_CXX=no
20885 hardcode_shlibpath_var_CXX=no
20886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20887 export_dynamic_flag_spec_CXX='${wl}-E'
20888 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20889 # Instead, shared libraries are loaded at an image base (0x10000000 by
20890 # default) and relocated if they conflict, which is a slow very memory
20891 # consuming and fragmenting process. To avoid this, we pick a random,
20892 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20893 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20894 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'
20895 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'
20896 ;;
20897 irix5* | irix6*)
20898 case $cc_basename in
20899 CC*)
20900 # SGI C++
20901 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'
20902
20903 # Archives containing C++ object files must be created using
20904 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20905 # necessary to make sure instantiated templates are included
20906 # in the archive.
20907 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20908 ;;
20909 *)
20910 if test "$GXX" = yes; then
20911 if test "$with_gnu_ld" = no; then
20912 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'
20913 else
20914 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'
20915 fi
20916 fi
20917 link_all_deplibs_CXX=yes
20918 ;;
20919 esac
20920 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20921 hardcode_libdir_separator_CXX=:
20922 inherit_rpath_CXX=yes
20923 ;;
20924
20925 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20926 case $cc_basename in
20927 KCC*)
20928 # Kuck and Associates, Inc. (KAI) C++ Compiler
20929
20930 # KCC will only create a shared library if the output file
20931 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20932 # to its proper name (with version) after linking.
20933 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'
20934 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'
20935 # Commands to make compiler produce verbose output that lists
20936 # what "hidden" libraries, object files and flags are used when
20937 # linking a shared library.
20938 #
20939 # There doesn't appear to be a way to prevent this compiler from
20940 # explicitly linking system object files so we need to strip them
20941 # from the output so that they don't get included in the library
20942 # dependencies.
20943 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"'
20944
20945 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20946 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20947
20948 # Archives containing C++ object files must be created using
20949 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20950 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20951 ;;
20952 icpc* | ecpc* )
20953 # Intel C++
20954 with_gnu_ld=yes
20955 # version 8.0 and above of icpc choke on multiply defined symbols
20956 # if we add $predep_objects and $postdep_objects, however 7.1 and
20957 # earlier do not add the objects themselves.
20958 case `$CC -V 2>&1` in
20959 *"Version 7."*)
20960 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20961 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'
20962 ;;
20963 *) # Version 8.0 or newer
20964 tmp_idyn=
20965 case $host_cpu in
20966 ia64*) tmp_idyn=' -i_dynamic';;
20967 esac
20968 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20969 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'
20970 ;;
20971 esac
20972 archive_cmds_need_lc_CXX=no
20973 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20974 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20975 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20976 ;;
20977 pgCC* | pgcpp*)
20978 # Portland Group C++ compiler
20979 case `$CC -V` in
20980 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20981 prelink_cmds_CXX='tpldir=Template.dir~
20982 rm -rf $tpldir~
20983 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20984 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20985 old_archive_cmds_CXX='tpldir=Template.dir~
20986 rm -rf $tpldir~
20987 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20988 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20989 $RANLIB $oldlib'
20990 archive_cmds_CXX='tpldir=Template.dir~
20991 rm -rf $tpldir~
20992 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20993 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20994 archive_expsym_cmds_CXX='tpldir=Template.dir~
20995 rm -rf $tpldir~
20996 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20997 $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'
20998 ;;
20999 *) # Version 6 and above use weak symbols
21000 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21001 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'
21002 ;;
21003 esac
21004
21005 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21006 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21007 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'
21008 ;;
21009 cxx*)
21010 # Compaq C++
21011 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21012 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'
21013
21014 runpath_var=LD_RUN_PATH
21015 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21016 hardcode_libdir_separator_CXX=:
21017
21018 # Commands to make compiler produce verbose output that lists
21019 # what "hidden" libraries, object files and flags are used when
21020 # linking a shared library.
21021 #
21022 # There doesn't appear to be a way to prevent this compiler from
21023 # explicitly linking system object files so we need to strip them
21024 # from the output so that they don't get included in the library
21025 # dependencies.
21026 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'
21027 ;;
21028 xl* | mpixl* | bgxl*)
21029 # IBM XL 8.0 on PPC, with GNU ld
21030 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21031 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21032 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21033 if test "x$supports_anon_versioning" = xyes; then
21034 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
21035 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21036 echo "local: *; };" >> $output_objdir/$libname.ver~
21037 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21038 fi
21039 ;;
21040 *)
21041 case `$CC -V 2>&1 | sed 5q` in
21042 *Sun\ C*)
21043 # Sun C++ 5.9
21044 no_undefined_flag_CXX=' -zdefs'
21045 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21046 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'
21047 hardcode_libdir_flag_spec_CXX='-R$libdir'
21048 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'
21049 compiler_needs_object_CXX=yes
21050
21051 # Not sure whether something based on
21052 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21053 # would be better.
21054 output_verbose_link_cmd='func_echo_all'
21055
21056 # Archives containing C++ object files must be created using
21057 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21058 # necessary to make sure instantiated templates are included
21059 # in the archive.
21060 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21061 ;;
21062 esac
21063 ;;
21064 esac
21065 ;;
21066
21067 lynxos*)
21068 # FIXME: insert proper C++ library support
21069 ld_shlibs_CXX=no
21070 ;;
21071
21072 m88k*)
21073 # FIXME: insert proper C++ library support
21074 ld_shlibs_CXX=no
21075 ;;
21076
21077 mvs*)
21078 case $cc_basename in
21079 cxx*)
21080 # FIXME: insert proper C++ library support
21081 ld_shlibs_CXX=no
21082 ;;
21083 *)
21084 # FIXME: insert proper C++ library support
21085 ld_shlibs_CXX=no
21086 ;;
21087 esac
21088 ;;
21089
21090 netbsd*)
21091 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21092 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21093 wlarc=
21094 hardcode_libdir_flag_spec_CXX='-R$libdir'
21095 hardcode_direct_CXX=yes
21096 hardcode_shlibpath_var_CXX=no
21097 fi
21098 # Workaround some broken pre-1.5 toolchains
21099 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21100 ;;
21101
21102 *nto* | *qnx*)
21103 ld_shlibs_CXX=yes
21104 ;;
21105
21106 openbsd2*)
21107 # C++ shared libraries are fairly broken
21108 ld_shlibs_CXX=no
21109 ;;
21110
21111 openbsd*)
21112 if test -f /usr/libexec/ld.so; then
21113 hardcode_direct_CXX=yes
21114 hardcode_shlibpath_var_CXX=no
21115 hardcode_direct_absolute_CXX=yes
21116 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21117 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21118 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21119 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21120 export_dynamic_flag_spec_CXX='${wl}-E'
21121 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21122 fi
21123 output_verbose_link_cmd=func_echo_all
21124 else
21125 ld_shlibs_CXX=no
21126 fi
21127 ;;
21128
21129 osf3* | osf4* | osf5*)
21130 case $cc_basename in
21131 KCC*)
21132 # Kuck and Associates, Inc. (KAI) C++ Compiler
21133
21134 # KCC will only create a shared library if the output file
21135 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21136 # to its proper name (with version) after linking.
21137 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'
21138
21139 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21140 hardcode_libdir_separator_CXX=:
21141
21142 # Archives containing C++ object files must be created using
21143 # the KAI C++ compiler.
21144 case $host in
21145 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21146 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21147 esac
21148 ;;
21149 RCC*)
21150 # Rational C++ 2.4.1
21151 # FIXME: insert proper C++ library support
21152 ld_shlibs_CXX=no
21153 ;;
21154 cxx*)
21155 case $host in
21156 osf3*)
21157 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21158 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'
21159 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21160 ;;
21161 *)
21162 allow_undefined_flag_CXX=' -expect_unresolved \*'
21163 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'
21164 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21165 echo "-hidden">> $lib.exp~
21166 $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~
21167 $RM $lib.exp'
21168 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21169 ;;
21170 esac
21171
21172 hardcode_libdir_separator_CXX=:
21173
21174 # Commands to make compiler produce verbose output that lists
21175 # what "hidden" libraries, object files and flags are used when
21176 # linking a shared library.
21177 #
21178 # There doesn't appear to be a way to prevent this compiler from
21179 # explicitly linking system object files so we need to strip them
21180 # from the output so that they don't get included in the library
21181 # dependencies.
21182 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"'
21183 ;;
21184 *)
21185 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21186 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21187 case $host in
21188 osf3*)
21189 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'
21190 ;;
21191 *)
21192 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'
21193 ;;
21194 esac
21195
21196 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21197 hardcode_libdir_separator_CXX=:
21198
21199 # Commands to make compiler produce verbose output that lists
21200 # what "hidden" libraries, object files and flags are used when
21201 # linking a shared library.
21202 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21203
21204 else
21205 # FIXME: insert proper C++ library support
21206 ld_shlibs_CXX=no
21207 fi
21208 ;;
21209 esac
21210 ;;
21211
21212 psos*)
21213 # FIXME: insert proper C++ library support
21214 ld_shlibs_CXX=no
21215 ;;
21216
21217 sunos4*)
21218 case $cc_basename in
21219 CC*)
21220 # Sun C++ 4.x
21221 # FIXME: insert proper C++ library support
21222 ld_shlibs_CXX=no
21223 ;;
21224 lcc*)
21225 # Lucid
21226 # FIXME: insert proper C++ library support
21227 ld_shlibs_CXX=no
21228 ;;
21229 *)
21230 # FIXME: insert proper C++ library support
21231 ld_shlibs_CXX=no
21232 ;;
21233 esac
21234 ;;
21235
21236 solaris*)
21237 case $cc_basename in
21238 CC*)
21239 # Sun C++ 4.2, 5.x and Centerline C++
21240 archive_cmds_need_lc_CXX=yes
21241 no_undefined_flag_CXX=' -zdefs'
21242 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21243 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21244 $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'
21245
21246 hardcode_libdir_flag_spec_CXX='-R$libdir'
21247 hardcode_shlibpath_var_CXX=no
21248 case $host_os in
21249 solaris2.[0-5] | solaris2.[0-5].*) ;;
21250 *)
21251 # The compiler driver will combine and reorder linker options,
21252 # but understands `-z linker_flag'.
21253 # Supported since Solaris 2.6 (maybe 2.5.1?)
21254 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21255 ;;
21256 esac
21257 link_all_deplibs_CXX=yes
21258
21259 output_verbose_link_cmd='func_echo_all'
21260
21261 # Archives containing C++ object files must be created using
21262 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21263 # necessary to make sure instantiated templates are included
21264 # in the archive.
21265 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21266 ;;
21267 gcx*)
21268 # Green Hills C++ Compiler
21269 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21270
21271 # The C++ compiler must be used to create the archive.
21272 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21273 ;;
21274 *)
21275 # GNU C++ compiler with Solaris linker
21276 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21277 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21278 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21279 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21280 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21281 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21282
21283 # Commands to make compiler produce verbose output that lists
21284 # what "hidden" libraries, object files and flags are used when
21285 # linking a shared library.
21286 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21287 else
21288 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21289 # platform.
21290 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21291 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21292 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21293
21294 # Commands to make compiler produce verbose output that lists
21295 # what "hidden" libraries, object files and flags are used when
21296 # linking a shared library.
21297 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21298 fi
21299
21300 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21301 case $host_os in
21302 solaris2.[0-5] | solaris2.[0-5].*) ;;
21303 *)
21304 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21305 ;;
21306 esac
21307 fi
21308 ;;
21309 esac
21310 ;;
21311
21312 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21313 no_undefined_flag_CXX='${wl}-z,text'
21314 archive_cmds_need_lc_CXX=no
21315 hardcode_shlibpath_var_CXX=no
21316 runpath_var='LD_RUN_PATH'
21317
21318 case $cc_basename in
21319 CC*)
21320 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21321 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21322 ;;
21323 *)
21324 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21325 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21326 ;;
21327 esac
21328 ;;
21329
21330 sysv5* | sco3.2v5* | sco5v6*)
21331 # Note: We can NOT use -z defs as we might desire, because we do not
21332 # link with -lc, and that would cause any symbols used from libc to
21333 # always be unresolved, which means just about no library would
21334 # ever link correctly. If we're not using GNU ld we use -z text
21335 # though, which does catch some bad symbols but isn't as heavy-handed
21336 # as -z defs.
21337 no_undefined_flag_CXX='${wl}-z,text'
21338 allow_undefined_flag_CXX='${wl}-z,nodefs'
21339 archive_cmds_need_lc_CXX=no
21340 hardcode_shlibpath_var_CXX=no
21341 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21342 hardcode_libdir_separator_CXX=':'
21343 link_all_deplibs_CXX=yes
21344 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21345 runpath_var='LD_RUN_PATH'
21346
21347 case $cc_basename in
21348 CC*)
21349 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21350 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21351 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21352 '"$old_archive_cmds_CXX"
21353 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21354 '"$reload_cmds_CXX"
21355 ;;
21356 *)
21357 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21358 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21359 ;;
21360 esac
21361 ;;
21362
21363 tandem*)
21364 case $cc_basename in
21365 NCC*)
21366 # NonStop-UX NCC 3.20
21367 # FIXME: insert proper C++ library support
21368 ld_shlibs_CXX=no
21369 ;;
21370 *)
21371 # FIXME: insert proper C++ library support
21372 ld_shlibs_CXX=no
21373 ;;
21374 esac
21375 ;;
21376
21377 vxworks*)
21378 # For VxWorks ports, we assume the use of a GNU linker with
21379 # standard elf conventions.
21380 ld_shlibs_CXX=yes
21381 ;;
21382
21383 *)
21384 # FIXME: insert proper C++ library support
21385 ld_shlibs_CXX=no
21386 ;;
21387 esac
21388
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21390 $as_echo "$ld_shlibs_CXX" >&6; }
21391 test "$ld_shlibs_CXX" = no && can_build_shared=no
21392
21393 GCC_CXX="$GXX"
21394 LD_CXX="$LD"
21395
21396 ## CAVEAT EMPTOR:
21397 ## There is no encapsulation within the following macros, do not change
21398 ## the running order or otherwise move them around unless you know exactly
21399 ## what you are doing...
21400 # Dependencies to place before and after the object being linked:
21401 predep_objects_CXX=
21402 postdep_objects_CXX=
21403 predeps_CXX=
21404 postdeps_CXX=
21405 compiler_lib_search_path_CXX=
21406
21407 cat > conftest.$ac_ext <<_LT_EOF
21408 class Foo
21409 {
21410 public:
21411 Foo (void) { a = 0; }
21412 private:
21413 int a;
21414 };
21415 _LT_EOF
21416
21417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21418 (eval $ac_compile) 2>&5
21419 ac_status=$?
21420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21421 test $ac_status = 0; }; then
21422 # Parse the compiler output and extract the necessary
21423 # objects, libraries and library flags.
21424
21425 # Sentinel used to keep track of whether or not we are before
21426 # the conftest object file.
21427 pre_test_object_deps_done=no
21428
21429 for p in `eval "$output_verbose_link_cmd"`; do
21430 case $p in
21431
21432 -L* | -R* | -l*)
21433 # Some compilers place space between "-{L,R}" and the path.
21434 # Remove the space.
21435 if test $p = "-L" ||
21436 test $p = "-R"; then
21437 prev=$p
21438 continue
21439 else
21440 prev=
21441 fi
21442
21443 if test "$pre_test_object_deps_done" = no; then
21444 case $p in
21445 -L* | -R*)
21446 # Internal compiler library paths should come after those
21447 # provided the user. The postdeps already come after the
21448 # user supplied libs so there is no need to process them.
21449 if test -z "$compiler_lib_search_path_CXX"; then
21450 compiler_lib_search_path_CXX="${prev}${p}"
21451 else
21452 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21453 fi
21454 ;;
21455 # The "-l" case would never come before the object being
21456 # linked, so don't bother handling this case.
21457 esac
21458 else
21459 if test -z "$postdeps_CXX"; then
21460 postdeps_CXX="${prev}${p}"
21461 else
21462 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21463 fi
21464 fi
21465 ;;
21466
21467 *.$objext)
21468 # This assumes that the test object file only shows up
21469 # once in the compiler output.
21470 if test "$p" = "conftest.$objext"; then
21471 pre_test_object_deps_done=yes
21472 continue
21473 fi
21474
21475 if test "$pre_test_object_deps_done" = no; then
21476 if test -z "$predep_objects_CXX"; then
21477 predep_objects_CXX="$p"
21478 else
21479 predep_objects_CXX="$predep_objects_CXX $p"
21480 fi
21481 else
21482 if test -z "$postdep_objects_CXX"; then
21483 postdep_objects_CXX="$p"
21484 else
21485 postdep_objects_CXX="$postdep_objects_CXX $p"
21486 fi
21487 fi
21488 ;;
21489
21490 *) ;; # Ignore the rest.
21491
21492 esac
21493 done
21494
21495 # Clean up.
21496 rm -f a.out a.exe
21497 else
21498 echo "libtool.m4: error: problem compiling CXX test program"
21499 fi
21500
21501 $RM -f confest.$objext
21502
21503 # PORTME: override above test on systems where it is broken
21504 case $host_os in
21505 interix[3-9]*)
21506 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21507 # hack all around it, let's just trust "g++" to DTRT.
21508 predep_objects_CXX=
21509 postdep_objects_CXX=
21510 postdeps_CXX=
21511 ;;
21512
21513 linux*)
21514 case `$CC -V 2>&1 | sed 5q` in
21515 *Sun\ C*)
21516 # Sun C++ 5.9
21517
21518 # The more standards-conforming stlport4 library is
21519 # incompatible with the Cstd library. Avoid specifying
21520 # it if it's in CXXFLAGS. Ignore libCrun as
21521 # -library=stlport4 depends on it.
21522 case " $CXX $CXXFLAGS " in
21523 *" -library=stlport4 "*)
21524 solaris_use_stlport4=yes
21525 ;;
21526 esac
21527
21528 if test "$solaris_use_stlport4" != yes; then
21529 postdeps_CXX='-library=Cstd -library=Crun'
21530 fi
21531 ;;
21532 esac
21533 ;;
21534
21535 solaris*)
21536 case $cc_basename in
21537 CC*)
21538 # The more standards-conforming stlport4 library is
21539 # incompatible with the Cstd library. Avoid specifying
21540 # it if it's in CXXFLAGS. Ignore libCrun as
21541 # -library=stlport4 depends on it.
21542 case " $CXX $CXXFLAGS " in
21543 *" -library=stlport4 "*)
21544 solaris_use_stlport4=yes
21545 ;;
21546 esac
21547
21548 # Adding this requires a known-good setup of shared libraries for
21549 # Sun compiler versions before 5.6, else PIC objects from an old
21550 # archive will be linked into the output, leading to subtle bugs.
21551 if test "$solaris_use_stlport4" != yes; then
21552 postdeps_CXX='-library=Cstd -library=Crun'
21553 fi
21554 ;;
21555 esac
21556 ;;
21557 esac
21558
21559
21560 case " $postdeps_CXX " in
21561 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21562 esac
21563 compiler_lib_search_dirs_CXX=
21564 if test -n "${compiler_lib_search_path_CXX}"; then
21565 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21566 fi
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598 lt_prog_compiler_wl_CXX=
21599 lt_prog_compiler_pic_CXX=
21600 lt_prog_compiler_static_CXX=
21601
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21603 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21604
21605 # C++ specific cases for pic, static, wl, etc.
21606 if test "$GXX" = yes; then
21607 lt_prog_compiler_wl_CXX='-Wl,'
21608 lt_prog_compiler_static_CXX='-static'
21609
21610 case $host_os in
21611 aix*)
21612 # All AIX code is PIC.
21613 if test "$host_cpu" = ia64; then
21614 # AIX 5 now supports IA64 processor
21615 lt_prog_compiler_static_CXX='-Bstatic'
21616 fi
21617 lt_prog_compiler_pic_CXX='-fPIC'
21618 ;;
21619
21620 amigaos*)
21621 case $host_cpu in
21622 powerpc)
21623 # see comment about AmigaOS4 .so support
21624 lt_prog_compiler_pic_CXX='-fPIC'
21625 ;;
21626 m68k)
21627 # FIXME: we need at least 68020 code to build shared libraries, but
21628 # adding the `-m68020' flag to GCC prevents building anything better,
21629 # like `-m68040'.
21630 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21631 ;;
21632 esac
21633 ;;
21634
21635 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21636 # PIC is the default for these OSes.
21637 ;;
21638 mingw* | cygwin* | os2* | pw32* | cegcc*)
21639 # This hack is so that the source file can tell whether it is being
21640 # built for inclusion in a dll (and should export symbols for example).
21641 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21642 # (--disable-auto-import) libraries
21643 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21644 ;;
21645 darwin* | rhapsody*)
21646 # PIC is the default on this platform
21647 # Common symbols not allowed in MH_DYLIB files
21648 lt_prog_compiler_pic_CXX='-fno-common'
21649 ;;
21650 *djgpp*)
21651 # DJGPP does not support shared libraries at all
21652 lt_prog_compiler_pic_CXX=
21653 ;;
21654 haiku*)
21655 # PIC is the default for Haiku.
21656 # The "-static" flag exists, but is broken.
21657 lt_prog_compiler_static_CXX=
21658 ;;
21659 interix[3-9]*)
21660 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21661 # Instead, we relocate shared libraries at runtime.
21662 ;;
21663 sysv4*MP*)
21664 if test -d /usr/nec; then
21665 lt_prog_compiler_pic_CXX=-Kconform_pic
21666 fi
21667 ;;
21668 hpux*)
21669 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21670 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21671 # sets the default TLS model and affects inlining.
21672 case $host_cpu in
21673 hppa*64*)
21674 ;;
21675 *)
21676 lt_prog_compiler_pic_CXX='-fPIC'
21677 ;;
21678 esac
21679 ;;
21680 *qnx* | *nto*)
21681 # QNX uses GNU C++, but need to define -shared option too, otherwise
21682 # it will coredump.
21683 lt_prog_compiler_pic_CXX='-fPIC -shared'
21684 ;;
21685 *)
21686 lt_prog_compiler_pic_CXX='-fPIC'
21687 ;;
21688 esac
21689 else
21690 case $host_os in
21691 aix[4-9]*)
21692 # All AIX code is PIC.
21693 if test "$host_cpu" = ia64; then
21694 # AIX 5 now supports IA64 processor
21695 lt_prog_compiler_static_CXX='-Bstatic'
21696 else
21697 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21698 fi
21699 ;;
21700 chorus*)
21701 case $cc_basename in
21702 cxch68*)
21703 # Green Hills C++ Compiler
21704 # _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"
21705 ;;
21706 esac
21707 ;;
21708 dgux*)
21709 case $cc_basename in
21710 ec++*)
21711 lt_prog_compiler_pic_CXX='-KPIC'
21712 ;;
21713 ghcx*)
21714 # Green Hills C++ Compiler
21715 lt_prog_compiler_pic_CXX='-pic'
21716 ;;
21717 *)
21718 ;;
21719 esac
21720 ;;
21721 freebsd* | dragonfly*)
21722 # FreeBSD uses GNU C++
21723 ;;
21724 hpux9* | hpux10* | hpux11*)
21725 case $cc_basename in
21726 CC*)
21727 lt_prog_compiler_wl_CXX='-Wl,'
21728 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21729 if test "$host_cpu" != ia64; then
21730 lt_prog_compiler_pic_CXX='+Z'
21731 fi
21732 ;;
21733 aCC*)
21734 lt_prog_compiler_wl_CXX='-Wl,'
21735 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21736 case $host_cpu in
21737 hppa*64*|ia64*)
21738 # +Z the default
21739 ;;
21740 *)
21741 lt_prog_compiler_pic_CXX='+Z'
21742 ;;
21743 esac
21744 ;;
21745 *)
21746 ;;
21747 esac
21748 ;;
21749 interix*)
21750 # This is c89, which is MS Visual C++ (no shared libs)
21751 # Anyone wants to do a port?
21752 ;;
21753 irix5* | irix6* | nonstopux*)
21754 case $cc_basename in
21755 CC*)
21756 lt_prog_compiler_wl_CXX='-Wl,'
21757 lt_prog_compiler_static_CXX='-non_shared'
21758 # CC pic flag -KPIC is the default.
21759 ;;
21760 *)
21761 ;;
21762 esac
21763 ;;
21764 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21765 case $cc_basename in
21766 KCC*)
21767 # KAI C++ Compiler
21768 lt_prog_compiler_wl_CXX='--backend -Wl,'
21769 lt_prog_compiler_pic_CXX='-fPIC'
21770 ;;
21771 ecpc* )
21772 # old Intel C++ for x86_64 which still supported -KPIC.
21773 lt_prog_compiler_wl_CXX='-Wl,'
21774 lt_prog_compiler_pic_CXX='-KPIC'
21775 lt_prog_compiler_static_CXX='-static'
21776 ;;
21777 icpc* )
21778 # Intel C++, used to be incompatible with GCC.
21779 # ICC 10 doesn't accept -KPIC any more.
21780 lt_prog_compiler_wl_CXX='-Wl,'
21781 lt_prog_compiler_pic_CXX='-fPIC'
21782 lt_prog_compiler_static_CXX='-static'
21783 ;;
21784 pgCC* | pgcpp*)
21785 # Portland Group C++ compiler
21786 lt_prog_compiler_wl_CXX='-Wl,'
21787 lt_prog_compiler_pic_CXX='-fpic'
21788 lt_prog_compiler_static_CXX='-Bstatic'
21789 ;;
21790 cxx*)
21791 # Compaq C++
21792 # Make sure the PIC flag is empty. It appears that all Alpha
21793 # Linux and Compaq Tru64 Unix objects are PIC.
21794 lt_prog_compiler_pic_CXX=
21795 lt_prog_compiler_static_CXX='-non_shared'
21796 ;;
21797 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21798 # IBM XL 8.0, 9.0 on PPC and BlueGene
21799 lt_prog_compiler_wl_CXX='-Wl,'
21800 lt_prog_compiler_pic_CXX='-qpic'
21801 lt_prog_compiler_static_CXX='-qstaticlink'
21802 ;;
21803 *)
21804 case `$CC -V 2>&1 | sed 5q` in
21805 *Sun\ C*)
21806 # Sun C++ 5.9
21807 lt_prog_compiler_pic_CXX='-KPIC'
21808 lt_prog_compiler_static_CXX='-Bstatic'
21809 lt_prog_compiler_wl_CXX='-Qoption ld '
21810 ;;
21811 esac
21812 ;;
21813 esac
21814 ;;
21815 lynxos*)
21816 ;;
21817 m88k*)
21818 ;;
21819 mvs*)
21820 case $cc_basename in
21821 cxx*)
21822 lt_prog_compiler_pic_CXX='-W c,exportall'
21823 ;;
21824 *)
21825 ;;
21826 esac
21827 ;;
21828 netbsd*)
21829 ;;
21830 *qnx* | *nto*)
21831 # QNX uses GNU C++, but need to define -shared option too, otherwise
21832 # it will coredump.
21833 lt_prog_compiler_pic_CXX='-fPIC -shared'
21834 ;;
21835 osf3* | osf4* | osf5*)
21836 case $cc_basename in
21837 KCC*)
21838 lt_prog_compiler_wl_CXX='--backend -Wl,'
21839 ;;
21840 RCC*)
21841 # Rational C++ 2.4.1
21842 lt_prog_compiler_pic_CXX='-pic'
21843 ;;
21844 cxx*)
21845 # Digital/Compaq C++
21846 lt_prog_compiler_wl_CXX='-Wl,'
21847 # Make sure the PIC flag is empty. It appears that all Alpha
21848 # Linux and Compaq Tru64 Unix objects are PIC.
21849 lt_prog_compiler_pic_CXX=
21850 lt_prog_compiler_static_CXX='-non_shared'
21851 ;;
21852 *)
21853 ;;
21854 esac
21855 ;;
21856 psos*)
21857 ;;
21858 solaris*)
21859 case $cc_basename in
21860 CC*)
21861 # Sun C++ 4.2, 5.x and Centerline C++
21862 lt_prog_compiler_pic_CXX='-KPIC'
21863 lt_prog_compiler_static_CXX='-Bstatic'
21864 lt_prog_compiler_wl_CXX='-Qoption ld '
21865 ;;
21866 gcx*)
21867 # Green Hills C++ Compiler
21868 lt_prog_compiler_pic_CXX='-PIC'
21869 ;;
21870 *)
21871 ;;
21872 esac
21873 ;;
21874 sunos4*)
21875 case $cc_basename in
21876 CC*)
21877 # Sun C++ 4.x
21878 lt_prog_compiler_pic_CXX='-pic'
21879 lt_prog_compiler_static_CXX='-Bstatic'
21880 ;;
21881 lcc*)
21882 # Lucid
21883 lt_prog_compiler_pic_CXX='-pic'
21884 ;;
21885 *)
21886 ;;
21887 esac
21888 ;;
21889 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21890 case $cc_basename in
21891 CC*)
21892 lt_prog_compiler_wl_CXX='-Wl,'
21893 lt_prog_compiler_pic_CXX='-KPIC'
21894 lt_prog_compiler_static_CXX='-Bstatic'
21895 ;;
21896 esac
21897 ;;
21898 tandem*)
21899 case $cc_basename in
21900 NCC*)
21901 # NonStop-UX NCC 3.20
21902 lt_prog_compiler_pic_CXX='-KPIC'
21903 ;;
21904 *)
21905 ;;
21906 esac
21907 ;;
21908 vxworks*)
21909 ;;
21910 *)
21911 lt_prog_compiler_can_build_shared_CXX=no
21912 ;;
21913 esac
21914 fi
21915
21916 case $host_os in
21917 # For platforms which do not support PIC, -DPIC is meaningless:
21918 *djgpp*)
21919 lt_prog_compiler_pic_CXX=
21920 ;;
21921 *)
21922 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21923 ;;
21924 esac
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21926 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21927
21928
21929
21930 #
21931 # Check to make sure the PIC flag actually works.
21932 #
21933 if test -n "$lt_prog_compiler_pic_CXX"; then
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21935 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21936 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21937 $as_echo_n "(cached) " >&6
21938 else
21939 lt_cv_prog_compiler_pic_works_CXX=no
21940 ac_outfile=conftest.$ac_objext
21941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21942 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21943 # Insert the option either (1) after the last *FLAGS variable, or
21944 # (2) before a word containing "conftest.", or (3) at the end.
21945 # Note that $ac_compile itself does not contain backslashes and begins
21946 # with a dollar sign (not a hyphen), so the echo should work correctly.
21947 # The option is referenced via a variable to avoid confusing sed.
21948 lt_compile=`echo "$ac_compile" | $SED \
21949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21951 -e 's:$: $lt_compiler_flag:'`
21952 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21953 (eval "$lt_compile" 2>conftest.err)
21954 ac_status=$?
21955 cat conftest.err >&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 if (exit $ac_status) && test -s "$ac_outfile"; then
21958 # The compiler can only warn and ignore the option if not recognized
21959 # So say no if there are warnings other than the usual output.
21960 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21962 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21963 lt_cv_prog_compiler_pic_works_CXX=yes
21964 fi
21965 fi
21966 $RM conftest*
21967
21968 fi
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21970 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21971
21972 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21973 case $lt_prog_compiler_pic_CXX in
21974 "" | " "*) ;;
21975 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21976 esac
21977 else
21978 lt_prog_compiler_pic_CXX=
21979 lt_prog_compiler_can_build_shared_CXX=no
21980 fi
21981
21982 fi
21983
21984
21985
21986 #
21987 # Check to make sure the static flag actually works.
21988 #
21989 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21991 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21992 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21993 $as_echo_n "(cached) " >&6
21994 else
21995 lt_cv_prog_compiler_static_works_CXX=no
21996 save_LDFLAGS="$LDFLAGS"
21997 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21998 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21999 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22000 # The linker can only warn and ignore the option if not recognized
22001 # So say no if there are warnings
22002 if test -s conftest.err; then
22003 # Append any errors to the config.log.
22004 cat conftest.err 1>&5
22005 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22007 if diff conftest.exp conftest.er2 >/dev/null; then
22008 lt_cv_prog_compiler_static_works_CXX=yes
22009 fi
22010 else
22011 lt_cv_prog_compiler_static_works_CXX=yes
22012 fi
22013 fi
22014 $RM -r conftest*
22015 LDFLAGS="$save_LDFLAGS"
22016
22017 fi
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22019 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22020
22021 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
22022 :
22023 else
22024 lt_prog_compiler_static_CXX=
22025 fi
22026
22027
22028
22029
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22031 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22032 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22033 $as_echo_n "(cached) " >&6
22034 else
22035 lt_cv_prog_compiler_c_o_CXX=no
22036 $RM -r conftest 2>/dev/null
22037 mkdir conftest
22038 cd conftest
22039 mkdir out
22040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22041
22042 lt_compiler_flag="-o out/conftest2.$ac_objext"
22043 # Insert the option either (1) after the last *FLAGS variable, or
22044 # (2) before a word containing "conftest.", or (3) at the end.
22045 # Note that $ac_compile itself does not contain backslashes and begins
22046 # with a dollar sign (not a hyphen), so the echo should work correctly.
22047 lt_compile=`echo "$ac_compile" | $SED \
22048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22050 -e 's:$: $lt_compiler_flag:'`
22051 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22052 (eval "$lt_compile" 2>out/conftest.err)
22053 ac_status=$?
22054 cat out/conftest.err >&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22057 then
22058 # The compiler can only warn and ignore the option if not recognized
22059 # So say no if there are warnings
22060 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22061 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22062 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22063 lt_cv_prog_compiler_c_o_CXX=yes
22064 fi
22065 fi
22066 chmod u+w . 2>&5
22067 $RM conftest*
22068 # SGI C++ compiler will create directory out/ii_files/ for
22069 # template instantiation
22070 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22071 $RM out/* && rmdir out
22072 cd ..
22073 $RM -r conftest
22074 $RM conftest*
22075
22076 fi
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22078 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22079
22080
22081
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22083 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22084 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22085 $as_echo_n "(cached) " >&6
22086 else
22087 lt_cv_prog_compiler_c_o_CXX=no
22088 $RM -r conftest 2>/dev/null
22089 mkdir conftest
22090 cd conftest
22091 mkdir out
22092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22093
22094 lt_compiler_flag="-o out/conftest2.$ac_objext"
22095 # Insert the option either (1) after the last *FLAGS variable, or
22096 # (2) before a word containing "conftest.", or (3) at the end.
22097 # Note that $ac_compile itself does not contain backslashes and begins
22098 # with a dollar sign (not a hyphen), so the echo should work correctly.
22099 lt_compile=`echo "$ac_compile" | $SED \
22100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22102 -e 's:$: $lt_compiler_flag:'`
22103 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22104 (eval "$lt_compile" 2>out/conftest.err)
22105 ac_status=$?
22106 cat out/conftest.err >&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22109 then
22110 # The compiler can only warn and ignore the option if not recognized
22111 # So say no if there are warnings
22112 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22113 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22114 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22115 lt_cv_prog_compiler_c_o_CXX=yes
22116 fi
22117 fi
22118 chmod u+w . 2>&5
22119 $RM conftest*
22120 # SGI C++ compiler will create directory out/ii_files/ for
22121 # template instantiation
22122 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22123 $RM out/* && rmdir out
22124 cd ..
22125 $RM -r conftest
22126 $RM conftest*
22127
22128 fi
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22130 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22131
22132
22133
22134
22135 hard_links="nottested"
22136 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22137 # do not overwrite the value of need_locks provided by the user
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22139 $as_echo_n "checking if we can lock with hard links... " >&6; }
22140 hard_links=yes
22141 $RM conftest*
22142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22143 touch conftest.a
22144 ln conftest.a conftest.b 2>&5 || hard_links=no
22145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22147 $as_echo "$hard_links" >&6; }
22148 if test "$hard_links" = no; then
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22150 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22151 need_locks=warn
22152 fi
22153 else
22154 need_locks=no
22155 fi
22156
22157
22158
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22160 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22161
22162 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22163 case $host_os in
22164 aix[4-9]*)
22165 # If we're using GNU nm, then we don't want the "-C" option.
22166 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22167 # Also, AIX nm treats weak defined symbols like other global defined
22168 # symbols, whereas GNU nm marks them as "W".
22169 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22170 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'
22171 else
22172 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'
22173 fi
22174 ;;
22175 pw32*)
22176 export_symbols_cmds_CXX="$ltdll_cmds"
22177 ;;
22178 cygwin* | mingw* | cegcc*)
22179 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'
22180 ;;
22181 *)
22182 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22183 ;;
22184 esac
22185 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22186
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22188 $as_echo "$ld_shlibs_CXX" >&6; }
22189 test "$ld_shlibs_CXX" = no && can_build_shared=no
22190
22191 with_gnu_ld_CXX=$with_gnu_ld
22192
22193
22194
22195
22196
22197
22198 #
22199 # Do we need to explicitly link libc?
22200 #
22201 case "x$archive_cmds_need_lc_CXX" in
22202 x|xyes)
22203 # Assume -lc should be added
22204 archive_cmds_need_lc_CXX=yes
22205
22206 if test "$enable_shared" = yes && test "$GCC" = yes; then
22207 case $archive_cmds_CXX in
22208 *'~'*)
22209 # FIXME: we may have to deal with multi-command sequences.
22210 ;;
22211 '$CC '*)
22212 # Test whether the compiler implicitly links with -lc since on some
22213 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22214 # to ld, don't add -lc before -lgcc.
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22216 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22217 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22218 $as_echo_n "(cached) " >&6
22219 else
22220 $RM conftest*
22221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22222
22223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22224 (eval $ac_compile) 2>&5
22225 ac_status=$?
22226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22227 test $ac_status = 0; } 2>conftest.err; then
22228 soname=conftest
22229 lib=conftest
22230 libobjs=conftest.$ac_objext
22231 deplibs=
22232 wl=$lt_prog_compiler_wl_CXX
22233 pic_flag=$lt_prog_compiler_pic_CXX
22234 compiler_flags=-v
22235 linker_flags=-v
22236 verstring=
22237 output_objdir=.
22238 libname=conftest
22239 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22240 allow_undefined_flag_CXX=
22241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22242 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22243 ac_status=$?
22244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22245 test $ac_status = 0; }
22246 then
22247 lt_cv_archive_cmds_need_lc_CXX=no
22248 else
22249 lt_cv_archive_cmds_need_lc_CXX=yes
22250 fi
22251 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22252 else
22253 cat conftest.err 1>&5
22254 fi
22255 $RM conftest*
22256
22257 fi
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22259 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22260 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22261 ;;
22262 esac
22263 fi
22264 ;;
22265 esac
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
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
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22331 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22332
22333 library_names_spec=
22334 libname_spec='lib$name'
22335 soname_spec=
22336 shrext_cmds=".so"
22337 postinstall_cmds=
22338 postuninstall_cmds=
22339 finish_cmds=
22340 finish_eval=
22341 shlibpath_var=
22342 shlibpath_overrides_runpath=unknown
22343 version_type=none
22344 dynamic_linker="$host_os ld.so"
22345 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22346 need_lib_prefix=unknown
22347 hardcode_into_libs=no
22348
22349 # when you set need_version to no, make sure it does not cause -set_version
22350 # flags to be left without arguments
22351 need_version=unknown
22352
22353 case $host_os in
22354 aix3*)
22355 version_type=linux
22356 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22357 shlibpath_var=LIBPATH
22358
22359 # AIX 3 has no versioning support, so we append a major version to the name.
22360 soname_spec='${libname}${release}${shared_ext}$major'
22361 ;;
22362
22363 aix[4-9]*)
22364 version_type=linux
22365 need_lib_prefix=no
22366 need_version=no
22367 hardcode_into_libs=yes
22368 if test "$host_cpu" = ia64; then
22369 # AIX 5 supports IA64
22370 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22371 shlibpath_var=LD_LIBRARY_PATH
22372 else
22373 # With GCC up to 2.95.x, collect2 would create an import file
22374 # for dependence libraries. The import file would start with
22375 # the line `#! .'. This would cause the generated library to
22376 # depend on `.', always an invalid library. This was fixed in
22377 # development snapshots of GCC prior to 3.0.
22378 case $host_os in
22379 aix4 | aix4.[01] | aix4.[01].*)
22380 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22381 echo ' yes '
22382 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22383 :
22384 else
22385 can_build_shared=no
22386 fi
22387 ;;
22388 esac
22389 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22390 # soname into executable. Probably we can add versioning support to
22391 # collect2, so additional links can be useful in future.
22392 if test "$aix_use_runtimelinking" = yes; then
22393 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22394 # instead of lib<name>.a to let people know that these are not
22395 # typical AIX shared libraries.
22396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22397 else
22398 # We preserve .a as extension for shared libraries through AIX4.2
22399 # and later when we are not doing run time linking.
22400 library_names_spec='${libname}${release}.a $libname.a'
22401 soname_spec='${libname}${release}${shared_ext}$major'
22402 fi
22403 shlibpath_var=LIBPATH
22404 fi
22405 ;;
22406
22407 amigaos*)
22408 case $host_cpu in
22409 powerpc)
22410 # Since July 2007 AmigaOS4 officially supports .so libraries.
22411 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22413 ;;
22414 m68k)
22415 library_names_spec='$libname.ixlibrary $libname.a'
22416 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22417 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'
22418 ;;
22419 esac
22420 ;;
22421
22422 beos*)
22423 library_names_spec='${libname}${shared_ext}'
22424 dynamic_linker="$host_os ld.so"
22425 shlibpath_var=LIBRARY_PATH
22426 ;;
22427
22428 bsdi[45]*)
22429 version_type=linux
22430 need_version=no
22431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22432 soname_spec='${libname}${release}${shared_ext}$major'
22433 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22434 shlibpath_var=LD_LIBRARY_PATH
22435 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22436 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22437 # the default ld.so.conf also contains /usr/contrib/lib and
22438 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22439 # libtool to hard-code these into programs
22440 ;;
22441
22442 cygwin* | mingw* | pw32* | cegcc*)
22443 version_type=windows
22444 shrext_cmds=".dll"
22445 need_version=no
22446 need_lib_prefix=no
22447
22448 case $GCC,$host_os in
22449 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22450 library_names_spec='$libname.dll.a'
22451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22452 postinstall_cmds='base_file=`basename \${file}`~
22453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22454 dldir=$destdir/`dirname \$dlpath`~
22455 test -d \$dldir || mkdir -p \$dldir~
22456 $install_prog $dir/$dlname \$dldir/$dlname~
22457 chmod a+x \$dldir/$dlname~
22458 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22459 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22460 fi'
22461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22462 dlpath=$dir/\$dldll~
22463 $RM \$dlpath'
22464 shlibpath_overrides_runpath=yes
22465
22466 case $host_os in
22467 cygwin*)
22468 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22469 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22470
22471 ;;
22472 mingw* | cegcc*)
22473 # MinGW DLLs use traditional 'lib' prefix
22474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22475 ;;
22476 pw32*)
22477 # pw32 DLLs use 'pw' prefix rather than 'lib'
22478 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22479 ;;
22480 esac
22481 ;;
22482
22483 *)
22484 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22485 ;;
22486 esac
22487 dynamic_linker='Win32 ld.exe'
22488 # FIXME: first we should search . and the directory the executable is in
22489 shlibpath_var=PATH
22490 ;;
22491
22492 darwin* | rhapsody*)
22493 dynamic_linker="$host_os dyld"
22494 version_type=darwin
22495 need_lib_prefix=no
22496 need_version=no
22497 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22498 soname_spec='${libname}${release}${major}$shared_ext'
22499 shlibpath_overrides_runpath=yes
22500 shlibpath_var=DYLD_LIBRARY_PATH
22501 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22502
22503 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22504 ;;
22505
22506 dgux*)
22507 version_type=linux
22508 need_lib_prefix=no
22509 need_version=no
22510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22511 soname_spec='${libname}${release}${shared_ext}$major'
22512 shlibpath_var=LD_LIBRARY_PATH
22513 ;;
22514
22515 freebsd* | dragonfly*)
22516 # DragonFly does not have aout. When/if they implement a new
22517 # versioning mechanism, adjust this.
22518 if test -x /usr/bin/objformat; then
22519 objformat=`/usr/bin/objformat`
22520 else
22521 case $host_os in
22522 freebsd[23].*) objformat=aout ;;
22523 *) objformat=elf ;;
22524 esac
22525 fi
22526 version_type=freebsd-$objformat
22527 case $version_type in
22528 freebsd-elf*)
22529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22530 need_version=no
22531 need_lib_prefix=no
22532 ;;
22533 freebsd-*)
22534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22535 need_version=yes
22536 ;;
22537 esac
22538 shlibpath_var=LD_LIBRARY_PATH
22539 case $host_os in
22540 freebsd2.*)
22541 shlibpath_overrides_runpath=yes
22542 ;;
22543 freebsd3.[01]* | freebsdelf3.[01]*)
22544 shlibpath_overrides_runpath=yes
22545 hardcode_into_libs=yes
22546 ;;
22547 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22548 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22549 shlibpath_overrides_runpath=no
22550 hardcode_into_libs=yes
22551 ;;
22552 *) # from 4.6 on, and DragonFly
22553 shlibpath_overrides_runpath=yes
22554 hardcode_into_libs=yes
22555 ;;
22556 esac
22557 ;;
22558
22559 haiku*)
22560 version_type=linux
22561 need_lib_prefix=no
22562 need_version=no
22563 dynamic_linker="$host_os runtime_loader"
22564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22565 soname_spec='${libname}${release}${shared_ext}$major'
22566 shlibpath_var=LIBRARY_PATH
22567 shlibpath_overrides_runpath=yes
22568 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22569 hardcode_into_libs=yes
22570 ;;
22571
22572 hpux9* | hpux10* | hpux11*)
22573 # Give a soname corresponding to the major version so that dld.sl refuses to
22574 # link against other versions.
22575 version_type=sunos
22576 need_lib_prefix=no
22577 need_version=no
22578 case $host_cpu in
22579 ia64*)
22580 shrext_cmds='.so'
22581 hardcode_into_libs=yes
22582 dynamic_linker="$host_os dld.so"
22583 shlibpath_var=LD_LIBRARY_PATH
22584 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22586 soname_spec='${libname}${release}${shared_ext}$major'
22587 if test "X$HPUX_IA64_MODE" = X32; then
22588 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22589 else
22590 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22591 fi
22592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22593 ;;
22594 hppa*64*)
22595 shrext_cmds='.sl'
22596 hardcode_into_libs=yes
22597 dynamic_linker="$host_os dld.sl"
22598 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22601 soname_spec='${libname}${release}${shared_ext}$major'
22602 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22604 ;;
22605 *)
22606 shrext_cmds='.sl'
22607 dynamic_linker="$host_os dld.sl"
22608 shlibpath_var=SHLIB_PATH
22609 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22611 soname_spec='${libname}${release}${shared_ext}$major'
22612 ;;
22613 esac
22614 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22615 postinstall_cmds='chmod 555 $lib'
22616 # or fails outright, so override atomically:
22617 install_override_mode=555
22618 ;;
22619
22620 interix[3-9]*)
22621 version_type=linux
22622 need_lib_prefix=no
22623 need_version=no
22624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22625 soname_spec='${libname}${release}${shared_ext}$major'
22626 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22627 shlibpath_var=LD_LIBRARY_PATH
22628 shlibpath_overrides_runpath=no
22629 hardcode_into_libs=yes
22630 ;;
22631
22632 irix5* | irix6* | nonstopux*)
22633 case $host_os in
22634 nonstopux*) version_type=nonstopux ;;
22635 *)
22636 if test "$lt_cv_prog_gnu_ld" = yes; then
22637 version_type=linux
22638 else
22639 version_type=irix
22640 fi ;;
22641 esac
22642 need_lib_prefix=no
22643 need_version=no
22644 soname_spec='${libname}${release}${shared_ext}$major'
22645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22646 case $host_os in
22647 irix5* | nonstopux*)
22648 libsuff= shlibsuff=
22649 ;;
22650 *)
22651 case $LD in # libtool.m4 will add one of these switches to LD
22652 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22653 libsuff= shlibsuff= libmagic=32-bit;;
22654 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22655 libsuff=32 shlibsuff=N32 libmagic=N32;;
22656 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22657 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22658 *) libsuff= shlibsuff= libmagic=never-match;;
22659 esac
22660 ;;
22661 esac
22662 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22663 shlibpath_overrides_runpath=no
22664 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22665 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22666 hardcode_into_libs=yes
22667 ;;
22668
22669 # No shared lib support for Linux oldld, aout, or coff.
22670 linux*oldld* | linux*aout* | linux*coff*)
22671 dynamic_linker=no
22672 ;;
22673
22674 # This must be Linux ELF.
22675
22676 # uclinux* changes (here and below) have been submitted to the libtool
22677 # project, but have not yet been accepted: they are GCC-local changes
22678 # for the time being. (See
22679 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22680 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22681 version_type=linux
22682 need_lib_prefix=no
22683 need_version=no
22684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22685 soname_spec='${libname}${release}${shared_ext}$major'
22686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22687 shlibpath_var=LD_LIBRARY_PATH
22688 shlibpath_overrides_runpath=no
22689
22690 # Some binutils ld are patched to set DT_RUNPATH
22691 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22692 $as_echo_n "(cached) " >&6
22693 else
22694 lt_cv_shlibpath_overrides_runpath=no
22695 save_LDFLAGS=$LDFLAGS
22696 save_libdir=$libdir
22697 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22698 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22700 /* end confdefs.h. */
22701
22702 int
22703 main ()
22704 {
22705
22706 ;
22707 return 0;
22708 }
22709 _ACEOF
22710 if ac_fn_cxx_try_link "$LINENO"; then :
22711 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22712 lt_cv_shlibpath_overrides_runpath=yes
22713 fi
22714 fi
22715 rm -f core conftest.err conftest.$ac_objext \
22716 conftest$ac_exeext conftest.$ac_ext
22717 LDFLAGS=$save_LDFLAGS
22718 libdir=$save_libdir
22719
22720 fi
22721
22722 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22723
22724 # This implies no fast_install, which is unacceptable.
22725 # Some rework will be needed to allow for fast_install
22726 # before this can be enabled.
22727 hardcode_into_libs=yes
22728
22729 # Append ld.so.conf contents to the search path
22730 if test -f /etc/ld.so.conf; then
22731 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' ' '`
22732 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22733 fi
22734
22735 # We used to test for /lib/ld.so.1 and disable shared libraries on
22736 # powerpc, because MkLinux only supported shared libraries with the
22737 # GNU dynamic linker. Since this was broken with cross compilers,
22738 # most powerpc-linux boxes support dynamic linking these days and
22739 # people can always --disable-shared, the test was removed, and we
22740 # assume the GNU/Linux dynamic linker is in use.
22741 dynamic_linker='GNU/Linux ld.so'
22742 ;;
22743
22744 netbsd*)
22745 version_type=sunos
22746 need_lib_prefix=no
22747 need_version=no
22748 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22751 dynamic_linker='NetBSD (a.out) ld.so'
22752 else
22753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22754 soname_spec='${libname}${release}${shared_ext}$major'
22755 dynamic_linker='NetBSD ld.elf_so'
22756 fi
22757 shlibpath_var=LD_LIBRARY_PATH
22758 shlibpath_overrides_runpath=yes
22759 hardcode_into_libs=yes
22760 ;;
22761
22762 newsos6)
22763 version_type=linux
22764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22765 shlibpath_var=LD_LIBRARY_PATH
22766 shlibpath_overrides_runpath=yes
22767 ;;
22768
22769 *nto* | *qnx*)
22770 version_type=qnx
22771 need_lib_prefix=no
22772 need_version=no
22773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22774 soname_spec='${libname}${release}${shared_ext}$major'
22775 shlibpath_var=LD_LIBRARY_PATH
22776 shlibpath_overrides_runpath=no
22777 hardcode_into_libs=yes
22778 dynamic_linker='ldqnx.so'
22779 ;;
22780
22781 openbsd*)
22782 version_type=sunos
22783 sys_lib_dlsearch_path_spec="/usr/lib"
22784 need_lib_prefix=no
22785 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22786 case $host_os in
22787 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22788 *) need_version=no ;;
22789 esac
22790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22792 shlibpath_var=LD_LIBRARY_PATH
22793 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22794 case $host_os in
22795 openbsd2.[89] | openbsd2.[89].*)
22796 shlibpath_overrides_runpath=no
22797 ;;
22798 *)
22799 shlibpath_overrides_runpath=yes
22800 ;;
22801 esac
22802 else
22803 shlibpath_overrides_runpath=yes
22804 fi
22805 ;;
22806
22807 os2*)
22808 libname_spec='$name'
22809 shrext_cmds=".dll"
22810 need_lib_prefix=no
22811 library_names_spec='$libname${shared_ext} $libname.a'
22812 dynamic_linker='OS/2 ld.exe'
22813 shlibpath_var=LIBPATH
22814 ;;
22815
22816 osf3* | osf4* | osf5*)
22817 version_type=osf
22818 need_lib_prefix=no
22819 need_version=no
22820 soname_spec='${libname}${release}${shared_ext}$major'
22821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22822 shlibpath_var=LD_LIBRARY_PATH
22823 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22824 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22825 ;;
22826
22827 rdos*)
22828 dynamic_linker=no
22829 ;;
22830
22831 solaris*)
22832 version_type=linux
22833 need_lib_prefix=no
22834 need_version=no
22835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22836 soname_spec='${libname}${release}${shared_ext}$major'
22837 shlibpath_var=LD_LIBRARY_PATH
22838 shlibpath_overrides_runpath=yes
22839 hardcode_into_libs=yes
22840 # ldd complains unless libraries are executable
22841 postinstall_cmds='chmod +x $lib'
22842 ;;
22843
22844 sunos4*)
22845 version_type=sunos
22846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22847 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22848 shlibpath_var=LD_LIBRARY_PATH
22849 shlibpath_overrides_runpath=yes
22850 if test "$with_gnu_ld" = yes; then
22851 need_lib_prefix=no
22852 fi
22853 need_version=yes
22854 ;;
22855
22856 sysv4 | sysv4.3*)
22857 version_type=linux
22858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22859 soname_spec='${libname}${release}${shared_ext}$major'
22860 shlibpath_var=LD_LIBRARY_PATH
22861 case $host_vendor in
22862 sni)
22863 shlibpath_overrides_runpath=no
22864 need_lib_prefix=no
22865 runpath_var=LD_RUN_PATH
22866 ;;
22867 siemens)
22868 need_lib_prefix=no
22869 ;;
22870 motorola)
22871 need_lib_prefix=no
22872 need_version=no
22873 shlibpath_overrides_runpath=no
22874 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22875 ;;
22876 esac
22877 ;;
22878
22879 sysv4*MP*)
22880 if test -d /usr/nec ;then
22881 version_type=linux
22882 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22883 soname_spec='$libname${shared_ext}.$major'
22884 shlibpath_var=LD_LIBRARY_PATH
22885 fi
22886 ;;
22887
22888 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22889 version_type=freebsd-elf
22890 need_lib_prefix=no
22891 need_version=no
22892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22893 soname_spec='${libname}${release}${shared_ext}$major'
22894 shlibpath_var=LD_LIBRARY_PATH
22895 shlibpath_overrides_runpath=yes
22896 hardcode_into_libs=yes
22897 if test "$with_gnu_ld" = yes; then
22898 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22899 else
22900 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22901 case $host_os in
22902 sco3.2v5*)
22903 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22904 ;;
22905 esac
22906 fi
22907 sys_lib_dlsearch_path_spec='/usr/lib'
22908 ;;
22909
22910 tpf*)
22911 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22912 version_type=linux
22913 need_lib_prefix=no
22914 need_version=no
22915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22916 shlibpath_var=LD_LIBRARY_PATH
22917 shlibpath_overrides_runpath=no
22918 hardcode_into_libs=yes
22919 ;;
22920
22921 uts4*)
22922 version_type=linux
22923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22924 soname_spec='${libname}${release}${shared_ext}$major'
22925 shlibpath_var=LD_LIBRARY_PATH
22926 ;;
22927
22928 # Shared libraries for VwWorks, >= 7 only at this stage
22929 # and (fpic) still incompatible with "large" code models
22930 # in a few configurations. Only for RTP mode in any case,
22931 # and upon explicit request at configure time.
22932 vxworks7*)
22933 dynamic_linker=no
22934 case ${with_multisubdir}-${enable_shared} in
22935 *large*)
22936 ;;
22937 *mrtp*-yes)
22938 version_type=linux
22939 need_lib_prefix=no
22940 need_version=no
22941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22942 soname_spec='${libname}${release}${shared_ext}$major'
22943 dynamic_linker="$host_os module_loader"
22944 ;;
22945 esac
22946 ;;
22947 *)
22948 dynamic_linker=no
22949 ;;
22950 esac
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22952 $as_echo "$dynamic_linker" >&6; }
22953 test "$dynamic_linker" = no && can_build_shared=no
22954
22955 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22956 if test "$GCC" = yes; then
22957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22958 fi
22959
22960 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22961 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22962 fi
22963 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22964 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22965 fi
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001
23002
23003
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23005 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23006 hardcode_action_CXX=
23007 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23008 test -n "$runpath_var_CXX" ||
23009 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23010
23011 # We can hardcode non-existent directories.
23012 if test "$hardcode_direct_CXX" != no &&
23013 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23014 # have to relink, otherwise we might link with an installed library
23015 # when we should be linking with a yet-to-be-installed one
23016 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23017 test "$hardcode_minus_L_CXX" != no; then
23018 # Linking always hardcodes the temporary library directory.
23019 hardcode_action_CXX=relink
23020 else
23021 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23022 hardcode_action_CXX=immediate
23023 fi
23024 else
23025 # We cannot hardcode anything, or else we can only hardcode existing
23026 # directories.
23027 hardcode_action_CXX=unsupported
23028 fi
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23030 $as_echo "$hardcode_action_CXX" >&6; }
23031
23032 if test "$hardcode_action_CXX" = relink ||
23033 test "$inherit_rpath_CXX" = yes; then
23034 # Fast installation is not supported
23035 enable_fast_install=no
23036 elif test "$shlibpath_overrides_runpath" = yes ||
23037 test "$enable_shared" = no; then
23038 # Fast installation is not necessary
23039 enable_fast_install=needless
23040 fi
23041
23042
23043
23044
23045
23046
23047
23048 fi # test -n "$compiler"
23049
23050 CC=$lt_save_CC
23051 LDCXX=$LD
23052 LD=$lt_save_LD
23053 GCC=$lt_save_GCC
23054 with_gnu_ld=$lt_save_with_gnu_ld
23055 lt_cv_path_LDCXX=$lt_cv_path_LD
23056 lt_cv_path_LD=$lt_save_path_LD
23057 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23058 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23059 fi # test "$_lt_caught_CXX_error" != yes
23060
23061 ac_ext=cpp
23062 ac_cpp='$CXXCPP $CPPFLAGS'
23063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23066
23067
23068
23069
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082 # Only expand once:
23083
23084
23085
23086
23087
23088 # Identify the assembler which will work hand-in-glove with the newly
23089 # built GCC, so that we can examine its features. This is the assembler
23090 # which will be driven by the driver program.
23091 #
23092 # If build != host, and we aren't building gas in-tree, we identify a
23093 # build->target assembler and hope that it will have the same features
23094 # as the host->target assembler we'll be using.
23095 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23096
23097 if ${gcc_cv_as+:} false; then :
23098
23099 else
23100
23101 if test -x "$DEFAULT_ASSEMBLER"; then
23102 gcc_cv_as="$DEFAULT_ASSEMBLER"
23103 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23104 && test -f ../gas/Makefile \
23105 && test x$build = x$host; then
23106 gcc_cv_as=../gas/as-new$build_exeext
23107 elif test -x as$build_exeext; then
23108 # Build using assembler in the current directory.
23109 gcc_cv_as=./as$build_exeext
23110 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
23111 gcc_cv_as="$AS_FOR_TARGET"
23112 else
23113 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23114 set dummy $AS_FOR_TARGET; ac_word=$2
23115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23116 $as_echo_n "checking for $ac_word... " >&6; }
23117 if ${ac_cv_path_gcc_cv_as+:} false; then :
23118 $as_echo_n "(cached) " >&6
23119 else
23120 case $gcc_cv_as in
23121 [\\/]* | ?:[\\/]*)
23122 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
23123 ;;
23124 *)
23125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23126 for as_dir in $PATH
23127 do
23128 IFS=$as_save_IFS
23129 test -z "$as_dir" && as_dir=.
23130 for ac_exec_ext in '' $ac_executable_extensions; do
23131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23132 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
23133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23134 break 2
23135 fi
23136 done
23137 done
23138 IFS=$as_save_IFS
23139
23140 ;;
23141 esac
23142 fi
23143 gcc_cv_as=$ac_cv_path_gcc_cv_as
23144 if test -n "$gcc_cv_as"; then
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23146 $as_echo "$gcc_cv_as" >&6; }
23147 else
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23149 $as_echo "no" >&6; }
23150 fi
23151
23152
23153 fi
23154 fi
23155
23156 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
23157
23158 case "$ORIGINAL_AS_FOR_TARGET" in
23159 ./as | ./as$build_exeext) ;;
23160 *) ac_config_files="$ac_config_files as:exec-tool.in"
23161 ;;
23162 esac
23163
23164 default_ld=
23165 # Check whether --enable-ld was given.
23166 if test "${enable_ld+set}" = set; then :
23167 enableval=$enable_ld; case "${enableval}" in
23168 no)
23169 default_ld=ld.gold
23170 ;;
23171 esac
23172 fi
23173
23174
23175 install_gold_as_default=no
23176 # Check whether --enable-gold was given.
23177 if test "${enable_gold+set}" = set; then :
23178 enableval=$enable_gold; case "${enableval}" in
23179 default)
23180 install_gold_as_default=yes
23181 ;;
23182 yes)
23183 if test x${default_ld} != x; then
23184 install_gold_as_default=yes
23185 fi
23186 ;;
23187 no)
23188 ;;
23189 *)
23190 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
23191 ;;
23192 esac
23193 fi
23194
23195
23196 # Identify the linker which will work hand-in-glove with the newly
23197 # built GCC, so that we can examine its features. This is the linker
23198 # which will be driven by the driver program.
23199 #
23200 # If build != host, and we aren't building gas in-tree, we identify a
23201 # build->target linker and hope that it will have the same features
23202 # as the host->target linker we'll be using.
23203 gcc_cv_gld_major_version=
23204 gcc_cv_gld_minor_version=
23205 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23206 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23207 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23208
23209 if ${gcc_cv_ld+:} false; then :
23210
23211 else
23212
23213 if test -x "$DEFAULT_LINKER"; then
23214 gcc_cv_ld="$DEFAULT_LINKER"
23215 elif test $install_gold_as_default = yes \
23216 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23217 && test -f ../gold/Makefile \
23218 && test x$build = x$host; then
23219 gcc_cv_ld=../gold/ld-new$build_exeext
23220 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23221 && test -f ../ld/Makefile \
23222 && test x$build = x$host; then
23223 gcc_cv_ld=../ld/ld-new$build_exeext
23224 elif test -x collect-ld$build_exeext; then
23225 # Build using linker in the current directory.
23226 gcc_cv_ld=./collect-ld$build_exeext
23227 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
23228 gcc_cv_ld="$LD_FOR_TARGET"
23229 else
23230 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23231 set dummy $LD_FOR_TARGET; ac_word=$2
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23233 $as_echo_n "checking for $ac_word... " >&6; }
23234 if ${ac_cv_path_gcc_cv_ld+:} false; then :
23235 $as_echo_n "(cached) " >&6
23236 else
23237 case $gcc_cv_ld in
23238 [\\/]* | ?:[\\/]*)
23239 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
23240 ;;
23241 *)
23242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23243 for as_dir in $PATH
23244 do
23245 IFS=$as_save_IFS
23246 test -z "$as_dir" && as_dir=.
23247 for ac_exec_ext in '' $ac_executable_extensions; do
23248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23249 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23251 break 2
23252 fi
23253 done
23254 done
23255 IFS=$as_save_IFS
23256
23257 ;;
23258 esac
23259 fi
23260 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23261 if test -n "$gcc_cv_ld"; then
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23263 $as_echo "$gcc_cv_ld" >&6; }
23264 else
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23266 $as_echo "no" >&6; }
23267 fi
23268
23269
23270 fi
23271 fi
23272
23273 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23274 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23275 # if the PLUGIN_LD is set ld-new, just have it as ld
23276 # as that is the installed named.
23277 if test x$PLUGIN_LD_SUFFIX = xld-new \
23278 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23279 PLUGIN_LD_SUFFIX=ld
23280 fi
23281
23282 # Check whether --with-plugin-ld was given.
23283 if test "${with_plugin_ld+set}" = set; then :
23284 withval=$with_plugin_ld; if test x"$withval" != x; then
23285 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23286 PLUGIN_LD_SUFFIX="$withval"
23287 fi
23288 fi
23289
23290
23291
23292 cat >>confdefs.h <<_ACEOF
23293 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23294 _ACEOF
23295
23296
23297 # Check to see if we are using gold instead of ld
23298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23299 $as_echo_n "checking whether we are using gold... " >&6; }
23300 ld_is_gold=no
23301 if test x$gcc_cv_ld != x; then
23302 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23303 | grep "GNU gold" > /dev/null; then
23304 ld_is_gold=yes
23305 fi
23306 fi
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23308 $as_echo "$ld_is_gold" >&6; }
23309
23310 # Check to see if we are using mold instead of ld
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23312 $as_echo_n "checking whether we are using mold... " >&6; }
23313 ld_is_mold=no
23314 if test x$gcc_cv_ld != x; then
23315 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23316 | grep "mold" > /dev/null; then
23317 ld_is_mold=yes
23318 fi
23319 fi
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23321 $as_echo "$ld_is_mold" >&6; }
23322
23323
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23325 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23326 # Check to see if default ld is not gold, but gold is
23327 # available and has support for split stack. If gcc was configured
23328 # with gold then no checking is done.
23329 #
23330 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23331
23332 # For platforms other than powerpc64*, enable as appropriate.
23333
23334 gold_non_default=no
23335 ld_gold=`which ${gcc_cv_ld}.gold`
23336 # Make sure this gold has minimal split stack support
23337 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23338 ld_vers=`$ld_gold --version | sed 1q`
23339 gold_vers=`echo $ld_vers | sed -n \
23340 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23341 case $target in
23342 # check that the gold version contains the complete split stack support
23343 # on powerpc64 big and little endian
23344 powerpc64*-*-*)
23345 case "$gold_vers" in
23346 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23347 ;;
23348 *) gold_non_default=no
23349 ;;
23350 esac
23351 ;;
23352 esac
23353 fi
23354 if test $gold_non_default = yes; then
23355
23356 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23357
23358 fi
23359 fi
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23361 $as_echo "$gold_non_default" >&6; }
23362
23363 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23364
23365 case "$ORIGINAL_LD_FOR_TARGET" in
23366 ./collect-ld | ./collect-ld$build_exeext) ;;
23367 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23368 ;;
23369 esac
23370
23371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23372 $as_echo_n "checking what linker to use... " >&6; }
23373 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23374 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23375 # Single tree build which includes ld. We want to prefer it
23376 # over whatever linker top-level may have detected, since
23377 # we'll use what we're building after installation anyway.
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23379 $as_echo "newly built ld" >&6; }
23380 in_tree_ld=yes
23381 in_tree_ld_is_elf=no
23382 if (grep 'EMUL = .*elf' ../ld/Makefile \
23383 || grep 'EMUL = .*linux' ../ld/Makefile \
23384 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23385 in_tree_ld_is_elf=yes
23386 elif test "$ld_is_gold" = yes; then
23387 in_tree_ld_is_elf=yes
23388 fi
23389 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
23390 do
23391 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23392 if test x$gcc_cv_gld_version != x; then
23393 break
23394 fi
23395 done
23396 case $gcc_cv_gld_version in
23397 VERSION=[0-9]*) ;;
23398 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23399 esac
23400 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23401 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23402 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23403 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23404 else
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23406 $as_echo "$gcc_cv_ld" >&6; }
23407 in_tree_ld=no
23408 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23409 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23410 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23411 fi
23412
23413
23414
23415
23416 # Figure out what nm we will be using.
23417 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23418 if ${gcc_cv_nm+:} false; then :
23419
23420 else
23421
23422 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23423 && test -f ../binutils/Makefile \
23424 && test x$build = x$host; then
23425 gcc_cv_nm=../binutils/nm-new$build_exeext
23426 elif test -x nm$build_exeext; then
23427 gcc_cv_nm=./nm$build_exeext
23428 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23429 gcc_cv_nm="$NM_FOR_TARGET"
23430 else
23431 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23432 set dummy $NM_FOR_TARGET; ac_word=$2
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23434 $as_echo_n "checking for $ac_word... " >&6; }
23435 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23436 $as_echo_n "(cached) " >&6
23437 else
23438 case $gcc_cv_nm in
23439 [\\/]* | ?:[\\/]*)
23440 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23441 ;;
23442 *)
23443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23444 for as_dir in $PATH
23445 do
23446 IFS=$as_save_IFS
23447 test -z "$as_dir" && as_dir=.
23448 for ac_exec_ext in '' $ac_executable_extensions; do
23449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23450 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23452 break 2
23453 fi
23454 done
23455 done
23456 IFS=$as_save_IFS
23457
23458 ;;
23459 esac
23460 fi
23461 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23462 if test -n "$gcc_cv_nm"; then
23463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23464 $as_echo "$gcc_cv_nm" >&6; }
23465 else
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23467 $as_echo "no" >&6; }
23468 fi
23469
23470
23471 fi
23472 fi
23473
23474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23475 $as_echo_n "checking what nm to use... " >&6; }
23476 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23477 # Single tree build which includes binutils.
23478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23479 $as_echo "newly built nm" >&6; }
23480 in_tree_nm=yes
23481 else
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23483 $as_echo "$gcc_cv_nm" >&6; }
23484 in_tree_nm=no
23485 fi
23486
23487 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23488
23489 case "$ORIGINAL_NM_FOR_TARGET" in
23490 ./nm | ./nm$build_exeext) ;;
23491 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23492 ;;
23493 esac
23494
23495
23496 # Figure out what objdump we will be using.
23497 if ${gcc_cv_objdump+:} false; then :
23498
23499 else
23500
23501 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23502 && test -f ../binutils/Makefile \
23503 && test x$build = x$host; then
23504 # Single tree build which includes binutils.
23505 gcc_cv_objdump=../binutils/objdump$build_exeext
23506 elif test -x objdump$build_exeext; then
23507 gcc_cv_objdump=./objdump$build_exeext
23508 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23509 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23510 else
23511 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23512 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23514 $as_echo_n "checking for $ac_word... " >&6; }
23515 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23516 $as_echo_n "(cached) " >&6
23517 else
23518 case $gcc_cv_objdump in
23519 [\\/]* | ?:[\\/]*)
23520 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23521 ;;
23522 *)
23523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23524 for as_dir in $PATH
23525 do
23526 IFS=$as_save_IFS
23527 test -z "$as_dir" && as_dir=.
23528 for ac_exec_ext in '' $ac_executable_extensions; do
23529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23530 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23532 break 2
23533 fi
23534 done
23535 done
23536 IFS=$as_save_IFS
23537
23538 ;;
23539 esac
23540 fi
23541 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23542 if test -n "$gcc_cv_objdump"; then
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23544 $as_echo "$gcc_cv_objdump" >&6; }
23545 else
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23547 $as_echo "no" >&6; }
23548 fi
23549
23550
23551 fi
23552 fi
23553
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23555 $as_echo_n "checking what objdump to use... " >&6; }
23556 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23557 # Single tree build which includes binutils.
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23559 $as_echo "newly built objdump" >&6; }
23560 elif test x$gcc_cv_objdump = x; then
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23562 $as_echo "not found" >&6; }
23563 else
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23565 $as_echo "$gcc_cv_objdump" >&6; }
23566 fi
23567
23568 # Figure out what readelf we will be using.
23569 if ${gcc_cv_readelf+:} false; then :
23570
23571 else
23572
23573 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23574 && test -f ../binutils/Makefile \
23575 && test x$build = x$host; then
23576 # Single tree build which includes binutils.
23577 gcc_cv_readelf=../binutils/readelf$build_exeext
23578 elif test -x readelf$build_exeext; then
23579 gcc_cv_readelf=./readelf$build_exeext
23580 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23581 gcc_cv_readelf="$READELF_FOR_TARGET"
23582 else
23583 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23584 set dummy $READELF_FOR_TARGET; ac_word=$2
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23586 $as_echo_n "checking for $ac_word... " >&6; }
23587 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23588 $as_echo_n "(cached) " >&6
23589 else
23590 case $gcc_cv_readelf in
23591 [\\/]* | ?:[\\/]*)
23592 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23593 ;;
23594 *)
23595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23596 for as_dir in $PATH
23597 do
23598 IFS=$as_save_IFS
23599 test -z "$as_dir" && as_dir=.
23600 for ac_exec_ext in '' $ac_executable_extensions; do
23601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23602 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23604 break 2
23605 fi
23606 done
23607 done
23608 IFS=$as_save_IFS
23609
23610 ;;
23611 esac
23612 fi
23613 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23614 if test -n "$gcc_cv_readelf"; then
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23616 $as_echo "$gcc_cv_readelf" >&6; }
23617 else
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23619 $as_echo "no" >&6; }
23620 fi
23621
23622
23623 fi
23624 fi
23625
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23627 $as_echo_n "checking what readelf to use... " >&6; }
23628 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23629 # Single tree build which includes binutils.
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23631 $as_echo "newly built readelf" >&6; }
23632 elif test x$gcc_cv_readelf = x; then
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23634 $as_echo "not found" >&6; }
23635 else
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23637 $as_echo "$gcc_cv_readelf" >&6; }
23638 fi
23639
23640 # Figure out what otool we will be using.
23641 if ${gcc_cv_otool+:} false; then :
23642
23643 else
23644
23645 if test -x otool$build_exeext; then
23646 gcc_cv_otool=./otool$build_exeext
23647 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23648 gcc_cv_otool="$OTOOL_FOR_TARGET"
23649 else
23650 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23651 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23653 $as_echo_n "checking for $ac_word... " >&6; }
23654 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23655 $as_echo_n "(cached) " >&6
23656 else
23657 case $gcc_cv_otool in
23658 [\\/]* | ?:[\\/]*)
23659 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23660 ;;
23661 *)
23662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23663 for as_dir in $PATH
23664 do
23665 IFS=$as_save_IFS
23666 test -z "$as_dir" && as_dir=.
23667 for ac_exec_ext in '' $ac_executable_extensions; do
23668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23669 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23671 break 2
23672 fi
23673 done
23674 done
23675 IFS=$as_save_IFS
23676
23677 ;;
23678 esac
23679 fi
23680 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23681 if test -n "$gcc_cv_otool"; then
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23683 $as_echo "$gcc_cv_otool" >&6; }
23684 else
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23686 $as_echo "no" >&6; }
23687 fi
23688
23689
23690 fi
23691 fi
23692
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23694 $as_echo_n "checking what otool to use... " >&6; }
23695 if test x$gcc_cv_otool = x; then
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23697 $as_echo "not found" >&6; }
23698 else
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23700 $as_echo "$gcc_cv_otool" >&6; }
23701 fi
23702
23703 # Figure out the dsymutil we will use.
23704 if ${gcc_cv_dsymutil+:} false; then :
23705
23706 else
23707
23708 if test -x "$DEFAULT_DSYMUTIL"; then
23709 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23710 elif test -x dsymutil$build_exeext; then
23711 gcc_cv_dsymutil=./dsymutil$build_exeext
23712 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23713 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23714 elif ( set dummy $DSYMUTIL; test -x $2 ); then
23715 gcc_cv_dsymutil=$DSYMUTIL
23716 else
23717 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23718 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23720 $as_echo_n "checking for $ac_word... " >&6; }
23721 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23722 $as_echo_n "(cached) " >&6
23723 else
23724 case $gcc_cv_dsymutil in
23725 [\\/]* | ?:[\\/]*)
23726 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23727 ;;
23728 *)
23729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23730 for as_dir in $PATH
23731 do
23732 IFS=$as_save_IFS
23733 test -z "$as_dir" && as_dir=.
23734 for ac_exec_ext in '' $ac_executable_extensions; do
23735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23736 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23738 break 2
23739 fi
23740 done
23741 done
23742 IFS=$as_save_IFS
23743
23744 ;;
23745 esac
23746 fi
23747 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23748 if test -n "$gcc_cv_dsymutil"; then
23749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23750 $as_echo "$gcc_cv_dsymutil" >&6; }
23751 else
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23753 $as_echo "no" >&6; }
23754 fi
23755
23756
23757 fi
23758 fi
23759
23760 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23761
23762 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23763 ./dsymutil | ./dsymutil$build_exeext) ;;
23764 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23765 ;;
23766 esac
23767
23768 # Figure out what assembler alignment features are present.
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23770 $as_echo_n "checking assembler flags... " >&6; }
23771 if ${gcc_cv_as_flags+:} false; then :
23772 $as_echo_n "(cached) " >&6
23773 else
23774 case "$target" in
23775 i[34567]86-*-linux*)
23776 gcc_cv_as_flags=--32
23777 ;;
23778 x86_64-*-linux-gnux32)
23779 gcc_cv_as_flags=--x32
23780 ;;
23781 x86_64-*-linux*)
23782 gcc_cv_as_flags=--64
23783 ;;
23784 powerpc*-*-darwin*)
23785 gcc_cv_as_flags="-arch ppc"
23786 ;;
23787 *)
23788 gcc_cv_as_flags=" "
23789 ;;
23790 esac
23791 fi
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23793 $as_echo "$gcc_cv_as_flags" >&6; }
23794
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23796 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23797 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23798 $as_echo_n "(cached) " >&6
23799 else
23800 gcc_cv_as_balign_and_p2align=no
23801 if test x$gcc_cv_as != x; then
23802 $as_echo '.balign 4
23803 .p2align 2' > conftest.s
23804 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23806 (eval $ac_try) 2>&5
23807 ac_status=$?
23808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23809 test $ac_status = 0; }; }
23810 then
23811 gcc_cv_as_balign_and_p2align=yes
23812 else
23813 echo "configure: failed program was" >&5
23814 cat conftest.s >&5
23815 fi
23816 rm -f conftest.o conftest.s
23817 fi
23818 fi
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23820 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23821 if test $gcc_cv_as_balign_and_p2align = yes; then
23822
23823 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23824
23825 fi
23826
23827
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23829 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23830 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23831 $as_echo_n "(cached) " >&6
23832 else
23833 gcc_cv_as_max_skip_p2align=no
23834 if test x$gcc_cv_as != x; then
23835 $as_echo '.p2align 4,,7' > conftest.s
23836 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23838 (eval $ac_try) 2>&5
23839 ac_status=$?
23840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23841 test $ac_status = 0; }; }
23842 then
23843 gcc_cv_as_max_skip_p2align=yes
23844 else
23845 echo "configure: failed program was" >&5
23846 cat conftest.s >&5
23847 fi
23848 rm -f conftest.o conftest.s
23849 fi
23850 fi
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23852 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23853 if test $gcc_cv_as_max_skip_p2align = yes; then
23854
23855 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23856
23857 fi
23858
23859
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23861 $as_echo_n "checking assembler for .literal16... " >&6; }
23862 if ${gcc_cv_as_literal16+:} false; then :
23863 $as_echo_n "(cached) " >&6
23864 else
23865 gcc_cv_as_literal16=no
23866 if test x$gcc_cv_as != x; then
23867 $as_echo '.literal16' > conftest.s
23868 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23870 (eval $ac_try) 2>&5
23871 ac_status=$?
23872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23873 test $ac_status = 0; }; }
23874 then
23875 gcc_cv_as_literal16=yes
23876 else
23877 echo "configure: failed program was" >&5
23878 cat conftest.s >&5
23879 fi
23880 rm -f conftest.o conftest.s
23881 fi
23882 fi
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23884 $as_echo "$gcc_cv_as_literal16" >&6; }
23885 if test $gcc_cv_as_literal16 = yes; then
23886
23887 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23888
23889 fi
23890
23891
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23893 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23894 if ${gcc_cv_as_subsection_m1+:} false; then :
23895 $as_echo_n "(cached) " >&6
23896 else
23897 gcc_cv_as_subsection_m1=no
23898 if test x$gcc_cv_as != x; then
23899 $as_echo 'conftest_label1: .word 0
23900 .subsection -1
23901 conftest_label2: .word 0
23902 .previous' > conftest.s
23903 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23905 (eval $ac_try) 2>&5
23906 ac_status=$?
23907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23908 test $ac_status = 0; }; }
23909 then
23910 if test x$gcc_cv_nm != x; then
23911 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23912 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23913 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23914 then :
23915 else gcc_cv_as_subsection_m1=yes
23916 fi
23917 rm -f conftest.nm1 conftest.nm2
23918 fi
23919 else
23920 echo "configure: failed program was" >&5
23921 cat conftest.s >&5
23922 fi
23923 rm -f conftest.o conftest.s
23924 fi
23925 fi
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23927 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23928 if test $gcc_cv_as_subsection_m1 = yes; then
23929
23930 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23931
23932 fi
23933
23934
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23936 $as_echo_n "checking assembler for .weak... " >&6; }
23937 if ${gcc_cv_as_weak+:} false; then :
23938 $as_echo_n "(cached) " >&6
23939 else
23940 gcc_cv_as_weak=no
23941 if test x$gcc_cv_as != x; then
23942 $as_echo ' .weak foobar' > conftest.s
23943 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23945 (eval $ac_try) 2>&5
23946 ac_status=$?
23947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23948 test $ac_status = 0; }; }
23949 then
23950 gcc_cv_as_weak=yes
23951 else
23952 echo "configure: failed program was" >&5
23953 cat conftest.s >&5
23954 fi
23955 rm -f conftest.o conftest.s
23956 fi
23957 fi
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23959 $as_echo "$gcc_cv_as_weak" >&6; }
23960 if test $gcc_cv_as_weak = yes; then
23961
23962 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23963
23964 fi
23965
23966
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23968 $as_echo_n "checking assembler for .weakref... " >&6; }
23969 if ${gcc_cv_as_weakref+:} false; then :
23970 $as_echo_n "(cached) " >&6
23971 else
23972 gcc_cv_as_weakref=no
23973 if test x$gcc_cv_as != x; then
23974 $as_echo ' .weakref foobar, barfnot' > conftest.s
23975 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23977 (eval $ac_try) 2>&5
23978 ac_status=$?
23979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23980 test $ac_status = 0; }; }
23981 then
23982 gcc_cv_as_weakref=yes
23983 else
23984 echo "configure: failed program was" >&5
23985 cat conftest.s >&5
23986 fi
23987 rm -f conftest.o conftest.s
23988 fi
23989 fi
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23991 $as_echo "$gcc_cv_as_weakref" >&6; }
23992 if test $gcc_cv_as_weakref = yes; then
23993
23994 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23995
23996 fi
23997
23998
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24000 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24001 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
24002 $as_echo_n "(cached) " >&6
24003 else
24004 gcc_cv_as_nsubspa_comdat=no
24005 if test x$gcc_cv_as != x; then
24006 $as_echo ' .SPACE $TEXT$
24007 .NSUBSPA $CODE$,COMDAT' > conftest.s
24008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24010 (eval $ac_try) 2>&5
24011 ac_status=$?
24012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24013 test $ac_status = 0; }; }
24014 then
24015 gcc_cv_as_nsubspa_comdat=yes
24016 else
24017 echo "configure: failed program was" >&5
24018 cat conftest.s >&5
24019 fi
24020 rm -f conftest.o conftest.s
24021 fi
24022 fi
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24024 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24025 if test $gcc_cv_as_nsubspa_comdat = yes; then
24026
24027 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24028
24029 fi
24030
24031
24032 # .hidden needs to be supported in both the assembler and the linker,
24033 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24034 # This is irritatingly difficult to feature test for; we have to check the
24035 # date string after the version number. If we've got an in-tree
24036 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24037 # to be safe.
24038 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24039 case "${target}" in
24040 *-*-aix*)
24041 conftest_s=' .globl foobar,hidden'
24042 ;;
24043 *)
24044 conftest_s=' .hidden foobar
24045 foobar:'
24046 ;;
24047 esac
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24049 $as_echo_n "checking assembler for .hidden... " >&6; }
24050 if ${gcc_cv_as_hidden+:} false; then :
24051 $as_echo_n "(cached) " >&6
24052 else
24053 gcc_cv_as_hidden=no
24054 if test x$gcc_cv_as != x; then
24055 $as_echo "$conftest_s" > conftest.s
24056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24058 (eval $ac_try) 2>&5
24059 ac_status=$?
24060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24061 test $ac_status = 0; }; }
24062 then
24063 gcc_cv_as_hidden=yes
24064 else
24065 echo "configure: failed program was" >&5
24066 cat conftest.s >&5
24067 fi
24068 rm -f conftest.o conftest.s
24069 fi
24070 fi
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24072 $as_echo "$gcc_cv_as_hidden" >&6; }
24073
24074
24075 case "${target}" in
24076 *-*-darwin*)
24077 # Darwin as has some visibility support, though with a different syntax.
24078 gcc_cv_as_hidden=yes
24079 ;;
24080 esac
24081
24082 # gnu_indirect_function type is an extension proposed at
24083 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24084 # selection of function implementation
24085 # Check whether --enable-gnu-indirect-function was given.
24086 if test "${enable_gnu_indirect_function+set}" = set; then :
24087 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24088 yes | no) ;;
24089 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24090 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24091 esac
24092 else
24093 enable_gnu_indirect_function="$default_gnu_indirect_function"
24094 fi
24095
24096
24097 case "${target}" in
24098 riscv*-*-linux*)
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24100 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24101 cat > conftest.s <<EOF
24102 .text
24103 .type foo_resolver, @function
24104 foo_resolver:
24105 ret
24106 .size foo_resolver, .-foo_resolver
24107
24108 .globl foo
24109 .type foo, %gnu_indirect_function
24110 .set foo, foo_resolver
24111
24112 .globl bar
24113 .type bar, @function
24114 bar:
24115 call foo
24116 ret
24117 .size bar, .-bar
24118 EOF
24119 if test x$gcc_cv_as != x \
24120 && test x$gcc_cv_ld != x \
24121 && test x$gcc_cv_readelf != x \
24122 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24123 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24124 && $gcc_cv_readelf --relocs --wide conftest \
24125 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
24126 enable_gnu_indirect_function=yes
24127 fi
24128 rm -f conftest conftest.o conftest.s
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24130 $as_echo "$enable_gnu_indirect_function" >&6; }
24131 ;;
24132 esac
24133
24134 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24135
24136 cat >>confdefs.h <<_ACEOF
24137 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24138 _ACEOF
24139
24140
24141
24142 if test $in_tree_ld != yes ; then
24143 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24144 if echo "$ld_ver" | grep GNU > /dev/null; then
24145 if test x"$ld_is_gold" = xyes; then
24146 # GNU gold --version looks like this:
24147 #
24148 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24149 #
24150 # We extract the binutils version which is more familiar and specific
24151 # than the gold version.
24152 ld_vers=`echo $ld_ver | sed -n \
24153 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24154 else
24155 # GNU ld --version looks like this:
24156 #
24157 # GNU ld (GNU Binutils) 2.21.51.20110225
24158 ld_vers=`echo $ld_ver | sed -n \
24159 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24160 fi
24161 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'`
24162 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24163 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24164 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24165 else
24166 case "${target}" in
24167 *-*-solaris2*)
24168 # Solaris 2 ld -V output looks like this for a regular version:
24169 #
24170 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24171 #
24172 # but test versions add stuff at the end:
24173 #
24174 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24175 #
24176 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24177 # numbers can be used in ld.so.1 feature checks even if a different
24178 # linker is configured.
24179 ld_ver=`$gcc_cv_ld -V 2>&1`
24180 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
24181 ld_vers=`echo $ld_ver | sed -n \
24182 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24183 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24184 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24185 fi
24186 ;;
24187 esac
24188 fi
24189 fi
24190
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24192 $as_echo_n "checking linker for .hidden support... " >&6; }
24193 if ${gcc_cv_ld_hidden+:} false; then :
24194 $as_echo_n "(cached) " >&6
24195 else
24196 if test $in_tree_ld = yes ; then
24197 gcc_cv_ld_hidden=no
24198 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 \
24199 && test $in_tree_ld_is_elf = yes; then
24200 gcc_cv_ld_hidden=yes
24201 fi
24202 else
24203 gcc_cv_ld_hidden=yes
24204 if test x"$ld_is_gold" = xyes; then
24205 :
24206 elif test x"$ld_is_mold" = xyes; then
24207 :
24208 elif echo "$ld_ver" | grep GNU > /dev/null; then
24209 if test 0"$ld_date" -lt 20020404; then
24210 if test -n "$ld_date"; then
24211 # If there was date string, but was earlier than 2002-04-04, fail
24212 gcc_cv_ld_hidden=no
24213 elif test -z "$ld_vers"; then
24214 # If there was no date string nor ld version number, something is wrong
24215 gcc_cv_ld_hidden=no
24216 else
24217 test -z "$ld_vers_patch" && ld_vers_patch=0
24218 if test "$ld_vers_major" -lt 2; then
24219 gcc_cv_ld_hidden=no
24220 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24221 gcc_cv_ld_hidden="no"
24222 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24223 gcc_cv_ld_hidden=no
24224 fi
24225 fi
24226 fi
24227 else
24228 case "${target}" in
24229 *-*-aix[789]*)
24230 gcc_cv_ld_hidden=yes
24231 ;;
24232 *-*-darwin*)
24233 # Darwin ld has some visibility support.
24234 gcc_cv_ld_hidden=yes
24235 ;;
24236 hppa64*-*-hpux* | ia64*-*-hpux*)
24237 gcc_cv_ld_hidden=yes
24238 ;;
24239 *-*-solaris2*)
24240 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24241 # .symbolic was only added in Solaris 9 12/02.
24242 gcc_cv_ld_hidden=yes
24243 ;;
24244 *)
24245 gcc_cv_ld_hidden=no
24246 ;;
24247 esac
24248 fi
24249 fi
24250 fi
24251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24252 $as_echo "$gcc_cv_ld_hidden" >&6; }
24253 libgcc_visibility=no
24254
24255
24256 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24257 libgcc_visibility=yes
24258
24259 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24260
24261 fi
24262
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24264 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24265 gcc_cv_ld_ro_rw_mix=unknown
24266 if test $in_tree_ld = yes ; then
24267 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 \
24268 && test $in_tree_ld_is_elf = yes; then
24269 gcc_cv_ld_ro_rw_mix=read-write
24270 fi
24271 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24272 echo '.section myfoosect, "a"' > conftest1.s
24273 echo '.section myfoosect, "aw"' > conftest2.s
24274 echo '.byte 1' >> conftest2.s
24275 echo '.section myfoosect, "a"' > conftest3.s
24276 echo '.byte 0' >> conftest3.s
24277 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24278 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24279 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
24280 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24281 conftest2.o conftest3.o > /dev/null 2>&1; then
24282 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24283 | sed -e '/myfoosect/!d' -e N`
24284 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24285 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24286 gcc_cv_ld_ro_rw_mix=read-only
24287 else
24288 gcc_cv_ld_ro_rw_mix=read-write
24289 fi
24290 fi
24291 fi
24292 rm -f conftest.* conftest[123].*
24293 fi
24294 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24295
24296 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24297
24298 fi
24299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24300 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24301
24302 # Check whether --enable-initfini-array was given.
24303 if test "${enable_initfini_array+set}" = set; then :
24304 enableval=$enable_initfini_array;
24305 else
24306
24307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24308 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24309 if ${gcc_cv_initfini_array+:} false; then :
24310 $as_echo_n "(cached) " >&6
24311 else
24312 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24313 case "${target}" in
24314 ia64-*)
24315 if test "$cross_compiling" = yes; then :
24316 gcc_cv_initfini_array=no
24317 else
24318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24319 /* end confdefs.h. */
24320
24321 #ifndef __ELF__
24322 #error Not an ELF OS
24323 #endif
24324 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24325 if it can be used. */
24326 static int x = -1;
24327 int main (void) { return x; }
24328 int foo (void) { x = 0; }
24329 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24330
24331 _ACEOF
24332 if ac_fn_cxx_try_run "$LINENO"; then :
24333 gcc_cv_initfini_array=yes
24334 else
24335 gcc_cv_initfini_array=no
24336 fi
24337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24338 conftest.$ac_objext conftest.beam conftest.$ac_ext
24339 fi
24340 ;;
24341 *)
24342 gcc_cv_initfini_array=no
24343 if test $in_tree_ld = yes ; then
24344 if test "$gcc_cv_gld_major_version" -eq 2 \
24345 -a "$gcc_cv_gld_minor_version" -ge 22 \
24346 -o "$gcc_cv_gld_major_version" -gt 2 \
24347 && test $in_tree_ld_is_elf = yes; then
24348 gcc_cv_initfini_array=yes
24349 fi
24350 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24351 case $target:$gas in
24352 *:yes)
24353 sh_flags='"a"'
24354 sh_type='%progbits'
24355 ;;
24356 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24357 sh_flags='"a"'
24358 sh_type='@progbits'
24359 ;;
24360 sparc*-*-solaris2*:no)
24361 sh_flags='#alloc'
24362 sh_type='#progbits'
24363 sh_quote='"'
24364 ;;
24365 esac
24366 case "$target:$gnu_ld" in
24367 *:yes)
24368 cat > conftest.s <<EOF
24369 .section .dtors,$sh_flags,$sh_type
24370 .balign 4
24371 .byte 'A', 'A', 'A', 'A'
24372 .section .ctors,$sh_flags,$sh_type
24373 .balign 4
24374 .byte 'B', 'B', 'B', 'B'
24375 .section .fini_array.65530,$sh_flags,$sh_type
24376 .balign 4
24377 .byte 'C', 'C', 'C', 'C'
24378 .section .init_array.65530,$sh_flags,$sh_type
24379 .balign 4
24380 .byte 'D', 'D', 'D', 'D'
24381 .section .dtors.64528,$sh_flags,$sh_type
24382 .balign 4
24383 .byte 'E', 'E', 'E', 'E'
24384 .section .ctors.64528,$sh_flags,$sh_type
24385 .balign 4
24386 .byte 'F', 'F', 'F', 'F'
24387 .section .fini_array.01005,$sh_flags,$sh_type
24388 .balign 4
24389 .byte 'G', 'G', 'G', 'G'
24390 .section .init_array.01005,$sh_flags,$sh_type
24391 .balign 4
24392 .byte 'H', 'H', 'H', 'H'
24393 .text
24394 .globl _start
24395 _start:
24396 EOF
24397 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24398 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24399 && $gcc_cv_objdump -s -j .init_array conftest \
24400 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24401 && $gcc_cv_objdump -s -j .fini_array conftest \
24402 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24403 gcc_cv_initfini_array=yes
24404 fi
24405 ;;
24406 *-*-solaris2*:no)
24407 # When Solaris ld added constructor priority support, it was
24408 # decided to only handle .init_array.N/.fini_array.N since
24409 # there was no need for backwards compatibility with
24410 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24411 # sections with correct execution order resp. to
24412 # .init_array/.fini_array, while gld merges them into
24413 # .init_array/.fini_array.
24414 cat > conftest.s <<EOF
24415 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24416 .align 4
24417 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24418 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24419 .align 4
24420 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24421 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24422 .align 4
24423 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24424 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24425 .align 4
24426 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24427 .text
24428 .globl _start
24429 _start:
24430 EOF
24431 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24432 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24433 && $gcc_cv_objdump -s -j .init_array conftest \
24434 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24435 && $gcc_cv_objdump -s -j .fini_array conftest \
24436 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24437 gcc_cv_initfini_array=yes
24438 fi
24439 ;;
24440 esac
24441 rm -f conftest conftest.*
24442 fi
24443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24444 /* end confdefs.h. */
24445
24446 #ifndef __ELF__
24447 # error Not an ELF OS
24448 #endif
24449 #include <stdlib.h>
24450 #if defined __GLIBC_PREREQ
24451 # if __GLIBC_PREREQ (2, 4)
24452 # else
24453 # error GLIBC 2.4 required
24454 # endif
24455 #else
24456 # if defined __sun__ && defined __svr4__
24457 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24458 # else
24459 # error The C library not known to support .init_array/.fini_array
24460 # endif
24461 #endif
24462
24463 _ACEOF
24464 if ac_fn_cxx_try_cpp "$LINENO"; then :
24465
24466 else
24467 gcc_cv_initfini_array=no
24468 fi
24469 rm -f conftest.err conftest.i conftest.$ac_ext;;
24470 esac
24471 else
24472 case "${target}" in
24473 aarch64*-linux-gnu*)
24474 # AArch64 postdates glibc support for .init_array/.fini_array,
24475 # so we don't need the preprocessor test above.
24476 gcc_cv_initfini_array=yes
24477 ;;
24478
24479 *)
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24481 $as_echo_n "checking cross compile... guessing... " >&6; }
24482 gcc_cv_initfini_array=no
24483 ;;
24484 esac
24485 fi
24486 fi
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24488 $as_echo "$gcc_cv_initfini_array" >&6; }
24489 enable_initfini_array=$gcc_cv_initfini_array
24490
24491 fi
24492
24493
24494 cat >>confdefs.h <<_ACEOF
24495 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24496 _ACEOF
24497
24498
24499
24500 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24501 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24502 # these directives, even when they appear to accept them.
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24504 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24505 if ${gcc_cv_as_leb128+:} false; then :
24506 $as_echo_n "(cached) " >&6
24507 else
24508 gcc_cv_as_leb128=no
24509 if test x$gcc_cv_as != x; then
24510 $as_echo ' .data
24511 .uleb128 L2 - L1
24512 L1:
24513 .uleb128 1280
24514 .sleb128 -1010
24515 L2:
24516 .uleb128 0x8000000000000000
24517 ' > conftest.s
24518 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24520 (eval $ac_try) 2>&5
24521 ac_status=$?
24522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24523 test $ac_status = 0; }; }
24524 then
24525
24526 if test "x$gcc_cv_objdump" != x; then
24527 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24528 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24529 gcc_cv_as_leb128=yes
24530 fi
24531 elif test "x$gcc_cv_otool" != x; then
24532 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24533 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24534 gcc_cv_as_leb128=yes
24535 fi
24536 else
24537 # play safe, assume the assembler is broken.
24538 :
24539 fi
24540
24541 else
24542 echo "configure: failed program was" >&5
24543 cat conftest.s >&5
24544 fi
24545 rm -f conftest.o conftest.s
24546 fi
24547 fi
24548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24549 $as_echo "$gcc_cv_as_leb128" >&6; }
24550 if test $gcc_cv_as_leb128 = yes; then
24551
24552 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24553
24554 fi
24555 if test $gcc_cv_as_leb128 != yes; then
24556
24557 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24558
24559 fi
24560
24561 # Determine if an .eh_frame section is read-only.
24562 gcc_fn_eh_frame_ro () {
24563 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24564 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24565 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24566 }
24567
24568 # Check if we have assembler support for unwind directives.
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24570 $as_echo_n "checking assembler for cfi directives... " >&6; }
24571 if ${gcc_cv_as_cfi_directive+:} false; then :
24572 $as_echo_n "(cached) " >&6
24573 else
24574 gcc_cv_as_cfi_directive=no
24575 if test x$gcc_cv_as != x; then
24576 $as_echo ' .text
24577 .cfi_startproc
24578 .cfi_offset 0, 0
24579 .cfi_same_value 1
24580 .cfi_def_cfa 1, 2
24581 .cfi_escape 1, 2, 3, 4, 5
24582 .cfi_endproc' > conftest.s
24583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24585 (eval $ac_try) 2>&5
24586 ac_status=$?
24587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24588 test $ac_status = 0; }; }
24589 then
24590 case "$target" in
24591 *-*-solaris*)
24592 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24593 # read-only and read-write sections, we need to make sure that the
24594 # assembler used emits read-write .eh_frame sections.
24595 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24596 gcc_cv_as_cfi_directive=yes
24597 elif test "x$gcc_cv_objdump" = x; then
24598 # No objdump, err on the side of caution.
24599 gcc_cv_as_cfi_directive=no
24600 else
24601 if test x$gas = xyes; then
24602 as_32_opt="--32"
24603 as_64_opt="--64"
24604 else
24605 as_32_opt="-m32"
24606 as_64_opt="-m64"
24607 fi
24608 case "$target" in
24609 sparc*-*-solaris2.*)
24610 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24611 if gcc_fn_eh_frame_ro $as_32_opt \
24612 || gcc_fn_eh_frame_ro $as_64_opt; then
24613 gcc_cv_as_cfi_directive=no
24614 else
24615 gcc_cv_as_cfi_directive=yes
24616 fi
24617 ;;
24618 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24619 # On Solaris/x86, make sure that GCC and assembler agree on using
24620 # read-only .eh_frame sections for 64-bit.
24621 if gcc_fn_eh_frame_ro $as_32_opt; then
24622 gcc_cv_as_cfi_directive=no
24623 elif gcc_fn_eh_frame_ro $as_64_opt; then
24624 gcc_cv_as_cfi_directive=yes
24625 else
24626 gcc_cv_as_cfi_directive=no
24627 fi
24628 ;;
24629 esac
24630 fi
24631 ;;
24632 *-*-*)
24633 gcc_cv_as_cfi_directive=yes
24634 ;;
24635 esac
24636 else
24637 echo "configure: failed program was" >&5
24638 cat conftest.s >&5
24639 fi
24640 rm -f conftest.o conftest.s
24641 fi
24642 fi
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24644 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24645
24646
24647 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24649 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24650 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24651 $as_echo_n "(cached) " >&6
24652 else
24653 gcc_cv_as_cfi_advance_working=no
24654 if test x$gcc_cv_as != x; then
24655 $as_echo ' .text
24656 .cfi_startproc
24657 .cfi_adjust_cfa_offset 64
24658 .skip 75040, 0
24659 .cfi_adjust_cfa_offset 128
24660 .cfi_endproc' > conftest.s
24661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24663 (eval $ac_try) 2>&5
24664 ac_status=$?
24665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24666 test $ac_status = 0; }; }
24667 then
24668
24669 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24670 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24671 gcc_cv_as_cfi_advance_working=yes
24672 fi
24673
24674 else
24675 echo "configure: failed program was" >&5
24676 cat conftest.s >&5
24677 fi
24678 rm -f conftest.o conftest.s
24679 fi
24680 fi
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24682 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24683
24684
24685 else
24686 # no objdump, err on the side of caution
24687 gcc_cv_as_cfi_advance_working=no
24688 fi
24689
24690
24691 cat >>confdefs.h <<_ACEOF
24692 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24693 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24694 _ACEOF
24695
24696
24697
24698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24699 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24700 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24701 $as_echo_n "(cached) " >&6
24702 else
24703 gcc_cv_as_cfi_personality_directive=no
24704 if test x$gcc_cv_as != x; then
24705 $as_echo ' .text
24706 .cfi_startproc
24707 .cfi_personality 0, symbol
24708 .cfi_endproc' > conftest.s
24709 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24711 (eval $ac_try) 2>&5
24712 ac_status=$?
24713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24714 test $ac_status = 0; }; }
24715 then
24716 gcc_cv_as_cfi_personality_directive=yes
24717 else
24718 echo "configure: failed program was" >&5
24719 cat conftest.s >&5
24720 fi
24721 rm -f conftest.o conftest.s
24722 fi
24723 fi
24724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24725 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24726
24727
24728
24729 cat >>confdefs.h <<_ACEOF
24730 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24731 _ACEOF
24732
24733
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24735 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24736 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24737 $as_echo_n "(cached) " >&6
24738 else
24739 gcc_cv_as_cfi_sections_directive=no
24740 if test x$gcc_cv_as != x; then
24741 $as_echo ' .text
24742 .cfi_sections .debug_frame, .eh_frame
24743 .cfi_startproc
24744 .cfi_endproc' > conftest.s
24745 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24747 (eval $ac_try) 2>&5
24748 ac_status=$?
24749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24750 test $ac_status = 0; }; }
24751 then
24752 case $target_os in
24753 win32 | pe | cygwin* | mingw32*)
24754 # Need to check that we generated the correct relocation for the
24755 # .debug_frame section. This was fixed for binutils 2.21.
24756 gcc_cv_as_cfi_sections_directive=no
24757 if test "x$gcc_cv_objdump" != x; then
24758 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24759 grep secrel > /dev/null; then
24760 gcc_cv_as_cfi_sections_directive=yes
24761 fi
24762 fi
24763 ;;
24764 *)
24765 gcc_cv_as_cfi_sections_directive=yes
24766 ;;
24767 esac
24768 else
24769 echo "configure: failed program was" >&5
24770 cat conftest.s >&5
24771 fi
24772 rm -f conftest.o conftest.s
24773 fi
24774 fi
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24776 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24777
24778
24779
24780
24781 cat >>confdefs.h <<_ACEOF
24782 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24783 _ACEOF
24784
24785
24786 # GAS versions up to and including 2.11.0 may mis-optimize
24787 # .eh_frame data.
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24789 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24790 if ${gcc_cv_as_eh_frame+:} false; then :
24791 $as_echo_n "(cached) " >&6
24792 else
24793 gcc_cv_as_eh_frame=no
24794 if test x$gcc_cv_as != x; then
24795 $as_echo ' .text
24796 .LFB1:
24797 .4byte 0
24798 .L1:
24799 .4byte 0
24800 .LFE1:
24801 .section .eh_frame,"aw",@progbits
24802 __FRAME_BEGIN__:
24803 .4byte .LECIE1-.LSCIE1
24804 .LSCIE1:
24805 .4byte 0x0
24806 .byte 0x1
24807 .ascii "z\0"
24808 .byte 0x1
24809 .byte 0x78
24810 .byte 0x1a
24811 .byte 0x0
24812 .byte 0x4
24813 .4byte 1
24814 .p2align 1
24815 .LECIE1:
24816 .LSFDE1:
24817 .4byte .LEFDE1-.LASFDE1
24818 .LASFDE1:
24819 .4byte .LASFDE1-__FRAME_BEGIN__
24820 .4byte .LFB1
24821 .4byte .LFE1-.LFB1
24822 .byte 0x4
24823 .4byte .LFE1-.LFB1
24824 .byte 0x4
24825 .4byte .L1-.LFB1
24826 .LEFDE1:' > conftest.s
24827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24829 (eval $ac_try) 2>&5
24830 ac_status=$?
24831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24832 test $ac_status = 0; }; }
24833 then
24834 cat > conftest.lit <<EOF
24835 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24836 0010 01000000 12000000 18000000 00000000 ................
24837 0020 08000000 04080000 0044 .........D
24838 EOF
24839 cat > conftest.big <<EOF
24840 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24841 0010 00000001 00000012 00000018 00000000 ................
24842 0020 00000008 04000000 0844 .........D
24843 EOF
24844 # If the assembler didn't choke, and we can objdump,
24845 # and we got the correct data, then succeed.
24846 # The text in the here-document typically retains its unix-style line
24847 # endings, while the output of objdump will use host line endings.
24848 # Therefore, use diff -b for the comparisons.
24849 if test x$gcc_cv_objdump != x \
24850 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24851 | tail -3 > conftest.got \
24852 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24853 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24854 then
24855 gcc_cv_as_eh_frame=yes
24856 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24858 (eval $ac_try) 2>&5
24859 ac_status=$?
24860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24861 test $ac_status = 0; }; }; then
24862 gcc_cv_as_eh_frame=buggy
24863 else
24864 # Uh oh, what do we do now?
24865 gcc_cv_as_eh_frame=no
24866 fi
24867 else
24868 echo "configure: failed program was" >&5
24869 cat conftest.s >&5
24870 fi
24871 rm -f conftest.o conftest.s
24872 fi
24873 fi
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24875 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24876
24877
24878
24879 if test $gcc_cv_as_eh_frame = buggy; then
24880
24881 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24882
24883 fi
24884
24885 # Test if the assembler supports the section flag 'e' or #exclude for
24886 # specifying an excluded section.
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24888 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24889 if ${gcc_cv_as_section_exclude_e+:} false; then :
24890 $as_echo_n "(cached) " >&6
24891 else
24892 gcc_cv_as_section_exclude_e=no
24893 if test x$gcc_cv_as != x; then
24894 $as_echo '.section foo1,"e"
24895 .byte 0,0,0,0' > conftest.s
24896 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24898 (eval $ac_try) 2>&5
24899 ac_status=$?
24900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24901 test $ac_status = 0; }; }
24902 then
24903 gcc_cv_as_section_exclude_e=yes
24904 else
24905 echo "configure: failed program was" >&5
24906 cat conftest.s >&5
24907 fi
24908 rm -f conftest.o conftest.s
24909 fi
24910 fi
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24912 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24913
24914
24915 if test $gcc_cv_as_section_exclude_e = no; then
24916 case "${target}" in
24917 # Solaris as uses #exclude instead.
24918 *-*-solaris2*)
24919 case "${target}" in
24920 sparc*-*-solaris2*)
24921 conftest_s='.section "foo1", #exclude'
24922 ;;
24923 i?86-*-solaris2* | x86_64-*-solaris2*)
24924 conftest_s='.section foo1, #exclude'
24925 ;;
24926 esac
24927 ;;
24928 esac
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24930 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24931 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24932 $as_echo_n "(cached) " >&6
24933 else
24934 gcc_cv_as_section_exclude_hash=no
24935 if test x$gcc_cv_as != x; then
24936 $as_echo "$conftest_s
24937 .byte 0,0,0,0" > conftest.s
24938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24940 (eval $ac_try) 2>&5
24941 ac_status=$?
24942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24943 test $ac_status = 0; }; }
24944 then
24945 gcc_cv_as_section_exclude_hash=yes
24946 else
24947 echo "configure: failed program was" >&5
24948 cat conftest.s >&5
24949 fi
24950 rm -f conftest.o conftest.s
24951 fi
24952 fi
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24954 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24955
24956
24957 fi
24958
24959 cat >>confdefs.h <<_ACEOF
24960 #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`
24961 _ACEOF
24962
24963
24964 # Test if the assembler supports the section flag 'R' for specifying
24965 # section with SHF_GNU_RETAIN.
24966 case "${target}" in
24967 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24968 # assembler supports the section flag 'R', it doesn't mean that
24969 # Solairs ld supports it.
24970 *-*-solaris2*)
24971 gcc_cv_as_shf_gnu_retain=no
24972 ;;
24973 *)
24974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24975 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
24976 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
24977 $as_echo_n "(cached) " >&6
24978 else
24979 gcc_cv_as_shf_gnu_retain=no
24980 if test x$gcc_cv_as != x; then
24981 $as_echo '.section .foo,"awR",%progbits
24982 .byte 0' > conftest.s
24983 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24985 (eval $ac_try) 2>&5
24986 ac_status=$?
24987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24988 test $ac_status = 0; }; }
24989 then
24990 gcc_cv_as_shf_gnu_retain=yes
24991 else
24992 echo "configure: failed program was" >&5
24993 cat conftest.s >&5
24994 fi
24995 rm -f conftest.o conftest.s
24996 fi
24997 fi
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
24999 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25000
25001
25002 ;;
25003 esac
25004
25005 cat >>confdefs.h <<_ACEOF
25006 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25007 _ACEOF
25008
25009
25010 # Test if the assembler supports the section flag 'o' for specifying
25011 # section with link-order.
25012 case "${target}" in
25013 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25014 # assembler supports the section flag 'o', it doesn't mean that
25015 # Solairs ld supports it.
25016 *-*-solaris2*)
25017 gcc_cv_as_section_link_order=no
25018 ;;
25019 *)
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25021 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25022 if ${gcc_cv_as_section_link_order+:} false; then :
25023 $as_echo_n "(cached) " >&6
25024 else
25025 gcc_cv_as_section_link_order=no
25026 if test x$gcc_cv_as != x; then
25027 $as_echo '.section .foo,"a"
25028 .byte 0
25029 .section __patchable_function_entries,"awo",%progbits,.foo
25030 .byte 0' > conftest.s
25031 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25033 (eval $ac_try) 2>&5
25034 ac_status=$?
25035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25036 test $ac_status = 0; }; }
25037 then
25038 gcc_cv_as_section_link_order=yes
25039 else
25040 echo "configure: failed program was" >&5
25041 cat conftest.s >&5
25042 fi
25043 rm -f conftest.o conftest.s
25044 fi
25045 fi
25046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25047 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25048
25049
25050 ;;
25051 esac
25052
25053 cat >>confdefs.h <<_ACEOF
25054 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25055 _ACEOF
25056
25057
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25059 $as_echo_n "checking assembler for section merging support... " >&6; }
25060 if ${gcc_cv_as_shf_merge+:} false; then :
25061 $as_echo_n "(cached) " >&6
25062 else
25063 gcc_cv_as_shf_merge=no
25064 if test x$gcc_cv_as != x; then
25065 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25066 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25068 (eval $ac_try) 2>&5
25069 ac_status=$?
25070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25071 test $ac_status = 0; }; }
25072 then
25073 gcc_cv_as_shf_merge=yes
25074 else
25075 echo "configure: failed program was" >&5
25076 cat conftest.s >&5
25077 fi
25078 rm -f conftest.o conftest.s
25079 fi
25080 fi
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25082 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25083
25084
25085 if test $gcc_cv_as_shf_merge = no; then
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25087 $as_echo_n "checking assembler for section merging support... " >&6; }
25088 if ${gcc_cv_as_shf_merge+:} false; then :
25089 $as_echo_n "(cached) " >&6
25090 else
25091 gcc_cv_as_shf_merge=no
25092 if test x$gcc_cv_as != x; then
25093 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25094 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25096 (eval $ac_try) 2>&5
25097 ac_status=$?
25098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25099 test $ac_status = 0; }; }
25100 then
25101 gcc_cv_as_shf_merge=yes
25102 else
25103 echo "configure: failed program was" >&5
25104 cat conftest.s >&5
25105 fi
25106 rm -f conftest.o conftest.s
25107 fi
25108 fi
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25110 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25111
25112
25113 fi
25114
25115 cat >>confdefs.h <<_ACEOF
25116 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25117 _ACEOF
25118
25119
25120 gcc_cv_ld_aligned_shf_merge=yes
25121 case "$target" in
25122 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25123 # alignment > 1.
25124 sparc*-*-solaris2.11*)
25125 if test x"$gnu_ld" = xno \
25126 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25127 gcc_cv_ld_aligned_shf_merge=no
25128 fi
25129 ;;
25130 esac
25131
25132 cat >>confdefs.h <<_ACEOF
25133 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25134 _ACEOF
25135
25136
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25138 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25139 if ${gcc_cv_as_comdat_group+:} false; then :
25140 $as_echo_n "(cached) " >&6
25141 else
25142 gcc_cv_as_comdat_group=no
25143 if test x$gcc_cv_as != x; then
25144 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25145 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25147 (eval $ac_try) 2>&5
25148 ac_status=$?
25149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25150 test $ac_status = 0; }; }
25151 then
25152 gcc_cv_as_comdat_group=yes
25153 else
25154 echo "configure: failed program was" >&5
25155 cat conftest.s >&5
25156 fi
25157 rm -f conftest.o conftest.s
25158 fi
25159 fi
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25161 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25162
25163
25164 if test $gcc_cv_as_comdat_group = yes; then
25165 gcc_cv_as_comdat_group_percent=no
25166 gcc_cv_as_comdat_group_group=no
25167 else
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25169 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25170 if ${gcc_cv_as_comdat_group_percent+:} false; then :
25171 $as_echo_n "(cached) " >&6
25172 else
25173 gcc_cv_as_comdat_group_percent=no
25174 if test x$gcc_cv_as != x; then
25175 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25178 (eval $ac_try) 2>&5
25179 ac_status=$?
25180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25181 test $ac_status = 0; }; }
25182 then
25183 gcc_cv_as_comdat_group_percent=yes
25184 else
25185 echo "configure: failed program was" >&5
25186 cat conftest.s >&5
25187 fi
25188 rm -f conftest.o conftest.s
25189 fi
25190 fi
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25192 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25193
25194
25195 if test $gcc_cv_as_comdat_group_percent = yes; then
25196 gcc_cv_as_comdat_group_group=no
25197 else
25198 case "${target}" in
25199 # Sun as uses a completely different syntax.
25200 *-*-solaris2*)
25201 case "${target}" in
25202 sparc*-*-solaris2*)
25203 conftest_s='
25204 .group foo,".text%foo",#comdat
25205 .section ".text%foo", #alloc,#execinstr,#progbits
25206 .globl foo
25207 foo:
25208 '
25209 ;;
25210 i?86-*-solaris2* | x86_64-*-solaris2*)
25211 conftest_s='
25212 .group foo,.text%foo,#comdat
25213 .section .text%foo, "ax", @progbits
25214 .globl foo
25215 foo:
25216 '
25217 ;;
25218 esac
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25220 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25221 if ${gcc_cv_as_comdat_group_group+:} false; then :
25222 $as_echo_n "(cached) " >&6
25223 else
25224 gcc_cv_as_comdat_group_group=no
25225 if test x$gcc_cv_as != x; then
25226 $as_echo "$conftest_s" > conftest.s
25227 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25229 (eval $ac_try) 2>&5
25230 ac_status=$?
25231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25232 test $ac_status = 0; }; }
25233 then
25234 gcc_cv_as_comdat_group_group=yes
25235 else
25236 echo "configure: failed program was" >&5
25237 cat conftest.s >&5
25238 fi
25239 rm -f conftest.o conftest.s
25240 fi
25241 fi
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25243 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25244
25245
25246 ;;
25247 esac
25248 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25249 gcc_cv_as_comdat_group_group=no
25250 fi
25251 fi
25252 fi
25253 if test x"$ld_is_gold" = xyes; then
25254 comdat_group=yes
25255 elif test x"$ld_is_mold" = xyes; then
25256 comdat_group=yes
25257 elif test $in_tree_ld = yes ; then
25258 comdat_group=no
25259 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 \
25260 && test $in_tree_ld_is_elf = yes; then
25261 comdat_group=yes
25262 fi
25263 elif echo "$ld_ver" | grep GNU > /dev/null; then
25264 comdat_group=yes
25265 if test 0"$ld_date" -lt 20050308; then
25266 if test -n "$ld_date"; then
25267 # If there was date string, but was earlier than 2005-03-08, fail
25268 comdat_group=no
25269 elif test "$ld_vers_major" -lt 2; then
25270 comdat_group=no
25271 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25272 comdat_group=no
25273 fi
25274 fi
25275 else
25276 case "${target}" in
25277 *-*-solaris2.1[1-9]*)
25278 comdat_group=no
25279 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25280 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25281 # version 1.688.
25282 #
25283 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25284 # least ld version 1.2267.
25285 if test "$ld_vers_major" -gt 1; then
25286 comdat_group=yes
25287 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25288 comdat_group=yes
25289 elif test "$ld_vers_minor" -ge 2267; then
25290 comdat_group=yes
25291 fi
25292 ;;
25293 *)
25294 # Assume linkers other than GNU ld don't support COMDAT group.
25295 comdat_group=no
25296 ;;
25297 esac
25298 fi
25299 # Allow overriding the automatic COMDAT group tests above.
25300 # Check whether --enable-comdat was given.
25301 if test "${enable_comdat+set}" = set; then :
25302 enableval=$enable_comdat; comdat_group="$enable_comdat"
25303 fi
25304
25305 if test $comdat_group = no; then
25306 gcc_cv_as_comdat_group=no
25307 gcc_cv_as_comdat_group_percent=no
25308 gcc_cv_as_comdat_group_group=no
25309 fi
25310
25311 cat >>confdefs.h <<_ACEOF
25312 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25313 || test $gcc_cv_as_comdat_group_percent = yes \
25314 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25315 _ACEOF
25316
25317
25318 # Restrict this test to Solaris/x86: other targets define this statically.
25319 case "${target}" in
25320 i?86-*-solaris2* | x86_64-*-solaris2*)
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25322 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25323 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25324 hidden_linkonce=yes
25325 else
25326 case "${target}" in
25327 # Full support for hidden thunks in linkonce sections only appeared in
25328 # Solaris 11/OpenSolaris.
25329 *-*-solaris2.1[1-9]*)
25330 hidden_linkonce=yes
25331 ;;
25332 *)
25333 hidden_linkonce=no
25334 ;;
25335 esac
25336 fi
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25338 $as_echo "$hidden_linkonce" >&6; }
25339
25340 cat >>confdefs.h <<_ACEOF
25341 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25342 _ACEOF
25343
25344 ;;
25345 esac
25346
25347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25348 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25349 if ${gcc_cv_as_is_stmt+:} false; then :
25350 $as_echo_n "(cached) " >&6
25351 else
25352 gcc_cv_as_is_stmt=no
25353 if test x$gcc_cv_as != x; then
25354 $as_echo ' .text
25355 .file 1 "conf.c"
25356 .loc 1 1 0 is_stmt 1' > conftest.s
25357 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362 test $ac_status = 0; }; }
25363 then
25364 gcc_cv_as_is_stmt=yes
25365 else
25366 echo "configure: failed program was" >&5
25367 cat conftest.s >&5
25368 fi
25369 rm -f conftest.o conftest.s
25370 fi
25371 fi
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25373 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25374 if test $gcc_cv_as_is_stmt = yes; then
25375
25376 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25377
25378 fi
25379
25380
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25382 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25383 if ${gcc_cv_as_discriminator+:} false; then :
25384 $as_echo_n "(cached) " >&6
25385 else
25386 gcc_cv_as_discriminator=no
25387 if test x$gcc_cv_as != x; then
25388 $as_echo ' .text
25389 .file 1 "conf.c"
25390 .loc 1 1 0 discriminator 1' > conftest.s
25391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25393 (eval $ac_try) 2>&5
25394 ac_status=$?
25395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25396 test $ac_status = 0; }; }
25397 then
25398 gcc_cv_as_discriminator=yes
25399 else
25400 echo "configure: failed program was" >&5
25401 cat conftest.s >&5
25402 fi
25403 rm -f conftest.o conftest.s
25404 fi
25405 fi
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25407 $as_echo "$gcc_cv_as_discriminator" >&6; }
25408 if test $gcc_cv_as_discriminator = yes; then
25409
25410 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25411
25412 fi
25413
25414
25415 # Catch the newlib flag of the same name so we can gate GCC features on it.
25416 # Check whether --enable-newlib-nano-formatted-io was given.
25417 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25418 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25419 yes|no)
25420 ;;
25421 *)
25422 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25423 ;;
25424 esac
25425 fi
25426
25427
25428 # Thread-local storage - the check is heavily parameterized.
25429 conftest_s=
25430 tls_as_opt=
25431 case "$target" in
25432 alpha*-*-*)
25433 conftest_s='
25434 .section ".tdata","awT",@progbits
25435 foo: .long 25
25436 .text
25437 ldq $27,__tls_get_addr($29) !literal!1
25438 lda $16,foo($29) !tlsgd!1
25439 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25440 ldq $27,__tls_get_addr($29) !literal!2
25441 lda $16,foo($29) !tlsldm!2
25442 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25443 ldq $1,foo($29) !gotdtprel
25444 ldah $2,foo($29) !dtprelhi
25445 lda $3,foo($2) !dtprello
25446 lda $4,foo($29) !dtprel
25447 ldq $1,foo($29) !gottprel
25448 ldah $2,foo($29) !tprelhi
25449 lda $3,foo($2) !tprello
25450 lda $4,foo($29) !tprel'
25451 tls_as_opt=--fatal-warnings
25452 ;;
25453 arc*-*-*)
25454 conftest_s='
25455 add_s r0,r0, @foo@tpoff'
25456 ;;
25457 cris-*-*|crisv32-*-*)
25458 conftest_s='
25459 .section ".tdata","awT",@progbits
25460 x: .long 25
25461 .text
25462 move.d x:IE,$r10
25463 nop'
25464 tls_as_opt=--fatal-warnings
25465 ;;
25466 frv*-*-*)
25467 conftest_s='
25468 .section ".tdata","awT",@progbits
25469 x: .long 25
25470 .text
25471 call #gettlsoff(x)'
25472 ;;
25473 hppa*-*-linux*)
25474 conftest_s='
25475 t1: .reg %r20
25476 t2: .reg %r21
25477 gp: .reg %r19
25478 .section ".tdata","awT",@progbits
25479 foo: .long 25
25480 .text
25481 .align 4
25482 addil LT%foo-$tls_gdidx$,gp
25483 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25484 b __tls_get_addr
25485 nop
25486 addil LT%foo-$tls_ldidx$,gp
25487 b __tls_get_addr
25488 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25489 addil LR%foo-$tls_dtpoff$,%ret0
25490 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25491 mfctl %cr27,%t1
25492 addil LT%foo-$tls_ieoff$,gp
25493 ldw RT%foo-$tls_ieoff$(%r1),%t2
25494 add %t1,%t2,%t3
25495 mfctl %cr27,%t1
25496 addil LR%foo-$tls_leoff$,%t1
25497 ldo RR%foo-$tls_leoff$(%r1),%t2'
25498 tls_as_opt=--fatal-warnings
25499 ;;
25500 arm*-*-*)
25501 conftest_s='
25502 .section ".tdata","awT",%progbits
25503 foo: .long 25
25504 .text
25505 .word foo(gottpoff)
25506 .word foo(tpoff)
25507 .word foo(tlsgd)
25508 .word foo(tlsldm)
25509 .word foo(tlsldo)'
25510 ;;
25511 i[34567]86-*-* | x86_64-*-*)
25512 case "$target" in
25513 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25514 on_solaris=yes
25515 ;;
25516 *)
25517 on_solaris=no
25518 ;;
25519 esac
25520 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25521 conftest_s='
25522 .section .tdata,"awt",@progbits'
25523 tls_section_flag=t
25524
25525 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25526
25527 else
25528 conftest_s='
25529 .section ".tdata","awT",@progbits'
25530 tls_section_flag=T
25531 tls_as_opt="--fatal-warnings"
25532 fi
25533 case "$target" in
25534 i[34567]86-*-*)
25535 if test x$on_solaris = xyes; then
25536 case $gas_flag in
25537 yes) tls_as_opt="$tls_as_opt --32" ;;
25538 esac
25539 fi
25540 conftest_s="$conftest_s
25541 foo: .long 25
25542 .text
25543 movl %gs:0, %eax
25544 leal foo@tlsgd(,%ebx,1), %eax
25545 leal foo@tlsldm(%ebx), %eax
25546 leal foo@dtpoff(%eax), %edx
25547 movl foo@gottpoff(%ebx), %eax
25548 subl foo@gottpoff(%ebx), %eax
25549 addl foo@gotntpoff(%ebx), %eax
25550 movl foo@indntpoff, %eax
25551 movl \$foo@tpoff, %eax
25552 subl \$foo@tpoff, %eax
25553 leal foo@ntpoff(%ecx), %eax"
25554 ;;
25555 x86_64-*-*)
25556 if test x$on_solaris = xyes; then
25557 case $gas_flag in
25558 yes) tls_as_opt="$tls_as_opt --64" ;;
25559 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25560 esac
25561 fi
25562 conftest_s="$conftest_s
25563 foo: .long 25
25564 .text
25565 movq %fs:0, %rax
25566 leaq foo@tlsgd(%rip), %rdi
25567 leaq foo@tlsld(%rip), %rdi
25568 leaq foo@dtpoff(%rax), %rdx
25569 movq foo@gottpoff(%rip), %rax
25570 movq \$foo@tpoff, %rax"
25571 ;;
25572 esac
25573 ;;
25574 ia64-*-*)
25575 conftest_s='
25576 .section ".tdata","awT",@progbits
25577 foo: data8 25
25578 .text
25579 addl r16 = @ltoff(@dtpmod(foo#)), gp
25580 addl r17 = @ltoff(@dtprel(foo#)), gp
25581 addl r18 = @ltoff(@tprel(foo#)), gp
25582 addl r19 = @dtprel(foo#), gp
25583 adds r21 = @dtprel(foo#), r13
25584 movl r23 = @dtprel(foo#)
25585 addl r20 = @tprel(foo#), gp
25586 adds r22 = @tprel(foo#), r13
25587 movl r24 = @tprel(foo#)'
25588 tls_as_opt=--fatal-warnings
25589 ;;
25590 loongarch*-*-*)
25591 conftest_s='
25592 .section .tdata,"awT",@progbits
25593 x: .word 2
25594 .text
25595 la.tls.gd $a0,x
25596 bl __tls_get_addr'
25597 tls_first_major=0
25598 tls_first_minor=0
25599 tls_as_opt='--fatal-warnings'
25600 ;;
25601 microblaze*-*-*)
25602 conftest_s='
25603 .section .tdata,"awT",@progbits
25604 x:
25605 .word 2
25606 .text
25607 addik r5,r20,x@TLSGD
25608 addik r5,r20,x@TLSLDM'
25609 tls_as_opt='--fatal-warnings'
25610 ;;
25611 mips*-*-*)
25612 conftest_s='
25613 .section .tdata,"awT",@progbits
25614 x:
25615 .word 2
25616 .text
25617 addiu $4, $28, %tlsgd(x)
25618 addiu $4, $28, %tlsldm(x)
25619 lui $4, %dtprel_hi(x)
25620 addiu $4, $4, %dtprel_lo(x)
25621 lw $4, %gottprel(x)($28)
25622 lui $4, %tprel_hi(x)
25623 addiu $4, $4, %tprel_lo(x)'
25624 tls_as_opt='-32 --fatal-warnings'
25625 ;;
25626 m68k-*-*)
25627 conftest_s='
25628 .section .tdata,"awT",@progbits
25629 x:
25630 .word 2
25631 .text
25632 foo:
25633 move.l x@TLSGD(%a5),%a0
25634 move.l x@TLSLDM(%a5),%a0
25635 move.l x@TLSLDO(%a5),%a0
25636 move.l x@TLSIE(%a5),%a0
25637 move.l x@TLSLE(%a5),%a0'
25638 tls_as_opt='--fatal-warnings'
25639 ;;
25640 nios2-*-*)
25641 conftest_s='
25642 .section ".tdata","awT",@progbits'
25643 tls_as_opt="--fatal-warnings"
25644 ;;
25645 aarch64*-*-*)
25646 conftest_s='
25647 .section ".tdata","awT",%progbits
25648 foo: .long 25
25649 .text
25650 adrp x0, :tlsgd:x
25651 add x0, x0, #:tlsgd_lo12:x
25652 bl __tls_get_addr
25653 nop'
25654 tls_as_opt='--fatal-warnings'
25655 ;;
25656 or1k*-*-*)
25657 conftest_s='
25658 .section ".tdata","awT",@progbits
25659 foo: .long 25
25660 .text
25661 l.movhi r3, tpoffha(foo)
25662 l.add r3, r3, r10
25663 l.lwz r4, tpofflo(foo)(r3)'
25664 tls_as_opt=--fatal-warnings
25665 ;;
25666 powerpc-ibm-aix*)
25667 conftest_s='
25668 .extern __get_tpointer
25669 .toc
25670 LC..1:
25671 .tc a[TC],a[TL]@le
25672 .csect .text[PR]
25673 .tlstest:
25674 lwz 9,LC..1(2)
25675 bla __get_tpointer
25676 lwzx 3,9,3
25677 .globl a
25678 .csect a[TL],4
25679 a:
25680 .space 4'
25681 ;;
25682 powerpc64*-*-*)
25683 conftest_s='
25684 .section ".tdata","awT",@progbits
25685 .align 3
25686 ld0: .space 8
25687 ld1: .space 8
25688 x1: .space 8
25689 x2: .space 8
25690 x3: .space 8
25691 .text
25692 addi 3,2,ld0@got@tlsgd
25693 bl .__tls_get_addr
25694 nop
25695 addi 3,2,ld1@toc
25696 bl .__tls_get_addr
25697 nop
25698 addi 3,2,x1@got@tlsld
25699 bl .__tls_get_addr
25700 nop
25701 addi 9,3,x1@dtprel
25702 bl .__tls_get_addr
25703 nop
25704 addis 9,3,x2@dtprel@ha
25705 addi 9,9,x2@dtprel@l
25706 bl .__tls_get_addr
25707 nop
25708 ld 9,x3@got@dtprel(2)
25709 add 9,9,3
25710 bl .__tls_get_addr
25711 nop'
25712 tls_as_opt="-a64 --fatal-warnings"
25713 ;;
25714 powerpc*-*-*)
25715 conftest_s='
25716 .section ".tdata","awT",@progbits
25717 .align 2
25718 ld0: .space 4
25719 ld1: .space 4
25720 x1: .space 4
25721 x2: .space 4
25722 x3: .space 4
25723 .text
25724 addi 3,31,ld0@got@tlsgd
25725 bl __tls_get_addr
25726 addi 3,31,x1@got@tlsld
25727 bl __tls_get_addr
25728 addi 9,3,x1@dtprel
25729 addis 9,3,x2@dtprel@ha
25730 addi 9,9,x2@dtprel@l
25731 lwz 9,x3@got@tprel(31)
25732 add 9,9,x@tls
25733 addi 9,2,x1@tprel
25734 addis 9,2,x2@tprel@ha
25735 addi 9,9,x2@tprel@l'
25736 tls_as_opt="-a32 --fatal-warnings"
25737 ;;
25738 riscv*-*-*)
25739 conftest_s='
25740 .section .tdata,"awT",@progbits
25741 x: .word 2
25742 .text
25743 la.tls.gd a0,x
25744 call __tls_get_addr'
25745 tls_as_opt='--fatal-warnings'
25746 ;;
25747 s390-*-*)
25748 conftest_s='
25749 .section ".tdata","awT",@progbits
25750 foo: .long 25
25751 .text
25752 .long foo@TLSGD
25753 .long foo@TLSLDM
25754 .long foo@DTPOFF
25755 .long foo@NTPOFF
25756 .long foo@GOTNTPOFF
25757 .long foo@INDNTPOFF
25758 l %r1,foo@GOTNTPOFF(%r12)
25759 l %r1,0(%r1):tls_load:foo
25760 bas %r14,0(%r1,%r13):tls_gdcall:foo
25761 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25762 tls_as_opt="-m31 --fatal-warnings"
25763 ;;
25764 s390x-*-*)
25765 conftest_s='
25766 .section ".tdata","awT",@progbits
25767 foo: .long 25
25768 .text
25769 .quad foo@TLSGD
25770 .quad foo@TLSLDM
25771 .quad foo@DTPOFF
25772 .quad foo@NTPOFF
25773 .quad foo@GOTNTPOFF
25774 lg %r1,foo@GOTNTPOFF(%r12)
25775 larl %r1,foo@INDNTPOFF
25776 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25777 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25778 tls_as_opt="-m64 -Aesame --fatal-warnings"
25779 ;;
25780 sh-*-* | sh[123456789lbe]*-*-*)
25781 conftest_s='
25782 .section ".tdata","awT",@progbits
25783 foo: .long 25
25784 .text
25785 .long foo@TLSGD
25786 .long foo@TLSLDM
25787 .long foo@DTPOFF
25788 .long foo@GOTTPOFF
25789 .long foo@TPOFF'
25790 tls_as_opt=--fatal-warnings
25791 ;;
25792 sparc*-*-*)
25793 case "$target" in
25794 sparc*-sun-solaris2.*)
25795 on_solaris=yes
25796 ;;
25797 *)
25798 on_solaris=no
25799 ;;
25800 esac
25801 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25802 conftest_s='
25803 .section ".tdata",#alloc,#write,#tls'
25804 else
25805 conftest_s='
25806 .section ".tdata","awT",@progbits'
25807 tls_as_opt="-32 --fatal-warnings"
25808 fi
25809 conftest_s="$conftest_s
25810 foo: .long 25
25811 .text
25812 sethi %tgd_hi22(foo), %o0
25813 add %o0, %tgd_lo10(foo), %o1
25814 add %l7, %o1, %o0, %tgd_add(foo)
25815 call __tls_get_addr, %tgd_call(foo)
25816 sethi %tldm_hi22(foo), %l1
25817 add %l1, %tldm_lo10(foo), %l2
25818 add %l7, %l2, %o0, %tldm_add(foo)
25819 call __tls_get_addr, %tldm_call(foo)
25820 sethi %tldo_hix22(foo), %l3
25821 xor %l3, %tldo_lox10(foo), %l4
25822 add %o0, %l4, %l5, %tldo_add(foo)
25823 sethi %tie_hi22(foo), %o3
25824 add %o3, %tie_lo10(foo), %o3
25825 ld [%l7 + %o3], %o2, %tie_ld(foo)
25826 add %g7, %o2, %o4, %tie_add(foo)
25827 sethi %tle_hix22(foo), %l1
25828 xor %l1, %tle_lox10(foo), %o5
25829 ld [%g7 + %o5], %o1"
25830 ;;
25831 xtensa*-*-*)
25832 conftest_s='
25833 .section ".tdata","awT",@progbits
25834 foo: .long 25
25835 .text
25836 movi a8, foo@TLSFUNC
25837 movi a10, foo@TLSARG
25838 callx8.tls a8, foo@TLSCALL'
25839 ;;
25840 esac
25841 set_have_as_tls=no
25842 if test "x$enable_tls" = xno ; then
25843 : # TLS explicitly disabled.
25844 elif test "x$enable_tls" = xyes ; then
25845 set_have_as_tls=yes # TLS explicitly enabled.
25846 elif test -z "$conftest_s"; then
25847 : # If we don't have a check, assume no support.
25848 else
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25850 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25851 if ${gcc_cv_as_tls+:} false; then :
25852 $as_echo_n "(cached) " >&6
25853 else
25854 gcc_cv_as_tls=no
25855 if test x$gcc_cv_as != x; then
25856 $as_echo "$conftest_s" > conftest.s
25857 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25859 (eval $ac_try) 2>&5
25860 ac_status=$?
25861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25862 test $ac_status = 0; }; }
25863 then
25864 gcc_cv_as_tls=yes
25865 else
25866 echo "configure: failed program was" >&5
25867 cat conftest.s >&5
25868 fi
25869 rm -f conftest.o conftest.s
25870 fi
25871 fi
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25873 $as_echo "$gcc_cv_as_tls" >&6; }
25874 if test $gcc_cv_as_tls = yes; then
25875 set_have_as_tls=yes
25876 fi
25877
25878 fi
25879 if test $set_have_as_tls = yes ; then
25880
25881 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25882
25883 fi
25884
25885 # Target-specific assembler checks.
25886
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25888 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25889 gcc_cv_ld_static_dynamic=no
25890 gcc_cv_ld_static_option='-Bstatic'
25891 gcc_cv_ld_dynamic_option='-Bdynamic'
25892 if test $in_tree_ld = yes ; then
25893 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
25894 gcc_cv_ld_static_dynamic=yes
25895 fi
25896 elif test x$gcc_cv_ld != x; then
25897 # Check if linker supports -Bstatic/-Bdynamic option
25898 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25899 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25900 gcc_cv_ld_static_dynamic=yes
25901 else
25902 case "$target" in
25903 # AIX ld uses -b flags
25904 *-*-aix4.[23]* | *-*-aix[5-9]*)
25905 gcc_cv_ld_static_dynamic=yes
25906 gcc_cv_ld_static_option="-bstatic"
25907 gcc_cv_ld_dynamic_option="-bdynamic"
25908 ;;
25909 # HP-UX ld uses -a flags to select between shared and archive.
25910 *-*-hpux*)
25911 if test x"$gnu_ld" = xno; then
25912 gcc_cv_ld_static_dynamic=yes
25913 gcc_cv_ld_static_option="-aarchive_shared"
25914 gcc_cv_ld_dynamic_option="-adefault"
25915 fi
25916 ;;
25917 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25918 *-*-solaris2*)
25919 gcc_cv_ld_static_dynamic=yes
25920 ;;
25921 esac
25922 fi
25923 fi
25924 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25925
25926 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25927
25928
25929 cat >>confdefs.h <<_ACEOF
25930 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25931 _ACEOF
25932
25933
25934 cat >>confdefs.h <<_ACEOF
25935 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25936 _ACEOF
25937
25938 fi
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25940 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25941
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25943 $as_echo_n "checking linker --version-script option... " >&6; }
25944 gcc_cv_ld_version_script=no
25945 ld_version_script_option=''
25946 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25947 gcc_cv_ld_version_script=yes
25948 ld_version_script_option='--version-script'
25949 elif test x$gcc_cv_ld != x; then
25950 case "$target" in
25951 # Solaris 2 ld always supports -M. It also supports a subset of
25952 # --version-script since Solaris 11.4, but requires
25953 # -z gnu-version-script-compat to activate.
25954 *-*-solaris2*)
25955 gcc_cv_ld_version_script=yes
25956 ld_version_script_option='-M'
25957 ;;
25958 esac
25959 fi
25960 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25962 $as_echo "$gcc_cv_ld_version_script" >&6; }
25963
25964
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25966 $as_echo_n "checking linker soname option... " >&6; }
25967 gcc_cv_ld_soname=no
25968 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25969 gcc_cv_ld_soname=yes
25970 ld_soname_option='-soname'
25971 elif test x$gcc_cv_ld != x; then
25972 case "$target" in
25973 *-*-darwin*)
25974 gcc_cv_ld_soname=yes
25975 ld_soname_option='-install_name'
25976 ;;
25977 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25978 # ld compatiblity since some Solaris 10 update.
25979 *-*-solaris2*)
25980 gcc_cv_ld_soname=yes
25981 ld_soname_option='-h'
25982 ;;
25983 esac
25984 fi
25985 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25987 $as_echo "$gcc_cv_ld_soname" >&6; }
25988
25989
25990 if test x"$demangler_in_ld" = xyes; then
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25992 $as_echo_n "checking linker --demangle support... " >&6; }
25993 gcc_cv_ld_demangle=no
25994 if test $in_tree_ld = yes; then
25995 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 \
25996 gcc_cv_ld_demangle=yes
25997 fi
25998 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25999 # Check if the GNU linker supports --demangle option
26000 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
26001 gcc_cv_ld_demangle=yes
26002 fi
26003 fi
26004 if test x"$gcc_cv_ld_demangle" = xyes; then
26005
26006 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26007
26008 fi
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26010 $as_echo "$gcc_cv_ld_demangle" >&6; }
26011 fi
26012
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26014 $as_echo_n "checking linker plugin support... " >&6; }
26015 gcc_cv_lto_plugin=0
26016 if test -f liblto_plugin.la; then
26017 save_ld_ver="$ld_ver"
26018 save_ld_vers_major="$ld_vers_major"
26019 save_ld_vers_minor="$ld_vers_minor"
26020 save_ld_is_gold="$ld_is_gold"
26021
26022 ld_is_gold=no
26023
26024 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
26025 ld_ver="GNU ld"
26026 # FIXME: ld_is_gold?
26027 ld_vers_major="$gcc_cv_gld_major_version"
26028 ld_vers_minor="$gcc_cv_gld_minor_version"
26029 else
26030 # Determine plugin linker version.
26031 # FIXME: Partial duplicate from above, generalize.
26032 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26033 if echo "$ld_ver" | grep GNU > /dev/null; then
26034 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
26035 ld_is_gold=yes
26036 ld_vers=`echo $ld_ver | sed -n \
26037 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26038 else
26039 ld_vers=`echo $ld_ver | sed -n \
26040 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26041 fi
26042 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26043 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26044 fi
26045 fi
26046
26047 # Determine plugin support.
26048 if echo "$ld_ver" | grep GNU > /dev/null; then
26049 # Require GNU ld or gold 2.21+ for plugin support by default.
26050 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26051 gcc_cv_lto_plugin=2
26052 elif test "$ld_is_mold" = yes; then
26053 gcc_cv_lto_plugin=2
26054 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26055 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26056 gcc_cv_lto_plugin=1
26057 fi
26058 fi
26059
26060 ld_ver="$save_ld_ver"
26061 ld_vers_major="$save_ld_vers_major"
26062 ld_vers_minor="$save_ld_vers_minor"
26063 ld_is_gold="$save_ld_is_gold"
26064 fi
26065
26066 cat >>confdefs.h <<_ACEOF
26067 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26068 _ACEOF
26069
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26071 $as_echo "$gcc_cv_lto_plugin" >&6; }
26072
26073 # Target OS-specific assembler checks.
26074
26075 case "$target_os" in
26076 darwin*)
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26078 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26079 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
26080 $as_echo_n "(cached) " >&6
26081 else
26082 gcc_cv_as_mmacosx_version_min=no
26083 if test x$gcc_cv_as != x; then
26084 $as_echo '.text' > conftest.s
26085 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26087 (eval $ac_try) 2>&5
26088 ac_status=$?
26089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26090 test $ac_status = 0; }; }
26091 then
26092 gcc_cv_as_mmacosx_version_min=yes
26093 else
26094 echo "configure: failed program was" >&5
26095 cat conftest.s >&5
26096 fi
26097 rm -f conftest.o conftest.s
26098 fi
26099 fi
26100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26101 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26102 if test $gcc_cv_as_mmacosx_version_min = yes; then
26103
26104 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26105
26106 fi
26107
26108 ;;
26109 esac
26110
26111 # Target CPU-specific assembler checks.
26112
26113 case "$target" in
26114 aarch64*-*-*)
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26116 $as_echo_n "checking assembler for -mabi option... " >&6; }
26117 if ${gcc_cv_as_aarch64_mabi+:} false; then :
26118 $as_echo_n "(cached) " >&6
26119 else
26120 gcc_cv_as_aarch64_mabi=no
26121 if test x$gcc_cv_as != x; then
26122 $as_echo '.text' > conftest.s
26123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26125 (eval $ac_try) 2>&5
26126 ac_status=$?
26127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26128 test $ac_status = 0; }; }
26129 then
26130 gcc_cv_as_aarch64_mabi=yes
26131 else
26132 echo "configure: failed program was" >&5
26133 cat conftest.s >&5
26134 fi
26135 rm -f conftest.o conftest.s
26136 fi
26137 fi
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26139 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26140
26141
26142 if test x$gcc_cv_as_aarch64_mabi = xyes; then
26143
26144 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26145
26146 else
26147 if test x$with_abi = xilp32; then
26148 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26149 Upgrade the Assembler." "$LINENO" 5
26150 fi
26151 if test x"$with_multilib_list" = xdefault; then
26152 TM_MULTILIB_CONFIG=lp64
26153 else
26154 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
26155 for aarch64_multilib in ${aarch64_multilibs}; do
26156 case ${aarch64_multilib} in
26157 ilp32)
26158 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26159 Upgrade the Assembler." "$LINENO" 5
26160 ;;
26161 *)
26162 ;;
26163 esac
26164 done
26165 fi
26166 fi
26167 # Check if we have binutils support for relocations types needed by -fpic
26168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26169 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26170 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
26171 $as_echo_n "(cached) " >&6
26172 else
26173 gcc_cv_as_aarch64_picreloc=no
26174 if test x$gcc_cv_as != x; then
26175 $as_echo '
26176 .text
26177 ldr x0, [x2, #:gotpage_lo15:globalsym]
26178 ' > conftest.s
26179 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26181 (eval $ac_try) 2>&5
26182 ac_status=$?
26183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26184 test $ac_status = 0; }; }
26185 then
26186 gcc_cv_as_aarch64_picreloc=yes
26187 else
26188 echo "configure: failed program was" >&5
26189 cat conftest.s >&5
26190 fi
26191 rm -f conftest.o conftest.s
26192 fi
26193 fi
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26195 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26196 if test $gcc_cv_as_aarch64_picreloc = yes; then
26197
26198 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26199
26200 fi
26201
26202 # Enable Branch Target Identification Mechanism and Return Address
26203 # Signing by default.
26204 # Check whether --enable-standard-branch-protection was given.
26205 if test "${enable_standard_branch_protection+set}" = set; then :
26206 enableval=$enable_standard_branch_protection;
26207 case $enableval in
26208 yes)
26209 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26210 ;;
26211 no)
26212 ;;
26213 *)
26214 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26215 Valid choices are 'yes' and 'no'." "$LINENO" 5
26216 ;;
26217 esac
26218
26219 fi
26220
26221 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26222 # Check whether --enable-fix-cortex-a53-835769 was given.
26223 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26224 enableval=$enable_fix_cortex_a53_835769;
26225 case $enableval in
26226 yes)
26227 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26228 ;;
26229 no)
26230 ;;
26231 *)
26232 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26233 Valid choices are 'yes' and 'no'." "$LINENO" 5
26234 ;;
26235
26236 esac
26237
26238 fi
26239
26240 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26241 # Check whether --enable-fix-cortex-a53-843419 was given.
26242 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26243 enableval=$enable_fix_cortex_a53_843419;
26244 case $enableval in
26245 yes)
26246 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26247 ;;
26248 no)
26249 ;;
26250 *)
26251 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26252 Valid choices are 'yes' and 'no'." "$LINENO" 5
26253 ;;
26254
26255 esac
26256
26257 fi
26258
26259 ;;
26260
26261 # All TARGET_ABI_OSF targets.
26262 alpha*-*-linux* | alpha*-*-*bsd*)
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26264 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26265 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26266 $as_echo_n "(cached) " >&6
26267 else
26268 gcc_cv_as_alpha_explicit_relocs=no
26269 if test x$gcc_cv_as != x; then
26270 $as_echo ' .set nomacro
26271 .text
26272 extbl $3, $2, $3 !lituse_bytoff!1
26273 ldq $2, a($29) !literal!1
26274 ldq $4, b($29) !literal!2
26275 ldq_u $3, 0($2) !lituse_base!1
26276 ldq $27, f($29) !literal!5
26277 jsr $26, ($27), f !lituse_jsr!5
26278 ldah $29, 0($26) !gpdisp!3
26279 lda $0, c($29) !gprel
26280 ldah $1, d($29) !gprelhigh
26281 lda $1, d($1) !gprellow
26282 lda $29, 0($29) !gpdisp!3' > conftest.s
26283 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26285 (eval $ac_try) 2>&5
26286 ac_status=$?
26287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26288 test $ac_status = 0; }; }
26289 then
26290 gcc_cv_as_alpha_explicit_relocs=yes
26291 else
26292 echo "configure: failed program was" >&5
26293 cat conftest.s >&5
26294 fi
26295 rm -f conftest.o conftest.s
26296 fi
26297 fi
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26299 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26300 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26301
26302 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26303
26304 fi
26305
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26307 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26308 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26309 $as_echo_n "(cached) " >&6
26310 else
26311 gcc_cv_as_alpha_jsrdirect_relocs=no
26312 if test x$gcc_cv_as != x; then
26313 $as_echo ' .set nomacro
26314 .text
26315 ldq $27, a($29) !literal!1
26316 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26317 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26319 (eval $ac_try) 2>&5
26320 ac_status=$?
26321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26322 test $ac_status = 0; }; }
26323 then
26324 gcc_cv_as_alpha_jsrdirect_relocs=yes
26325 else
26326 echo "configure: failed program was" >&5
26327 cat conftest.s >&5
26328 fi
26329 rm -f conftest.o conftest.s
26330 fi
26331 fi
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26333 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26334 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26335
26336 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26337
26338 fi
26339
26340 ;;
26341
26342 avr-*-*)
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26344 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26345 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26346 $as_echo_n "(cached) " >&6
26347 else
26348 gcc_cv_as_avr_mlink_relax=no
26349 if test x$gcc_cv_as != x; then
26350 $as_echo '.text' > conftest.s
26351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26353 (eval $ac_try) 2>&5
26354 ac_status=$?
26355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26356 test $ac_status = 0; }; }
26357 then
26358 gcc_cv_as_avr_mlink_relax=yes
26359 else
26360 echo "configure: failed program was" >&5
26361 cat conftest.s >&5
26362 fi
26363 rm -f conftest.o conftest.s
26364 fi
26365 fi
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26367 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26368 if test $gcc_cv_as_avr_mlink_relax = yes; then
26369
26370 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26371
26372 fi
26373
26374
26375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26376 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26377 if ${gcc_cv_as_avr_mrmw+:} false; then :
26378 $as_echo_n "(cached) " >&6
26379 else
26380 gcc_cv_as_avr_mrmw=no
26381 if test x$gcc_cv_as != x; then
26382 $as_echo '.text' > conftest.s
26383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26385 (eval $ac_try) 2>&5
26386 ac_status=$?
26387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26388 test $ac_status = 0; }; }
26389 then
26390 gcc_cv_as_avr_mrmw=yes
26391 else
26392 echo "configure: failed program was" >&5
26393 cat conftest.s >&5
26394 fi
26395 rm -f conftest.o conftest.s
26396 fi
26397 fi
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26399 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26400 if test $gcc_cv_as_avr_mrmw = yes; then
26401
26402 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26403
26404 fi
26405
26406
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26408 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26409 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26410 $as_echo_n "(cached) " >&6
26411 else
26412 gcc_cv_as_avr_mgccisr=no
26413 if test x$gcc_cv_as != x; then
26414 $as_echo '.text
26415 __gcc_isr 1
26416 __gcc_isr 2
26417 __gcc_isr 0,r24
26418 ' > conftest.s
26419 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26421 (eval $ac_try) 2>&5
26422 ac_status=$?
26423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26424 test $ac_status = 0; }; }
26425 then
26426 gcc_cv_as_avr_mgccisr=yes
26427 else
26428 echo "configure: failed program was" >&5
26429 cat conftest.s >&5
26430 fi
26431 rm -f conftest.o conftest.s
26432 fi
26433 fi
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26435 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26436 if test $gcc_cv_as_avr_mgccisr = yes; then
26437
26438 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26439
26440 fi
26441
26442
26443 # Check how default linker description file implements .rodata for
26444 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26445 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26447 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26448 cat > conftest.s <<EOF
26449 .section .rodata,"a",@progbits
26450 .global xxvaryy
26451 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26452 xxvaryy:
26453 .word 1
26454 EOF
26455 rm -f conftest.nm
26456 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26458 (eval $ac_try) 2>&5
26459 ac_status=$?
26460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26461 test $ac_status = 0; }; }
26462 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26464 (eval $ac_try) 2>&5
26465 ac_status=$?
26466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26467 test $ac_status = 0; }; }
26468 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26470 (eval $ac_try) 2>&5
26471 ac_status=$?
26472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26473 test $ac_status = 0; }; }
26474 if test -s conftest.nm
26475 then
26476 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26478 $as_echo "yes" >&6; }
26479
26480 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26481
26482 else
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26484 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26485 echo "$as_me: nm output was" >&5
26486 cat conftest.nm >&5
26487 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26488 { $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
26489 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26490 fi
26491 else
26492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26493 $as_echo "test failed" >&6; }
26494 echo "$as_me: failed program was" >&5
26495 cat conftest.s >&5
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26497 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26498 fi
26499 rm -f conftest.s conftest.o conftest.elf conftest.nm
26500 ;;
26501
26502 cris-*-*)
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26504 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26505 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26506 $as_echo_n "(cached) " >&6
26507 else
26508 gcc_cv_as_cris_no_mul_bug=no
26509 if test x$gcc_cv_as != x; then
26510 $as_echo '.text' > conftest.s
26511 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26513 (eval $ac_try) 2>&5
26514 ac_status=$?
26515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26516 test $ac_status = 0; }; }
26517 then
26518 gcc_cv_as_cris_no_mul_bug=yes
26519 else
26520 echo "configure: failed program was" >&5
26521 cat conftest.s >&5
26522 fi
26523 rm -f conftest.o conftest.s
26524 fi
26525 fi
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26527 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26528 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26529
26530 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26531
26532 fi
26533
26534 ;;
26535
26536 sparc*-*-*)
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26538 $as_echo_n "checking assembler for -relax option... " >&6; }
26539 if ${gcc_cv_as_sparc_relax+:} false; then :
26540 $as_echo_n "(cached) " >&6
26541 else
26542 gcc_cv_as_sparc_relax=no
26543 if test x$gcc_cv_as != x; then
26544 $as_echo '.text' > conftest.s
26545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26547 (eval $ac_try) 2>&5
26548 ac_status=$?
26549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26550 test $ac_status = 0; }; }
26551 then
26552 gcc_cv_as_sparc_relax=yes
26553 else
26554 echo "configure: failed program was" >&5
26555 cat conftest.s >&5
26556 fi
26557 rm -f conftest.o conftest.s
26558 fi
26559 fi
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26561 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26562 if test $gcc_cv_as_sparc_relax = yes; then
26563
26564 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26565
26566 fi
26567
26568
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26570 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26571 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26572 $as_echo_n "(cached) " >&6
26573 else
26574 gcc_cv_as_sparc_gotdata_op=no
26575 if test x$gcc_cv_as != x; then
26576 $as_echo '.text
26577 .align 4
26578 foo:
26579 nop
26580 bar:
26581 sethi %gdop_hix22(foo), %g1
26582 xor %g1, %gdop_lox10(foo), %g1
26583 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26584 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26586 (eval $ac_try) 2>&5
26587 ac_status=$?
26588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26589 test $ac_status = 0; }; }
26590 then
26591 if test x$gcc_cv_ld != x \
26592 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26593 if test x$gcc_cv_objdump != x; then
26594 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26595 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26596 gcc_cv_as_sparc_gotdata_op=no
26597 else
26598 gcc_cv_as_sparc_gotdata_op=yes
26599 fi
26600 fi
26601 fi
26602 rm -f conftest
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_sparc_gotdata_op" >&5
26611 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26612 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26613
26614 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26615
26616 fi
26617
26618
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26620 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26621 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26622 $as_echo_n "(cached) " >&6
26623 else
26624 gcc_cv_as_sparc_ua_pcrel=no
26625 if test x$gcc_cv_as != x; then
26626 $as_echo '.text
26627 foo:
26628 nop
26629 .data
26630 .align 4
26631 .byte 0
26632 .uaword %r_disp32(foo)' > conftest.s
26633 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26635 (eval $ac_try) 2>&5
26636 ac_status=$?
26637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26638 test $ac_status = 0; }; }
26639 then
26640 if test x$gcc_cv_ld != x \
26641 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26642 gcc_cv_as_sparc_ua_pcrel=yes
26643 fi
26644 rm -f conftest
26645 else
26646 echo "configure: failed program was" >&5
26647 cat conftest.s >&5
26648 fi
26649 rm -f conftest.o conftest.s
26650 fi
26651 fi
26652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26653 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26654 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26655
26656 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26657
26658
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26660 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26661 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26662 $as_echo_n "(cached) " >&6
26663 else
26664 gcc_cv_as_sparc_ua_pcrel_hidden=no
26665 if test x$gcc_cv_as != x; then
26666 $as_echo '.data
26667 .align 4
26668 .byte 0x31
26669 .uaword %r_disp32(foo)
26670 .byte 0x32, 0x33, 0x34
26671 .global foo
26672 .hidden foo
26673 foo:
26674 .skip 4' > conftest.s
26675 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26677 (eval $ac_try) 2>&5
26678 ac_status=$?
26679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26680 test $ac_status = 0; }; }
26681 then
26682 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26683 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26684 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26685 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26686 if $gcc_cv_objdump -R conftest 2> /dev/null \
26687 | grep 'DISP32' > /dev/null 2>&1; then
26688 :
26689 else
26690 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26691 fi
26692 fi
26693 rm -f conftest
26694 else
26695 echo "configure: failed program was" >&5
26696 cat conftest.s >&5
26697 fi
26698 rm -f conftest.o conftest.s
26699 fi
26700 fi
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26702 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26703 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26704
26705 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26706
26707 fi
26708
26709
26710 fi
26711 # unaligned pcrel relocs
26712
26713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26714 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26715 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26716 $as_echo_n "(cached) " >&6
26717 else
26718 gcc_cv_as_sparc_offsetable_lo10=no
26719 if test x$gcc_cv_as != x; then
26720 $as_echo '.text
26721 or %g1, %lo(ab) + 12, %g1
26722 or %g1, %lo(ab + 12), %g1' > conftest.s
26723 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26725 (eval $ac_try) 2>&5
26726 ac_status=$?
26727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26728 test $ac_status = 0; }; }
26729 then
26730 if test x$gcc_cv_objdump != x \
26731 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26732 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26733 gcc_cv_as_sparc_offsetable_lo10=yes
26734 fi
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_sparc_offsetable_lo10" >&5
26743 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26744 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26745
26746 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26747
26748 fi
26749
26750
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26752 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26753 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26754 $as_echo_n "(cached) " >&6
26755 else
26756 gcc_cv_as_sparc_fmaf=no
26757 if test x$gcc_cv_as != x; then
26758 $as_echo '.text
26759 .register %g2, #scratch
26760 .register %g3, #scratch
26761 .align 4
26762 fmaddd %f0, %f2, %f4, %f6
26763 addxccc %g1, %g2, %g3
26764 fsrl32 %f2, %f4, %f8
26765 fnaddd %f10, %f12, %f14' > conftest.s
26766 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26768 (eval $ac_try) 2>&5
26769 ac_status=$?
26770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26771 test $ac_status = 0; }; }
26772 then
26773 gcc_cv_as_sparc_fmaf=yes
26774 else
26775 echo "configure: failed program was" >&5
26776 cat conftest.s >&5
26777 fi
26778 rm -f conftest.o conftest.s
26779 fi
26780 fi
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26782 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26783 if test $gcc_cv_as_sparc_fmaf = yes; then
26784
26785 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26786
26787 fi
26788
26789
26790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26791 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26792 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26793 $as_echo_n "(cached) " >&6
26794 else
26795 gcc_cv_as_sparc_sparc4=no
26796 if test x$gcc_cv_as != x; then
26797 $as_echo '.text
26798 .register %g2, #scratch
26799 .register %g3, #scratch
26800 .align 4
26801 cxbe %g2, %g3, 1f
26802 1: cwbneg %g2, %g3, 1f
26803 1: sha1
26804 md5
26805 aes_kexpand0 %f4, %f6, %f8
26806 des_round %f38, %f40, %f42, %f44
26807 camellia_f %f54, %f56, %f58, %f60
26808 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26809 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26811 (eval $ac_try) 2>&5
26812 ac_status=$?
26813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26814 test $ac_status = 0; }; }
26815 then
26816 gcc_cv_as_sparc_sparc4=yes
26817 else
26818 echo "configure: failed program was" >&5
26819 cat conftest.s >&5
26820 fi
26821 rm -f conftest.o conftest.s
26822 fi
26823 fi
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26825 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26826 if test $gcc_cv_as_sparc_sparc4 = yes; then
26827
26828 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26829
26830 fi
26831
26832
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26834 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26835 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26836 $as_echo_n "(cached) " >&6
26837 else
26838 gcc_cv_as_sparc_sparc5=no
26839 if test x$gcc_cv_as != x; then
26840 $as_echo '.text
26841 .register %g2, #scratch
26842 .register %g3, #scratch
26843 .align 4
26844 subxc %g1, %g2, %g3
26845 fpadd8 %f0, %f2, %f4' > conftest.s
26846 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26848 (eval $ac_try) 2>&5
26849 ac_status=$?
26850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26851 test $ac_status = 0; }; }
26852 then
26853 gcc_cv_as_sparc_sparc5=yes
26854 else
26855 echo "configure: failed program was" >&5
26856 cat conftest.s >&5
26857 fi
26858 rm -f conftest.o conftest.s
26859 fi
26860 fi
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26862 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26863 if test $gcc_cv_as_sparc_sparc5 = yes; then
26864
26865 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26866
26867 fi
26868
26869
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26871 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26872 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26873 $as_echo_n "(cached) " >&6
26874 else
26875 gcc_cv_as_sparc_sparc6=no
26876 if test x$gcc_cv_as != x; then
26877 $as_echo '.text
26878 .register %g2, #scratch
26879 .register %g3, #scratch
26880 .align 4
26881 rd %entropy, %g1
26882 fpsll64x %f0, %f2, %f4' > conftest.s
26883 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26885 (eval $ac_try) 2>&5
26886 ac_status=$?
26887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26888 test $ac_status = 0; }; }
26889 then
26890 gcc_cv_as_sparc_sparc6=yes
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_sparc_sparc6" >&5
26899 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26900 if test $gcc_cv_as_sparc_sparc6 = yes; then
26901
26902 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26903
26904 fi
26905
26906
26907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26908 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26909 if ${gcc_cv_as_sparc_leon+:} false; then :
26910 $as_echo_n "(cached) " >&6
26911 else
26912 gcc_cv_as_sparc_leon=no
26913 if test x$gcc_cv_as != x; then
26914 $as_echo '.text
26915 .register %g2, #scratch
26916 .register %g3, #scratch
26917 .align 4
26918 smac %g2, %g3, %g1
26919 umac %g2, %g3, %g1
26920 casa [%g2] 0xb, %g3, %g1' > conftest.s
26921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26923 (eval $ac_try) 2>&5
26924 ac_status=$?
26925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26926 test $ac_status = 0; }; }
26927 then
26928 gcc_cv_as_sparc_leon=yes
26929 else
26930 echo "configure: failed program was" >&5
26931 cat conftest.s >&5
26932 fi
26933 rm -f conftest.o conftest.s
26934 fi
26935 fi
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26937 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26938 if test $gcc_cv_as_sparc_leon = yes; then
26939
26940 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26941
26942 fi
26943
26944 ;;
26945
26946 i[34567]86-*-* | x86_64-*-*)
26947 case $target_os in
26948 cygwin*)
26949 # Full C++ conformance when using a shared libstdc++-v3 requires some
26950 # support from the Cygwin DLL, which in more recent versions exports
26951 # wrappers to aid in interposing and redirecting operators new, delete,
26952 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26953 # are configuring for a version of Cygwin that exports the wrappers.
26954 if test x$host = x$target && test x$host_cpu = xi686; then
26955 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26956 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26957 gcc_ac_cygwin_dll_wrappers=yes
26958 else
26959 gcc_ac_cygwin_dll_wrappers=no
26960 fi
26961
26962 else
26963 # Can't check presence of libc functions during cross-compile, so
26964 # we just have to assume we're building for an up-to-date target.
26965 gcc_ac_cygwin_dll_wrappers=yes
26966 fi
26967
26968 cat >>confdefs.h <<_ACEOF
26969 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26970 _ACEOF
26971
26972 esac
26973 case $target_os in
26974 cygwin* | pe | mingw32*)
26975 # Recent binutils allows the three-operand form of ".comm" on PE. This
26976 # definition is used unconditionally to initialise the default state of
26977 # the target option variable that governs usage of the feature.
26978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26979 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26980 if ${gcc_cv_as_comm_has_align+:} false; then :
26981 $as_echo_n "(cached) " >&6
26982 else
26983 gcc_cv_as_comm_has_align=no
26984 if test x$gcc_cv_as != x; then
26985 $as_echo '.comm foo,1,32' > conftest.s
26986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26988 (eval $ac_try) 2>&5
26989 ac_status=$?
26990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26991 test $ac_status = 0; }; }
26992 then
26993 gcc_cv_as_comm_has_align=yes
26994 else
26995 echo "configure: failed program was" >&5
26996 cat conftest.s >&5
26997 fi
26998 rm -f conftest.o conftest.s
26999 fi
27000 fi
27001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27002 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27003
27004
27005
27006 cat >>confdefs.h <<_ACEOF
27007 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27008 _ACEOF
27009
27010 # Used for DWARF 2 in PE
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27012 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27013 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
27014 $as_echo_n "(cached) " >&6
27015 else
27016 gcc_cv_as_ix86_pe_secrel32=no
27017 if test x$gcc_cv_as != x; then
27018 $as_echo '.text
27019 foo: nop
27020 .data
27021 .secrel32 foo' > conftest.s
27022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27024 (eval $ac_try) 2>&5
27025 ac_status=$?
27026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27027 test $ac_status = 0; }; }
27028 then
27029 if test x$gcc_cv_ld != x \
27030 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
27031 gcc_cv_as_ix86_pe_secrel32=yes
27032 fi
27033 rm -f conftest
27034 else
27035 echo "configure: failed program was" >&5
27036 cat conftest.s >&5
27037 fi
27038 rm -f conftest.o conftest.s
27039 fi
27040 fi
27041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27042 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27043 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27044
27045 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27046
27047 fi
27048
27049 # Test if the assembler supports the extended form of the .section
27050 # directive that specifies section alignment. LTO support uses this,
27051 # but normally only after installation, so we warn but don't fail the
27052 # configure if LTO is enabled but the assembler does not support it.
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27054 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27055 if ${gcc_cv_as_section_has_align+:} false; then :
27056 $as_echo_n "(cached) " >&6
27057 else
27058 gcc_cv_as_section_has_align=no
27059 if test x$gcc_cv_as != x; then
27060 $as_echo '.section lto_test,"dr0"' > conftest.s
27061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27063 (eval $ac_try) 2>&5
27064 ac_status=$?
27065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27066 test $ac_status = 0; }; }
27067 then
27068 gcc_cv_as_section_has_align=yes
27069 else
27070 echo "configure: failed program was" >&5
27071 cat conftest.s >&5
27072 fi
27073 rm -f conftest.o conftest.s
27074 fi
27075 fi
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27077 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27078
27079
27080 if test x$gcc_cv_as_section_has_align != xyes; then
27081 case ",$enable_languages," in
27082 *,lto,*)
27083 { $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
27084 $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;}
27085 ;;
27086 esac
27087 fi
27088 ;;
27089 esac
27090 case $target_os in
27091 darwin2* | darwin19*)
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27093 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27094 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
27095 $as_echo_n "(cached) " >&6
27096 else
27097 gcc_cv_as_mllvm_x86_pad_for_align=no
27098 if test x$gcc_cv_as != x; then
27099 $as_echo '.text' > conftest.s
27100 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27102 (eval $ac_try) 2>&5
27103 ac_status=$?
27104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27105 test $ac_status = 0; }; }
27106 then
27107 gcc_cv_as_mllvm_x86_pad_for_align=yes
27108 else
27109 echo "configure: failed program was" >&5
27110 cat conftest.s >&5
27111 fi
27112 rm -f conftest.o conftest.s
27113 fi
27114 fi
27115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27116 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27117 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27118
27119 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27120
27121 fi
27122
27123 ;;
27124 esac
27125
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27127 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27128 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
27129 $as_echo_n "(cached) " >&6
27130 else
27131 gcc_cv_as_ix86_xbrace_comment=no
27132 if test x$gcc_cv_as != x; then
27133 $as_echo '.text' > conftest.s
27134 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27136 (eval $ac_try) 2>&5
27137 ac_status=$?
27138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27139 test $ac_status = 0; }; }
27140 then
27141 gcc_cv_as_ix86_xbrace_comment=yes
27142 else
27143 echo "configure: failed program was" >&5
27144 cat conftest.s >&5
27145 fi
27146 rm -f conftest.o conftest.s
27147 fi
27148 fi
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27150 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27151 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27152
27153 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27154
27155 fi
27156
27157
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27159 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27160 if ${gcc_cv_as_ix86_filds+:} false; then :
27161 $as_echo_n "(cached) " >&6
27162 else
27163 gcc_cv_as_ix86_filds=no
27164 if test x$gcc_cv_as != x; then
27165 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27168 (eval $ac_try) 2>&5
27169 ac_status=$?
27170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27171 test $ac_status = 0; }; }
27172 then
27173 gcc_cv_as_ix86_filds=yes
27174 else
27175 echo "configure: failed program was" >&5
27176 cat conftest.s >&5
27177 fi
27178 rm -f conftest.o conftest.s
27179 fi
27180 fi
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27182 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27183 if test $gcc_cv_as_ix86_filds = yes; then
27184
27185 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27186
27187 fi
27188
27189
27190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27191 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27192 if ${gcc_cv_as_ix86_fildq+:} false; then :
27193 $as_echo_n "(cached) " >&6
27194 else
27195 gcc_cv_as_ix86_fildq=no
27196 if test x$gcc_cv_as != x; then
27197 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27198 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27200 (eval $ac_try) 2>&5
27201 ac_status=$?
27202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27203 test $ac_status = 0; }; }
27204 then
27205 gcc_cv_as_ix86_fildq=yes
27206 else
27207 echo "configure: failed program was" >&5
27208 cat conftest.s >&5
27209 fi
27210 rm -f conftest.o conftest.s
27211 fi
27212 fi
27213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27214 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27215 if test $gcc_cv_as_ix86_fildq = yes; then
27216
27217 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27218
27219 fi
27220
27221
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27223 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27224 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27225 $as_echo_n "(cached) " >&6
27226 else
27227 gcc_cv_as_ix86_cmov_sun_syntax=no
27228 if test x$gcc_cv_as != x; then
27229 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27232 (eval $ac_try) 2>&5
27233 ac_status=$?
27234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27235 test $ac_status = 0; }; }
27236 then
27237 gcc_cv_as_ix86_cmov_sun_syntax=yes
27238 else
27239 echo "configure: failed program was" >&5
27240 cat conftest.s >&5
27241 fi
27242 rm -f conftest.o conftest.s
27243 fi
27244 fi
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27246 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27247 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27248
27249 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27250
27251 fi
27252
27253
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27255 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27256 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27257 $as_echo_n "(cached) " >&6
27258 else
27259 gcc_cv_as_ix86_ffreep=no
27260 if test x$gcc_cv_as != x; then
27261 $as_echo 'ffreep %st(1)' > conftest.s
27262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27264 (eval $ac_try) 2>&5
27265 ac_status=$?
27266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27267 test $ac_status = 0; }; }
27268 then
27269 gcc_cv_as_ix86_ffreep=yes
27270 else
27271 echo "configure: failed program was" >&5
27272 cat conftest.s >&5
27273 fi
27274 rm -f conftest.o conftest.s
27275 fi
27276 fi
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27278 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27279 if test $gcc_cv_as_ix86_ffreep = yes; then
27280
27281 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27282
27283 fi
27284
27285
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27287 $as_echo_n "checking assembler for .quad directive... " >&6; }
27288 if ${gcc_cv_as_ix86_quad+:} false; then :
27289 $as_echo_n "(cached) " >&6
27290 else
27291 gcc_cv_as_ix86_quad=no
27292 if test x$gcc_cv_as != x; then
27293 $as_echo '.quad 0' > conftest.s
27294 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27296 (eval $ac_try) 2>&5
27297 ac_status=$?
27298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27299 test $ac_status = 0; }; }
27300 then
27301 gcc_cv_as_ix86_quad=yes
27302 else
27303 echo "configure: failed program was" >&5
27304 cat conftest.s >&5
27305 fi
27306 rm -f conftest.o conftest.s
27307 fi
27308 fi
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27310 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27311 if test $gcc_cv_as_ix86_quad = yes; then
27312
27313 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27314
27315 fi
27316
27317
27318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27319 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27320 if ${gcc_cv_as_ix86_sahf+:} false; then :
27321 $as_echo_n "(cached) " >&6
27322 else
27323 gcc_cv_as_ix86_sahf=no
27324 if test x$gcc_cv_as != x; then
27325 $as_echo '.code64
27326 sahf' > conftest.s
27327 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27329 (eval $ac_try) 2>&5
27330 ac_status=$?
27331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27332 test $ac_status = 0; }; }
27333 then
27334 gcc_cv_as_ix86_sahf=yes
27335 else
27336 echo "configure: failed program was" >&5
27337 cat conftest.s >&5
27338 fi
27339 rm -f conftest.o conftest.s
27340 fi
27341 fi
27342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27343 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27344 if test $gcc_cv_as_ix86_sahf = yes; then
27345
27346 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27347
27348 fi
27349
27350
27351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27352 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27353 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27354 $as_echo_n "(cached) " >&6
27355 else
27356 gcc_cv_as_ix86_interunit_movq=no
27357 if test x$gcc_cv_as != x; then
27358 $as_echo '.code64
27359 movq %mm0, %rax
27360 movq %rax, %xmm0' > conftest.s
27361 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27363 (eval $ac_try) 2>&5
27364 ac_status=$?
27365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27366 test $ac_status = 0; }; }
27367 then
27368 gcc_cv_as_ix86_interunit_movq=yes
27369 else
27370 echo "configure: failed program was" >&5
27371 cat conftest.s >&5
27372 fi
27373 rm -f conftest.o conftest.s
27374 fi
27375 fi
27376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27377 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27378
27379
27380
27381 cat >>confdefs.h <<_ACEOF
27382 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27383 _ACEOF
27384
27385
27386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27387 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27388 if ${gcc_cv_as_ix86_hle+:} false; then :
27389 $as_echo_n "(cached) " >&6
27390 else
27391 gcc_cv_as_ix86_hle=no
27392 if test x$gcc_cv_as != x; then
27393 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27394 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27396 (eval $ac_try) 2>&5
27397 ac_status=$?
27398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27399 test $ac_status = 0; }; }
27400 then
27401 gcc_cv_as_ix86_hle=yes
27402 else
27403 echo "configure: failed program was" >&5
27404 cat conftest.s >&5
27405 fi
27406 rm -f conftest.o conftest.s
27407 fi
27408 fi
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27410 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27411 if test $gcc_cv_as_ix86_hle = yes; then
27412
27413 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27414
27415 fi
27416
27417
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27419 $as_echo_n "checking assembler for swap suffix... " >&6; }
27420 if ${gcc_cv_as_ix86_swap+:} false; then :
27421 $as_echo_n "(cached) " >&6
27422 else
27423 gcc_cv_as_ix86_swap=no
27424 if test x$gcc_cv_as != x; then
27425 $as_echo 'movl.s %esp, %ebp' > conftest.s
27426 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27428 (eval $ac_try) 2>&5
27429 ac_status=$?
27430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27431 test $ac_status = 0; }; }
27432 then
27433 gcc_cv_as_ix86_swap=yes
27434 else
27435 echo "configure: failed program was" >&5
27436 cat conftest.s >&5
27437 fi
27438 rm -f conftest.o conftest.s
27439 fi
27440 fi
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27442 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27443 if test $gcc_cv_as_ix86_swap = yes; then
27444
27445 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27446
27447 fi
27448
27449
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27451 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27452 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27453 $as_echo_n "(cached) " >&6
27454 else
27455 gcc_cv_as_ix86_diff_sect_delta=no
27456 if test x$gcc_cv_as != x; then
27457 $as_echo '.section .rodata
27458 .L1:
27459 .long .L2-.L1
27460 .long .L3-.L1
27461 .text
27462 .L3: nop
27463 .L2: nop' > conftest.s
27464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27466 (eval $ac_try) 2>&5
27467 ac_status=$?
27468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27469 test $ac_status = 0; }; }
27470 then
27471 gcc_cv_as_ix86_diff_sect_delta=yes
27472 else
27473 echo "configure: failed program was" >&5
27474 cat conftest.s >&5
27475 fi
27476 rm -f conftest.o conftest.s
27477 fi
27478 fi
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27480 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27481 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27482
27483 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27484
27485 fi
27486
27487
27488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27489 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27490 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27491 $as_echo_n "(cached) " >&6
27492 else
27493 gcc_cv_as_ix86_rep_lock_prefix=no
27494 if test x$gcc_cv_as != x; then
27495 $as_echo 'rep movsl
27496 rep ret
27497 rep nop
27498 rep bsf %ecx, %eax
27499 rep bsr %ecx, %eax
27500 lock addl %edi, (%eax,%esi)
27501 lock orl $0, (%esp)' > 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_ix86_rep_lock_prefix=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_ix86_rep_lock_prefix" >&5
27518 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27519 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27520
27521 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27522
27523 fi
27524
27525
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27527 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27528 if ${gcc_cv_as_ix86_ud2+:} false; then :
27529 $as_echo_n "(cached) " >&6
27530 else
27531 gcc_cv_as_ix86_ud2=no
27532 if test x$gcc_cv_as != x; then
27533 $as_echo 'ud2' > conftest.s
27534 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27536 (eval $ac_try) 2>&5
27537 ac_status=$?
27538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27539 test $ac_status = 0; }; }
27540 then
27541 gcc_cv_as_ix86_ud2=yes
27542 else
27543 echo "configure: failed program was" >&5
27544 cat conftest.s >&5
27545 fi
27546 rm -f conftest.o conftest.s
27547 fi
27548 fi
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27550 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27551 if test $gcc_cv_as_ix86_ud2 = yes; then
27552
27553 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27554
27555 fi
27556
27557
27558 # Enforce 32-bit output with gas and gld.
27559 if test x$gas = xyes; then
27560 as_ix86_gas_32_opt="--32"
27561 fi
27562 if echo "$ld_ver" | grep GNU > /dev/null; then
27563 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27564 ld_ix86_gld_32_opt="-melf_i386_sol2"
27565 else
27566 ld_ix86_gld_32_opt="-melf_i386"
27567 fi
27568 fi
27569
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27571 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27572 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27573 $as_echo_n "(cached) " >&6
27574 else
27575 gcc_cv_as_ix86_tlsgdplt=no
27576 if test x$gcc_cv_as != x; then
27577 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27578 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27580 (eval $ac_try) 2>&5
27581 ac_status=$?
27582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27583 test $ac_status = 0; }; }
27584 then
27585 if test x$gcc_cv_ld != x \
27586 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27587 gcc_cv_as_ix86_tlsgdplt=yes
27588 fi
27589 rm -f conftest
27590 else
27591 echo "configure: failed program was" >&5
27592 cat conftest.s >&5
27593 fi
27594 rm -f conftest.o conftest.s
27595 fi
27596 fi
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27598 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27599 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27600
27601 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27602
27603 fi
27604
27605
27606 conftest_s='
27607 .section .tdata,"aw'$tls_section_flag'",@progbits
27608 tls_ld:
27609 .section .text,"ax",@progbits
27610 call tls_ld@tlsldmplt'
27611
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27613 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27614 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27615 $as_echo_n "(cached) " >&6
27616 else
27617 gcc_cv_as_ix86_tlsldmplt=no
27618 if test x$gcc_cv_as != x; then
27619 $as_echo "$conftest_s" > conftest.s
27620 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27622 (eval $ac_try) 2>&5
27623 ac_status=$?
27624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27625 test $ac_status = 0; }; }
27626 then
27627 if test x$gcc_cv_ld != x \
27628 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27629 gcc_cv_as_ix86_tlsldmplt=yes
27630 fi
27631 rm -f conftest
27632 else
27633 echo "configure: failed program was" >&5
27634 cat conftest.s >&5
27635 fi
27636 rm -f conftest.o conftest.s
27637 fi
27638 fi
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27640 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27641
27642
27643
27644 cat >>confdefs.h <<_ACEOF
27645 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27646 _ACEOF
27647
27648
27649 conftest_s='
27650 .section .text,"ax",@progbits
27651 .globl _start
27652 .type _start, @function
27653 _start:
27654 leal value@tlsldm(%ebx), %eax
27655 call ___tls_get_addr@plt
27656
27657 .section .tdata,"aw'$tls_section_flag'",@progbits
27658 .type value, @object
27659 value:'
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27661 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27662 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27663 $as_echo_n "(cached) " >&6
27664 else
27665 gcc_cv_as_ix86_tlsldm=no
27666 if test x$gcc_cv_as != x; then
27667 $as_echo "$conftest_s" > conftest.s
27668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27670 (eval $ac_try) 2>&5
27671 ac_status=$?
27672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27673 test $ac_status = 0; }; }
27674 then
27675 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27676 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27677 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27678 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27679 gcc_cv_as_ix86_tlsldm=yes
27680 fi
27681 fi
27682 rm -f conftest
27683 else
27684 echo "configure: failed program was" >&5
27685 cat conftest.s >&5
27686 fi
27687 rm -f conftest.o conftest.s
27688 fi
27689 fi
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27691 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27692
27693
27694
27695 cat >>confdefs.h <<_ACEOF
27696 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27697 _ACEOF
27698
27699
27700 conftest_s='
27701 .data
27702 bar:
27703 .byte 1
27704 .text
27705 .global _start
27706 _start:
27707 cmpl $0, bar@GOT
27708 jmp *_start@GOT'
27709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27710 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27711 if ${gcc_cv_as_ix86_got32x+:} false; then :
27712 $as_echo_n "(cached) " >&6
27713 else
27714 gcc_cv_as_ix86_got32x=no
27715 if test x$gcc_cv_as != x; then
27716 $as_echo "$conftest_s" > conftest.s
27717 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27719 (eval $ac_try) 2>&5
27720 ac_status=$?
27721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27722 test $ac_status = 0; }; }
27723 then
27724 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27725 && test x$gcc_cv_readelf != x \
27726 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27727 | grep R_386_GOT32X > /dev/null 2>&1 \
27728 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27729 if $gcc_cv_objdump -dw conftest 2>&1 \
27730 | grep 0xffffff > /dev/null 2>&1; then
27731 gcc_cv_as_ix86_got32x=no
27732 else
27733 gcc_cv_as_ix86_got32x=yes
27734 fi
27735 fi
27736 rm -f conftest
27737 else
27738 echo "configure: failed program was" >&5
27739 cat conftest.s >&5
27740 fi
27741 rm -f conftest.o conftest.s
27742 fi
27743 fi
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27745 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27746
27747
27748
27749 cat >>confdefs.h <<_ACEOF
27750 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27751 _ACEOF
27752
27753
27754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27755 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27756 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27757 $as_echo_n "(cached) " >&6
27758 else
27759 gcc_cv_as_ix86_gotoff_in_data=no
27760 if test x$gcc_cv_as != x; then
27761 $as_echo ' .text
27762 .L0:
27763 nop
27764 .data
27765 .long .L0@GOTOFF' > conftest.s
27766 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27768 (eval $ac_try) 2>&5
27769 ac_status=$?
27770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27771 test $ac_status = 0; }; }
27772 then
27773 gcc_cv_as_ix86_gotoff_in_data=yes
27774 else
27775 echo "configure: failed program was" >&5
27776 cat conftest.s >&5
27777 fi
27778 rm -f conftest.o conftest.s
27779 fi
27780 fi
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27782 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27783
27784
27785
27786 cat >>confdefs.h <<_ACEOF
27787 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27788 _ACEOF
27789
27790
27791 conftest_s='
27792 .section .text,"ax",@progbits
27793 .globl _start
27794 .type _start, @function
27795 _start:
27796 leal ld@tlsldm(%ecx), %eax
27797 call *___tls_get_addr@GOT(%ecx)
27798 leal gd@tlsgd(%ecx), %eax
27799 call *___tls_get_addr@GOT(%ecx)
27800
27801 .section .tdata,"aw'$tls_section_flag'",@progbits
27802 .type ld, @object
27803 ld:
27804 .byte 0
27805 .globl gd
27806 .type gd, @object
27807 gd:
27808 .byte 0'
27809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27810 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27811 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27812 $as_echo_n "(cached) " >&6
27813 else
27814 gcc_cv_as_ix86_tls_get_addr_via_got=no
27815 if test x$gcc_cv_as != x; then
27816 $as_echo "$conftest_s" > conftest.s
27817 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27819 (eval $ac_try) 2>&5
27820 ac_status=$?
27821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27822 test $ac_status = 0; }; }
27823 then
27824 if test x$gcc_cv_ld != x \
27825 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27826 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27827 fi
27828 rm -f conftest
27829 else
27830 echo "configure: failed program was" >&5
27831 cat conftest.s >&5
27832 fi
27833 rm -f conftest.o conftest.s
27834 fi
27835 fi
27836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27837 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27838
27839
27840
27841 cat >>confdefs.h <<_ACEOF
27842 #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`
27843 _ACEOF
27844
27845 ;;
27846
27847 ia64*-*-*)
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27849 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27850 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27851 $as_echo_n "(cached) " >&6
27852 else
27853 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27854 if test x$gcc_cv_as != x; then
27855 $as_echo ' .text
27856 addl r15 = @ltoffx(x#), gp
27857 ;;
27858 ld8.mov r16 = [r15], x#
27859 ' > conftest.s
27860 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27862 (eval $ac_try) 2>&5
27863 ac_status=$?
27864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27865 test $ac_status = 0; }; }
27866 then
27867 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27868 else
27869 echo "configure: failed program was" >&5
27870 cat conftest.s >&5
27871 fi
27872 rm -f conftest.o conftest.s
27873 fi
27874 fi
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27876 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27877 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27878
27879 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27880
27881 fi
27882
27883
27884 ;;
27885
27886 powerpc*-*-*)
27887
27888 case $target in
27889 *-*-darwin*)
27890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27891 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27892 if ${gcc_cv_as_machine_directive+:} false; then :
27893 $as_echo_n "(cached) " >&6
27894 else
27895 gcc_cv_as_machine_directive=no
27896 if test x$gcc_cv_as != x; then
27897 $as_echo ' .machine ppc7400' > conftest.s
27898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27900 (eval $ac_try) 2>&5
27901 ac_status=$?
27902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27903 test $ac_status = 0; }; }
27904 then
27905 gcc_cv_as_machine_directive=yes
27906 else
27907 echo "configure: failed program was" >&5
27908 cat conftest.s >&5
27909 fi
27910 rm -f conftest.o conftest.s
27911 fi
27912 fi
27913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27914 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27915
27916
27917 if test x$gcc_cv_as_machine_directive != xyes; then
27918 echo "*** This target requires an assembler supporting \".machine\"" >&2
27919 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27920 test x$build = x$target && exit 1
27921 fi
27922 ;;
27923 esac
27924
27925 case $target in
27926 *-*-aix*) conftest_s=' .machine "pwr5"
27927 .csect .text[PR]
27928 mfcr 3,128';;
27929 *-*-darwin*) conftest_s=' .text
27930 mfcr r3,128';;
27931 *) conftest_s=' .machine power4
27932 .text
27933 mfcr 3,128';;
27934 esac
27935
27936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27937 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27938 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27939 $as_echo_n "(cached) " >&6
27940 else
27941 gcc_cv_as_powerpc_mfcrf=no
27942 if test x$gcc_cv_as != x; then
27943 $as_echo "$conftest_s" > conftest.s
27944 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27946 (eval $ac_try) 2>&5
27947 ac_status=$?
27948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27949 test $ac_status = 0; }; }
27950 then
27951 gcc_cv_as_powerpc_mfcrf=yes
27952 else
27953 echo "configure: failed program was" >&5
27954 cat conftest.s >&5
27955 fi
27956 rm -f conftest.o conftest.s
27957 fi
27958 fi
27959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27960 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27961 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27962
27963 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27964
27965 fi
27966
27967
27968 case $target in
27969 *-*-aix*) conftest_s=' .csect .text[PR]
27970 LCF..0:
27971 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27972 *-*-darwin*)
27973 conftest_s=' .text
27974 LCF0:
27975 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27976 *) conftest_s=' .text
27977 .LCF0:
27978 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27979 esac
27980
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27982 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27983 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27984 $as_echo_n "(cached) " >&6
27985 else
27986 gcc_cv_as_powerpc_rel16=no
27987 if test x$gcc_cv_as != x; then
27988 $as_echo "$conftest_s" > conftest.s
27989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27991 (eval $ac_try) 2>&5
27992 ac_status=$?
27993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27994 test $ac_status = 0; }; }
27995 then
27996 gcc_cv_as_powerpc_rel16=yes
27997 else
27998 echo "configure: failed program was" >&5
27999 cat conftest.s >&5
28000 fi
28001 rm -f conftest.o conftest.s
28002 fi
28003 fi
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28005 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28006 if test $gcc_cv_as_powerpc_rel16 = yes; then
28007
28008 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28009
28010 fi
28011
28012
28013 case $target in
28014 *-*-aix*) conftest_s=' .machine "pwr7"
28015 .csect .text[PR]
28016 lxvd2x 1,2,3';;
28017 *) conftest_s=' .machine power7
28018 .text
28019 lxvd2x 1,2,3';;
28020 esac
28021
28022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28023 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28024 if ${gcc_cv_as_powerpc_vsx+:} false; then :
28025 $as_echo_n "(cached) " >&6
28026 else
28027 gcc_cv_as_powerpc_vsx=no
28028 if test x$gcc_cv_as != x; then
28029 $as_echo "$conftest_s" > conftest.s
28030 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28032 (eval $ac_try) 2>&5
28033 ac_status=$?
28034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28035 test $ac_status = 0; }; }
28036 then
28037 gcc_cv_as_powerpc_vsx=yes
28038 else
28039 echo "configure: failed program was" >&5
28040 cat conftest.s >&5
28041 fi
28042 rm -f conftest.o conftest.s
28043 fi
28044 fi
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28046 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28047 if test $gcc_cv_as_powerpc_vsx = yes; then
28048
28049 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28050
28051 fi
28052
28053
28054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28055 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28056 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
28057 $as_echo_n "(cached) " >&6
28058 else
28059 gcc_cv_as_powerpc_gnu_attribute=no
28060 if test x$gcc_cv_as != x; then
28061 $as_echo '.gnu_attribute 4,1' > conftest.s
28062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28064 (eval $ac_try) 2>&5
28065 ac_status=$?
28066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28067 test $ac_status = 0; }; }
28068 then
28069 gcc_cv_as_powerpc_gnu_attribute=yes
28070 else
28071 echo "configure: failed program was" >&5
28072 cat conftest.s >&5
28073 fi
28074 rm -f conftest.o conftest.s
28075 fi
28076 fi
28077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28078 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28079 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28080
28081 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28082
28083 fi
28084
28085
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28087 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28088 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
28089 $as_echo_n "(cached) " >&6
28090 else
28091 gcc_cv_as_powerpc_entry_markers=no
28092 if test x$gcc_cv_as != x; then
28093 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28094 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28096 (eval $ac_try) 2>&5
28097 ac_status=$?
28098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28099 test $ac_status = 0; }; }
28100 then
28101 gcc_cv_as_powerpc_entry_markers=yes
28102 else
28103 echo "configure: failed program was" >&5
28104 cat conftest.s >&5
28105 fi
28106 rm -f conftest.o conftest.s
28107 fi
28108 fi
28109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28110 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28111 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28112
28113 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28114
28115 fi
28116
28117
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28119 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28120 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
28121 $as_echo_n "(cached) " >&6
28122 else
28123 gcc_cv_as_powerpc_pltseq_markers=no
28124 if test x$gcc_cv_as != x; then
28125 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28126 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28128 (eval $ac_try) 2>&5
28129 ac_status=$?
28130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28131 test $ac_status = 0; }; }
28132 then
28133 gcc_cv_as_powerpc_pltseq_markers=yes
28134 else
28135 echo "configure: failed program was" >&5
28136 cat conftest.s >&5
28137 fi
28138 rm -f conftest.o conftest.s
28139 fi
28140 fi
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28142 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28143 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28144
28145 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28146
28147 fi
28148
28149
28150 case $target in
28151 *-*-aix*)
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28153 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28154 if ${gcc_cv_as_aix_ref+:} false; then :
28155 $as_echo_n "(cached) " >&6
28156 else
28157 gcc_cv_as_aix_ref=no
28158 if test x$gcc_cv_as != x; then
28159 $as_echo ' .csect stuff[rw]
28160 stuff:
28161 .long 1
28162 .extern sym
28163 .ref sym
28164 ' > conftest.s
28165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28167 (eval $ac_try) 2>&5
28168 ac_status=$?
28169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28170 test $ac_status = 0; }; }
28171 then
28172 gcc_cv_as_aix_ref=yes
28173 else
28174 echo "configure: failed program was" >&5
28175 cat conftest.s >&5
28176 fi
28177 rm -f conftest.o conftest.s
28178 fi
28179 fi
28180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28181 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28182 if test $gcc_cv_as_aix_ref = yes; then
28183
28184 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28185
28186 fi
28187
28188
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28190 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28191 if ${gcc_cv_as_aix_dwloc+:} false; then :
28192 $as_echo_n "(cached) " >&6
28193 else
28194 gcc_cv_as_aix_dwloc=no
28195 if test x$gcc_cv_as != x; then
28196 $as_echo ' .dwsect 0xA0000
28197 Lframe..0:
28198 .vbyte 4,Lframe..0
28199 ' > conftest.s
28200 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28202 (eval $ac_try) 2>&5
28203 ac_status=$?
28204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28205 test $ac_status = 0; }; }
28206 then
28207 gcc_cv_as_aix_dwloc=yes
28208 else
28209 echo "configure: failed program was" >&5
28210 cat conftest.s >&5
28211 fi
28212 rm -f conftest.o conftest.s
28213 fi
28214 fi
28215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28216 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28217 if test $gcc_cv_as_aix_dwloc = yes; then
28218
28219 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28220
28221 fi
28222
28223 ;;
28224 esac
28225 ;;
28226
28227 mips*-*-*)
28228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28229 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28230 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28231 $as_echo_n "(cached) " >&6
28232 else
28233 gcc_cv_as_mips_explicit_relocs=no
28234 if test x$gcc_cv_as != x; then
28235 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28236 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28238 (eval $ac_try) 2>&5
28239 ac_status=$?
28240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28241 test $ac_status = 0; }; }
28242 then
28243 gcc_cv_as_mips_explicit_relocs=yes
28244 else
28245 echo "configure: failed program was" >&5
28246 cat conftest.s >&5
28247 fi
28248 rm -f conftest.o conftest.s
28249 fi
28250 fi
28251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28252 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28253 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28254 if test x$target_cpu_default = x
28255 then target_cpu_default=MASK_EXPLICIT_RELOCS
28256 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28257 fi
28258 fi
28259
28260
28261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28262 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28263 if ${gcc_cv_as_mips_no_shared+:} false; then :
28264 $as_echo_n "(cached) " >&6
28265 else
28266 gcc_cv_as_mips_no_shared=no
28267 if test x$gcc_cv_as != x; then
28268 $as_echo 'nop' > conftest.s
28269 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28271 (eval $ac_try) 2>&5
28272 ac_status=$?
28273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28274 test $ac_status = 0; }; }
28275 then
28276 gcc_cv_as_mips_no_shared=yes
28277 else
28278 echo "configure: failed program was" >&5
28279 cat conftest.s >&5
28280 fi
28281 rm -f conftest.o conftest.s
28282 fi
28283 fi
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28285 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28286 if test $gcc_cv_as_mips_no_shared = yes; then
28287
28288 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28289
28290 fi
28291
28292
28293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28294 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28295 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28296 $as_echo_n "(cached) " >&6
28297 else
28298 gcc_cv_as_mips_gnu_attribute=no
28299 if test x$gcc_cv_as != x; then
28300 $as_echo '.gnu_attribute 4,1' > conftest.s
28301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28303 (eval $ac_try) 2>&5
28304 ac_status=$?
28305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28306 test $ac_status = 0; }; }
28307 then
28308 gcc_cv_as_mips_gnu_attribute=yes
28309 else
28310 echo "configure: failed program was" >&5
28311 cat conftest.s >&5
28312 fi
28313 rm -f conftest.o conftest.s
28314 fi
28315 fi
28316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28317 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28318 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28319
28320 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28321
28322 fi
28323
28324
28325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28326 $as_echo_n "checking assembler for .module support... " >&6; }
28327 if ${gcc_cv_as_mips_dot_module+:} false; then :
28328 $as_echo_n "(cached) " >&6
28329 else
28330 gcc_cv_as_mips_dot_module=no
28331 if test x$gcc_cv_as != x; then
28332 $as_echo '.module mips2
28333 .module fp=xx' > conftest.s
28334 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28336 (eval $ac_try) 2>&5
28337 ac_status=$?
28338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28339 test $ac_status = 0; }; }
28340 then
28341 gcc_cv_as_mips_dot_module=yes
28342 else
28343 echo "configure: failed program was" >&5
28344 cat conftest.s >&5
28345 fi
28346 rm -f conftest.o conftest.s
28347 fi
28348 fi
28349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28350 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28351 if test $gcc_cv_as_mips_dot_module = yes; then
28352
28353 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28354
28355 fi
28356
28357 if test x$gcc_cv_as_mips_dot_module = xno \
28358 && test x$with_fp_32 != x; then
28359 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28360 fi
28361
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28363 $as_echo_n "checking assembler for .micromips support... " >&6; }
28364 if ${gcc_cv_as_micromips_support+:} false; then :
28365 $as_echo_n "(cached) " >&6
28366 else
28367 gcc_cv_as_micromips_support=no
28368 if test x$gcc_cv_as != x; then
28369 $as_echo '.set micromips' > conftest.s
28370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28372 (eval $ac_try) 2>&5
28373 ac_status=$?
28374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28375 test $ac_status = 0; }; }
28376 then
28377 gcc_cv_as_micromips_support=yes
28378 else
28379 echo "configure: failed program was" >&5
28380 cat conftest.s >&5
28381 fi
28382 rm -f conftest.o conftest.s
28383 fi
28384 fi
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28386 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28387 if test $gcc_cv_as_micromips_support = yes; then
28388
28389 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28390
28391 fi
28392
28393
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28395 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28396 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28397 $as_echo_n "(cached) " >&6
28398 else
28399 gcc_cv_as_mips_dtprelword=no
28400 if test x$gcc_cv_as != x; then
28401 $as_echo '.section .tdata,"awT",@progbits
28402 x:
28403 .word 2
28404 .text
28405 .dtprelword x+0x8000' > conftest.s
28406 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28408 (eval $ac_try) 2>&5
28409 ac_status=$?
28410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28411 test $ac_status = 0; }; }
28412 then
28413 gcc_cv_as_mips_dtprelword=yes
28414 else
28415 echo "configure: failed program was" >&5
28416 cat conftest.s >&5
28417 fi
28418 rm -f conftest.o conftest.s
28419 fi
28420 fi
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28422 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28423 if test $gcc_cv_as_mips_dtprelword = yes; then
28424
28425 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28426
28427 fi
28428
28429
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28431 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28432 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28433 $as_echo_n "(cached) " >&6
28434 else
28435 gcc_cv_as_mips_dspr1_mult=no
28436 if test x$gcc_cv_as != x; then
28437 $as_echo ' .set mips32r2
28438 .set nodspr2
28439 .set dsp
28440 madd $ac3,$4,$5
28441 maddu $ac3,$4,$5
28442 msub $ac3,$4,$5
28443 msubu $ac3,$4,$5
28444 mult $ac3,$4,$5
28445 multu $ac3,$4,$5' > conftest.s
28446 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28448 (eval $ac_try) 2>&5
28449 ac_status=$?
28450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28451 test $ac_status = 0; }; }
28452 then
28453 gcc_cv_as_mips_dspr1_mult=yes
28454 else
28455 echo "configure: failed program was" >&5
28456 cat conftest.s >&5
28457 fi
28458 rm -f conftest.o conftest.s
28459 fi
28460 fi
28461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28462 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28463 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28464
28465 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28466
28467 fi
28468
28469
28470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28471 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28472 gcc_cv_as_ld_jalr_reloc=no
28473 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28474 if test $in_tree_ld = yes ; then
28475 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 \
28476 && test $in_tree_ld_is_elf = yes; then
28477 gcc_cv_as_ld_jalr_reloc=yes
28478 fi
28479 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28480 echo ' .ent x' > conftest.s
28481 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28482 echo ' lw $25,%call16(y)($28)' >> conftest.s
28483 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28484 echo '1: jalr $25' >> conftest.s
28485 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28486 echo '1: jalr $25' >> conftest.s
28487 echo ' .end x' >> conftest.s
28488 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28489 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28490 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28491 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28492 gcc_cv_as_ld_jalr_reloc=yes
28493 fi
28494 fi
28495 rm -f conftest.*
28496 fi
28497 fi
28498 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28499 if test x$target_cpu_default = x; then
28500 target_cpu_default=MASK_RELAX_PIC_CALLS
28501 else
28502 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28503 fi
28504 fi
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28506 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28507
28508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28509 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28510 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28511 $as_echo_n "(cached) " >&6
28512 else
28513 gcc_cv_ld_mips_personality_relaxation=no
28514 if test $in_tree_ld = yes ; then
28515 if test "$gcc_cv_gld_major_version" -eq 2 \
28516 -a "$gcc_cv_gld_minor_version" -ge 21 \
28517 -o "$gcc_cv_gld_major_version" -gt 2; then
28518 gcc_cv_ld_mips_personality_relaxation=yes
28519 fi
28520 elif test x$gcc_cv_as != x \
28521 -a x$gcc_cv_ld != x \
28522 -a x$gcc_cv_readelf != x ; then
28523 cat > conftest.s <<EOF
28524 .cfi_startproc
28525 .cfi_personality 0x80,indirect_ptr
28526 .ent test
28527 test:
28528 nop
28529 .end test
28530 .cfi_endproc
28531
28532 .section .data,"aw",@progbits
28533 indirect_ptr:
28534 .dc.a personality
28535 EOF
28536 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28537 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28538 if $gcc_cv_readelf -d conftest 2>&1 \
28539 | grep TEXTREL > /dev/null 2>&1; then
28540 :
28541 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28542 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28543 :
28544 else
28545 gcc_cv_ld_mips_personality_relaxation=yes
28546 fi
28547 fi
28548 fi
28549 rm -f conftest.s conftest.o conftest
28550 fi
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28552 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28553 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28554
28555 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28556
28557 fi
28558
28559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28560 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28561 if ${gcc_cv_as_mips_nan+:} false; then :
28562 $as_echo_n "(cached) " >&6
28563 else
28564 gcc_cv_as_mips_nan=no
28565 if test x$gcc_cv_as != x; then
28566 $as_echo '' > conftest.s
28567 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28569 (eval $ac_try) 2>&5
28570 ac_status=$?
28571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28572 test $ac_status = 0; }; }
28573 then
28574 gcc_cv_as_mips_nan=yes
28575 else
28576 echo "configure: failed program was" >&5
28577 cat conftest.s >&5
28578 fi
28579 rm -f conftest.o conftest.s
28580 fi
28581 fi
28582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28583 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28584 if test $gcc_cv_as_mips_nan = yes; then
28585
28586 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28587
28588 fi
28589
28590 if test x$gcc_cv_as_mips_nan = xno \
28591 && test x$with_nan != x; then
28592 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28593 fi
28594 ;;
28595 msp430-*-*)
28596 # Earlier GAS versions generically support .gnu_attribute, but the
28597 # msp430 assembler will not do anything with it.
28598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28599 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28600 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28601 $as_echo_n "(cached) " >&6
28602 else
28603 gcc_cv_as_msp430_gnu_attribute=no
28604 if test x$gcc_cv_as != x; then
28605 $as_echo '.gnu_attribute 4,1' > conftest.s
28606 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28608 (eval $ac_try) 2>&5
28609 ac_status=$?
28610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28611 test $ac_status = 0; }; }
28612 then
28613 gcc_cv_as_msp430_gnu_attribute=yes
28614 else
28615 echo "configure: failed program was" >&5
28616 cat conftest.s >&5
28617 fi
28618 rm -f conftest.o conftest.s
28619 fi
28620 fi
28621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28622 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28623 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28624
28625 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28626
28627 fi
28628
28629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28630 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28631 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28632 $as_echo_n "(cached) " >&6
28633 else
28634 gcc_cv_as_msp430_mspabi_attribute=no
28635 if test x$gcc_cv_as != x; then
28636 $as_echo '.mspabi_attribute 4,2' > conftest.s
28637 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28639 (eval $ac_try) 2>&5
28640 ac_status=$?
28641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28642 test $ac_status = 0; }; }
28643 then
28644 gcc_cv_as_msp430_mspabi_attribute=yes
28645 else
28646 echo "configure: failed program was" >&5
28647 cat conftest.s >&5
28648 fi
28649 rm -f conftest.o conftest.s
28650 fi
28651 fi
28652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28653 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28654 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28655
28656 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28657
28658 fi
28659
28660 if test x$enable_newlib_nano_formatted_io = xyes; then
28661
28662 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28663
28664 fi
28665 ;;
28666 nios2-*-*)
28667 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28668 # syntax that is documented in the ABI specification.
28669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28670 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28671 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28672 $as_echo_n "(cached) " >&6
28673 else
28674 gcc_cv_as_nios2_gotoff_relocation=no
28675 if test x$gcc_cv_as != x; then
28676 $as_echo ' .extern foo
28677 .data
28678 .long %gotoff(foo)' > conftest.s
28679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28681 (eval $ac_try) 2>&5
28682 ac_status=$?
28683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28684 test $ac_status = 0; }; }
28685 then
28686 gcc_cv_as_nios2_gotoff_relocation=yes
28687 else
28688 echo "configure: failed program was" >&5
28689 cat conftest.s >&5
28690 fi
28691 rm -f conftest.o conftest.s
28692 fi
28693 fi
28694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28695 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28696 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28697
28698 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28699
28700 fi
28701
28702 ;;
28703 riscv*-*-*)
28704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28705 $as_echo_n "checking assembler for .attribute support... " >&6; }
28706 if ${gcc_cv_as_riscv_attribute+:} false; then :
28707 $as_echo_n "(cached) " >&6
28708 else
28709 gcc_cv_as_riscv_attribute=no
28710 if test x$gcc_cv_as != x; then
28711 $as_echo '.attribute stack_align,4' > conftest.s
28712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28714 (eval $ac_try) 2>&5
28715 ac_status=$?
28716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28717 test $ac_status = 0; }; }
28718 then
28719 gcc_cv_as_riscv_attribute=yes
28720 else
28721 echo "configure: failed program was" >&5
28722 cat conftest.s >&5
28723 fi
28724 rm -f conftest.o conftest.s
28725 fi
28726 fi
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28728 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28729 if test $gcc_cv_as_riscv_attribute = yes; then
28730
28731 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28732
28733 fi
28734
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28736 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28737 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28738 $as_echo_n "(cached) " >&6
28739 else
28740 gcc_cv_as_riscv_isa_spec=no
28741 if test x$gcc_cv_as != x; then
28742 $as_echo '' > conftest.s
28743 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28745 (eval $ac_try) 2>&5
28746 ac_status=$?
28747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28748 test $ac_status = 0; }; }
28749 then
28750 gcc_cv_as_riscv_isa_spec=yes
28751 else
28752 echo "configure: failed program was" >&5
28753 cat conftest.s >&5
28754 fi
28755 rm -f conftest.o conftest.s
28756 fi
28757 fi
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28759 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28760 if test $gcc_cv_as_riscv_isa_spec = yes; then
28761
28762 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28763
28764 fi
28765
28766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28767 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28768 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28769 $as_echo_n "(cached) " >&6
28770 else
28771 gcc_cv_as_riscv_march_zifencei=no
28772 if test x$gcc_cv_as != x; then
28773 $as_echo '' > conftest.s
28774 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28776 (eval $ac_try) 2>&5
28777 ac_status=$?
28778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28779 test $ac_status = 0; }; }
28780 then
28781 gcc_cv_as_riscv_march_zifencei=yes
28782 else
28783 echo "configure: failed program was" >&5
28784 cat conftest.s >&5
28785 fi
28786 rm -f conftest.o conftest.s
28787 fi
28788 fi
28789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28790 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28791 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28792
28793 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28794
28795 fi
28796
28797 ;;
28798 loongarch*-*-*)
28799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28800 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28801 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
28802 $as_echo_n "(cached) " >&6
28803 else
28804 gcc_cv_as_loongarch_dtprelword=no
28805 if test x$gcc_cv_as != x; then
28806 $as_echo '' > conftest.s
28807 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28809 (eval $ac_try) 2>&5
28810 ac_status=$?
28811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28812 test $ac_status = 0; }; }
28813 then
28814 .section .tdata,"awT",@progbits
28815 x:
28816 .word 2
28817 .text
28818 .dtprelword x+0x8000
28819 else
28820 echo "configure: failed program was" >&5
28821 cat conftest.s >&5
28822 fi
28823 rm -f conftest.o conftest.s
28824 fi
28825 fi
28826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
28827 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
28828
28829 if test $gcc_cv_as_loongarch_dtprelword != yes; then
28830
28831 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28832
28833 fi
28834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28835 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28836 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
28837 $as_echo_n "(cached) " >&6
28838 else
28839 gcc_cv_as_loongarch_explicit_relocs=no
28840 if test x$gcc_cv_as != x; then
28841 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
28842 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28844 (eval $ac_try) 2>&5
28845 ac_status=$?
28846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28847 test $ac_status = 0; }; }
28848 then
28849 gcc_cv_as_loongarch_explicit_relocs=yes
28850 else
28851 echo "configure: failed program was" >&5
28852 cat conftest.s >&5
28853 fi
28854 rm -f conftest.o conftest.s
28855 fi
28856 fi
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
28858 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
28859 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
28860
28861 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28862
28863 fi
28864
28865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
28866 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
28867 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
28868 $as_echo_n "(cached) " >&6
28869 else
28870 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
28871 if test x$gcc_cv_as != x; then
28872 $as_echo '.cfi_startproc
28873 .cfi_personality 0x9b,a
28874 .cfi_lsda 0x1b,b
28875 .cfi_endproc' > conftest.s
28876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28878 (eval $ac_try) 2>&5
28879 ac_status=$?
28880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28881 test $ac_status = 0; }; }
28882 then
28883 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
28884 else
28885 echo "configure: failed program was" >&5
28886 cat conftest.s >&5
28887 fi
28888 rm -f conftest.o conftest.s
28889 fi
28890 fi
28891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
28892 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
28893 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
28894
28895 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
28896
28897 fi
28898
28899 ;;
28900 s390*-*-*)
28901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28902 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28903 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28904 $as_echo_n "(cached) " >&6
28905 else
28906 gcc_cv_as_s390_gnu_attribute=no
28907 if test x$gcc_cv_as != x; then
28908 $as_echo '.gnu_attribute 8,1' > conftest.s
28909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28911 (eval $ac_try) 2>&5
28912 ac_status=$?
28913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28914 test $ac_status = 0; }; }
28915 then
28916 gcc_cv_as_s390_gnu_attribute=yes
28917 else
28918 echo "configure: failed program was" >&5
28919 cat conftest.s >&5
28920 fi
28921 rm -f conftest.o conftest.s
28922 fi
28923 fi
28924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28925 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28926 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28927
28928 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28929
28930 fi
28931
28932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28933 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28934 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28935 $as_echo_n "(cached) " >&6
28936 else
28937 gcc_cv_as_s390_machine_machinemode=no
28938 if test x$gcc_cv_as != x; then
28939 $as_echo ' .machinemode push
28940 .machinemode pop
28941 .machine push
28942 .machine pop' > conftest.s
28943 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28945 (eval $ac_try) 2>&5
28946 ac_status=$?
28947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28948 test $ac_status = 0; }; }
28949 then
28950 gcc_cv_as_s390_machine_machinemode=yes
28951 else
28952 echo "configure: failed program was" >&5
28953 cat conftest.s >&5
28954 fi
28955 rm -f conftest.o conftest.s
28956 fi
28957 fi
28958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28959 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28960 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28961
28962 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28963
28964 fi
28965
28966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28967 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28968 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28969 $as_echo_n "(cached) " >&6
28970 else
28971 gcc_cv_as_s390_architecture_modifiers=no
28972 if test x$gcc_cv_as != x; then
28973 $as_echo ' .machine z13+vx ' > conftest.s
28974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28976 (eval $ac_try) 2>&5
28977 ac_status=$?
28978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28979 test $ac_status = 0; }; }
28980 then
28981 gcc_cv_as_s390_architecture_modifiers=yes
28982 else
28983 echo "configure: failed program was" >&5
28984 cat conftest.s >&5
28985 fi
28986 rm -f conftest.o conftest.s
28987 fi
28988 fi
28989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28990 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28991 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28992
28993 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28994
28995 fi
28996
28997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28998 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28999 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
29000 $as_echo_n "(cached) " >&6
29001 else
29002 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
29003 if test x$gcc_cv_as != x; then
29004 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29005 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29007 (eval $ac_try) 2>&5
29008 ac_status=$?
29009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29010 test $ac_status = 0; }; }
29011 then
29012 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
29013 else
29014 echo "configure: failed program was" >&5
29015 cat conftest.s >&5
29016 fi
29017 rm -f conftest.o conftest.s
29018 fi
29019 fi
29020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29021 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29022 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29023
29024 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29025
29026 fi
29027
29028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29029 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29030 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
29031 $as_echo_n "(cached) " >&6
29032 else
29033 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
29034 if test x$gcc_cv_as != x; then
29035 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29038 (eval $ac_try) 2>&5
29039 ac_status=$?
29040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29041 test $ac_status = 0; }; }
29042 then
29043 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
29044 else
29045 echo "configure: failed program was" >&5
29046 cat conftest.s >&5
29047 fi
29048 rm -f conftest.o conftest.s
29049 fi
29050 fi
29051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29052 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29053 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29054
29055 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29056
29057 fi
29058
29059
29060 ;;
29061 esac
29062
29063 # Mips, LoongArch and HP-UX need the GNU assembler.
29064 # Linux on IA64 might be able to use the Intel assembler.
29065
29066 case "$target" in
29067 mips*-*-* | loongarch*-*-* | *-*-hpux* )
29068 if test x$gas_flag = xyes \
29069 || test x"$host" != x"$build" \
29070 || test ! -x "$gcc_cv_as" \
29071 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
29072 :
29073 else
29074 echo "*** This configuration requires the GNU assembler" >&2
29075 exit 1
29076 fi
29077 ;;
29078 esac
29079
29080 # AMD GCN needs the LLVM assembler and linker.
29081 # Test that LLVM is at least 13.0.1.
29082 case "$target" in
29083 amdgcn-* | gcn-*)
29084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29085 $as_echo_n "checking llvm assembler version... " >&6; }
29086 gcc_cv_as_version="unknown"
29087 if test x$gcc_cv_as != x; then
29088 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29089 case "$gcc_cv_as_version" in
29090 13.0.[1-9]*) ;; # 13.0.1+
29091 13.[1-9]*) ;; # 13.1+
29092 1[4-9]*) ;; # 14..19
29093 [2-9][0-9]*) ;; # 20..99
29094 [1-9][0-9][0-9]*) ;; # 100+
29095 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
29096 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29097 esac
29098 fi
29099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29100 $as_echo "$gcc_cv_as_version, ok" >&6; }
29101 ;;
29102 esac
29103
29104 case "$target" in
29105 arm*)
29106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29107 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29108 if ${gcc_cv_as_arm_option_extensions+:} false; then :
29109 $as_echo_n "(cached) " >&6
29110 else
29111 gcc_cv_as_arm_option_extensions=no
29112 if test x$gcc_cv_as != x; then
29113 $as_echo '.text
29114 .thumb
29115 .syntax unified
29116 vmov.f32 s0, s1' > conftest.s
29117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29119 (eval $ac_try) 2>&5
29120 ac_status=$?
29121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29122 test $ac_status = 0; }; }
29123 then
29124 gcc_cv_as_arm_option_extensions=yes
29125 else
29126 echo "configure: failed program was" >&5
29127 cat conftest.s >&5
29128 fi
29129 rm -f conftest.o conftest.s
29130 fi
29131 fi
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29133 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29134 if test $gcc_cv_as_arm_option_extensions = yes; then
29135
29136 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29137
29138 fi
29139
29140 esac
29141
29142 # ??? Not all targets support dwarf2 debug_line, even within a version
29143 # of gas. Moreover, we need to emit a valid instruction to trigger any
29144 # info to the output file. So, as supported targets are added to gas 2.11,
29145 # add some instruction here to (also) show we expect this might work.
29146 # ??? Once 2.11 is released, probably need to add first known working
29147 # version to the per-target configury.
29148 case "$cpu_type" in
29149 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29150 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29151 | visium | xstormy16 | xtensa)
29152 insn="nop"
29153 ;;
29154 ia64 | s390)
29155 insn="nop 0"
29156 ;;
29157 mmix)
29158 insn="swym 0"
29159 ;;
29160 esac
29161 if test x"$insn" != x; then
29162 conftest_s="\
29163 .file 1 \"conftest.s\"
29164 .loc 1 3 0
29165 $insn"
29166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29167 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29168 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29169 $as_echo_n "(cached) " >&6
29170 else
29171 gcc_cv_as_dwarf2_debug_line=no
29172 if test x$gcc_cv_as != x; then
29173 $as_echo "$conftest_s" > conftest.s
29174 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29176 (eval $ac_try) 2>&5
29177 ac_status=$?
29178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29179 test $ac_status = 0; }; }
29180 then
29181 if test x$gcc_cv_objdump != x \
29182 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29183 | grep debug_line > /dev/null 2>&1; then
29184 gcc_cv_as_dwarf2_debug_line=yes
29185 elif test x$gcc_cv_otool != x \
29186 && $gcc_cv_otool -l conftest.o 2> /dev/null \
29187 | grep debug_line > /dev/null 2>&1; then
29188 gcc_cv_as_dwarf2_debug_line=yes
29189 fi
29190 else
29191 echo "configure: failed program was" >&5
29192 cat conftest.s >&5
29193 fi
29194 rm -f conftest.o conftest.s
29195 fi
29196 fi
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29198 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29199
29200
29201
29202 # The .debug_line file table must be in the exact order that
29203 # we specified the files, since these indices are also used
29204 # by DW_AT_decl_file. Approximate this test by testing if
29205 # the assembler bitches if the same index is assigned twice.
29206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29207 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29208 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29209 $as_echo_n "(cached) " >&6
29210 else
29211 gcc_cv_as_dwarf2_file_buggy=no
29212 if test x$gcc_cv_as != x; then
29213 $as_echo ' .file 1 "foo.s"
29214 .file 1 "bar.s"' > conftest.s
29215 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29217 (eval $ac_try) 2>&5
29218 ac_status=$?
29219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29220 test $ac_status = 0; }; }
29221 then
29222 gcc_cv_as_dwarf2_file_buggy=yes
29223 else
29224 echo "configure: failed program was" >&5
29225 cat conftest.s >&5
29226 fi
29227 rm -f conftest.o conftest.s
29228 fi
29229 fi
29230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29231 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29232
29233
29234
29235 if test $gcc_cv_as_dwarf2_debug_line = yes \
29236 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29237
29238 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29239
29240
29241 if test $gcc_cv_as_leb128 = yes; then
29242 conftest_s="\
29243 .file 1 \"conftest.s\"
29244 .loc 1 3 0 view .LVU1
29245 $insn
29246 .data
29247 .uleb128 .LVU1
29248 .uleb128 .LVU1
29249 "
29250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29251 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29252 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29253 $as_echo_n "(cached) " >&6
29254 else
29255 gcc_cv_as_dwarf2_debug_view=no
29256 if test x$gcc_cv_as != x; then
29257 $as_echo "$conftest_s" > conftest.s
29258 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29260 (eval $ac_try) 2>&5
29261 ac_status=$?
29262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29263 test $ac_status = 0; }; }
29264 then
29265 gcc_cv_as_dwarf2_debug_view=yes
29266 else
29267 echo "configure: failed program was" >&5
29268 cat conftest.s >&5
29269 fi
29270 rm -f conftest.o conftest.s
29271 fi
29272 fi
29273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29274 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29275 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29276
29277 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29278
29279 fi
29280
29281 fi
29282 fi
29283
29284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29285 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29286 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29287 $as_echo_n "(cached) " >&6
29288 else
29289 gcc_cv_as_gdwarf2_flag=no
29290 if test x$gcc_cv_as != x; then
29291 $as_echo "$insn" > conftest.s
29292 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29294 (eval $ac_try) 2>&5
29295 ac_status=$?
29296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29297 test $ac_status = 0; }; }
29298 then
29299 gcc_cv_as_gdwarf2_flag=yes
29300 else
29301 echo "configure: failed program was" >&5
29302 cat conftest.s >&5
29303 fi
29304 rm -f conftest.o conftest.s
29305 fi
29306 fi
29307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29308 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29309 if test $gcc_cv_as_gdwarf2_flag = yes; then
29310
29311 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29312
29313 fi
29314
29315
29316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29317 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29318 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29319 $as_echo_n "(cached) " >&6
29320 else
29321 gcc_cv_as_gdwarf_5_flag=no
29322 if test x$gcc_cv_as != x; then
29323 $as_echo "$insn" > conftest.s
29324 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29326 (eval $ac_try) 2>&5
29327 ac_status=$?
29328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29329 test $ac_status = 0; }; }
29330 then
29331 if test x$gcc_cv_objdump != x \
29332 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29333 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29334 gcc_cv_as_gdwarf_5_flag=yes;
29335 fi
29336 else
29337 echo "configure: failed program was" >&5
29338 cat conftest.s >&5
29339 fi
29340 rm -f conftest.o conftest.s
29341 fi
29342 fi
29343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29344 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29345 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29346
29347 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29348
29349 fi
29350
29351
29352 case $target_os in
29353 win32 | pe | cygwin* | mingw32*)
29354 section_flags=\"dr\"
29355 function_type=".def foo; .scl 2; .type 32; .endef"
29356 function_size="";;
29357 *)
29358 section_flags=\"\",%progbits
29359 function_type=".type foo, %function"
29360 function_size=".size foo, .-foo";;
29361 esac
29362 dwarf4_debug_info_size=0x46
29363 dwarf4_high_pc_form=7
29364 dwarf4_debug_aranges_size=0x2c
29365 dwarf4_line_sz=9
29366 for dwarf4_addr_size in 8 4; do
29367 conftest_s="\
29368 .file \"a.c\"
29369 .text
29370 .Ltext0:
29371 .p2align 4
29372 .globl foo
29373 $function_type
29374 foo:
29375 .LFB0:
29376 .LM1:
29377 $insn
29378 .LM2:
29379 .LFE0:
29380 $function_size
29381 .Letext0:
29382 .section .debug_info,$section_flags
29383 .Ldebug_info0:
29384 .4byte $dwarf4_debug_info_size
29385 .2byte 0x4
29386 .4byte .Ldebug_abbrev0
29387 .byte 0x$dwarf4_addr_size
29388 .byte 0x1
29389 .ascii \"GNU C17\\0\"
29390 .byte 0xc
29391 .ascii \"a.c\\0\"
29392 .ascii \"/\\0\"
29393 .${dwarf4_addr_size}byte .Ltext0
29394 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29395 .4byte .Ldebug_line0
29396 .byte 0x2
29397 .ascii \"foo\\0\"
29398 .byte 0x1
29399 .byte 0x2
29400 .byte 0x1
29401 .${dwarf4_addr_size}byte .LFB0
29402 .${dwarf4_addr_size}byte .LFE0-.LFB0
29403 .byte 0x1
29404 .byte 0x9c
29405 .byte 0
29406 .section .debug_abbrev,$section_flags
29407 .Ldebug_abbrev0:
29408 .byte 0x1
29409 .byte 0x11
29410 .byte 0x1
29411 .byte 0x25
29412 .byte 0x8
29413 .byte 0x13
29414 .byte 0xb
29415 .byte 0x3
29416 .byte 0x8
29417 .byte 0x1b
29418 .byte 0x8
29419 .byte 0x11
29420 .byte 0x1
29421 .byte 0x12
29422 .byte 0x$dwarf4_high_pc_form
29423 .byte 0x10
29424 .byte 0x17
29425 .byte 0
29426 .byte 0
29427 .byte 0x2
29428 .byte 0x2e
29429 .byte 0
29430 .byte 0x3f
29431 .byte 0x19
29432 .byte 0x3
29433 .byte 0x8
29434 .byte 0x3a
29435 .byte 0xb
29436 .byte 0x3b
29437 .byte 0xb
29438 .byte 0x39
29439 .byte 0xb
29440 .byte 0x11
29441 .byte 0x1
29442 .byte 0x12
29443 .byte 0x$dwarf4_high_pc_form
29444 .byte 0x40
29445 .byte 0x18
29446 .byte 0
29447 .byte 0
29448 .byte 0
29449 .section .debug_aranges,$section_flags
29450 .4byte $dwarf4_debug_aranges_size
29451 .2byte 0x2
29452 .4byte .Ldebug_info0
29453 .byte 0x8
29454 .byte 0
29455 .2byte 0
29456 .2byte 0
29457 .${dwarf4_addr_size}byte .Ltext0
29458 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29459 .${dwarf4_addr_size}byte 0
29460 .${dwarf4_addr_size}byte 0
29461 .section .debug_line,$section_flags
29462 .Ldebug_line0:
29463 .4byte .LELT0-.LSLT0
29464 .LSLT0:
29465 .2byte 0x4
29466 .4byte .LELTP0-.LASLTP0
29467 .LASLTP0:
29468 .byte 0x1
29469 .byte 0x1
29470 .byte 0x1
29471 .byte 0xf6
29472 .byte 0xf2
29473 .byte 0xd
29474 .byte 0
29475 .byte 0x1
29476 .byte 0x1
29477 .byte 0x1
29478 .byte 0x1
29479 .byte 0
29480 .byte 0
29481 .byte 0
29482 .byte 0x1
29483 .byte 0
29484 .byte 0
29485 .byte 0x1
29486 .byte 0
29487 .ascii \"a.c\\0\"
29488 .byte 0
29489 .byte 0
29490 .byte 0
29491 .byte 0
29492 .LELTP0:
29493 .byte 0
29494 .byte 0x$dwarf4_line_sz
29495 .byte 0x2
29496 .${dwarf4_addr_size}byte .LM1
29497 .byte 0x18
29498 .byte 0x5
29499 .byte 0x1
29500 .byte 0
29501 .byte 0x$dwarf4_line_sz
29502 .byte 0x2
29503 .${dwarf4_addr_size}byte .LM2
29504 .byte 0x1
29505 .byte 0x5
29506 .byte 0x1
29507 .byte 0
29508 .byte 0x$dwarf4_line_sz
29509 .byte 0x2
29510 .${dwarf4_addr_size}byte .Letext0
29511 .byte 0
29512 .byte 0x1
29513 .byte 0x1
29514 .LELT0:
29515 .section .debug_str,$section_flags
29516 .ident \"GCC\"
29517 "
29518 dwarf4_success=no
29519 if test $dwarf4_addr_size = 4; then
29520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29521 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29522 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29523 $as_echo_n "(cached) " >&6
29524 else
29525 gcc_cv_as_debug_line_32_flag=no
29526 if test x$gcc_cv_as != x; then
29527 $as_echo "$conftest_s" > conftest.s
29528 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29530 (eval $ac_try) 2>&5
29531 ac_status=$?
29532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29533 test $ac_status = 0; }; }
29534 then
29535 gcc_cv_as_debug_line_32_flag=yes
29536 else
29537 echo "configure: failed program was" >&5
29538 cat conftest.s >&5
29539 fi
29540 rm -f conftest.o conftest.s
29541 fi
29542 fi
29543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29544 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29545 if test $gcc_cv_as_debug_line_32_flag = yes; then
29546 dwarf4_success=yes
29547 fi
29548
29549 else
29550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29551 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29552 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29553 $as_echo_n "(cached) " >&6
29554 else
29555 gcc_cv_as_debug_line_64_flag=no
29556 if test x$gcc_cv_as != x; then
29557 $as_echo "$conftest_s" > conftest.s
29558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29560 (eval $ac_try) 2>&5
29561 ac_status=$?
29562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29563 test $ac_status = 0; }; }
29564 then
29565 gcc_cv_as_debug_line_64_flag=yes
29566 else
29567 echo "configure: failed program was" >&5
29568 cat conftest.s >&5
29569 fi
29570 rm -f conftest.o conftest.s
29571 fi
29572 fi
29573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29574 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29575 if test $gcc_cv_as_debug_line_64_flag = yes; then
29576 dwarf4_success=yes
29577 fi
29578
29579 fi
29580 if test $dwarf4_success = yes; then
29581 dwarf4_success=no
29582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29583 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29584 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29585 $as_echo_n "(cached) " >&6
29586 else
29587 gcc_cv_as_dwarf_4_debug_line_flag=no
29588 if test x$gcc_cv_as != x; then
29589 $as_echo "$conftest_s" > conftest.s
29590 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29592 (eval $ac_try) 2>&5
29593 ac_status=$?
29594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29595 test $ac_status = 0; }; }
29596 then
29597 gcc_cv_as_dwarf_4_debug_line_flag=yes
29598 else
29599 echo "configure: failed program was" >&5
29600 cat conftest.s >&5
29601 fi
29602 rm -f conftest.o conftest.s
29603 fi
29604 fi
29605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29606 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29607 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29608 dwarf4_success=yes
29609 fi
29610
29611 break
29612 fi
29613 dwarf4_debug_info_size=0x36
29614 dwarf4_high_pc_form=6
29615 dwarf4_debug_aranges_size=0x1c
29616 dwarf4_line_sz=5
29617 done
29618
29619 if test $dwarf4_success = yes; then
29620 conftest_s="\
29621 .file \"foo.c\"
29622 .text
29623 bar:
29624 #APP
29625 # 82 \"xxx.h\" 1
29626 $insn
29627 # 0 \"\" 2
29628 #NO_APP
29629 $insn
29630 foo:
29631 .file 1 \"foo.c\"
29632 $insn
29633 .file 2 \"foo.h\"
29634 ret
29635 "
29636 dwarf4_success=no
29637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29638 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29639 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29640 $as_echo_n "(cached) " >&6
29641 else
29642 gcc_cv_as_dwarf_4_app_flag=no
29643 if test x$gcc_cv_as != x; then
29644 $as_echo "$conftest_s" > conftest.s
29645 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29647 (eval $ac_try) 2>&5
29648 ac_status=$?
29649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29650 test $ac_status = 0; }; }
29651 then
29652 gcc_cv_as_dwarf_4_app_flag=yes
29653 else
29654 echo "configure: failed program was" >&5
29655 cat conftest.s >&5
29656 fi
29657 rm -f conftest.o conftest.s
29658 fi
29659 fi
29660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29661 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29662 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29663 dwarf4_success=yes
29664 fi
29665
29666 fi
29667
29668 if test $dwarf4_success = yes; then
29669 conftest_s="\
29670 .text
29671 .globl foo
29672 $function_type
29673 foo:
29674 $insn
29675 $function_size
29676 .file 1 \"foo.c\"
29677 "
29678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29679 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29680 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29681 $as_echo_n "(cached) " >&6
29682 else
29683 gcc_cv_as_working_gdwarf_n_flag=no
29684 if test x$gcc_cv_as != x; then
29685 $as_echo "$conftest_s" > conftest.s
29686 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29688 (eval $ac_try) 2>&5
29689 ac_status=$?
29690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29691 test $ac_status = 0; }; }
29692 then
29693 if test x$gcc_cv_objdump != x \
29694 && $gcc_cv_objdump -W conftest.o 2>&1 \
29695 | grep conftest.s > /dev/null 2>&1; then
29696 gcc_cv_as_working_gdwarf_n_flag=no
29697 else
29698 gcc_cv_as_working_gdwarf_n_flag=yes
29699 fi
29700 else
29701 echo "configure: failed program was" >&5
29702 cat conftest.s >&5
29703 fi
29704 rm -f conftest.o conftest.s
29705 fi
29706 fi
29707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29708 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29709
29710
29711 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29712
29713 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29714
29715 fi
29716 fi
29717
29718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29719 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29720 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29721 $as_echo_n "(cached) " >&6
29722 else
29723 gcc_cv_as_debug_prefix_map_flag=no
29724 if test x$gcc_cv_as != x; then
29725 $as_echo "$insn" > conftest.s
29726 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29728 (eval $ac_try) 2>&5
29729 ac_status=$?
29730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29731 test $ac_status = 0; }; }
29732 then
29733 gcc_cv_as_debug_prefix_map_flag=yes
29734 else
29735 echo "configure: failed program was" >&5
29736 cat conftest.s >&5
29737 fi
29738 rm -f conftest.o conftest.s
29739 fi
29740 fi
29741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29742 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29743 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29744
29745 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29746
29747 fi
29748
29749 fi
29750
29751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29752 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29753 if ${gcc_cv_as_compress_debug+:} false; then :
29754 $as_echo_n "(cached) " >&6
29755 else
29756 gcc_cv_as_compress_debug=no
29757 if test x$gcc_cv_as != x; then
29758 $as_echo '' > conftest.s
29759 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29761 (eval $ac_try) 2>&5
29762 ac_status=$?
29763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29764 test $ac_status = 0; }; }
29765 then
29766 # gas compiled without zlib cannot compress debug sections and warns
29767 # about it, but still exits successfully. So check for this, too.
29768 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29769 then
29770 gcc_cv_as_compress_debug=0
29771 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
29772 then
29773 gcc_cv_as_compress_debug=1
29774 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29775 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29776 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
29777 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
29778 then
29779 gcc_cv_as_compress_debug=2
29780 fi
29781 else
29782 gcc_cv_as_compress_debug=0
29783 fi
29784 else
29785 echo "configure: failed program was" >&5
29786 cat conftest.s >&5
29787 fi
29788 rm -f conftest.o conftest.s
29789 fi
29790 fi
29791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29792 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29793
29794
29795
29796 cat >>confdefs.h <<_ACEOF
29797 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29798 _ACEOF
29799
29800
29801 cat >>confdefs.h <<_ACEOF
29802 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29803 _ACEOF
29804
29805
29806 cat >>confdefs.h <<_ACEOF
29807 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29808 _ACEOF
29809
29810
29811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29812 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29813 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29814 $as_echo_n "(cached) " >&6
29815 else
29816 gcc_cv_as_lcomm_with_alignment=no
29817 if test x$gcc_cv_as != x; then
29818 $as_echo '.lcomm bar,4,16' > conftest.s
29819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29821 (eval $ac_try) 2>&5
29822 ac_status=$?
29823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29824 test $ac_status = 0; }; }
29825 then
29826 gcc_cv_as_lcomm_with_alignment=yes
29827 else
29828 echo "configure: failed program was" >&5
29829 cat conftest.s >&5
29830 fi
29831 rm -f conftest.o conftest.s
29832 fi
29833 fi
29834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29835 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29836 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29837
29838 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29839
29840 fi
29841
29842
29843 if test x$with_sysroot = x && test x$host = x$target \
29844 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29845 && test "$prefix" != "NONE"; then
29846
29847 cat >>confdefs.h <<_ACEOF
29848 #define PREFIX_INCLUDE_DIR "$prefix/include"
29849 _ACEOF
29850
29851 fi
29852
29853 # Determine the version of glibc, if any, used on the target.
29854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29855 $as_echo_n "checking for target glibc version... " >&6; }
29856
29857 # Check whether --with-glibc-version was given.
29858 if test "${with_glibc_version+set}" = set; then :
29859 withval=$with_glibc_version;
29860 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29861 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29862 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29863 else
29864 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
29865 fi
29866 else
29867
29868 glibc_version_major=0
29869 glibc_version_minor=0
29870 if test -f $target_header_dir/features.h \
29871 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29872 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29873 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29874 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29875 fi
29876 fi
29877
29878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29879 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29880
29881 cat >>confdefs.h <<_ACEOF
29882 #define TARGET_GLIBC_MAJOR $glibc_version_major
29883 _ACEOF
29884
29885
29886 cat >>confdefs.h <<_ACEOF
29887 #define TARGET_GLIBC_MINOR $glibc_version_minor
29888 _ACEOF
29889
29890
29891 # Check whether --enable-gnu-unique-object was given.
29892 if test "${enable_gnu_unique_object+set}" = set; then :
29893 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29894 yes | no) ;;
29895 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29896 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29897 esac
29898 else
29899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29900 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29901 if ${gcc_cv_as_gnu_unique_object+:} false; then :
29902 $as_echo_n "(cached) " >&6
29903 else
29904 gcc_cv_as_gnu_unique_object=no
29905 if test x$gcc_cv_as != x; then
29906 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29909 (eval $ac_try) 2>&5
29910 ac_status=$?
29911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29912 test $ac_status = 0; }; }
29913 then
29914 gcc_cv_as_gnu_unique_object=yes
29915 else
29916 echo "configure: failed program was" >&5
29917 cat conftest.s >&5
29918 fi
29919 rm -f conftest.o conftest.s
29920 fi
29921 fi
29922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29923 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29924 if test $gcc_cv_as_gnu_unique_object = yes; then
29925 # We need to unquote above to to use the definition from config.gcc.
29926 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29927
29928 if test $glibc_version_major -gt 2 \
29929 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29930 enable_gnu_unique_object=yes
29931 fi
29932
29933 fi
29934
29935 fi
29936
29937 if test x$enable_gnu_unique_object = xyes; then
29938
29939 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29940
29941 fi
29942
29943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29944 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29945 if ${gcc_cv_as_line_zero+:} false; then :
29946 $as_echo_n "(cached) " >&6
29947 else
29948 gcc_cv_as_line_zero=no
29949 if test "x$gcc_cv_as" != x; then
29950 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29951 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29953 (eval $ac_try) 2>&5
29954 ac_status=$?
29955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29956 test $ac_status = 0; }; } &&
29957 test "x`cat conftest.out`" = x
29958 then
29959 gcc_cv_as_line_zero=yes
29960 else
29961 echo "configure: failed program was" >&5
29962 cat conftest.s >&5
29963 echo "configure: error output was" >&5
29964 cat conftest.out >&5
29965 fi
29966 rm -f conftest.o conftest.s conftest.out
29967 fi
29968 fi
29969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29970 $as_echo "$gcc_cv_as_line_zero" >&6; }
29971 if test "x$gcc_cv_as_line_zero" = xyes; then
29972
29973 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29974
29975 fi
29976
29977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29978 $as_echo_n "checking support for thin archives... " >&6; }
29979 thin_archive_support=no
29980 echo 'int main (void) { return 0; }' > conftest.c
29981 if ($AR --version | sed 1q | grep "GNU ar" \
29982 && $CC $CFLAGS -c conftest.c \
29983 && $AR rcT conftest.a conftest.o \
29984 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
29985 thin_archive_support=yes
29986 fi
29987 rm -f conftest.c conftest.o conftest.a conftest
29988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29989 $as_echo "$thin_archive_support" >&6; }
29990
29991
29992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29993 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29994 gcc_cv_ld_eh_frame_hdr=no
29995 if test $in_tree_ld = yes ; then
29996 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 \
29997 && test $in_tree_ld_is_elf = yes; then
29998 gcc_cv_ld_eh_frame_hdr=yes
29999 fi
30000 elif test x$gcc_cv_ld != x; then
30001 if echo "$ld_ver" | grep GNU > /dev/null; then
30002 # Check if linker supports --eh-frame-hdr option
30003 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
30004 gcc_cv_ld_eh_frame_hdr=yes
30005 fi
30006 else
30007 case "$target" in
30008 *-*-solaris2*)
30009 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30010 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
30011 gcc_cv_ld_eh_frame_hdr=yes
30012 fi
30013 ;;
30014 esac
30015 fi
30016 fi
30017
30018 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
30019
30020 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30021
30022 fi
30023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30024 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30025
30026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30027 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30028 gcc_cv_ld_eh_frame_ciev3=no
30029 if test $in_tree_ld = yes ; then
30030 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 \
30031 && test $in_tree_ld_is_elf = yes; then
30032 gcc_cv_ld_eh_frame_ciev3=yes
30033 fi
30034 elif test x$gcc_cv_ld != x; then
30035 if echo "$ld_ver" | grep GNU > /dev/null; then
30036 gcc_cv_ld_eh_frame_ciev3=yes
30037 if test 0"$ld_date" -lt 20040513; then
30038 if test -n "$ld_date"; then
30039 # If there was date string, but was earlier than 2004-05-13, fail
30040 gcc_cv_ld_eh_frame_ciev3=no
30041 elif test "$ld_vers_major" -lt 2; then
30042 gcc_cv_ld_eh_frame_ciev3=no
30043 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30044 gcc_cv_ld_eh_frame_ciev3=no
30045 fi
30046 fi
30047 else
30048 case "$target" in
30049 *-*-solaris2*)
30050 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30051 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
30052 gcc_cv_ld_eh_frame_ciev3=yes
30053 fi
30054 ;;
30055 esac
30056 fi
30057 fi
30058
30059 cat >>confdefs.h <<_ACEOF
30060 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30061 _ACEOF
30062
30063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30064 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30065
30066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30067 $as_echo_n "checking linker position independent executable support... " >&6; }
30068 gcc_cv_ld_pie=no
30069 if test $in_tree_ld = yes ; then
30070 case "$target" in
30071 # Full PIE support on Solaris was only introduced in gld 2.26.
30072 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
30073 *) gcc_gld_pie_min_version=15 ;;
30074 esac
30075 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 \
30076 && test $in_tree_ld_is_elf = yes; then
30077 gcc_cv_ld_pie=yes
30078 fi
30079 elif test x$gcc_cv_ld != x; then
30080 # Check if linker supports -pie option
30081 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
30082 gcc_cv_ld_pie=yes
30083 case "$target" in
30084 *-*-solaris2*)
30085 if echo "$ld_ver" | grep GNU > /dev/null \
30086 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30087 gcc_cv_ld_pie=no
30088 fi
30089 ;;
30090 esac
30091 else
30092 case "$target" in
30093 *-*-solaris2.1[1-9]*)
30094 # Solaris 11.3 added PIE support.
30095 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
30096 gcc_cv_ld_pie=yes
30097 fi
30098 ;;
30099 esac
30100 fi
30101 fi
30102 if test x"$gcc_cv_ld_pie" = xyes; then
30103
30104 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30105
30106 fi
30107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30108 $as_echo "$gcc_cv_ld_pie" >&6; }
30109
30110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30111 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30112 gcc_cv_ld_pie_copyreloc=no
30113 if test $gcc_cv_ld_pie = yes ; then
30114 if test $in_tree_ld = yes ; then
30115 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
30116 gcc_cv_ld_pie_copyreloc=yes
30117 fi
30118 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30119 # Check if linker supports -pie option with copy reloc
30120 case "$target" in
30121 i?86-*-linux* | x86_64-*-linux*)
30122 cat > conftest1.s <<EOF
30123 .globl a_glob
30124 .data
30125 .type a_glob, @object
30126 .size a_glob, 4
30127 a_glob:
30128 .long 2
30129 EOF
30130 cat > conftest2.s <<EOF
30131 .text
30132 .globl main
30133 .type main, @function
30134 main:
30135 movl %eax, a_glob(%rip)
30136 .size main, .-main
30137 .globl ptr
30138 .section .data.rel,"aw",@progbits
30139 .type ptr, @object
30140 ptr:
30141 .quad a_glob
30142 EOF
30143 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30144 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
30145 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30146 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
30147 gcc_cv_ld_pie_copyreloc=yes
30148 fi
30149 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30150 ;;
30151 esac
30152 fi
30153 fi
30154
30155 cat >>confdefs.h <<_ACEOF
30156 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30157 _ACEOF
30158
30159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30160 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30161
30162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30163 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30164 gcc_cv_ld_eh_gc_sections=no
30165 if test $in_tree_ld = yes ; then
30166 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 \
30167 && test $in_tree_ld_is_elf = yes; then
30168 gcc_cv_ld_eh_gc_sections=yes
30169 fi
30170 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
30171 cat > conftest.s <<EOF
30172 .section .text
30173 .globl _start
30174 .type _start, @function
30175 _start:
30176 .long foo
30177 .size _start, .-_start
30178 .section .text.foo,"ax",@progbits
30179 .type foo, @function
30180 foo:
30181 .long 0
30182 .size foo, .-foo
30183 .section .gcc_except_table.foo,"a",@progbits
30184 .L0:
30185 .long 0
30186 .section .eh_frame,"a",@progbits
30187 .long .L0
30188 EOF
30189 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30190 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30191 | grep "gc-sections option ignored" > /dev/null; then
30192 gcc_cv_ld_eh_gc_sections=no
30193 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30194 | grep gcc_except_table > /dev/null; then
30195 gcc_cv_ld_eh_gc_sections=yes
30196 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30197 if test x$gcc_cv_as_comdat_group != xyes; then
30198 gcc_cv_ld_eh_gc_sections=no
30199 cat > conftest.s <<EOF
30200 .section .text
30201 .globl _start
30202 .type _start, @function
30203 _start:
30204 .long foo
30205 .size _start, .-_start
30206 .section .gnu.linkonce.t.foo,"ax",@progbits
30207 .type foo, @function
30208 foo:
30209 .long 0
30210 .size foo, .-foo
30211 .section .gcc_except_table.foo,"a",@progbits
30212 .L0:
30213 .long 0
30214 .section .eh_frame,"a",@progbits
30215 .long .L0
30216 EOF
30217 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30218 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30219 | grep "gc-sections option ignored" > /dev/null; then
30220 gcc_cv_ld_eh_gc_sections=no
30221 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30222 | grep gcc_except_table > /dev/null; then
30223 gcc_cv_ld_eh_gc_sections=yes
30224 fi
30225 fi
30226 fi
30227 fi
30228 fi
30229 rm -f conftest.s conftest.o conftest
30230 fi
30231 case "$target" in
30232 hppa*-*-linux*)
30233 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30234 gcc_cv_ld_eh_gc_sections=no
30235 ;;
30236 esac
30237 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30238
30239 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30240
30241 fi
30242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30243 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30244
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30246 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30247 gcc_cv_ld_eh_gc_sections_bug=no
30248 if test $in_tree_ld = yes ; then
30249 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 \
30250 && test $in_tree_ld_is_elf = yes; then
30251 gcc_cv_ld_eh_gc_sections_bug=yes
30252 fi
30253 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
30254 gcc_cv_ld_eh_gc_sections_bug=yes
30255 cat > conftest.s <<EOF
30256 .section .text
30257 .globl _start
30258 .type _start, @function
30259 _start:
30260 .long foo
30261 .size _start, .-_start
30262 .section .text.startup.foo,"ax",@progbits
30263 .type foo, @function
30264 foo:
30265 .long 0
30266 .size foo, .-foo
30267 .section .gcc_except_table.foo,"a",@progbits
30268 .L0:
30269 .long 0
30270 .section .eh_frame,"a",@progbits
30271 .long .L0
30272 EOF
30273 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30274 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30275 | grep "gc-sections option ignored" > /dev/null; then
30276 :
30277 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30278 | grep gcc_except_table > /dev/null; then
30279 gcc_cv_ld_eh_gc_sections_bug=no
30280 fi
30281 fi
30282 rm -f conftest.s conftest.o conftest
30283 fi
30284 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30285
30286 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30287
30288 fi
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30290 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30291
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30293 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30294 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30295 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
30296 gcc_cv_ld_compress_debug=1
30297 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30298 # Detect zstd debug section compression support
30299 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
30300 gcc_cv_ld_compress_debug=2
30301 fi
30302 else
30303 case "${target}" in
30304 *-*-solaris2*)
30305 # Introduced in Solaris 11.2.
30306 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30307 gcc_cv_ld_compress_debug=1
30308 gcc_cv_ld_compress_debug_option="-z compress-sections"
30309 else
30310 gcc_cv_ld_compress_debug=0
30311 fi
30312 ;;
30313 *)
30314 # Assume linkers other than GNU ld don't support compessed debug
30315 # sections.
30316 gcc_cv_ld_compress_debug=0
30317 ;;
30318 esac
30319 fi
30320
30321 cat >>confdefs.h <<_ACEOF
30322 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30323 _ACEOF
30324
30325
30326 cat >>confdefs.h <<_ACEOF
30327 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30328 _ACEOF
30329
30330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30331 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30332
30333 if test x"$ld64_flag" = x"yes"; then
30334
30335 # Set defaults for possibly untestable items.
30336 gcc_cv_ld64_export_dynamic=0
30337 gcc_cv_ld64_platform_version=0
30338
30339 if test "$build" = "$host"; then
30340 darwin_try_test=1
30341 else
30342 darwin_try_test=0
30343 fi
30344
30345 # On Darwin, because of FAT library support, it is often possible to execute
30346 # exes from compatible archs even when the host differs from the build system.
30347 case "$build","$host" in
30348 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30349 darwin_try_test=1;;
30350 *) ;;
30351 esac
30352
30353 # If the configurer specified a minimum ld64 version to be supported, then use
30354 # that to determine feature support.
30355 if test x"${gcc_cv_ld64_version}" != x; then
30356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30357 $as_echo_n "checking ld64 specified version... " >&6; }
30358 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30360 $as_echo "$gcc_cv_ld64_major" >&6; }
30361 if test "$gcc_cv_ld64_major" -ge 236; then
30362 gcc_cv_ld64_export_dynamic=1
30363 fi
30364 if test "$gcc_cv_ld64_major" -ge 512; then
30365 gcc_cv_ld64_platform_version=1
30366 fi
30367 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30368 # If the version was not specified, try to find it.
30369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30370 $as_echo_n "checking linker version... " >&6; }
30371 if test x"${gcc_cv_ld64_version}" = x; then
30372 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30373 fi
30374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30375 $as_echo "$gcc_cv_ld64_version" >&6; }
30376
30377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30378 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30379 gcc_cv_ld64_export_dynamic=1
30380 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30381 gcc_cv_ld64_export_dynamic=0
30382 fi
30383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30384 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30385
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30387 $as_echo_n "checking linker for -platform_version support... " >&6; }
30388 gcc_cv_ld64_platform_version=1
30389 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30390 gcc_cv_ld64_platform_version=0
30391 fi
30392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30393 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30394 fi
30395
30396 if test x"${gcc_cv_ld64_version}" != x; then
30397
30398 cat >>confdefs.h <<_ACEOF
30399 #define LD64_VERSION "${gcc_cv_ld64_version}"
30400 _ACEOF
30401
30402 fi
30403
30404
30405 cat >>confdefs.h <<_ACEOF
30406 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30407 _ACEOF
30408
30409
30410
30411 cat >>confdefs.h <<_ACEOF
30412 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30413 _ACEOF
30414
30415 fi
30416
30417 if test x"$dsymutil_flag" = x"yes"; then
30418
30419 # If the user specified a dsymutil path, then we will already have the
30420 # version string, otherwise, pick it up.
30421 if test x"$gcc_cv_dsymutil" = x; then
30422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30423 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30424 dsymutil_vers="tool unspecified"
30425 elif test x"$dsymutil_vers" = x; then
30426 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30427 fi
30428
30429 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30431 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30432 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30433 dsymutil_kind=DWARFUTILS
30434 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30435 elif echo $dsymutil_temp | grep clang- > /dev/null; then
30436 dsymutil_kind=CLANG
30437 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30438 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30439 dsymutil_kind=LLVM
30440 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30441 else
30442 dsymutil_kind=UNKNOWN
30443 dsymutil_vers="0.0"
30444 fi
30445 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30446 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30447 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30448 if test x"${dsymutil_minor}" = x; then
30449 dsymutil_minor=0
30450 fi
30451 if test x"${dsymutil_tiny}" = x; then
30452 dsymutil_tiny=0
30453 fi
30454
30455 cat >>confdefs.h <<_ACEOF
30456 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30457 _ACEOF
30458
30459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30460 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30461 fi
30462
30463 case $target_os in
30464 win32 | pe | cygwin* | mingw32*)
30465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30466 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30467 gcc_cv_ld_broken_pe_dwarf5=yes
30468 if test $in_tree_ld = yes ; then
30469 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30470 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30471 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30472 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30473 gcc_cv_ld_broken_pe_dwarf5=no
30474 fi
30475 else
30476 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30477 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30478 gcc_cv_ld_broken_pe_dwarf5=no
30479 fi
30480 fi
30481 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30482
30483 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30484
30485 fi
30486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30487 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30488
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30490 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30491 gcc_cv_ld_disable_dynamicbase=no
30492 if test $in_tree_ld = yes; then
30493 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 36 -o "$gcc_cv_gld_major_version" -gt 2; then \
30494 gcc_cv_ld_disable_dynamicbase=yes
30495 fi
30496 else
30497 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30498 gcc_cv_ld_disable_dynamicbase=yes
30499 fi
30500 fi
30501 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30502
30503 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30504
30505 fi
30506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30507 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30508 ;;
30509 esac
30510
30511 # --------
30512 # UNSORTED
30513 # --------
30514
30515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30516 $as_echo_n "checking linker --as-needed support... " >&6; }
30517 if ${gcc_cv_ld_as_needed+:} false; then :
30518 $as_echo_n "(cached) " >&6
30519 else
30520 gcc_cv_ld_as_needed=no
30521 gcc_cv_ld_as_needed_option='--as-needed'
30522 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30523 if test $in_tree_ld = yes ; then
30524 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 \
30525 && test $in_tree_ld_is_elf = yes; then
30526 gcc_cv_ld_as_needed=yes
30527 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30528 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30529 gcc_cv_ld_no_as_needed_option='--pop-state'
30530 fi
30531 fi
30532 elif test x$gcc_cv_ld != x; then
30533 # Check if linker supports --as-needed and --no-as-needed options
30534 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30535 gcc_cv_ld_as_needed=yes
30536 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30537 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30538 && echo "$ld_ver" | grep GNU > /dev/null \
30539 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30540 # Use these options only when both ld.bfd and ld.gold support
30541 # --push-state/--pop-state, which unfortunately wasn't added
30542 # at the same time.
30543 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30544 gcc_cv_ld_no_as_needed_option='--pop-state'
30545 fi
30546 fi
30547 case "$target:$gnu_ld" in
30548 *-*-solaris2*:no)
30549 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30550 # forms.
30551 gcc_cv_ld_as_needed=yes
30552 gcc_cv_ld_as_needed_option="-z ignore"
30553 gcc_cv_ld_no_as_needed_option="-z record"
30554 ;;
30555 esac
30556 fi
30557 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30558 # dl_iterate_phdr, i.e. since Solaris 11.
30559 case "$target" in
30560 *-*-solaris2.1[1-9]*)
30561 case "$target" in
30562 i?86-*-* | x86_64-*-*)
30563 if echo "$ld_ver" | grep GNU > /dev/null; then
30564 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30565 gcc_cv_ld_as_needed=no
30566 fi
30567 ;;
30568 esac
30569 ;;
30570 *-*-solaris2*)
30571 gcc_cv_ld_as_needed=no
30572 ;;
30573 esac
30574
30575 fi
30576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30577 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30578 if test x"$gcc_cv_ld_as_needed" = xyes; then
30579
30580 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30581
30582
30583 cat >>confdefs.h <<_ACEOF
30584 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30585 _ACEOF
30586
30587
30588 cat >>confdefs.h <<_ACEOF
30589 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30590 _ACEOF
30591
30592 fi
30593
30594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30595 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30596 saved_LDFLAGS="$LDFLAGS"
30597 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30598 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30600 /* end confdefs.h. */
30601 int main(void) {return 0;}
30602 _ACEOF
30603 if ac_fn_cxx_try_link "$LINENO"; then :
30604 gcc_cv_ld_clearcap=yes; break
30605 else
30606 gcc_cv_ld_clearcap=no
30607 fi
30608 rm -f core conftest.err conftest.$ac_objext \
30609 conftest$ac_exeext conftest.$ac_ext
30610 done
30611 LDFLAGS="$saved_LDFLAGS"
30612 if test "x$gcc_cv_ld_clearcap" = xyes; then
30613
30614 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30615
30616 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30617
30618 fi
30619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30620 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30621
30622 case "$target" in
30623 powerpc*-*-*)
30624 case "$target" in
30625 *le-*-linux*)
30626 emul_name="-melf32lppc"
30627 ;;
30628 *)
30629 emul_name="-melf32ppc"
30630 ;;
30631 esac
30632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30633 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30634 if ${gcc_cv_ld_ppc_attr+:} false; then :
30635 $as_echo_n "(cached) " >&6
30636 else
30637 gcc_cv_ld_ppc_attr=no
30638 if test x"$ld_is_gold" = xyes; then
30639 gcc_cv_ld_ppc_attr=yes
30640 elif test $in_tree_ld = yes ; then
30641 if test "$gcc_cv_gld_major_version" -eq 2 \
30642 -a "$gcc_cv_gld_minor_version" -ge 28 \
30643 -o "$gcc_cv_gld_major_version" -gt 2; then
30644 gcc_cv_ld_ppc_attr=yes
30645 fi
30646 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30647 # check that merging the long double .gnu_attribute doesn't warn
30648 cat > conftest1.s <<EOF
30649 .gnu_attribute 4,1
30650 EOF
30651 cat > conftest2.s <<EOF
30652 .gnu_attribute 4,9
30653 EOF
30654 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30655 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30656 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30657 && test ! -s conftest.err; then
30658 gcc_cv_ld_ppc_attr=yes
30659 fi
30660 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30661 fi
30662
30663 fi
30664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30665 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30666 if test x$gcc_cv_ld_ppc_attr = xyes; then
30667
30668 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30669
30670 fi
30671 ;;
30672 esac
30673
30674 case "$target:$tm_file" in
30675 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30676 case "$target" in
30677 *le-*-linux*)
30678 emul_name="-melf64lppc"
30679 ;;
30680 *-*-linux*)
30681 emul_name="-melf64ppc"
30682 ;;
30683 *le-*-freebsd*)
30684 emul_name="-melf64lppc_fbsd"
30685 ;;
30686 *-*-freebsd*)
30687 emul_name="-melf64ppc_fbsd"
30688 ;;
30689 esac
30690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30691 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30692 if ${gcc_cv_ld_no_dot_syms+:} false; then :
30693 $as_echo_n "(cached) " >&6
30694 else
30695 gcc_cv_ld_no_dot_syms=no
30696 if test x"$ld_is_gold" = xyes; then
30697 gcc_cv_ld_no_dot_syms=yes
30698 elif test $in_tree_ld = yes ; then
30699 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
30700 gcc_cv_ld_no_dot_syms=yes
30701 fi
30702 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30703 cat > conftest1.s <<EOF
30704 .text
30705 bl .foo
30706 EOF
30707 cat > conftest2.s <<EOF
30708 .section ".opd","aw"
30709 .align 3
30710 .globl foo
30711 .type foo,@function
30712 foo:
30713 .quad .LEfoo,.TOC.@tocbase,0
30714 .text
30715 .LEfoo:
30716 blr
30717 .size foo,.-.LEfoo
30718 EOF
30719 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30720 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30721 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30722 gcc_cv_ld_no_dot_syms=yes
30723 fi
30724 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30725 fi
30726
30727 fi
30728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30729 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30730 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30731
30732 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30733
30734 fi
30735
30736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30737 $as_echo_n "checking linker large toc support... " >&6; }
30738 if ${gcc_cv_ld_large_toc+:} false; then :
30739 $as_echo_n "(cached) " >&6
30740 else
30741 gcc_cv_ld_large_toc=no
30742 if test x"$ld_is_gold" = xyes; then
30743 gcc_cv_ld_large_toc=yes
30744 elif test $in_tree_ld = yes ; then
30745 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
30746 gcc_cv_ld_large_toc=yes
30747 fi
30748 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30749 cat > conftest.s <<EOF
30750 .section ".tbss","awT",@nobits
30751 .align 3
30752 ie0: .space 8
30753 .global _start
30754 .text
30755 _start:
30756 addis 9,13,ie0@got@tprel@ha
30757 ld 9,ie0@got@tprel@l(9)
30758 EOF
30759 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30760 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30761 gcc_cv_ld_large_toc=yes
30762 fi
30763 rm -f conftest conftest.o conftest.s
30764 fi
30765
30766 fi
30767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30768 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30769 if test x"$gcc_cv_ld_large_toc" = xyes; then
30770
30771 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30772
30773 fi
30774
30775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30776 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30777 if ${gcc_cv_ld_toc_align+:} false; then :
30778 $as_echo_n "(cached) " >&6
30779 else
30780 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30781 cat > conftest.s <<EOF
30782 .global _start
30783 .text
30784 _start:
30785 addis 9,2,x@got@ha
30786 .section .data.rel.ro,"aw",@progbits
30787 .p2align 16
30788 .space 32768
30789 x: .quad .TOC.
30790 EOF
30791 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30792 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30793 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)) }'`
30794 fi
30795 rm -f conftest conftest.o conftest.s
30796 fi
30797
30798 fi
30799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30800 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30801 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30802
30803 cat >>confdefs.h <<_ACEOF
30804 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30805 _ACEOF
30806
30807 fi
30808 ;;
30809 esac
30810
30811 case "$target" in
30812 *-*-aix*)
30813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30814 $as_echo_n "checking linker large toc support... " >&6; }
30815 if ${gcc_cv_ld_large_toc+:} false; then :
30816 $as_echo_n "(cached) " >&6
30817 else
30818 gcc_cv_ld_large_toc=no
30819 if test x$gcc_cv_as != x ; then
30820 cat > conftest.s <<EOF
30821 .toc
30822 LC..1:
30823 .tc a[TC],a[RW]
30824 .extern a[RW]
30825 .csect .text[PR]
30826 .largetoctest:
30827 addis 9,LC..1@u(2)
30828 ld 3,LC..1@l(9)
30829 EOF
30830 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
30831 gcc_cv_ld_large_toc=yes
30832 fi
30833 rm -f conftest conftest.o conftest.s
30834 fi
30835
30836 fi
30837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30838 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30839 if test x"$gcc_cv_ld_large_toc" = xyes; then
30840
30841 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30842
30843 fi
30844 ;;
30845 esac
30846
30847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30848 $as_echo_n "checking linker --build-id support... " >&6; }
30849 if ${gcc_cv_ld_buildid+:} false; then :
30850 $as_echo_n "(cached) " >&6
30851 else
30852 gcc_cv_ld_buildid=no
30853 if test $in_tree_ld = yes ; then
30854 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30855 "$gcc_cv_gld_minor_version" -ge 18 -o \
30856 "$gcc_cv_gld_major_version" -gt 2 \
30857 && test $in_tree_ld_is_elf = yes; then
30858 gcc_cv_ld_buildid=yes
30859 fi
30860 elif test x$gcc_cv_ld != x; then
30861 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
30862 gcc_cv_ld_buildid=yes
30863 fi
30864 fi
30865 fi
30866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30867 $as_echo "$gcc_cv_ld_buildid" >&6; }
30868 if test x"$gcc_cv_ld_buildid" = xyes; then
30869
30870 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30871
30872 fi
30873
30874 # Check whether --enable-linker-build-id was given.
30875 if test "${enable_linker_build_id+set}" = set; then :
30876 enableval=$enable_linker_build_id;
30877 else
30878 enable_linker_build_id=no
30879 fi
30880
30881
30882 if test x"$enable_linker_build_id" = xyes; then
30883 if test x"$gcc_cv_ld_buildid" = xyes; then
30884
30885 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30886
30887 else
30888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30889 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30890 fi
30891 fi
30892
30893 # In binutils 2.21, GNU ld gained support for new emulations fully
30894 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30896 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30897 if ${gcc_cv_ld_sol2_emulation+:} false; then :
30898 $as_echo_n "(cached) " >&6
30899 else
30900 gcc_cv_ld_sol2_emulation=no
30901 if test $in_tree_ld = yes ; then
30902 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30903 "$gcc_cv_gld_minor_version" -ge 21 -o \
30904 "$gcc_cv_gld_major_version" -gt 2 \
30905 && test $in_tree_ld_is_elf = yes; then
30906 gcc_cv_ld_sol2_emulation=yes
30907 fi
30908 elif test x$gcc_cv_ld != x; then
30909 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
30910 grep _sol2 > /dev/null; then
30911 gcc_cv_ld_sol2_emulation=yes
30912 fi
30913 fi
30914 fi
30915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30916 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30917 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
30918
30919 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30920
30921 fi
30922
30923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30924 $as_echo_n "checking linker --sysroot support... " >&6; }
30925 if ${gcc_cv_ld_sysroot+:} false; then :
30926 $as_echo_n "(cached) " >&6
30927 else
30928 gcc_cv_ld_sysroot=no
30929 if test $in_tree_ld = yes ; then
30930 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
30931 gcc_cv_ld_sysroot=yes
30932 fi
30933 elif test x$gcc_cv_ld != x; then
30934 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
30935 gcc_cv_ld_sysroot=yes
30936 fi
30937 fi
30938 fi
30939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30940 $as_echo "$gcc_cv_ld_sysroot" >&6; }
30941 if test x"$gcc_cv_ld_sysroot" = xyes; then
30942
30943 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30944
30945 fi
30946
30947 case $target in
30948 *-*-solaris2*)
30949 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30951 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30952 if ${gcc_cv_solaris_crts+:} false; then :
30953 $as_echo_n "(cached) " >&6
30954 else
30955 gcc_cv_solaris_crts=no
30956 if test x$host != x$target; then
30957 if test "x$with_sysroot" = xyes; then
30958 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
30959 else
30960 target_sysroot="${with_sysroot}"
30961 fi
30962 fi
30963 target_libdir="$target_sysroot/usr/lib"
30964 # At the time they were added, gcrt1.o became a symlink for backwards
30965 # compatibility on x86, while crt1.o was added on sparc, so check for that.
30966 case $target in
30967 i?86-*-solaris2* | x86_64-*-solaris2*)
30968 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
30969 ;;
30970 sparc*-*-solaris2*)
30971 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
30972 ;;
30973 esac
30974 fi
30975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30976 $as_echo "$gcc_cv_solaris_crts" >&6; }
30977 ;;
30978 esac
30979 if test x$gcc_cv_solaris_crts = xyes; then
30980
30981 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30982
30983 fi
30984
30985 # Check whether --enable-libssp was given.
30986 if test "${enable_libssp+set}" = set; then :
30987 enableval=$enable_libssp; case "${enableval}" in
30988 yes|no)
30989 ;;
30990 *)
30991 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
30992 ;;
30993 esac
30994 fi
30995
30996
30997 # Test for stack protector support in target C library.
30998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
30999 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31000 if ${gcc_cv_libc_provides_ssp+:} false; then :
31001 $as_echo_n "(cached) " >&6
31002 else
31003 gcc_cv_libc_provides_ssp=no
31004 if test "x$enable_libssp" = "xno"; then
31005 gcc_cv_libc_provides_ssp=yes
31006 elif test "x$enable_libssp" = "xyes"; then
31007 gcc_cv_libc_provides_ssp=no
31008 else
31009 case "$target" in
31010 *-*-musl*)
31011 # All versions of musl provide stack protector
31012 gcc_cv_libc_provides_ssp=yes;;
31013 *-*-linux* | *-*-kfreebsd*-gnu)
31014 # glibc 2.4 and later provides __stack_chk_fail and
31015 # either __stack_chk_guard, or TLS access to stack guard canary.
31016
31017 if test $glibc_version_major -gt 2 \
31018 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31019 gcc_cv_libc_provides_ssp=yes
31020 else
31021
31022 if test -f $target_header_dir/features.h \
31023 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31024 $target_header_dir/features.h > /dev/null; then
31025 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31026 $target_header_dir/features.h > /dev/null && \
31027 test -f $target_header_dir/bits/uClibc_config.h && \
31028 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31029 $target_header_dir/bits/uClibc_config.h > /dev/null; then
31030 gcc_cv_libc_provides_ssp=yes
31031 fi
31032 # all versions of Bionic support stack protector
31033 elif test -f $target_header_dir/sys/cdefs.h \
31034 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31035 $target_header_dir/sys/cdefs.h > /dev/null; then
31036 gcc_cv_libc_provides_ssp=yes
31037 fi
31038 fi
31039 ;;
31040 *-*-gnu*)
31041 # Avoid complicated tests (see
31042 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31043 # simply assert that glibc does provide this, which is true for all
31044 # realistically usable GNU/Hurd configurations.
31045 # All supported versions of musl provide it as well
31046 gcc_cv_libc_provides_ssp=yes;;
31047 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
31048 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31049 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
31050 gcc_cv_libc_provides_ssp=yes
31051 else
31052 echo "no __stack_chk_fail on this target"
31053 fi
31054
31055 ;;
31056 *) gcc_cv_libc_provides_ssp=no ;;
31057 esac
31058 fi
31059 fi
31060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31061 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31062
31063 if test x$gcc_cv_libc_provides_ssp = xyes; then
31064
31065 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31066
31067 fi
31068
31069 # Check whether --enable-default-ssp was given.
31070 # Check whether --enable-default-ssp was given.
31071 if test "${enable_default_ssp+set}" = set; then :
31072 enableval=$enable_default_ssp;
31073 if test x$gcc_cv_libc_provides_ssp = xyes; then
31074 case "$target" in
31075 ia64*-*-*) enable_default_ssp=no ;;
31076 *) enable_default_ssp=$enableval ;;
31077 esac
31078 else
31079 enable_default_ssp=no
31080 fi
31081 else
31082 enable_default_ssp=no
31083 fi
31084
31085 if test x$enable_default_ssp = xyes ; then
31086
31087 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31088
31089 fi
31090
31091
31092 # Test for <sys/sdt.h> on the target.
31093
31094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31095 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31096 if ${gcc_cv_sys_sdt_h+:} false; then :
31097 $as_echo_n "(cached) " >&6
31098 else
31099
31100 gcc_cv_sys_sdt_h=no
31101 if test -f $target_header_dir/sys/sdt.h; then
31102 gcc_cv_sys_sdt_h=yes
31103 fi
31104
31105 fi
31106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
31107 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
31108 if test x$gcc_cv_sys_sdt_h = xyes; then :
31109
31110
31111 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31112
31113
31114 fi
31115
31116 # Check if TFmode long double should be used by default or not.
31117 # Some glibc targets used DFmode long double, but with glibc 2.4
31118 # and later they can use TFmode.
31119 case "$target" in
31120 powerpc*-*-linux* | \
31121 sparc*-*-linux* | \
31122 s390*-*-linux* | \
31123 alpha*-*-linux*)
31124
31125 # Check whether --with-long-double-128 was given.
31126 if test "${with_long_double_128+set}" = set; then :
31127 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
31128 else
31129
31130 case "$target" in
31131 s390*-*-linux-musl*)
31132 gcc_cv_target_ldbl128=yes
31133 ;;
31134 powerpc*-*-linux-musl*)
31135 gcc_cv_target_ldbl128=no
31136 ;;
31137 *)
31138
31139 if test $glibc_version_major -gt 2 \
31140 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31141 gcc_cv_target_ldbl128=yes
31142 else
31143
31144 gcc_cv_target_ldbl128=no
31145 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31146 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
31147 && gcc_cv_target_ldbl128=yes
31148
31149 fi
31150
31151 ;;
31152 esac
31153
31154 fi
31155
31156 ;;
31157 esac
31158 if test x$gcc_cv_target_ldbl128 = xyes; then
31159
31160 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31161
31162 fi
31163
31164 # Check if TFmode long double target should use the IBM extended double or IEEE
31165 # 128-bit floating point formats if long doubles are 128-bits long. The long
31166 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31167 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31168 # libgcc.
31169
31170 # Check whether --with-long-double-format was given.
31171 if test "${with_long_double_format+set}" = set; then :
31172 withval=$with_long_double_format;
31173 case "$target:$with_long_double_format" in
31174 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
31175 :
31176 ;;
31177 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
31178 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31179 case "$with_cpu" in
31180 power7 | power8 | power9 | power1*)
31181 :
31182 ;;
31183 *)
31184 as_fn_error $? "Configuration option --with-long-double-format is only \
31185 supported if the default cpu is power7 or newer" "$LINENO" 5
31186 with_long_double_format=""
31187 ;;
31188 esac
31189 ;;
31190 powerpc64*-*-linux*:*)
31191 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31192 with_long_double_format=""
31193 ;;
31194 *)
31195 as_fn_error $? "Configure option --with-long-double-format is only supported \
31196 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31197 with_long_double_format=""
31198 ;;
31199 esac
31200 fi
31201
31202
31203 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31204 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31205 gcc_cv_libc_provides_hwcap_in_tcb=no
31206 case "$target" in
31207 powerpc*-*-linux*)
31208
31209 if test $glibc_version_major -gt 2 \
31210 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31211 gcc_cv_libc_provides_hwcap_in_tcb=yes
31212 fi
31213 ;;
31214 esac
31215 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31216
31217 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31218
31219 fi
31220
31221 # Check if the target LIBC handles PT_GNU_STACK.
31222 gcc_cv_libc_gnustack=unknown
31223 case "$target" in
31224 mips*-*-linux-musl*)
31225 gcc_cv_libc_gnustack=yes
31226 ;;
31227 mips*-*-linux*)
31228
31229 if test $glibc_version_major -gt 2 \
31230 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31231 gcc_cv_libc_gnustack=yes
31232 fi
31233 ;;
31234 esac
31235 if test x$gcc_cv_libc_gnustack = xyes; then
31236
31237 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31238
31239 fi
31240
31241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31242 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31243 gcc_cv_target_dl_iterate_phdr=unknown
31244 case "$target" in
31245 *-*-solaris2*)
31246 # <link.h> needs both a dl_iterate_phdr declaration and support for
31247 # compilation with largefile support.
31248 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31249 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31250 gcc_cv_target_dl_iterate_phdr=yes
31251 else
31252 gcc_cv_target_dl_iterate_phdr=no
31253 fi
31254 ;;
31255 *-*-dragonfly* | *-*-freebsd*)
31256 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31257 gcc_cv_target_dl_iterate_phdr=yes
31258 else
31259 gcc_cv_target_dl_iterate_phdr=no
31260 fi
31261 ;;
31262 *-linux-musl*)
31263 gcc_cv_target_dl_iterate_phdr=yes
31264 ;;
31265 esac
31266
31267 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31268
31269 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31270
31271 fi
31272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31273 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31274
31275 # We no longer support different GC mechanisms. Emit an error if
31276 # the user configures with --with-gc.
31277
31278 # Check whether --with-gc was given.
31279 if test "${with_gc+set}" = set; then :
31280 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31281 fi
31282
31283
31284 # Libraries to use on the host. This will normally be set by the top
31285 # level Makefile. Here we simply capture the value for our Makefile.
31286 if test -z "${HOST_LIBS+set}"; then
31287 HOST_LIBS=
31288 fi
31289
31290
31291 # Use the system's zlib library.
31292
31293 # Use the system's zlib library.
31294 zlibdir="-L\$(top_builddir)/../zlib"
31295 zlibinc="-I\$(top_srcdir)/../zlib"
31296
31297 # Check whether --with-system-zlib was given.
31298 if test "${with_system_zlib+set}" = set; then :
31299 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31300 zlibdir=
31301 zlibinc=
31302 fi
31303
31304 fi
31305
31306
31307
31308
31309
31310
31311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31312 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31313 # Check whether --enable-maintainer-mode was given.
31314 if test "${enable_maintainer_mode+set}" = set; then :
31315 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31316 else
31317 maintainer_mode=no
31318 fi
31319
31320
31321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31322 $as_echo "$maintainer_mode" >&6; }
31323
31324 if test "$maintainer_mode" = "yes"; then
31325 MAINT=''
31326 else
31327 MAINT='#'
31328 fi
31329
31330 if test -z "$CTAGS"; then
31331 CTAGS=ctags
31332 fi
31333
31334 if test -z "$ETAGS"; then
31335 ETAGS=etags
31336 fi
31337
31338 if test -z "$CSCOPE"; then
31339 CSCOPE=cscope
31340 fi
31341
31342
31343
31344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31345 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31346 # Check whether --enable-link-mutex was given.
31347 if test "${enable_link_mutex+set}" = set; then :
31348 enableval=$enable_link_mutex; do_link_mutex=$enableval
31349 else
31350 do_link_mutex=no
31351 fi
31352
31353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31354 $as_echo "$do_link_mutex" >&6; }
31355
31356 if test "$do_link_mutex" = "yes"; then
31357 DO_LINK_MUTEX=true
31358 else
31359 DO_LINK_MUTEX=false
31360 fi
31361
31362
31363
31364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31365 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31366 # Check whether --enable-link-serialization was given.
31367 if test "${enable_link_serialization+set}" = set; then :
31368 enableval=$enable_link_serialization; do_link_serialization=$enableval
31369 else
31370 do_link_serialization=no
31371 fi
31372
31373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31374 $as_echo "$do_link_serialization" >&6; }
31375
31376 case "$do_link_serialization" in
31377 yes)
31378 DO_LINK_SERIALIZATION=1;;
31379 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31380 DO_LINK_SERIALIZATION=$do_link_serialization;;
31381 no)
31382 DO_LINK_SERIALIZATION=;;
31383 *)
31384 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31385 esac
31386
31387
31388 # --------------
31389 # Language hooks
31390 # --------------
31391
31392 # Make empty files to contain the specs and options for each language.
31393 # Then add #include lines to for a compiler that has specs and/or options.
31394
31395 subdirs=
31396 lang_opt_files=
31397 lang_specs_files=
31398 lang_tree_files=
31399 # These (without "all_") are set in each config-lang.in.
31400 # `language' must be a single word so is spelled singularly.
31401 all_languages=
31402 all_compilers=
31403 all_outputs='Makefile'
31404 # List of language configure and makefile fragments.
31405 all_lang_configurefrags=
31406 all_lang_makefrags=
31407 # Additional files for gengtype
31408 all_gtfiles="$target_gtfiles"
31409
31410 # These are the languages that are set in --enable-languages,
31411 # and are available in the GCC tree.
31412 all_selected_languages=
31413
31414 # Add the language fragments.
31415 # Languages are added via two mechanisms. Some information must be
31416 # recorded in makefile variables, these are defined in config-lang.in.
31417 # We accumulate them and plug them into the main Makefile.
31418 # The other mechanism is a set of hooks for each of the main targets
31419 # like `clean', `install', etc.
31420
31421 language_hooks="Make-hooks"
31422
31423 for lang in ${srcdir}/*/config-lang.in
31424 do
31425 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31426
31427 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31428 if test "x$lang_alias" = x
31429 then
31430 echo "$lang doesn't set \$language." 1>&2
31431 exit 1
31432 fi
31433 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31434 subdirs="$subdirs $subdir"
31435
31436 # $gcc_subdir is where the gcc integration files are to be found
31437 # for a language, both for internal compiler purposes (compiler
31438 # sources implementing front-end to GCC tree converters), and for
31439 # build infrastructure purposes (Make-lang.in, etc.)
31440 #
31441 # This will be <subdir> (relative to $srcdir) if a line like
31442 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31443 # is found in <langdir>/config-lang.in, and will remain <langdir>
31444 # otherwise.
31445 #
31446 # Except for the language alias (fetched above), the regular
31447 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31448 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31449 # only this and the language alias.
31450
31451 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31452 if [ "$gcc_subdir" = "" ]; then
31453 gcc_subdir="$subdir"
31454 fi
31455
31456 case ",$enable_languages," in
31457 *,$lang_alias,*)
31458 all_selected_languages="$all_selected_languages $lang_alias"
31459 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31460 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31461 fi
31462 ;;
31463 esac
31464
31465 language=
31466 boot_language=
31467 compilers=
31468 outputs=
31469 gtfiles=
31470 subdir_requires=
31471 . ${srcdir}/$gcc_subdir/config-lang.in
31472 if test "x$language" = x
31473 then
31474 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31475 exit 1
31476 fi
31477
31478 ok=:
31479 case ",$enable_languages," in
31480 *,$lang_alias,*) ;;
31481 *)
31482 for i in $subdir_requires; do
31483 test -f "${srcdir}/$i/config-lang.in" && continue
31484 ok=false
31485 break
31486 done
31487 ;;
31488 esac
31489 $ok || continue
31490
31491 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31492 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31493 # Put c/Make-lang.in fragment first to match serialization languages order.
31494 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31495 else
31496 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31497 fi
31498 if test -f $srcdir/$gcc_subdir/lang.opt; then
31499 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31500 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31501 fi
31502 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31503 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31504 fi
31505 all_languages="$all_languages $language"
31506 all_compilers="$all_compilers $compilers"
31507 all_outputs="$all_outputs $outputs"
31508 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31509 case ",$enable_languages," in
31510 *,lto,*)
31511
31512 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31513
31514 enable_lto=yes
31515
31516 ;;
31517 *) ;;
31518 esac
31519 done
31520
31521 check_languages=
31522 for language in $all_selected_languages
31523 do
31524 check_languages="$check_languages check-$language"
31525 done
31526
31527 selftest_languages=
31528 for language in $all_selected_languages
31529 do
31530 selftest_languages="$selftest_languages selftest-$language"
31531 done
31532
31533 # We link each language in with a set of hooks, reached indirectly via
31534 # lang.${target}. Only do so for selected languages.
31535
31536 rm -f Make-hooks
31537 touch Make-hooks
31538 target_list="all.cross start.encap rest.encap tags \
31539 install-common install-man install-info install-dvi install-pdf \
31540 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31541 mostlyclean clean distclean maintainer-clean install-plugin"
31542
31543 for t in $target_list
31544 do
31545 x=
31546 for lang in $all_selected_languages
31547 do
31548 x="$x $lang.$t"
31549 done
31550 echo "lang.$t: $x" >> Make-hooks
31551 done
31552
31553 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31554 echo "SERIAL_LIST =" >> Make-hooks
31555 echo else >> Make-hooks
31556 lang_cnt=0
31557 lang_list=
31558 prev=c
31559 serialization_languages=c
31560 for lang in $all_selected_languages
31561 do
31562 test $lang = c && continue
31563 if test $lang = lto; then
31564 serialization_languages="$serialization_languages lto1 lto2"
31565 else
31566 serialization_languages="$serialization_languages $lang"
31567 fi
31568 done
31569 for lang in $serialization_languages
31570 do
31571 test $lang = c && continue
31572 lang_cnt=`expr $lang_cnt + 1`
31573 lang_list=" $prev$lang_list"
31574 prev=${lang}
31575 done
31576 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31577 echo endif >> Make-hooks
31578 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31579 echo "INDEX.c = 0" >> Make-hooks
31580 lang_idx=1
31581 for lang in $serialization_languages
31582 do
31583 test $lang = c && continue
31584 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31585 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31586 lang_cnt=`expr $lang_cnt - 1`
31587 lang_idx=`expr $lang_idx + 1`
31588 done
31589
31590 # --------
31591 # Option include files
31592 # --------
31593
31594 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31595 option_includes="option-includes.mk"
31596
31597
31598 # --------
31599 # UNSORTED
31600 # --------
31601
31602 # Create .gdbinit.
31603
31604 echo "dir ." > .gdbinit
31605 echo "dir ${srcdir}" >> .gdbinit
31606 if test x$gdb_needs_out_file_path = xyes
31607 then
31608 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31609 fi
31610 if test "x$subdirs" != x; then
31611 for s in $subdirs
31612 do
31613 echo "dir ${srcdir}/$s" >> .gdbinit
31614 done
31615 fi
31616 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31617 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31618
31619 # Put a breakpoint on __asan_report_error to help with debugging buffer
31620 # overflow.
31621 case "$CFLAGS" in
31622 *-fsanitize=address*)
31623 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31624 ;;
31625 esac
31626
31627 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31628
31629
31630
31631 # Find a directory in which to install a shared libgcc.
31632
31633 # Check whether --enable-version-specific-runtime-libs was given.
31634 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31635 enableval=$enable_version_specific_runtime_libs;
31636 fi
31637
31638
31639 # Substitute configuration variables
31640
31641
31642
31643
31644
31645
31646
31647
31648
31649
31650
31651
31652
31653
31654
31655
31656
31657
31658
31659
31660
31661
31662
31663
31664
31665
31666
31667
31668
31669
31670
31671
31672
31673
31674
31675
31676
31677
31678
31679
31680
31681
31682
31683
31684
31685
31686
31687
31688
31689
31690
31691
31692
31693
31694
31695
31696
31697
31698
31699
31700
31701
31702
31703
31704
31705
31706
31707
31708
31709 # Echo link setup.
31710 if test x${build} = x${host} ; then
31711 if test x${host} = x${target} ; then
31712 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31713 else
31714 echo "Links are now set up to build a cross-compiler" 1>&2
31715 echo " from ${host} to ${target}." 1>&2
31716 fi
31717 else
31718 if test x${host} = x${target} ; then
31719 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31720 echo " for ${target}." 1>&2
31721 else
31722 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31723 echo " from ${host} to ${target}." 1>&2
31724 fi
31725 fi
31726
31727
31728
31729
31730
31731
31732 if test "x${ISLLIBS}" != "x" ; then
31733
31734 $as_echo "#define HAVE_isl 1" >>confdefs.h
31735
31736 fi
31737
31738 # Check for plugin support
31739 # Check whether --enable-plugin was given.
31740 if test "${enable_plugin+set}" = set; then :
31741 enableval=$enable_plugin; enable_plugin=$enableval
31742 else
31743 enable_plugin=yes; default_plugin=yes
31744 fi
31745
31746
31747 pluginlibs=
31748 plugin_check=yes
31749
31750 case "${host}" in
31751 *-*-mingw*)
31752 # Since plugin support under MinGW is not as straightforward as on
31753 # other platforms (e.g., we have to link import library, etc), we
31754 # only enable it if explicitly requested.
31755 if test x"$default_plugin" = x"yes"; then
31756 enable_plugin=no
31757 elif test x"$enable_plugin" = x"yes"; then
31758 # Use make's target variable to derive import library name.
31759 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31760 plugin_check=no
31761 fi
31762 ;;
31763 *-*-darwin*)
31764 if test x$build = x$host; then
31765 export_sym_check="nm${exeext} -g"
31766 elif test x$host = x$target; then
31767 export_sym_check="$gcc_cv_nm -g"
31768 else
31769 export_sym_check=
31770 fi
31771 ;;
31772 *)
31773 if test x$build = x$host; then
31774 export_sym_check="$ac_cv_prog_OBJDUMP -T"
31775 elif test x$host = x$target; then
31776 export_sym_check="$gcc_cv_objdump -T"
31777 else
31778 export_sym_check=
31779 fi
31780 ;;
31781 esac
31782
31783 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31784
31785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31786 $as_echo_n "checking for exported symbols... " >&6; }
31787 if test "x$export_sym_check" != x; then
31788 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31789 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31790 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31791 : # No need to use a flag
31792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31793 $as_echo "yes" >&6; }
31794 else
31795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31796 $as_echo "yes" >&6; }
31797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31798 $as_echo_n "checking for -rdynamic... " >&6; }
31799 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31800 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31801 plugin_rdynamic=yes
31802 pluginlibs="-rdynamic"
31803 else
31804 plugin_rdynamic=no
31805 enable_plugin=no
31806 fi
31807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31808 $as_echo "$plugin_rdynamic" >&6; }
31809 fi
31810 else
31811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31812 $as_echo "unable to check" >&6; }
31813 fi
31814
31815 # Check -ldl
31816 saved_LIBS="$LIBS"
31817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31818 $as_echo_n "checking for library containing dlopen... " >&6; }
31819 if ${ac_cv_search_dlopen+:} false; then :
31820 $as_echo_n "(cached) " >&6
31821 else
31822 ac_func_search_save_LIBS=$LIBS
31823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31824 /* end confdefs.h. */
31825
31826 /* Override any GCC internal prototype to avoid an error.
31827 Use char because int might match the return type of a GCC
31828 builtin and then its argument prototype would still apply. */
31829 #ifdef __cplusplus
31830 extern "C"
31831 #endif
31832 char dlopen ();
31833 int
31834 main ()
31835 {
31836 return dlopen ();
31837 ;
31838 return 0;
31839 }
31840 _ACEOF
31841 for ac_lib in '' dl; do
31842 if test -z "$ac_lib"; then
31843 ac_res="none required"
31844 else
31845 ac_res=-l$ac_lib
31846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31847 fi
31848 if ac_fn_cxx_try_link "$LINENO"; then :
31849 ac_cv_search_dlopen=$ac_res
31850 fi
31851 rm -f core conftest.err conftest.$ac_objext \
31852 conftest$ac_exeext
31853 if ${ac_cv_search_dlopen+:} false; then :
31854 break
31855 fi
31856 done
31857 if ${ac_cv_search_dlopen+:} false; then :
31858
31859 else
31860 ac_cv_search_dlopen=no
31861 fi
31862 rm conftest.$ac_ext
31863 LIBS=$ac_func_search_save_LIBS
31864 fi
31865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31866 $as_echo "$ac_cv_search_dlopen" >&6; }
31867 ac_res=$ac_cv_search_dlopen
31868 if test "$ac_res" != no; then :
31869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31870
31871 fi
31872
31873 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
31874 pluginlibs="$pluginlibs -ldl"
31875 fi
31876 LIBS="$saved_LIBS"
31877
31878 # Check that we can build shared objects with -fPIC -shared
31879 saved_LDFLAGS="$LDFLAGS"
31880 saved_CFLAGS="$CFLAGS"
31881 saved_CXXFLAGS="$CXXFLAGS"
31882 case "${host}" in
31883 *-*-darwin*)
31884 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31885 CFLAGS="$CFLAGS -fPIC"
31886 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
31887 CXXFLAGS="$CXXFLAGS -fPIC"
31888 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
31889 ;;
31890 *)
31891 CFLAGS="$CFLAGS -fPIC"
31892 CXXFLAGS="$CXXFLAGS -fPIC"
31893 LDFLAGS="$LDFLAGS -fPIC -shared"
31894 ;;
31895 esac
31896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31897 $as_echo_n "checking for -fPIC -shared... " >&6; }
31898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31899 /* end confdefs.h. */
31900 extern int X;
31901 int
31902 main ()
31903 {
31904 return X == 0;
31905 ;
31906 return 0;
31907 }
31908 _ACEOF
31909 if ac_fn_cxx_try_link "$LINENO"; then :
31910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31911 $as_echo "yes" >&6; }; have_pic_shared=yes
31912 else
31913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31914 $as_echo "no" >&6; }; have_pic_shared=no
31915 fi
31916 rm -f core conftest.err conftest.$ac_objext \
31917 conftest$ac_exeext conftest.$ac_ext
31918 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
31919 pluginlibs=
31920 enable_plugin=no
31921 fi
31922 LDFLAGS="$saved_LDFLAGS"
31923 CFLAGS="$saved_CFLAGS"
31924 CXXFLAGS="$saved_CXXFLAGS"
31925
31926 # If plugin support had been requested but not available, fail.
31927 if test x"$enable_plugin" = x"no" ; then
31928 if test x"$default_plugin" != x"yes"; then
31929 as_fn_error $? "
31930 Building GCC with plugin support requires a host that supports
31931 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
31932 fi
31933 fi
31934 fi
31935
31936
31937
31938 if test x"$enable_plugin" = x"yes"; then
31939
31940 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
31941
31942 fi
31943
31944
31945 # Enable --enable-host-shared
31946 # Check whether --enable-host-shared was given.
31947 if test "${enable_host_shared+set}" = set; then :
31948 enableval=$enable_host_shared; PICFLAG=-fPIC
31949 else
31950 PICFLAG=
31951 fi
31952
31953
31954
31955
31956
31957 # Check whether --enable-libquadmath-support was given.
31958 if test "${enable_libquadmath_support+set}" = set; then :
31959 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
31960 else
31961 ENABLE_LIBQUADMATH_SUPPORT=yes
31962 fi
31963
31964 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31965
31966 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31967
31968 fi
31969
31970
31971 # Specify what hash style to use by default.
31972
31973 # Check whether --with-linker-hash-style was given.
31974 if test "${with_linker_hash_style+set}" = set; then :
31975 withval=$with_linker_hash_style; case x"$withval" in
31976 xsysv)
31977 LINKER_HASH_STYLE=sysv
31978 ;;
31979 xgnu)
31980 LINKER_HASH_STYLE=gnu
31981 ;;
31982 xboth)
31983 LINKER_HASH_STYLE=both
31984 ;;
31985 *)
31986 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
31987 ;;
31988 esac
31989 else
31990 LINKER_HASH_STYLE=''
31991 fi
31992
31993 if test x"${LINKER_HASH_STYLE}" != x; then
31994
31995 cat >>confdefs.h <<_ACEOF
31996 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
31997 _ACEOF
31998
31999 fi
32000
32001 # Specify what should be the default of -fdiagnostics-color option.
32002
32003 # Check whether --with-diagnostics-color was given.
32004 if test "${with_diagnostics_color+set}" = set; then :
32005 withval=$with_diagnostics_color; case x"$withval" in
32006 xnever)
32007 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
32008 ;;
32009 xauto)
32010 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32011 ;;
32012 xauto-if-env)
32013 DIAGNOSTICS_COLOR_DEFAULT=-1
32014 ;;
32015 xalways)
32016 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
32017 ;;
32018 *)
32019 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32020 ;;
32021 esac
32022 else
32023 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32024 fi
32025
32026
32027 cat >>confdefs.h <<_ACEOF
32028 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32029 _ACEOF
32030
32031
32032 # Specify what should be the default of -fdiagnostics-urls option.
32033
32034 # Check whether --with-diagnostics-urls was given.
32035 if test "${with_diagnostics_urls+set}" = set; then :
32036 withval=$with_diagnostics_urls; case x"$withval" in
32037 xnever)
32038 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
32039 ;;
32040 xauto)
32041 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32042 ;;
32043 xauto-if-env)
32044 DIAGNOSTICS_URLS_DEFAULT=-1
32045 ;;
32046 xalways)
32047 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
32048 ;;
32049 *)
32050 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32051 ;;
32052 esac
32053 else
32054 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32055 fi
32056
32057
32058 cat >>confdefs.h <<_ACEOF
32059 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32060 _ACEOF
32061
32062
32063 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32064 # of jit/jit-playback.cc.
32065 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32066 echo "gcc_driver_version: ${gcc_driver_version}"
32067 cat > gcc-driver-name.h <<EOF
32068 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32069 EOF
32070
32071 # Check whether --enable-default-pie was given.
32072 # Check whether --enable-default-pie was given.
32073 if test "${enable_default_pie+set}" = set; then :
32074 enableval=$enable_default_pie; enable_default_pie=$enableval
32075 else
32076 enable_default_pie=no
32077 fi
32078
32079 if test x$enable_default_pie = xyes ; then
32080
32081 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32082
32083 fi
32084
32085
32086 # Check if -fno-PIE works.
32087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32088 $as_echo_n "checking for -fno-PIE option... " >&6; }
32089 if ${gcc_cv_c_no_fpie+:} false; then :
32090 $as_echo_n "(cached) " >&6
32091 else
32092 saved_CXXFLAGS="$CXXFLAGS"
32093 CXXFLAGS="$CXXFLAGS -fno-PIE"
32094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32095 /* end confdefs.h. */
32096 int main(void) {return 0;}
32097 _ACEOF
32098 if ac_fn_cxx_try_compile "$LINENO"; then :
32099 gcc_cv_c_no_fpie=yes
32100 else
32101 gcc_cv_c_no_fpie=no
32102 fi
32103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32104 CXXFLAGS="$saved_CXXFLAGS"
32105 fi
32106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32107 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32108 if test "$gcc_cv_c_no_fpie" = "yes"; then
32109 NO_PIE_CFLAGS="-fno-PIE"
32110 fi
32111
32112
32113 # Check if -no-pie works.
32114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32115 $as_echo_n "checking for -no-pie option... " >&6; }
32116 if ${gcc_cv_no_pie+:} false; then :
32117 $as_echo_n "(cached) " >&6
32118 else
32119 saved_LDFLAGS="$LDFLAGS"
32120 LDFLAGS="$LDFLAGS -no-pie"
32121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32122 /* end confdefs.h. */
32123 int main(void) {return 0;}
32124 _ACEOF
32125 if ac_fn_cxx_try_link "$LINENO"; then :
32126 gcc_cv_no_pie=yes
32127 else
32128 gcc_cv_no_pie=no
32129 fi
32130 rm -f core conftest.err conftest.$ac_objext \
32131 conftest$ac_exeext conftest.$ac_ext
32132 LDFLAGS="$saved_LDFLAGS"
32133 fi
32134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32135 $as_echo "$gcc_cv_no_pie" >&6; }
32136 if test "$gcc_cv_no_pie" = "yes"; then
32137 NO_PIE_FLAG="-no-pie"
32138 fi
32139
32140
32141 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32142 # Check whether --enable-cet was given.
32143 if test "${enable_cet+set}" = set; then :
32144 enableval=$enable_cet;
32145 case "$enableval" in
32146 yes|no|auto) ;;
32147 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32148 esac
32149
32150 else
32151 enable_cet=auto
32152 fi
32153
32154
32155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32156 $as_echo_n "checking for CET support... " >&6; }
32157
32158 case "$host" in
32159 i[34567]86-*-linux* | x86_64-*-linux*)
32160 may_have_cet=yes
32161 cet_save_CFLAGS="$CFLAGS"
32162 CFLAGS="$CFLAGS -fcf-protection"
32163 case "$enable_cet" in
32164 auto)
32165 # Check if target supports multi-byte NOPs
32166 # and if compiler and assembler support CET.
32167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32168 /* end confdefs.h. */
32169
32170 int
32171 main ()
32172 {
32173
32174 #if !defined(__SSE2__)
32175 #error target does not support multi-byte NOPs
32176 #else
32177 asm ("setssbsy");
32178 #endif
32179
32180 ;
32181 return 0;
32182 }
32183 _ACEOF
32184 if ac_fn_cxx_try_compile "$LINENO"; then :
32185 enable_cet=yes
32186 else
32187 enable_cet=no
32188 fi
32189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32190 ;;
32191 yes)
32192 # Check if compiler and assembler support CET.
32193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32194 /* end confdefs.h. */
32195
32196 int
32197 main ()
32198 {
32199 asm ("setssbsy");
32200 ;
32201 return 0;
32202 }
32203 _ACEOF
32204 if ac_fn_cxx_try_compile "$LINENO"; then :
32205 support_cet=yes
32206 else
32207 support_cet=no
32208 fi
32209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32210 if test $support_cet = "no"; then
32211 if test x$enable_bootstrap != xno \
32212 && test -z "${with_build_subdir}" \
32213 && (test ! -f ../stage_current \
32214 || test `cat ../stage_current` != "stage1"); then
32215 # Require CET support only for the final GCC build.
32216 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32217 else
32218 # Don't enable CET without CET support for non-bootstrap
32219 # build, in stage1 nor for build support.
32220 enable_cet=no
32221 fi
32222 fi
32223 ;;
32224 esac
32225 CFLAGS="$cet_save_CFLAGS"
32226 ;;
32227 *)
32228 may_have_cet=no
32229 enable_cet=no
32230 ;;
32231 esac
32232
32233 cet_save_CFLAGS="$CFLAGS"
32234 CFLAGS="$CFLAGS -fcf-protection=none"
32235 cet_save_LDFLAGS="$LDFLAGS"
32236 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32237 if test x$may_have_cet = xyes; then
32238 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32240 /* end confdefs.h. */
32241
32242 int
32243 main ()
32244 {
32245 return 0;
32246 ;
32247 return 0;
32248 }
32249 _ACEOF
32250 if ac_fn_cxx_try_link "$LINENO"; then :
32251 may_have_cet=yes
32252 else
32253 may_have_cet=no
32254 fi
32255 rm -f core conftest.err conftest.$ac_objext \
32256 conftest$ac_exeext conftest.$ac_ext
32257 fi
32258
32259 if test x$may_have_cet = xyes; then
32260 if test x$cross_compiling = xno; then
32261 if test "$cross_compiling" = yes; then :
32262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32264 as_fn_error $? "cannot run test program while cross compiling
32265 See \`config.log' for more details" "$LINENO" 5; }
32266 else
32267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32268 /* end confdefs.h. */
32269
32270 int
32271 main ()
32272 {
32273 asm ("endbr32");
32274 return 0;
32275 }
32276
32277 _ACEOF
32278 if ac_fn_cxx_try_run "$LINENO"; then :
32279 have_multi_byte_nop=yes
32280 else
32281 have_multi_byte_nop=no
32282 fi
32283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32284 conftest.$ac_objext conftest.beam conftest.$ac_ext
32285 fi
32286
32287 have_cet=no
32288 if test x$have_multi_byte_nop = xyes; then
32289 if test "$cross_compiling" = yes; then :
32290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32292 as_fn_error $? "cannot run test program while cross compiling
32293 See \`config.log' for more details" "$LINENO" 5; }
32294 else
32295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32296 /* end confdefs.h. */
32297
32298 static void
32299 foo (void)
32300 {
32301 }
32302
32303 static void
32304 __attribute__ ((noinline, noclone))
32305 xxx (void (*f) (void))
32306 {
32307 f ();
32308 }
32309
32310 static void
32311 __attribute__ ((noinline, noclone))
32312 bar (void)
32313 {
32314 xxx (foo);
32315 }
32316
32317 int
32318 main ()
32319 {
32320 bar ();
32321 return 0;
32322 }
32323
32324 _ACEOF
32325 if ac_fn_cxx_try_run "$LINENO"; then :
32326 have_cet=no
32327 else
32328 have_cet=yes
32329 fi
32330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32331 conftest.$ac_objext conftest.beam conftest.$ac_ext
32332 fi
32333
32334 fi
32335 if test x$enable_cet = xno -a x$have_cet = xyes; then
32336 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32337 fi
32338 fi
32339 else
32340 # Enable CET in cross compiler if possible so that it will run on both
32341 # CET and non-CET hosts.
32342 have_cet=yes
32343 fi
32344 if test x$enable_cet = xyes; then
32345 CET_HOST_FLAGS="-fcf-protection"
32346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32347 $as_echo "yes" >&6; }
32348 else
32349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32350 $as_echo "no" >&6; }
32351 fi
32352 CFLAGS="$cet_save_CFLAGS"
32353 LDFLAGS="$cet_save_LDFLAGS"
32354
32355 case x$enable_languages in
32356 *jit*)
32357 ;;
32358 *)
32359 CET_HOST_FLAGS=
32360 ;;
32361 esac
32362
32363
32364 # Check linker supports '-z bndplt'
32365 ld_bndplt_support=no
32366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32367 $as_echo_n "checking linker -z bndplt option... " >&6; }
32368 if test x"$ld_is_gold" = xno; then
32369 if test $in_tree_ld = yes ; then
32370 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
32371 ld_bndplt_support=yes
32372 fi
32373 elif test x$gcc_cv_ld != x; then
32374 # Check if linker supports -a bndplt option
32375 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32376 ld_bndplt_support=yes
32377 fi
32378 fi
32379 fi
32380 if test x"$ld_bndplt_support" = xyes; then
32381
32382 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32383
32384 fi
32385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32386 $as_echo "$ld_bndplt_support" >&6; }
32387
32388 # Check linker supports '--push-state'/'--pop-state'
32389 ld_pushpopstate_support=no
32390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32391 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32392 if test x"$ld_is_gold" = xno; then
32393 if test $in_tree_ld = yes ; then
32394 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
32395 ld_pushpopstate_support=yes
32396 fi
32397 elif test x$gcc_cv_ld != x; then
32398 # Check if linker supports --push-state/--pop-state options
32399 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32400 ld_pushpopstate_support=yes
32401 fi
32402 fi
32403 fi
32404 if test x"$ld_pushpopstate_support" = xyes; then
32405
32406 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32407
32408 fi
32409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32410 $as_echo "$ld_pushpopstate_support" >&6; }
32411
32412 # On s390, float_t has historically been statically defined as double for no
32413 # good reason. To comply with the C standard in the light of this definition,
32414 # gcc has evaluated float expressions in double precision when in
32415 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32416 # a smooth transition towards the new model used by most architectures, where
32417 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32418 # float_t from that, this behavior can be configured with
32419 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32420 # the old model. When omitted, native builds and cross compiles that have target
32421 # libc headers will detect whether libc clamps float_t to double and in that
32422 # case maintain the old model. Otherwise, they will default to the new model.
32423 # Check whether --enable-s390-excess-float-precision was given.
32424 if test "${enable_s390_excess_float_precision+set}" = set; then :
32425 enableval=$enable_s390_excess_float_precision;
32426 else
32427 enable_s390_excess_float_precision=auto
32428 fi
32429
32430
32431 case $target in
32432 s390*-linux*)
32433 if test x"$enable_s390_excess_float_precision" = xauto; then
32434 # Can we autodetect the behavior of the target libc?
32435 if test "$target" = "$host" -a "$host" = "$build"; then
32436 enable_s390_excess_float_precision=autodetect
32437 elif test "x$with_headers" != xno; then
32438 # cross build. are target headers available?
32439 # carefully coerce the build-system compiler to use target headers
32440 saved_CXXFLAGS="$CXXFLAGS"
32441 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32442 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32443 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32445 /* end confdefs.h. */
32446
32447 #include <math.h>
32448
32449 _ACEOF
32450 if ac_fn_cxx_try_compile "$LINENO"; then :
32451 enable_s390_excess_float_precision=autodetect
32452 fi
32453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32454 CXXFLAGS="$saved_CXXFLAGS"
32455 fi
32456
32457 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32458 saved_CXXFLAGS="$CXXFLAGS"
32459 if ! test "$target" = "$host" -a "$host" = "$build"; then
32460 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32461 unset CROSS_TEST_CXXFLAGS
32462 fi
32463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32464 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32465 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32466 $as_echo_n "(cached) " >&6
32467 else
32468
32469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32470 /* end confdefs.h. */
32471
32472 #define __FLT_EVAL_METHOD__ 0
32473 #include <math.h>
32474 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32475
32476 _ACEOF
32477 if ac_fn_cxx_try_compile "$LINENO"; then :
32478 gcc_cv_float_t_clamped_to_double=yes
32479 else
32480 gcc_cv_float_t_clamped_to_double=no
32481 fi
32482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32483 fi
32484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32485 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32486 CXXFLAGS="$saved_CXXFLAGS"
32487 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32488 else
32489 # no way to detect behavior of target libc, default to new model
32490 enable_s390_excess_float_precision=no
32491 fi
32492 fi
32493
32494
32495 if test x"$enable_s390_excess_float_precision" = xyes; then
32496
32497 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32498
32499 fi
32500 ;;
32501 esac
32502
32503 # Configure the subdirectories
32504 # AC_CONFIG_SUBDIRS($subdirs)
32505
32506 # Create the Makefile
32507 # and configure language subdirectories
32508 ac_config_files="$ac_config_files $all_outputs"
32509
32510
32511 ac_config_commands="$ac_config_commands default"
32512
32513 cat >confcache <<\_ACEOF
32514 # This file is a shell script that caches the results of configure
32515 # tests run on this system so they can be shared between configure
32516 # scripts and configure runs, see configure's option --config-cache.
32517 # It is not useful on other systems. If it contains results you don't
32518 # want to keep, you may remove or edit it.
32519 #
32520 # config.status only pays attention to the cache file if you give it
32521 # the --recheck option to rerun configure.
32522 #
32523 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32524 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32525 # following values.
32526
32527 _ACEOF
32528
32529 # The following way of writing the cache mishandles newlines in values,
32530 # but we know of no workaround that is simple, portable, and efficient.
32531 # So, we kill variables containing newlines.
32532 # Ultrix sh set writes to stderr and can't be redirected directly,
32533 # and sets the high bit in the cache file unless we assign to the vars.
32534 (
32535 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32536 eval ac_val=\$$ac_var
32537 case $ac_val in #(
32538 *${as_nl}*)
32539 case $ac_var in #(
32540 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32541 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32542 esac
32543 case $ac_var in #(
32544 _ | IFS | as_nl) ;; #(
32545 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32546 *) { eval $ac_var=; unset $ac_var;} ;;
32547 esac ;;
32548 esac
32549 done
32550
32551 (set) 2>&1 |
32552 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32553 *${as_nl}ac_space=\ *)
32554 # `set' does not quote correctly, so add quotes: double-quote
32555 # substitution turns \\\\ into \\, and sed turns \\ into \.
32556 sed -n \
32557 "s/'/'\\\\''/g;
32558 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32559 ;; #(
32560 *)
32561 # `set' quotes correctly as required by POSIX, so do not add quotes.
32562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32563 ;;
32564 esac |
32565 sort
32566 ) |
32567 sed '
32568 /^ac_cv_env_/b end
32569 t clear
32570 :clear
32571 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32572 t end
32573 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32574 :end' >>confcache
32575 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32576 if test -w "$cache_file"; then
32577 if test "x$cache_file" != "x/dev/null"; then
32578 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32579 $as_echo "$as_me: updating cache $cache_file" >&6;}
32580 if test ! -f "$cache_file" || test -h "$cache_file"; then
32581 cat confcache >"$cache_file"
32582 else
32583 case $cache_file in #(
32584 */* | ?:*)
32585 mv -f confcache "$cache_file"$$ &&
32586 mv -f "$cache_file"$$ "$cache_file" ;; #(
32587 *)
32588 mv -f confcache "$cache_file" ;;
32589 esac
32590 fi
32591 fi
32592 else
32593 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32594 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32595 fi
32596 fi
32597 rm -f confcache
32598
32599 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32600 # Let make expand exec_prefix.
32601 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32602
32603 DEFS=-DHAVE_CONFIG_H
32604
32605 ac_libobjs=
32606 ac_ltlibobjs=
32607 U=
32608 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32609 # 1. Remove the extension, and $U if already installed.
32610 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32611 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32612 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32613 # will be set to the directory where LIBOBJS objects are built.
32614 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32615 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32616 done
32617 LIBOBJS=$ac_libobjs
32618
32619 LTLIBOBJS=$ac_ltlibobjs
32620
32621
32622
32623
32624 : "${CONFIG_STATUS=./config.status}"
32625 ac_write_fail=0
32626 ac_clean_files_save=$ac_clean_files
32627 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32629 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32630 as_write_fail=0
32631 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32632 #! $SHELL
32633 # Generated by $as_me.
32634 # Run this file to recreate the current configuration.
32635 # Compiler output produced by configure, useful for debugging
32636 # configure, is in config.log if it exists.
32637
32638 debug=false
32639 ac_cs_recheck=false
32640 ac_cs_silent=false
32641
32642 SHELL=\${CONFIG_SHELL-$SHELL}
32643 export SHELL
32644 _ASEOF
32645 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32646 ## -------------------- ##
32647 ## M4sh Initialization. ##
32648 ## -------------------- ##
32649
32650 # Be more Bourne compatible
32651 DUALCASE=1; export DUALCASE # for MKS sh
32652 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32653 emulate sh
32654 NULLCMD=:
32655 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32656 # is contrary to our usage. Disable this feature.
32657 alias -g '${1+"$@"}'='"$@"'
32658 setopt NO_GLOB_SUBST
32659 else
32660 case `(set -o) 2>/dev/null` in #(
32661 *posix*) :
32662 set -o posix ;; #(
32663 *) :
32664 ;;
32665 esac
32666 fi
32667
32668
32669 as_nl='
32670 '
32671 export as_nl
32672 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32673 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32674 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32675 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32676 # Prefer a ksh shell builtin over an external printf program on Solaris,
32677 # but without wasting forks for bash or zsh.
32678 if test -z "$BASH_VERSION$ZSH_VERSION" \
32679 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32680 as_echo='print -r --'
32681 as_echo_n='print -rn --'
32682 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32683 as_echo='printf %s\n'
32684 as_echo_n='printf %s'
32685 else
32686 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32687 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32688 as_echo_n='/usr/ucb/echo -n'
32689 else
32690 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32691 as_echo_n_body='eval
32692 arg=$1;
32693 case $arg in #(
32694 *"$as_nl"*)
32695 expr "X$arg" : "X\\(.*\\)$as_nl";
32696 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32697 esac;
32698 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32699 '
32700 export as_echo_n_body
32701 as_echo_n='sh -c $as_echo_n_body as_echo'
32702 fi
32703 export as_echo_body
32704 as_echo='sh -c $as_echo_body as_echo'
32705 fi
32706
32707 # The user is always right.
32708 if test "${PATH_SEPARATOR+set}" != set; then
32709 PATH_SEPARATOR=:
32710 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32711 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32712 PATH_SEPARATOR=';'
32713 }
32714 fi
32715
32716
32717 # IFS
32718 # We need space, tab and new line, in precisely that order. Quoting is
32719 # there to prevent editors from complaining about space-tab.
32720 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32721 # splitting by setting IFS to empty value.)
32722 IFS=" "" $as_nl"
32723
32724 # Find who we are. Look in the path if we contain no directory separator.
32725 as_myself=
32726 case $0 in #((
32727 *[\\/]* ) as_myself=$0 ;;
32728 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32729 for as_dir in $PATH
32730 do
32731 IFS=$as_save_IFS
32732 test -z "$as_dir" && as_dir=.
32733 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32734 done
32735 IFS=$as_save_IFS
32736
32737 ;;
32738 esac
32739 # We did not find ourselves, most probably we were run as `sh COMMAND'
32740 # in which case we are not to be found in the path.
32741 if test "x$as_myself" = x; then
32742 as_myself=$0
32743 fi
32744 if test ! -f "$as_myself"; then
32745 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32746 exit 1
32747 fi
32748
32749 # Unset variables that we do not need and which cause bugs (e.g. in
32750 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32751 # suppresses any "Segmentation fault" message there. '((' could
32752 # trigger a bug in pdksh 5.2.14.
32753 for as_var in BASH_ENV ENV MAIL MAILPATH
32754 do eval test x\${$as_var+set} = xset \
32755 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32756 done
32757 PS1='$ '
32758 PS2='> '
32759 PS4='+ '
32760
32761 # NLS nuisances.
32762 LC_ALL=C
32763 export LC_ALL
32764 LANGUAGE=C
32765 export LANGUAGE
32766
32767 # CDPATH.
32768 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32769
32770
32771 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32772 # ----------------------------------------
32773 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32774 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32775 # script with STATUS, using 1 if that was 0.
32776 as_fn_error ()
32777 {
32778 as_status=$1; test $as_status -eq 0 && as_status=1
32779 if test "$4"; then
32780 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32781 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32782 fi
32783 $as_echo "$as_me: error: $2" >&2
32784 as_fn_exit $as_status
32785 } # as_fn_error
32786
32787
32788 # as_fn_set_status STATUS
32789 # -----------------------
32790 # Set $? to STATUS, without forking.
32791 as_fn_set_status ()
32792 {
32793 return $1
32794 } # as_fn_set_status
32795
32796 # as_fn_exit STATUS
32797 # -----------------
32798 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32799 as_fn_exit ()
32800 {
32801 set +e
32802 as_fn_set_status $1
32803 exit $1
32804 } # as_fn_exit
32805
32806 # as_fn_unset VAR
32807 # ---------------
32808 # Portably unset VAR.
32809 as_fn_unset ()
32810 {
32811 { eval $1=; unset $1;}
32812 }
32813 as_unset=as_fn_unset
32814 # as_fn_append VAR VALUE
32815 # ----------------------
32816 # Append the text in VALUE to the end of the definition contained in VAR. Take
32817 # advantage of any shell optimizations that allow amortized linear growth over
32818 # repeated appends, instead of the typical quadratic growth present in naive
32819 # implementations.
32820 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32821 eval 'as_fn_append ()
32822 {
32823 eval $1+=\$2
32824 }'
32825 else
32826 as_fn_append ()
32827 {
32828 eval $1=\$$1\$2
32829 }
32830 fi # as_fn_append
32831
32832 # as_fn_arith ARG...
32833 # ------------------
32834 # Perform arithmetic evaluation on the ARGs, and store the result in the
32835 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32836 # must be portable across $(()) and expr.
32837 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32838 eval 'as_fn_arith ()
32839 {
32840 as_val=$(( $* ))
32841 }'
32842 else
32843 as_fn_arith ()
32844 {
32845 as_val=`expr "$@" || test $? -eq 1`
32846 }
32847 fi # as_fn_arith
32848
32849
32850 if expr a : '\(a\)' >/dev/null 2>&1 &&
32851 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32852 as_expr=expr
32853 else
32854 as_expr=false
32855 fi
32856
32857 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32858 as_basename=basename
32859 else
32860 as_basename=false
32861 fi
32862
32863 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32864 as_dirname=dirname
32865 else
32866 as_dirname=false
32867 fi
32868
32869 as_me=`$as_basename -- "$0" ||
32870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32871 X"$0" : 'X\(//\)$' \| \
32872 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32873 $as_echo X/"$0" |
32874 sed '/^.*\/\([^/][^/]*\)\/*$/{
32875 s//\1/
32876 q
32877 }
32878 /^X\/\(\/\/\)$/{
32879 s//\1/
32880 q
32881 }
32882 /^X\/\(\/\).*/{
32883 s//\1/
32884 q
32885 }
32886 s/.*/./; q'`
32887
32888 # Avoid depending upon Character Ranges.
32889 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32890 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32891 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32892 as_cr_digits='0123456789'
32893 as_cr_alnum=$as_cr_Letters$as_cr_digits
32894
32895 ECHO_C= ECHO_N= ECHO_T=
32896 case `echo -n x` in #(((((
32897 -n*)
32898 case `echo 'xy\c'` in
32899 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32900 xy) ECHO_C='\c';;
32901 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32902 ECHO_T=' ';;
32903 esac;;
32904 *)
32905 ECHO_N='-n';;
32906 esac
32907
32908 rm -f conf$$ conf$$.exe conf$$.file
32909 if test -d conf$$.dir; then
32910 rm -f conf$$.dir/conf$$.file
32911 else
32912 rm -f conf$$.dir
32913 mkdir conf$$.dir 2>/dev/null
32914 fi
32915 if (echo >conf$$.file) 2>/dev/null; then
32916 if ln -s conf$$.file conf$$ 2>/dev/null; then
32917 as_ln_s='ln -s'
32918 # ... but there are two gotchas:
32919 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32920 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32921 # In both cases, we have to default to `cp -pR'.
32922 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32923 as_ln_s='cp -pR'
32924 elif ln conf$$.file conf$$ 2>/dev/null; then
32925 as_ln_s=ln
32926 else
32927 as_ln_s='cp -pR'
32928 fi
32929 else
32930 as_ln_s='cp -pR'
32931 fi
32932 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32933 rmdir conf$$.dir 2>/dev/null
32934
32935
32936 # as_fn_mkdir_p
32937 # -------------
32938 # Create "$as_dir" as a directory, including parents if necessary.
32939 as_fn_mkdir_p ()
32940 {
32941
32942 case $as_dir in #(
32943 -*) as_dir=./$as_dir;;
32944 esac
32945 test -d "$as_dir" || eval $as_mkdir_p || {
32946 as_dirs=
32947 while :; do
32948 case $as_dir in #(
32949 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32950 *) as_qdir=$as_dir;;
32951 esac
32952 as_dirs="'$as_qdir' $as_dirs"
32953 as_dir=`$as_dirname -- "$as_dir" ||
32954 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32955 X"$as_dir" : 'X\(//\)[^/]' \| \
32956 X"$as_dir" : 'X\(//\)$' \| \
32957 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32958 $as_echo X"$as_dir" |
32959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32960 s//\1/
32961 q
32962 }
32963 /^X\(\/\/\)[^/].*/{
32964 s//\1/
32965 q
32966 }
32967 /^X\(\/\/\)$/{
32968 s//\1/
32969 q
32970 }
32971 /^X\(\/\).*/{
32972 s//\1/
32973 q
32974 }
32975 s/.*/./; q'`
32976 test -d "$as_dir" && break
32977 done
32978 test -z "$as_dirs" || eval "mkdir $as_dirs"
32979 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32980
32981
32982 } # as_fn_mkdir_p
32983 if mkdir -p . 2>/dev/null; then
32984 as_mkdir_p='mkdir -p "$as_dir"'
32985 else
32986 test -d ./-p && rmdir ./-p
32987 as_mkdir_p=false
32988 fi
32989
32990
32991 # as_fn_executable_p FILE
32992 # -----------------------
32993 # Test if FILE is an executable regular file.
32994 as_fn_executable_p ()
32995 {
32996 test -f "$1" && test -x "$1"
32997 } # as_fn_executable_p
32998 as_test_x='test -x'
32999 as_executable_p=as_fn_executable_p
33000
33001 # Sed expression to map a string onto a valid CPP name.
33002 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33003
33004 # Sed expression to map a string onto a valid variable name.
33005 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33006
33007
33008 exec 6>&1
33009 ## ----------------------------------- ##
33010 ## Main body of $CONFIG_STATUS script. ##
33011 ## ----------------------------------- ##
33012 _ASEOF
33013 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33014
33015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33016 # Save the log message, to keep $0 and so on meaningful, and to
33017 # report actual input values of CONFIG_FILES etc. instead of their
33018 # values after options handling.
33019 ac_log="
33020 This file was extended by $as_me, which was
33021 generated by GNU Autoconf 2.69. Invocation command line was
33022
33023 CONFIG_FILES = $CONFIG_FILES
33024 CONFIG_HEADERS = $CONFIG_HEADERS
33025 CONFIG_LINKS = $CONFIG_LINKS
33026 CONFIG_COMMANDS = $CONFIG_COMMANDS
33027 $ $0 $@
33028
33029 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33030 "
33031
33032 _ACEOF
33033
33034 case $ac_config_files in *"
33035 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33036 esac
33037
33038 case $ac_config_headers in *"
33039 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33040 esac
33041
33042
33043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33044 # Files that config.status was made for.
33045 config_files="$ac_config_files"
33046 config_headers="$ac_config_headers"
33047 config_links="$ac_config_links"
33048 config_commands="$ac_config_commands"
33049
33050 _ACEOF
33051
33052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33053 ac_cs_usage="\
33054 \`$as_me' instantiates files and other configuration actions
33055 from templates according to the current configuration. Unless the files
33056 and actions are specified as TAGs, all are instantiated by default.
33057
33058 Usage: $0 [OPTION]... [TAG]...
33059
33060 -h, --help print this help, then exit
33061 -V, --version print version number and configuration settings, then exit
33062 --config print configuration, then exit
33063 -q, --quiet, --silent
33064 do not print progress messages
33065 -d, --debug don't remove temporary files
33066 --recheck update $as_me by reconfiguring in the same conditions
33067 --file=FILE[:TEMPLATE]
33068 instantiate the configuration file FILE
33069 --header=FILE[:TEMPLATE]
33070 instantiate the configuration header FILE
33071
33072 Configuration files:
33073 $config_files
33074
33075 Configuration headers:
33076 $config_headers
33077
33078 Configuration links:
33079 $config_links
33080
33081 Configuration commands:
33082 $config_commands
33083
33084 Report bugs to the package provider."
33085
33086 _ACEOF
33087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33088 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33089 ac_cs_version="\\
33090 config.status
33091 configured by $0, generated by GNU Autoconf 2.69,
33092 with options \\"\$ac_cs_config\\"
33093
33094 Copyright (C) 2012 Free Software Foundation, Inc.
33095 This config.status script is free software; the Free Software Foundation
33096 gives unlimited permission to copy, distribute and modify it."
33097
33098 ac_pwd='$ac_pwd'
33099 srcdir='$srcdir'
33100 AWK='$AWK'
33101 test -n "\$AWK" || AWK=awk
33102 _ACEOF
33103
33104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33105 # The default lists apply if the user does not specify any file.
33106 ac_need_defaults=:
33107 while test $# != 0
33108 do
33109 case $1 in
33110 --*=?*)
33111 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33112 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33113 ac_shift=:
33114 ;;
33115 --*=)
33116 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33117 ac_optarg=
33118 ac_shift=:
33119 ;;
33120 *)
33121 ac_option=$1
33122 ac_optarg=$2
33123 ac_shift=shift
33124 ;;
33125 esac
33126
33127 case $ac_option in
33128 # Handling of the options.
33129 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33130 ac_cs_recheck=: ;;
33131 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33132 $as_echo "$ac_cs_version"; exit ;;
33133 --config | --confi | --conf | --con | --co | --c )
33134 $as_echo "$ac_cs_config"; exit ;;
33135 --debug | --debu | --deb | --de | --d | -d )
33136 debug=: ;;
33137 --file | --fil | --fi | --f )
33138 $ac_shift
33139 case $ac_optarg in
33140 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33141 '') as_fn_error $? "missing file argument" ;;
33142 esac
33143 as_fn_append CONFIG_FILES " '$ac_optarg'"
33144 ac_need_defaults=false;;
33145 --header | --heade | --head | --hea )
33146 $ac_shift
33147 case $ac_optarg in
33148 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33149 esac
33150 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33151 ac_need_defaults=false;;
33152 --he | --h)
33153 # Conflict between --help and --header
33154 as_fn_error $? "ambiguous option: \`$1'
33155 Try \`$0 --help' for more information.";;
33156 --help | --hel | -h )
33157 $as_echo "$ac_cs_usage"; exit ;;
33158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33159 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33160 ac_cs_silent=: ;;
33161
33162 # This is an error.
33163 -*) as_fn_error $? "unrecognized option: \`$1'
33164 Try \`$0 --help' for more information." ;;
33165
33166 *) as_fn_append ac_config_targets " $1"
33167 ac_need_defaults=false ;;
33168
33169 esac
33170 shift
33171 done
33172
33173 ac_configure_extra_args=
33174
33175 if $ac_cs_silent; then
33176 exec 6>/dev/null
33177 ac_configure_extra_args="$ac_configure_extra_args --silent"
33178 fi
33179
33180 _ACEOF
33181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33182 if \$ac_cs_recheck; then
33183 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33184 shift
33185 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33186 CONFIG_SHELL='$SHELL'
33187 export CONFIG_SHELL
33188 exec "\$@"
33189 fi
33190
33191 _ACEOF
33192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33193 exec 5>>config.log
33194 {
33195 echo
33196 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33197 ## Running $as_me. ##
33198 _ASBOX
33199 $as_echo "$ac_log"
33200 } >&5
33201
33202 _ACEOF
33203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33204 #
33205 # INIT-COMMANDS
33206 #
33207 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33208 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33209 subdirs='$subdirs'
33210
33211 _ACEOF
33212
33213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33214
33215 # Handling of arguments.
33216 for ac_config_target in $ac_config_targets
33217 do
33218 case $ac_config_target in
33219 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
33220 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33221 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33222 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33223 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33224 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33225 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33226 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33227 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33228 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33229
33230 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33231 esac
33232 done
33233
33234
33235 # If the user did not use the arguments to specify the items to instantiate,
33236 # then the envvar interface is used. Set only those that are not.
33237 # We use the long form for the default assignment because of an extremely
33238 # bizarre bug on SunOS 4.1.3.
33239 if $ac_need_defaults; then
33240 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33241 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33242 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33243 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33244 fi
33245
33246 # Have a temporary directory for convenience. Make it in the build tree
33247 # simply because there is no reason against having it here, and in addition,
33248 # creating and moving files from /tmp can sometimes cause problems.
33249 # Hook for its removal unless debugging.
33250 # Note that there is a small window in which the directory will not be cleaned:
33251 # after its creation but before its name has been assigned to `$tmp'.
33252 $debug ||
33253 {
33254 tmp= ac_tmp=
33255 trap 'exit_status=$?
33256 : "${ac_tmp:=$tmp}"
33257 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33258 ' 0
33259 trap 'as_fn_exit 1' 1 2 13 15
33260 }
33261 # Create a (secure) tmp directory for tmp files.
33262
33263 {
33264 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33265 test -d "$tmp"
33266 } ||
33267 {
33268 tmp=./conf$$-$RANDOM
33269 (umask 077 && mkdir "$tmp")
33270 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33271 ac_tmp=$tmp
33272
33273 # Set up the scripts for CONFIG_FILES section.
33274 # No need to generate them if there are no CONFIG_FILES.
33275 # This happens for instance with `./config.status config.h'.
33276 if test -n "$CONFIG_FILES"; then
33277
33278 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33279 ac_cs_awk_getline=:
33280 ac_cs_awk_pipe_init=
33281 ac_cs_awk_read_file='
33282 while ((getline aline < (F[key])) > 0)
33283 print(aline)
33284 close(F[key])'
33285 ac_cs_awk_pipe_fini=
33286 else
33287 ac_cs_awk_getline=false
33288 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33289 ac_cs_awk_read_file='
33290 print "|#_!!_#|"
33291 print "cat " F[key] " &&"
33292 '$ac_cs_awk_pipe_init
33293 # The final `:' finishes the AND list.
33294 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33295 fi
33296 ac_cr=`echo X | tr X '\015'`
33297 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33298 # But we know of no other shell where ac_cr would be empty at this
33299 # point, so we can use a bashism as a fallback.
33300 if test "x$ac_cr" = x; then
33301 eval ac_cr=\$\'\\r\'
33302 fi
33303 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33304 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33305 ac_cs_awk_cr='\\r'
33306 else
33307 ac_cs_awk_cr=$ac_cr
33308 fi
33309
33310 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33311 _ACEOF
33312
33313 # Create commands to substitute file output variables.
33314 {
33315 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33316 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33317 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33318 echo "_ACAWK" &&
33319 echo "_ACEOF"
33320 } >conf$$files.sh &&
33321 . ./conf$$files.sh ||
33322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33323 rm -f conf$$files.sh
33324
33325 {
33326 echo "cat >conf$$subs.awk <<_ACEOF" &&
33327 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33328 echo "_ACEOF"
33329 } >conf$$subs.sh ||
33330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33331 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33332 ac_delim='%!_!# '
33333 for ac_last_try in false false false false false :; do
33334 . ./conf$$subs.sh ||
33335 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33336
33337 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33338 if test $ac_delim_n = $ac_delim_num; then
33339 break
33340 elif $ac_last_try; then
33341 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33342 else
33343 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33344 fi
33345 done
33346 rm -f conf$$subs.sh
33347
33348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33349 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33350 _ACEOF
33351 sed -n '
33352 h
33353 s/^/S["/; s/!.*/"]=/
33354 p
33355 g
33356 s/^[^!]*!//
33357 :repl
33358 t repl
33359 s/'"$ac_delim"'$//
33360 t delim
33361 :nl
33362 h
33363 s/\(.\{148\}\)..*/\1/
33364 t more1
33365 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33366 p
33367 n
33368 b repl
33369 :more1
33370 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33371 p
33372 g
33373 s/.\{148\}//
33374 t nl
33375 :delim
33376 h
33377 s/\(.\{148\}\)..*/\1/
33378 t more2
33379 s/["\\]/\\&/g; s/^/"/; s/$/"/
33380 p
33381 b
33382 :more2
33383 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33384 p
33385 g
33386 s/.\{148\}//
33387 t delim
33388 ' <conf$$subs.awk | sed '
33389 /^[^""]/{
33390 N
33391 s/\n//
33392 }
33393 ' >>$CONFIG_STATUS || ac_write_fail=1
33394 rm -f conf$$subs.awk
33395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33396 _ACAWK
33397 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33398 for (key in S) S_is_set[key] = 1
33399 FS = "\a"
33400 \$ac_cs_awk_pipe_init
33401 }
33402 {
33403 line = $ 0
33404 nfields = split(line, field, "@")
33405 substed = 0
33406 len = length(field[1])
33407 for (i = 2; i < nfields; i++) {
33408 key = field[i]
33409 keylen = length(key)
33410 if (S_is_set[key]) {
33411 value = S[key]
33412 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33413 len += length(value) + length(field[++i])
33414 substed = 1
33415 } else
33416 len += 1 + keylen
33417 }
33418 if (nfields == 3 && !substed) {
33419 key = field[2]
33420 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33421 \$ac_cs_awk_read_file
33422 next
33423 }
33424 }
33425 print line
33426 }
33427 \$ac_cs_awk_pipe_fini
33428 _ACAWK
33429 _ACEOF
33430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33431 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33432 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33433 else
33434 cat
33435 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33436 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33437 _ACEOF
33438
33439 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33440 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33441 # trailing colons and then remove the whole line if VPATH becomes empty
33442 # (actually we leave an empty line to preserve line numbers).
33443 if test "x$srcdir" = x.; then
33444 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33445 h
33446 s///
33447 s/^/:/
33448 s/[ ]*$/:/
33449 s/:\$(srcdir):/:/g
33450 s/:\${srcdir}:/:/g
33451 s/:@srcdir@:/:/g
33452 s/^:*//
33453 s/:*$//
33454 x
33455 s/\(=[ ]*\).*/\1/
33456 G
33457 s/\n//
33458 s/^[^=]*=[ ]*$//
33459 }'
33460 fi
33461
33462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33463 fi # test -n "$CONFIG_FILES"
33464
33465 # Set up the scripts for CONFIG_HEADERS section.
33466 # No need to generate them if there are no CONFIG_HEADERS.
33467 # This happens for instance with `./config.status Makefile'.
33468 if test -n "$CONFIG_HEADERS"; then
33469 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33470 BEGIN {
33471 _ACEOF
33472
33473 # Transform confdefs.h into an awk script `defines.awk', embedded as
33474 # here-document in config.status, that substitutes the proper values into
33475 # config.h.in to produce config.h.
33476
33477 # Create a delimiter string that does not exist in confdefs.h, to ease
33478 # handling of long lines.
33479 ac_delim='%!_!# '
33480 for ac_last_try in false false :; do
33481 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33482 if test -z "$ac_tt"; then
33483 break
33484 elif $ac_last_try; then
33485 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33486 else
33487 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33488 fi
33489 done
33490
33491 # For the awk script, D is an array of macro values keyed by name,
33492 # likewise P contains macro parameters if any. Preserve backslash
33493 # newline sequences.
33494
33495 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33496 sed -n '
33497 s/.\{148\}/&'"$ac_delim"'/g
33498 t rset
33499 :rset
33500 s/^[ ]*#[ ]*define[ ][ ]*/ /
33501 t def
33502 d
33503 :def
33504 s/\\$//
33505 t bsnl
33506 s/["\\]/\\&/g
33507 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33508 D["\1"]=" \3"/p
33509 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33510 d
33511 :bsnl
33512 s/["\\]/\\&/g
33513 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33514 D["\1"]=" \3\\\\\\n"\\/p
33515 t cont
33516 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33517 t cont
33518 d
33519 :cont
33520 n
33521 s/.\{148\}/&'"$ac_delim"'/g
33522 t clear
33523 :clear
33524 s/\\$//
33525 t bsnlc
33526 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33527 d
33528 :bsnlc
33529 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33530 b cont
33531 ' <confdefs.h | sed '
33532 s/'"$ac_delim"'/"\\\
33533 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33534
33535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33536 for (key in D) D_is_set[key] = 1
33537 FS = "\a"
33538 }
33539 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33540 line = \$ 0
33541 split(line, arg, " ")
33542 if (arg[1] == "#") {
33543 defundef = arg[2]
33544 mac1 = arg[3]
33545 } else {
33546 defundef = substr(arg[1], 2)
33547 mac1 = arg[2]
33548 }
33549 split(mac1, mac2, "(") #)
33550 macro = mac2[1]
33551 prefix = substr(line, 1, index(line, defundef) - 1)
33552 if (D_is_set[macro]) {
33553 # Preserve the white space surrounding the "#".
33554 print prefix "define", macro P[macro] D[macro]
33555 next
33556 } else {
33557 # Replace #undef with comments. This is necessary, for example,
33558 # in the case of _POSIX_SOURCE, which is predefined and required
33559 # on some systems where configure will not decide to define it.
33560 if (defundef == "undef") {
33561 print "/*", prefix defundef, macro, "*/"
33562 next
33563 }
33564 }
33565 }
33566 { print }
33567 _ACAWK
33568 _ACEOF
33569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33570 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33571 fi # test -n "$CONFIG_HEADERS"
33572
33573
33574 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33575 shift
33576 for ac_tag
33577 do
33578 case $ac_tag in
33579 :[FHLC]) ac_mode=$ac_tag; continue;;
33580 esac
33581 case $ac_mode$ac_tag in
33582 :[FHL]*:*);;
33583 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33584 :[FH]-) ac_tag=-:-;;
33585 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33586 esac
33587 ac_save_IFS=$IFS
33588 IFS=:
33589 set x $ac_tag
33590 IFS=$ac_save_IFS
33591 shift
33592 ac_file=$1
33593 shift
33594
33595 case $ac_mode in
33596 :L) ac_source=$1;;
33597 :[FH])
33598 ac_file_inputs=
33599 for ac_f
33600 do
33601 case $ac_f in
33602 -) ac_f="$ac_tmp/stdin";;
33603 *) # Look for the file first in the build tree, then in the source tree
33604 # (if the path is not absolute). The absolute path cannot be DOS-style,
33605 # because $ac_f cannot contain `:'.
33606 test -f "$ac_f" ||
33607 case $ac_f in
33608 [\\/$]*) false;;
33609 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33610 esac ||
33611 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33612 esac
33613 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33614 as_fn_append ac_file_inputs " '$ac_f'"
33615 done
33616
33617 # Let's still pretend it is `configure' which instantiates (i.e., don't
33618 # use $as_me), people would be surprised to read:
33619 # /* config.h. Generated by config.status. */
33620 configure_input='Generated from '`
33621 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33622 `' by configure.'
33623 if test x"$ac_file" != x-; then
33624 configure_input="$ac_file. $configure_input"
33625 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33626 $as_echo "$as_me: creating $ac_file" >&6;}
33627 fi
33628 # Neutralize special characters interpreted by sed in replacement strings.
33629 case $configure_input in #(
33630 *\&* | *\|* | *\\* )
33631 ac_sed_conf_input=`$as_echo "$configure_input" |
33632 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33633 *) ac_sed_conf_input=$configure_input;;
33634 esac
33635
33636 case $ac_tag in
33637 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33638 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33639 esac
33640 ;;
33641 esac
33642
33643 ac_dir=`$as_dirname -- "$ac_file" ||
33644 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33645 X"$ac_file" : 'X\(//\)[^/]' \| \
33646 X"$ac_file" : 'X\(//\)$' \| \
33647 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33648 $as_echo X"$ac_file" |
33649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33650 s//\1/
33651 q
33652 }
33653 /^X\(\/\/\)[^/].*/{
33654 s//\1/
33655 q
33656 }
33657 /^X\(\/\/\)$/{
33658 s//\1/
33659 q
33660 }
33661 /^X\(\/\).*/{
33662 s//\1/
33663 q
33664 }
33665 s/.*/./; q'`
33666 as_dir="$ac_dir"; as_fn_mkdir_p
33667 ac_builddir=.
33668
33669 case "$ac_dir" in
33670 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33671 *)
33672 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33673 # A ".." for each directory in $ac_dir_suffix.
33674 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33675 case $ac_top_builddir_sub in
33676 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33677 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33678 esac ;;
33679 esac
33680 ac_abs_top_builddir=$ac_pwd
33681 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33682 # for backward compatibility:
33683 ac_top_builddir=$ac_top_build_prefix
33684
33685 case $srcdir in
33686 .) # We are building in place.
33687 ac_srcdir=.
33688 ac_top_srcdir=$ac_top_builddir_sub
33689 ac_abs_top_srcdir=$ac_pwd ;;
33690 [\\/]* | ?:[\\/]* ) # Absolute name.
33691 ac_srcdir=$srcdir$ac_dir_suffix;
33692 ac_top_srcdir=$srcdir
33693 ac_abs_top_srcdir=$srcdir ;;
33694 *) # Relative name.
33695 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33696 ac_top_srcdir=$ac_top_build_prefix$srcdir
33697 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33698 esac
33699 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33700
33701
33702 case $ac_mode in
33703 :F)
33704 #
33705 # CONFIG_FILE
33706 #
33707
33708 _ACEOF
33709
33710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33711 # If the template does not know about datarootdir, expand it.
33712 # FIXME: This hack should be removed a few years after 2.60.
33713 ac_datarootdir_hack=; ac_datarootdir_seen=
33714 ac_sed_dataroot='
33715 /datarootdir/ {
33716 p
33717 q
33718 }
33719 /@datadir@/p
33720 /@docdir@/p
33721 /@infodir@/p
33722 /@localedir@/p
33723 /@mandir@/p'
33724 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33725 *datarootdir*) ac_datarootdir_seen=yes;;
33726 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33728 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33729 _ACEOF
33730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33731 ac_datarootdir_hack='
33732 s&@datadir@&$datadir&g
33733 s&@docdir@&$docdir&g
33734 s&@infodir@&$infodir&g
33735 s&@localedir@&$localedir&g
33736 s&@mandir@&$mandir&g
33737 s&\\\${datarootdir}&$datarootdir&g' ;;
33738 esac
33739 _ACEOF
33740
33741 # Neutralize VPATH when `$srcdir' = `.'.
33742 # Shell code in configure.ac might set extrasub.
33743 # FIXME: do we really want to maintain this feature?
33744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33745 ac_sed_extra="$ac_vpsub
33746 $extrasub
33747 _ACEOF
33748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33749 :t
33750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33751 s|@configure_input@|$ac_sed_conf_input|;t t
33752 s&@top_builddir@&$ac_top_builddir_sub&;t t
33753 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33754 s&@srcdir@&$ac_srcdir&;t t
33755 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33756 s&@top_srcdir@&$ac_top_srcdir&;t t
33757 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33758 s&@builddir@&$ac_builddir&;t t
33759 s&@abs_builddir@&$ac_abs_builddir&;t t
33760 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33761 $ac_datarootdir_hack
33762 "
33763 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33764 if $ac_cs_awk_getline; then
33765 $AWK -f "$ac_tmp/subs.awk"
33766 else
33767 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33768 fi \
33769 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33770
33771 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33772 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33773 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33774 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33776 which seems to be undefined. Please make sure it is defined" >&5
33777 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33778 which seems to be undefined. Please make sure it is defined" >&2;}
33779
33780 rm -f "$ac_tmp/stdin"
33781 case $ac_file in
33782 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33783 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33784 esac \
33785 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33786 ;;
33787 :H)
33788 #
33789 # CONFIG_HEADER
33790 #
33791 if test x"$ac_file" != x-; then
33792 {
33793 $as_echo "/* $configure_input */" \
33794 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33795 } >"$ac_tmp/config.h" \
33796 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33797 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33798 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33799 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33800 else
33801 rm -f "$ac_file"
33802 mv "$ac_tmp/config.h" "$ac_file" \
33803 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33804 fi
33805 else
33806 $as_echo "/* $configure_input */" \
33807 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33808 || as_fn_error $? "could not create -" "$LINENO" 5
33809 fi
33810 ;;
33811 :L)
33812 #
33813 # CONFIG_LINK
33814 #
33815
33816 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33817 :
33818 else
33819 # Prefer the file from the source tree if names are identical.
33820 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33821 ac_source=$srcdir/$ac_source
33822 fi
33823
33824 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33825 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33826
33827 if test ! -r "$ac_source"; then
33828 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33829 fi
33830 rm -f "$ac_file"
33831
33832 # Try a relative symlink, then a hard link, then a copy.
33833 case $ac_source in
33834 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33835 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33836 esac
33837 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33838 ln "$ac_source" "$ac_file" 2>/dev/null ||
33839 cp -p "$ac_source" "$ac_file" ||
33840 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33841 fi
33842 ;;
33843 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33844 $as_echo "$as_me: executing $ac_file commands" >&6;}
33845 ;;
33846 esac
33847
33848
33849 case $ac_file$ac_mode in
33850 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33851 "gccdepdir":C)
33852 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33853 for lang in $subdirs c-family common analyzer rtl-ssa
33854 do
33855 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33856 done ;;
33857 "as":F) chmod +x as ;;
33858 "collect-ld":F) chmod +x collect-ld ;;
33859 "nm":F) chmod +x nm ;;
33860 "dsymutil":F) chmod +x dsymutil ;;
33861 "default":C)
33862 case ${CONFIG_HEADERS} in
33863 *auto-host.h:config.in*)
33864 echo > cstamp-h ;;
33865 esac
33866 # Make sure all the subdirs exist.
33867 for d in $subdirs doc build common c-family
33868 do
33869 test -d $d || mkdir $d
33870 done
33871 ;;
33872
33873 esac
33874 done # for ac_tag
33875
33876
33877 as_fn_exit 0
33878 _ACEOF
33879 ac_clean_files=$ac_clean_files_save
33880
33881 test $ac_write_fail = 0 ||
33882 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33883
33884
33885 # configure is writing to config.log, and then calls config.status.
33886 # config.status does its own redirection, appending to config.log.
33887 # Unfortunately, on DOS this fails, as config.log is still kept open
33888 # by configure, so config.status won't be able to write to it; its
33889 # output is simply discarded. So we exec the FD to /dev/null,
33890 # effectively closing config.log, so it can be properly (re)opened and
33891 # appended to by config.status. When coming back to configure, we
33892 # need to make the FD available again.
33893 if test "$no_create" != yes; then
33894 ac_cs_success=:
33895 ac_config_status_args=
33896 test "$silent" = yes &&
33897 ac_config_status_args="$ac_config_status_args --quiet"
33898 exec 5>/dev/null
33899 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33900 exec 5>>config.log
33901 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33902 # would make configure fail if this is the last instruction.
33903 $ac_cs_success || as_fn_exit 1
33904 fi
33905 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33907 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33908 fi
33909
33910