]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
Remove long deprecated tilegx and tilepro ports
[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 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3337
3338
3339 gcc_version=`cat $srcdir/BASE-VER`
3340
3341 # Determine the host, build, and target systems
3342 ac_aux_dir=
3343 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3344 if test -f "$ac_dir/install-sh"; then
3345 ac_aux_dir=$ac_dir
3346 ac_install_sh="$ac_aux_dir/install-sh -c"
3347 break
3348 elif test -f "$ac_dir/install.sh"; then
3349 ac_aux_dir=$ac_dir
3350 ac_install_sh="$ac_aux_dir/install.sh -c"
3351 break
3352 elif test -f "$ac_dir/shtool"; then
3353 ac_aux_dir=$ac_dir
3354 ac_install_sh="$ac_aux_dir/shtool install -c"
3355 break
3356 fi
3357 done
3358 if test -z "$ac_aux_dir"; then
3359 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3360 fi
3361
3362 # These three variables are undocumented and unsupported,
3363 # and are intended to be withdrawn in a future Autoconf release.
3364 # They can cause serious problems if a builder's source tree is in a directory
3365 # whose full name contains unusual characters.
3366 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3367 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3368 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3369
3370
3371 # Make sure we can run config.sub.
3372 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3373 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3374
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3376 $as_echo_n "checking build system type... " >&6; }
3377 if ${ac_cv_build+:} false; then :
3378 $as_echo_n "(cached) " >&6
3379 else
3380 ac_build_alias=$build_alias
3381 test "x$ac_build_alias" = x &&
3382 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3383 test "x$ac_build_alias" = x &&
3384 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3385 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3387
3388 fi
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3390 $as_echo "$ac_cv_build" >&6; }
3391 case $ac_cv_build in
3392 *-*-*) ;;
3393 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3394 esac
3395 build=$ac_cv_build
3396 ac_save_IFS=$IFS; IFS='-'
3397 set x $ac_cv_build
3398 shift
3399 build_cpu=$1
3400 build_vendor=$2
3401 shift; shift
3402 # Remember, the first character of IFS is used to create $*,
3403 # except with old shells:
3404 build_os=$*
3405 IFS=$ac_save_IFS
3406 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3407
3408
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3410 $as_echo_n "checking host system type... " >&6; }
3411 if ${ac_cv_host+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 if test "x$host_alias" = x; then
3415 ac_cv_host=$ac_cv_build
3416 else
3417 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3418 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3419 fi
3420
3421 fi
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3423 $as_echo "$ac_cv_host" >&6; }
3424 case $ac_cv_host in
3425 *-*-*) ;;
3426 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3427 esac
3428 host=$ac_cv_host
3429 ac_save_IFS=$IFS; IFS='-'
3430 set x $ac_cv_host
3431 shift
3432 host_cpu=$1
3433 host_vendor=$2
3434 shift; shift
3435 # Remember, the first character of IFS is used to create $*,
3436 # except with old shells:
3437 host_os=$*
3438 IFS=$ac_save_IFS
3439 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3440
3441
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3443 $as_echo_n "checking target system type... " >&6; }
3444 if ${ac_cv_target+:} false; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 if test "x$target_alias" = x; then
3448 ac_cv_target=$ac_cv_host
3449 else
3450 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3451 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3452 fi
3453
3454 fi
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3456 $as_echo "$ac_cv_target" >&6; }
3457 case $ac_cv_target in
3458 *-*-*) ;;
3459 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3460 esac
3461 target=$ac_cv_target
3462 ac_save_IFS=$IFS; IFS='-'
3463 set x $ac_cv_target
3464 shift
3465 target_cpu=$1
3466 target_vendor=$2
3467 shift; shift
3468 # Remember, the first character of IFS is used to create $*,
3469 # except with old shells:
3470 target_os=$*
3471 IFS=$ac_save_IFS
3472 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3473
3474
3475 # The aliases save the names the user supplied, while $host etc.
3476 # will get canonicalized.
3477 test -n "$target_alias" &&
3478 test "$program_prefix$program_suffix$program_transform_name" = \
3479 NONENONEs,x,x, &&
3480 program_prefix=${target_alias}-
3481
3482 # Determine the noncanonical host name, for Ada.
3483 case ${build_alias} in
3484 "") build_noncanonical=${build} ;;
3485 *) build_noncanonical=${build_alias} ;;
3486 esac
3487
3488 case ${host_alias} in
3489 "") host_noncanonical=${build_noncanonical} ;;
3490 *) host_noncanonical=${host_alias} ;;
3491 esac
3492
3493
3494
3495
3496 # Determine the noncanonical target name, for directory use.
3497 case ${target_alias} in
3498 "") target_noncanonical=${host_noncanonical} ;;
3499 *) target_noncanonical=${target_alias} ;;
3500 esac
3501
3502
3503
3504
3505 # Used for constructing correct paths for offload compilers.
3506 real_target_noncanonical=${target_noncanonical}
3507 accel_dir_suffix=
3508
3509 # Determine the target- and build-specific subdirectories
3510
3511 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3512 # have matching libraries, they should use host libraries: Makefile.tpl
3513 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3514 # However, they still use the build modules, because the corresponding
3515 # host modules (e.g. bison) are only built for the host when bootstrap
3516 # finishes. So:
3517 # - build_subdir is where we find build modules, and never changes.
3518 # - build_libsubdir is where we find build libraries, and can be overridden.
3519
3520 # Prefix 'build-' so this never conflicts with target_subdir.
3521 build_subdir="build-${build_noncanonical}"
3522
3523 # Check whether --with-build-libsubdir was given.
3524 if test "${with_build_libsubdir+set}" = set; then :
3525 withval=$with_build_libsubdir; build_libsubdir="$withval"
3526 else
3527 build_libsubdir="$build_subdir"
3528 fi
3529
3530 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3531 if ( test $srcdir = . && test -d gcc ) \
3532 || test -d $srcdir/../host-${host_noncanonical}; then
3533 host_subdir="host-${host_noncanonical}"
3534 else
3535 host_subdir=.
3536 fi
3537 # No prefix.
3538 target_subdir=${target_noncanonical}
3539
3540
3541 # Set program_transform_name
3542 test "$program_prefix" != NONE &&
3543 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3544 # Use a double $ so make ignores it.
3545 test "$program_suffix" != NONE &&
3546 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3547 # Double any \ or $.
3548 # By default was `s,x,x', remove it if useless.
3549 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3550 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3551
3552
3553 # Check for bogus environment variables.
3554 # Test if LIBRARY_PATH contains the notation for the current directory
3555 # since this would lead to problems installing/building glibc.
3556 # LIBRARY_PATH contains the current directory if one of the following
3557 # is true:
3558 # - one of the terminals (":" and ";") is the first or last sign
3559 # - two terminals occur directly after each other
3560 # - the path contains an element with a dot in it
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3562 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3563 case ${LIBRARY_PATH} in
3564 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3565 library_path_setting="contains current directory"
3566 ;;
3567 *)
3568 library_path_setting="ok"
3569 ;;
3570 esac
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3572 $as_echo "$library_path_setting" >&6; }
3573 if test "$library_path_setting" != "ok"; then
3574 as_fn_error $? "
3575 *** LIBRARY_PATH shouldn't contain the current directory when
3576 *** building gcc. Please change the environment variable
3577 *** and run configure again." "$LINENO" 5
3578 fi
3579
3580 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3581 # since this would lead to problems installing/building glibc.
3582 # GCC_EXEC_PREFIX contains the current directory if one of the following
3583 # is true:
3584 # - one of the terminals (":" and ";") is the first or last sign
3585 # - two terminals occur directly after each other
3586 # - the path contains an element with a dot in it
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3588 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3589 case ${GCC_EXEC_PREFIX} in
3590 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3591 gcc_exec_prefix_setting="contains current directory"
3592 ;;
3593 *)
3594 gcc_exec_prefix_setting="ok"
3595 ;;
3596 esac
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3598 $as_echo "$gcc_exec_prefix_setting" >&6; }
3599 if test "$gcc_exec_prefix_setting" != "ok"; then
3600 as_fn_error $? "
3601 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3602 *** building gcc. Please change the environment variable
3603 *** and run configure again." "$LINENO" 5
3604 fi
3605
3606 # -----------
3607 # Directories
3608 # -----------
3609
3610 # Specify the local prefix
3611 local_prefix=
3612
3613 # Check whether --with-local-prefix was given.
3614 if test "${with_local_prefix+set}" = set; then :
3615 withval=$with_local_prefix; case "${withval}" in
3616 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3617 no) ;;
3618 *) local_prefix=$with_local_prefix ;;
3619 esac
3620 fi
3621
3622
3623 # Default local prefix if it is empty
3624 if test x$local_prefix = x; then
3625 local_prefix=/usr/local
3626 fi
3627
3628
3629 # Check whether --with-native-system-header-dir was given.
3630 if test "${with_native_system_header_dir+set}" = set; then :
3631 withval=$with_native_system_header_dir;
3632 case ${with_native_system_header_dir} in
3633 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3634 /* | [A-Za-z]:[\\/]*) ;;
3635 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3636 esac
3637 configured_native_system_header_dir="${withval}"
3638
3639 else
3640 configured_native_system_header_dir=
3641 fi
3642
3643
3644
3645 # Check whether --with-build-sysroot was given.
3646 if test "${with_build_sysroot+set}" = set; then :
3647 withval=$with_build_sysroot; if test x"$withval" != x ; then
3648 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3649 fi
3650 else
3651 SYSROOT_CFLAGS_FOR_TARGET=
3652 fi
3653
3654
3655
3656 if test "x$prefix" = xNONE; then
3657 test_prefix=/usr/local
3658 else
3659 test_prefix=$prefix
3660 fi
3661 if test "x$exec_prefix" = xNONE; then
3662 test_exec_prefix=$test_prefix
3663 else
3664 test_exec_prefix=$exec_prefix
3665 fi
3666
3667
3668 # Check whether --with-sysroot was given.
3669 if test "${with_sysroot+set}" = set; then :
3670 withval=$with_sysroot;
3671 case ${with_sysroot} in
3672 /) ;;
3673 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3674 esac
3675 case ${with_sysroot} in
3676 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3677 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3678 esac
3679
3680 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3681 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3682
3683 case ${TARGET_SYSTEM_ROOT} in
3684 "${test_prefix}"|"${test_prefix}/"*|\
3685 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3686 '${prefix}'|'${prefix}/'*|\
3687 '${exec_prefix}'|'${exec_prefix}/'*)
3688 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3689 TARGET_SYSTEM_ROOT_DEFINE="$t"
3690 ;;
3691 esac
3692
3693 else
3694
3695 TARGET_SYSTEM_ROOT=
3696 TARGET_SYSTEM_ROOT_DEFINE=
3697 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3698
3699 fi
3700
3701
3702
3703
3704
3705 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3706 # passed in by the toplevel make and thus we'd get different behavior
3707 # depending on where we built the sources.
3708 gcc_gxx_include_dir=
3709 # Specify the g++ header file directory
3710
3711 # Check whether --with-gxx-include-dir was given.
3712 if test "${with_gxx_include_dir+set}" = set; then :
3713 withval=$with_gxx_include_dir; case "${withval}" in
3714 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3715 no) ;;
3716 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3717 esac
3718 fi
3719
3720
3721 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3722 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3723 # relative to the sysroot.
3724 gcc_gxx_include_dir_add_sysroot=0
3725
3726 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3727 if test x${gcc_gxx_include_dir} = x; then
3728 if test x${enable_version_specific_runtime_libs} = xyes; then
3729 gcc_gxx_include_dir='${libsubdir}/include/c++'
3730 else
3731 libstdcxx_incdir='include/c++/$(version)'
3732 if test x$host != x$target; then
3733 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3734 fi
3735 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3736 fi
3737 elif test "${with_sysroot+set}" = set; then
3738 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3739 if test "${gcc_gxx_without_sysroot}"; then
3740 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3741 gcc_gxx_include_dir_add_sysroot=1
3742 fi
3743 fi
3744
3745 # Configuration for an alternate set of C++ headers.
3746 gcc_gxx_libcxx_include_dir=
3747 # Specify the alternate g++ header file directory
3748
3749 # Check whether --with-gxx-libcxx-include-dir was given.
3750 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3751 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3752 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3753 no) ;;
3754 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3755 esac
3756 fi
3757
3758
3759 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3760 # check to see if the latter starts with the former and, upon success, compute
3761 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3762 gcc_gxx_libcxx_include_dir_add_sysroot=0
3763
3764 if test x${gcc_gxx_libcxx_include_dir} != x; then
3765
3766 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3767
3768 else
3769 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3770
3771 fi
3772 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3773 if test x${gcc_gxx_libcxx_include_dir} = x; then
3774 if test x${enable_version_specific_runtime_libs} = xyes; then
3775 gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3776 else
3777 libcxx_incdir='libc++_include/c++/$(version)/v1'
3778 if test x$host != x$target; then
3779 libcxx_incdir="$target_alias/$libcxx_incdir"
3780 fi
3781 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3782 fi
3783 elif test "${with_sysroot+set}" = set; then
3784 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3785 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3786 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3787 gcc_gxx_libcxx_include_dir_add_sysroot=1
3788 fi
3789 fi
3790
3791
3792 # Check whether --with-cpp_install_dir was given.
3793 if test "${with_cpp_install_dir+set}" = set; then :
3794 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3795 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3796 elif test x$withval != xno; then
3797 cpp_install_dir=$withval
3798 fi
3799 fi
3800
3801
3802 # We would like to our source tree to be readonly. However when releases or
3803 # pre-releases are generated, the flex/bison generated files as well as the
3804 # various formats of manuals need to be included along with the rest of the
3805 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3806 # just that.
3807
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3809 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3810 # Check whether --enable-generated-files-in-srcdir was given.
3811 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3812 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3813 else
3814 generated_files_in_srcdir=no
3815 fi
3816
3817
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3819 $as_echo "$generated_files_in_srcdir" >&6; }
3820
3821 if test "$generated_files_in_srcdir" = "yes"; then
3822 GENINSRC=''
3823 else
3824 GENINSRC='#'
3825 fi
3826
3827
3828 # -------------------
3829 # Find default linker
3830 # -------------------
3831
3832 # With GNU ld
3833
3834 # Check whether --with-gnu-ld was given.
3835 if test "${with_gnu_ld+set}" = set; then :
3836 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3837 else
3838 gnu_ld_flag=no
3839 fi
3840
3841
3842 case $target in
3843 *darwin*)
3844 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3845 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3846 ;;
3847 *)
3848 ld64_flag=no
3849 dsymutil_flag=no
3850 ;;
3851 esac
3852
3853 # With pre-defined ld
3854
3855 # Check whether --with-ld was given.
3856 if test "${with_ld+set}" = set; then :
3857 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3858 fi
3859
3860 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3861 if test ! -x "$DEFAULT_LINKER"; then
3862 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3863 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3864 gnu_ld_flag=yes
3865 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3866 ld64_flag=yes
3867 fi
3868
3869 cat >>confdefs.h <<_ACEOF
3870 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3871 _ACEOF
3872
3873 fi
3874
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3876 $as_echo_n "checking whether a default linker was specified... " >&6; }
3877 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3878 if test x"$gnu_ld_flag" = x"no"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3880 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3881 else
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3883 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3884 fi
3885 else
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3888 fi
3889
3890 # With demangler in GNU ld
3891
3892 # Check whether --with-demangler-in-ld was given.
3893 if test "${with_demangler_in_ld+set}" = set; then :
3894 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3895 else
3896 demangler_in_ld=yes
3897 fi
3898
3899
3900 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3901
3902 # Check whether --with-dsymutil was given.
3903 if test "${with_dsymutil+set}" = set; then :
3904 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3905 fi
3906
3907
3908 dsymutil_vers=
3909 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3910 if test ! -x "$DEFAULT_DSYMUTIL"; then
3911 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3912 else
3913 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3914 dsymutil_flag=yes
3915 fi
3916 fi
3917
3918 cat >>confdefs.h <<_ACEOF
3919 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3920 _ACEOF
3921
3922 fi
3923
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3925 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3926 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3928 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3929 else
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3932 fi
3933
3934 # ----------------------
3935 # Find default assembler
3936 # ----------------------
3937
3938 # With GNU as
3939
3940 # Check whether --with-gnu-as was given.
3941 if test "${with_gnu_as+set}" = set; then :
3942 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3943 else
3944 gas_flag=no
3945 fi
3946
3947
3948
3949 # Check whether --with-as was given.
3950 if test "${with_as+set}" = set; then :
3951 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3952 fi
3953
3954 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3955 if test ! -x "$DEFAULT_ASSEMBLER"; then
3956 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3957 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3958 gas_flag=yes
3959 fi
3960
3961 cat >>confdefs.h <<_ACEOF
3962 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3963 _ACEOF
3964
3965 fi
3966
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3968 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3969 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3970 if test x"$gas_flag" = x"no"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3972 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3973 else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3975 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3976 fi
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3980 fi
3981
3982 # ---------------
3983 # Find C compiler
3984 # ---------------
3985
3986 # If a non-executable a.out is present (e.g. created by GNU as above even if
3987 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3988 # file, even when creating an executable, so an execution test fails.
3989 # Remove possible default executable files to avoid this.
3990 #
3991 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3992 # Autoconf includes it.
3993 rm -f a.out a.exe b.out
3994
3995 # Find the native compiler
3996 ac_ext=c
3997 ac_cpp='$CPP $CPPFLAGS'
3998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4001 if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if ${ac_cv_prog_CC+:} false; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 if test -n "$CC"; then
4010 ac_cv_prog_CC="$CC" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 break 2
4022 fi
4023 done
4024 done
4025 IFS=$as_save_IFS
4026
4027 fi
4028 fi
4029 CC=$ac_cv_prog_CC
4030 if test -n "$CC"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4032 $as_echo "$CC" >&6; }
4033 else
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4036 fi
4037
4038
4039 fi
4040 if test -z "$ac_cv_prog_CC"; then
4041 ac_ct_CC=$CC
4042 # Extract the first word of "gcc", so it can be a program name with args.
4043 set dummy gcc; ac_word=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4047 $as_echo_n "(cached) " >&6
4048 else
4049 if test -n "$ac_ct_CC"; then
4050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_ac_ct_CC="gcc"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 break 2
4062 fi
4063 done
4064 done
4065 IFS=$as_save_IFS
4066
4067 fi
4068 fi
4069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4070 if test -n "$ac_ct_CC"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4072 $as_echo "$ac_ct_CC" >&6; }
4073 else
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4076 fi
4077
4078 if test "x$ac_ct_CC" = x; then
4079 CC=""
4080 else
4081 case $cross_compiling:$ac_tool_warned in
4082 yes:)
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4085 ac_tool_warned=yes ;;
4086 esac
4087 CC=$ac_ct_CC
4088 fi
4089 else
4090 CC="$ac_cv_prog_CC"
4091 fi
4092
4093 if test -z "$CC"; then
4094 if test -n "$ac_tool_prefix"; then
4095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4096 set dummy ${ac_tool_prefix}cc; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if ${ac_cv_prog_CC+:} false; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 if test -n "$CC"; then
4103 ac_cv_prog_CC="$CC" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4107 do
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_CC="${ac_tool_prefix}cc"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4115 fi
4116 done
4117 done
4118 IFS=$as_save_IFS
4119
4120 fi
4121 fi
4122 CC=$ac_cv_prog_CC
4123 if test -n "$CC"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4125 $as_echo "$CC" >&6; }
4126 else
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4129 fi
4130
4131
4132 fi
4133 fi
4134 if test -z "$CC"; then
4135 # Extract the first word of "cc", so it can be a program name with args.
4136 set dummy cc; ac_word=$2
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 $as_echo_n "checking for $ac_word... " >&6; }
4139 if ${ac_cv_prog_CC+:} false; then :
4140 $as_echo_n "(cached) " >&6
4141 else
4142 if test -n "$CC"; then
4143 ac_cv_prog_CC="$CC" # Let the user override the test.
4144 else
4145 ac_prog_rejected=no
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4148 do
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4154 ac_prog_rejected=yes
4155 continue
4156 fi
4157 ac_cv_prog_CC="cc"
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4160 fi
4161 done
4162 done
4163 IFS=$as_save_IFS
4164
4165 if test $ac_prog_rejected = yes; then
4166 # We found a bogon in the path, so make sure we never use it.
4167 set dummy $ac_cv_prog_CC
4168 shift
4169 if test $# != 0; then
4170 # We chose a different compiler from the bogus one.
4171 # However, it has the same basename, so the bogon will be chosen
4172 # first if we set CC to just the basename; use the full file name.
4173 shift
4174 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4175 fi
4176 fi
4177 fi
4178 fi
4179 CC=$ac_cv_prog_CC
4180 if test -n "$CC"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4182 $as_echo "$CC" >&6; }
4183 else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4186 fi
4187
4188
4189 fi
4190 if test -z "$CC"; then
4191 if test -n "$ac_tool_prefix"; then
4192 for ac_prog in cl.exe
4193 do
4194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_prog_CC+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 if test -n "$CC"; then
4202 ac_cv_prog_CC="$CC" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4206 do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4214 fi
4215 done
4216 done
4217 IFS=$as_save_IFS
4218
4219 fi
4220 fi
4221 CC=$ac_cv_prog_CC
4222 if test -n "$CC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224 $as_echo "$CC" >&6; }
4225 else
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4228 fi
4229
4230
4231 test -n "$CC" && break
4232 done
4233 fi
4234 if test -z "$CC"; then
4235 ac_ct_CC=$CC
4236 for ac_prog in cl.exe
4237 do
4238 # Extract the first word of "$ac_prog", so it can be a program name with args.
4239 set dummy $ac_prog; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 if test -n "$ac_ct_CC"; then
4246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4250 do
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_ac_ct_CC="$ac_prog"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4258 fi
4259 done
4260 done
4261 IFS=$as_save_IFS
4262
4263 fi
4264 fi
4265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4266 if test -n "$ac_ct_CC"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4268 $as_echo "$ac_ct_CC" >&6; }
4269 else
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4272 fi
4273
4274
4275 test -n "$ac_ct_CC" && break
4276 done
4277
4278 if test "x$ac_ct_CC" = x; then
4279 CC=""
4280 else
4281 case $cross_compiling:$ac_tool_warned in
4282 yes:)
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285 ac_tool_warned=yes ;;
4286 esac
4287 CC=$ac_ct_CC
4288 fi
4289 fi
4290
4291 fi
4292
4293
4294 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4296 as_fn_error $? "no acceptable C compiler found in \$PATH
4297 See \`config.log' for more details" "$LINENO" 5; }
4298
4299 # Provide some information about the compiler.
4300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4301 set X $ac_compile
4302 ac_compiler=$2
4303 for ac_option in --version -v -V -qversion; do
4304 { { ac_try="$ac_compiler $ac_option >&5"
4305 case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308 esac
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4312 ac_status=$?
4313 if test -s conftest.err; then
4314 sed '10a\
4315 ... rest of stderr output deleted ...
4316 10q' conftest.err >conftest.er1
4317 cat conftest.er1 >&5
4318 fi
4319 rm -f conftest.er1 conftest.err
4320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4321 test $ac_status = 0; }
4322 done
4323
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326
4327 int
4328 main ()
4329 {
4330
4331 ;
4332 return 0;
4333 }
4334 _ACEOF
4335 ac_clean_files_save=$ac_clean_files
4336 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4337 # Try to create an executable without -o first, disregard a.out.
4338 # It will help us diagnose broken compilers, and finding out an intuition
4339 # of exeext.
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4341 $as_echo_n "checking whether the C compiler works... " >&6; }
4342 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4343
4344 # The possible output files:
4345 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4346
4347 ac_rmfiles=
4348 for ac_file in $ac_files
4349 do
4350 case $ac_file in
4351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4352 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4353 esac
4354 done
4355 rm -f $ac_rmfiles
4356
4357 if { { ac_try="$ac_link_default"
4358 case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4361 esac
4362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4363 $as_echo "$ac_try_echo"; } >&5
4364 (eval "$ac_link_default") 2>&5
4365 ac_status=$?
4366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4367 test $ac_status = 0; }; then :
4368 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4370 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4371 # so that the user can short-circuit this test for compilers unknown to
4372 # Autoconf.
4373 for ac_file in $ac_files ''
4374 do
4375 test -f "$ac_file" || continue
4376 case $ac_file in
4377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4378 ;;
4379 [ab].out )
4380 # We found the default executable, but exeext='' is most
4381 # certainly right.
4382 break;;
4383 *.* )
4384 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4385 then :; else
4386 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4387 fi
4388 # We set ac_cv_exeext here because the later test for it is not
4389 # safe: cross compilers may not add the suffix if given an `-o'
4390 # argument, so we may need to know it at that point already.
4391 # Even if this section looks crufty: it has the advantage of
4392 # actually working.
4393 break;;
4394 * )
4395 break;;
4396 esac
4397 done
4398 test "$ac_cv_exeext" = no && ac_cv_exeext=
4399
4400 else
4401 ac_file=''
4402 fi
4403 if test -z "$ac_file"; then :
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4406 $as_echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4408
4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error 77 "C compiler cannot create executables
4412 See \`config.log' for more details" "$LINENO" 5; }
4413 else
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4415 $as_echo "yes" >&6; }
4416 fi
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4418 $as_echo_n "checking for C compiler default output file name... " >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4420 $as_echo "$ac_file" >&6; }
4421 ac_exeext=$ac_cv_exeext
4422
4423 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4424 ac_clean_files=$ac_clean_files_save
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4426 $as_echo_n "checking for suffix of executables... " >&6; }
4427 if { { ac_try="$ac_link"
4428 case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431 esac
4432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433 $as_echo "$ac_try_echo"; } >&5
4434 (eval "$ac_link") 2>&5
4435 ac_status=$?
4436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437 test $ac_status = 0; }; then :
4438 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4439 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4440 # work properly (i.e., refer to `conftest.exe'), while it won't with
4441 # `rm'.
4442 for ac_file in conftest.exe conftest conftest.*; do
4443 test -f "$ac_file" || continue
4444 case $ac_file in
4445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4446 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4447 break;;
4448 * ) break;;
4449 esac
4450 done
4451 else
4452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4454 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4455 See \`config.log' for more details" "$LINENO" 5; }
4456 fi
4457 rm -f conftest conftest$ac_cv_exeext
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4459 $as_echo "$ac_cv_exeext" >&6; }
4460
4461 rm -f conftest.$ac_ext
4462 EXEEXT=$ac_cv_exeext
4463 ac_exeext=$EXEEXT
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4466 #include <stdio.h>
4467 int
4468 main ()
4469 {
4470 FILE *f = fopen ("conftest.out", "w");
4471 return ferror (f) || fclose (f) != 0;
4472
4473 ;
4474 return 0;
4475 }
4476 _ACEOF
4477 ac_clean_files="$ac_clean_files conftest.out"
4478 # Check that the compiler produces executables we can run. If not, either
4479 # the compiler is broken, or we cross compile.
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4481 $as_echo_n "checking whether we are cross compiling... " >&6; }
4482 if test "$cross_compiling" != yes; then
4483 { { ac_try="$ac_link"
4484 case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487 esac
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_link") 2>&5
4491 ac_status=$?
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }
4494 if { ac_try='./conftest$ac_cv_exeext'
4495 { { case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498 esac
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_try") 2>&5
4502 ac_status=$?
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; }; then
4505 cross_compiling=no
4506 else
4507 if test "$cross_compiling" = maybe; then
4508 cross_compiling=yes
4509 else
4510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4512 as_fn_error $? "cannot run C compiled programs.
4513 If you meant to cross compile, use \`--host'.
4514 See \`config.log' for more details" "$LINENO" 5; }
4515 fi
4516 fi
4517 fi
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4519 $as_echo "$cross_compiling" >&6; }
4520
4521 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4522 ac_clean_files=$ac_clean_files_save
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4524 $as_echo_n "checking for suffix of object files... " >&6; }
4525 if ${ac_cv_objext+:} false; then :
4526 $as_echo_n "(cached) " >&6
4527 else
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4530
4531 int
4532 main ()
4533 {
4534
4535 ;
4536 return 0;
4537 }
4538 _ACEOF
4539 rm -f conftest.o conftest.obj
4540 if { { ac_try="$ac_compile"
4541 case "(($ac_try" in
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4544 esac
4545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4546 $as_echo "$ac_try_echo"; } >&5
4547 (eval "$ac_compile") 2>&5
4548 ac_status=$?
4549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550 test $ac_status = 0; }; then :
4551 for ac_file in conftest.o conftest.obj conftest.*; do
4552 test -f "$ac_file" || continue;
4553 case $ac_file in
4554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4555 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4556 break;;
4557 esac
4558 done
4559 else
4560 $as_echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4562
4563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4565 as_fn_error $? "cannot compute suffix of object files: cannot compile
4566 See \`config.log' for more details" "$LINENO" 5; }
4567 fi
4568 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4571 $as_echo "$ac_cv_objext" >&6; }
4572 OBJEXT=$ac_cv_objext
4573 ac_objext=$OBJEXT
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4575 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4576 if ${ac_cv_c_compiler_gnu+:} false; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4581
4582 int
4583 main ()
4584 {
4585 #ifndef __GNUC__
4586 choke me
4587 #endif
4588
4589 ;
4590 return 0;
4591 }
4592 _ACEOF
4593 if ac_fn_c_try_compile "$LINENO"; then :
4594 ac_compiler_gnu=yes
4595 else
4596 ac_compiler_gnu=no
4597 fi
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4600
4601 fi
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4603 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4604 if test $ac_compiler_gnu = yes; then
4605 GCC=yes
4606 else
4607 GCC=
4608 fi
4609 ac_test_CFLAGS=${CFLAGS+set}
4610 ac_save_CFLAGS=$CFLAGS
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4612 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4613 if ${ac_cv_prog_cc_g+:} false; then :
4614 $as_echo_n "(cached) " >&6
4615 else
4616 ac_save_c_werror_flag=$ac_c_werror_flag
4617 ac_c_werror_flag=yes
4618 ac_cv_prog_cc_g=no
4619 CFLAGS="-g"
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4622
4623 int
4624 main ()
4625 {
4626
4627 ;
4628 return 0;
4629 }
4630 _ACEOF
4631 if ac_fn_c_try_compile "$LINENO"; then :
4632 ac_cv_prog_cc_g=yes
4633 else
4634 CFLAGS=""
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4637
4638 int
4639 main ()
4640 {
4641
4642 ;
4643 return 0;
4644 }
4645 _ACEOF
4646 if ac_fn_c_try_compile "$LINENO"; then :
4647
4648 else
4649 ac_c_werror_flag=$ac_save_c_werror_flag
4650 CFLAGS="-g"
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4653
4654 int
4655 main ()
4656 {
4657
4658 ;
4659 return 0;
4660 }
4661 _ACEOF
4662 if ac_fn_c_try_compile "$LINENO"; then :
4663 ac_cv_prog_cc_g=yes
4664 fi
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 fi
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 fi
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 ac_c_werror_flag=$ac_save_c_werror_flag
4671 fi
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4673 $as_echo "$ac_cv_prog_cc_g" >&6; }
4674 if test "$ac_test_CFLAGS" = set; then
4675 CFLAGS=$ac_save_CFLAGS
4676 elif test $ac_cv_prog_cc_g = yes; then
4677 if test "$GCC" = yes; then
4678 CFLAGS="-g -O2"
4679 else
4680 CFLAGS="-g"
4681 fi
4682 else
4683 if test "$GCC" = yes; then
4684 CFLAGS="-O2"
4685 else
4686 CFLAGS=
4687 fi
4688 fi
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4691 if ${ac_cv_prog_cc_c89+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 ac_cv_prog_cc_c89=no
4695 ac_save_CC=$CC
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698 #include <stdarg.h>
4699 #include <stdio.h>
4700 struct stat;
4701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4702 struct buf { int x; };
4703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4704 static char *e (p, i)
4705 char **p;
4706 int i;
4707 {
4708 return p[i];
4709 }
4710 static char *f (char * (*g) (char **, int), char **p, ...)
4711 {
4712 char *s;
4713 va_list v;
4714 va_start (v,p);
4715 s = g (p, va_arg (v,int));
4716 va_end (v);
4717 return s;
4718 }
4719
4720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4721 function prototypes and stuff, but not '\xHH' hex character constants.
4722 These don't provoke an error unfortunately, instead are silently treated
4723 as 'x'. The following induces an error, until -std is added to get
4724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4725 array size at least. It's necessary to write '\x00'==0 to get something
4726 that's true only with -std. */
4727 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4728
4729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4730 inside strings and character constants. */
4731 #define FOO(x) 'x'
4732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4733
4734 int test (int i, double x);
4735 struct s1 {int (*f) (int a);};
4736 struct s2 {int (*f) (double a);};
4737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4738 int argc;
4739 char **argv;
4740 int
4741 main ()
4742 {
4743 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4744 ;
4745 return 0;
4746 }
4747 _ACEOF
4748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4750 do
4751 CC="$ac_save_CC $ac_arg"
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_cv_prog_cc_c89=$ac_arg
4754 fi
4755 rm -f core conftest.err conftest.$ac_objext
4756 test "x$ac_cv_prog_cc_c89" != "xno" && break
4757 done
4758 rm -f conftest.$ac_ext
4759 CC=$ac_save_CC
4760
4761 fi
4762 # AC_CACHE_VAL
4763 case "x$ac_cv_prog_cc_c89" in
4764 x)
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4766 $as_echo "none needed" >&6; } ;;
4767 xno)
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4769 $as_echo "unsupported" >&6; } ;;
4770 *)
4771 CC="$CC $ac_cv_prog_cc_c89"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4773 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4774 esac
4775 if test "x$ac_cv_prog_cc_c89" != xno; then :
4776
4777 fi
4778
4779 ac_ext=c
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4784
4785 ac_ext=cpp
4786 ac_cpp='$CXXCPP $CPPFLAGS'
4787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4790 if test -z "$CXX"; then
4791 if test -n "$CCC"; then
4792 CXX=$CCC
4793 else
4794 if test -n "$ac_tool_prefix"; then
4795 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4796 do
4797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if ${ac_cv_prog_CXX+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 if test -n "$CXX"; then
4805 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4806 else
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4809 do
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4817 fi
4818 done
4819 done
4820 IFS=$as_save_IFS
4821
4822 fi
4823 fi
4824 CXX=$ac_cv_prog_CXX
4825 if test -n "$CXX"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4827 $as_echo "$CXX" >&6; }
4828 else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4831 fi
4832
4833
4834 test -n "$CXX" && break
4835 done
4836 fi
4837 if test -z "$CXX"; then
4838 ac_ct_CXX=$CXX
4839 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4840 do
4841 # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 if test -n "$ac_ct_CXX"; then
4849 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4853 do
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858 ac_cv_prog_ac_ct_CXX="$ac_prog"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 break 2
4861 fi
4862 done
4863 done
4864 IFS=$as_save_IFS
4865
4866 fi
4867 fi
4868 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4869 if test -n "$ac_ct_CXX"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4871 $as_echo "$ac_ct_CXX" >&6; }
4872 else
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4875 fi
4876
4877
4878 test -n "$ac_ct_CXX" && break
4879 done
4880
4881 if test "x$ac_ct_CXX" = x; then
4882 CXX="g++"
4883 else
4884 case $cross_compiling:$ac_tool_warned in
4885 yes:)
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888 ac_tool_warned=yes ;;
4889 esac
4890 CXX=$ac_ct_CXX
4891 fi
4892 fi
4893
4894 fi
4895 fi
4896 # Provide some information about the compiler.
4897 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4898 set X $ac_compile
4899 ac_compiler=$2
4900 for ac_option in --version -v -V -qversion; do
4901 { { ac_try="$ac_compiler $ac_option >&5"
4902 case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4907 $as_echo "$ac_try_echo"; } >&5
4908 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4909 ac_status=$?
4910 if test -s conftest.err; then
4911 sed '10a\
4912 ... rest of stderr output deleted ...
4913 10q' conftest.err >conftest.er1
4914 cat conftest.er1 >&5
4915 fi
4916 rm -f conftest.er1 conftest.err
4917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }
4919 done
4920
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4922 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4923 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4928
4929 int
4930 main ()
4931 {
4932 #ifndef __GNUC__
4933 choke me
4934 #endif
4935
4936 ;
4937 return 0;
4938 }
4939 _ACEOF
4940 if ac_fn_cxx_try_compile "$LINENO"; then :
4941 ac_compiler_gnu=yes
4942 else
4943 ac_compiler_gnu=no
4944 fi
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4947
4948 fi
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4950 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4951 if test $ac_compiler_gnu = yes; then
4952 GXX=yes
4953 else
4954 GXX=
4955 fi
4956 ac_test_CXXFLAGS=${CXXFLAGS+set}
4957 ac_save_CXXFLAGS=$CXXFLAGS
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4959 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4960 if ${ac_cv_prog_cxx_g+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4964 ac_cxx_werror_flag=yes
4965 ac_cv_prog_cxx_g=no
4966 CXXFLAGS="-g"
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4969
4970 int
4971 main ()
4972 {
4973
4974 ;
4975 return 0;
4976 }
4977 _ACEOF
4978 if ac_fn_cxx_try_compile "$LINENO"; then :
4979 ac_cv_prog_cxx_g=yes
4980 else
4981 CXXFLAGS=""
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984
4985 int
4986 main ()
4987 {
4988
4989 ;
4990 return 0;
4991 }
4992 _ACEOF
4993 if ac_fn_cxx_try_compile "$LINENO"; then :
4994
4995 else
4996 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4997 CXXFLAGS="-g"
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5000
5001 int
5002 main ()
5003 {
5004
5005 ;
5006 return 0;
5007 }
5008 _ACEOF
5009 if ac_fn_cxx_try_compile "$LINENO"; then :
5010 ac_cv_prog_cxx_g=yes
5011 fi
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 fi
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015 fi
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5018 fi
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5020 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5021 if test "$ac_test_CXXFLAGS" = set; then
5022 CXXFLAGS=$ac_save_CXXFLAGS
5023 elif test $ac_cv_prog_cxx_g = yes; then
5024 if test "$GXX" = yes; then
5025 CXXFLAGS="-g -O2"
5026 else
5027 CXXFLAGS="-g"
5028 fi
5029 else
5030 if test "$GXX" = yes; then
5031 CXXFLAGS="-O2"
5032 else
5033 CXXFLAGS=
5034 fi
5035 fi
5036 ac_ext=c
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5041
5042
5043
5044
5045 if test -n "$ac_tool_prefix"; then
5046 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5047 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_GNATBIND+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -n "$GNATBIND"; then
5054 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5066 fi
5067 done
5068 done
5069 IFS=$as_save_IFS
5070
5071 fi
5072 fi
5073 GNATBIND=$ac_cv_prog_GNATBIND
5074 if test -n "$GNATBIND"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5076 $as_echo "$GNATBIND" >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5080 fi
5081
5082
5083 fi
5084 if test -z "$ac_cv_prog_GNATBIND"; then
5085 ac_ct_GNATBIND=$GNATBIND
5086 # Extract the first word of "gnatbind", so it can be a program name with args.
5087 set dummy gnatbind; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 if test -n "$ac_ct_GNATBIND"; then
5094 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5106 fi
5107 done
5108 done
5109 IFS=$as_save_IFS
5110
5111 fi
5112 fi
5113 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5114 if test -n "$ac_ct_GNATBIND"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5116 $as_echo "$ac_ct_GNATBIND" >&6; }
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5120 fi
5121
5122 if test "x$ac_ct_GNATBIND" = x; then
5123 GNATBIND="no"
5124 else
5125 case $cross_compiling:$ac_tool_warned in
5126 yes:)
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129 ac_tool_warned=yes ;;
5130 esac
5131 GNATBIND=$ac_ct_GNATBIND
5132 fi
5133 else
5134 GNATBIND="$ac_cv_prog_GNATBIND"
5135 fi
5136
5137 if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5139 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_GNATMAKE+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -n "$GNATMAKE"; then
5146 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159 done
5160 done
5161 IFS=$as_save_IFS
5162
5163 fi
5164 fi
5165 GNATMAKE=$ac_cv_prog_GNATMAKE
5166 if test -n "$GNATMAKE"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5168 $as_echo "$GNATMAKE" >&6; }
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5172 fi
5173
5174
5175 fi
5176 if test -z "$ac_cv_prog_GNATMAKE"; then
5177 ac_ct_GNATMAKE=$GNATMAKE
5178 # Extract the first word of "gnatmake", so it can be a program name with args.
5179 set dummy gnatmake; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 if test -n "$ac_ct_GNATMAKE"; then
5186 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5198 fi
5199 done
5200 done
5201 IFS=$as_save_IFS
5202
5203 fi
5204 fi
5205 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5206 if test -n "$ac_ct_GNATMAKE"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5208 $as_echo "$ac_ct_GNATMAKE" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5212 fi
5213
5214 if test "x$ac_ct_GNATMAKE" = x; then
5215 GNATMAKE="no"
5216 else
5217 case $cross_compiling:$ac_tool_warned in
5218 yes:)
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221 ac_tool_warned=yes ;;
5222 esac
5223 GNATMAKE=$ac_ct_GNATMAKE
5224 fi
5225 else
5226 GNATMAKE="$ac_cv_prog_GNATMAKE"
5227 fi
5228
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5230 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5231 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 cat >conftest.adb <<EOF
5235 procedure conftest is begin null; end conftest;
5236 EOF
5237 acx_cv_cc_gcc_supports_ada=no
5238 # There is a bug in old released versions of GCC which causes the
5239 # driver to exit successfully when the appropriate language module
5240 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5241 # Therefore we must check for the error message as well as an
5242 # unsuccessful exit.
5243 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5244 # given a .adb file, but produce no object file. So we must check
5245 # if an object file was really produced to guard against this.
5246 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5247 if test x"$errors" = x && test -f conftest.$ac_objext; then
5248 acx_cv_cc_gcc_supports_ada=yes
5249 fi
5250 rm -f conftest.*
5251 fi
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5253 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5254
5255 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5256 have_gnat=yes
5257 else
5258 have_gnat=no
5259 fi
5260
5261
5262
5263 if test -n "$ac_tool_prefix"; then
5264 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5265 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if ${ac_cv_prog_GDC+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if test -n "$GDC"; then
5272 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5273 else
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5276 do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 break 2
5284 fi
5285 done
5286 done
5287 IFS=$as_save_IFS
5288
5289 fi
5290 fi
5291 GDC=$ac_cv_prog_GDC
5292 if test -n "$GDC"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5294 $as_echo "$GDC" >&6; }
5295 else
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5298 fi
5299
5300
5301 fi
5302 if test -z "$ac_cv_prog_GDC"; then
5303 ac_ct_GDC=$GDC
5304 # Extract the first word of "gdc", so it can be a program name with args.
5305 set dummy gdc; ac_word=$2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 if test -n "$ac_ct_GDC"; then
5312 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5313 else
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321 ac_cv_prog_ac_ct_GDC="gdc"
5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 break 2
5324 fi
5325 done
5326 done
5327 IFS=$as_save_IFS
5328
5329 fi
5330 fi
5331 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5332 if test -n "$ac_ct_GDC"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5334 $as_echo "$ac_ct_GDC" >&6; }
5335 else
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5338 fi
5339
5340 if test "x$ac_ct_GDC" = x; then
5341 GDC="no"
5342 else
5343 case $cross_compiling:$ac_tool_warned in
5344 yes:)
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5347 ac_tool_warned=yes ;;
5348 esac
5349 GDC=$ac_ct_GDC
5350 fi
5351 else
5352 GDC="$ac_cv_prog_GDC"
5353 fi
5354
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5356 $as_echo_n "checking whether the D compiler works... " >&6; }
5357 if ${acx_cv_d_compiler_works+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 cat >conftest.d <<EOF
5361 module conftest; int main() { return 0; }
5362 EOF
5363 acx_cv_d_compiler_works=no
5364 if test "x$GDC" != xno; then
5365 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5366 if test x"$errors" = x && test -f conftest.$ac_objext; then
5367 acx_cv_d_compiler_works=yes
5368 fi
5369 rm -f conftest.*
5370 fi
5371 fi
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5373 $as_echo "$acx_cv_d_compiler_works" >&6; }
5374 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5375 have_gdc=yes
5376 else
5377 have_gdc=no
5378 fi
5379
5380
5381 # Do configure tests with the C++ compiler, since that's what we build with.
5382 ac_ext=cpp
5383 ac_cpp='$CXXCPP $CPPFLAGS'
5384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5387
5388
5389 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5390 # optimizations to be activated explicitly by the toplevel.
5391 case "$CC" in
5392 */prev-gcc/xgcc*) ;;
5393 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5394 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5395 esac
5396
5397
5398
5399
5400 # Determine PICFLAG for target gnatlib.
5401
5402
5403
5404
5405 case "${target}" in
5406 # PIC is the default on some targets or must not be used.
5407 *-*-darwin*)
5408 # For darwin, common symbols are not allowed in MH_DYLIB files
5409 case "${CFLAGS}" in
5410 # If we are using a compiler supporting mdynamic-no-pic
5411 # and the option has been tested as safe to add, then cancel
5412 # it here, since the code generated is incompatible with shared
5413 # libs.
5414 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5415 *) PICFLAG_FOR_TARGET=-fno-common ;;
5416 esac
5417 ;;
5418 alpha*-dec-osf5*)
5419 # PIC is the default.
5420 ;;
5421 hppa*64*-*-hpux*)
5422 # PIC is the default for 64-bit PA HP-UX.
5423 ;;
5424 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5425 ;;
5426 i[34567]86-*-mingw* | x86_64-*-mingw*)
5427 ;;
5428 i[34567]86-*-interix[3-9]*)
5429 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5430 # Instead, we relocate shared libraries at runtime.
5431 ;;
5432 i[34567]86-*-nto-qnx*)
5433 # QNX uses GNU C++, but need to define -shared option too, otherwise
5434 # it will coredump.
5435 PICFLAG_FOR_TARGET='-fPIC -shared'
5436 ;;
5437 i[34567]86-pc-msdosdjgpp*)
5438 # DJGPP does not support shared libraries at all.
5439 ;;
5440 ia64*-*-hpux*)
5441 # On IA64 HP-UX, PIC is the default but the pic flag
5442 # sets the default TLS model and affects inlining.
5443 PICFLAG_FOR_TARGET=-fPIC
5444 ;;
5445 loongarch*-*-*)
5446 PICFLAG_FOR_TARGET=-fpic
5447 ;;
5448 mips-sgi-irix6*)
5449 # PIC is the default.
5450 ;;
5451 rs6000-ibm-aix* | powerpc-ibm-aix*)
5452 # All AIX code is PIC.
5453 ;;
5454
5455 # Some targets support both -fPIC and -fpic, but prefer the latter.
5456 # FIXME: Why?
5457 i[34567]86-*-* | x86_64-*-*)
5458 PICFLAG_FOR_TARGET=-fpic
5459 ;;
5460 # FIXME: Override -fPIC default in libgcc only?
5461 sh-*-linux* | sh[2346lbe]*-*-linux*)
5462 PICFLAG_FOR_TARGET=-fpic
5463 ;;
5464 # FIXME: Simplify to sh*-*-netbsd*?
5465 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5466 sh64-*-netbsd* | sh64l*-*-netbsd*)
5467 PICFLAG_FOR_TARGET=-fpic
5468 ;;
5469 # Default to -fPIC unless specified otherwise.
5470 *)
5471 PICFLAG_FOR_TARGET=-fPIC
5472 ;;
5473 esac
5474
5475 # If the user explicitly uses -fpic/-fPIC, keep that.
5476 case "${CFLAGS_FOR_TARGET}" in
5477 *-fpic*)
5478 PICFLAG_FOR_TARGET=-fpic
5479 ;;
5480 *-fPIC*)
5481 PICFLAG_FOR_TARGET=-fPIC
5482 ;;
5483 esac
5484
5485
5486
5487 # -------------------------
5488 # Check C compiler features
5489 # -------------------------
5490
5491
5492 ac_ext=cpp
5493 ac_cpp='$CXXCPP $CPPFLAGS'
5494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5498 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5499 if test -z "$CXXCPP"; then
5500 if ${ac_cv_prog_CXXCPP+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 # Double quotes because CXXCPP needs to be expanded
5504 for CXXCPP in "$CXX -E" "/lib/cpp"
5505 do
5506 ac_preproc_ok=false
5507 for ac_cxx_preproc_warn_flag in '' yes
5508 do
5509 # Use a header file that comes with gcc, so configuring glibc
5510 # with a fresh cross-compiler works.
5511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5512 # <limits.h> exists even on freestanding compilers.
5513 # On the NeXT, cc -E runs the code through the compiler's parser,
5514 # not just through cpp. "Syntax error" is here to catch this case.
5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5517 #ifdef __STDC__
5518 # include <limits.h>
5519 #else
5520 # include <assert.h>
5521 #endif
5522 Syntax error
5523 _ACEOF
5524 if ac_fn_cxx_try_cpp "$LINENO"; then :
5525
5526 else
5527 # Broken: fails on valid input.
5528 continue
5529 fi
5530 rm -f conftest.err conftest.i conftest.$ac_ext
5531
5532 # OK, works on sane cases. Now check whether nonexistent headers
5533 # can be detected and how.
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5536 #include <ac_nonexistent.h>
5537 _ACEOF
5538 if ac_fn_cxx_try_cpp "$LINENO"; then :
5539 # Broken: success on invalid input.
5540 continue
5541 else
5542 # Passes both tests.
5543 ac_preproc_ok=:
5544 break
5545 fi
5546 rm -f conftest.err conftest.i conftest.$ac_ext
5547
5548 done
5549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5550 rm -f conftest.i conftest.err conftest.$ac_ext
5551 if $ac_preproc_ok; then :
5552 break
5553 fi
5554
5555 done
5556 ac_cv_prog_CXXCPP=$CXXCPP
5557
5558 fi
5559 CXXCPP=$ac_cv_prog_CXXCPP
5560 else
5561 ac_cv_prog_CXXCPP=$CXXCPP
5562 fi
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5564 $as_echo "$CXXCPP" >&6; }
5565 ac_preproc_ok=false
5566 for ac_cxx_preproc_warn_flag in '' yes
5567 do
5568 # Use a header file that comes with gcc, so configuring glibc
5569 # with a fresh cross-compiler works.
5570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5571 # <limits.h> exists even on freestanding compilers.
5572 # On the NeXT, cc -E runs the code through the compiler's parser,
5573 # not just through cpp. "Syntax error" is here to catch this case.
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5576 #ifdef __STDC__
5577 # include <limits.h>
5578 #else
5579 # include <assert.h>
5580 #endif
5581 Syntax error
5582 _ACEOF
5583 if ac_fn_cxx_try_cpp "$LINENO"; then :
5584
5585 else
5586 # Broken: fails on valid input.
5587 continue
5588 fi
5589 rm -f conftest.err conftest.i conftest.$ac_ext
5590
5591 # OK, works on sane cases. Now check whether nonexistent headers
5592 # can be detected and how.
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595 #include <ac_nonexistent.h>
5596 _ACEOF
5597 if ac_fn_cxx_try_cpp "$LINENO"; then :
5598 # Broken: success on invalid input.
5599 continue
5600 else
5601 # Passes both tests.
5602 ac_preproc_ok=:
5603 break
5604 fi
5605 rm -f conftest.err conftest.i conftest.$ac_ext
5606
5607 done
5608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5609 rm -f conftest.i conftest.err conftest.$ac_ext
5610 if $ac_preproc_ok; then :
5611
5612 else
5613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5615 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5616 See \`config.log' for more details" "$LINENO" 5; }
5617 fi
5618
5619 ac_ext=cpp
5620 ac_cpp='$CXXCPP $CPPFLAGS'
5621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5624
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5627 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5628 if ${ac_cv_path_GREP+:} false; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5631 if test -z "$GREP"; then
5632 ac_path_GREP_found=false
5633 # Loop through the user's path and test for each of PROGNAME-LIST
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5636 do
5637 IFS=$as_save_IFS
5638 test -z "$as_dir" && as_dir=.
5639 for ac_prog in grep ggrep; do
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5642 as_fn_executable_p "$ac_path_GREP" || continue
5643 # Check for GNU ac_path_GREP and select it if it is found.
5644 # Check for GNU $ac_path_GREP
5645 case `"$ac_path_GREP" --version 2>&1` in
5646 *GNU*)
5647 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5648 *)
5649 ac_count=0
5650 $as_echo_n 0123456789 >"conftest.in"
5651 while :
5652 do
5653 cat "conftest.in" "conftest.in" >"conftest.tmp"
5654 mv "conftest.tmp" "conftest.in"
5655 cp "conftest.in" "conftest.nl"
5656 $as_echo 'GREP' >> "conftest.nl"
5657 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5659 as_fn_arith $ac_count + 1 && ac_count=$as_val
5660 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5661 # Best one so far, save it but keep looking for a better one
5662 ac_cv_path_GREP="$ac_path_GREP"
5663 ac_path_GREP_max=$ac_count
5664 fi
5665 # 10*(2^10) chars as input seems more than enough
5666 test $ac_count -gt 10 && break
5667 done
5668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5669 esac
5670
5671 $ac_path_GREP_found && break 3
5672 done
5673 done
5674 done
5675 IFS=$as_save_IFS
5676 if test -z "$ac_cv_path_GREP"; then
5677 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5678 fi
5679 else
5680 ac_cv_path_GREP=$GREP
5681 fi
5682
5683 fi
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5685 $as_echo "$ac_cv_path_GREP" >&6; }
5686 GREP="$ac_cv_path_GREP"
5687
5688
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5690 $as_echo_n "checking for egrep... " >&6; }
5691 if ${ac_cv_path_EGREP+:} false; then :
5692 $as_echo_n "(cached) " >&6
5693 else
5694 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5695 then ac_cv_path_EGREP="$GREP -E"
5696 else
5697 if test -z "$EGREP"; then
5698 ac_path_EGREP_found=false
5699 # Loop through the user's path and test for each of PROGNAME-LIST
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5702 do
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 for ac_prog in egrep; do
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5708 as_fn_executable_p "$ac_path_EGREP" || continue
5709 # Check for GNU ac_path_EGREP and select it if it is found.
5710 # Check for GNU $ac_path_EGREP
5711 case `"$ac_path_EGREP" --version 2>&1` in
5712 *GNU*)
5713 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5714 *)
5715 ac_count=0
5716 $as_echo_n 0123456789 >"conftest.in"
5717 while :
5718 do
5719 cat "conftest.in" "conftest.in" >"conftest.tmp"
5720 mv "conftest.tmp" "conftest.in"
5721 cp "conftest.in" "conftest.nl"
5722 $as_echo 'EGREP' >> "conftest.nl"
5723 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5725 as_fn_arith $ac_count + 1 && ac_count=$as_val
5726 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5727 # Best one so far, save it but keep looking for a better one
5728 ac_cv_path_EGREP="$ac_path_EGREP"
5729 ac_path_EGREP_max=$ac_count
5730 fi
5731 # 10*(2^10) chars as input seems more than enough
5732 test $ac_count -gt 10 && break
5733 done
5734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5735 esac
5736
5737 $ac_path_EGREP_found && break 3
5738 done
5739 done
5740 done
5741 IFS=$as_save_IFS
5742 if test -z "$ac_cv_path_EGREP"; then
5743 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5744 fi
5745 else
5746 ac_cv_path_EGREP=$EGREP
5747 fi
5748
5749 fi
5750 fi
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5752 $as_echo "$ac_cv_path_EGREP" >&6; }
5753 EGREP="$ac_cv_path_EGREP"
5754
5755
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5757 $as_echo_n "checking for ANSI C header files... " >&6; }
5758 if ${ac_cv_header_stdc+:} false; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 #include <stdlib.h>
5764 #include <stdarg.h>
5765 #include <string.h>
5766 #include <float.h>
5767
5768 int
5769 main ()
5770 {
5771
5772 ;
5773 return 0;
5774 }
5775 _ACEOF
5776 if ac_fn_cxx_try_compile "$LINENO"; then :
5777 ac_cv_header_stdc=yes
5778 else
5779 ac_cv_header_stdc=no
5780 fi
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782
5783 if test $ac_cv_header_stdc = yes; then
5784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787 #include <string.h>
5788
5789 _ACEOF
5790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5791 $EGREP "memchr" >/dev/null 2>&1; then :
5792
5793 else
5794 ac_cv_header_stdc=no
5795 fi
5796 rm -f conftest*
5797
5798 fi
5799
5800 if test $ac_cv_header_stdc = yes; then
5801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5804 #include <stdlib.h>
5805
5806 _ACEOF
5807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5808 $EGREP "free" >/dev/null 2>&1; then :
5809
5810 else
5811 ac_cv_header_stdc=no
5812 fi
5813 rm -f conftest*
5814
5815 fi
5816
5817 if test $ac_cv_header_stdc = yes; then
5818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5819 if test "$cross_compiling" = yes; then :
5820 :
5821 else
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5824 #include <ctype.h>
5825 #include <stdlib.h>
5826 #if ((' ' & 0x0FF) == 0x020)
5827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5829 #else
5830 # define ISLOWER(c) \
5831 (('a' <= (c) && (c) <= 'i') \
5832 || ('j' <= (c) && (c) <= 'r') \
5833 || ('s' <= (c) && (c) <= 'z'))
5834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5835 #endif
5836
5837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5838 int
5839 main ()
5840 {
5841 int i;
5842 for (i = 0; i < 256; i++)
5843 if (XOR (islower (i), ISLOWER (i))
5844 || toupper (i) != TOUPPER (i))
5845 return 2;
5846 return 0;
5847 }
5848 _ACEOF
5849 if ac_fn_cxx_try_run "$LINENO"; then :
5850
5851 else
5852 ac_cv_header_stdc=no
5853 fi
5854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5855 conftest.$ac_objext conftest.beam conftest.$ac_ext
5856 fi
5857
5858 fi
5859 fi
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5861 $as_echo "$ac_cv_header_stdc" >&6; }
5862 if test $ac_cv_header_stdc = yes; then
5863
5864 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5865
5866 fi
5867
5868 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5869 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5870 inttypes.h stdint.h unistd.h
5871 do :
5872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5873 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5874 "
5875 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5876 cat >>confdefs.h <<_ACEOF
5877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5878 _ACEOF
5879
5880 fi
5881
5882 done
5883
5884
5885
5886 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5887 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5888 MINIX=yes
5889 else
5890 MINIX=
5891 fi
5892
5893
5894 if test "$MINIX" = yes; then
5895
5896 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5897
5898
5899 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5900
5901
5902 $as_echo "#define _MINIX 1" >>confdefs.h
5903
5904 fi
5905
5906
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5908 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5909 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914
5915 # define __EXTENSIONS__ 1
5916 $ac_includes_default
5917 int
5918 main ()
5919 {
5920
5921 ;
5922 return 0;
5923 }
5924 _ACEOF
5925 if ac_fn_cxx_try_compile "$LINENO"; then :
5926 ac_cv_safe_to_define___extensions__=yes
5927 else
5928 ac_cv_safe_to_define___extensions__=no
5929 fi
5930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 fi
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5933 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5934 test $ac_cv_safe_to_define___extensions__ = yes &&
5935 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5936
5937 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5938
5939 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5940
5941 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5942
5943 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5944
5945
5946
5947 ac_ext=c
5948 ac_cpp='$CPP $CPPFLAGS'
5949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5953 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5954 # On Suns, sometimes $CPP names a directory.
5955 if test -n "$CPP" && test -d "$CPP"; then
5956 CPP=
5957 fi
5958 if test -z "$CPP"; then
5959 if ${ac_cv_prog_CPP+:} false; then :
5960 $as_echo_n "(cached) " >&6
5961 else
5962 # Double quotes because CPP needs to be expanded
5963 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5964 do
5965 ac_preproc_ok=false
5966 for ac_c_preproc_warn_flag in '' yes
5967 do
5968 # Use a header file that comes with gcc, so configuring glibc
5969 # with a fresh cross-compiler works.
5970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5971 # <limits.h> exists even on freestanding compilers.
5972 # On the NeXT, cc -E runs the code through the compiler's parser,
5973 # not just through cpp. "Syntax error" is here to catch this case.
5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h. */
5976 #ifdef __STDC__
5977 # include <limits.h>
5978 #else
5979 # include <assert.h>
5980 #endif
5981 Syntax error
5982 _ACEOF
5983 if ac_fn_c_try_cpp "$LINENO"; then :
5984
5985 else
5986 # Broken: fails on valid input.
5987 continue
5988 fi
5989 rm -f conftest.err conftest.i conftest.$ac_ext
5990
5991 # OK, works on sane cases. Now check whether nonexistent headers
5992 # can be detected and how.
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 #include <ac_nonexistent.h>
5996 _ACEOF
5997 if ac_fn_c_try_cpp "$LINENO"; then :
5998 # Broken: success on invalid input.
5999 continue
6000 else
6001 # Passes both tests.
6002 ac_preproc_ok=:
6003 break
6004 fi
6005 rm -f conftest.err conftest.i conftest.$ac_ext
6006
6007 done
6008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6009 rm -f conftest.i conftest.err conftest.$ac_ext
6010 if $ac_preproc_ok; then :
6011 break
6012 fi
6013
6014 done
6015 ac_cv_prog_CPP=$CPP
6016
6017 fi
6018 CPP=$ac_cv_prog_CPP
6019 else
6020 ac_cv_prog_CPP=$CPP
6021 fi
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6023 $as_echo "$CPP" >&6; }
6024 ac_preproc_ok=false
6025 for ac_c_preproc_warn_flag in '' yes
6026 do
6027 # Use a header file that comes with gcc, so configuring glibc
6028 # with a fresh cross-compiler works.
6029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6030 # <limits.h> exists even on freestanding compilers.
6031 # On the NeXT, cc -E runs the code through the compiler's parser,
6032 # not just through cpp. "Syntax error" is here to catch this case.
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6035 #ifdef __STDC__
6036 # include <limits.h>
6037 #else
6038 # include <assert.h>
6039 #endif
6040 Syntax error
6041 _ACEOF
6042 if ac_fn_c_try_cpp "$LINENO"; then :
6043
6044 else
6045 # Broken: fails on valid input.
6046 continue
6047 fi
6048 rm -f conftest.err conftest.i conftest.$ac_ext
6049
6050 # OK, works on sane cases. Now check whether nonexistent headers
6051 # can be detected and how.
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 #include <ac_nonexistent.h>
6055 _ACEOF
6056 if ac_fn_c_try_cpp "$LINENO"; then :
6057 # Broken: success on invalid input.
6058 continue
6059 else
6060 # Passes both tests.
6061 ac_preproc_ok=:
6062 break
6063 fi
6064 rm -f conftest.err conftest.i conftest.$ac_ext
6065
6066 done
6067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6068 rm -f conftest.i conftest.err conftest.$ac_ext
6069 if $ac_preproc_ok; then :
6070
6071 else
6072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6074 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6075 See \`config.log' for more details" "$LINENO" 5; }
6076 fi
6077
6078 ac_ext=cpp
6079 ac_cpp='$CXXCPP $CPPFLAGS'
6080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6083
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6085 $as_echo_n "checking for inline... " >&6; }
6086 if ${ac_cv_c_inline+:} false; then :
6087 $as_echo_n "(cached) " >&6
6088 else
6089 ac_cv_c_inline=no
6090 for ac_kw in inline __inline__ __inline; do
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6093 #ifndef __cplusplus
6094 typedef int foo_t;
6095 static $ac_kw foo_t static_foo () {return 0; }
6096 $ac_kw foo_t foo () {return 0; }
6097 #endif
6098
6099 _ACEOF
6100 if ac_fn_cxx_try_compile "$LINENO"; then :
6101 ac_cv_c_inline=$ac_kw
6102 fi
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 test "$ac_cv_c_inline" != no && break
6105 done
6106
6107 fi
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6109 $as_echo "$ac_cv_c_inline" >&6; }
6110
6111 case $ac_cv_c_inline in
6112 inline | yes) ;;
6113 *)
6114 case $ac_cv_c_inline in
6115 no) ac_val=;;
6116 *) ac_val=$ac_cv_c_inline;;
6117 esac
6118 cat >>confdefs.h <<_ACEOF
6119 #ifndef __cplusplus
6120 #define inline $ac_val
6121 #endif
6122 _ACEOF
6123 ;;
6124 esac
6125
6126
6127 # Check whether --enable-largefile was given.
6128 if test "${enable_largefile+set}" = set; then :
6129 enableval=$enable_largefile;
6130 fi
6131
6132 if test "$enable_largefile" != no; then
6133
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6135 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6136 if ${ac_cv_sys_largefile_CC+:} false; then :
6137 $as_echo_n "(cached) " >&6
6138 else
6139 ac_cv_sys_largefile_CC=no
6140 if test "$GCC" != yes; then
6141 ac_save_CC=$CC
6142 while :; do
6143 # IRIX 6.2 and later do not support large files by default,
6144 # so use the C compiler's -n32 option if that helps.
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6147 #include <sys/types.h>
6148 /* Check that off_t can represent 2**63 - 1 correctly.
6149 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6150 since some C++ compilers masquerading as C compilers
6151 incorrectly reject 9223372036854775807. */
6152 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6154 && LARGE_OFF_T % 2147483647 == 1)
6155 ? 1 : -1];
6156 int
6157 main ()
6158 {
6159
6160 ;
6161 return 0;
6162 }
6163 _ACEOF
6164 if ac_fn_cxx_try_compile "$LINENO"; then :
6165 break
6166 fi
6167 rm -f core conftest.err conftest.$ac_objext
6168 CC="$CC -n32"
6169 if ac_fn_cxx_try_compile "$LINENO"; then :
6170 ac_cv_sys_largefile_CC=' -n32'; break
6171 fi
6172 rm -f core conftest.err conftest.$ac_objext
6173 break
6174 done
6175 CC=$ac_save_CC
6176 rm -f conftest.$ac_ext
6177 fi
6178 fi
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6180 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6181 if test "$ac_cv_sys_largefile_CC" != no; then
6182 CC=$CC$ac_cv_sys_largefile_CC
6183 fi
6184
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6186 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6187 if ${ac_cv_sys_file_offset_bits+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 while :; do
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 #include <sys/types.h>
6194 /* Check that off_t can represent 2**63 - 1 correctly.
6195 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6196 since some C++ compilers masquerading as C compilers
6197 incorrectly reject 9223372036854775807. */
6198 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6199 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6200 && LARGE_OFF_T % 2147483647 == 1)
6201 ? 1 : -1];
6202 int
6203 main ()
6204 {
6205
6206 ;
6207 return 0;
6208 }
6209 _ACEOF
6210 if ac_fn_cxx_try_compile "$LINENO"; then :
6211 ac_cv_sys_file_offset_bits=no; break
6212 fi
6213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6216 #define _FILE_OFFSET_BITS 64
6217 #include <sys/types.h>
6218 /* Check that off_t can represent 2**63 - 1 correctly.
6219 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6220 since some C++ compilers masquerading as C compilers
6221 incorrectly reject 9223372036854775807. */
6222 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6223 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6224 && LARGE_OFF_T % 2147483647 == 1)
6225 ? 1 : -1];
6226 int
6227 main ()
6228 {
6229
6230 ;
6231 return 0;
6232 }
6233 _ACEOF
6234 if ac_fn_cxx_try_compile "$LINENO"; then :
6235 ac_cv_sys_file_offset_bits=64; break
6236 fi
6237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238 ac_cv_sys_file_offset_bits=unknown
6239 break
6240 done
6241 fi
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6243 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6244 case $ac_cv_sys_file_offset_bits in #(
6245 no | unknown) ;;
6246 *)
6247 cat >>confdefs.h <<_ACEOF
6248 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6249 _ACEOF
6250 ;;
6251 esac
6252 rm -rf conftest*
6253 if test $ac_cv_sys_file_offset_bits = unknown; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6255 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6256 if ${ac_cv_sys_large_files+:} false; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 while :; do
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 #include <sys/types.h>
6263 /* Check that off_t can represent 2**63 - 1 correctly.
6264 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6265 since some C++ compilers masquerading as C compilers
6266 incorrectly reject 9223372036854775807. */
6267 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6268 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6269 && LARGE_OFF_T % 2147483647 == 1)
6270 ? 1 : -1];
6271 int
6272 main ()
6273 {
6274
6275 ;
6276 return 0;
6277 }
6278 _ACEOF
6279 if ac_fn_cxx_try_compile "$LINENO"; then :
6280 ac_cv_sys_large_files=no; break
6281 fi
6282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6285 #define _LARGE_FILES 1
6286 #include <sys/types.h>
6287 /* Check that off_t can represent 2**63 - 1 correctly.
6288 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6289 since some C++ compilers masquerading as C compilers
6290 incorrectly reject 9223372036854775807. */
6291 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6292 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6293 && LARGE_OFF_T % 2147483647 == 1)
6294 ? 1 : -1];
6295 int
6296 main ()
6297 {
6298
6299 ;
6300 return 0;
6301 }
6302 _ACEOF
6303 if ac_fn_cxx_try_compile "$LINENO"; then :
6304 ac_cv_sys_large_files=1; break
6305 fi
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307 ac_cv_sys_large_files=unknown
6308 break
6309 done
6310 fi
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6312 $as_echo "$ac_cv_sys_large_files" >&6; }
6313 case $ac_cv_sys_large_files in #(
6314 no | unknown) ;;
6315 *)
6316 cat >>confdefs.h <<_ACEOF
6317 #define _LARGE_FILES $ac_cv_sys_large_files
6318 _ACEOF
6319 ;;
6320 esac
6321 rm -rf conftest*
6322 fi
6323
6324
6325 fi
6326
6327 # The cast to long int works around a bug in the HP C Compiler
6328 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6329 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6330 # This bug is HP SR number 8606223364.
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6332 $as_echo_n "checking size of ino_t... " >&6; }
6333 if ${ac_cv_sizeof_ino_t+:} false; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6337
6338 else
6339 if test "$ac_cv_type_ino_t" = yes; then
6340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6342 as_fn_error 77 "cannot compute sizeof (ino_t)
6343 See \`config.log' for more details" "$LINENO" 5; }
6344 else
6345 ac_cv_sizeof_ino_t=0
6346 fi
6347 fi
6348
6349 fi
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6351 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6352
6353
6354
6355 cat >>confdefs.h <<_ACEOF
6356 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6357 _ACEOF
6358
6359
6360 # The cast to long int works around a bug in the HP C Compiler
6361 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6362 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6363 # This bug is HP SR number 8606223364.
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6365 $as_echo_n "checking size of dev_t... " >&6; }
6366 if ${ac_cv_sizeof_dev_t+:} false; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6370
6371 else
6372 if test "$ac_cv_type_dev_t" = yes; then
6373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6375 as_fn_error 77 "cannot compute sizeof (dev_t)
6376 See \`config.log' for more details" "$LINENO" 5; }
6377 else
6378 ac_cv_sizeof_dev_t=0
6379 fi
6380 fi
6381
6382 fi
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6384 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6385
6386
6387
6388 cat >>confdefs.h <<_ACEOF
6389 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6390 _ACEOF
6391
6392
6393
6394 # Select the right stat being able to handle 64bit inodes, if needed.
6395 if test "$enable_largefile" != no; then
6396 case "$host, $build" in
6397 *-*-aix*,*|*,*-*-aix*)
6398 if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then
6399
6400 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6401
6402 fi;;
6403 esac
6404 fi
6405
6406
6407 # sizeof(char) is 1 by definition.
6408 # The cast to long int works around a bug in the HP C Compiler
6409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6411 # This bug is HP SR number 8606223364.
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6413 $as_echo_n "checking size of void *... " >&6; }
6414 if ${ac_cv_sizeof_void_p+:} false; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6418
6419 else
6420 if test "$ac_cv_type_void_p" = yes; then
6421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6423 as_fn_error 77 "cannot compute sizeof (void *)
6424 See \`config.log' for more details" "$LINENO" 5; }
6425 else
6426 ac_cv_sizeof_void_p=0
6427 fi
6428 fi
6429
6430 fi
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6432 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6433
6434
6435
6436 cat >>confdefs.h <<_ACEOF
6437 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6438 _ACEOF
6439
6440
6441 # The cast to long int works around a bug in the HP C Compiler
6442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6444 # This bug is HP SR number 8606223364.
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6446 $as_echo_n "checking size of short... " >&6; }
6447 if ${ac_cv_sizeof_short+:} false; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6451
6452 else
6453 if test "$ac_cv_type_short" = yes; then
6454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6456 as_fn_error 77 "cannot compute sizeof (short)
6457 See \`config.log' for more details" "$LINENO" 5; }
6458 else
6459 ac_cv_sizeof_short=0
6460 fi
6461 fi
6462
6463 fi
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6465 $as_echo "$ac_cv_sizeof_short" >&6; }
6466
6467
6468
6469 cat >>confdefs.h <<_ACEOF
6470 #define SIZEOF_SHORT $ac_cv_sizeof_short
6471 _ACEOF
6472
6473
6474 # The cast to long int works around a bug in the HP C Compiler
6475 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6476 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6477 # This bug is HP SR number 8606223364.
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6479 $as_echo_n "checking size of int... " >&6; }
6480 if ${ac_cv_sizeof_int+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6484
6485 else
6486 if test "$ac_cv_type_int" = yes; then
6487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6489 as_fn_error 77 "cannot compute sizeof (int)
6490 See \`config.log' for more details" "$LINENO" 5; }
6491 else
6492 ac_cv_sizeof_int=0
6493 fi
6494 fi
6495
6496 fi
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6498 $as_echo "$ac_cv_sizeof_int" >&6; }
6499
6500
6501
6502 cat >>confdefs.h <<_ACEOF
6503 #define SIZEOF_INT $ac_cv_sizeof_int
6504 _ACEOF
6505
6506
6507 # The cast to long int works around a bug in the HP C Compiler
6508 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6509 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6510 # This bug is HP SR number 8606223364.
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6512 $as_echo_n "checking size of long... " >&6; }
6513 if ${ac_cv_sizeof_long+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6517
6518 else
6519 if test "$ac_cv_type_long" = yes; then
6520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6522 as_fn_error 77 "cannot compute sizeof (long)
6523 See \`config.log' for more details" "$LINENO" 5; }
6524 else
6525 ac_cv_sizeof_long=0
6526 fi
6527 fi
6528
6529 fi
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6531 $as_echo "$ac_cv_sizeof_long" >&6; }
6532
6533
6534
6535 cat >>confdefs.h <<_ACEOF
6536 #define SIZEOF_LONG $ac_cv_sizeof_long
6537 _ACEOF
6538
6539
6540 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6541 if test "x$ac_cv_type_long_long" = xyes; then :
6542
6543 cat >>confdefs.h <<_ACEOF
6544 #define HAVE_LONG_LONG 1
6545 _ACEOF
6546
6547 # The cast to long int works around a bug in the HP C Compiler
6548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6550 # This bug is HP SR number 8606223364.
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6552 $as_echo_n "checking size of long long... " >&6; }
6553 if ${ac_cv_sizeof_long_long+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6557
6558 else
6559 if test "$ac_cv_type_long_long" = yes; then
6560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6562 as_fn_error 77 "cannot compute sizeof (long long)
6563 See \`config.log' for more details" "$LINENO" 5; }
6564 else
6565 ac_cv_sizeof_long_long=0
6566 fi
6567 fi
6568
6569 fi
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6571 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6572
6573
6574
6575 cat >>confdefs.h <<_ACEOF
6576 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6577 _ACEOF
6578
6579
6580 fi
6581
6582 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6583 case $ac_cv_c_int8_t in #(
6584 no|yes) ;; #(
6585 *)
6586
6587 cat >>confdefs.h <<_ACEOF
6588 #define int8_t $ac_cv_c_int8_t
6589 _ACEOF
6590 ;;
6591 esac
6592
6593 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6594 case $ac_cv_c_int16_t in #(
6595 no|yes) ;; #(
6596 *)
6597
6598 cat >>confdefs.h <<_ACEOF
6599 #define int16_t $ac_cv_c_int16_t
6600 _ACEOF
6601 ;;
6602 esac
6603
6604 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6605 case $ac_cv_c_int32_t in #(
6606 no|yes) ;; #(
6607 *)
6608
6609 cat >>confdefs.h <<_ACEOF
6610 #define int32_t $ac_cv_c_int32_t
6611 _ACEOF
6612 ;;
6613 esac
6614
6615 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6616 case $ac_cv_c_int64_t in #(
6617 no|yes) ;; #(
6618 *)
6619
6620 cat >>confdefs.h <<_ACEOF
6621 #define int64_t $ac_cv_c_int64_t
6622 _ACEOF
6623 ;;
6624 esac
6625
6626
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6628 $as_echo_n "checking for unsigned long long int... " >&6; }
6629 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6632 ac_cv_type_unsigned_long_long_int=yes
6633 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6635 /* end confdefs.h. */
6636
6637 /* For now, do not test the preprocessor; as of 2007 there are too many
6638 implementations with broken preprocessors. Perhaps this can
6639 be revisited in 2012. In the meantime, code should not expect
6640 #if to work with literals wider than 32 bits. */
6641 /* Test literals. */
6642 long long int ll = 9223372036854775807ll;
6643 long long int nll = -9223372036854775807LL;
6644 unsigned long long int ull = 18446744073709551615ULL;
6645 /* Test constant expressions. */
6646 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6647 ? 1 : -1)];
6648 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6649 ? 1 : -1)];
6650 int i = 63;
6651 int
6652 main ()
6653 {
6654 /* Test availability of runtime routines for shift and division. */
6655 long long int llmax = 9223372036854775807ll;
6656 unsigned long long int ullmax = 18446744073709551615ull;
6657 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6658 | (llmax / ll) | (llmax % ll)
6659 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6660 | (ullmax / ull) | (ullmax % ull));
6661 ;
6662 return 0;
6663 }
6664
6665 _ACEOF
6666 if ac_fn_cxx_try_link "$LINENO"; then :
6667
6668 else
6669 ac_cv_type_unsigned_long_long_int=no
6670 fi
6671 rm -f core conftest.err conftest.$ac_objext \
6672 conftest$ac_exeext conftest.$ac_ext
6673 fi
6674 fi
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6676 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6677 if test $ac_cv_type_unsigned_long_long_int = yes; then
6678
6679 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6680
6681 fi
6682
6683
6684
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6686 $as_echo_n "checking for long long int... " >&6; }
6687 if ${ac_cv_type_long_long_int+:} false; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 ac_cv_type_long_long_int=yes
6691 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6692 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6693 if test $ac_cv_type_long_long_int = yes; then
6694 if test "$cross_compiling" = yes; then :
6695 :
6696 else
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6699 #include <limits.h>
6700 #ifndef LLONG_MAX
6701 # define HALF \
6702 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6703 # define LLONG_MAX (HALF - 1 + HALF)
6704 #endif
6705 int
6706 main ()
6707 {
6708 long long int n = 1;
6709 int i;
6710 for (i = 0; ; i++)
6711 {
6712 long long int m = n << i;
6713 if (m >> i != n)
6714 return 1;
6715 if (LLONG_MAX / 2 < m)
6716 break;
6717 }
6718 return 0;
6719 ;
6720 return 0;
6721 }
6722 _ACEOF
6723 if ac_fn_cxx_try_run "$LINENO"; then :
6724
6725 else
6726 ac_cv_type_long_long_int=no
6727 fi
6728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6729 conftest.$ac_objext conftest.beam conftest.$ac_ext
6730 fi
6731
6732 fi
6733 fi
6734 fi
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6736 $as_echo "$ac_cv_type_long_long_int" >&6; }
6737 if test $ac_cv_type_long_long_int = yes; then
6738
6739 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6740
6741 fi
6742
6743
6744
6745 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6746 if test "x$ac_cv_type_intmax_t" = xyes; then :
6747
6748 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6749
6750 else
6751 test $ac_cv_type_long_long_int = yes \
6752 && ac_type='long long int' \
6753 || ac_type='long int'
6754
6755 cat >>confdefs.h <<_ACEOF
6756 #define intmax_t $ac_type
6757 _ACEOF
6758
6759 fi
6760
6761
6762
6763 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6764 if test "x$ac_cv_type_intptr_t" = xyes; then :
6765
6766 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6767
6768 else
6769 for ac_type in 'int' 'long int' 'long long int'; do
6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6771 /* end confdefs.h. */
6772 $ac_includes_default
6773 int
6774 main ()
6775 {
6776 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6777 test_array [0] = 0;
6778 return test_array [0];
6779
6780 ;
6781 return 0;
6782 }
6783 _ACEOF
6784 if ac_fn_cxx_try_compile "$LINENO"; then :
6785
6786 cat >>confdefs.h <<_ACEOF
6787 #define intptr_t $ac_type
6788 _ACEOF
6789
6790 ac_type=
6791 fi
6792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793 test -z "$ac_type" && break
6794 done
6795 fi
6796
6797
6798 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6799 case $ac_cv_c_uint8_t in #(
6800 no|yes) ;; #(
6801 *)
6802
6803 $as_echo "#define _UINT8_T 1" >>confdefs.h
6804
6805
6806 cat >>confdefs.h <<_ACEOF
6807 #define uint8_t $ac_cv_c_uint8_t
6808 _ACEOF
6809 ;;
6810 esac
6811
6812 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6813 case $ac_cv_c_uint16_t in #(
6814 no|yes) ;; #(
6815 *)
6816
6817
6818 cat >>confdefs.h <<_ACEOF
6819 #define uint16_t $ac_cv_c_uint16_t
6820 _ACEOF
6821 ;;
6822 esac
6823
6824 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6825 case $ac_cv_c_uint32_t in #(
6826 no|yes) ;; #(
6827 *)
6828
6829 $as_echo "#define _UINT32_T 1" >>confdefs.h
6830
6831
6832 cat >>confdefs.h <<_ACEOF
6833 #define uint32_t $ac_cv_c_uint32_t
6834 _ACEOF
6835 ;;
6836 esac
6837
6838 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6839 case $ac_cv_c_uint64_t in #(
6840 no|yes) ;; #(
6841 *)
6842
6843 $as_echo "#define _UINT64_T 1" >>confdefs.h
6844
6845
6846 cat >>confdefs.h <<_ACEOF
6847 #define uint64_t $ac_cv_c_uint64_t
6848 _ACEOF
6849 ;;
6850 esac
6851
6852
6853
6854 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6855 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6856
6857 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6858
6859 else
6860 test $ac_cv_type_unsigned_long_long_int = yes \
6861 && ac_type='unsigned long long int' \
6862 || ac_type='unsigned long int'
6863
6864 cat >>confdefs.h <<_ACEOF
6865 #define uintmax_t $ac_type
6866 _ACEOF
6867
6868 fi
6869
6870
6871
6872 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6873 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6874
6875 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6876
6877 else
6878 for ac_type in 'unsigned int' 'unsigned long int' \
6879 'unsigned long long int'; do
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h. */
6882 $ac_includes_default
6883 int
6884 main ()
6885 {
6886 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6887 test_array [0] = 0;
6888 return test_array [0];
6889
6890 ;
6891 return 0;
6892 }
6893 _ACEOF
6894 if ac_fn_cxx_try_compile "$LINENO"; then :
6895
6896 cat >>confdefs.h <<_ACEOF
6897 #define uintptr_t $ac_type
6898 _ACEOF
6899
6900 ac_type=
6901 fi
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903 test -z "$ac_type" && break
6904 done
6905 fi
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6921 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6922 fi
6923
6924 # check what underlying integer type int64_t uses
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6926 $as_echo_n "checking for int64_t underlying type... " >&6; }
6927 if ${ac_cv_int64_t_type+:} false; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6933
6934 #ifdef HAVE_STDINT_H
6935 #include <stdint.h>
6936 #endif
6937 template <typename T> struct X { };
6938 template <>
6939 struct X<long> { typedef long t; };
6940
6941 int
6942 main ()
6943 {
6944 X<int64_t>::t x;
6945 ;
6946 return 0;
6947 }
6948 _ACEOF
6949 if ac_fn_cxx_try_compile "$LINENO"; then :
6950 ac_cv_int64_t_type=long
6951 else
6952 ac_cv_int64_t_type="long long"
6953 fi
6954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6955 fi
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6957 $as_echo "$ac_cv_int64_t_type" >&6; }
6958 if test "$ac_cv_int64_t_type" = "long"; then
6959
6960 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6961
6962 else
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965
6966 #ifdef HAVE_STDINT_H
6967 #include <stdint.h>
6968 #endif
6969 template <typename T> struct X { };
6970 template <>
6971 struct X<long long> { typedef long long t; };
6972
6973 int
6974 main ()
6975 {
6976 X<int64_t>::t x;
6977 ;
6978 return 0;
6979 }
6980 _ACEOF
6981 if ac_fn_cxx_try_compile "$LINENO"; then :
6982
6983 else
6984 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6985 fi
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6987 fi
6988
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6990 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6991 if ${ac_cv_std_swap_in_utility+:} false; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997
6998 #include <utility>
6999
7000 int
7001 main ()
7002 {
7003 int a, b; std::swap(a,b);
7004 ;
7005 return 0;
7006 }
7007 _ACEOF
7008 if ac_fn_cxx_try_compile "$LINENO"; then :
7009 ac_cv_std_swap_in_utility=yes
7010 else
7011 ac_cv_std_swap_in_utility=no
7012 fi
7013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014 fi
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7016 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7017 if test $ac_cv_std_swap_in_utility = yes; then
7018
7019 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7020
7021 fi
7022
7023 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7024 # If the host compiler is affected by the bug, and we build with optimization
7025 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7026 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7027 # Since there is no reliable feature check for the presence of this bug,
7028 # we simply use a GCC version number check. (This should never trigger for
7029 # stages 2 or 3 of a native bootstrap.)
7030 aliasing_flags=
7031 if test "$GCC" = yes; then
7032 saved_CXXFLAGS="$CXXFLAGS"
7033
7034 # The following test compilation will succeed if and only if $CXX accepts
7035 # -fno-strict-aliasing *and* is older than GCC 4.3.
7036 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7038 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7041
7042 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7043 #error compiler not affected by placement new aliasing bug
7044 #endif
7045
7046 _ACEOF
7047 if ac_fn_cxx_try_compile "$LINENO"; then :
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7049 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7050 else
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7053 fi
7054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055
7056 CXXFLAGS="$saved_CXXFLAGS"
7057 fi
7058
7059
7060
7061
7062 # ---------------------
7063 # Warnings and checking
7064 # ---------------------
7065
7066 # Check $CC warning features (if it's GCC).
7067 # We want to use -pedantic, but we don't want warnings about
7068 # * 'long long'
7069 # * variadic macros
7070 # * overlong strings
7071 # * C++11 narrowing conversions in { }
7072 # So, we only use -pedantic if we can disable those warnings.
7073
7074 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7075 # Check whether --enable-build-format-warnings was given.
7076 if test "${enable_build_format_warnings+set}" = set; then :
7077 enableval=$enable_build_format_warnings;
7078 else
7079 enable_build_format_warnings=yes
7080 fi
7081
7082 if test $enable_build_format_warnings = no; then :
7083 wf_opt=-Wno-format
7084 else
7085 wf_opt=
7086 fi
7087 ac_ext=cpp
7088 ac_cpp='$CXXCPP $CPPFLAGS'
7089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7092
7093 loose_warn=
7094 save_CXXFLAGS="$CXXFLAGS"
7095 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7096 # Do the check with the no- prefix removed since gcc silently
7097 # accepts any -Wno-* option on purpose
7098 case $real_option in
7099 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7100 *) option=$real_option ;;
7101 esac
7102 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7103
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7105 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7106 if eval \${$as_acx_Woption+:} false; then :
7107 $as_echo_n "(cached) " >&6
7108 else
7109 CXXFLAGS="$option"
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7112
7113 int
7114 main ()
7115 {
7116
7117 ;
7118 return 0;
7119 }
7120 _ACEOF
7121 if ac_fn_cxx_try_compile "$LINENO"; then :
7122 eval "$as_acx_Woption=yes"
7123 else
7124 eval "$as_acx_Woption=no"
7125 fi
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127
7128 fi
7129 eval ac_res=\$$as_acx_Woption
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7131 $as_echo "$ac_res" >&6; }
7132 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7133 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7134 fi
7135 done
7136 CXXFLAGS="$save_CXXFLAGS"
7137 ac_ext=cpp
7138 ac_cpp='$CXXCPP $CPPFLAGS'
7139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7142
7143
7144
7145 ac_ext=c
7146 ac_cpp='$CPP $CPPFLAGS'
7147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7150
7151 c_loose_warn=
7152 save_CFLAGS="$CFLAGS"
7153 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7154 # Do the check with the no- prefix removed since gcc silently
7155 # accepts any -Wno-* option on purpose
7156 case $real_option in
7157 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7158 *) option=$real_option ;;
7159 esac
7160 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7161
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7163 $as_echo_n "checking whether $CC supports $option... " >&6; }
7164 if eval \${$as_acx_Woption+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 CFLAGS="$option"
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7170
7171 int
7172 main ()
7173 {
7174
7175 ;
7176 return 0;
7177 }
7178 _ACEOF
7179 if ac_fn_c_try_compile "$LINENO"; then :
7180 eval "$as_acx_Woption=yes"
7181 else
7182 eval "$as_acx_Woption=no"
7183 fi
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185
7186 fi
7187 eval ac_res=\$$as_acx_Woption
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7189 $as_echo "$ac_res" >&6; }
7190 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7191 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7192 fi
7193 done
7194 CFLAGS="$save_CFLAGS"
7195 ac_ext=cpp
7196 ac_cpp='$CXXCPP $CPPFLAGS'
7197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7200
7201
7202 ac_ext=cpp
7203 ac_cpp='$CXXCPP $CPPFLAGS'
7204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7207
7208 strict_warn=
7209 save_CXXFLAGS="$CXXFLAGS"
7210 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
7211 # Do the check with the no- prefix removed since gcc silently
7212 # accepts any -Wno-* option on purpose
7213 case $real_option in
7214 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7215 *) option=$real_option ;;
7216 esac
7217 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7218
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7220 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7221 if eval \${$as_acx_Woption+:} false; then :
7222 $as_echo_n "(cached) " >&6
7223 else
7224 CXXFLAGS="$option"
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7227
7228 int
7229 main ()
7230 {
7231
7232 ;
7233 return 0;
7234 }
7235 _ACEOF
7236 if ac_fn_cxx_try_compile "$LINENO"; then :
7237 eval "$as_acx_Woption=yes"
7238 else
7239 eval "$as_acx_Woption=no"
7240 fi
7241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242
7243 fi
7244 eval ac_res=\$$as_acx_Woption
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7246 $as_echo "$ac_res" >&6; }
7247 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7248 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7249 fi
7250 done
7251 CXXFLAGS="$save_CXXFLAGS"
7252 ac_ext=cpp
7253 ac_cpp='$CXXCPP $CPPFLAGS'
7254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7257
7258
7259 ac_ext=c
7260 ac_cpp='$CPP $CPPFLAGS'
7261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264
7265 c_strict_warn=
7266 save_CFLAGS="$CFLAGS"
7267 for real_option in -Wold-style-definition -Wc++-compat; do
7268 # Do the check with the no- prefix removed since gcc silently
7269 # accepts any -Wno-* option on purpose
7270 case $real_option in
7271 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7272 *) option=$real_option ;;
7273 esac
7274 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7275
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7277 $as_echo_n "checking whether $CC supports $option... " >&6; }
7278 if eval \${$as_acx_Woption+:} false; then :
7279 $as_echo_n "(cached) " >&6
7280 else
7281 CFLAGS="$option"
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7284
7285 int
7286 main ()
7287 {
7288
7289 ;
7290 return 0;
7291 }
7292 _ACEOF
7293 if ac_fn_c_try_compile "$LINENO"; then :
7294 eval "$as_acx_Woption=yes"
7295 else
7296 eval "$as_acx_Woption=no"
7297 fi
7298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299
7300 fi
7301 eval ac_res=\$$as_acx_Woption
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7303 $as_echo "$ac_res" >&6; }
7304 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7305 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7306 fi
7307 done
7308 CFLAGS="$save_CFLAGS"
7309 ac_ext=cpp
7310 ac_cpp='$CXXCPP $CPPFLAGS'
7311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7314
7315
7316 ac_ext=cpp
7317 ac_cpp='$CXXCPP $CPPFLAGS'
7318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7321
7322 # Do the check with the no- prefix removed from the warning options
7323 # since gcc silently accepts any -Wno-* option on purpose
7324 if test "$GXX" = yes; then :
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7326 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7327 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7328 $as_echo_n "(cached) " >&6
7329 else
7330 save_CXXFLAGS="$CXXFLAGS"
7331 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7334
7335 int
7336 main ()
7337 {
7338
7339 ;
7340 return 0;
7341 }
7342 _ACEOF
7343 if ac_fn_cxx_try_compile "$LINENO"; then :
7344 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7345 else
7346 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7347 fi
7348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7349 CXXFLAGS="$save_CXXFLAGS"
7350 fi
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7352 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7353 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7354 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7355 fi
7356
7357 fi
7358 ac_ext=cpp
7359 ac_cpp='$CXXCPP $CPPFLAGS'
7360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7363
7364
7365 ac_ext=cpp
7366 ac_cpp='$CXXCPP $CPPFLAGS'
7367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7370
7371 # Check whether --enable-werror-always was given.
7372 if test "${enable_werror_always+set}" = set; then :
7373 enableval=$enable_werror_always;
7374 else
7375 enable_werror_always=no
7376 fi
7377
7378 if test $enable_werror_always = yes; then :
7379 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7380 fi
7381
7382 ac_ext=cpp
7383 ac_cpp='$CXXCPP $CPPFLAGS'
7384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7387
7388
7389
7390 # The above macros do nothing if the compiler is not GCC. However, the
7391 # Makefile has more goo to add other flags, so these variables are used
7392 # to enable warnings only for GCC.
7393 warn_cflags=
7394 warn_cxxflags=
7395 if test "x$GCC" = "xyes"; then
7396 warn_cflags='$(GCC_WARN_CFLAGS)'
7397 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7398 fi
7399
7400
7401
7402 # Disable exceptions and RTTI if building with g++
7403 ac_ext=c
7404 ac_cpp='$CPP $CPPFLAGS'
7405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7408
7409 noexception_flags=
7410 save_CFLAGS="$CFLAGS"
7411 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7412 # Do the check with the no- prefix removed since gcc silently
7413 # accepts any -Wno-* option on purpose
7414 case $real_option in
7415 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7416 *) option=$real_option ;;
7417 esac
7418 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7419
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7421 $as_echo_n "checking whether $CC supports $option... " >&6; }
7422 if eval \${$as_acx_Woption+:} false; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 CFLAGS="$option"
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7428
7429 int
7430 main ()
7431 {
7432
7433 ;
7434 return 0;
7435 }
7436 _ACEOF
7437 if ac_fn_c_try_compile "$LINENO"; then :
7438 eval "$as_acx_Woption=yes"
7439 else
7440 eval "$as_acx_Woption=no"
7441 fi
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443
7444 fi
7445 eval ac_res=\$$as_acx_Woption
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7447 $as_echo "$ac_res" >&6; }
7448 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7449 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7450 fi
7451 done
7452 CFLAGS="$save_CFLAGS"
7453 ac_ext=cpp
7454 ac_cpp='$CXXCPP $CPPFLAGS'
7455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7458
7459
7460
7461 # Enable expensive internal checks
7462 is_release=
7463 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7464 is_release=yes
7465 fi
7466
7467 # Check whether --enable-checking was given.
7468 if test "${enable_checking+set}" = set; then :
7469 enableval=$enable_checking; ac_checking_flags="${enableval}"
7470 else
7471
7472 # Determine the default checks.
7473 if test x$is_release = x ; then
7474 ac_checking_flags=yes,extra
7475 else
7476 ac_checking_flags=release
7477 fi
7478 fi
7479
7480 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7481 for check in release $ac_checking_flags
7482 do
7483 case $check in
7484 # these set all the flags to specific states
7485 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7486 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7487 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7488 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7489 ac_tree_checking=1 ; ac_valgrind_checking= ;
7490 ac_types_checking=1 ;;
7491 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7492 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7493 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7494 ac_rtlflag_checking= ; ac_runtime_checking= ;
7495 ac_tree_checking= ; ac_valgrind_checking= ;
7496 ac_types_checking= ;;
7497 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7498 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7499 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7500 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7501 ac_tree_checking=1 ; ac_valgrind_checking= ;
7502 ac_types_checking=1 ;;
7503 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7504 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7505 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7506 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7507 ac_tree_checking= ; ac_valgrind_checking= ;
7508 ac_types_checking= ;;
7509 # these enable particular checks
7510 assert) ac_assert_checking=1 ;;
7511 df) ac_df_checking=1 ;;
7512 extra) ac_extra_checking=1 ;;
7513 fold) ac_fold_checking=1 ;;
7514 gc) ac_gc_checking=1 ;;
7515 gcac) ac_gc_always_collect=1 ;;
7516 gimple) ac_gimple_checking=1 ;;
7517 misc) ac_checking=1 ;;
7518 rtl) ac_rtl_checking=1 ;;
7519 rtlflag) ac_rtlflag_checking=1 ;;
7520 runtime) ac_runtime_checking=1 ;;
7521 tree) ac_tree_checking=1 ;;
7522 types) ac_types_checking=1 ;;
7523 valgrind) ac_valgrind_checking=1 ;;
7524 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7525 esac
7526 done
7527 IFS="$ac_save_IFS"
7528
7529 nocommon_flag=""
7530 if test x$ac_checking != x ; then
7531
7532 $as_echo "#define CHECKING_P 1" >>confdefs.h
7533
7534 nocommon_flag=-fno-common
7535 else
7536 $as_echo "#define CHECKING_P 0" >>confdefs.h
7537
7538 fi
7539
7540 if test x$ac_extra_checking != x ; then
7541
7542 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7543
7544 else
7545 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7546
7547 fi
7548 if test x$ac_df_checking != x ; then
7549
7550 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7551
7552 fi
7553 if test x$ac_assert_checking != x ; then
7554
7555 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7556
7557 fi
7558 if test x$ac_gimple_checking != x ; then
7559
7560 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7561
7562 fi
7563
7564 if test x$ac_runtime_checking != x ; then
7565
7566 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7567
7568 fi
7569 if test x$ac_tree_checking != x ; then
7570
7571 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7572
7573 TREECHECKING=yes
7574 fi
7575 if test x$ac_types_checking != x ; then
7576
7577 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7578
7579 fi
7580
7581 if test x$ac_rtl_checking != x ; then
7582
7583 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7584
7585 fi
7586 if test x$ac_rtlflag_checking != x ; then
7587
7588 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7589
7590 fi
7591 if test x$ac_gc_checking != x ; then
7592
7593 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7594
7595 fi
7596 if test x$ac_gc_always_collect != x ; then
7597
7598 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7599
7600 fi
7601 if test x$ac_fold_checking != x ; then
7602
7603 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7604
7605 fi
7606 valgrind_path_defines=
7607 valgrind_command=
7608
7609 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7610 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7611 have_valgrind_h=yes
7612 else
7613 have_valgrind_h=no
7614 fi
7615
7616
7617
7618 # It is certainly possible that there's valgrind but no valgrind.h.
7619 # GCC relies on making annotations so we must have both.
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7621 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h. */
7624 #include <valgrind/memcheck.h>
7625 #ifndef VALGRIND_DISCARD
7626 #error VALGRIND_DISCARD not defined
7627 #endif
7628 _ACEOF
7629 if ac_fn_cxx_try_cpp "$LINENO"; then :
7630 gcc_cv_header_valgrind_memcheck_h=yes
7631 else
7632 gcc_cv_header_valgrind_memcheck_h=no
7633 fi
7634 rm -f conftest.err conftest.i conftest.$ac_ext
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7636 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7638 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7641 #include <memcheck.h>
7642 #ifndef VALGRIND_DISCARD
7643 #error VALGRIND_DISCARD not defined
7644 #endif
7645 _ACEOF
7646 if ac_fn_cxx_try_cpp "$LINENO"; then :
7647 gcc_cv_header_memcheck_h=yes
7648 else
7649 gcc_cv_header_memcheck_h=no
7650 fi
7651 rm -f conftest.err conftest.i conftest.$ac_ext
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7653 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7654 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7655
7656 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7657
7658 fi
7659 if test $gcc_cv_header_memcheck_h = yes; then
7660
7661 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7662
7663 fi
7664
7665 if test x$ac_valgrind_checking != x ; then
7666
7667 # Prepare PATH_SEPARATOR.
7668 # The user is always right.
7669 if test "${PATH_SEPARATOR+set}" != set; then
7670 echo "#! /bin/sh" >conf$$.sh
7671 echo "exit 0" >>conf$$.sh
7672 chmod +x conf$$.sh
7673 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7674 PATH_SEPARATOR=';'
7675 else
7676 PATH_SEPARATOR=:
7677 fi
7678 rm -f conf$$.sh
7679 fi
7680
7681 # Find out how to test for executable files. Don't use a zero-byte file,
7682 # as systems may use methods other than mode bits to determine executability.
7683 cat >conf$$.file <<_ASEOF
7684 #! /bin/sh
7685 exit 0
7686 _ASEOF
7687 chmod +x conf$$.file
7688 if test -x conf$$.file >/dev/null 2>&1; then
7689 ac_executable_p="test -x"
7690 else
7691 ac_executable_p="test -f"
7692 fi
7693 rm -f conf$$.file
7694
7695 # Extract the first word of "valgrind", so it can be a program name with args.
7696 set dummy valgrind; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if ${ac_cv_path_valgrind_path+:} false; then :
7700 $as_echo_n "(cached) " >&6
7701 else
7702 case "$valgrind_path" in
7703 [\\/]* | ?:[\\/]*)
7704 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7705 ;;
7706 *)
7707 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7708 for ac_dir in $PATH; do
7709 IFS="$ac_save_IFS"
7710 test -z "$ac_dir" && ac_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7713 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7714 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7715 break 2
7716 fi
7717 fi
7718 done
7719 done
7720 IFS="$ac_save_IFS"
7721 ;;
7722 esac
7723 fi
7724 valgrind_path="$ac_cv_path_valgrind_path"
7725 if test -n "$valgrind_path"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7727 $as_echo "$valgrind_path" >&6; }
7728 else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7731 fi
7732
7733 if test "x$valgrind_path" = "x" \
7734 || (test $have_valgrind_h = no \
7735 && test $gcc_cv_header_memcheck_h = no \
7736 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7737 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7738 fi
7739 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7740 valgrind_command="$valgrind_path -q"
7741
7742 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7743
7744 fi
7745
7746
7747
7748 # Enable code coverage collection
7749 # Check whether --enable-coverage was given.
7750 if test "${enable_coverage+set}" = set; then :
7751 enableval=$enable_coverage; case "${enableval}" in
7752 yes|noopt)
7753 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7754 ;;
7755 opt)
7756 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7757 ;;
7758 no)
7759 # a.k.a. --disable-coverage
7760 coverage_flags=""
7761 ;;
7762 *)
7763 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7764 ;;
7765 esac
7766 else
7767 coverage_flags=""
7768 fi
7769
7770
7771
7772 # Check whether --enable-gather-detailed-mem-stats was given.
7773 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7774 enableval=$enable_gather_detailed_mem_stats;
7775 else
7776 enable_gather_detailed_mem_stats=no
7777 fi
7778
7779 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7780
7781 cat >>confdefs.h <<_ACEOF
7782 #define GATHER_STATISTICS $gather_stats
7783 _ACEOF
7784
7785
7786 # Check whether --enable-valgrind-annotations was given.
7787 if test "${enable_valgrind_annotations+set}" = set; then :
7788 enableval=$enable_valgrind_annotations;
7789 else
7790 enable_valgrind_annotations=no
7791 fi
7792
7793 if test x$enable_valgrind_annotations != xno \
7794 || test x$ac_valgrind_checking != x; then
7795 if (test $have_valgrind_h = no \
7796 && test $gcc_cv_header_memcheck_h = no \
7797 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7798 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7799 fi
7800
7801 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7802
7803 fi
7804
7805 # -------------------------------
7806 # Miscenalleous configure options
7807 # -------------------------------
7808
7809 # Determine whether or not multilibs are enabled.
7810 # Check whether --enable-multilib was given.
7811 if test "${enable_multilib+set}" = set; then :
7812 enableval=$enable_multilib;
7813 else
7814 enable_multilib=yes
7815 fi
7816
7817
7818
7819 # Determine whether or not multiarch is enabled.
7820 # Check whether --enable-multiarch was given.
7821 if test "${enable_multiarch+set}" = set; then :
7822 enableval=$enable_multiarch; case "${enableval}" in
7823 yes|no|auto) enable_multiarch=$enableval;;
7824 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7825 esac
7826 else
7827 enable_multiarch=auto
7828 fi
7829
7830 if test x${enable_multiarch} = xauto; then
7831 if test x${with_native_system_header_dir} != x; then
7832 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7833 enable_multiarch=no
7834 fi
7835 if test x$host != x$target && test "x$with_sysroot" = x; then
7836 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7837 enable_multiarch=no
7838 fi
7839 fi
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7841 $as_echo_n "checking for multiarch configuration... " >&6; }
7842
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7844 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7845
7846 # needed for setting the multiarch name for soft-float/hard-float ABIs
7847
7848
7849
7850 # default stack clash protection guard size as power of twos in bytes.
7851 # Please keep these in sync with params.def.
7852 stk_clash_min=12
7853 stk_clash_max=30
7854
7855 # Keep the default value when the option is not used to 0, this allows us to
7856 # distinguish between the cases where the user specifially set a value via
7857 # configure and when the normal default value is used.
7858
7859 # Check whether --with-stack-clash-protection-guard-size was given.
7860 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7861 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7862 else
7863 DEFAULT_STK_CLASH_GUARD_SIZE=0
7864 fi
7865
7866 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7867 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7868 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7869 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
7870 fi
7871
7872
7873 cat >>confdefs.h <<_ACEOF
7874 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7875 _ACEOF
7876
7877
7878 # Enable __cxa_atexit for C++.
7879 # Check whether --enable-__cxa_atexit was given.
7880 if test "${enable___cxa_atexit+set}" = set; then :
7881 enableval=$enable___cxa_atexit;
7882 fi
7883
7884
7885 # Enable C extension for decimal float if target supports it.
7886
7887 # Check whether --enable-decimal-float was given.
7888 if test "${enable_decimal_float+set}" = set; then :
7889 enableval=$enable_decimal_float;
7890 case $enable_decimal_float in
7891 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7892 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7893 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7894 esac
7895
7896 else
7897
7898 case $target in
7899 aarch64* | \
7900 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7901 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7902 i?86*-*-mingw* | x86_64*-*-mingw* | \
7903 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7904 enable_decimal_float=yes
7905 ;;
7906 *)
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7908 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7909 enable_decimal_float=no
7910 ;;
7911 esac
7912
7913 fi
7914
7915
7916 # x86's use BID format instead of DPD
7917 case x$enable_decimal_float in
7918 xyes)
7919 case $target in
7920 aarch64* | i?86*-*-* | x86_64*-*-*)
7921 enable_decimal_float=bid
7922 ;;
7923 *)
7924 enable_decimal_float=dpd
7925 ;;
7926 esac
7927 default_decimal_float=$enable_decimal_float
7928 ;;
7929 xno)
7930 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7931 # dependency on libdecnumber.
7932 default_decimal_float=dpd
7933 ;;
7934 esac
7935
7936
7937
7938
7939 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7940
7941 cat >>confdefs.h <<_ACEOF
7942 #define ENABLE_DECIMAL_FLOAT $dfp
7943 _ACEOF
7944
7945
7946 # Use default_decimal_float for dependency.
7947 enable_decimal_float=$default_decimal_float
7948
7949 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7950
7951 cat >>confdefs.h <<_ACEOF
7952 #define ENABLE_DECIMAL_BID_FORMAT $bid
7953 _ACEOF
7954
7955
7956 # Enable C extension for fixed-point arithmetic.
7957 # Check whether --enable-fixed-point was given.
7958 if test "${enable_fixed_point+set}" = set; then :
7959 enableval=$enable_fixed_point;
7960 else
7961
7962 case $target in
7963 arm*)
7964 enable_fixed_point=yes
7965 ;;
7966
7967 mips*-*-*)
7968 enable_fixed_point=yes
7969 ;;
7970 loongarch*-*-*)
7971 enable_fixed_point=yes
7972 ;;
7973 *)
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7975 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7976 enable_fixed_point=no
7977 ;;
7978 esac
7979
7980 fi
7981
7982
7983
7984 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7985
7986 cat >>confdefs.h <<_ACEOF
7987 #define ENABLE_FIXED_POINT $fixedpoint
7988 _ACEOF
7989
7990
7991 # Enable threads
7992 # Pass with no value to take the default
7993 # Pass with a value to specify a thread package
7994 # Check whether --enable-threads was given.
7995 if test "${enable_threads+set}" = set; then :
7996 enableval=$enable_threads;
7997 else
7998 enable_threads=''
7999 fi
8000
8001
8002 # Check whether --enable-tls was given.
8003 if test "${enable_tls+set}" = set; then :
8004 enableval=$enable_tls;
8005 case $enable_tls in
8006 yes | no) ;;
8007 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8008 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8009 esac
8010
8011 else
8012 enable_tls=''
8013 fi
8014
8015
8016 # Check whether --enable-vtable-verify was given.
8017 if test "${enable_vtable_verify+set}" = set; then :
8018 enableval=$enable_vtable_verify;
8019 else
8020 enable_vtable_verify=no
8021 fi
8022
8023 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8024
8025 cat >>confdefs.h <<_ACEOF
8026 #define ENABLE_VTABLE_VERIFY $vtable_verify
8027 _ACEOF
8028
8029
8030 # Check whether --enable-analyzer was given.
8031 if test "${enable_analyzer+set}" = set; then :
8032 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8033 analyzer=0
8034 else
8035 analyzer=1
8036 fi
8037 else
8038 analyzer=1
8039 fi
8040
8041
8042 cat >>confdefs.h <<_ACEOF
8043 #define ENABLE_ANALYZER $analyzer
8044 _ACEOF
8045
8046
8047 # Check whether --enable-objc-gc was given.
8048 if test "${enable_objc_gc+set}" = set; then :
8049 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8050 objc_boehm_gc=''
8051 else
8052 objc_boehm_gc=1
8053 fi
8054 else
8055 objc_boehm_gc=''
8056 fi
8057
8058
8059
8060 # Check whether --with-dwarf2 was given.
8061 if test "${with_dwarf2+set}" = set; then :
8062 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8063 else
8064 dwarf2=no
8065 fi
8066
8067
8068 # Check whether --enable-shared was given.
8069 if test "${enable_shared+set}" = set; then :
8070 enableval=$enable_shared;
8071 case $enable_shared in
8072 yes | no) ;;
8073 *)
8074 enable_shared=no
8075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8076 for pkg in $enableval; do
8077 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8078 enable_shared=yes
8079 fi
8080 done
8081 IFS="$ac_save_ifs"
8082 ;;
8083 esac
8084
8085 else
8086 enable_shared=yes
8087 fi
8088
8089
8090
8091 # Check whether --enable-gcov was given.
8092 if test "${enable_gcov+set}" = set; then :
8093 enableval=$enable_gcov;
8094 else
8095 case $target in
8096 bpf-*-*)
8097 enable_gcov=no
8098 ;;
8099 *)
8100 enable_gcov=yes
8101 ;;
8102 esac
8103 fi
8104
8105
8106
8107
8108
8109 # Check whether --with-specs was given.
8110 if test "${with_specs+set}" = set; then :
8111 withval=$with_specs; CONFIGURE_SPECS=$withval
8112 else
8113 CONFIGURE_SPECS=
8114
8115 fi
8116
8117
8118
8119
8120
8121 # Check whether --with-pkgversion was given.
8122 if test "${with_pkgversion+set}" = set; then :
8123 withval=$with_pkgversion; case "$withval" in
8124 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8125 no) PKGVERSION= ;;
8126 *) PKGVERSION="($withval) " ;;
8127 esac
8128 else
8129 PKGVERSION="(GCC) "
8130
8131 fi
8132
8133
8134
8135
8136
8137 # Check whether --with-bugurl was given.
8138 if test "${with_bugurl+set}" = set; then :
8139 withval=$with_bugurl; case "$withval" in
8140 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8141 no) BUGURL=
8142 ;;
8143 *) BUGURL="$withval"
8144 ;;
8145 esac
8146 else
8147 BUGURL="https://gcc.gnu.org/bugs/"
8148
8149 fi
8150
8151 case ${BUGURL} in
8152 "")
8153 REPORT_BUGS_TO=
8154 REPORT_BUGS_TEXI=
8155 ;;
8156 *)
8157 REPORT_BUGS_TO="<$BUGURL>"
8158 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8159 ;;
8160 esac;
8161
8162
8163
8164
8165 # Allow overriding the default URL for documentation
8166
8167 # Check whether --with-documentation-root-url was given.
8168 if test "${with_documentation_root_url+set}" = set; then :
8169 withval=$with_documentation_root_url; case "$withval" in
8170 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8171 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8172 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8173 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8174 esac
8175 else
8176 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8177
8178 fi
8179
8180
8181 cat >>confdefs.h <<_ACEOF
8182 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8183 _ACEOF
8184
8185
8186 # Allow overriding the default URL for GCC changes
8187
8188 # Check whether --with-changes-root-url was given.
8189 if test "${with_changes_root_url+set}" = set; then :
8190 withval=$with_changes_root_url; case "$withval" in
8191 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8192 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8193 */) CHANGES_ROOT_URL="$withval" ;;
8194 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8195 esac
8196 else
8197 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8198
8199 fi
8200
8201
8202 cat >>confdefs.h <<_ACEOF
8203 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8204 _ACEOF
8205
8206
8207 # Sanity check enable_languages in case someone does not run the toplevel
8208 # configure # script.
8209 # Check whether --enable-languages was given.
8210 if test "${enable_languages+set}" = set; then :
8211 enableval=$enable_languages; case ,${enable_languages}, in
8212 ,,|,yes,)
8213 # go safe -- we cannot be much sure without the toplevel
8214 # configure's
8215 # analysis of which target libs are present and usable
8216 enable_languages=c
8217 ;;
8218 *,all,*)
8219 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8220 ;;
8221 *,c,*)
8222 ;;
8223 *)
8224 enable_languages=c,${enable_languages}
8225 ;;
8226 esac
8227 else
8228 enable_languages=c
8229 fi
8230
8231
8232 # If top-level libada has been disabled, then wire in install-gnatlib
8233 # invocation with `make install', so that one can build and install
8234 # the library manually with `make -C gcc all gnatlib gnattools install'.
8235 if test x"$enable_libada" = xno; then
8236 gnat_install_lib=gnat-install-lib
8237 else
8238 gnat_install_lib=
8239 fi
8240
8241
8242 if test x"$enable_as_accelerator_for" != x; then
8243
8244 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8245
8246 enable_as_accelerator=yes
8247 case "${target}" in
8248 *-intelmicemul-*)
8249 # In this case we expect offload compiler to be built as native, so we
8250 # need to rename the driver to avoid clashes with host's drivers.
8251 program_transform_name="s&^&${target}-&" ;;
8252 esac
8253 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8254 program_transform_name=`echo $program_transform_name | sed $sedscript`
8255 accel_dir_suffix=/accel/${target_noncanonical}
8256 real_target_noncanonical=${enable_as_accelerator_for}
8257 fi
8258
8259
8260
8261
8262 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8263 tgt=`echo $tgt | sed 's/=.*//'`
8264
8265 enable_offloading=1
8266 case "$tgt" in
8267 *-intelmic-* | *-intelmicemul-*)
8268 omp_device_property=omp-device-properties-i386
8269 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
8270 ;;
8271 amdgcn*)
8272 omp_device_property=omp-device-properties-gcn
8273 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8274 ;;
8275 nvptx*)
8276 omp_device_property=omp-device-properties-nvptx
8277 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8278 ;;
8279 *)
8280 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8281 ;;
8282 esac
8283 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8284 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8285
8286 if test x"$offload_targets" = x; then
8287 offload_targets=$tgt
8288 else
8289 offload_targets="$offload_targets,$tgt"
8290 fi
8291 done
8292
8293
8294
8295
8296 cat >>confdefs.h <<_ACEOF
8297 #define OFFLOAD_TARGETS "$offload_targets"
8298 _ACEOF
8299
8300 if test x"$enable_offloading" != x; then
8301
8302 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8303
8304 else
8305
8306 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8307
8308 fi
8309
8310 if test "x$enable_offload_defaulted" = xyes; then
8311
8312 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8313
8314 fi
8315
8316
8317 # Check whether --with-multilib-list was given.
8318 if test "${with_multilib_list+set}" = set; then :
8319 withval=$with_multilib_list; :
8320 else
8321 with_multilib_list=default
8322 fi
8323
8324
8325
8326 # Check whether --with-multilib-generator was given.
8327 if test "${with_multilib_generator+set}" = set; then :
8328 withval=$with_multilib_generator; :
8329 else
8330 with_multilib_generator=default
8331 fi
8332
8333
8334 # -------------------------
8335 # Checks for other programs
8336 # -------------------------
8337
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8339 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8340 set x ${MAKE-make}
8341 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8342 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 cat >conftest.make <<\_ACEOF
8346 SHELL = /bin/sh
8347 all:
8348 @echo '@@@%%%=$(MAKE)=@@@%%%'
8349 _ACEOF
8350 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8351 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8352 *@@@%%%=?*=@@@%%%*)
8353 eval ac_cv_prog_make_${ac_make}_set=yes;;
8354 *)
8355 eval ac_cv_prog_make_${ac_make}_set=no;;
8356 esac
8357 rm -f conftest.make
8358 fi
8359 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8361 $as_echo "yes" >&6; }
8362 SET_MAKE=
8363 else
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 $as_echo "no" >&6; }
8366 SET_MAKE="MAKE=${MAKE-make}"
8367 fi
8368
8369
8370 # Find some useful tools
8371 for ac_prog in gawk mawk nawk awk
8372 do
8373 # Extract the first word of "$ac_prog", so it can be a program name with args.
8374 set dummy $ac_prog; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_prog_AWK+:} false; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 if test -n "$AWK"; then
8381 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8382 else
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 for as_dir in $PATH
8385 do
8386 IFS=$as_save_IFS
8387 test -z "$as_dir" && as_dir=.
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8390 ac_cv_prog_AWK="$ac_prog"
8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 break 2
8393 fi
8394 done
8395 done
8396 IFS=$as_save_IFS
8397
8398 fi
8399 fi
8400 AWK=$ac_cv_prog_AWK
8401 if test -n "$AWK"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8403 $as_echo "$AWK" >&6; }
8404 else
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8407 fi
8408
8409
8410 test -n "$AWK" && break
8411 done
8412
8413 # We need awk to create options.cc and options.h.
8414 # Bail out if it's missing.
8415 case ${AWK} in
8416 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8417 esac
8418
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8420 $as_echo_n "checking whether ln -s works... " >&6; }
8421 if ${gcc_cv_prog_LN_S+:} false; then :
8422 $as_echo_n "(cached) " >&6
8423 else
8424 rm -f conftestdata_t
8425 echo >conftestdata_f
8426 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8427 then
8428 gcc_cv_prog_LN_S="ln -s"
8429 else
8430 if ln conftestdata_f conftestdata_t 2>/dev/null
8431 then
8432 gcc_cv_prog_LN_S=ln
8433 else
8434 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8435 then
8436 gcc_cv_prog_LN_S="cp -p"
8437 else
8438 gcc_cv_prog_LN_S=cp
8439 fi
8440 fi
8441 fi
8442 rm -f conftestdata_f conftestdata_t
8443
8444 fi
8445 LN_S="$gcc_cv_prog_LN_S"
8446 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8448 $as_echo "yes" >&6; }
8449 else
8450 if test "$gcc_cv_prog_LN_S" = "ln"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8452 $as_echo "no, using ln" >&6; }
8453 else
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8455 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8456 fi
8457 fi
8458
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8460 $as_echo_n "checking whether ln works... " >&6; }
8461 if ${acx_cv_prog_LN+:} false; then :
8462 $as_echo_n "(cached) " >&6
8463 else
8464 rm -f conftestdata_t
8465 echo >conftestdata_f
8466 if ln conftestdata_f conftestdata_t 2>/dev/null
8467 then
8468 acx_cv_prog_LN=ln
8469 else
8470 acx_cv_prog_LN=no
8471 fi
8472 rm -f conftestdata_f conftestdata_t
8473
8474 fi
8475 if test $acx_cv_prog_LN = no; then
8476 LN="$LN_S"
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8478 $as_echo "no, using $LN" >&6; }
8479 else
8480 LN="$acx_cv_prog_LN"
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8482 $as_echo "yes" >&6; }
8483 fi
8484
8485 if test -n "$ac_tool_prefix"; then
8486 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8489 $as_echo_n "checking for $ac_word... " >&6; }
8490 if ${ac_cv_prog_RANLIB+:} false; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 if test -n "$RANLIB"; then
8494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8495 else
8496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 for as_dir in $PATH
8498 do
8499 IFS=$as_save_IFS
8500 test -z "$as_dir" && as_dir=.
8501 for ac_exec_ext in '' $ac_executable_extensions; do
8502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8503 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 break 2
8506 fi
8507 done
8508 done
8509 IFS=$as_save_IFS
8510
8511 fi
8512 fi
8513 RANLIB=$ac_cv_prog_RANLIB
8514 if test -n "$RANLIB"; then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8516 $as_echo "$RANLIB" >&6; }
8517 else
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 $as_echo "no" >&6; }
8520 fi
8521
8522
8523 fi
8524 if test -z "$ac_cv_prog_RANLIB"; then
8525 ac_ct_RANLIB=$RANLIB
8526 # Extract the first word of "ranlib", so it can be a program name with args.
8527 set dummy ranlib; ac_word=$2
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529 $as_echo_n "checking for $ac_word... " >&6; }
8530 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8531 $as_echo_n "(cached) " >&6
8532 else
8533 if test -n "$ac_ct_RANLIB"; then
8534 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8535 else
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 for as_dir in $PATH
8538 do
8539 IFS=$as_save_IFS
8540 test -z "$as_dir" && as_dir=.
8541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8543 ac_cv_prog_ac_ct_RANLIB="ranlib"
8544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8545 break 2
8546 fi
8547 done
8548 done
8549 IFS=$as_save_IFS
8550
8551 fi
8552 fi
8553 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8554 if test -n "$ac_ct_RANLIB"; then
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8556 $as_echo "$ac_ct_RANLIB" >&6; }
8557 else
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559 $as_echo "no" >&6; }
8560 fi
8561
8562 if test "x$ac_ct_RANLIB" = x; then
8563 RANLIB=":"
8564 else
8565 case $cross_compiling:$ac_tool_warned in
8566 yes:)
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8569 ac_tool_warned=yes ;;
8570 esac
8571 RANLIB=$ac_ct_RANLIB
8572 fi
8573 else
8574 RANLIB="$ac_cv_prog_RANLIB"
8575 fi
8576
8577 ranlib_flags=""
8578
8579
8580 # Find a good install program. We prefer a C program (faster),
8581 # so one script is as good as another. But avoid the broken or
8582 # incompatible versions:
8583 # SysV /etc/install, /usr/sbin/install
8584 # SunOS /usr/etc/install
8585 # IRIX /sbin/install
8586 # AIX /bin/install
8587 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8588 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8589 # ./install, which can be erroneously created by make from ./install.sh.
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8591 $as_echo_n "checking for a BSD compatible install... " >&6; }
8592 if test -z "$INSTALL"; then
8593 if ${ac_cv_path_install+:} false; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8597 for ac_dir in $PATH; do
8598 # Account for people who put trailing slashes in PATH elements.
8599 case "$ac_dir/" in
8600 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8601 *)
8602 # OSF1 and SCO ODT 3.0 have their own names for install.
8603 for ac_prog in ginstall scoinst install; do
8604 if test -f $ac_dir/$ac_prog; then
8605 if test $ac_prog = install &&
8606 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8607 # AIX install. It has an incompatible calling convention.
8608 # OSF/1 installbsd also uses dspmsg, but is usable.
8609 :
8610 else
8611 ac_cv_path_install="$ac_dir/$ac_prog -c"
8612 break 2
8613 fi
8614 fi
8615 done
8616 ;;
8617 esac
8618 done
8619 IFS="$ac_save_IFS"
8620
8621 fi
8622 if test "${ac_cv_path_install+set}" = set; then
8623 INSTALL="$ac_cv_path_install"
8624 else
8625 # As a last resort, use the slow shell script. We don't cache a
8626 # path for INSTALL within a source directory, because that will
8627 # break other packages using the cache if that directory is
8628 # removed, or if the path is relative.
8629 INSTALL="$ac_install_sh"
8630 fi
8631 fi
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8633 $as_echo "$INSTALL" >&6; }
8634
8635 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8636 # It thinks the first close brace ends the variable substitution.
8637 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8638
8639 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8640
8641
8642 # See if cmp has --ignore-initial.
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8644 $as_echo_n "checking for cmp's capabilities... " >&6; }
8645 if ${gcc_cv_prog_cmp_skip+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 echo abfoo >t1
8649 echo cdfoo >t2
8650 gcc_cv_prog_cmp_skip=slowcompare
8651 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8652 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8653 :
8654 else
8655 gcc_cv_prog_cmp_skip=gnucompare
8656 fi
8657 fi
8658 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8659 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8660 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8661 :
8662 else
8663 gcc_cv_prog_cmp_skip=fastcompare
8664 fi
8665 fi
8666 fi
8667 rm t1 t2
8668
8669 fi
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8671 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8672 make_compare_target=$gcc_cv_prog_cmp_skip
8673
8674
8675
8676 # See if we have the mktemp command.
8677 # Extract the first word of "mktemp", so it can be a program name with args.
8678 set dummy mktemp; ac_word=$2
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680 $as_echo_n "checking for $ac_word... " >&6; }
8681 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8682 $as_echo_n "(cached) " >&6
8683 else
8684 if test -n "$have_mktemp_command"; then
8685 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8686 else
8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688 for as_dir in $PATH
8689 do
8690 IFS=$as_save_IFS
8691 test -z "$as_dir" && as_dir=.
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8694 ac_cv_prog_have_mktemp_command="yes"
8695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8696 break 2
8697 fi
8698 done
8699 done
8700 IFS=$as_save_IFS
8701
8702 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8703 fi
8704 fi
8705 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8706 if test -n "$have_mktemp_command"; then
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8708 $as_echo "$have_mktemp_command" >&6; }
8709 else
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711 $as_echo "no" >&6; }
8712 fi
8713
8714
8715
8716 # See if makeinfo has been installed and is modern enough
8717 # that we can use it.
8718
8719 # Extract the first word of "makeinfo", so it can be a program name with args.
8720 set dummy makeinfo; ac_word=$2
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722 $as_echo_n "checking for $ac_word... " >&6; }
8723 if ${ac_cv_prog_MAKEINFO+:} false; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 if test -n "$MAKEINFO"; then
8727 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8728 else
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730 for as_dir in $PATH
8731 do
8732 IFS=$as_save_IFS
8733 test -z "$as_dir" && as_dir=.
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8736 ac_cv_prog_MAKEINFO="makeinfo"
8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8738 break 2
8739 fi
8740 done
8741 done
8742 IFS=$as_save_IFS
8743
8744 fi
8745 fi
8746 MAKEINFO=$ac_cv_prog_MAKEINFO
8747 if test -n "$MAKEINFO"; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8749 $as_echo "$MAKEINFO" >&6; }
8750 else
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 $as_echo "no" >&6; }
8753 fi
8754
8755
8756 if test -n "$MAKEINFO"; then
8757 # Found it, now check the version.
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8759 $as_echo_n "checking for modern makeinfo... " >&6; }
8760 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8761 $as_echo_n "(cached) " >&6
8762 else
8763 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8764 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8765
8766 case $ac_prog_version in
8767 '') gcc_cv_prog_makeinfo_modern=no;;
8768 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8769 *) gcc_cv_prog_makeinfo_modern=no;;
8770 esac
8771
8772 fi
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8774 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8775 else
8776 gcc_cv_prog_makeinfo_modern=no
8777 fi
8778 if test $gcc_cv_prog_makeinfo_modern = no; then
8779 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8780 fi
8781
8782 if test $gcc_cv_prog_makeinfo_modern = no; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8784 *** Makeinfo is missing or too old.
8785 *** Info documentation will not be built." >&5
8786 $as_echo "$as_me: WARNING:
8787 *** Makeinfo is missing or too old.
8788 *** Info documentation will not be built." >&2;}
8789 BUILD_INFO=
8790 else
8791 BUILD_INFO=info
8792 fi
8793
8794
8795 # Is pod2man recent enough to regenerate manpages?
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8797 $as_echo_n "checking for recent Pod::Man... " >&6; }
8798 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8800 $as_echo "yes" >&6; }
8801 GENERATED_MANPAGES=generated-manpages
8802 else
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804 $as_echo "no" >&6; }
8805 GENERATED_MANPAGES=
8806 fi
8807
8808
8809 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8810
8811 # How about lex?
8812 for ac_prog in flex
8813 do
8814 # Extract the first word of "$ac_prog", so it can be a program name with args.
8815 set dummy $ac_prog; ac_word=$2
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817 $as_echo_n "checking for $ac_word... " >&6; }
8818 if ${ac_cv_prog_FLEX+:} false; then :
8819 $as_echo_n "(cached) " >&6
8820 else
8821 if test -n "$FLEX"; then
8822 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8823 else
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825 for as_dir in $PATH
8826 do
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8831 ac_cv_prog_FLEX="$ac_prog"
8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 break 2
8834 fi
8835 done
8836 done
8837 IFS=$as_save_IFS
8838
8839 fi
8840 fi
8841 FLEX=$ac_cv_prog_FLEX
8842 if test -n "$FLEX"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8844 $as_echo "$FLEX" >&6; }
8845 else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8848 fi
8849
8850
8851 test -n "$FLEX" && break
8852 done
8853 test -n "$FLEX" || FLEX="$MISSING flex"
8854
8855
8856 # Bison?
8857 for ac_prog in bison
8858 do
8859 # Extract the first word of "$ac_prog", so it can be a program name with args.
8860 set dummy $ac_prog; ac_word=$2
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if ${ac_cv_prog_BISON+:} false; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 if test -n "$BISON"; then
8867 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8868 else
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870 for as_dir in $PATH
8871 do
8872 IFS=$as_save_IFS
8873 test -z "$as_dir" && as_dir=.
8874 for ac_exec_ext in '' $ac_executable_extensions; do
8875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8876 ac_cv_prog_BISON="$ac_prog"
8877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8878 break 2
8879 fi
8880 done
8881 done
8882 IFS=$as_save_IFS
8883
8884 fi
8885 fi
8886 BISON=$ac_cv_prog_BISON
8887 if test -n "$BISON"; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8889 $as_echo "$BISON" >&6; }
8890 else
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892 $as_echo "no" >&6; }
8893 fi
8894
8895
8896 test -n "$BISON" && break
8897 done
8898 test -n "$BISON" || BISON="$MISSING bison"
8899
8900
8901 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8902 # check for build == host before using them.
8903
8904 # NM
8905 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8906 && test -d ../binutils ; then
8907 NM='${objdir}/../binutils/nm-new'
8908 else
8909 # Extract the first word of "nm", so it can be a program name with args.
8910 set dummy nm; ac_word=$2
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8912 $as_echo_n "checking for $ac_word... " >&6; }
8913 if ${ac_cv_prog_NM+:} false; then :
8914 $as_echo_n "(cached) " >&6
8915 else
8916 if test -n "$NM"; then
8917 ac_cv_prog_NM="$NM" # Let the user override the test.
8918 else
8919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920 for as_dir in $PATH
8921 do
8922 IFS=$as_save_IFS
8923 test -z "$as_dir" && as_dir=.
8924 for ac_exec_ext in '' $ac_executable_extensions; do
8925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8926 ac_cv_prog_NM="nm"
8927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8928 break 2
8929 fi
8930 done
8931 done
8932 IFS=$as_save_IFS
8933
8934 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8935 fi
8936 fi
8937 NM=$ac_cv_prog_NM
8938 if test -n "$NM"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8940 $as_echo "$NM" >&6; }
8941 else
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8944 fi
8945
8946
8947 fi
8948
8949 # AR
8950 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8951 && test -d ../binutils ; then
8952 AR='${objdir}/../binutils/ar'
8953 else
8954 # Extract the first word of "ar", so it can be a program name with args.
8955 set dummy ar; ac_word=$2
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8957 $as_echo_n "checking for $ac_word... " >&6; }
8958 if ${ac_cv_prog_AR+:} false; then :
8959 $as_echo_n "(cached) " >&6
8960 else
8961 if test -n "$AR"; then
8962 ac_cv_prog_AR="$AR" # Let the user override the test.
8963 else
8964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965 for as_dir in $PATH
8966 do
8967 IFS=$as_save_IFS
8968 test -z "$as_dir" && as_dir=.
8969 for ac_exec_ext in '' $ac_executable_extensions; do
8970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8971 ac_cv_prog_AR="ar"
8972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8973 break 2
8974 fi
8975 done
8976 done
8977 IFS=$as_save_IFS
8978
8979 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8980 fi
8981 fi
8982 AR=$ac_cv_prog_AR
8983 if test -n "$AR"; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8985 $as_echo "$AR" >&6; }
8986 else
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988 $as_echo "no" >&6; }
8989 fi
8990
8991
8992 fi
8993
8994 # The jit documentation looks better if built with sphinx, but can be
8995 # built with texinfo if sphinx is not available.
8996 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8997 # Extract the first word of "sphinx-build", so it can be a program name with args.
8998 set dummy sphinx-build; ac_word=$2
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9000 $as_echo_n "checking for $ac_word... " >&6; }
9001 if ${ac_cv_prog_doc_build_sys+:} false; then :
9002 $as_echo_n "(cached) " >&6
9003 else
9004 if test -n "$doc_build_sys"; then
9005 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9006 else
9007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 for as_dir in $PATH
9009 do
9010 IFS=$as_save_IFS
9011 test -z "$as_dir" && as_dir=.
9012 for ac_exec_ext in '' $ac_executable_extensions; do
9013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9014 ac_cv_prog_doc_build_sys="sphinx"
9015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9016 break 2
9017 fi
9018 done
9019 done
9020 IFS=$as_save_IFS
9021
9022 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9023 fi
9024 fi
9025 doc_build_sys=$ac_cv_prog_doc_build_sys
9026 if test -n "$doc_build_sys"; then
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9028 $as_echo "$doc_build_sys" >&6; }
9029 else
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 $as_echo "no" >&6; }
9032 fi
9033
9034
9035
9036 # --------------------
9037 # Checks for C headers
9038 # --------------------
9039
9040 # Need to reject headers which give warnings, so that the -Werror bootstrap
9041 # works later. *sigh* This needs to come before all header checks.
9042
9043 ac_c_preproc_warn_flag=yes
9044
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9046 $as_echo_n "checking for ANSI C header files... " >&6; }
9047 if ${ac_cv_header_stdc+:} false; then :
9048 $as_echo_n "(cached) " >&6
9049 else
9050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9051 /* end confdefs.h. */
9052 #include <stdlib.h>
9053 #include <stdarg.h>
9054 #include <string.h>
9055 #include <float.h>
9056
9057 int
9058 main ()
9059 {
9060
9061 ;
9062 return 0;
9063 }
9064 _ACEOF
9065 if ac_fn_cxx_try_compile "$LINENO"; then :
9066 ac_cv_header_stdc=yes
9067 else
9068 ac_cv_header_stdc=no
9069 fi
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071
9072 if test $ac_cv_header_stdc = yes; then
9073 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 #include <string.h>
9077
9078 _ACEOF
9079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9080 $EGREP "memchr" >/dev/null 2>&1; then :
9081
9082 else
9083 ac_cv_header_stdc=no
9084 fi
9085 rm -f conftest*
9086
9087 fi
9088
9089 if test $ac_cv_header_stdc = yes; then
9090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h. */
9093 #include <stdlib.h>
9094
9095 _ACEOF
9096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9097 $EGREP "free" >/dev/null 2>&1; then :
9098
9099 else
9100 ac_cv_header_stdc=no
9101 fi
9102 rm -f conftest*
9103
9104 fi
9105
9106 if test $ac_cv_header_stdc = yes; then
9107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9108 if test "$cross_compiling" = yes; then :
9109 :
9110 else
9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9113 #include <ctype.h>
9114 #include <stdlib.h>
9115 #if ((' ' & 0x0FF) == 0x020)
9116 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9117 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9118 #else
9119 # define ISLOWER(c) \
9120 (('a' <= (c) && (c) <= 'i') \
9121 || ('j' <= (c) && (c) <= 'r') \
9122 || ('s' <= (c) && (c) <= 'z'))
9123 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9124 #endif
9125
9126 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9127 int
9128 main ()
9129 {
9130 int i;
9131 for (i = 0; i < 256; i++)
9132 if (XOR (islower (i), ISLOWER (i))
9133 || toupper (i) != TOUPPER (i))
9134 return 2;
9135 return 0;
9136 }
9137 _ACEOF
9138 if ac_fn_cxx_try_run "$LINENO"; then :
9139
9140 else
9141 ac_cv_header_stdc=no
9142 fi
9143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9144 conftest.$ac_objext conftest.beam conftest.$ac_ext
9145 fi
9146
9147 fi
9148 fi
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9150 $as_echo "$ac_cv_header_stdc" >&6; }
9151 if test $ac_cv_header_stdc = yes; then
9152
9153 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9154
9155 fi
9156
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9158 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9159 if ${ac_cv_header_time+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 #include <sys/types.h>
9165 #include <sys/time.h>
9166 #include <time.h>
9167
9168 int
9169 main ()
9170 {
9171 if ((struct tm *) 0)
9172 return 0;
9173 ;
9174 return 0;
9175 }
9176 _ACEOF
9177 if ac_fn_cxx_try_compile "$LINENO"; then :
9178 ac_cv_header_time=yes
9179 else
9180 ac_cv_header_time=no
9181 fi
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9183 fi
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9185 $as_echo "$ac_cv_header_time" >&6; }
9186 if test $ac_cv_header_time = yes; then
9187
9188 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9189
9190 fi
9191
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9193 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9194 if ${gcc_cv_header_string+:} false; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198 /* end confdefs.h. */
9199 #include <string.h>
9200 #include <strings.h>
9201 int
9202 main ()
9203 {
9204
9205 ;
9206 return 0;
9207 }
9208 _ACEOF
9209 if ac_fn_cxx_try_compile "$LINENO"; then :
9210 gcc_cv_header_string=yes
9211 else
9212 gcc_cv_header_string=no
9213 fi
9214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9215 fi
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9217 $as_echo "$gcc_cv_header_string" >&6; }
9218 if test $gcc_cv_header_string = yes; then
9219
9220 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9221
9222 fi
9223
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9225 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9226 if ${ac_cv_header_sys_wait_h+:} false; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9231 #include <sys/types.h>
9232 #include <sys/wait.h>
9233 #ifndef WEXITSTATUS
9234 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9235 #endif
9236 #ifndef WIFEXITED
9237 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9238 #endif
9239
9240 int
9241 main ()
9242 {
9243 int s;
9244 wait (&s);
9245 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9246 ;
9247 return 0;
9248 }
9249 _ACEOF
9250 if ac_fn_cxx_try_compile "$LINENO"; then :
9251 ac_cv_header_sys_wait_h=yes
9252 else
9253 ac_cv_header_sys_wait_h=no
9254 fi
9255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256 fi
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9258 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9259 if test $ac_cv_header_sys_wait_h = yes; then
9260
9261 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9262
9263 fi
9264
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9266 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9267 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9268 $as_echo_n "(cached) " >&6
9269 else
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9272 #include <sys/types.h>
9273 #include <termios.h>
9274 #ifdef TIOCGWINSZ
9275 yes
9276 #endif
9277
9278 _ACEOF
9279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9280 $EGREP "yes" >/dev/null 2>&1; then :
9281 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9282 else
9283 ac_cv_sys_tiocgwinsz_in_termios_h=no
9284 fi
9285 rm -f conftest*
9286
9287 fi
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9289 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9290
9291 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9293 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9294 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 #include <sys/types.h>
9300 #include <sys/ioctl.h>
9301 #ifdef TIOCGWINSZ
9302 yes
9303 #endif
9304
9305 _ACEOF
9306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9307 $EGREP "yes" >/dev/null 2>&1; then :
9308 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9309 else
9310 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9311 fi
9312 rm -f conftest*
9313
9314 fi
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9316 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9317
9318 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9319
9320 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9321
9322 fi
9323 fi
9324
9325 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9326 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
9327 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9328 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9329 do :
9330 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9331 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9332 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9333 cat >>confdefs.h <<_ACEOF
9334 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9335 _ACEOF
9336
9337 fi
9338 done
9339
9340
9341 # Check for thread headers.
9342 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9343 if test "x$ac_cv_header_thread_h" = xyes; then :
9344 have_thread_h=yes
9345 else
9346 have_thread_h=
9347 fi
9348
9349 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9350 if test "x$ac_cv_header_pthread_h" = xyes; then :
9351 have_pthread_h=yes
9352 else
9353 have_pthread_h=
9354 fi
9355
9356
9357 # These tests can't be done till we know if we have limits.h.
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9359 $as_echo_n "checking for CHAR_BIT... " >&6; }
9360 if ${gcc_cv_decl_char_bit+:} false; then :
9361 $as_echo_n "(cached) " >&6
9362 else
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9365 #ifdef HAVE_LIMITS_H
9366 #include <limits.h>
9367 #endif
9368 #ifdef CHAR_BIT
9369 found
9370 #endif
9371 _ACEOF
9372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9373 $EGREP "found" >/dev/null 2>&1; then :
9374 gcc_cv_decl_char_bit=yes
9375 else
9376 gcc_cv_decl_char_bit=no
9377 fi
9378 rm -f conftest*
9379
9380
9381 fi
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9383 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9384 if test $gcc_cv_decl_char_bit = no; then
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9386 $as_echo_n "checking number of bits in a byte... " >&6; }
9387 if ${gcc_cv_c_nbby+:} false; then :
9388 $as_echo_n "(cached) " >&6
9389 else
9390 i=8
9391 gcc_cv_c_nbby=
9392 while test $i -lt 65; do
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9395
9396 int
9397 main ()
9398 {
9399 switch(0) {
9400 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9401 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9402 ; }
9403 ;
9404 return 0;
9405 }
9406 _ACEOF
9407 if ac_fn_cxx_try_compile "$LINENO"; then :
9408 gcc_cv_c_nbby=$i; break
9409 fi
9410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9411 i=`expr $i + 1`
9412 done
9413 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9414
9415 fi
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9417 $as_echo "$gcc_cv_c_nbby" >&6; }
9418 if test $gcc_cv_c_nbby = failed; then
9419 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9420 else
9421
9422 cat >>confdefs.h <<_ACEOF
9423 #define CHAR_BIT $gcc_cv_c_nbby
9424 _ACEOF
9425
9426 fi
9427 fi
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9429 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9430 if ${ac_cv_c_bigendian+:} false; then :
9431 $as_echo_n "(cached) " >&6
9432 else
9433 ac_cv_c_bigendian=unknown
9434 # See if we're dealing with a universal compiler.
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9437 #ifndef __APPLE_CC__
9438 not a universal capable compiler
9439 #endif
9440 typedef int dummy;
9441
9442 _ACEOF
9443 if ac_fn_cxx_try_compile "$LINENO"; then :
9444
9445 # Check for potential -arch flags. It is not universal unless
9446 # there are at least two -arch flags with different values.
9447 ac_arch=
9448 ac_prev=
9449 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9450 if test -n "$ac_prev"; then
9451 case $ac_word in
9452 i?86 | x86_64 | ppc | ppc64)
9453 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9454 ac_arch=$ac_word
9455 else
9456 ac_cv_c_bigendian=universal
9457 break
9458 fi
9459 ;;
9460 esac
9461 ac_prev=
9462 elif test "x$ac_word" = "x-arch"; then
9463 ac_prev=arch
9464 fi
9465 done
9466 fi
9467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9468 if test $ac_cv_c_bigendian = unknown; then
9469 # See if sys/param.h defines the BYTE_ORDER macro.
9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h. */
9472 #include <sys/types.h>
9473 #include <sys/param.h>
9474
9475 int
9476 main ()
9477 {
9478 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9479 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9480 && LITTLE_ENDIAN)
9481 bogus endian macros
9482 #endif
9483
9484 ;
9485 return 0;
9486 }
9487 _ACEOF
9488 if ac_fn_cxx_try_compile "$LINENO"; then :
9489 # It does; now see whether it defined to BIG_ENDIAN or not.
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9492 #include <sys/types.h>
9493 #include <sys/param.h>
9494
9495 int
9496 main ()
9497 {
9498 #if BYTE_ORDER != BIG_ENDIAN
9499 not big endian
9500 #endif
9501
9502 ;
9503 return 0;
9504 }
9505 _ACEOF
9506 if ac_fn_cxx_try_compile "$LINENO"; then :
9507 ac_cv_c_bigendian=yes
9508 else
9509 ac_cv_c_bigendian=no
9510 fi
9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512 fi
9513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9514 fi
9515 if test $ac_cv_c_bigendian = unknown; then
9516 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9519 #include <limits.h>
9520
9521 int
9522 main ()
9523 {
9524 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9525 bogus endian macros
9526 #endif
9527
9528 ;
9529 return 0;
9530 }
9531 _ACEOF
9532 if ac_fn_cxx_try_compile "$LINENO"; then :
9533 # It does; now see whether it defined to _BIG_ENDIAN or not.
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9536 #include <limits.h>
9537
9538 int
9539 main ()
9540 {
9541 #ifndef _BIG_ENDIAN
9542 not big endian
9543 #endif
9544
9545 ;
9546 return 0;
9547 }
9548 _ACEOF
9549 if ac_fn_cxx_try_compile "$LINENO"; then :
9550 ac_cv_c_bigendian=yes
9551 else
9552 ac_cv_c_bigendian=no
9553 fi
9554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9555 fi
9556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9557 fi
9558 if test $ac_cv_c_bigendian = unknown; then
9559 # Compile a test program.
9560 if test "$cross_compiling" = yes; then :
9561 # Try to guess by grepping values from an object file.
9562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563 /* end confdefs.h. */
9564 short int ascii_mm[] =
9565 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9566 short int ascii_ii[] =
9567 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9568 int use_ascii (int i) {
9569 return ascii_mm[i] + ascii_ii[i];
9570 }
9571 short int ebcdic_ii[] =
9572 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9573 short int ebcdic_mm[] =
9574 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9575 int use_ebcdic (int i) {
9576 return ebcdic_mm[i] + ebcdic_ii[i];
9577 }
9578 extern int foo;
9579
9580 int
9581 main ()
9582 {
9583 return use_ascii (foo) == use_ebcdic (foo);
9584 ;
9585 return 0;
9586 }
9587 _ACEOF
9588 if ac_fn_cxx_try_compile "$LINENO"; then :
9589 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9590 ac_cv_c_bigendian=yes
9591 fi
9592 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9593 if test "$ac_cv_c_bigendian" = unknown; then
9594 ac_cv_c_bigendian=no
9595 else
9596 # finding both strings is unlikely to happen, but who knows?
9597 ac_cv_c_bigendian=unknown
9598 fi
9599 fi
9600 fi
9601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9602 else
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9605 $ac_includes_default
9606 int
9607 main ()
9608 {
9609
9610 /* Are we little or big endian? From Harbison&Steele. */
9611 union
9612 {
9613 long int l;
9614 char c[sizeof (long int)];
9615 } u;
9616 u.l = 1;
9617 return u.c[sizeof (long int) - 1] == 1;
9618
9619 ;
9620 return 0;
9621 }
9622 _ACEOF
9623 if ac_fn_cxx_try_run "$LINENO"; then :
9624 ac_cv_c_bigendian=no
9625 else
9626 ac_cv_c_bigendian=yes
9627 fi
9628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9629 conftest.$ac_objext conftest.beam conftest.$ac_ext
9630 fi
9631
9632 fi
9633 fi
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9635 $as_echo "$ac_cv_c_bigendian" >&6; }
9636 case $ac_cv_c_bigendian in #(
9637 yes)
9638 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9639 ;; #(
9640 no)
9641 ;; #(
9642 universal)
9643
9644 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9645
9646 ;; #(
9647 *)
9648 as_fn_error $? "unknown endianness
9649 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9650 esac
9651
9652
9653 # ----------------------
9654 # Checks for C++ headers
9655 # ----------------------
9656
9657 ac_ext=cpp
9658 ac_cpp='$CXXCPP $CPPFLAGS'
9659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9663 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9664 if test -z "$CXXCPP"; then
9665 if ${ac_cv_prog_CXXCPP+:} false; then :
9666 $as_echo_n "(cached) " >&6
9667 else
9668 # Double quotes because CXXCPP needs to be expanded
9669 for CXXCPP in "$CXX -E" "/lib/cpp"
9670 do
9671 ac_preproc_ok=false
9672 for ac_cxx_preproc_warn_flag in '' yes
9673 do
9674 # Use a header file that comes with gcc, so configuring glibc
9675 # with a fresh cross-compiler works.
9676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9677 # <limits.h> exists even on freestanding compilers.
9678 # On the NeXT, cc -E runs the code through the compiler's parser,
9679 # not just through cpp. "Syntax error" is here to catch this case.
9680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681 /* end confdefs.h. */
9682 #ifdef __STDC__
9683 # include <limits.h>
9684 #else
9685 # include <assert.h>
9686 #endif
9687 Syntax error
9688 _ACEOF
9689 if ac_fn_cxx_try_cpp "$LINENO"; then :
9690
9691 else
9692 # Broken: fails on valid input.
9693 continue
9694 fi
9695 rm -f conftest.err conftest.i conftest.$ac_ext
9696
9697 # OK, works on sane cases. Now check whether nonexistent headers
9698 # can be detected and how.
9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9701 #include <ac_nonexistent.h>
9702 _ACEOF
9703 if ac_fn_cxx_try_cpp "$LINENO"; then :
9704 # Broken: success on invalid input.
9705 continue
9706 else
9707 # Passes both tests.
9708 ac_preproc_ok=:
9709 break
9710 fi
9711 rm -f conftest.err conftest.i conftest.$ac_ext
9712
9713 done
9714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9715 rm -f conftest.i conftest.err conftest.$ac_ext
9716 if $ac_preproc_ok; then :
9717 break
9718 fi
9719
9720 done
9721 ac_cv_prog_CXXCPP=$CXXCPP
9722
9723 fi
9724 CXXCPP=$ac_cv_prog_CXXCPP
9725 else
9726 ac_cv_prog_CXXCPP=$CXXCPP
9727 fi
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9729 $as_echo "$CXXCPP" >&6; }
9730 ac_preproc_ok=false
9731 for ac_cxx_preproc_warn_flag in '' yes
9732 do
9733 # Use a header file that comes with gcc, so configuring glibc
9734 # with a fresh cross-compiler works.
9735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9736 # <limits.h> exists even on freestanding compilers.
9737 # On the NeXT, cc -E runs the code through the compiler's parser,
9738 # not just through cpp. "Syntax error" is here to catch this case.
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9741 #ifdef __STDC__
9742 # include <limits.h>
9743 #else
9744 # include <assert.h>
9745 #endif
9746 Syntax error
9747 _ACEOF
9748 if ac_fn_cxx_try_cpp "$LINENO"; then :
9749
9750 else
9751 # Broken: fails on valid input.
9752 continue
9753 fi
9754 rm -f conftest.err conftest.i conftest.$ac_ext
9755
9756 # OK, works on sane cases. Now check whether nonexistent headers
9757 # can be detected and how.
9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9760 #include <ac_nonexistent.h>
9761 _ACEOF
9762 if ac_fn_cxx_try_cpp "$LINENO"; then :
9763 # Broken: success on invalid input.
9764 continue
9765 else
9766 # Passes both tests.
9767 ac_preproc_ok=:
9768 break
9769 fi
9770 rm -f conftest.err conftest.i conftest.$ac_ext
9771
9772 done
9773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9774 rm -f conftest.i conftest.err conftest.$ac_ext
9775 if $ac_preproc_ok; then :
9776
9777 else
9778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9781 See \`config.log' for more details" >&5
9782 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9783 See \`config.log' for more details" >&2;}; }
9784 fi
9785
9786 ac_ext=cpp
9787 ac_cpp='$CXXCPP $CPPFLAGS'
9788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9791
9792
9793 for ac_header in unordered_map
9794 do :
9795 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9796 if test "x$ac_cv_header_unordered_map" = xyes; then :
9797 cat >>confdefs.h <<_ACEOF
9798 #define HAVE_UNORDERED_MAP 1
9799 _ACEOF
9800
9801 fi
9802 done
9803
9804 for ac_header in tr1/unordered_map
9805 do :
9806 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9807 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9808 cat >>confdefs.h <<_ACEOF
9809 #define HAVE_TR1_UNORDERED_MAP 1
9810 _ACEOF
9811
9812 fi
9813 done
9814
9815 for ac_header in ext/hash_map
9816 do :
9817 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9818 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9819 cat >>confdefs.h <<_ACEOF
9820 #define HAVE_EXT_HASH_MAP 1
9821 _ACEOF
9822
9823 fi
9824 done
9825
9826
9827 # --------
9828 # Dependency checking.
9829 # --------
9830
9831 rm -rf .tst 2>/dev/null
9832 mkdir .tst 2>/dev/null
9833 if test -d .tst; then
9834 am__leading_dot=.
9835 else
9836 am__leading_dot=_
9837 fi
9838 rmdir .tst 2>/dev/null
9839
9840 DEPDIR="${am__leading_dot}deps"
9841
9842 ac_config_commands="$ac_config_commands depdir"
9843
9844
9845 ac_config_commands="$ac_config_commands gccdepdir"
9846
9847
9848 depcc="$CXX" am_compiler_list=
9849
9850 am_depcomp=$ac_aux_dir/depcomp
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9852 $as_echo_n "checking dependency style of $depcc... " >&6; }
9853 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9854 $as_echo_n "(cached) " >&6
9855 else
9856 if test -f "$am_depcomp"; then
9857 # We make a subdir and do the tests there. Otherwise we can end up
9858 # making bogus files that we don't know about and never remove. For
9859 # instance it was reported that on HP-UX the gcc test will end up
9860 # making a dummy file named `D' -- because `-MD' means `put the output
9861 # in D'.
9862 mkdir conftest.dir
9863 # Copy depcomp to subdir because otherwise we won't find it if we're
9864 # using a relative directory.
9865 cp "$am_depcomp" conftest.dir
9866 cd conftest.dir
9867 # We will build objects and dependencies in a subdirectory because
9868 # it helps to detect inapplicable dependency modes. For instance
9869 # both Tru64's cc and ICC support -MD to output dependencies as a
9870 # side effect of compilation, but ICC will put the dependencies in
9871 # the current directory while Tru64 will put them in the object
9872 # directory.
9873 mkdir sub
9874
9875 am_cv_CXX_dependencies_compiler_type=none
9876 if test "$am_compiler_list" = ""; then
9877 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9878 fi
9879 for depmode in $am_compiler_list; do
9880 if test $depmode = none; then break; fi
9881
9882 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9883 # Setup a source with many dependencies, because some compilers
9884 # like to wrap large dependency lists on column 80 (with \), and
9885 # we should not choose a depcomp mode which is confused by this.
9886 #
9887 # We need to recreate these files for each test, as the compiler may
9888 # overwrite some of them when testing with obscure command lines.
9889 # This happens at least with the AIX C compiler.
9890 : > sub/conftest.c
9891 for i in 1 2 3 4 5 6; do
9892 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9893 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9894 # Solaris 8's {/usr,}/bin/sh.
9895 touch sub/conftst$i.h
9896 done
9897 echo "include sub/conftest.Po" > confmf
9898
9899 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9900 # mode. It turns out that the SunPro C++ compiler does not properly
9901 # handle `-M -o', and we need to detect this.
9902 depcmd="depmode=$depmode \
9903 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9904 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9905 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9906 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9907 if env $depcmd > conftest.err 2>&1 &&
9908 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9909 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9910 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9911 # icc doesn't choke on unknown options, it will just issue warnings
9912 # or remarks (even with -Werror). So we grep stderr for any message
9913 # that says an option was ignored or not supported.
9914 # When given -MP, icc 7.0 and 7.1 complain thusly:
9915 # icc: Command line warning: ignoring option '-M'; no argument required
9916 # The diagnosis changed in icc 8.0:
9917 # icc: Command line remark: option '-MP' not supported
9918 if (grep 'ignoring option' conftest.err ||
9919 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9920 am_cv_CXX_dependencies_compiler_type=$depmode
9921 $as_echo "$as_me:$LINENO: success" >&5
9922 break
9923 fi
9924 fi
9925 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9926 sed -e 's/^/| /' < conftest.err >&5
9927 done
9928
9929 cd ..
9930 rm -rf conftest.dir
9931 else
9932 am_cv_CXX_dependencies_compiler_type=none
9933 fi
9934
9935 fi
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9937 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9938 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9939 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9940 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9941
9942 fi
9943
9944
9945 # --------
9946 # UNSORTED
9947 # --------
9948
9949
9950 # These libraries may be used by collect2.
9951 # We may need a special search path to get them linked.
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9953 $as_echo_n "checking for collect2 libraries... " >&6; }
9954 if ${gcc_cv_collect2_libs+:} false; then :
9955 $as_echo_n "(cached) " >&6
9956 else
9957 save_LIBS="$LIBS"
9958 for libs in '' -lld -lmld \
9959 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9960 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9961 do
9962 LIBS="$libs"
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9965
9966 /* Override any GCC internal prototype to avoid an error.
9967 Use char because int might match the return type of a GCC
9968 builtin and then its argument prototype would still apply. */
9969 #ifdef __cplusplus
9970 extern "C"
9971 #endif
9972 char ldopen ();
9973 int
9974 main ()
9975 {
9976 return ldopen ();
9977 ;
9978 return 0;
9979 }
9980 _ACEOF
9981 if ac_fn_cxx_try_link "$LINENO"; then :
9982 gcc_cv_collect2_libs="$libs"; break
9983 fi
9984 rm -f core conftest.err conftest.$ac_objext \
9985 conftest$ac_exeext conftest.$ac_ext
9986 done
9987 LIBS="$save_LIBS"
9988 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9989 fi
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9991 $as_echo "$gcc_cv_collect2_libs" >&6; }
9992 case $gcc_cv_collect2_libs in
9993 "none required") ;;
9994 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9995 esac
9996
9997
9998 # When building Ada code on Alpha, we need exc_resume which is usually in
9999 # -lexc. So test for it.
10000 save_LIBS="$LIBS"
10001 LIBS=
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10003 $as_echo_n "checking for library containing exc_resume... " >&6; }
10004 if ${ac_cv_search_exc_resume+:} false; then :
10005 $as_echo_n "(cached) " >&6
10006 else
10007 ac_func_search_save_LIBS=$LIBS
10008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h. */
10010
10011 /* Override any GCC internal prototype to avoid an error.
10012 Use char because int might match the return type of a GCC
10013 builtin and then its argument prototype would still apply. */
10014 #ifdef __cplusplus
10015 extern "C"
10016 #endif
10017 char exc_resume ();
10018 int
10019 main ()
10020 {
10021 return exc_resume ();
10022 ;
10023 return 0;
10024 }
10025 _ACEOF
10026 for ac_lib in '' exc; do
10027 if test -z "$ac_lib"; then
10028 ac_res="none required"
10029 else
10030 ac_res=-l$ac_lib
10031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10032 fi
10033 if ac_fn_cxx_try_link "$LINENO"; then :
10034 ac_cv_search_exc_resume=$ac_res
10035 fi
10036 rm -f core conftest.err conftest.$ac_objext \
10037 conftest$ac_exeext
10038 if ${ac_cv_search_exc_resume+:} false; then :
10039 break
10040 fi
10041 done
10042 if ${ac_cv_search_exc_resume+:} false; then :
10043
10044 else
10045 ac_cv_search_exc_resume=no
10046 fi
10047 rm conftest.$ac_ext
10048 LIBS=$ac_func_search_save_LIBS
10049 fi
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10051 $as_echo "$ac_cv_search_exc_resume" >&6; }
10052 ac_res=$ac_cv_search_exc_resume
10053 if test "$ac_res" != no; then :
10054 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10055
10056 fi
10057
10058 GNAT_LIBEXC="$LIBS"
10059 LIBS="$save_LIBS"
10060
10061
10062 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10063 save_LIBS="$LIBS"
10064 LIBS=
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10066 $as_echo_n "checking for library containing kstat_open... " >&6; }
10067 if ${ac_cv_search_kstat_open+:} false; then :
10068 $as_echo_n "(cached) " >&6
10069 else
10070 ac_func_search_save_LIBS=$LIBS
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072 /* end confdefs.h. */
10073
10074 /* Override any GCC internal prototype to avoid an error.
10075 Use char because int might match the return type of a GCC
10076 builtin and then its argument prototype would still apply. */
10077 #ifdef __cplusplus
10078 extern "C"
10079 #endif
10080 char kstat_open ();
10081 int
10082 main ()
10083 {
10084 return kstat_open ();
10085 ;
10086 return 0;
10087 }
10088 _ACEOF
10089 for ac_lib in '' kstat; do
10090 if test -z "$ac_lib"; then
10091 ac_res="none required"
10092 else
10093 ac_res=-l$ac_lib
10094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10095 fi
10096 if ac_fn_cxx_try_link "$LINENO"; then :
10097 ac_cv_search_kstat_open=$ac_res
10098 fi
10099 rm -f core conftest.err conftest.$ac_objext \
10100 conftest$ac_exeext
10101 if ${ac_cv_search_kstat_open+:} false; then :
10102 break
10103 fi
10104 done
10105 if ${ac_cv_search_kstat_open+:} false; then :
10106
10107 else
10108 ac_cv_search_kstat_open=no
10109 fi
10110 rm conftest.$ac_ext
10111 LIBS=$ac_func_search_save_LIBS
10112 fi
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10114 $as_echo "$ac_cv_search_kstat_open" >&6; }
10115 ac_res=$ac_cv_search_kstat_open
10116 if test "$ac_res" != no; then :
10117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10118
10119 fi
10120
10121 EXTRA_GCC_LIBS="$LIBS"
10122 LIBS="$save_LIBS"
10123
10124
10125 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10126 # C++ needs those for libcody.
10127 save_LIBS="$LIBS"
10128 LIBS=
10129
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10131 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10132 if ${ac_cv_search_gethostbyname+:} false; then :
10133 $as_echo_n "(cached) " >&6
10134 else
10135 ac_func_search_save_LIBS=$LIBS
10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137 /* end confdefs.h. */
10138
10139 /* Override any GCC internal prototype to avoid an error.
10140 Use char because int might match the return type of a GCC
10141 builtin and then its argument prototype would still apply. */
10142 #ifdef __cplusplus
10143 extern "C"
10144 #endif
10145 char gethostbyname ();
10146 int
10147 main ()
10148 {
10149 return gethostbyname ();
10150 ;
10151 return 0;
10152 }
10153 _ACEOF
10154 for ac_lib in '' nsl; do
10155 if test -z "$ac_lib"; then
10156 ac_res="none required"
10157 else
10158 ac_res=-l$ac_lib
10159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10160 fi
10161 if ac_fn_cxx_try_link "$LINENO"; then :
10162 ac_cv_search_gethostbyname=$ac_res
10163 fi
10164 rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext
10166 if ${ac_cv_search_gethostbyname+:} false; then :
10167 break
10168 fi
10169 done
10170 if ${ac_cv_search_gethostbyname+:} false; then :
10171
10172 else
10173 ac_cv_search_gethostbyname=no
10174 fi
10175 rm conftest.$ac_ext
10176 LIBS=$ac_func_search_save_LIBS
10177 fi
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10179 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10180 ac_res=$ac_cv_search_gethostbyname
10181 if test "$ac_res" != no; then :
10182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10183
10184 fi
10185
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10187 $as_echo_n "checking for library containing socket... " >&6; }
10188 if ${ac_cv_search_socket+:} false; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 ac_func_search_save_LIBS=$LIBS
10192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10193 /* end confdefs.h. */
10194
10195 /* Override any GCC internal prototype to avoid an error.
10196 Use char because int might match the return type of a GCC
10197 builtin and then its argument prototype would still apply. */
10198 #ifdef __cplusplus
10199 extern "C"
10200 #endif
10201 char socket ();
10202 int
10203 main ()
10204 {
10205 return socket ();
10206 ;
10207 return 0;
10208 }
10209 _ACEOF
10210 for ac_lib in '' socket; do
10211 if test -z "$ac_lib"; then
10212 ac_res="none required"
10213 else
10214 ac_res=-l$ac_lib
10215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10216 fi
10217 if ac_fn_cxx_try_link "$LINENO"; then :
10218 ac_cv_search_socket=$ac_res
10219 fi
10220 rm -f core conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext
10222 if ${ac_cv_search_socket+:} false; then :
10223 break
10224 fi
10225 done
10226 if ${ac_cv_search_socket+:} false; then :
10227
10228 else
10229 ac_cv_search_socket=no
10230 fi
10231 rm conftest.$ac_ext
10232 LIBS=$ac_func_search_save_LIBS
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10235 $as_echo "$ac_cv_search_socket" >&6; }
10236 ac_res=$ac_cv_search_socket
10237 if test "$ac_res" != no; then :
10238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10239
10240 else
10241
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10243 $as_echo_n "checking for socket in -lsocket... " >&6; }
10244 if ${ac_cv_lib_socket_socket+:} false; then :
10245 $as_echo_n "(cached) " >&6
10246 else
10247 ac_check_lib_save_LIBS=$LIBS
10248 LIBS="-lsocket -lnsl $LIBS"
10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10251
10252 /* Override any GCC internal prototype to avoid an error.
10253 Use char because int might match the return type of a GCC
10254 builtin and then its argument prototype would still apply. */
10255 #ifdef __cplusplus
10256 extern "C"
10257 #endif
10258 char socket ();
10259 int
10260 main ()
10261 {
10262 return socket ();
10263 ;
10264 return 0;
10265 }
10266 _ACEOF
10267 if ac_fn_cxx_try_link "$LINENO"; then :
10268 ac_cv_lib_socket_socket=yes
10269 else
10270 ac_cv_lib_socket_socket=no
10271 fi
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_lib_save_LIBS
10275 fi
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10277 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10278 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10279 LIBS="-lsocket -lnsl $LIBS"
10280 fi
10281
10282 fi
10283
10284
10285 NETLIBS="$LIBS"
10286 LIBS="$save_LIBS"
10287
10288
10289 # Some systems put ldexp and frexp in libm instead of libc; assume
10290 # they're both in the same place. jcf-dump needs them.
10291 save_LIBS="$LIBS"
10292 LIBS=
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10294 $as_echo_n "checking for library containing ldexp... " >&6; }
10295 if ${ac_cv_search_ldexp+:} false; then :
10296 $as_echo_n "(cached) " >&6
10297 else
10298 ac_func_search_save_LIBS=$LIBS
10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h. */
10301
10302 /* Override any GCC internal prototype to avoid an error.
10303 Use char because int might match the return type of a GCC
10304 builtin and then its argument prototype would still apply. */
10305 #ifdef __cplusplus
10306 extern "C"
10307 #endif
10308 char ldexp ();
10309 int
10310 main ()
10311 {
10312 return ldexp ();
10313 ;
10314 return 0;
10315 }
10316 _ACEOF
10317 for ac_lib in '' m; do
10318 if test -z "$ac_lib"; then
10319 ac_res="none required"
10320 else
10321 ac_res=-l$ac_lib
10322 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10323 fi
10324 if ac_fn_cxx_try_link "$LINENO"; then :
10325 ac_cv_search_ldexp=$ac_res
10326 fi
10327 rm -f core conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext
10329 if ${ac_cv_search_ldexp+:} false; then :
10330 break
10331 fi
10332 done
10333 if ${ac_cv_search_ldexp+:} false; then :
10334
10335 else
10336 ac_cv_search_ldexp=no
10337 fi
10338 rm conftest.$ac_ext
10339 LIBS=$ac_func_search_save_LIBS
10340 fi
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10342 $as_echo "$ac_cv_search_ldexp" >&6; }
10343 ac_res=$ac_cv_search_ldexp
10344 if test "$ac_res" != no; then :
10345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10346
10347 fi
10348
10349 LDEXP_LIB="$LIBS"
10350 LIBS="$save_LIBS"
10351
10352
10353 # Some systems need dlopen
10354 save_LIBS="$LIBS"
10355 LIBS=
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10357 $as_echo_n "checking for library containing dlopen... " >&6; }
10358 if ${ac_cv_search_dlopen+:} false; then :
10359 $as_echo_n "(cached) " >&6
10360 else
10361 ac_func_search_save_LIBS=$LIBS
10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h. */
10364
10365 /* Override any GCC internal prototype to avoid an error.
10366 Use char because int might match the return type of a GCC
10367 builtin and then its argument prototype would still apply. */
10368 #ifdef __cplusplus
10369 extern "C"
10370 #endif
10371 char dlopen ();
10372 int
10373 main ()
10374 {
10375 return dlopen ();
10376 ;
10377 return 0;
10378 }
10379 _ACEOF
10380 for ac_lib in '' dl; do
10381 if test -z "$ac_lib"; then
10382 ac_res="none required"
10383 else
10384 ac_res=-l$ac_lib
10385 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10386 fi
10387 if ac_fn_cxx_try_link "$LINENO"; then :
10388 ac_cv_search_dlopen=$ac_res
10389 fi
10390 rm -f core conftest.err conftest.$ac_objext \
10391 conftest$ac_exeext
10392 if ${ac_cv_search_dlopen+:} false; then :
10393 break
10394 fi
10395 done
10396 if ${ac_cv_search_dlopen+:} false; then :
10397
10398 else
10399 ac_cv_search_dlopen=no
10400 fi
10401 rm conftest.$ac_ext
10402 LIBS=$ac_func_search_save_LIBS
10403 fi
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10405 $as_echo "$ac_cv_search_dlopen" >&6; }
10406 ac_res=$ac_cv_search_dlopen
10407 if test "$ac_res" != no; then :
10408 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10409
10410 fi
10411
10412 DL_LIB="$LIBS"
10413 LIBS="$save_LIBS"
10414
10415
10416 # Use <inttypes.h> only if it exists,
10417 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10418 # PRId64
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10420 $as_echo_n "checking for inttypes.h... " >&6; }
10421 if ${gcc_cv_header_inttypes_h+:} false; then :
10422 $as_echo_n "(cached) " >&6
10423 else
10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10426 #define __STDC_FORMAT_MACROS
10427 #include <sys/types.h>
10428 #include <inttypes.h>
10429 int
10430 main ()
10431 {
10432 intmax_t i = -1;
10433 #ifndef PRId64
10434 choke me
10435 #endif
10436 ;
10437 return 0;
10438 }
10439 _ACEOF
10440 if ac_fn_cxx_try_compile "$LINENO"; then :
10441 gcc_cv_header_inttypes_h=yes
10442 else
10443 gcc_cv_header_inttypes_h=no
10444 fi
10445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10446 fi
10447
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10449 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10450 if test $gcc_cv_header_inttypes_h = yes; then
10451
10452 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10453
10454 fi
10455
10456 # Look for the ZSTD package.
10457 ZSTD_INCLUDE=
10458 ZSTD_LIB=
10459
10460
10461 ZSTD_CPPFLAGS=
10462 ZSTD_LDFLAGS=
10463
10464
10465
10466 # Check whether --with-zstd was given.
10467 if test "${with_zstd+set}" = set; then :
10468 withval=$with_zstd;
10469 fi
10470
10471
10472 # Check whether --with-zstd-include was given.
10473 if test "${with_zstd_include+set}" = set; then :
10474 withval=$with_zstd_include;
10475 fi
10476
10477
10478 # Check whether --with-zstd-lib was given.
10479 if test "${with_zstd_lib+set}" = set; then :
10480 withval=$with_zstd_lib;
10481 fi
10482
10483 case "x$with_zstd" in
10484 x) ;;
10485 xno)
10486 ZSTD_INCLUDE=
10487 ZSTD_LIB=
10488 ;;
10489 *) ZSTD_INCLUDE=$with_zstd/include
10490 ZSTD_LIB=$with_zstd/lib
10491 ;;
10492 esac
10493
10494 if test "x$with_zstd" != xno; then
10495 if test "x$with_zstd_include" != x; then
10496 ZSTD_INCLUDE=$with_zstd_include
10497 fi
10498 if test "x$with_zstd_lib" != x; then
10499 ZSTD_LIB=$with_zstd_lib
10500 fi
10501 if test "x$ZSTD_INCLUDE" != x \
10502 && test "x$ZSTD_INCLUDE" != xno; then
10503 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10504 fi
10505 if test "x$ZSTD_LIB" != x \
10506 && test "x$ZSTD_LIB" != xno; then
10507 ZSTD_LDFLAGS=-L$ZSTD_LIB
10508 fi
10509
10510 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10511 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10512
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10514 $as_echo_n "checking for zstd.h... " >&6; }
10515 if ${gcc_cv_header_zstd_h+:} false; then :
10516 $as_echo_n "(cached) " >&6
10517 else
10518 # We require version 1.3.0 or later. This is the first version that has
10519 # ZSTD_getFrameContentSize.
10520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10521 /* end confdefs.h. */
10522 #include <zstd.h>
10523 #if ZSTD_VERSION_NUMBER < 10300
10524 #error "need zstd 1.3.0 or better"
10525 #endif
10526 int
10527 main ()
10528 {
10529
10530 ;
10531 return 0;
10532 }
10533 _ACEOF
10534 if ac_fn_cxx_try_compile "$LINENO"; then :
10535 gcc_cv_header_zstd_h=yes
10536 else
10537 gcc_cv_header_zstd_h=no
10538 fi
10539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10540 fi
10541
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10543 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10544 if test $gcc_cv_header_zstd_h = yes; then
10545
10546 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10547
10548 elif test "x$with_zstd" != x; then
10549 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10550 fi
10551
10552 # LTO can use zstd compression algorithm
10553 save_LIBS="$LIBS"
10554 LIBS=
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10556 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10557 if ${ac_cv_search_ZSTD_compress+:} false; then :
10558 $as_echo_n "(cached) " >&6
10559 else
10560 ac_func_search_save_LIBS=$LIBS
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563
10564 /* Override any GCC internal prototype to avoid an error.
10565 Use char because int might match the return type of a GCC
10566 builtin and then its argument prototype would still apply. */
10567 #ifdef __cplusplus
10568 extern "C"
10569 #endif
10570 char ZSTD_compress ();
10571 int
10572 main ()
10573 {
10574 return ZSTD_compress ();
10575 ;
10576 return 0;
10577 }
10578 _ACEOF
10579 for ac_lib in '' zstd; do
10580 if test -z "$ac_lib"; then
10581 ac_res="none required"
10582 else
10583 ac_res=-l$ac_lib
10584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10585 fi
10586 if ac_fn_cxx_try_link "$LINENO"; then :
10587 ac_cv_search_ZSTD_compress=$ac_res
10588 fi
10589 rm -f core conftest.err conftest.$ac_objext \
10590 conftest$ac_exeext
10591 if ${ac_cv_search_ZSTD_compress+:} false; then :
10592 break
10593 fi
10594 done
10595 if ${ac_cv_search_ZSTD_compress+:} false; then :
10596
10597 else
10598 ac_cv_search_ZSTD_compress=no
10599 fi
10600 rm conftest.$ac_ext
10601 LIBS=$ac_func_search_save_LIBS
10602 fi
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10604 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10605 ac_res=$ac_cv_search_ZSTD_compress
10606 if test "$ac_res" != no; then :
10607 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10608
10609 fi
10610
10611 ZSTD_LIB="$LIBS"
10612 LIBS="$save_LIBS"
10613
10614 fi
10615
10616
10617
10618 for ac_func in times clock kill getrlimit setrlimit atoq \
10619 popen sysconf strsignal getrusage nl_langinfo \
10620 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10621 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
10622 do :
10623 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10624 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10625 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10626 cat >>confdefs.h <<_ACEOF
10627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10628 _ACEOF
10629
10630 fi
10631 done
10632
10633
10634 if test x$ac_cv_func_mbstowcs = xyes; then
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10636 $as_echo_n "checking whether mbstowcs works... " >&6; }
10637 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10638 $as_echo_n "(cached) " >&6
10639 else
10640 if test "$cross_compiling" = yes; then :
10641 gcc_cv_func_mbstowcs_works=yes
10642 else
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h. */
10645 #include <stdlib.h>
10646 int main()
10647 {
10648 mbstowcs(0, "", 0);
10649 return 0;
10650 }
10651 _ACEOF
10652 if ac_fn_cxx_try_run "$LINENO"; then :
10653 gcc_cv_func_mbstowcs_works=yes
10654 else
10655 gcc_cv_func_mbstowcs_works=no
10656 fi
10657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10658 conftest.$ac_objext conftest.beam conftest.$ac_ext
10659 fi
10660
10661 fi
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10663 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10664 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10665
10666 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10667
10668 fi
10669 fi
10670
10671 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10672 if test "x$ac_cv_type_ssize_t" = xyes; then :
10673
10674 else
10675
10676 cat >>confdefs.h <<_ACEOF
10677 #define ssize_t int
10678 _ACEOF
10679
10680 fi
10681
10682 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10683 if test "x$ac_cv_type_caddr_t" = xyes; then :
10684
10685 else
10686
10687 cat >>confdefs.h <<_ACEOF
10688 #define caddr_t char *
10689 _ACEOF
10690
10691 fi
10692
10693 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10694 "
10695 if test "x$ac_cv_type_sighander_t" = xyes; then :
10696
10697 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10698
10699 fi
10700
10701
10702
10703 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10704 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10705 gcc_header_sys_mman_h=yes
10706 else
10707 gcc_header_sys_mman_h=no
10708 fi
10709
10710 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10711 if test "x$ac_cv_func_mmap" = xyes; then :
10712 gcc_func_mmap=yes
10713 else
10714 gcc_func_mmap=no
10715 fi
10716
10717 if test "$gcc_header_sys_mman_h" != yes \
10718 || test "$gcc_func_mmap" != yes; then
10719 gcc_cv_func_mmap_file=no
10720 gcc_cv_func_mmap_dev_zero=no
10721 gcc_cv_func_mmap_anon=no
10722 else
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10724 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10725 if ${gcc_cv_func_mmap_file+:} false; then :
10726 $as_echo_n "(cached) " >&6
10727 else
10728 # Add a system to this blacklist if
10729 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10730 # memory area containing the same data that you'd get if you applied
10731 # read() to the same fd. The only system known to have a problem here
10732 # is VMS, where text files have record structure.
10733 case "$host_os" in
10734 *vms* | ultrix*)
10735 gcc_cv_func_mmap_file=no ;;
10736 *)
10737 gcc_cv_func_mmap_file=yes;;
10738 esac
10739 fi
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10741 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10743 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10744 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10745 $as_echo_n "(cached) " >&6
10746 else
10747 # Add a system to this blacklist if it has mmap() but /dev/zero
10748 # does not exist, or if mmapping /dev/zero does not give anonymous
10749 # zeroed pages with both the following properties:
10750 # 1. If you map N consecutive pages in with one call, and then
10751 # unmap any subset of those pages, the pages that were not
10752 # explicitly unmapped remain accessible.
10753 # 2. If you map two adjacent blocks of memory and then unmap them
10754 # both at once, they must both go away.
10755 # Systems known to be in this category are Windows (all variants),
10756 # VMS, and Darwin.
10757 case "$host_os" in
10758 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10759 gcc_cv_func_mmap_dev_zero=no ;;
10760 *)
10761 gcc_cv_func_mmap_dev_zero=yes;;
10762 esac
10763 fi
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10765 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10766
10767 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10769 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10770 if ${gcc_cv_decl_map_anon+:} false; then :
10771 $as_echo_n "(cached) " >&6
10772 else
10773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h. */
10775 #include <sys/types.h>
10776 #include <sys/mman.h>
10777 #include <unistd.h>
10778
10779 #ifndef MAP_ANONYMOUS
10780 #define MAP_ANONYMOUS MAP_ANON
10781 #endif
10782
10783 int
10784 main ()
10785 {
10786 int n = MAP_ANONYMOUS;
10787 ;
10788 return 0;
10789 }
10790 _ACEOF
10791 if ac_fn_cxx_try_compile "$LINENO"; then :
10792 gcc_cv_decl_map_anon=yes
10793 else
10794 gcc_cv_decl_map_anon=no
10795 fi
10796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10797 fi
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10799 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10800
10801 if test $gcc_cv_decl_map_anon = no; then
10802 gcc_cv_func_mmap_anon=no
10803 else
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10805 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10806 if ${gcc_cv_func_mmap_anon+:} false; then :
10807 $as_echo_n "(cached) " >&6
10808 else
10809 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10810 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10811 # doesn't give anonymous zeroed pages with the same properties listed
10812 # above for use of /dev/zero.
10813 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10814 case "$host_os" in
10815 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10816 gcc_cv_func_mmap_anon=no ;;
10817 *)
10818 gcc_cv_func_mmap_anon=yes;;
10819 esac
10820 fi
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10822 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10823 fi
10824 fi
10825
10826 if test $gcc_cv_func_mmap_file = yes; then
10827
10828 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10829
10830 fi
10831 if test $gcc_cv_func_mmap_dev_zero = yes; then
10832
10833 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10834
10835 fi
10836 if test $gcc_cv_func_mmap_anon = yes; then
10837
10838 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10839
10840 fi
10841
10842
10843 case "${host}" in
10844 *-*-*vms*)
10845 # Under VMS, vfork works very differently than on Unix. The standard test
10846 # won't work, and it isn't easily adaptable. It makes more sense to
10847 # just force it.
10848 ac_cv_func_vfork_works=yes
10849 ;;
10850 esac
10851 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10852 if test "x$ac_cv_type_pid_t" = xyes; then :
10853
10854 else
10855
10856 cat >>confdefs.h <<_ACEOF
10857 #define pid_t int
10858 _ACEOF
10859
10860 fi
10861
10862 for ac_header in vfork.h
10863 do :
10864 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10865 if test "x$ac_cv_header_vfork_h" = xyes; then :
10866 cat >>confdefs.h <<_ACEOF
10867 #define HAVE_VFORK_H 1
10868 _ACEOF
10869
10870 fi
10871 done
10872
10873 for ac_func in fork vfork
10874 do :
10875 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10876 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10877 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10878 cat >>confdefs.h <<_ACEOF
10879 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10880 _ACEOF
10881
10882 fi
10883 done
10884
10885 if test "x$ac_cv_func_fork" = xyes; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10887 $as_echo_n "checking for working fork... " >&6; }
10888 if ${ac_cv_func_fork_works+:} false; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 if test "$cross_compiling" = yes; then :
10892 ac_cv_func_fork_works=cross
10893 else
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10896 $ac_includes_default
10897 int
10898 main ()
10899 {
10900
10901 /* By Ruediger Kuhlmann. */
10902 return fork () < 0;
10903
10904 ;
10905 return 0;
10906 }
10907 _ACEOF
10908 if ac_fn_cxx_try_run "$LINENO"; then :
10909 ac_cv_func_fork_works=yes
10910 else
10911 ac_cv_func_fork_works=no
10912 fi
10913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10914 conftest.$ac_objext conftest.beam conftest.$ac_ext
10915 fi
10916
10917 fi
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10919 $as_echo "$ac_cv_func_fork_works" >&6; }
10920
10921 else
10922 ac_cv_func_fork_works=$ac_cv_func_fork
10923 fi
10924 if test "x$ac_cv_func_fork_works" = xcross; then
10925 case $host in
10926 *-*-amigaos* | *-*-msdosdjgpp*)
10927 # Override, as these systems have only a dummy fork() stub
10928 ac_cv_func_fork_works=no
10929 ;;
10930 *)
10931 ac_cv_func_fork_works=yes
10932 ;;
10933 esac
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10935 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10936 fi
10937 ac_cv_func_vfork_works=$ac_cv_func_vfork
10938 if test "x$ac_cv_func_vfork" = xyes; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10940 $as_echo_n "checking for working vfork... " >&6; }
10941 if ${ac_cv_func_vfork_works+:} false; then :
10942 $as_echo_n "(cached) " >&6
10943 else
10944 if test "$cross_compiling" = yes; then :
10945 ac_cv_func_vfork_works=cross
10946 else
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10949 /* Thanks to Paul Eggert for this test. */
10950 $ac_includes_default
10951 #include <sys/wait.h>
10952 #ifdef HAVE_VFORK_H
10953 # include <vfork.h>
10954 #endif
10955 /* On some sparc systems, changes by the child to local and incoming
10956 argument registers are propagated back to the parent. The compiler
10957 is told about this with #include <vfork.h>, but some compilers
10958 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10959 static variable whose address is put into a register that is
10960 clobbered by the vfork. */
10961 static void
10962 #ifdef __cplusplus
10963 sparc_address_test (int arg)
10964 # else
10965 sparc_address_test (arg) int arg;
10966 #endif
10967 {
10968 static pid_t child;
10969 if (!child) {
10970 child = vfork ();
10971 if (child < 0) {
10972 perror ("vfork");
10973 _exit(2);
10974 }
10975 if (!child) {
10976 arg = getpid();
10977 write(-1, "", 0);
10978 _exit (arg);
10979 }
10980 }
10981 }
10982
10983 int
10984 main ()
10985 {
10986 pid_t parent = getpid ();
10987 pid_t child;
10988
10989 sparc_address_test (0);
10990
10991 child = vfork ();
10992
10993 if (child == 0) {
10994 /* Here is another test for sparc vfork register problems. This
10995 test uses lots of local variables, at least as many local
10996 variables as main has allocated so far including compiler
10997 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10998 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10999 reuse the register of parent for one of the local variables,
11000 since it will think that parent can't possibly be used any more
11001 in this routine. Assigning to the local variable will thus
11002 munge parent in the parent process. */
11003 pid_t
11004 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11005 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11006 /* Convince the compiler that p..p7 are live; otherwise, it might
11007 use the same hardware register for all 8 local variables. */
11008 if (p != p1 || p != p2 || p != p3 || p != p4
11009 || p != p5 || p != p6 || p != p7)
11010 _exit(1);
11011
11012 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11013 from child file descriptors. If the child closes a descriptor
11014 before it execs or exits, this munges the parent's descriptor
11015 as well. Test for this by closing stdout in the child. */
11016 _exit(close(fileno(stdout)) != 0);
11017 } else {
11018 int status;
11019 struct stat st;
11020
11021 while (wait(&status) != child)
11022 ;
11023 return (
11024 /* Was there some problem with vforking? */
11025 child < 0
11026
11027 /* Did the child fail? (This shouldn't happen.) */
11028 || status
11029
11030 /* Did the vfork/compiler bug occur? */
11031 || parent != getpid()
11032
11033 /* Did the file descriptor bug occur? */
11034 || fstat(fileno(stdout), &st) != 0
11035 );
11036 }
11037 }
11038 _ACEOF
11039 if ac_fn_cxx_try_run "$LINENO"; then :
11040 ac_cv_func_vfork_works=yes
11041 else
11042 ac_cv_func_vfork_works=no
11043 fi
11044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11045 conftest.$ac_objext conftest.beam conftest.$ac_ext
11046 fi
11047
11048 fi
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11050 $as_echo "$ac_cv_func_vfork_works" >&6; }
11051
11052 fi;
11053 if test "x$ac_cv_func_fork_works" = xcross; then
11054 ac_cv_func_vfork_works=$ac_cv_func_vfork
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11056 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11057 fi
11058
11059 if test "x$ac_cv_func_vfork_works" = xyes; then
11060
11061 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11062
11063 else
11064
11065 $as_echo "#define vfork fork" >>confdefs.h
11066
11067 fi
11068 if test "x$ac_cv_func_fork_works" = xyes; then
11069
11070 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11071
11072 fi
11073
11074
11075
11076 if test "X$prefix" = "XNONE"; then
11077 acl_final_prefix="$ac_default_prefix"
11078 else
11079 acl_final_prefix="$prefix"
11080 fi
11081 if test "X$exec_prefix" = "XNONE"; then
11082 acl_final_exec_prefix='${prefix}'
11083 else
11084 acl_final_exec_prefix="$exec_prefix"
11085 fi
11086 acl_save_prefix="$prefix"
11087 prefix="$acl_final_prefix"
11088 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11089 prefix="$acl_save_prefix"
11090
11091
11092 # Check whether --with-gnu-ld was given.
11093 if test "${with_gnu_ld+set}" = set; then :
11094 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11095 else
11096 with_gnu_ld=no
11097 fi
11098
11099 # Prepare PATH_SEPARATOR.
11100 # The user is always right.
11101 if test "${PATH_SEPARATOR+set}" != set; then
11102 echo "#! /bin/sh" >conf$$.sh
11103 echo "exit 0" >>conf$$.sh
11104 chmod +x conf$$.sh
11105 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11106 PATH_SEPARATOR=';'
11107 else
11108 PATH_SEPARATOR=:
11109 fi
11110 rm -f conf$$.sh
11111 fi
11112 ac_prog=ld
11113 if test "$GCC" = yes; then
11114 # Check if gcc -print-prog-name=ld gives a path.
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11116 $as_echo_n "checking for ld used by GCC... " >&6; }
11117 case $host in
11118 *-*-mingw*)
11119 # gcc leaves a trailing carriage return which upsets mingw
11120 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11121 *)
11122 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11123 esac
11124 case $ac_prog in
11125 # Accept absolute paths.
11126 [\\/]* | [A-Za-z]:[\\/]*)
11127 re_direlt='/[^/][^/]*/\.\./'
11128 # Canonicalize the path of ld
11129 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11130 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11131 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11132 done
11133 test -z "$LD" && LD="$ac_prog"
11134 ;;
11135 "")
11136 # If it fails, then pretend we aren't using GCC.
11137 ac_prog=ld
11138 ;;
11139 *)
11140 # If it is relative, then search for the first ld in PATH.
11141 with_gnu_ld=unknown
11142 ;;
11143 esac
11144 elif test "$with_gnu_ld" = yes; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11146 $as_echo_n "checking for GNU ld... " >&6; }
11147 else
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11149 $as_echo_n "checking for non-GNU ld... " >&6; }
11150 fi
11151 if ${acl_cv_path_LD+:} false; then :
11152 $as_echo_n "(cached) " >&6
11153 else
11154 if test -z "$LD"; then
11155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11156 for ac_dir in $PATH; do
11157 test -z "$ac_dir" && ac_dir=.
11158 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11159 acl_cv_path_LD="$ac_dir/$ac_prog"
11160 # Check to see if the program is GNU ld. I'd rather use --version,
11161 # but apparently some GNU ld's only accept -v.
11162 # Break only if it was the GNU/non-GNU ld that we prefer.
11163 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11164 test "$with_gnu_ld" != no && break
11165 else
11166 test "$with_gnu_ld" != yes && break
11167 fi
11168 fi
11169 done
11170 IFS="$ac_save_ifs"
11171 else
11172 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11173 fi
11174 fi
11175
11176 LD="$acl_cv_path_LD"
11177 if test -n "$LD"; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11179 $as_echo "$LD" >&6; }
11180 else
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182 $as_echo "no" >&6; }
11183 fi
11184 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11186 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11187 if ${acl_cv_prog_gnu_ld+:} false; then :
11188 $as_echo_n "(cached) " >&6
11189 else
11190 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11191 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11192 acl_cv_prog_gnu_ld=yes
11193 else
11194 acl_cv_prog_gnu_ld=no
11195 fi
11196 fi
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11198 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11199 with_gnu_ld=$acl_cv_prog_gnu_ld
11200
11201
11202
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11204 $as_echo_n "checking for shared library run path origin... " >&6; }
11205 if ${acl_cv_rpath+:} false; then :
11206 $as_echo_n "(cached) " >&6
11207 else
11208
11209 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11210 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11211 . ./conftest.sh
11212 rm -f ./conftest.sh
11213 acl_cv_rpath=done
11214
11215 fi
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11217 $as_echo "$acl_cv_rpath" >&6; }
11218 wl="$acl_cv_wl"
11219 libext="$acl_cv_libext"
11220 shlibext="$acl_cv_shlibext"
11221 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11222 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11223 hardcode_direct="$acl_cv_hardcode_direct"
11224 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11225 # Check whether --enable-rpath was given.
11226 if test "${enable_rpath+set}" = set; then :
11227 enableval=$enable_rpath; :
11228 else
11229 enable_rpath=yes
11230 fi
11231
11232
11233
11234
11235
11236
11237
11238
11239 use_additional=yes
11240
11241 acl_save_prefix="$prefix"
11242 prefix="$acl_final_prefix"
11243 acl_save_exec_prefix="$exec_prefix"
11244 exec_prefix="$acl_final_exec_prefix"
11245
11246 eval additional_includedir=\"$includedir\"
11247 eval additional_libdir=\"$libdir\"
11248
11249 exec_prefix="$acl_save_exec_prefix"
11250 prefix="$acl_save_prefix"
11251
11252
11253 # Check whether --with-libiconv-prefix was given.
11254 if test "${with_libiconv_prefix+set}" = set; then :
11255 withval=$with_libiconv_prefix;
11256 if test "X$withval" = "Xno"; then
11257 use_additional=no
11258 else
11259 if test "X$withval" = "X"; then
11260
11261 acl_save_prefix="$prefix"
11262 prefix="$acl_final_prefix"
11263 acl_save_exec_prefix="$exec_prefix"
11264 exec_prefix="$acl_final_exec_prefix"
11265
11266 eval additional_includedir=\"$includedir\"
11267 eval additional_libdir=\"$libdir\"
11268
11269 exec_prefix="$acl_save_exec_prefix"
11270 prefix="$acl_save_prefix"
11271
11272 else
11273 additional_includedir="$withval/include"
11274 additional_libdir="$withval/lib"
11275 fi
11276 fi
11277
11278 fi
11279
11280
11281 # Check whether --with-libiconv-type was given.
11282 if test "${with_libiconv_type+set}" = set; then :
11283 withval=$with_libiconv_type; with_libiconv_type=$withval
11284 else
11285 with_libiconv_type=auto
11286 fi
11287
11288 lib_type=`eval echo \$with_libiconv_type`
11289
11290 LIBICONV=
11291 LTLIBICONV=
11292 INCICONV=
11293 rpathdirs=
11294 ltrpathdirs=
11295 names_already_handled=
11296 names_next_round='iconv '
11297 while test -n "$names_next_round"; do
11298 names_this_round="$names_next_round"
11299 names_next_round=
11300 for name in $names_this_round; do
11301 already_handled=
11302 for n in $names_already_handled; do
11303 if test "$n" = "$name"; then
11304 already_handled=yes
11305 break
11306 fi
11307 done
11308 if test -z "$already_handled"; then
11309 names_already_handled="$names_already_handled $name"
11310 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11311 eval value=\"\$HAVE_LIB$uppername\"
11312 if test -n "$value"; then
11313 if test "$value" = yes; then
11314 eval value=\"\$LIB$uppername\"
11315 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11316 eval value=\"\$LTLIB$uppername\"
11317 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11318 else
11319 :
11320 fi
11321 else
11322 found_dir=
11323 found_la=
11324 found_so=
11325 found_a=
11326 if test $use_additional = yes; then
11327 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11328 found_dir="$additional_libdir"
11329 found_so="$additional_libdir/lib$name.$shlibext"
11330 if test -f "$additional_libdir/lib$name.la"; then
11331 found_la="$additional_libdir/lib$name.la"
11332 fi
11333 elif test x$lib_type != xshared; then
11334 if test -f "$additional_libdir/lib$name.$libext"; then
11335 found_dir="$additional_libdir"
11336 found_a="$additional_libdir/lib$name.$libext"
11337 if test -f "$additional_libdir/lib$name.la"; then
11338 found_la="$additional_libdir/lib$name.la"
11339 fi
11340 fi
11341 fi
11342 fi
11343 if test "X$found_dir" = "X"; then
11344 for x in $LDFLAGS $LTLIBICONV; do
11345
11346 acl_save_prefix="$prefix"
11347 prefix="$acl_final_prefix"
11348 acl_save_exec_prefix="$exec_prefix"
11349 exec_prefix="$acl_final_exec_prefix"
11350 eval x=\"$x\"
11351 exec_prefix="$acl_save_exec_prefix"
11352 prefix="$acl_save_prefix"
11353
11354 case "$x" in
11355 -L*)
11356 dir=`echo "X$x" | sed -e 's/^X-L//'`
11357 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11358 found_dir="$dir"
11359 found_so="$dir/lib$name.$shlibext"
11360 if test -f "$dir/lib$name.la"; then
11361 found_la="$dir/lib$name.la"
11362 fi
11363 elif test x$lib_type != xshared; then
11364 if test -f "$dir/lib$name.$libext"; then
11365 found_dir="$dir"
11366 found_a="$dir/lib$name.$libext"
11367 if test -f "$dir/lib$name.la"; then
11368 found_la="$dir/lib$name.la"
11369 fi
11370 fi
11371 fi
11372 ;;
11373 esac
11374 if test "X$found_dir" != "X"; then
11375 break
11376 fi
11377 done
11378 fi
11379 if test "X$found_dir" != "X"; then
11380 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11381 if test "X$found_so" != "X"; then
11382 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11383 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11384 else
11385 haveit=
11386 for x in $ltrpathdirs; do
11387 if test "X$x" = "X$found_dir"; then
11388 haveit=yes
11389 break
11390 fi
11391 done
11392 if test -z "$haveit"; then
11393 ltrpathdirs="$ltrpathdirs $found_dir"
11394 fi
11395 if test "$hardcode_direct" = yes; then
11396 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11397 else
11398 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11399 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11400 haveit=
11401 for x in $rpathdirs; do
11402 if test "X$x" = "X$found_dir"; then
11403 haveit=yes
11404 break
11405 fi
11406 done
11407 if test -z "$haveit"; then
11408 rpathdirs="$rpathdirs $found_dir"
11409 fi
11410 else
11411 haveit=
11412 for x in $LDFLAGS $LIBICONV; do
11413
11414 acl_save_prefix="$prefix"
11415 prefix="$acl_final_prefix"
11416 acl_save_exec_prefix="$exec_prefix"
11417 exec_prefix="$acl_final_exec_prefix"
11418 eval x=\"$x\"
11419 exec_prefix="$acl_save_exec_prefix"
11420 prefix="$acl_save_prefix"
11421
11422 if test "X$x" = "X-L$found_dir"; then
11423 haveit=yes
11424 break
11425 fi
11426 done
11427 if test -z "$haveit"; then
11428 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11429 fi
11430 if test "$hardcode_minus_L" != no; then
11431 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11432 else
11433 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11434 fi
11435 fi
11436 fi
11437 fi
11438 else
11439 if test "X$found_a" != "X"; then
11440 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11441 else
11442 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11443 fi
11444 fi
11445 additional_includedir=
11446 case "$found_dir" in
11447 */lib | */lib/)
11448 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11449 additional_includedir="$basedir/include"
11450 ;;
11451 esac
11452 if test "X$additional_includedir" != "X"; then
11453 if test "X$additional_includedir" != "X/usr/include"; then
11454 haveit=
11455 if test "X$additional_includedir" = "X/usr/local/include"; then
11456 if test -n "$GCC"; then
11457 case $host_os in
11458 linux*) haveit=yes;;
11459 esac
11460 fi
11461 fi
11462 if test -z "$haveit"; then
11463 for x in $CPPFLAGS $INCICONV; do
11464
11465 acl_save_prefix="$prefix"
11466 prefix="$acl_final_prefix"
11467 acl_save_exec_prefix="$exec_prefix"
11468 exec_prefix="$acl_final_exec_prefix"
11469 eval x=\"$x\"
11470 exec_prefix="$acl_save_exec_prefix"
11471 prefix="$acl_save_prefix"
11472
11473 if test "X$x" = "X-I$additional_includedir"; then
11474 haveit=yes
11475 break
11476 fi
11477 done
11478 if test -z "$haveit"; then
11479 if test -d "$additional_includedir"; then
11480 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11481 fi
11482 fi
11483 fi
11484 fi
11485 fi
11486 if test -n "$found_la"; then
11487 save_libdir="$libdir"
11488 case "$found_la" in
11489 */* | *\\*) . "$found_la" ;;
11490 *) . "./$found_la" ;;
11491 esac
11492 libdir="$save_libdir"
11493 for dep in $dependency_libs; do
11494 case "$dep" in
11495 -L*)
11496 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11497 if test "X$additional_libdir" != "X/usr/lib"; then
11498 haveit=
11499 if test "X$additional_libdir" = "X/usr/local/lib"; then
11500 if test -n "$GCC"; then
11501 case $host_os in
11502 linux*) haveit=yes;;
11503 esac
11504 fi
11505 fi
11506 if test -z "$haveit"; then
11507 haveit=
11508 for x in $LDFLAGS $LIBICONV; do
11509
11510 acl_save_prefix="$prefix"
11511 prefix="$acl_final_prefix"
11512 acl_save_exec_prefix="$exec_prefix"
11513 exec_prefix="$acl_final_exec_prefix"
11514 eval x=\"$x\"
11515 exec_prefix="$acl_save_exec_prefix"
11516 prefix="$acl_save_prefix"
11517
11518 if test "X$x" = "X-L$additional_libdir"; then
11519 haveit=yes
11520 break
11521 fi
11522 done
11523 if test -z "$haveit"; then
11524 if test -d "$additional_libdir"; then
11525 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11526 fi
11527 fi
11528 haveit=
11529 for x in $LDFLAGS $LTLIBICONV; do
11530
11531 acl_save_prefix="$prefix"
11532 prefix="$acl_final_prefix"
11533 acl_save_exec_prefix="$exec_prefix"
11534 exec_prefix="$acl_final_exec_prefix"
11535 eval x=\"$x\"
11536 exec_prefix="$acl_save_exec_prefix"
11537 prefix="$acl_save_prefix"
11538
11539 if test "X$x" = "X-L$additional_libdir"; then
11540 haveit=yes
11541 break
11542 fi
11543 done
11544 if test -z "$haveit"; then
11545 if test -d "$additional_libdir"; then
11546 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11547 fi
11548 fi
11549 fi
11550 fi
11551 ;;
11552 -R*)
11553 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11554 if test "$enable_rpath" != no; then
11555 haveit=
11556 for x in $rpathdirs; do
11557 if test "X$x" = "X$dir"; then
11558 haveit=yes
11559 break
11560 fi
11561 done
11562 if test -z "$haveit"; then
11563 rpathdirs="$rpathdirs $dir"
11564 fi
11565 haveit=
11566 for x in $ltrpathdirs; do
11567 if test "X$x" = "X$dir"; then
11568 haveit=yes
11569 break
11570 fi
11571 done
11572 if test -z "$haveit"; then
11573 ltrpathdirs="$ltrpathdirs $dir"
11574 fi
11575 fi
11576 ;;
11577 -l*)
11578 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11579 ;;
11580 *.la)
11581 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11582 ;;
11583 *)
11584 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11585 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11586 ;;
11587 esac
11588 done
11589 fi
11590 else
11591 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11592 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11593 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11594 else
11595 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11596 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11597 fi
11598 fi
11599 fi
11600 fi
11601 done
11602 done
11603 if test "X$rpathdirs" != "X"; then
11604 if test -n "$hardcode_libdir_separator"; then
11605 alldirs=
11606 for found_dir in $rpathdirs; do
11607 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11608 done
11609 acl_save_libdir="$libdir"
11610 libdir="$alldirs"
11611 eval flag=\"$hardcode_libdir_flag_spec\"
11612 libdir="$acl_save_libdir"
11613 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11614 else
11615 for found_dir in $rpathdirs; do
11616 acl_save_libdir="$libdir"
11617 libdir="$found_dir"
11618 eval flag=\"$hardcode_libdir_flag_spec\"
11619 libdir="$acl_save_libdir"
11620 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11621 done
11622 fi
11623 fi
11624 if test "X$ltrpathdirs" != "X"; then
11625 for found_dir in $ltrpathdirs; do
11626 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11627 done
11628 fi
11629
11630
11631
11632
11633
11634
11635
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11637 $as_echo_n "checking for iconv... " >&6; }
11638 if ${am_cv_func_iconv+:} false; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641
11642 am_cv_func_iconv="no, consider installing GNU libiconv"
11643 am_cv_lib_iconv=no
11644 am_save_CPPFLAGS="$CPPFLAGS"
11645 CPPFLAGS="$CPPFLAGS $INCICONV"
11646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h. */
11648 #include <stdlib.h>
11649 #include <iconv.h>
11650 int
11651 main ()
11652 {
11653 iconv_t cd = iconv_open("","");
11654 iconv(cd,NULL,NULL,NULL,NULL);
11655 iconv_close(cd);
11656 ;
11657 return 0;
11658 }
11659 _ACEOF
11660 if ac_fn_cxx_try_link "$LINENO"; then :
11661 am_cv_func_iconv=yes
11662 fi
11663 rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
11665 CPPFLAGS="$am_save_CPPFLAGS"
11666
11667 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11668 for _libs in .libs _libs; do
11669 am_save_CPPFLAGS="$CPPFLAGS"
11670 am_save_LIBS="$LIBS"
11671 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11672 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h. */
11675 #include <stdlib.h>
11676 #include <iconv.h>
11677 int
11678 main ()
11679 {
11680 iconv_t cd = iconv_open("","");
11681 iconv(cd,NULL,NULL,NULL,NULL);
11682 iconv_close(cd);
11683 ;
11684 return 0;
11685 }
11686 _ACEOF
11687 if ac_fn_cxx_try_link "$LINENO"; then :
11688 INCICONV="-I../libiconv/include"
11689 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11690 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11691 am_cv_lib_iconv=yes
11692 am_cv_func_iconv=yes
11693 fi
11694 rm -f core conftest.err conftest.$ac_objext \
11695 conftest$ac_exeext conftest.$ac_ext
11696 CPPFLAGS="$am_save_CPPFLAGS"
11697 LIBS="$am_save_LIBS"
11698 if test "$am_cv_func_iconv" = "yes"; then
11699 break
11700 fi
11701 done
11702 fi
11703
11704 if test "$am_cv_func_iconv" != yes; then
11705 am_save_CPPFLAGS="$CPPFLAGS"
11706 am_save_LIBS="$LIBS"
11707 CPPFLAGS="$CPPFLAGS $INCICONV"
11708 LIBS="$LIBS $LIBICONV"
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11711 #include <stdlib.h>
11712 #include <iconv.h>
11713 int
11714 main ()
11715 {
11716 iconv_t cd = iconv_open("","");
11717 iconv(cd,NULL,NULL,NULL,NULL);
11718 iconv_close(cd);
11719 ;
11720 return 0;
11721 }
11722 _ACEOF
11723 if ac_fn_cxx_try_link "$LINENO"; then :
11724 am_cv_lib_iconv=yes
11725 am_cv_func_iconv=yes
11726 fi
11727 rm -f core conftest.err conftest.$ac_objext \
11728 conftest$ac_exeext conftest.$ac_ext
11729 CPPFLAGS="$am_save_CPPFLAGS"
11730 LIBS="$am_save_LIBS"
11731 fi
11732
11733 fi
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11735 $as_echo "$am_cv_func_iconv" >&6; }
11736 if test "$am_cv_func_iconv" = yes; then
11737
11738 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11739
11740 fi
11741 if test "$am_cv_lib_iconv" = yes; then
11742
11743 for element in $INCICONV; do
11744 haveit=
11745 for x in $CPPFLAGS; do
11746
11747 acl_save_prefix="$prefix"
11748 prefix="$acl_final_prefix"
11749 acl_save_exec_prefix="$exec_prefix"
11750 exec_prefix="$acl_final_exec_prefix"
11751 eval x=\"$x\"
11752 exec_prefix="$acl_save_exec_prefix"
11753 prefix="$acl_save_prefix"
11754
11755 if test "X$x" = "X$element"; then
11756 haveit=yes
11757 break
11758 fi
11759 done
11760 if test -z "$haveit"; then
11761 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11762 fi
11763 done
11764
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11766 $as_echo_n "checking how to link with libiconv... " >&6; }
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11768 $as_echo "$LIBICONV" >&6; }
11769 else
11770 LIBICONV=
11771 LTLIBICONV=
11772 fi
11773
11774
11775
11776 if test "$am_cv_func_iconv" = yes; then
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11778 $as_echo_n "checking for iconv declaration... " >&6; }
11779 if ${am_cv_proto_iconv+:} false; then :
11780 $as_echo_n "(cached) " >&6
11781 else
11782
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11785
11786 #include <stdlib.h>
11787 #include <iconv.h>
11788 extern
11789 #ifdef __cplusplus
11790 "C"
11791 #endif
11792 #if defined(__STDC__) || defined(__cplusplus)
11793 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11794 #else
11795 size_t iconv();
11796 #endif
11797
11798 int
11799 main ()
11800 {
11801
11802 ;
11803 return 0;
11804 }
11805 _ACEOF
11806 if ac_fn_cxx_try_compile "$LINENO"; then :
11807 am_cv_proto_iconv_arg1=""
11808 else
11809 am_cv_proto_iconv_arg1="const"
11810 fi
11811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11812 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);"
11813 fi
11814
11815 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11817 }$am_cv_proto_iconv" >&5
11818 $as_echo "${ac_t:-
11819 }$am_cv_proto_iconv" >&6; }
11820
11821 cat >>confdefs.h <<_ACEOF
11822 #define ICONV_CONST $am_cv_proto_iconv_arg1
11823 _ACEOF
11824
11825 fi
11826
11827
11828 # Until we have in-tree GNU iconv:
11829 LIBICONV_DEP=
11830 if test -f "$LTLIBICONV"; then
11831 LIBICONV_DEP=$LTLIBICONV
11832 fi
11833
11834
11835
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11837 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11838 if ${am_cv_val_LC_MESSAGES+:} false; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h. */
11843 #include <locale.h>
11844 int
11845 main ()
11846 {
11847 return LC_MESSAGES
11848 ;
11849 return 0;
11850 }
11851 _ACEOF
11852 if ac_fn_cxx_try_link "$LINENO"; then :
11853 am_cv_val_LC_MESSAGES=yes
11854 else
11855 am_cv_val_LC_MESSAGES=no
11856 fi
11857 rm -f core conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11859 fi
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11861 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11862 if test $am_cv_val_LC_MESSAGES = yes; then
11863
11864 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11865
11866 fi
11867
11868
11869
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11871 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11872 if ${am_cv_langinfo_codeset+:} false; then :
11873 $as_echo_n "(cached) " >&6
11874 else
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h. */
11877 #include <langinfo.h>
11878 int
11879 main ()
11880 {
11881 char* cs = nl_langinfo(CODESET);
11882 ;
11883 return 0;
11884 }
11885 _ACEOF
11886 if ac_fn_cxx_try_link "$LINENO"; then :
11887 am_cv_langinfo_codeset=yes
11888 else
11889 am_cv_langinfo_codeset=no
11890 fi
11891 rm -f core conftest.err conftest.$ac_objext \
11892 conftest$ac_exeext conftest.$ac_ext
11893
11894 fi
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11896 $as_echo "$am_cv_langinfo_codeset" >&6; }
11897 if test $am_cv_langinfo_codeset = yes; then
11898
11899 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11900
11901 fi
11902
11903
11904 # We will need to find libiberty.h and ansidecl.h
11905 saved_CFLAGS="$CFLAGS"
11906 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11907 saved_CXXFLAGS="$CXXFLAGS"
11908 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11909
11910 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11911 # normal autoconf function for these. But force definition of
11912 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11913 # basename handling in libiberty.h.
11914 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11915 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11916 #undef HAVE_DECL_BASENAME
11917 #define HAVE_DECL_BASENAME 1
11918 #include \"ansidecl.h\"
11919 #include \"system.h\"
11920 "
11921 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11922 ac_have_decl=1
11923 else
11924 ac_have_decl=0
11925 fi
11926
11927 cat >>confdefs.h <<_ACEOF
11928 #define HAVE_DECL_BASENAME $ac_have_decl
11929 _ACEOF
11930 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11931 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11932 #undef HAVE_DECL_BASENAME
11933 #define HAVE_DECL_BASENAME 1
11934 #include \"ansidecl.h\"
11935 #include \"system.h\"
11936 "
11937 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11938 ac_have_decl=1
11939 else
11940 ac_have_decl=0
11941 fi
11942
11943 cat >>confdefs.h <<_ACEOF
11944 #define HAVE_DECL_STRSTR $ac_have_decl
11945 _ACEOF
11946
11947
11948 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11949 madvise stpcpy strnlen strsignal strverscmp \
11950 strtol strtoul strtoll strtoull setenv unsetenv \
11951 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11952 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
11953 do
11954 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11956 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11957 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11962 #undef $ac_tr_decl
11963 #define $ac_tr_decl 1
11964
11965 #include "ansidecl.h"
11966 #include "system.h"
11967
11968 int
11969 main ()
11970 {
11971 #ifndef $ac_func
11972 char *(*pfn) = (char *(*)) $ac_func ;
11973 #endif
11974 ;
11975 return 0;
11976 }
11977 _ACEOF
11978 if ac_fn_cxx_try_compile "$LINENO"; then :
11979 eval "gcc_cv_have_decl_$ac_func=yes"
11980 else
11981 eval "gcc_cv_have_decl_$ac_func=no"
11982 fi
11983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11984 fi
11985
11986 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11988 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11989 #define $ac_tr_decl 1
11990 _ACEOF
11991
11992 else
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11995 #define $ac_tr_decl 0
11996 _ACEOF
11997
11998 fi
11999
12000 done
12001
12002
12003 for ac_func in getrlimit setrlimit getrusage
12004 do
12005 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12007 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12008 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12009 $as_echo_n "(cached) " >&6
12010 else
12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12013 #undef $ac_tr_decl
12014 #define $ac_tr_decl 1
12015
12016 #include "ansidecl.h"
12017 #include "system.h"
12018 #ifdef HAVE_SYS_RESOURCE_H
12019 #include <sys/resource.h>
12020 #endif
12021
12022
12023 int
12024 main ()
12025 {
12026 #ifndef $ac_func
12027 char *(*pfn) = (char *(*)) $ac_func ;
12028 #endif
12029 ;
12030 return 0;
12031 }
12032 _ACEOF
12033 if ac_fn_cxx_try_compile "$LINENO"; then :
12034 eval "gcc_cv_have_decl_$ac_func=yes"
12035 else
12036 eval "gcc_cv_have_decl_$ac_func=no"
12037 fi
12038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039 fi
12040
12041 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12043 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12044 #define $ac_tr_decl 1
12045 _ACEOF
12046
12047 else
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12049 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12050 #define $ac_tr_decl 0
12051 _ACEOF
12052
12053 fi
12054
12055 done
12056
12057
12058 for ac_func in mallinfo mallinfo2
12059 do
12060 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12062 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12063 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067 /* end confdefs.h. */
12068 #undef $ac_tr_decl
12069 #define $ac_tr_decl 1
12070
12071 #include "ansidecl.h"
12072 #include "system.h"
12073 #ifdef HAVE_MALLOC_H
12074 #include <malloc.h>
12075 #endif
12076
12077
12078 int
12079 main ()
12080 {
12081 #ifndef $ac_func
12082 char *(*pfn) = (char *(*)) $ac_func ;
12083 #endif
12084 ;
12085 return 0;
12086 }
12087 _ACEOF
12088 if ac_fn_cxx_try_compile "$LINENO"; then :
12089 eval "gcc_cv_have_decl_$ac_func=yes"
12090 else
12091 eval "gcc_cv_have_decl_$ac_func=no"
12092 fi
12093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12094 fi
12095
12096 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12098 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12099 #define $ac_tr_decl 1
12100 _ACEOF
12101
12102 else
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12105 #define $ac_tr_decl 0
12106 _ACEOF
12107
12108 fi
12109
12110 done
12111
12112
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12115
12116 #include "ansidecl.h"
12117 #include "system.h"
12118 #ifdef HAVE_SYS_RESOURCE_H
12119 #include <sys/resource.h>
12120 #endif
12121
12122 int
12123 main ()
12124 {
12125 rlim_t l = 0;
12126 ;
12127 return 0;
12128 }
12129 _ACEOF
12130 if ac_fn_cxx_try_compile "$LINENO"; then :
12131
12132 else
12133
12134 $as_echo "#define rlim_t long" >>confdefs.h
12135
12136 fi
12137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12138
12139 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12140 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12141 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12142 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12143 for ac_func in ldgetname
12144 do
12145 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12147 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12148 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12149 $as_echo_n "(cached) " >&6
12150 else
12151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12152 /* end confdefs.h. */
12153 #undef $ac_tr_decl
12154 #define $ac_tr_decl 1
12155
12156 #include "ansidecl.h"
12157 #include "system.h"
12158 #ifdef HAVE_LDFCN_H
12159 #undef FREAD
12160 #undef FWRITE
12161 #include <ldfcn.h>
12162 #endif
12163
12164
12165 int
12166 main ()
12167 {
12168 #ifndef $ac_func
12169 char *(*pfn) = (char *(*)) $ac_func ;
12170 #endif
12171 ;
12172 return 0;
12173 }
12174 _ACEOF
12175 if ac_fn_cxx_try_compile "$LINENO"; then :
12176 eval "gcc_cv_have_decl_$ac_func=yes"
12177 else
12178 eval "gcc_cv_have_decl_$ac_func=no"
12179 fi
12180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12181 fi
12182
12183 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12185 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12186 #define $ac_tr_decl 1
12187 _ACEOF
12188
12189 else
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12192 #define $ac_tr_decl 0
12193 _ACEOF
12194
12195 fi
12196
12197 done
12198
12199
12200 for ac_func in times
12201 do
12202 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12204 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12205 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209 /* end confdefs.h. */
12210 #undef $ac_tr_decl
12211 #define $ac_tr_decl 1
12212
12213 #include "ansidecl.h"
12214 #include "system.h"
12215 #ifdef HAVE_SYS_TIMES_H
12216 #include <sys/times.h>
12217 #endif
12218
12219
12220 int
12221 main ()
12222 {
12223 #ifndef $ac_func
12224 char *(*pfn) = (char *(*)) $ac_func ;
12225 #endif
12226 ;
12227 return 0;
12228 }
12229 _ACEOF
12230 if ac_fn_cxx_try_compile "$LINENO"; then :
12231 eval "gcc_cv_have_decl_$ac_func=yes"
12232 else
12233 eval "gcc_cv_have_decl_$ac_func=no"
12234 fi
12235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12236 fi
12237
12238 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12240 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12241 #define $ac_tr_decl 1
12242 _ACEOF
12243
12244 else
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12247 #define $ac_tr_decl 0
12248 _ACEOF
12249
12250 fi
12251
12252 done
12253
12254
12255 for ac_func in sigaltstack
12256 do
12257 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12259 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12260 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12265 #undef $ac_tr_decl
12266 #define $ac_tr_decl 1
12267
12268 #include "ansidecl.h"
12269 #include "system.h"
12270 #include <signal.h>
12271
12272
12273 int
12274 main ()
12275 {
12276 #ifndef $ac_func
12277 char *(*pfn) = (char *(*)) $ac_func ;
12278 #endif
12279 ;
12280 return 0;
12281 }
12282 _ACEOF
12283 if ac_fn_cxx_try_compile "$LINENO"; then :
12284 eval "gcc_cv_have_decl_$ac_func=yes"
12285 else
12286 eval "gcc_cv_have_decl_$ac_func=no"
12287 fi
12288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12289 fi
12290
12291 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12293 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12294 #define $ac_tr_decl 1
12295 _ACEOF
12296
12297 else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12300 #define $ac_tr_decl 0
12301 _ACEOF
12302
12303 fi
12304
12305 done
12306
12307
12308 # More time-related stuff.
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12310 $as_echo_n "checking for struct tms... " >&6; }
12311 if ${ac_cv_struct_tms+:} false; then :
12312 $as_echo_n "(cached) " >&6
12313 else
12314
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12317
12318 #include "ansidecl.h"
12319 #include "system.h"
12320 #ifdef HAVE_SYS_TIMES_H
12321 #include <sys/times.h>
12322 #endif
12323
12324 int
12325 main ()
12326 {
12327 struct tms tms;
12328 ;
12329 return 0;
12330 }
12331 _ACEOF
12332 if ac_fn_cxx_try_compile "$LINENO"; then :
12333 ac_cv_struct_tms=yes
12334 else
12335 ac_cv_struct_tms=no
12336 fi
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338 fi
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12340 $as_echo "$ac_cv_struct_tms" >&6; }
12341 if test $ac_cv_struct_tms = yes; then
12342
12343 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12344
12345 fi
12346
12347 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12348 # revisit after autoconf 2.50.
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12350 $as_echo_n "checking for clock_t... " >&6; }
12351 if ${gcc_cv_type_clock_t+:} false; then :
12352 $as_echo_n "(cached) " >&6
12353 else
12354
12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12357
12358 #include "ansidecl.h"
12359 #include "system.h"
12360
12361 int
12362 main ()
12363 {
12364 clock_t x;
12365 ;
12366 return 0;
12367 }
12368 _ACEOF
12369 if ac_fn_cxx_try_compile "$LINENO"; then :
12370 gcc_cv_type_clock_t=yes
12371 else
12372 gcc_cv_type_clock_t=no
12373 fi
12374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12375 fi
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12377 $as_echo "$gcc_cv_type_clock_t" >&6; }
12378 if test $gcc_cv_type_clock_t = yes; then
12379
12380 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12381
12382 fi
12383
12384 # Check if F_SETLKW is supported by fcntl.
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12386 $as_echo_n "checking for F_SETLKW... " >&6; }
12387 if ${ac_cv_f_setlkw+:} false; then :
12388 $as_echo_n "(cached) " >&6
12389 else
12390
12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12393
12394 #include <fcntl.h>
12395 int
12396 main ()
12397 {
12398
12399 struct flock fl;
12400 fl.l_whence = 0;
12401 fl.l_start = 0;
12402 fl.l_len = 0;
12403 fl.l_pid = 0;
12404 return fcntl (1, F_SETLKW, &fl);
12405 ;
12406 return 0;
12407 }
12408 _ACEOF
12409 if ac_fn_cxx_try_compile "$LINENO"; then :
12410 ac_cv_f_setlkw=yes
12411 else
12412 ac_cv_f_setlkw=no
12413 fi
12414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12415 fi
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12417 $as_echo "$ac_cv_f_setlkw" >&6; }
12418 if test $ac_cv_f_setlkw = yes; then
12419
12420 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12421
12422 fi
12423
12424 # Check if O_CLOEXEC is defined by fcntl
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12426 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12427 if ${ac_cv_o_cloexec+:} false; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430
12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h. */
12433
12434 #include <fcntl.h>
12435 int
12436 main ()
12437 {
12438
12439 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12440 ;
12441 return 0;
12442 }
12443 _ACEOF
12444 if ac_fn_cxx_try_compile "$LINENO"; then :
12445 ac_cv_o_cloexec=yes
12446 else
12447 ac_cv_o_cloexec=no
12448 fi
12449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12450 fi
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12452 $as_echo "$ac_cv_o_cloexec" >&6; }
12453 if test $ac_cv_o_cloexec = yes; then
12454
12455 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12456
12457 fi
12458
12459 # C++ Modules would like some networking features to provide the mapping
12460 # server. You can still use modules without them though.
12461 # The following network-related checks could probably do with some
12462 # Windows and other non-linux defenses and checking.
12463
12464 # Local socket connectivity wants AF_UNIX networking
12465 # Check for AF_UNIX networking
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12467 $as_echo_n "checking for AF_UNIX... " >&6; }
12468 if ${ac_cv_af_unix+:} false; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12471
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12474
12475 #include <sys/types.h>
12476 #include <sys/socket.h>
12477 #include <sys/un.h>
12478 #include <netinet/in.h>
12479 int
12480 main ()
12481 {
12482
12483 sockaddr_un un;
12484 un.sun_family = AF_UNSPEC;
12485 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12486 connect (fd, (sockaddr *)&un, sizeof (un));
12487 ;
12488 return 0;
12489 }
12490 _ACEOF
12491 if ac_fn_cxx_try_compile "$LINENO"; then :
12492 ac_cv_af_unix=yes
12493 else
12494 ac_cv_af_unix=no
12495 fi
12496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12497 fi
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12499 $as_echo "$ac_cv_af_unix" >&6; }
12500 if test $ac_cv_af_unix = yes; then
12501
12502 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12503
12504 fi
12505
12506 # Remote socket connectivity wants AF_INET6 networking
12507 # Check for AF_INET6 networking
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12509 $as_echo_n "checking for AF_INET6... " >&6; }
12510 if ${ac_cv_af_inet6+:} false; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513
12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12516
12517 #include <sys/types.h>
12518 #include <sys/socket.h>
12519 #include <netinet/in.h>
12520 #include <netdb.h>
12521 int
12522 main ()
12523 {
12524
12525 sockaddr_in6 in6;
12526 in6.sin6_family = AF_UNSPEC;
12527 struct addrinfo *addrs = 0;
12528 struct addrinfo hints;
12529 hints.ai_flags = 0;
12530 hints.ai_family = AF_INET6;
12531 hints.ai_socktype = SOCK_STREAM;
12532 hints.ai_protocol = 0;
12533 hints.ai_canonname = 0;
12534 hints.ai_addr = 0;
12535 hints.ai_next = 0;
12536 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12537 const char *str = gai_strerror (e);
12538 freeaddrinfo (addrs);
12539 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12540 connect (fd, (sockaddr *)&in6, sizeof (in6));
12541 ;
12542 return 0;
12543 }
12544 _ACEOF
12545 if ac_fn_cxx_try_compile "$LINENO"; then :
12546 ac_cv_af_inet6=yes
12547 else
12548 ac_cv_af_inet6=no
12549 fi
12550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551 fi
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12553 $as_echo "$ac_cv_af_inet6" >&6; }
12554 if test $ac_cv_af_inet6 = yes; then
12555
12556 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12557
12558 fi
12559
12560 # Check if _LK_LOCK is supported by _locking
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12562 $as_echo_n "checking for _LK_LOCK... " >&6; }
12563 if ${ac_cv_lk_lock+:} false; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12566
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h. */
12569
12570 #include <io.h>
12571 #include <sys/locking.h>
12572 int
12573 main ()
12574 {
12575
12576 int fd;
12577 return _locking (fd, _LK_LOCK, 0);
12578 ;
12579 return 0;
12580 }
12581 _ACEOF
12582 if ac_fn_cxx_try_compile "$LINENO"; then :
12583 ac_cv_lk_lock=yes
12584 else
12585 ac_cv_lk_lock=no
12586 fi
12587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12588 fi
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12590 $as_echo "$ac_cv_lk_lock" >&6; }
12591 if test $ac_cv_lk_lock = yes; then
12592
12593 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12594
12595 fi
12596
12597 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12598 CFLAGS="$saved_CFLAGS"
12599 CXXFLAGS="$saved_CXXFLAGS"
12600
12601 # mkdir takes a single argument on some systems.
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12603 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12604 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12605 $as_echo_n "(cached) " >&6
12606 else
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12609
12610 #include <sys/types.h>
12611 #ifdef HAVE_SYS_STAT_H
12612 # include <sys/stat.h>
12613 #endif
12614 #ifdef HAVE_UNISTD_H
12615 # include <unistd.h>
12616 #endif
12617 #ifdef HAVE_DIRECT_H
12618 # include <direct.h>
12619 #endif
12620 int
12621 main ()
12622 {
12623 mkdir ("foo", 0);
12624 ;
12625 return 0;
12626 }
12627 _ACEOF
12628 if ac_fn_cxx_try_compile "$LINENO"; then :
12629 gcc_cv_mkdir_takes_one_arg=no
12630 else
12631 gcc_cv_mkdir_takes_one_arg=yes
12632 fi
12633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12634 fi
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12636 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12637 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12638
12639 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12640
12641 fi
12642
12643
12644 # File extensions
12645 manext='.1'
12646 objext='.o'
12647
12648
12649
12650 # With Setjmp/Longjmp based exception handling.
12651 # Check whether --enable-sjlj-exceptions was given.
12652 if test "${enable_sjlj_exceptions+set}" = set; then :
12653 enableval=$enable_sjlj_exceptions; case $target in
12654 *-*-hpux10*)
12655 if test $enableval != yes; then
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12657 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12658 enableval=yes
12659 fi
12660 ;;
12661 esac
12662 force_sjlj_exceptions=yes
12663 else
12664 case $target in
12665 *-*-hpux10*)
12666 force_sjlj_exceptions=yes
12667 enableval=yes
12668 ;;
12669 lm32*-*-*)
12670 force_sjlj_exceptions=yes
12671 enableval=yes
12672 ;;
12673 *)
12674 force_sjlj_exceptions=no
12675 ;;
12676 esac
12677 fi
12678
12679 if test $force_sjlj_exceptions = yes; then
12680 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12681
12682 cat >>confdefs.h <<_ACEOF
12683 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12684 _ACEOF
12685
12686 fi
12687
12688 # --------------------------------------------------------
12689 # Build, host, and target specific configuration fragments
12690 # --------------------------------------------------------
12691
12692 # Collect build-machine-specific information.
12693 . ${srcdir}/config.build || exit 1
12694
12695 # Collect host-machine-specific information.
12696 . ${srcdir}/config.host || exit 1
12697
12698 target_gtfiles=
12699
12700 # Collect target-machine-specific information.
12701 . ${srcdir}/config.gcc || exit 1
12702
12703 extra_objs="${host_extra_objs} ${extra_objs}"
12704 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12705
12706 # Default the target-machine variables that were not explicitly set.
12707 if test x"$tm_file" = x
12708 then tm_file=$cpu_type/$cpu_type.h; fi
12709
12710 if test x"$extra_headers" = x
12711 then extra_headers=; fi
12712
12713 if test x$md_file = x
12714 then md_file=$cpu_type/$cpu_type.md; fi
12715
12716 if test x$out_file = x
12717 then out_file=$cpu_type/$cpu_type.cc; fi
12718
12719 if test x"$tmake_file" = x
12720 then tmake_file=$cpu_type/t-$cpu_type
12721 fi
12722
12723 # Support --enable-initfini-array.
12724 if test x$enable_initfini_array != xno; then
12725 tm_file="${tm_file} initfini-array.h"
12726 fi
12727
12728 if test x"$dwarf2" = xyes
12729 then tm_file="$tm_file tm-dwarf2.h"
12730 fi
12731
12732 # Say what files are being used for the output code and MD file.
12733 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12734 echo "Using \`$srcdir/config/$md_file' as machine description file."
12735
12736 # If any of the xm_file variables contain nonexistent files, warn
12737 # about them and drop them.
12738
12739 bx=
12740 for x in $build_xm_file; do
12741 if test -f $srcdir/config/$x
12742 then bx="$bx $x"
12743 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12744 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12745 fi
12746 done
12747 build_xm_file="$bx"
12748
12749 hx=
12750 for x in $host_xm_file; do
12751 if test -f $srcdir/config/$x
12752 then hx="$hx $x"
12753 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12754 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12755 fi
12756 done
12757 host_xm_file="$hx"
12758
12759 tx=
12760 for x in $xm_file; do
12761 if test -f $srcdir/config/$x
12762 then tx="$tx $x"
12763 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12764 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12765 fi
12766 done
12767 xm_file="$tx"
12768
12769 count=a
12770 for f in $tm_file; do
12771 count=${count}x
12772 done
12773 if test $count = ax; then
12774 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12775 else
12776 echo "Using the following target machine macro files:"
12777 for f in $tm_file; do
12778 echo " $srcdir/config/$f"
12779 done
12780 fi
12781
12782 if test x$use_long_long_for_widest_fast_int = xyes; then
12783
12784 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12785
12786 fi
12787
12788 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12789
12790 cat >>confdefs.h <<_ACEOF
12791 #define HAVE_GNU_LD $gnu_ld_bool
12792 _ACEOF
12793
12794
12795 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12796
12797 cat >>confdefs.h <<_ACEOF
12798 #define HAVE_GNU_AS $gnu_as_bool
12799 _ACEOF
12800
12801
12802 count=a
12803 for f in $host_xm_file; do
12804 count=${count}x
12805 done
12806 if test $count = a; then
12807 :
12808 elif test $count = ax; then
12809 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12810 else
12811 echo "Using the following host machine macro files:"
12812 for f in $host_xm_file; do
12813 echo " $srcdir/config/$f"
12814 done
12815 fi
12816 echo "Using ${out_host_hook_obj} for host machine hooks."
12817
12818 if test "$host_xm_file" != "$build_xm_file"; then
12819 count=a
12820 for f in $build_xm_file; do
12821 count=${count}x
12822 done
12823 if test $count = a; then
12824 :
12825 elif test $count = ax; then
12826 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12827 else
12828 echo "Using the following build machine macro files:"
12829 for f in $build_xm_file; do
12830 echo " $srcdir/config/$f"
12831 done
12832 fi
12833 fi
12834
12835 if test -n "$configured_native_system_header_dir"; then
12836 native_system_header_dir=$configured_native_system_header_dir
12837 fi
12838 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12839
12840
12841 case ${host} in
12842 powerpc*-*-darwin*)
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12844 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12845 if ${gcc_cv_mcontext_underscores+:} false; then :
12846 $as_echo_n "(cached) " >&6
12847 else
12848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12849 /* end confdefs.h. */
12850
12851 #include <sys/cdefs.h>
12852 #include <sys/signal.h>
12853 #include <ucontext.h>
12854 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12855
12856 _ACEOF
12857 if ac_fn_cxx_try_compile "$LINENO"; then :
12858 gcc_cv_mcontext_underscores=no
12859 else
12860 gcc_cv_mcontext_underscores=yes
12861 fi
12862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12863 fi
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12865 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12866 if test $gcc_cv_mcontext_underscores = yes; then
12867
12868 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12869
12870 fi
12871 ;;
12872 esac
12873
12874 # ---------
12875 # Threading
12876 # ---------
12877
12878 # Check if a valid thread package
12879 case ${enable_threads} in
12880 "" | no)
12881 # No threads
12882 target_thread_file='single'
12883 ;;
12884 yes)
12885 # default
12886 target_thread_file='single'
12887 ;;
12888 aix | dce | lynx | mipssde | posix | rtems | \
12889 single | tpf | vxworks | win32)
12890 target_thread_file=${enable_threads}
12891 ;;
12892 *)
12893 echo "${enable_threads} is an unknown thread package" 1>&2
12894 exit 1
12895 ;;
12896 esac
12897
12898 if test x${thread_file} = x; then
12899 # No thread file set by target-specific clauses in config.gcc,
12900 # so use file chosen by default logic above
12901 thread_file=${target_thread_file}
12902 fi
12903
12904 # --------
12905 # UNSORTED
12906 # --------
12907
12908 use_cxa_atexit=no
12909 if test x$enable___cxa_atexit = xyes || \
12910 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12911 if test x$host = x$target; then
12912 case $host in
12913 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12914 # keyed to flag_use_cxa_atexit
12915 *-*-mingw32*)
12916 use_cxa_atexit=yes
12917 ;;
12918 powerpc-ibm-aix*)
12919 use_cxa_atexit=yes
12920 ;;
12921 *)
12922 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12923 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12924 use_cxa_atexit=yes
12925 else
12926 echo "__cxa_atexit can't be enabled on this target"
12927 fi
12928
12929 ;;
12930 esac
12931 else
12932 # We can't check for __cxa_atexit when building a cross, so assume
12933 # it is available
12934 use_cxa_atexit=yes
12935 fi
12936 if test x$use_cxa_atexit = xyes; then
12937
12938 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12939
12940 fi
12941 fi
12942
12943 # Look for a file containing extra machine modes.
12944 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12945 extra_modes_file='$(srcdir)'/config/${extra_modes}
12946
12947
12948 cat >>confdefs.h <<_ACEOF
12949 #define EXTRA_MODES_FILE "config/$extra_modes"
12950 _ACEOF
12951
12952 fi
12953
12954 # Convert extra_options into a form suitable for Makefile use.
12955 extra_opt_files=
12956 all_opt_files=
12957 for f in $extra_options; do
12958 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12959 all_opt_files="$all_opt_files $srcdir/config/$f"
12960 done
12961
12962
12963 # auto-host.h is the file containing items generated by autoconf and is
12964 # the first file included by config.h.
12965 # If host=build, it is correct to have bconfig include auto-host.h
12966 # as well. If host!=build, we are in error and need to do more
12967 # work to find out the build config parameters.
12968 if test x$host = x$build
12969 then
12970 build_auto=auto-host.h
12971 HAVE_AUTO_BUILD='# '
12972 else
12973 # We create a subdir, then run autoconf in the subdir.
12974 # To prevent recursion we set host and build for the new
12975 # invocation of configure to the build for this invocation
12976 # of configure.
12977 tempdir=build.$$
12978 rm -rf $tempdir
12979 mkdir $tempdir
12980 cd $tempdir
12981 case ${srcdir} in
12982 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12983 *) realsrcdir=../${srcdir};;
12984 esac
12985 # Clearing GMPINC is necessary to prevent host headers being
12986 # used by the build compiler. Defining GENERATOR_FILE stops
12987 # system.h from including gmp.h.
12988 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12989 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12990 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12991 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
12992 ${realsrcdir}/configure \
12993 --enable-languages=${enable_languages-all} \
12994 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12995 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12996 --target=$target_alias --host=$build_alias \
12997 --build=$build_alias || exit # retaining $tempdir
12998
12999 # We just finished tests for the build machine, so rename
13000 # the file auto-build.h in the gcc directory.
13001 mv auto-host.h ../auto-build.h
13002 cd ..
13003 rm -rf $tempdir
13004 build_auto=auto-build.h
13005 HAVE_AUTO_BUILD=
13006 fi
13007
13008
13009
13010 tm_file="${tm_file} defaults.h"
13011 tm_p_file="${tm_p_file} tm-preds.h"
13012 tm_d_file="${tm_d_file} defaults.h"
13013 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13014 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13015 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13016 # put this back in temporarily.
13017 xm_file="auto-host.h ansidecl.h ${xm_file}"
13018
13019 # --------
13020 # UNSORTED
13021 # --------
13022
13023 # Compile in configure arguments.
13024 if test -f configargs.h ; then
13025 # Being re-configured.
13026 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13027 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13028 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13029 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13030 fi
13031 else
13032 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13033 fi
13034
13035 # Double all backslashes and backslash all quotes to turn
13036 # gcc_config_arguments into a C string.
13037 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13038 $gcc_config_arguments
13039 EOF
13040 gcc_config_arguments_str=`cat conftest.out`
13041 rm -f conftest.out
13042
13043 cat > configargs.h <<EOF
13044 /* Generated automatically. */
13045 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13046 static const char thread_model[] = "$thread_file";
13047
13048 static const struct {
13049 const char *name, *value;
13050 } configure_default_options[] = $configure_default_options;
13051 EOF
13052
13053 gcc_BASEVER=`cat $srcdir/BASE-VER`
13054 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13055 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13056 if test -f $srcdir/REVISION ; then
13057 gcc_REVISION=`cat $srcdir/REVISION`
13058 else
13059 gcc_REVISION=""
13060 fi
13061 cat > plugin-version.h <<EOF
13062 #include "configargs.h"
13063
13064 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13065 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13066 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13067 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13068
13069 static char basever[] = "$gcc_BASEVER";
13070 static char datestamp[] = "$gcc_DATESTAMP";
13071 static char devphase[] = "$gcc_DEVPHASE";
13072 static char revision[] = "$gcc_REVISION";
13073
13074 /* FIXME plugins: We should make the version information more precise.
13075 One way to do is to add a checksum. */
13076
13077 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13078 devphase, revision,
13079 configuration_arguments};
13080 EOF
13081
13082 # Determine what GCC version number to use in filesystem paths.
13083
13084 get_gcc_base_ver="cat"
13085
13086 # Check whether --with-gcc-major-version-only was given.
13087 if test "${with_gcc_major_version_only+set}" = set; then :
13088 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13089 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13090 fi
13091
13092 fi
13093
13094
13095
13096
13097 # Internationalization
13098 # If we haven't got the data from the intl directory,
13099 # assume NLS is disabled.
13100 USE_NLS=no
13101 LIBINTL=
13102 LIBINTL_DEP=
13103 INCINTL=
13104 XGETTEXT=
13105 GMSGFMT=
13106 POSUB=
13107
13108 if test -f ../intl/config.intl; then
13109 . ../intl/config.intl
13110 fi
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13112 $as_echo_n "checking whether NLS is requested... " >&6; }
13113 if test x"$USE_NLS" != xyes; then
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115 $as_echo "no" >&6; }
13116 else
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13118 $as_echo "yes" >&6; }
13119
13120 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13121
13122
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13124 $as_echo_n "checking for catalogs to be installed... " >&6; }
13125 # Look for .po and .gmo files in the source directory.
13126 CATALOGS=
13127 XLINGUAS=
13128 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13129 # If there aren't any .gmo files the shell will give us the
13130 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13131 # weeded out.
13132 case "$cat" in *\**)
13133 continue;;
13134 esac
13135 # The quadruple backslash is collapsed to a double backslash
13136 # by the backticks, then collapsed again by the double quotes,
13137 # leaving us with one backslash in the sed expression (right
13138 # before the dot that mustn't act as a wildcard).
13139 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13140 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13141 # The user is allowed to set LINGUAS to a list of languages to
13142 # install catalogs for. If it's empty that means "all of them."
13143 if test "x$LINGUAS" = x; then
13144 CATALOGS="$CATALOGS $cat"
13145 XLINGUAS="$XLINGUAS $lang"
13146 else
13147 case "$LINGUAS" in *$lang*)
13148 CATALOGS="$CATALOGS $cat"
13149 XLINGUAS="$XLINGUAS $lang"
13150 ;;
13151 esac
13152 fi
13153 done
13154 LINGUAS="$XLINGUAS"
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13156 $as_echo "$LINGUAS" >&6; }
13157
13158
13159 DATADIRNAME=share
13160
13161 INSTOBJEXT=.mo
13162
13163 GENCAT=gencat
13164
13165 CATOBJEXT=.gmo
13166
13167 fi
13168
13169 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13170 # -liconv on the link line twice.
13171 case "$LIBINTL" in *$LIBICONV*)
13172 LIBICONV= ;;
13173 esac
13174
13175 # Check whether --enable-secureplt was given.
13176 if test "${enable_secureplt+set}" = set; then :
13177 enableval=$enable_secureplt;
13178 fi
13179
13180
13181 # Check whether --enable-mingw-wildcard was given.
13182 if test "${enable_mingw_wildcard+set}" = set; then :
13183 enableval=$enable_mingw_wildcard;
13184 else
13185 enable_mingw_wildcard=platform
13186 fi
13187
13188 if test x"$enable_mingw_wildcard" != xplatform ; then :
13189
13190 cat >>confdefs.h <<_ACEOF
13191 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13192 _ACEOF
13193
13194 fi
13195
13196 # Check whether --enable-large-address-aware was given.
13197 if test "${enable_large_address_aware+set}" = set; then :
13198 enableval=$enable_large_address_aware;
13199 fi
13200
13201 if test x"$enable_large_address_aware" = xyes; then :
13202
13203 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13204
13205 fi
13206
13207 # Check whether --enable-leading-mingw64-underscores was given.
13208 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13209 enableval=$enable_leading_mingw64_underscores;
13210 fi
13211
13212 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
13213
13214 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13215
13216 fi
13217
13218 # Check whether --enable-cld was given.
13219 if test "${enable_cld+set}" = set; then :
13220 enableval=$enable_cld;
13221 else
13222 enable_cld=no
13223 fi
13224
13225
13226 # Check whether --enable-frame-pointer was given.
13227 if test "${enable_frame_pointer+set}" = set; then :
13228 enableval=$enable_frame_pointer;
13229 else
13230
13231 case $target_os in
13232 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13233 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13234 enable_frame_pointer=no
13235 ;;
13236 *)
13237 enable_frame_pointer=yes
13238 ;;
13239 esac
13240
13241 fi
13242
13243
13244 case $target in
13245 i[34567]86-*-* | x86_64-*-*)
13246 if test "x$enable_cld" = xyes; then
13247 tm_defines="${tm_defines} USE_IX86_CLD=1"
13248 fi
13249 if test "x$enable_frame_pointer" = xyes; then
13250 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13251 fi
13252 ;;
13253 esac
13254
13255 # Windows32 Registry support for specifying GCC installation paths.
13256 # Check whether --enable-win32-registry was given.
13257 if test "${enable_win32_registry+set}" = set; then :
13258 enableval=$enable_win32_registry;
13259 fi
13260
13261
13262 case $host_os in
13263 win32 | pe | cygwin* | mingw32*)
13264 if test "x$enable_win32_registry" != xno; then
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13266 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13267 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13268 $as_echo_n "(cached) " >&6
13269 else
13270 ac_func_search_save_LIBS=$LIBS
13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13273
13274 /* Override any GCC internal prototype to avoid an error.
13275 Use char because int might match the return type of a GCC
13276 builtin and then its argument prototype would still apply. */
13277 #ifdef __cplusplus
13278 extern "C"
13279 #endif
13280 char RegOpenKeyExA ();
13281 int
13282 main ()
13283 {
13284 return RegOpenKeyExA ();
13285 ;
13286 return 0;
13287 }
13288 _ACEOF
13289 for ac_lib in '' advapi32; do
13290 if test -z "$ac_lib"; then
13291 ac_res="none required"
13292 else
13293 ac_res=-l$ac_lib
13294 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13295 fi
13296 if ac_fn_cxx_try_link "$LINENO"; then :
13297 ac_cv_search_RegOpenKeyExA=$ac_res
13298 fi
13299 rm -f core conftest.err conftest.$ac_objext \
13300 conftest$ac_exeext
13301 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13302 break
13303 fi
13304 done
13305 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13306
13307 else
13308 ac_cv_search_RegOpenKeyExA=no
13309 fi
13310 rm conftest.$ac_ext
13311 LIBS=$ac_func_search_save_LIBS
13312 fi
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13314 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13315 ac_res=$ac_cv_search_RegOpenKeyExA
13316 if test "$ac_res" != no; then :
13317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13318
13319 else
13320 enable_win32_registry=no
13321 fi
13322
13323 fi
13324
13325 if test "x$enable_win32_registry" != xno; then
13326
13327 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13328
13329
13330 if test "x$enable_win32_registry" != xyes \
13331 && test "x$enable_win32_registry" != x; then
13332
13333 cat >>confdefs.h <<_ACEOF
13334 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13335 _ACEOF
13336
13337 fi
13338 fi
13339 ;;
13340 esac
13341
13342 # Get an absolute path to the GCC top-level source directory
13343 holddir=`${PWDCMD-pwd}`
13344 cd $srcdir
13345 topdir=`${PWDCMD-pwd}`
13346 cd $holddir
13347
13348 # Conditionalize the makefile for this host machine.
13349 xmake_file=
13350 for f in ${host_xmake_file}
13351 do
13352 if test -f ${srcdir}/config/$f
13353 then
13354 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13355 fi
13356 done
13357
13358 # Conditionalize the makefile for this target machine.
13359 tmake_file_=
13360 for f in ${tmake_file}
13361 do
13362 if test -f ${srcdir}/config/$f
13363 then
13364 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13365 fi
13366 done
13367 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13368
13369 out_object_file=`basename $out_file .cc`.o
13370 common_out_object_file=`basename $common_out_file .cc`.o
13371
13372 tm_file_list="options.h"
13373 tm_include_list="options.h insn-constants.h"
13374 for f in $tm_file; do
13375 case $f in
13376 ./* )
13377 f=`echo $f | sed 's/^..//'`
13378 tm_file_list="${tm_file_list} $f"
13379 tm_include_list="${tm_include_list} $f"
13380 ;;
13381 defaults.h )
13382 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13383 tm_include_list="${tm_include_list} $f"
13384 ;;
13385 * )
13386 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13387 tm_include_list="${tm_include_list} config/$f"
13388 ;;
13389 esac
13390 done
13391
13392 tm_p_file_list=
13393 tm_p_include_list=
13394 for f in $tm_p_file; do
13395 case $f in
13396 tm-preds.h )
13397 tm_p_file_list="${tm_p_file_list} $f"
13398 tm_p_include_list="${tm_p_include_list} $f"
13399 ;;
13400 * )
13401 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13402 tm_p_include_list="${tm_p_include_list} config/$f"
13403 esac
13404 done
13405
13406 tm_d_file_list=
13407 tm_d_include_list="options.h insn-constants.h"
13408 for f in $tm_d_file; do
13409 case $f in
13410 defaults.h )
13411 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
13412 tm_d_include_list="${tm_d_include_list} $f"
13413 ;;
13414 * )
13415 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13416 tm_d_include_list="${tm_d_include_list} config/$f"
13417 ;;
13418 esac
13419 done
13420
13421 xm_file_list=
13422 xm_include_list=
13423 for f in $xm_file; do
13424 case $f in
13425 ansidecl.h )
13426 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13427 xm_include_list="${xm_include_list} $f"
13428 ;;
13429 auto-host.h )
13430 xm_file_list="${xm_file_list} $f"
13431 xm_include_list="${xm_include_list} $f"
13432 ;;
13433 * )
13434 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13435 xm_include_list="${xm_include_list} config/$f"
13436 ;;
13437 esac
13438 done
13439
13440 host_xm_file_list=
13441 host_xm_include_list=
13442 for f in $host_xm_file; do
13443 case $f in
13444 ansidecl.h )
13445 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13446 host_xm_include_list="${host_xm_include_list} $f"
13447 ;;
13448 auto-host.h )
13449 host_xm_file_list="${host_xm_file_list} $f"
13450 host_xm_include_list="${host_xm_include_list} $f"
13451 ;;
13452 * )
13453 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13454 host_xm_include_list="${host_xm_include_list} config/$f"
13455 ;;
13456 esac
13457 done
13458
13459 build_xm_file_list=
13460 for f in $build_xm_file; do
13461 case $f in
13462 ansidecl.h )
13463 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13464 build_xm_include_list="${build_xm_include_list} $f"
13465 ;;
13466 auto-build.h | auto-host.h )
13467 build_xm_file_list="${build_xm_file_list} $f"
13468 build_xm_include_list="${build_xm_include_list} $f"
13469 ;;
13470 * )
13471 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13472 build_xm_include_list="${build_xm_include_list} config/$f"
13473 ;;
13474 esac
13475 done
13476
13477 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13478 # cross-compiler which does not use the native headers and libraries.
13479 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13480 CROSS=
13481 ALL=all.internal
13482 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13483 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13484
13485 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13486 test x$build != x$host || test "x$with_build_sysroot" != x; then
13487 if test "x$with_build_sysroot" != x; then
13488 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13489 else
13490 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13491 fi
13492
13493 if test x$host != x$target
13494 then
13495 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13496 ALL=all.cross
13497 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13498 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13499 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13500 fi
13501
13502 if test "x$with_build_sysroot" != "x"; then
13503 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13504 elif test "x$with_sysroot" = x; then
13505 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13506 elif test "x$with_sysroot" = xyes; then
13507 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13508 else
13509 target_header_dir="${with_sysroot}${native_system_header_dir}"
13510 fi
13511 else
13512 target_header_dir=${native_system_header_dir}
13513 fi
13514
13515 # If this is a cross-compiler that does not
13516 # have its own set of headers then define
13517 # inhibit_libc
13518
13519 # If this is using newlib, without having the headers available now,
13520 # then define inhibit_libc in LIBGCC2_CFLAGS.
13521 # This prevents libgcc2 from containing any code which requires libc
13522 # support.
13523 : ${inhibit_libc=false}
13524 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13525 test x$with_newlib = xyes ; } &&
13526 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13527 inhibit_libc=true
13528 fi
13529
13530
13531 # When building gcc with a cross-compiler, we need to adjust things so
13532 # that the generator programs are still built with the native compiler.
13533 # Also, we cannot run fixincludes.
13534
13535 # These are the normal (build=host) settings:
13536 CC_FOR_BUILD='$(CC)'
13537 CXX_FOR_BUILD='$(CXX)'
13538 BUILD_CFLAGS='$(ALL_CFLAGS)'
13539 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13540 BUILD_LDFLAGS='$(LDFLAGS)'
13541 STMP_FIXINC=stmp-fixinc
13542
13543 # And these apply if build != host, or we are generating coverage data
13544 if test x$build != x$host || test "x$coverage_flags" != x
13545 then
13546 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13547 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13548 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13549 fi
13550
13551 # Expand extra_headers to include complete path.
13552 # This substitutes for lots of t-* files.
13553 extra_headers_list=
13554 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13555 for file in ${extra_headers} ; do
13556 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13557 done
13558
13559 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13560 if test x"$use_gcc_tgmath" = xyes
13561 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13562 fi
13563
13564 # Define collect2 in Makefile.
13565 case $host_can_use_collect2 in
13566 no) collect2= ;;
13567 *) collect2='collect2$(exeext)' ;;
13568 esac
13569
13570
13571 # Add a definition of USE_COLLECT2 if system wants one.
13572 case $use_collect2 in
13573 no) use_collect2= ;;
13574 "") ;;
13575 *)
13576 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13577 xm_defines="${xm_defines} USE_COLLECT2"
13578 case $host_can_use_collect2 in
13579 no)
13580 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13581 ;;
13582 esac
13583 ;;
13584 esac
13585
13586
13587 cat >>confdefs.h <<_ACEOF
13588 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13589 _ACEOF
13590
13591
13592 # ---------------------------
13593 # Assembler & linker features
13594 # ---------------------------
13595
13596 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13597 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13598 # However when ld-new is first executed from the build tree, libtool will
13599 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13600 # to the build tree. While doing this we need to use the previous-stage
13601 # linker, or we have an infinite loop. The presence of a shell script as
13602 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13603 # the gcc/collect-ld script. So we need to know how libtool works, or
13604 # exec-tool will fail.
13605
13606
13607 case `pwd` in
13608 *\ * | *\ *)
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13610 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13611 esac
13612
13613
13614
13615 macro_version='2.2.7a'
13616 macro_revision='1.3134'
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630 ltmain="$ac_aux_dir/ltmain.sh"
13631
13632 # Backslashify metacharacters that are still active within
13633 # double-quoted strings.
13634 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13635
13636 # Same as above, but do not quote variable references.
13637 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13638
13639 # Sed substitution to delay expansion of an escaped shell variable in a
13640 # double_quote_subst'ed string.
13641 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13642
13643 # Sed substitution to delay expansion of an escaped single quote.
13644 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13645
13646 # Sed substitution to avoid accidental globbing in evaled expressions
13647 no_glob_subst='s/\*/\\\*/g'
13648
13649 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13650 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13651 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13652
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13654 $as_echo_n "checking how to print strings... " >&6; }
13655 # Test print first, because it will be a builtin if present.
13656 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13657 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13658 ECHO='print -r --'
13659 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13660 ECHO='printf %s\n'
13661 else
13662 # Use this function as a fallback that always works.
13663 func_fallback_echo ()
13664 {
13665 eval 'cat <<_LTECHO_EOF
13666 $1
13667 _LTECHO_EOF'
13668 }
13669 ECHO='func_fallback_echo'
13670 fi
13671
13672 # func_echo_all arg...
13673 # Invoke $ECHO with all args, space-separated.
13674 func_echo_all ()
13675 {
13676 $ECHO ""
13677 }
13678
13679 case "$ECHO" in
13680 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13681 $as_echo "printf" >&6; } ;;
13682 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13683 $as_echo "print -r" >&6; } ;;
13684 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13685 $as_echo "cat" >&6; } ;;
13686 esac
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13702 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13703 if ${ac_cv_path_SED+:} false; then :
13704 $as_echo_n "(cached) " >&6
13705 else
13706 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13707 for ac_i in 1 2 3 4 5 6 7; do
13708 ac_script="$ac_script$as_nl$ac_script"
13709 done
13710 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13711 { ac_script=; unset ac_script;}
13712 if test -z "$SED"; then
13713 ac_path_SED_found=false
13714 # Loop through the user's path and test for each of PROGNAME-LIST
13715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716 for as_dir in $PATH
13717 do
13718 IFS=$as_save_IFS
13719 test -z "$as_dir" && as_dir=.
13720 for ac_prog in sed gsed; do
13721 for ac_exec_ext in '' $ac_executable_extensions; do
13722 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13723 as_fn_executable_p "$ac_path_SED" || continue
13724 # Check for GNU ac_path_SED and select it if it is found.
13725 # Check for GNU $ac_path_SED
13726 case `"$ac_path_SED" --version 2>&1` in
13727 *GNU*)
13728 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13729 *)
13730 ac_count=0
13731 $as_echo_n 0123456789 >"conftest.in"
13732 while :
13733 do
13734 cat "conftest.in" "conftest.in" >"conftest.tmp"
13735 mv "conftest.tmp" "conftest.in"
13736 cp "conftest.in" "conftest.nl"
13737 $as_echo '' >> "conftest.nl"
13738 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13739 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13740 as_fn_arith $ac_count + 1 && ac_count=$as_val
13741 if test $ac_count -gt ${ac_path_SED_max-0}; then
13742 # Best one so far, save it but keep looking for a better one
13743 ac_cv_path_SED="$ac_path_SED"
13744 ac_path_SED_max=$ac_count
13745 fi
13746 # 10*(2^10) chars as input seems more than enough
13747 test $ac_count -gt 10 && break
13748 done
13749 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13750 esac
13751
13752 $ac_path_SED_found && break 3
13753 done
13754 done
13755 done
13756 IFS=$as_save_IFS
13757 if test -z "$ac_cv_path_SED"; then
13758 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13759 fi
13760 else
13761 ac_cv_path_SED=$SED
13762 fi
13763
13764 fi
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13766 $as_echo "$ac_cv_path_SED" >&6; }
13767 SED="$ac_cv_path_SED"
13768 rm -f conftest.sed
13769
13770 test -z "$SED" && SED=sed
13771 Xsed="$SED -e 1s/^X//"
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13784 $as_echo_n "checking for fgrep... " >&6; }
13785 if ${ac_cv_path_FGREP+:} false; then :
13786 $as_echo_n "(cached) " >&6
13787 else
13788 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13789 then ac_cv_path_FGREP="$GREP -F"
13790 else
13791 if test -z "$FGREP"; then
13792 ac_path_FGREP_found=false
13793 # Loop through the user's path and test for each of PROGNAME-LIST
13794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13795 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13796 do
13797 IFS=$as_save_IFS
13798 test -z "$as_dir" && as_dir=.
13799 for ac_prog in fgrep; do
13800 for ac_exec_ext in '' $ac_executable_extensions; do
13801 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13802 as_fn_executable_p "$ac_path_FGREP" || continue
13803 # Check for GNU ac_path_FGREP and select it if it is found.
13804 # Check for GNU $ac_path_FGREP
13805 case `"$ac_path_FGREP" --version 2>&1` in
13806 *GNU*)
13807 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13808 *)
13809 ac_count=0
13810 $as_echo_n 0123456789 >"conftest.in"
13811 while :
13812 do
13813 cat "conftest.in" "conftest.in" >"conftest.tmp"
13814 mv "conftest.tmp" "conftest.in"
13815 cp "conftest.in" "conftest.nl"
13816 $as_echo 'FGREP' >> "conftest.nl"
13817 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13819 as_fn_arith $ac_count + 1 && ac_count=$as_val
13820 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13821 # Best one so far, save it but keep looking for a better one
13822 ac_cv_path_FGREP="$ac_path_FGREP"
13823 ac_path_FGREP_max=$ac_count
13824 fi
13825 # 10*(2^10) chars as input seems more than enough
13826 test $ac_count -gt 10 && break
13827 done
13828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13829 esac
13830
13831 $ac_path_FGREP_found && break 3
13832 done
13833 done
13834 done
13835 IFS=$as_save_IFS
13836 if test -z "$ac_cv_path_FGREP"; then
13837 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13838 fi
13839 else
13840 ac_cv_path_FGREP=$FGREP
13841 fi
13842
13843 fi
13844 fi
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13846 $as_echo "$ac_cv_path_FGREP" >&6; }
13847 FGREP="$ac_cv_path_FGREP"
13848
13849
13850 test -z "$GREP" && GREP=grep
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870 # Check whether --with-gnu-ld was given.
13871 if test "${with_gnu_ld+set}" = set; then :
13872 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13873 else
13874 with_gnu_ld=no
13875 fi
13876
13877 ac_prog=ld
13878 if test "$GCC" = yes; then
13879 # Check if gcc -print-prog-name=ld gives a path.
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13881 $as_echo_n "checking for ld used by $CC... " >&6; }
13882 case $host in
13883 *-*-mingw*)
13884 # gcc leaves a trailing carriage return which upsets mingw
13885 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13886 *)
13887 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13888 esac
13889 case $ac_prog in
13890 # Accept absolute paths.
13891 [\\/]* | ?:[\\/]*)
13892 re_direlt='/[^/][^/]*/\.\./'
13893 # Canonicalize the pathname of ld
13894 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13895 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13896 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13897 done
13898 test -z "$LD" && LD="$ac_prog"
13899 ;;
13900 "")
13901 # If it fails, then pretend we aren't using GCC.
13902 ac_prog=ld
13903 ;;
13904 *)
13905 # If it is relative, then search for the first ld in PATH.
13906 with_gnu_ld=unknown
13907 ;;
13908 esac
13909 elif test "$with_gnu_ld" = yes; then
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13911 $as_echo_n "checking for GNU ld... " >&6; }
13912 else
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13914 $as_echo_n "checking for non-GNU ld... " >&6; }
13915 fi
13916 if ${lt_cv_path_LD+:} false; then :
13917 $as_echo_n "(cached) " >&6
13918 else
13919 if test -z "$LD"; then
13920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13921 for ac_dir in $PATH; do
13922 IFS="$lt_save_ifs"
13923 test -z "$ac_dir" && ac_dir=.
13924 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13925 lt_cv_path_LD="$ac_dir/$ac_prog"
13926 # Check to see if the program is GNU ld. I'd rather use --version,
13927 # but apparently some variants of GNU ld only accept -v.
13928 # Break only if it was the GNU/non-GNU ld that we prefer.
13929 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13930 *GNU* | *'with BFD'*)
13931 test "$with_gnu_ld" != no && break
13932 ;;
13933 *)
13934 test "$with_gnu_ld" != yes && break
13935 ;;
13936 esac
13937 fi
13938 done
13939 IFS="$lt_save_ifs"
13940 else
13941 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13942 fi
13943 fi
13944
13945 LD="$lt_cv_path_LD"
13946 if test -n "$LD"; then
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13948 $as_echo "$LD" >&6; }
13949 else
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13951 $as_echo "no" >&6; }
13952 fi
13953 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13955 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13956 if ${lt_cv_prog_gnu_ld+:} false; then :
13957 $as_echo_n "(cached) " >&6
13958 else
13959 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13960 case `$LD -v 2>&1 </dev/null` in
13961 *GNU* | *'with BFD'*)
13962 lt_cv_prog_gnu_ld=yes
13963 ;;
13964 *)
13965 lt_cv_prog_gnu_ld=no
13966 ;;
13967 esac
13968 fi
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13970 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13971 with_gnu_ld=$lt_cv_prog_gnu_ld
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13982 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13983 if ${lt_cv_path_NM+:} false; then :
13984 $as_echo_n "(cached) " >&6
13985 else
13986 if test -n "$NM"; then
13987 # Let the user override the test.
13988 lt_cv_path_NM="$NM"
13989 else
13990 lt_nm_to_check="${ac_tool_prefix}nm"
13991 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13992 lt_nm_to_check="$lt_nm_to_check nm"
13993 fi
13994 for lt_tmp_nm in $lt_nm_to_check; do
13995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13996 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13997 IFS="$lt_save_ifs"
13998 test -z "$ac_dir" && ac_dir=.
13999 tmp_nm="$ac_dir/$lt_tmp_nm"
14000 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14001 # Check to see if the nm accepts a BSD-compat flag.
14002 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14003 # nm: unknown option "B" ignored
14004 # Tru64's nm complains that /dev/null is an invalid object file
14005 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14006 */dev/null* | *'Invalid file or object type'*)
14007 lt_cv_path_NM="$tmp_nm -B"
14008 break
14009 ;;
14010 *)
14011 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14012 */dev/null*)
14013 lt_cv_path_NM="$tmp_nm -p"
14014 break
14015 ;;
14016 *)
14017 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14018 continue # so that we can try to find one that supports BSD flags
14019 ;;
14020 esac
14021 ;;
14022 esac
14023 fi
14024 done
14025 IFS="$lt_save_ifs"
14026 done
14027 : ${lt_cv_path_NM=no}
14028 fi
14029 fi
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14031 $as_echo "$lt_cv_path_NM" >&6; }
14032 if test "$lt_cv_path_NM" != "no"; then
14033 NM="$lt_cv_path_NM"
14034 else
14035 # Didn't find any BSD compatible name lister, look for dumpbin.
14036 if test -n "$DUMPBIN"; then :
14037 # Let the user override the test.
14038 else
14039 if test -n "$ac_tool_prefix"; then
14040 for ac_prog in dumpbin "link -dump"
14041 do
14042 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14043 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14045 $as_echo_n "checking for $ac_word... " >&6; }
14046 if ${ac_cv_prog_DUMPBIN+:} false; then :
14047 $as_echo_n "(cached) " >&6
14048 else
14049 if test -n "$DUMPBIN"; then
14050 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14051 else
14052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14053 for as_dir in $PATH
14054 do
14055 IFS=$as_save_IFS
14056 test -z "$as_dir" && as_dir=.
14057 for ac_exec_ext in '' $ac_executable_extensions; do
14058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14059 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14061 break 2
14062 fi
14063 done
14064 done
14065 IFS=$as_save_IFS
14066
14067 fi
14068 fi
14069 DUMPBIN=$ac_cv_prog_DUMPBIN
14070 if test -n "$DUMPBIN"; then
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14072 $as_echo "$DUMPBIN" >&6; }
14073 else
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14075 $as_echo "no" >&6; }
14076 fi
14077
14078
14079 test -n "$DUMPBIN" && break
14080 done
14081 fi
14082 if test -z "$DUMPBIN"; then
14083 ac_ct_DUMPBIN=$DUMPBIN
14084 for ac_prog in dumpbin "link -dump"
14085 do
14086 # Extract the first word of "$ac_prog", so it can be a program name with args.
14087 set dummy $ac_prog; ac_word=$2
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14089 $as_echo_n "checking for $ac_word... " >&6; }
14090 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
14091 $as_echo_n "(cached) " >&6
14092 else
14093 if test -n "$ac_ct_DUMPBIN"; then
14094 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14095 else
14096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14097 for as_dir in $PATH
14098 do
14099 IFS=$as_save_IFS
14100 test -z "$as_dir" && as_dir=.
14101 for ac_exec_ext in '' $ac_executable_extensions; do
14102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14103 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14105 break 2
14106 fi
14107 done
14108 done
14109 IFS=$as_save_IFS
14110
14111 fi
14112 fi
14113 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14114 if test -n "$ac_ct_DUMPBIN"; then
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14116 $as_echo "$ac_ct_DUMPBIN" >&6; }
14117 else
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14119 $as_echo "no" >&6; }
14120 fi
14121
14122
14123 test -n "$ac_ct_DUMPBIN" && break
14124 done
14125
14126 if test "x$ac_ct_DUMPBIN" = x; then
14127 DUMPBIN=":"
14128 else
14129 case $cross_compiling:$ac_tool_warned in
14130 yes:)
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14133 ac_tool_warned=yes ;;
14134 esac
14135 DUMPBIN=$ac_ct_DUMPBIN
14136 fi
14137 fi
14138
14139 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14140 *COFF*)
14141 DUMPBIN="$DUMPBIN -symbols"
14142 ;;
14143 *)
14144 DUMPBIN=:
14145 ;;
14146 esac
14147 fi
14148
14149 if test "$DUMPBIN" != ":"; then
14150 NM="$DUMPBIN"
14151 fi
14152 fi
14153 test -z "$NM" && NM=nm
14154
14155
14156
14157
14158
14159
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14161 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14162 if ${lt_cv_nm_interface+:} false; then :
14163 $as_echo_n "(cached) " >&6
14164 else
14165 lt_cv_nm_interface="BSD nm"
14166 echo "int some_variable = 0;" > conftest.$ac_ext
14167 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14168 (eval "$ac_compile" 2>conftest.err)
14169 cat conftest.err >&5
14170 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14171 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14172 cat conftest.err >&5
14173 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14174 cat conftest.out >&5
14175 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14176 lt_cv_nm_interface="MS dumpbin"
14177 fi
14178 rm -f conftest*
14179 fi
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14181 $as_echo "$lt_cv_nm_interface" >&6; }
14182
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14184 $as_echo_n "checking whether ln -s works... " >&6; }
14185 LN_S=$as_ln_s
14186 if test "$LN_S" = "ln -s"; then
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14188 $as_echo "yes" >&6; }
14189 else
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14191 $as_echo "no, using $LN_S" >&6; }
14192 fi
14193
14194 # find the maximum length of command line arguments
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14196 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14197 if ${lt_cv_sys_max_cmd_len+:} false; then :
14198 $as_echo_n "(cached) " >&6
14199 else
14200 i=0
14201 teststring="ABCD"
14202
14203 case $build_os in
14204 msdosdjgpp*)
14205 # On DJGPP, this test can blow up pretty badly due to problems in libc
14206 # (any single argument exceeding 2000 bytes causes a buffer overrun
14207 # during glob expansion). Even if it were fixed, the result of this
14208 # check would be larger than it should be.
14209 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14210 ;;
14211
14212 gnu*)
14213 # Under GNU Hurd, this test is not required because there is
14214 # no limit to the length of command line arguments.
14215 # Libtool will interpret -1 as no limit whatsoever
14216 lt_cv_sys_max_cmd_len=-1;
14217 ;;
14218
14219 cygwin* | mingw* | cegcc*)
14220 # On Win9x/ME, this test blows up -- it succeeds, but takes
14221 # about 5 minutes as the teststring grows exponentially.
14222 # Worse, since 9x/ME are not pre-emptively multitasking,
14223 # you end up with a "frozen" computer, even though with patience
14224 # the test eventually succeeds (with a max line length of 256k).
14225 # Instead, let's just punt: use the minimum linelength reported by
14226 # all of the supported platforms: 8192 (on NT/2K/XP).
14227 lt_cv_sys_max_cmd_len=8192;
14228 ;;
14229
14230 mint*)
14231 # On MiNT this can take a long time and run out of memory.
14232 lt_cv_sys_max_cmd_len=8192;
14233 ;;
14234
14235 amigaos*)
14236 # On AmigaOS with pdksh, this test takes hours, literally.
14237 # So we just punt and use a minimum line length of 8192.
14238 lt_cv_sys_max_cmd_len=8192;
14239 ;;
14240
14241 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14242 # This has been around since 386BSD, at least. Likely further.
14243 if test -x /sbin/sysctl; then
14244 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14245 elif test -x /usr/sbin/sysctl; then
14246 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14247 else
14248 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14249 fi
14250 # And add a safety zone
14251 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14253 ;;
14254
14255 interix*)
14256 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14257 lt_cv_sys_max_cmd_len=196608
14258 ;;
14259
14260 osf*)
14261 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14262 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14263 # nice to cause kernel panics so lets avoid the loop below.
14264 # First set a reasonable default.
14265 lt_cv_sys_max_cmd_len=16384
14266 #
14267 if test -x /sbin/sysconfig; then
14268 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14269 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14270 esac
14271 fi
14272 ;;
14273 sco3.2v5*)
14274 lt_cv_sys_max_cmd_len=102400
14275 ;;
14276 sysv5* | sco5v6* | sysv4.2uw2*)
14277 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14278 if test -n "$kargmax"; then
14279 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14280 else
14281 lt_cv_sys_max_cmd_len=32768
14282 fi
14283 ;;
14284 *)
14285 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14286 if test -n "$lt_cv_sys_max_cmd_len"; then
14287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14289 else
14290 # Make teststring a little bigger before we do anything with it.
14291 # a 1K string should be a reasonable start.
14292 for i in 1 2 3 4 5 6 7 8 ; do
14293 teststring=$teststring$teststring
14294 done
14295 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14296 # If test is not a shell built-in, we'll probably end up computing a
14297 # maximum length that is only half of the actual maximum length, but
14298 # we can't tell.
14299 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14300 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14301 test $i != 17 # 1/2 MB should be enough
14302 do
14303 i=`expr $i + 1`
14304 teststring=$teststring$teststring
14305 done
14306 # Only check the string length outside the loop.
14307 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14308 teststring=
14309 # Add a significant safety factor because C++ compilers can tack on
14310 # massive amounts of additional arguments before passing them to the
14311 # linker. It appears as though 1/2 is a usable value.
14312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14313 fi
14314 ;;
14315 esac
14316
14317 fi
14318
14319 if test -n $lt_cv_sys_max_cmd_len ; then
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14321 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14322 else
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14324 $as_echo "none" >&6; }
14325 fi
14326 max_cmd_len=$lt_cv_sys_max_cmd_len
14327
14328
14329
14330
14331
14332
14333 : ${CP="cp -f"}
14334 : ${MV="mv -f"}
14335 : ${RM="rm -f"}
14336
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14338 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14339 # Try some XSI features
14340 xsi_shell=no
14341 ( _lt_dummy="a/b/c"
14342 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14343 = c,a/b,, \
14344 && eval 'test $(( 1 + 1 )) -eq 2 \
14345 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14346 && xsi_shell=yes
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14348 $as_echo "$xsi_shell" >&6; }
14349
14350
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14352 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14353 lt_shell_append=no
14354 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14355 >/dev/null 2>&1 \
14356 && lt_shell_append=yes
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14358 $as_echo "$lt_shell_append" >&6; }
14359
14360
14361 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14362 lt_unset=unset
14363 else
14364 lt_unset=false
14365 fi
14366
14367
14368
14369
14370
14371 # test EBCDIC or ASCII
14372 case `echo X|tr X '\101'` in
14373 A) # ASCII based system
14374 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14375 lt_SP2NL='tr \040 \012'
14376 lt_NL2SP='tr \015\012 \040\040'
14377 ;;
14378 *) # EBCDIC based system
14379 lt_SP2NL='tr \100 \n'
14380 lt_NL2SP='tr \r\n \100\100'
14381 ;;
14382 esac
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14393 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14394 if ${lt_cv_ld_reload_flag+:} false; then :
14395 $as_echo_n "(cached) " >&6
14396 else
14397 lt_cv_ld_reload_flag='-r'
14398 fi
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14400 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14401 reload_flag=$lt_cv_ld_reload_flag
14402 case $reload_flag in
14403 "" | " "*) ;;
14404 *) reload_flag=" $reload_flag" ;;
14405 esac
14406 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14407 case $host_os in
14408 darwin*)
14409 if test "$GCC" = yes; then
14410 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14411 else
14412 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14413 fi
14414 ;;
14415 esac
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425 if test -n "$ac_tool_prefix"; then
14426 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14427 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14429 $as_echo_n "checking for $ac_word... " >&6; }
14430 if ${ac_cv_prog_OBJDUMP+:} false; then :
14431 $as_echo_n "(cached) " >&6
14432 else
14433 if test -n "$OBJDUMP"; then
14434 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14435 else
14436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14437 for as_dir in $PATH
14438 do
14439 IFS=$as_save_IFS
14440 test -z "$as_dir" && as_dir=.
14441 for ac_exec_ext in '' $ac_executable_extensions; do
14442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14443 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14445 break 2
14446 fi
14447 done
14448 done
14449 IFS=$as_save_IFS
14450
14451 fi
14452 fi
14453 OBJDUMP=$ac_cv_prog_OBJDUMP
14454 if test -n "$OBJDUMP"; then
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14456 $as_echo "$OBJDUMP" >&6; }
14457 else
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14459 $as_echo "no" >&6; }
14460 fi
14461
14462
14463 fi
14464 if test -z "$ac_cv_prog_OBJDUMP"; then
14465 ac_ct_OBJDUMP=$OBJDUMP
14466 # Extract the first word of "objdump", so it can be a program name with args.
14467 set dummy objdump; ac_word=$2
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14469 $as_echo_n "checking for $ac_word... " >&6; }
14470 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14471 $as_echo_n "(cached) " >&6
14472 else
14473 if test -n "$ac_ct_OBJDUMP"; then
14474 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14475 else
14476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14477 for as_dir in $PATH
14478 do
14479 IFS=$as_save_IFS
14480 test -z "$as_dir" && as_dir=.
14481 for ac_exec_ext in '' $ac_executable_extensions; do
14482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14483 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14485 break 2
14486 fi
14487 done
14488 done
14489 IFS=$as_save_IFS
14490
14491 fi
14492 fi
14493 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14494 if test -n "$ac_ct_OBJDUMP"; then
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14496 $as_echo "$ac_ct_OBJDUMP" >&6; }
14497 else
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14499 $as_echo "no" >&6; }
14500 fi
14501
14502 if test "x$ac_ct_OBJDUMP" = x; then
14503 OBJDUMP="false"
14504 else
14505 case $cross_compiling:$ac_tool_warned in
14506 yes:)
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14509 ac_tool_warned=yes ;;
14510 esac
14511 OBJDUMP=$ac_ct_OBJDUMP
14512 fi
14513 else
14514 OBJDUMP="$ac_cv_prog_OBJDUMP"
14515 fi
14516
14517 test -z "$OBJDUMP" && OBJDUMP=objdump
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14528 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14529 if ${lt_cv_deplibs_check_method+:} false; then :
14530 $as_echo_n "(cached) " >&6
14531 else
14532 lt_cv_file_magic_cmd='$MAGIC_CMD'
14533 lt_cv_file_magic_test_file=
14534 lt_cv_deplibs_check_method='unknown'
14535 # Need to set the preceding variable on all platforms that support
14536 # interlibrary dependencies.
14537 # 'none' -- dependencies not supported.
14538 # `unknown' -- same as none, but documents that we really don't know.
14539 # 'pass_all' -- all dependencies passed with no checks.
14540 # 'test_compile' -- check by making test program.
14541 # 'file_magic [[regex]]' -- check by looking for files in library path
14542 # which responds to the $file_magic_cmd with a given extended regex.
14543 # If you have `file' or equivalent on your system and you're not sure
14544 # whether `pass_all' will *always* work, you probably want this one.
14545
14546 case $host_os in
14547 aix[4-9]*)
14548 lt_cv_deplibs_check_method=pass_all
14549 ;;
14550
14551 beos*)
14552 lt_cv_deplibs_check_method=pass_all
14553 ;;
14554
14555 bsdi[45]*)
14556 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14557 lt_cv_file_magic_cmd='/usr/bin/file -L'
14558 lt_cv_file_magic_test_file=/shlib/libc.so
14559 ;;
14560
14561 cygwin*)
14562 # func_win32_libid is a shell function defined in ltmain.sh
14563 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14564 lt_cv_file_magic_cmd='func_win32_libid'
14565 ;;
14566
14567 mingw* | pw32*)
14568 # Base MSYS/MinGW do not provide the 'file' command needed by
14569 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14570 # unless we find 'file', for example because we are cross-compiling.
14571 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14572 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14573 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14574 lt_cv_file_magic_cmd='func_win32_libid'
14575 else
14576 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14577 lt_cv_file_magic_cmd='$OBJDUMP -f'
14578 fi
14579 ;;
14580
14581 cegcc*)
14582 # use the weaker test based on 'objdump'. See mingw*.
14583 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14584 lt_cv_file_magic_cmd='$OBJDUMP -f'
14585 ;;
14586
14587 darwin* | rhapsody*)
14588 lt_cv_deplibs_check_method=pass_all
14589 ;;
14590
14591 freebsd* | dragonfly*)
14592 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14593 case $host_cpu in
14594 i*86 )
14595 # Not sure whether the presence of OpenBSD here was a mistake.
14596 # Let's accept both of them until this is cleared up.
14597 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14598 lt_cv_file_magic_cmd=/usr/bin/file
14599 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14600 ;;
14601 esac
14602 else
14603 lt_cv_deplibs_check_method=pass_all
14604 fi
14605 ;;
14606
14607 gnu*)
14608 lt_cv_deplibs_check_method=pass_all
14609 ;;
14610
14611 haiku*)
14612 lt_cv_deplibs_check_method=pass_all
14613 ;;
14614
14615 hpux10.20* | hpux11*)
14616 lt_cv_file_magic_cmd=/usr/bin/file
14617 case $host_cpu in
14618 ia64*)
14619 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14620 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14621 ;;
14622 hppa*64*)
14623 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]'
14624 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14625 ;;
14626 *)
14627 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14628 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14629 ;;
14630 esac
14631 ;;
14632
14633 interix[3-9]*)
14634 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14636 ;;
14637
14638 irix5* | irix6* | nonstopux*)
14639 case $LD in
14640 *-32|*"-32 ") libmagic=32-bit;;
14641 *-n32|*"-n32 ") libmagic=N32;;
14642 *-64|*"-64 ") libmagic=64-bit;;
14643 *) libmagic=never-match;;
14644 esac
14645 lt_cv_deplibs_check_method=pass_all
14646 ;;
14647
14648 # This must be Linux ELF.
14649 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14650 lt_cv_deplibs_check_method=pass_all
14651 ;;
14652
14653 netbsd*)
14654 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14656 else
14657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14658 fi
14659 ;;
14660
14661 newos6*)
14662 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14663 lt_cv_file_magic_cmd=/usr/bin/file
14664 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14665 ;;
14666
14667 *nto* | *qnx*)
14668 lt_cv_deplibs_check_method=pass_all
14669 ;;
14670
14671 openbsd*)
14672 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14674 else
14675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14676 fi
14677 ;;
14678
14679 osf3* | osf4* | osf5*)
14680 lt_cv_deplibs_check_method=pass_all
14681 ;;
14682
14683 rdos*)
14684 lt_cv_deplibs_check_method=pass_all
14685 ;;
14686
14687 solaris*)
14688 lt_cv_deplibs_check_method=pass_all
14689 ;;
14690
14691 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14692 lt_cv_deplibs_check_method=pass_all
14693 ;;
14694
14695 sysv4 | sysv4.3*)
14696 case $host_vendor in
14697 motorola)
14698 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]'
14699 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14700 ;;
14701 ncr)
14702 lt_cv_deplibs_check_method=pass_all
14703 ;;
14704 sequent)
14705 lt_cv_file_magic_cmd='/bin/file'
14706 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14707 ;;
14708 sni)
14709 lt_cv_file_magic_cmd='/bin/file'
14710 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14711 lt_cv_file_magic_test_file=/lib/libc.so
14712 ;;
14713 siemens)
14714 lt_cv_deplibs_check_method=pass_all
14715 ;;
14716 pc)
14717 lt_cv_deplibs_check_method=pass_all
14718 ;;
14719 esac
14720 ;;
14721
14722 tpf*)
14723 lt_cv_deplibs_check_method=pass_all
14724 ;;
14725 esac
14726
14727 fi
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14729 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14730 file_magic_cmd=$lt_cv_file_magic_cmd
14731 deplibs_check_method=$lt_cv_deplibs_check_method
14732 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745 if test -n "$ac_tool_prefix"; then
14746 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14747 set dummy ${ac_tool_prefix}ar; ac_word=$2
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14749 $as_echo_n "checking for $ac_word... " >&6; }
14750 if ${ac_cv_prog_AR+:} false; then :
14751 $as_echo_n "(cached) " >&6
14752 else
14753 if test -n "$AR"; then
14754 ac_cv_prog_AR="$AR" # Let the user override the test.
14755 else
14756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14757 for as_dir in $PATH
14758 do
14759 IFS=$as_save_IFS
14760 test -z "$as_dir" && as_dir=.
14761 for ac_exec_ext in '' $ac_executable_extensions; do
14762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14763 ac_cv_prog_AR="${ac_tool_prefix}ar"
14764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14765 break 2
14766 fi
14767 done
14768 done
14769 IFS=$as_save_IFS
14770
14771 fi
14772 fi
14773 AR=$ac_cv_prog_AR
14774 if test -n "$AR"; then
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14776 $as_echo "$AR" >&6; }
14777 else
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14779 $as_echo "no" >&6; }
14780 fi
14781
14782
14783 fi
14784 if test -z "$ac_cv_prog_AR"; then
14785 ac_ct_AR=$AR
14786 # Extract the first word of "ar", so it can be a program name with args.
14787 set dummy ar; ac_word=$2
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14789 $as_echo_n "checking for $ac_word... " >&6; }
14790 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14791 $as_echo_n "(cached) " >&6
14792 else
14793 if test -n "$ac_ct_AR"; then
14794 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14795 else
14796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14797 for as_dir in $PATH
14798 do
14799 IFS=$as_save_IFS
14800 test -z "$as_dir" && as_dir=.
14801 for ac_exec_ext in '' $ac_executable_extensions; do
14802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14803 ac_cv_prog_ac_ct_AR="ar"
14804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14805 break 2
14806 fi
14807 done
14808 done
14809 IFS=$as_save_IFS
14810
14811 fi
14812 fi
14813 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14814 if test -n "$ac_ct_AR"; then
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14816 $as_echo "$ac_ct_AR" >&6; }
14817 else
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14819 $as_echo "no" >&6; }
14820 fi
14821
14822 if test "x$ac_ct_AR" = x; then
14823 AR="false"
14824 else
14825 case $cross_compiling:$ac_tool_warned in
14826 yes:)
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14829 ac_tool_warned=yes ;;
14830 esac
14831 AR=$ac_ct_AR
14832 fi
14833 else
14834 AR="$ac_cv_prog_AR"
14835 fi
14836
14837 test -z "$AR" && AR=ar
14838 test -z "$AR_FLAGS" && AR_FLAGS=cru
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850 if test -n "$ac_tool_prefix"; then
14851 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14852 set dummy ${ac_tool_prefix}strip; ac_word=$2
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14854 $as_echo_n "checking for $ac_word... " >&6; }
14855 if ${ac_cv_prog_STRIP+:} false; then :
14856 $as_echo_n "(cached) " >&6
14857 else
14858 if test -n "$STRIP"; then
14859 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14860 else
14861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14862 for as_dir in $PATH
14863 do
14864 IFS=$as_save_IFS
14865 test -z "$as_dir" && as_dir=.
14866 for ac_exec_ext in '' $ac_executable_extensions; do
14867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14868 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14870 break 2
14871 fi
14872 done
14873 done
14874 IFS=$as_save_IFS
14875
14876 fi
14877 fi
14878 STRIP=$ac_cv_prog_STRIP
14879 if test -n "$STRIP"; then
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14881 $as_echo "$STRIP" >&6; }
14882 else
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14884 $as_echo "no" >&6; }
14885 fi
14886
14887
14888 fi
14889 if test -z "$ac_cv_prog_STRIP"; then
14890 ac_ct_STRIP=$STRIP
14891 # Extract the first word of "strip", so it can be a program name with args.
14892 set dummy strip; ac_word=$2
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14894 $as_echo_n "checking for $ac_word... " >&6; }
14895 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14896 $as_echo_n "(cached) " >&6
14897 else
14898 if test -n "$ac_ct_STRIP"; then
14899 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14900 else
14901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14902 for as_dir in $PATH
14903 do
14904 IFS=$as_save_IFS
14905 test -z "$as_dir" && as_dir=.
14906 for ac_exec_ext in '' $ac_executable_extensions; do
14907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14908 ac_cv_prog_ac_ct_STRIP="strip"
14909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14910 break 2
14911 fi
14912 done
14913 done
14914 IFS=$as_save_IFS
14915
14916 fi
14917 fi
14918 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14919 if test -n "$ac_ct_STRIP"; then
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14921 $as_echo "$ac_ct_STRIP" >&6; }
14922 else
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14924 $as_echo "no" >&6; }
14925 fi
14926
14927 if test "x$ac_ct_STRIP" = x; then
14928 STRIP=":"
14929 else
14930 case $cross_compiling:$ac_tool_warned in
14931 yes:)
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14934 ac_tool_warned=yes ;;
14935 esac
14936 STRIP=$ac_ct_STRIP
14937 fi
14938 else
14939 STRIP="$ac_cv_prog_STRIP"
14940 fi
14941
14942 test -z "$STRIP" && STRIP=:
14943
14944
14945
14946
14947
14948
14949 if test -n "$ac_tool_prefix"; then
14950 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14951 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14953 $as_echo_n "checking for $ac_word... " >&6; }
14954 if ${ac_cv_prog_RANLIB+:} false; then :
14955 $as_echo_n "(cached) " >&6
14956 else
14957 if test -n "$RANLIB"; then
14958 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14959 else
14960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14961 for as_dir in $PATH
14962 do
14963 IFS=$as_save_IFS
14964 test -z "$as_dir" && as_dir=.
14965 for ac_exec_ext in '' $ac_executable_extensions; do
14966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14967 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14969 break 2
14970 fi
14971 done
14972 done
14973 IFS=$as_save_IFS
14974
14975 fi
14976 fi
14977 RANLIB=$ac_cv_prog_RANLIB
14978 if test -n "$RANLIB"; then
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14980 $as_echo "$RANLIB" >&6; }
14981 else
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14983 $as_echo "no" >&6; }
14984 fi
14985
14986
14987 fi
14988 if test -z "$ac_cv_prog_RANLIB"; then
14989 ac_ct_RANLIB=$RANLIB
14990 # Extract the first word of "ranlib", so it can be a program name with args.
14991 set dummy ranlib; ac_word=$2
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14993 $as_echo_n "checking for $ac_word... " >&6; }
14994 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14995 $as_echo_n "(cached) " >&6
14996 else
14997 if test -n "$ac_ct_RANLIB"; then
14998 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14999 else
15000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15001 for as_dir in $PATH
15002 do
15003 IFS=$as_save_IFS
15004 test -z "$as_dir" && as_dir=.
15005 for ac_exec_ext in '' $ac_executable_extensions; do
15006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15007 ac_cv_prog_ac_ct_RANLIB="ranlib"
15008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15009 break 2
15010 fi
15011 done
15012 done
15013 IFS=$as_save_IFS
15014
15015 fi
15016 fi
15017 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15018 if test -n "$ac_ct_RANLIB"; then
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15020 $as_echo "$ac_ct_RANLIB" >&6; }
15021 else
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15023 $as_echo "no" >&6; }
15024 fi
15025
15026 if test "x$ac_ct_RANLIB" = x; then
15027 RANLIB=":"
15028 else
15029 case $cross_compiling:$ac_tool_warned in
15030 yes:)
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15033 ac_tool_warned=yes ;;
15034 esac
15035 RANLIB=$ac_ct_RANLIB
15036 fi
15037 else
15038 RANLIB="$ac_cv_prog_RANLIB"
15039 fi
15040
15041 test -z "$RANLIB" && RANLIB=:
15042
15043
15044
15045
15046
15047
15048 # Determine commands to create old-style static archives.
15049 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15050 old_postinstall_cmds='chmod 644 $oldlib'
15051 old_postuninstall_cmds=
15052
15053 if test -n "$RANLIB"; then
15054 case $host_os in
15055 openbsd*)
15056 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15057 ;;
15058 *)
15059 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15060 ;;
15061 esac
15062 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15063 fi
15064
15065 case $host_os in
15066 darwin*)
15067 lock_old_archive_extraction=yes ;;
15068 *)
15069 lock_old_archive_extraction=no ;;
15070 esac
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110 # If no C compiler was specified, use CC.
15111 LTCC=${LTCC-"$CC"}
15112
15113 # If no C compiler flags were specified, use CFLAGS.
15114 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15115
15116 # Allow CC to be a program name with arguments.
15117 compiler=$CC
15118
15119
15120 # Check for command to grab the raw symbol name followed by C symbol from nm.
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15122 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15123 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15124 $as_echo_n "(cached) " >&6
15125 else
15126
15127 # These are sane defaults that work on at least a few old systems.
15128 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15129
15130 # Character class describing NM global symbol codes.
15131 symcode='[BCDEGRST]'
15132
15133 # Regexp to match symbols that can be accessed directly from C.
15134 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15135
15136 # Define system-specific variables.
15137 case $host_os in
15138 aix*)
15139 symcode='[BCDT]'
15140 ;;
15141 cygwin* | mingw* | pw32* | cegcc*)
15142 symcode='[ABCDGISTW]'
15143 ;;
15144 hpux*)
15145 if test "$host_cpu" = ia64; then
15146 symcode='[ABCDEGRST]'
15147 fi
15148 ;;
15149 irix* | nonstopux*)
15150 symcode='[BCDEGRST]'
15151 ;;
15152 osf*)
15153 symcode='[BCDEGQRST]'
15154 ;;
15155 solaris*)
15156 symcode='[BDRT]'
15157 ;;
15158 sco3.2v5*)
15159 symcode='[DT]'
15160 ;;
15161 sysv4.2uw2*)
15162 symcode='[DT]'
15163 ;;
15164 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15165 symcode='[ABDT]'
15166 ;;
15167 sysv4)
15168 symcode='[DFNSTU]'
15169 ;;
15170 esac
15171
15172 # If we're using GNU nm, then use its standard symbol codes.
15173 case `$NM -V 2>&1` in
15174 *GNU* | *'with BFD'*)
15175 symcode='[ABCDGIRSTW]' ;;
15176 esac
15177
15178 # Transform an extracted symbol line into a proper C declaration.
15179 # Some systems (esp. on ia64) link data and code symbols differently,
15180 # so use this general approach.
15181 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15182
15183 # Transform an extracted symbol line into symbol name and symbol address
15184 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15185 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'"
15186
15187 # Handle CRLF in mingw tool chain
15188 opt_cr=
15189 case $build_os in
15190 mingw*)
15191 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15192 ;;
15193 esac
15194
15195 # Try without a prefix underscore, then with it.
15196 for ac_symprfx in "" "_"; do
15197
15198 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15199 symxfrm="\\1 $ac_symprfx\\2 \\2"
15200
15201 # Write the raw and C identifiers.
15202 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15203 # Fake it for dumpbin and say T for any non-static function
15204 # and D for any global variable.
15205 # Also find C++ and __fastcall symbols from MSVC++,
15206 # which start with @ or ?.
15207 lt_cv_sys_global_symbol_pipe="$AWK '"\
15208 " {last_section=section; section=\$ 3};"\
15209 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15210 " \$ 0!~/External *\|/{next};"\
15211 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15212 " {if(hide[section]) next};"\
15213 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15214 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15215 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15216 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15217 " ' prfx=^$ac_symprfx"
15218 else
15219 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15220 fi
15221
15222 # Check to see that the pipe works correctly.
15223 pipe_works=no
15224
15225 rm -f conftest*
15226 cat > conftest.$ac_ext <<_LT_EOF
15227 #ifdef __cplusplus
15228 extern "C" {
15229 #endif
15230 char nm_test_var;
15231 void nm_test_func(void);
15232 void nm_test_func(void){}
15233 #ifdef __cplusplus
15234 }
15235 #endif
15236 int main(){nm_test_var='a';nm_test_func();return(0);}
15237 _LT_EOF
15238
15239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15240 (eval $ac_compile) 2>&5
15241 ac_status=$?
15242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15243 test $ac_status = 0; }; then
15244 # Now try to grab the symbols.
15245 nlist=conftest.nm
15246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15247 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15248 ac_status=$?
15249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15250 test $ac_status = 0; } && test -s "$nlist"; then
15251 # Try sorting and uniquifying the output.
15252 if sort "$nlist" | uniq > "$nlist"T; then
15253 mv -f "$nlist"T "$nlist"
15254 else
15255 rm -f "$nlist"T
15256 fi
15257
15258 # Make sure that we snagged all the symbols we need.
15259 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15260 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15261 cat <<_LT_EOF > conftest.$ac_ext
15262 #ifdef __cplusplus
15263 extern "C" {
15264 #endif
15265
15266 _LT_EOF
15267 # Now generate the symbol file.
15268 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15269
15270 cat <<_LT_EOF >> conftest.$ac_ext
15271
15272 /* The mapping between symbol names and symbols. */
15273 const struct {
15274 const char *name;
15275 void *address;
15276 }
15277 lt__PROGRAM__LTX_preloaded_symbols[] =
15278 {
15279 { "@PROGRAM@", (void *) 0 },
15280 _LT_EOF
15281 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15282 cat <<\_LT_EOF >> conftest.$ac_ext
15283 {0, (void *) 0}
15284 };
15285
15286 /* This works around a problem in FreeBSD linker */
15287 #ifdef FREEBSD_WORKAROUND
15288 static const void *lt_preloaded_setup() {
15289 return lt__PROGRAM__LTX_preloaded_symbols;
15290 }
15291 #endif
15292
15293 #ifdef __cplusplus
15294 }
15295 #endif
15296 _LT_EOF
15297 # Now try linking the two files.
15298 mv conftest.$ac_objext conftstm.$ac_objext
15299 lt_save_LIBS="$LIBS"
15300 lt_save_CFLAGS="$CFLAGS"
15301 LIBS="conftstm.$ac_objext"
15302 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15304 (eval $ac_link) 2>&5
15305 ac_status=$?
15306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15307 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15308 pipe_works=yes
15309 fi
15310 LIBS="$lt_save_LIBS"
15311 CFLAGS="$lt_save_CFLAGS"
15312 else
15313 echo "cannot find nm_test_func in $nlist" >&5
15314 fi
15315 else
15316 echo "cannot find nm_test_var in $nlist" >&5
15317 fi
15318 else
15319 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15320 fi
15321 else
15322 echo "$progname: failed program was:" >&5
15323 cat conftest.$ac_ext >&5
15324 fi
15325 rm -rf conftest* conftst*
15326
15327 # Do not use the global_symbol_pipe unless it works.
15328 if test "$pipe_works" = yes; then
15329 break
15330 else
15331 lt_cv_sys_global_symbol_pipe=
15332 fi
15333 done
15334
15335 fi
15336
15337 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15338 lt_cv_sys_global_symbol_to_cdecl=
15339 fi
15340 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15342 $as_echo "failed" >&6; }
15343 else
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15345 $as_echo "ok" >&6; }
15346 fi
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369 # Check whether --enable-libtool-lock was given.
15370 if test "${enable_libtool_lock+set}" = set; then :
15371 enableval=$enable_libtool_lock;
15372 fi
15373
15374 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15375
15376 # Some flags need to be propagated to the compiler or linker for good
15377 # libtool support.
15378 case $host in
15379 ia64-*-hpux*)
15380 # Find out which ABI we are using.
15381 echo 'int i;' > conftest.$ac_ext
15382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15383 (eval $ac_compile) 2>&5
15384 ac_status=$?
15385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15386 test $ac_status = 0; }; then
15387 case `/usr/bin/file conftest.$ac_objext` in
15388 *ELF-32*)
15389 HPUX_IA64_MODE="32"
15390 ;;
15391 *ELF-64*)
15392 HPUX_IA64_MODE="64"
15393 ;;
15394 esac
15395 fi
15396 rm -rf conftest*
15397 ;;
15398 *-*-irix6*)
15399 # Find out which ABI we are using.
15400 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15402 (eval $ac_compile) 2>&5
15403 ac_status=$?
15404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15405 test $ac_status = 0; }; then
15406 if test "$lt_cv_prog_gnu_ld" = yes; then
15407 case `/usr/bin/file conftest.$ac_objext` in
15408 *32-bit*)
15409 LD="${LD-ld} -melf32bsmip"
15410 ;;
15411 *N32*)
15412 LD="${LD-ld} -melf32bmipn32"
15413 ;;
15414 *64-bit*)
15415 LD="${LD-ld} -melf64bmip"
15416 ;;
15417 esac
15418 else
15419 case `/usr/bin/file conftest.$ac_objext` in
15420 *32-bit*)
15421 LD="${LD-ld} -32"
15422 ;;
15423 *N32*)
15424 LD="${LD-ld} -n32"
15425 ;;
15426 *64-bit*)
15427 LD="${LD-ld} -64"
15428 ;;
15429 esac
15430 fi
15431 fi
15432 rm -rf conftest*
15433 ;;
15434
15435 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15436 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15437 # Find out which ABI we are using.
15438 echo 'int i;' > conftest.$ac_ext
15439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15440 (eval $ac_compile) 2>&5
15441 ac_status=$?
15442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15443 test $ac_status = 0; }; then
15444 case `/usr/bin/file conftest.o` in
15445 *32-bit*)
15446 case $host in
15447 x86_64-*kfreebsd*-gnu)
15448 LD="${LD-ld} -m elf_i386_fbsd"
15449 ;;
15450 x86_64-*linux*)
15451 case `/usr/bin/file conftest.o` in
15452 *x86-64*)
15453 LD="${LD-ld} -m elf32_x86_64"
15454 ;;
15455 *)
15456 LD="${LD-ld} -m elf_i386"
15457 ;;
15458 esac
15459 ;;
15460 powerpc64le-*linux*)
15461 LD="${LD-ld} -m elf32lppclinux"
15462 ;;
15463 powerpc64-*linux*)
15464 LD="${LD-ld} -m elf32ppclinux"
15465 ;;
15466 s390x-*linux*)
15467 LD="${LD-ld} -m elf_s390"
15468 ;;
15469 sparc64-*linux*)
15470 LD="${LD-ld} -m elf32_sparc"
15471 ;;
15472 esac
15473 ;;
15474 *64-bit*)
15475 case $host in
15476 x86_64-*kfreebsd*-gnu)
15477 LD="${LD-ld} -m elf_x86_64_fbsd"
15478 ;;
15479 x86_64-*linux*)
15480 LD="${LD-ld} -m elf_x86_64"
15481 ;;
15482 powerpcle-*linux*)
15483 LD="${LD-ld} -m elf64lppc"
15484 ;;
15485 powerpc-*linux*)
15486 LD="${LD-ld} -m elf64ppc"
15487 ;;
15488 s390*-*linux*|s390*-*tpf*)
15489 LD="${LD-ld} -m elf64_s390"
15490 ;;
15491 sparc*-*linux*)
15492 LD="${LD-ld} -m elf64_sparc"
15493 ;;
15494 esac
15495 ;;
15496 esac
15497 fi
15498 rm -rf conftest*
15499 ;;
15500
15501 *-*-sco3.2v5*)
15502 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15503 SAVE_CFLAGS="$CFLAGS"
15504 CFLAGS="$CFLAGS -belf"
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15506 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15507 if ${lt_cv_cc_needs_belf+:} false; then :
15508 $as_echo_n "(cached) " >&6
15509 else
15510 ac_ext=c
15511 ac_cpp='$CPP $CPPFLAGS'
15512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15515
15516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15517 /* end confdefs.h. */
15518
15519 int
15520 main ()
15521 {
15522
15523 ;
15524 return 0;
15525 }
15526 _ACEOF
15527 if ac_fn_c_try_link "$LINENO"; then :
15528 lt_cv_cc_needs_belf=yes
15529 else
15530 lt_cv_cc_needs_belf=no
15531 fi
15532 rm -f core conftest.err conftest.$ac_objext \
15533 conftest$ac_exeext conftest.$ac_ext
15534 ac_ext=c
15535 ac_cpp='$CPP $CPPFLAGS'
15536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15539
15540 fi
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15542 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15543 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15544 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15545 CFLAGS="$SAVE_CFLAGS"
15546 fi
15547 ;;
15548 sparc*-*solaris*)
15549 # Find out which ABI we are using.
15550 echo 'int i;' > conftest.$ac_ext
15551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15552 (eval $ac_compile) 2>&5
15553 ac_status=$?
15554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15555 test $ac_status = 0; }; then
15556 case `/usr/bin/file conftest.o` in
15557 *64-bit*)
15558 case $lt_cv_prog_gnu_ld in
15559 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15560 *)
15561 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15562 LD="${LD-ld} -64"
15563 fi
15564 ;;
15565 esac
15566 ;;
15567 esac
15568 fi
15569 rm -rf conftest*
15570 ;;
15571 esac
15572
15573 need_locks="$enable_libtool_lock"
15574
15575
15576 case $host_os in
15577 rhapsody* | darwin*)
15578 if test -n "$ac_tool_prefix"; then
15579 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15580 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15582 $as_echo_n "checking for $ac_word... " >&6; }
15583 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15584 $as_echo_n "(cached) " >&6
15585 else
15586 if test -n "$DSYMUTIL"; then
15587 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15588 else
15589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15590 for as_dir in $PATH
15591 do
15592 IFS=$as_save_IFS
15593 test -z "$as_dir" && as_dir=.
15594 for ac_exec_ext in '' $ac_executable_extensions; do
15595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15596 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15598 break 2
15599 fi
15600 done
15601 done
15602 IFS=$as_save_IFS
15603
15604 fi
15605 fi
15606 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15607 if test -n "$DSYMUTIL"; then
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15609 $as_echo "$DSYMUTIL" >&6; }
15610 else
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15612 $as_echo "no" >&6; }
15613 fi
15614
15615
15616 fi
15617 if test -z "$ac_cv_prog_DSYMUTIL"; then
15618 ac_ct_DSYMUTIL=$DSYMUTIL
15619 # Extract the first word of "dsymutil", so it can be a program name with args.
15620 set dummy dsymutil; ac_word=$2
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15622 $as_echo_n "checking for $ac_word... " >&6; }
15623 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15624 $as_echo_n "(cached) " >&6
15625 else
15626 if test -n "$ac_ct_DSYMUTIL"; then
15627 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15628 else
15629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15630 for as_dir in $PATH
15631 do
15632 IFS=$as_save_IFS
15633 test -z "$as_dir" && as_dir=.
15634 for ac_exec_ext in '' $ac_executable_extensions; do
15635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15636 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15638 break 2
15639 fi
15640 done
15641 done
15642 IFS=$as_save_IFS
15643
15644 fi
15645 fi
15646 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15647 if test -n "$ac_ct_DSYMUTIL"; then
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15649 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15650 else
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15652 $as_echo "no" >&6; }
15653 fi
15654
15655 if test "x$ac_ct_DSYMUTIL" = x; then
15656 DSYMUTIL=":"
15657 else
15658 case $cross_compiling:$ac_tool_warned in
15659 yes:)
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15662 ac_tool_warned=yes ;;
15663 esac
15664 DSYMUTIL=$ac_ct_DSYMUTIL
15665 fi
15666 else
15667 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15668 fi
15669
15670 if test -n "$ac_tool_prefix"; then
15671 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15672 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15674 $as_echo_n "checking for $ac_word... " >&6; }
15675 if ${ac_cv_prog_NMEDIT+:} false; then :
15676 $as_echo_n "(cached) " >&6
15677 else
15678 if test -n "$NMEDIT"; then
15679 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15680 else
15681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15682 for as_dir in $PATH
15683 do
15684 IFS=$as_save_IFS
15685 test -z "$as_dir" && as_dir=.
15686 for ac_exec_ext in '' $ac_executable_extensions; do
15687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15688 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15690 break 2
15691 fi
15692 done
15693 done
15694 IFS=$as_save_IFS
15695
15696 fi
15697 fi
15698 NMEDIT=$ac_cv_prog_NMEDIT
15699 if test -n "$NMEDIT"; then
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15701 $as_echo "$NMEDIT" >&6; }
15702 else
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15704 $as_echo "no" >&6; }
15705 fi
15706
15707
15708 fi
15709 if test -z "$ac_cv_prog_NMEDIT"; then
15710 ac_ct_NMEDIT=$NMEDIT
15711 # Extract the first word of "nmedit", so it can be a program name with args.
15712 set dummy nmedit; ac_word=$2
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15714 $as_echo_n "checking for $ac_word... " >&6; }
15715 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15716 $as_echo_n "(cached) " >&6
15717 else
15718 if test -n "$ac_ct_NMEDIT"; then
15719 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15720 else
15721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15722 for as_dir in $PATH
15723 do
15724 IFS=$as_save_IFS
15725 test -z "$as_dir" && as_dir=.
15726 for ac_exec_ext in '' $ac_executable_extensions; do
15727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15728 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15730 break 2
15731 fi
15732 done
15733 done
15734 IFS=$as_save_IFS
15735
15736 fi
15737 fi
15738 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15739 if test -n "$ac_ct_NMEDIT"; then
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15741 $as_echo "$ac_ct_NMEDIT" >&6; }
15742 else
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15744 $as_echo "no" >&6; }
15745 fi
15746
15747 if test "x$ac_ct_NMEDIT" = x; then
15748 NMEDIT=":"
15749 else
15750 case $cross_compiling:$ac_tool_warned in
15751 yes:)
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15754 ac_tool_warned=yes ;;
15755 esac
15756 NMEDIT=$ac_ct_NMEDIT
15757 fi
15758 else
15759 NMEDIT="$ac_cv_prog_NMEDIT"
15760 fi
15761
15762 if test -n "$ac_tool_prefix"; then
15763 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15764 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15766 $as_echo_n "checking for $ac_word... " >&6; }
15767 if ${ac_cv_prog_LIPO+:} false; then :
15768 $as_echo_n "(cached) " >&6
15769 else
15770 if test -n "$LIPO"; then
15771 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15772 else
15773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15774 for as_dir in $PATH
15775 do
15776 IFS=$as_save_IFS
15777 test -z "$as_dir" && as_dir=.
15778 for ac_exec_ext in '' $ac_executable_extensions; do
15779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15780 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15782 break 2
15783 fi
15784 done
15785 done
15786 IFS=$as_save_IFS
15787
15788 fi
15789 fi
15790 LIPO=$ac_cv_prog_LIPO
15791 if test -n "$LIPO"; then
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15793 $as_echo "$LIPO" >&6; }
15794 else
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15796 $as_echo "no" >&6; }
15797 fi
15798
15799
15800 fi
15801 if test -z "$ac_cv_prog_LIPO"; then
15802 ac_ct_LIPO=$LIPO
15803 # Extract the first word of "lipo", so it can be a program name with args.
15804 set dummy lipo; ac_word=$2
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15806 $as_echo_n "checking for $ac_word... " >&6; }
15807 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15808 $as_echo_n "(cached) " >&6
15809 else
15810 if test -n "$ac_ct_LIPO"; then
15811 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15812 else
15813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15814 for as_dir in $PATH
15815 do
15816 IFS=$as_save_IFS
15817 test -z "$as_dir" && as_dir=.
15818 for ac_exec_ext in '' $ac_executable_extensions; do
15819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15820 ac_cv_prog_ac_ct_LIPO="lipo"
15821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15822 break 2
15823 fi
15824 done
15825 done
15826 IFS=$as_save_IFS
15827
15828 fi
15829 fi
15830 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15831 if test -n "$ac_ct_LIPO"; then
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15833 $as_echo "$ac_ct_LIPO" >&6; }
15834 else
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15836 $as_echo "no" >&6; }
15837 fi
15838
15839 if test "x$ac_ct_LIPO" = x; then
15840 LIPO=":"
15841 else
15842 case $cross_compiling:$ac_tool_warned in
15843 yes:)
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15846 ac_tool_warned=yes ;;
15847 esac
15848 LIPO=$ac_ct_LIPO
15849 fi
15850 else
15851 LIPO="$ac_cv_prog_LIPO"
15852 fi
15853
15854 if test -n "$ac_tool_prefix"; then
15855 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15856 set dummy ${ac_tool_prefix}otool; ac_word=$2
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15858 $as_echo_n "checking for $ac_word... " >&6; }
15859 if ${ac_cv_prog_OTOOL+:} false; then :
15860 $as_echo_n "(cached) " >&6
15861 else
15862 if test -n "$OTOOL"; then
15863 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15864 else
15865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15866 for as_dir in $PATH
15867 do
15868 IFS=$as_save_IFS
15869 test -z "$as_dir" && as_dir=.
15870 for ac_exec_ext in '' $ac_executable_extensions; do
15871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15872 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15874 break 2
15875 fi
15876 done
15877 done
15878 IFS=$as_save_IFS
15879
15880 fi
15881 fi
15882 OTOOL=$ac_cv_prog_OTOOL
15883 if test -n "$OTOOL"; then
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15885 $as_echo "$OTOOL" >&6; }
15886 else
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15888 $as_echo "no" >&6; }
15889 fi
15890
15891
15892 fi
15893 if test -z "$ac_cv_prog_OTOOL"; then
15894 ac_ct_OTOOL=$OTOOL
15895 # Extract the first word of "otool", so it can be a program name with args.
15896 set dummy otool; ac_word=$2
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15898 $as_echo_n "checking for $ac_word... " >&6; }
15899 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15900 $as_echo_n "(cached) " >&6
15901 else
15902 if test -n "$ac_ct_OTOOL"; then
15903 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15904 else
15905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15906 for as_dir in $PATH
15907 do
15908 IFS=$as_save_IFS
15909 test -z "$as_dir" && as_dir=.
15910 for ac_exec_ext in '' $ac_executable_extensions; do
15911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15912 ac_cv_prog_ac_ct_OTOOL="otool"
15913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15914 break 2
15915 fi
15916 done
15917 done
15918 IFS=$as_save_IFS
15919
15920 fi
15921 fi
15922 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15923 if test -n "$ac_ct_OTOOL"; then
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15925 $as_echo "$ac_ct_OTOOL" >&6; }
15926 else
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15928 $as_echo "no" >&6; }
15929 fi
15930
15931 if test "x$ac_ct_OTOOL" = x; then
15932 OTOOL=":"
15933 else
15934 case $cross_compiling:$ac_tool_warned in
15935 yes:)
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15938 ac_tool_warned=yes ;;
15939 esac
15940 OTOOL=$ac_ct_OTOOL
15941 fi
15942 else
15943 OTOOL="$ac_cv_prog_OTOOL"
15944 fi
15945
15946 if test -n "$ac_tool_prefix"; then
15947 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15948 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15950 $as_echo_n "checking for $ac_word... " >&6; }
15951 if ${ac_cv_prog_OTOOL64+:} false; then :
15952 $as_echo_n "(cached) " >&6
15953 else
15954 if test -n "$OTOOL64"; then
15955 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15956 else
15957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15958 for as_dir in $PATH
15959 do
15960 IFS=$as_save_IFS
15961 test -z "$as_dir" && as_dir=.
15962 for ac_exec_ext in '' $ac_executable_extensions; do
15963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15964 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15966 break 2
15967 fi
15968 done
15969 done
15970 IFS=$as_save_IFS
15971
15972 fi
15973 fi
15974 OTOOL64=$ac_cv_prog_OTOOL64
15975 if test -n "$OTOOL64"; then
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15977 $as_echo "$OTOOL64" >&6; }
15978 else
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15980 $as_echo "no" >&6; }
15981 fi
15982
15983
15984 fi
15985 if test -z "$ac_cv_prog_OTOOL64"; then
15986 ac_ct_OTOOL64=$OTOOL64
15987 # Extract the first word of "otool64", so it can be a program name with args.
15988 set dummy otool64; ac_word=$2
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15990 $as_echo_n "checking for $ac_word... " >&6; }
15991 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15992 $as_echo_n "(cached) " >&6
15993 else
15994 if test -n "$ac_ct_OTOOL64"; then
15995 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15996 else
15997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15998 for as_dir in $PATH
15999 do
16000 IFS=$as_save_IFS
16001 test -z "$as_dir" && as_dir=.
16002 for ac_exec_ext in '' $ac_executable_extensions; do
16003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16004 ac_cv_prog_ac_ct_OTOOL64="otool64"
16005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16006 break 2
16007 fi
16008 done
16009 done
16010 IFS=$as_save_IFS
16011
16012 fi
16013 fi
16014 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16015 if test -n "$ac_ct_OTOOL64"; then
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16017 $as_echo "$ac_ct_OTOOL64" >&6; }
16018 else
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16020 $as_echo "no" >&6; }
16021 fi
16022
16023 if test "x$ac_ct_OTOOL64" = x; then
16024 OTOOL64=":"
16025 else
16026 case $cross_compiling:$ac_tool_warned in
16027 yes:)
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16030 ac_tool_warned=yes ;;
16031 esac
16032 OTOOL64=$ac_ct_OTOOL64
16033 fi
16034 else
16035 OTOOL64="$ac_cv_prog_OTOOL64"
16036 fi
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16065 $as_echo_n "checking for -single_module linker flag... " >&6; }
16066 if ${lt_cv_apple_cc_single_mod+:} false; then :
16067 $as_echo_n "(cached) " >&6
16068 else
16069 lt_cv_apple_cc_single_mod=no
16070 if test -z "${LT_MULTI_MODULE}"; then
16071 # By default we will add the -single_module flag. You can override
16072 # by either setting the environment variable LT_MULTI_MODULE
16073 # non-empty at configure time, or by adding -multi_module to the
16074 # link flags.
16075 rm -rf libconftest.dylib*
16076 echo "int foo(void){return 1;}" > conftest.c
16077 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16078 -dynamiclib -Wl,-single_module conftest.c" >&5
16079 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16080 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16081 _lt_result=$?
16082 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16083 lt_cv_apple_cc_single_mod=yes
16084 else
16085 cat conftest.err >&5
16086 fi
16087 rm -rf libconftest.dylib*
16088 rm -f conftest.*
16089 fi
16090 fi
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16092 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16094 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16095 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16096 $as_echo_n "(cached) " >&6
16097 else
16098 lt_cv_ld_exported_symbols_list=no
16099 save_LDFLAGS=$LDFLAGS
16100 echo "_main" > conftest.sym
16101 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h. */
16104
16105 int
16106 main ()
16107 {
16108
16109 ;
16110 return 0;
16111 }
16112 _ACEOF
16113 if ac_fn_c_try_link "$LINENO"; then :
16114 lt_cv_ld_exported_symbols_list=yes
16115 else
16116 lt_cv_ld_exported_symbols_list=no
16117 fi
16118 rm -f core conftest.err conftest.$ac_objext \
16119 conftest$ac_exeext conftest.$ac_ext
16120 LDFLAGS="$save_LDFLAGS"
16121
16122 fi
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16124 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16126 $as_echo_n "checking for -force_load linker flag... " >&6; }
16127 if ${lt_cv_ld_force_load+:} false; then :
16128 $as_echo_n "(cached) " >&6
16129 else
16130 lt_cv_ld_force_load=no
16131 cat > conftest.c << _LT_EOF
16132 int forced_loaded() { return 2;}
16133 _LT_EOF
16134 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16135 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16136 echo "$AR cru libconftest.a conftest.o" >&5
16137 $AR cru libconftest.a conftest.o 2>&5
16138 cat > conftest.c << _LT_EOF
16139 int main() { return 0;}
16140 _LT_EOF
16141 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16142 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16143 _lt_result=$?
16144 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16145 lt_cv_ld_force_load=yes
16146 else
16147 cat conftest.err >&5
16148 fi
16149 rm -f conftest.err libconftest.a conftest conftest.c
16150 rm -rf conftest.dSYM
16151
16152 fi
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16154 $as_echo "$lt_cv_ld_force_load" >&6; }
16155 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16156 # build without first building modern cctools / linker.
16157 case $host_cpu-$host_os in
16158 *-rhapsody* | *-darwin1.[012])
16159 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16160 *-darwin1.*)
16161 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16162 *-darwin*)
16163 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16164 # deployment target is forced to an earlier version.
16165 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16166 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16167 ;;
16168 10.[012][,.]*)
16169 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16170 ;;
16171 *)
16172 ;;
16173 esac
16174 ;;
16175 esac
16176 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16177 _lt_dar_single_mod='$single_module'
16178 fi
16179 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16180 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16181 else
16182 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16183 fi
16184 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
16185 _lt_dsymutil='~$DSYMUTIL $lib || :'
16186 else
16187 _lt_dsymutil=
16188 fi
16189 ;;
16190 esac
16191
16192
16193 for ac_header in dlfcn.h
16194 do :
16195 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16196 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16197 cat >>confdefs.h <<_ACEOF
16198 #define HAVE_DLFCN_H 1
16199 _ACEOF
16200
16201 fi
16202 done
16203
16204
16205
16206
16207
16208 # Set options
16209
16210
16211
16212 enable_dlopen=no
16213
16214
16215 enable_win32_dll=no
16216
16217
16218 # Check whether --enable-shared was given.
16219 if test "${enable_shared+set}" = set; then :
16220 enableval=$enable_shared; p=${PACKAGE-default}
16221 case $enableval in
16222 yes) enable_shared=yes ;;
16223 no) enable_shared=no ;;
16224 *)
16225 enable_shared=no
16226 # Look at the argument we got. We use all the common list separators.
16227 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16228 for pkg in $enableval; do
16229 IFS="$lt_save_ifs"
16230 if test "X$pkg" = "X$p"; then
16231 enable_shared=yes
16232 fi
16233 done
16234 IFS="$lt_save_ifs"
16235 ;;
16236 esac
16237 else
16238 enable_shared=yes
16239 fi
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249 # Check whether --enable-static was given.
16250 if test "${enable_static+set}" = set; then :
16251 enableval=$enable_static; p=${PACKAGE-default}
16252 case $enableval in
16253 yes) enable_static=yes ;;
16254 no) enable_static=no ;;
16255 *)
16256 enable_static=no
16257 # Look at the argument we got. We use all the common list separators.
16258 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16259 for pkg in $enableval; do
16260 IFS="$lt_save_ifs"
16261 if test "X$pkg" = "X$p"; then
16262 enable_static=yes
16263 fi
16264 done
16265 IFS="$lt_save_ifs"
16266 ;;
16267 esac
16268 else
16269 enable_static=yes
16270 fi
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281 # Check whether --with-pic was given.
16282 if test "${with_pic+set}" = set; then :
16283 withval=$with_pic; pic_mode="$withval"
16284 else
16285 pic_mode=default
16286 fi
16287
16288
16289 test -z "$pic_mode" && pic_mode=default
16290
16291
16292
16293
16294
16295
16296
16297 # Check whether --enable-fast-install was given.
16298 if test "${enable_fast_install+set}" = set; then :
16299 enableval=$enable_fast_install; p=${PACKAGE-default}
16300 case $enableval in
16301 yes) enable_fast_install=yes ;;
16302 no) enable_fast_install=no ;;
16303 *)
16304 enable_fast_install=no
16305 # Look at the argument we got. We use all the common list separators.
16306 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16307 for pkg in $enableval; do
16308 IFS="$lt_save_ifs"
16309 if test "X$pkg" = "X$p"; then
16310 enable_fast_install=yes
16311 fi
16312 done
16313 IFS="$lt_save_ifs"
16314 ;;
16315 esac
16316 else
16317 enable_fast_install=yes
16318 fi
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330 # This can be used to rebuild libtool when needed
16331 LIBTOOL_DEPS="$ltmain"
16332
16333 # Always use our own libtool.
16334 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361 test -z "$LN_S" && LN_S="ln -s"
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376 if test -n "${ZSH_VERSION+set}" ; then
16377 setopt NO_GLOB_SUBST
16378 fi
16379
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16381 $as_echo_n "checking for objdir... " >&6; }
16382 if ${lt_cv_objdir+:} false; then :
16383 $as_echo_n "(cached) " >&6
16384 else
16385 rm -f .libs 2>/dev/null
16386 mkdir .libs 2>/dev/null
16387 if test -d .libs; then
16388 lt_cv_objdir=.libs
16389 else
16390 # MS-DOS does not allow filenames that begin with a dot.
16391 lt_cv_objdir=_libs
16392 fi
16393 rmdir .libs 2>/dev/null
16394 fi
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16396 $as_echo "$lt_cv_objdir" >&6; }
16397 objdir=$lt_cv_objdir
16398
16399
16400
16401
16402
16403 cat >>confdefs.h <<_ACEOF
16404 #define LT_OBJDIR "$lt_cv_objdir/"
16405 _ACEOF
16406
16407
16408
16409
16410 case $host_os in
16411 aix3*)
16412 # AIX sometimes has problems with the GCC collect2 program. For some
16413 # reason, if we set the COLLECT_NAMES environment variable, the problems
16414 # vanish in a puff of smoke.
16415 if test "X${COLLECT_NAMES+set}" != Xset; then
16416 COLLECT_NAMES=
16417 export COLLECT_NAMES
16418 fi
16419 ;;
16420 esac
16421
16422 # Global variables:
16423 ofile=libtool
16424 can_build_shared=yes
16425
16426 # All known linkers require a `.a' archive for static linking (except MSVC,
16427 # which needs '.lib').
16428 libext=a
16429
16430 with_gnu_ld="$lt_cv_prog_gnu_ld"
16431
16432 old_CC="$CC"
16433 old_CFLAGS="$CFLAGS"
16434
16435 # Set sane defaults for various variables
16436 test -z "$CC" && CC=cc
16437 test -z "$LTCC" && LTCC=$CC
16438 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16439 test -z "$LD" && LD=ld
16440 test -z "$ac_objext" && ac_objext=o
16441
16442 for cc_temp in $compiler""; do
16443 case $cc_temp in
16444 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16445 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16446 \-*) ;;
16447 *) break;;
16448 esac
16449 done
16450 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16451
16452
16453 # Only perform the check for file, if the check method requires it
16454 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16455 case $deplibs_check_method in
16456 file_magic*)
16457 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16459 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16460 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16461 $as_echo_n "(cached) " >&6
16462 else
16463 case $MAGIC_CMD in
16464 [\\/*] | ?:[\\/]*)
16465 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16466 ;;
16467 *)
16468 lt_save_MAGIC_CMD="$MAGIC_CMD"
16469 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16470 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16471 for ac_dir in $ac_dummy; do
16472 IFS="$lt_save_ifs"
16473 test -z "$ac_dir" && ac_dir=.
16474 if test -f $ac_dir/${ac_tool_prefix}file; then
16475 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16476 if test -n "$file_magic_test_file"; then
16477 case $deplibs_check_method in
16478 "file_magic "*)
16479 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16481 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16482 $EGREP "$file_magic_regex" > /dev/null; then
16483 :
16484 else
16485 cat <<_LT_EOF 1>&2
16486
16487 *** Warning: the command libtool uses to detect shared libraries,
16488 *** $file_magic_cmd, produces output that libtool cannot recognize.
16489 *** The result is that libtool may fail to recognize shared libraries
16490 *** as such. This will affect the creation of libtool libraries that
16491 *** depend on shared libraries, but programs linked with such libtool
16492 *** libraries will work regardless of this problem. Nevertheless, you
16493 *** may want to report the problem to your system manager and/or to
16494 *** bug-libtool@gnu.org
16495
16496 _LT_EOF
16497 fi ;;
16498 esac
16499 fi
16500 break
16501 fi
16502 done
16503 IFS="$lt_save_ifs"
16504 MAGIC_CMD="$lt_save_MAGIC_CMD"
16505 ;;
16506 esac
16507 fi
16508
16509 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16510 if test -n "$MAGIC_CMD"; then
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16512 $as_echo "$MAGIC_CMD" >&6; }
16513 else
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16515 $as_echo "no" >&6; }
16516 fi
16517
16518
16519
16520
16521
16522 if test -z "$lt_cv_path_MAGIC_CMD"; then
16523 if test -n "$ac_tool_prefix"; then
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16525 $as_echo_n "checking for file... " >&6; }
16526 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16527 $as_echo_n "(cached) " >&6
16528 else
16529 case $MAGIC_CMD in
16530 [\\/*] | ?:[\\/]*)
16531 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16532 ;;
16533 *)
16534 lt_save_MAGIC_CMD="$MAGIC_CMD"
16535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16536 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16537 for ac_dir in $ac_dummy; do
16538 IFS="$lt_save_ifs"
16539 test -z "$ac_dir" && ac_dir=.
16540 if test -f $ac_dir/file; then
16541 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16542 if test -n "$file_magic_test_file"; then
16543 case $deplibs_check_method in
16544 "file_magic "*)
16545 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16547 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16548 $EGREP "$file_magic_regex" > /dev/null; then
16549 :
16550 else
16551 cat <<_LT_EOF 1>&2
16552
16553 *** Warning: the command libtool uses to detect shared libraries,
16554 *** $file_magic_cmd, produces output that libtool cannot recognize.
16555 *** The result is that libtool may fail to recognize shared libraries
16556 *** as such. This will affect the creation of libtool libraries that
16557 *** depend on shared libraries, but programs linked with such libtool
16558 *** libraries will work regardless of this problem. Nevertheless, you
16559 *** may want to report the problem to your system manager and/or to
16560 *** bug-libtool@gnu.org
16561
16562 _LT_EOF
16563 fi ;;
16564 esac
16565 fi
16566 break
16567 fi
16568 done
16569 IFS="$lt_save_ifs"
16570 MAGIC_CMD="$lt_save_MAGIC_CMD"
16571 ;;
16572 esac
16573 fi
16574
16575 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16576 if test -n "$MAGIC_CMD"; then
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16578 $as_echo "$MAGIC_CMD" >&6; }
16579 else
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16581 $as_echo "no" >&6; }
16582 fi
16583
16584
16585 else
16586 MAGIC_CMD=:
16587 fi
16588 fi
16589
16590 fi
16591 ;;
16592 esac
16593
16594 # Use C for the default configuration in the libtool script
16595
16596 lt_save_CC="$CC"
16597 ac_ext=c
16598 ac_cpp='$CPP $CPPFLAGS'
16599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16602
16603
16604 # Source file extension for C test sources.
16605 ac_ext=c
16606
16607 # Object file extension for compiled C test sources.
16608 objext=o
16609 objext=$objext
16610
16611 # Code to be used in simple compile tests
16612 lt_simple_compile_test_code="int some_variable = 0;"
16613
16614 # Code to be used in simple link tests
16615 lt_simple_link_test_code='int main(){return(0);}'
16616
16617
16618
16619
16620
16621
16622
16623 # If no C compiler was specified, use CC.
16624 LTCC=${LTCC-"$CC"}
16625
16626 # If no C compiler flags were specified, use CFLAGS.
16627 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16628
16629 # Allow CC to be a program name with arguments.
16630 compiler=$CC
16631
16632 # Save the default compiler, since it gets overwritten when the other
16633 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16634 compiler_DEFAULT=$CC
16635
16636 # save warnings/boilerplate of simple test code
16637 ac_outfile=conftest.$ac_objext
16638 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16639 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16640 _lt_compiler_boilerplate=`cat conftest.err`
16641 $RM conftest*
16642
16643 ac_outfile=conftest.$ac_objext
16644 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16645 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16646 _lt_linker_boilerplate=`cat conftest.err`
16647 $RM -r conftest*
16648
16649
16650 ## CAVEAT EMPTOR:
16651 ## There is no encapsulation within the following macros, do not change
16652 ## the running order or otherwise move them around unless you know exactly
16653 ## what you are doing...
16654 if test -n "$compiler"; then
16655
16656 lt_prog_compiler_no_builtin_flag=
16657
16658 if test "$GCC" = yes; then
16659 case $cc_basename in
16660 nvcc*)
16661 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16662 *)
16663 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16664 esac
16665
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16667 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16668 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16669 $as_echo_n "(cached) " >&6
16670 else
16671 lt_cv_prog_compiler_rtti_exceptions=no
16672 ac_outfile=conftest.$ac_objext
16673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16674 lt_compiler_flag="-fno-rtti -fno-exceptions"
16675 # Insert the option either (1) after the last *FLAGS variable, or
16676 # (2) before a word containing "conftest.", or (3) at the end.
16677 # Note that $ac_compile itself does not contain backslashes and begins
16678 # with a dollar sign (not a hyphen), so the echo should work correctly.
16679 # The option is referenced via a variable to avoid confusing sed.
16680 lt_compile=`echo "$ac_compile" | $SED \
16681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16683 -e 's:$: $lt_compiler_flag:'`
16684 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16685 (eval "$lt_compile" 2>conftest.err)
16686 ac_status=$?
16687 cat conftest.err >&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 if (exit $ac_status) && test -s "$ac_outfile"; then
16690 # The compiler can only warn and ignore the option if not recognized
16691 # So say no if there are warnings other than the usual output.
16692 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16694 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16695 lt_cv_prog_compiler_rtti_exceptions=yes
16696 fi
16697 fi
16698 $RM conftest*
16699
16700 fi
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16702 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16703
16704 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16705 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16706 else
16707 :
16708 fi
16709
16710 fi
16711
16712
16713
16714
16715
16716
16717 lt_prog_compiler_wl=
16718 lt_prog_compiler_pic=
16719 lt_prog_compiler_static=
16720
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16722 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16723
16724 if test "$GCC" = yes; then
16725 lt_prog_compiler_wl='-Wl,'
16726 lt_prog_compiler_static='-static'
16727
16728 case $host_os in
16729 aix*)
16730 # All AIX code is PIC.
16731 if test "$host_cpu" = ia64; then
16732 # AIX 5 now supports IA64 processor
16733 lt_prog_compiler_static='-Bstatic'
16734 fi
16735 lt_prog_compiler_pic='-fPIC'
16736 ;;
16737
16738 amigaos*)
16739 case $host_cpu in
16740 powerpc)
16741 # see comment about AmigaOS4 .so support
16742 lt_prog_compiler_pic='-fPIC'
16743 ;;
16744 m68k)
16745 # FIXME: we need at least 68020 code to build shared libraries, but
16746 # adding the `-m68020' flag to GCC prevents building anything better,
16747 # like `-m68040'.
16748 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16749 ;;
16750 esac
16751 ;;
16752
16753 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16754 # PIC is the default for these OSes.
16755 ;;
16756
16757 mingw* | cygwin* | pw32* | os2* | cegcc*)
16758 # This hack is so that the source file can tell whether it is being
16759 # built for inclusion in a dll (and should export symbols for example).
16760 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16761 # (--disable-auto-import) libraries
16762 lt_prog_compiler_pic='-DDLL_EXPORT'
16763 ;;
16764
16765 darwin* | rhapsody*)
16766 # PIC is the default on this platform
16767 # Common symbols not allowed in MH_DYLIB files
16768 lt_prog_compiler_pic='-fno-common'
16769 ;;
16770
16771 haiku*)
16772 # PIC is the default for Haiku.
16773 # The "-static" flag exists, but is broken.
16774 lt_prog_compiler_static=
16775 ;;
16776
16777 hpux*)
16778 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16779 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16780 # sets the default TLS model and affects inlining.
16781 case $host_cpu in
16782 hppa*64*)
16783 # +Z the default
16784 ;;
16785 *)
16786 lt_prog_compiler_pic='-fPIC'
16787 ;;
16788 esac
16789 ;;
16790
16791 interix[3-9]*)
16792 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16793 # Instead, we relocate shared libraries at runtime.
16794 ;;
16795
16796 msdosdjgpp*)
16797 # Just because we use GCC doesn't mean we suddenly get shared libraries
16798 # on systems that don't support them.
16799 lt_prog_compiler_can_build_shared=no
16800 enable_shared=no
16801 ;;
16802
16803 *nto* | *qnx*)
16804 # QNX uses GNU C++, but need to define -shared option too, otherwise
16805 # it will coredump.
16806 lt_prog_compiler_pic='-fPIC -shared'
16807 ;;
16808
16809 sysv4*MP*)
16810 if test -d /usr/nec; then
16811 lt_prog_compiler_pic=-Kconform_pic
16812 fi
16813 ;;
16814
16815 *)
16816 lt_prog_compiler_pic='-fPIC'
16817 ;;
16818 esac
16819
16820 case $cc_basename in
16821 nvcc*) # Cuda Compiler Driver 2.2
16822 lt_prog_compiler_wl='-Xlinker '
16823 lt_prog_compiler_pic='-Xcompiler -fPIC'
16824 ;;
16825 esac
16826 else
16827 # PORTME Check for flag to pass linker flags through the system compiler.
16828 case $host_os in
16829 aix*)
16830 lt_prog_compiler_wl='-Wl,'
16831 if test "$host_cpu" = ia64; then
16832 # AIX 5 now supports IA64 processor
16833 lt_prog_compiler_static='-Bstatic'
16834 else
16835 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16836 fi
16837 ;;
16838
16839 mingw* | cygwin* | pw32* | os2* | cegcc*)
16840 # This hack is so that the source file can tell whether it is being
16841 # built for inclusion in a dll (and should export symbols for example).
16842 lt_prog_compiler_pic='-DDLL_EXPORT'
16843 ;;
16844
16845 hpux9* | hpux10* | hpux11*)
16846 lt_prog_compiler_wl='-Wl,'
16847 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16848 # not for PA HP-UX.
16849 case $host_cpu in
16850 hppa*64*|ia64*)
16851 # +Z the default
16852 ;;
16853 *)
16854 lt_prog_compiler_pic='+Z'
16855 ;;
16856 esac
16857 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16858 lt_prog_compiler_static='${wl}-a ${wl}archive'
16859 ;;
16860
16861 irix5* | irix6* | nonstopux*)
16862 lt_prog_compiler_wl='-Wl,'
16863 # PIC (with -KPIC) is the default.
16864 lt_prog_compiler_static='-non_shared'
16865 ;;
16866
16867 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16868 case $cc_basename in
16869 # old Intel for x86_64 which still supported -KPIC.
16870 ecc*)
16871 lt_prog_compiler_wl='-Wl,'
16872 lt_prog_compiler_pic='-KPIC'
16873 lt_prog_compiler_static='-static'
16874 ;;
16875 # icc used to be incompatible with GCC.
16876 # ICC 10 doesn't accept -KPIC any more.
16877 icc* | ifort*)
16878 lt_prog_compiler_wl='-Wl,'
16879 lt_prog_compiler_pic='-fPIC'
16880 lt_prog_compiler_static='-static'
16881 ;;
16882 # Lahey Fortran 8.1.
16883 lf95*)
16884 lt_prog_compiler_wl='-Wl,'
16885 lt_prog_compiler_pic='--shared'
16886 lt_prog_compiler_static='--static'
16887 ;;
16888 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16889 # Portland Group compilers (*not* the Pentium gcc compiler,
16890 # which looks to be a dead project)
16891 lt_prog_compiler_wl='-Wl,'
16892 lt_prog_compiler_pic='-fpic'
16893 lt_prog_compiler_static='-Bstatic'
16894 ;;
16895 ccc*)
16896 lt_prog_compiler_wl='-Wl,'
16897 # All Alpha code is PIC.
16898 lt_prog_compiler_static='-non_shared'
16899 ;;
16900 xl* | bgxl* | bgf* | mpixl*)
16901 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16902 lt_prog_compiler_wl='-Wl,'
16903 lt_prog_compiler_pic='-qpic'
16904 lt_prog_compiler_static='-qstaticlink'
16905 ;;
16906 *)
16907 case `$CC -V 2>&1 | sed 5q` in
16908 *Sun\ F* | *Sun*Fortran*)
16909 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16910 lt_prog_compiler_pic='-KPIC'
16911 lt_prog_compiler_static='-Bstatic'
16912 lt_prog_compiler_wl=''
16913 ;;
16914 *Sun\ C*)
16915 # Sun C 5.9
16916 lt_prog_compiler_pic='-KPIC'
16917 lt_prog_compiler_static='-Bstatic'
16918 lt_prog_compiler_wl='-Wl,'
16919 ;;
16920 esac
16921 ;;
16922 esac
16923 ;;
16924
16925 newsos6)
16926 lt_prog_compiler_pic='-KPIC'
16927 lt_prog_compiler_static='-Bstatic'
16928 ;;
16929
16930 *nto* | *qnx*)
16931 # QNX uses GNU C++, but need to define -shared option too, otherwise
16932 # it will coredump.
16933 lt_prog_compiler_pic='-fPIC -shared'
16934 ;;
16935
16936 osf3* | osf4* | osf5*)
16937 lt_prog_compiler_wl='-Wl,'
16938 # All OSF/1 code is PIC.
16939 lt_prog_compiler_static='-non_shared'
16940 ;;
16941
16942 rdos*)
16943 lt_prog_compiler_static='-non_shared'
16944 ;;
16945
16946 solaris*)
16947 lt_prog_compiler_pic='-KPIC'
16948 lt_prog_compiler_static='-Bstatic'
16949 case $cc_basename in
16950 f77* | f90* | f95*)
16951 lt_prog_compiler_wl='-Qoption ld ';;
16952 *)
16953 lt_prog_compiler_wl='-Wl,';;
16954 esac
16955 ;;
16956
16957 sunos4*)
16958 lt_prog_compiler_wl='-Qoption ld '
16959 lt_prog_compiler_pic='-PIC'
16960 lt_prog_compiler_static='-Bstatic'
16961 ;;
16962
16963 sysv4 | sysv4.2uw2* | sysv4.3*)
16964 lt_prog_compiler_wl='-Wl,'
16965 lt_prog_compiler_pic='-KPIC'
16966 lt_prog_compiler_static='-Bstatic'
16967 ;;
16968
16969 sysv4*MP*)
16970 if test -d /usr/nec ;then
16971 lt_prog_compiler_pic='-Kconform_pic'
16972 lt_prog_compiler_static='-Bstatic'
16973 fi
16974 ;;
16975
16976 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16977 lt_prog_compiler_wl='-Wl,'
16978 lt_prog_compiler_pic='-KPIC'
16979 lt_prog_compiler_static='-Bstatic'
16980 ;;
16981
16982 unicos*)
16983 lt_prog_compiler_wl='-Wl,'
16984 lt_prog_compiler_can_build_shared=no
16985 ;;
16986
16987 uts4*)
16988 lt_prog_compiler_pic='-pic'
16989 lt_prog_compiler_static='-Bstatic'
16990 ;;
16991
16992 *)
16993 lt_prog_compiler_can_build_shared=no
16994 ;;
16995 esac
16996 fi
16997
16998 case $host_os in
16999 # For platforms which do not support PIC, -DPIC is meaningless:
17000 *djgpp*)
17001 lt_prog_compiler_pic=
17002 ;;
17003 *)
17004 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17005 ;;
17006 esac
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
17008 $as_echo "$lt_prog_compiler_pic" >&6; }
17009
17010
17011
17012
17013
17014
17015 #
17016 # Check to make sure the PIC flag actually works.
17017 #
17018 if test -n "$lt_prog_compiler_pic"; then
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17020 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17021 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17022 $as_echo_n "(cached) " >&6
17023 else
17024 lt_cv_prog_compiler_pic_works=no
17025 ac_outfile=conftest.$ac_objext
17026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17027 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17028 # Insert the option either (1) after the last *FLAGS variable, or
17029 # (2) before a word containing "conftest.", or (3) at the end.
17030 # Note that $ac_compile itself does not contain backslashes and begins
17031 # with a dollar sign (not a hyphen), so the echo should work correctly.
17032 # The option is referenced via a variable to avoid confusing sed.
17033 lt_compile=`echo "$ac_compile" | $SED \
17034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17036 -e 's:$: $lt_compiler_flag:'`
17037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17038 (eval "$lt_compile" 2>conftest.err)
17039 ac_status=$?
17040 cat conftest.err >&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 if (exit $ac_status) && test -s "$ac_outfile"; then
17043 # The compiler can only warn and ignore the option if not recognized
17044 # So say no if there are warnings other than the usual output.
17045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17047 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17048 lt_cv_prog_compiler_pic_works=yes
17049 fi
17050 fi
17051 $RM conftest*
17052
17053 fi
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17055 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17056
17057 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17058 case $lt_prog_compiler_pic in
17059 "" | " "*) ;;
17060 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17061 esac
17062 else
17063 lt_prog_compiler_pic=
17064 lt_prog_compiler_can_build_shared=no
17065 fi
17066
17067 fi
17068
17069
17070
17071
17072
17073
17074 #
17075 # Check to make sure the static flag actually works.
17076 #
17077 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17079 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17080 if ${lt_cv_prog_compiler_static_works+:} false; then :
17081 $as_echo_n "(cached) " >&6
17082 else
17083 lt_cv_prog_compiler_static_works=no
17084 save_LDFLAGS="$LDFLAGS"
17085 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17086 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17087 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17088 # The linker can only warn and ignore the option if not recognized
17089 # So say no if there are warnings
17090 if test -s conftest.err; then
17091 # Append any errors to the config.log.
17092 cat conftest.err 1>&5
17093 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17095 if diff conftest.exp conftest.er2 >/dev/null; then
17096 lt_cv_prog_compiler_static_works=yes
17097 fi
17098 else
17099 lt_cv_prog_compiler_static_works=yes
17100 fi
17101 fi
17102 $RM -r conftest*
17103 LDFLAGS="$save_LDFLAGS"
17104
17105 fi
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17107 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17108
17109 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17110 :
17111 else
17112 lt_prog_compiler_static=
17113 fi
17114
17115
17116
17117
17118
17119
17120
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17122 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17123 if ${lt_cv_prog_compiler_c_o+:} false; then :
17124 $as_echo_n "(cached) " >&6
17125 else
17126 lt_cv_prog_compiler_c_o=no
17127 $RM -r conftest 2>/dev/null
17128 mkdir conftest
17129 cd conftest
17130 mkdir out
17131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17132
17133 lt_compiler_flag="-o out/conftest2.$ac_objext"
17134 # Insert the option either (1) after the last *FLAGS variable, or
17135 # (2) before a word containing "conftest.", or (3) at the end.
17136 # Note that $ac_compile itself does not contain backslashes and begins
17137 # with a dollar sign (not a hyphen), so the echo should work correctly.
17138 lt_compile=`echo "$ac_compile" | $SED \
17139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17141 -e 's:$: $lt_compiler_flag:'`
17142 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17143 (eval "$lt_compile" 2>out/conftest.err)
17144 ac_status=$?
17145 cat out/conftest.err >&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17148 then
17149 # The compiler can only warn and ignore the option if not recognized
17150 # So say no if there are warnings
17151 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17152 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17153 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17154 lt_cv_prog_compiler_c_o=yes
17155 fi
17156 fi
17157 chmod u+w . 2>&5
17158 $RM conftest*
17159 # SGI C++ compiler will create directory out/ii_files/ for
17160 # template instantiation
17161 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17162 $RM out/* && rmdir out
17163 cd ..
17164 $RM -r conftest
17165 $RM conftest*
17166
17167 fi
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17169 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17170
17171
17172
17173
17174
17175
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17177 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17178 if ${lt_cv_prog_compiler_c_o+:} false; then :
17179 $as_echo_n "(cached) " >&6
17180 else
17181 lt_cv_prog_compiler_c_o=no
17182 $RM -r conftest 2>/dev/null
17183 mkdir conftest
17184 cd conftest
17185 mkdir out
17186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17187
17188 lt_compiler_flag="-o out/conftest2.$ac_objext"
17189 # Insert the option either (1) after the last *FLAGS variable, or
17190 # (2) before a word containing "conftest.", or (3) at the end.
17191 # Note that $ac_compile itself does not contain backslashes and begins
17192 # with a dollar sign (not a hyphen), so the echo should work correctly.
17193 lt_compile=`echo "$ac_compile" | $SED \
17194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17196 -e 's:$: $lt_compiler_flag:'`
17197 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17198 (eval "$lt_compile" 2>out/conftest.err)
17199 ac_status=$?
17200 cat out/conftest.err >&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17203 then
17204 # The compiler can only warn and ignore the option if not recognized
17205 # So say no if there are warnings
17206 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17207 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17208 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17209 lt_cv_prog_compiler_c_o=yes
17210 fi
17211 fi
17212 chmod u+w . 2>&5
17213 $RM conftest*
17214 # SGI C++ compiler will create directory out/ii_files/ for
17215 # template instantiation
17216 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17217 $RM out/* && rmdir out
17218 cd ..
17219 $RM -r conftest
17220 $RM conftest*
17221
17222 fi
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17224 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17225
17226
17227
17228
17229 hard_links="nottested"
17230 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17231 # do not overwrite the value of need_locks provided by the user
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17233 $as_echo_n "checking if we can lock with hard links... " >&6; }
17234 hard_links=yes
17235 $RM conftest*
17236 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17237 touch conftest.a
17238 ln conftest.a conftest.b 2>&5 || hard_links=no
17239 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17241 $as_echo "$hard_links" >&6; }
17242 if test "$hard_links" = no; then
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17244 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17245 need_locks=warn
17246 fi
17247 else
17248 need_locks=no
17249 fi
17250
17251
17252
17253
17254
17255
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17257 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17258
17259 runpath_var=
17260 allow_undefined_flag=
17261 always_export_symbols=no
17262 archive_cmds=
17263 archive_expsym_cmds=
17264 compiler_needs_object=no
17265 enable_shared_with_static_runtimes=no
17266 export_dynamic_flag_spec=
17267 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17268 hardcode_automatic=no
17269 hardcode_direct=no
17270 hardcode_direct_absolute=no
17271 hardcode_libdir_flag_spec=
17272 hardcode_libdir_flag_spec_ld=
17273 hardcode_libdir_separator=
17274 hardcode_minus_L=no
17275 hardcode_shlibpath_var=unsupported
17276 inherit_rpath=no
17277 link_all_deplibs=unknown
17278 module_cmds=
17279 module_expsym_cmds=
17280 old_archive_from_new_cmds=
17281 old_archive_from_expsyms_cmds=
17282 thread_safe_flag_spec=
17283 whole_archive_flag_spec=
17284 # include_expsyms should be a list of space-separated symbols to be *always*
17285 # included in the symbol list
17286 include_expsyms=
17287 # exclude_expsyms can be an extended regexp of symbols to exclude
17288 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17289 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17290 # as well as any symbol that contains `d'.
17291 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17292 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17293 # platforms (ab)use it in PIC code, but their linkers get confused if
17294 # the symbol is explicitly referenced. Since portable code cannot
17295 # rely on this symbol name, it's probably fine to never include it in
17296 # preloaded symbol tables.
17297 # Exclude shared library initialization/finalization symbols.
17298 extract_expsyms_cmds=
17299
17300 case $host_os in
17301 cygwin* | mingw* | pw32* | cegcc*)
17302 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17303 # When not using gcc, we currently assume that we are using
17304 # Microsoft Visual C++.
17305 if test "$GCC" != yes; then
17306 with_gnu_ld=no
17307 fi
17308 ;;
17309 interix*)
17310 # we just hope/assume this is gcc and not c89 (= MSVC++)
17311 with_gnu_ld=yes
17312 ;;
17313 openbsd*)
17314 with_gnu_ld=no
17315 ;;
17316 esac
17317
17318 ld_shlibs=yes
17319
17320 # On some targets, GNU ld is compatible enough with the native linker
17321 # that we're better off using the native interface for both.
17322 lt_use_gnu_ld_interface=no
17323 if test "$with_gnu_ld" = yes; then
17324 case $host_os in
17325 aix*)
17326 # The AIX port of GNU ld has always aspired to compatibility
17327 # with the native linker. However, as the warning in the GNU ld
17328 # block says, versions before 2.19.5* couldn't really create working
17329 # shared libraries, regardless of the interface used.
17330 case `$LD -v 2>&1` in
17331 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17332 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17333 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17334 *)
17335 lt_use_gnu_ld_interface=yes
17336 ;;
17337 esac
17338 ;;
17339 *)
17340 lt_use_gnu_ld_interface=yes
17341 ;;
17342 esac
17343 fi
17344
17345 if test "$lt_use_gnu_ld_interface" = yes; then
17346 # If archive_cmds runs LD, not CC, wlarc should be empty
17347 wlarc='${wl}'
17348
17349 # Set some defaults for GNU ld with shared library support. These
17350 # are reset later if shared libraries are not supported. Putting them
17351 # here allows them to be overridden if necessary.
17352 runpath_var=LD_RUN_PATH
17353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17354 export_dynamic_flag_spec='${wl}--export-dynamic'
17355 # ancient GNU ld didn't support --whole-archive et. al.
17356 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17357 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17358 else
17359 whole_archive_flag_spec=
17360 fi
17361 supports_anon_versioning=no
17362 case `$LD -v 2>&1` in
17363 *GNU\ gold*) supports_anon_versioning=yes ;;
17364 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17365 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17366 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17367 *\ 2.11.*) ;; # other 2.11 versions
17368 *) supports_anon_versioning=yes ;;
17369 esac
17370
17371 # See if GNU ld supports shared libraries.
17372 case $host_os in
17373 aix[3-9]*)
17374 # On AIX/PPC, the GNU linker is very broken
17375 if test "$host_cpu" != ia64; then
17376 ld_shlibs=no
17377 cat <<_LT_EOF 1>&2
17378
17379 *** Warning: the GNU linker, at least up to release 2.19, is reported
17380 *** to be unable to reliably create shared libraries on AIX.
17381 *** Therefore, libtool is disabling shared libraries support. If you
17382 *** really care for shared libraries, you may want to install binutils
17383 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17384 *** You will then need to restart the configuration process.
17385
17386 _LT_EOF
17387 fi
17388 ;;
17389
17390 amigaos*)
17391 case $host_cpu in
17392 powerpc)
17393 # see comment about AmigaOS4 .so support
17394 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17395 archive_expsym_cmds=''
17396 ;;
17397 m68k)
17398 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)'
17399 hardcode_libdir_flag_spec='-L$libdir'
17400 hardcode_minus_L=yes
17401 ;;
17402 esac
17403 ;;
17404
17405 beos*)
17406 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17407 allow_undefined_flag=unsupported
17408 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17409 # support --undefined. This deserves some investigation. FIXME
17410 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17411 else
17412 ld_shlibs=no
17413 fi
17414 ;;
17415
17416 cygwin* | mingw* | pw32* | cegcc*)
17417 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17418 # as there is no search path for DLLs.
17419 hardcode_libdir_flag_spec='-L$libdir'
17420 export_dynamic_flag_spec='${wl}--export-all-symbols'
17421 allow_undefined_flag=unsupported
17422 always_export_symbols=no
17423 enable_shared_with_static_runtimes=yes
17424 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17425
17426 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17428 # If the export-symbols file already is a .def file (1st line
17429 # is EXPORTS), use it as is; otherwise, prepend...
17430 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17431 cp $export_symbols $output_objdir/$soname.def;
17432 else
17433 echo EXPORTS > $output_objdir/$soname.def;
17434 cat $export_symbols >> $output_objdir/$soname.def;
17435 fi~
17436 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17437 else
17438 ld_shlibs=no
17439 fi
17440 ;;
17441
17442 haiku*)
17443 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17444 link_all_deplibs=yes
17445 ;;
17446
17447 interix[3-9]*)
17448 hardcode_direct=no
17449 hardcode_shlibpath_var=no
17450 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17451 export_dynamic_flag_spec='${wl}-E'
17452 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17453 # Instead, shared libraries are loaded at an image base (0x10000000 by
17454 # default) and relocated if they conflict, which is a slow very memory
17455 # consuming and fragmenting process. To avoid this, we pick a random,
17456 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17457 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17458 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17459 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'
17460 ;;
17461
17462 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17463 tmp_diet=no
17464 if test "$host_os" = linux-dietlibc; then
17465 case $cc_basename in
17466 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17467 esac
17468 fi
17469 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17470 && test "$tmp_diet" = no
17471 then
17472 tmp_addflag=' $pic_flag'
17473 tmp_sharedflag='-shared'
17474 case $cc_basename,$host_cpu in
17475 pgcc*) # Portland Group C compiler
17476 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'
17477 tmp_addflag=' $pic_flag'
17478 ;;
17479 pgf77* | pgf90* | pgf95* | pgfortran*)
17480 # Portland Group f77 and f90 compilers
17481 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'
17482 tmp_addflag=' $pic_flag -Mnomain' ;;
17483 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17484 tmp_addflag=' -i_dynamic' ;;
17485 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17486 tmp_addflag=' -i_dynamic -nofor_main' ;;
17487 ifc* | ifort*) # Intel Fortran compiler
17488 tmp_addflag=' -nofor_main' ;;
17489 lf95*) # Lahey Fortran 8.1
17490 whole_archive_flag_spec=
17491 tmp_sharedflag='--shared' ;;
17492 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17493 tmp_sharedflag='-qmkshrobj'
17494 tmp_addflag= ;;
17495 nvcc*) # Cuda Compiler Driver 2.2
17496 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'
17497 compiler_needs_object=yes
17498 ;;
17499 esac
17500 case `$CC -V 2>&1 | sed 5q` in
17501 *Sun\ C*) # Sun C 5.9
17502 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'
17503 compiler_needs_object=yes
17504 tmp_sharedflag='-G' ;;
17505 *Sun\ F*) # Sun Fortran 8.3
17506 tmp_sharedflag='-G' ;;
17507 esac
17508 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17509
17510 if test "x$supports_anon_versioning" = xyes; then
17511 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17512 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17513 echo "local: *; };" >> $output_objdir/$libname.ver~
17514 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17515 fi
17516
17517 case $cc_basename in
17518 xlf* | bgf* | bgxlf* | mpixlf*)
17519 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17520 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17521 hardcode_libdir_flag_spec=
17522 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17523 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17524 if test "x$supports_anon_versioning" = xyes; then
17525 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17526 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17527 echo "local: *; };" >> $output_objdir/$libname.ver~
17528 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17529 fi
17530 ;;
17531 esac
17532 else
17533 ld_shlibs=no
17534 fi
17535 ;;
17536
17537 netbsd*)
17538 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17539 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17540 wlarc=
17541 else
17542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17543 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17544 fi
17545 ;;
17546
17547 solaris*)
17548 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17549 ld_shlibs=no
17550 cat <<_LT_EOF 1>&2
17551
17552 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17553 *** create shared libraries on Solaris systems. Therefore, libtool
17554 *** is disabling shared libraries support. We urge you to upgrade GNU
17555 *** binutils to release 2.9.1 or newer. Another option is to modify
17556 *** your PATH or compiler configuration so that the native linker is
17557 *** used, and then restart.
17558
17559 _LT_EOF
17560 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17561 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17562 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17563 else
17564 ld_shlibs=no
17565 fi
17566 ;;
17567
17568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17569 case `$LD -v 2>&1` in
17570 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17571 ld_shlibs=no
17572 cat <<_LT_EOF 1>&2
17573
17574 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17575 *** reliably create shared libraries on SCO systems. Therefore, libtool
17576 *** is disabling shared libraries support. We urge you to upgrade GNU
17577 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17578 *** your PATH or compiler configuration so that the native linker is
17579 *** used, and then restart.
17580
17581 _LT_EOF
17582 ;;
17583 *)
17584 # For security reasons, it is highly recommended that you always
17585 # use absolute paths for naming shared libraries, and exclude the
17586 # DT_RUNPATH tag from executables and libraries. But doing so
17587 # requires that you compile everything twice, which is a pain.
17588 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17591 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17592 else
17593 ld_shlibs=no
17594 fi
17595 ;;
17596 esac
17597 ;;
17598
17599 sunos4*)
17600 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17601 wlarc=
17602 hardcode_direct=yes
17603 hardcode_shlibpath_var=no
17604 ;;
17605
17606 *)
17607 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17609 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17610 else
17611 ld_shlibs=no
17612 fi
17613 ;;
17614 esac
17615
17616 if test "$ld_shlibs" = no; then
17617 runpath_var=
17618 hardcode_libdir_flag_spec=
17619 export_dynamic_flag_spec=
17620 whole_archive_flag_spec=
17621 fi
17622 else
17623 # PORTME fill in a description of your system's linker (not GNU ld)
17624 case $host_os in
17625 aix3*)
17626 allow_undefined_flag=unsupported
17627 always_export_symbols=yes
17628 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'
17629 # Note: this linker hardcodes the directories in LIBPATH if there
17630 # are no directories specified by -L.
17631 hardcode_minus_L=yes
17632 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17633 # Neither direct hardcoding nor static linking is supported with a
17634 # broken collect2.
17635 hardcode_direct=unsupported
17636 fi
17637 ;;
17638
17639 aix[4-9]*)
17640 if test "$host_cpu" = ia64; then
17641 # On IA64, the linker does run time linking by default, so we don't
17642 # have to do anything special.
17643 aix_use_runtimelinking=no
17644 exp_sym_flag='-Bexport'
17645 no_entry_flag=""
17646 else
17647 # If we're using GNU nm, then we don't want the "-C" option.
17648 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17649 # Also, AIX nm treats weak defined symbols like other global
17650 # defined symbols, whereas GNU nm marks them as "W".
17651 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17652 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'
17653 else
17654 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'
17655 fi
17656 aix_use_runtimelinking=no
17657
17658 # Test if we are trying to use run time linking or normal
17659 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17660 # need to do runtime linking.
17661 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17662 for ld_flag in $LDFLAGS; do
17663 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17664 aix_use_runtimelinking=yes
17665 break
17666 fi
17667 done
17668 ;;
17669 esac
17670
17671 exp_sym_flag='-bexport'
17672 no_entry_flag='-bnoentry'
17673 fi
17674
17675 # When large executables or shared objects are built, AIX ld can
17676 # have problems creating the table of contents. If linking a library
17677 # or program results in "error TOC overflow" add -mminimal-toc to
17678 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17679 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17680
17681 archive_cmds=''
17682 hardcode_direct=yes
17683 hardcode_direct_absolute=yes
17684 hardcode_libdir_separator=':'
17685 link_all_deplibs=yes
17686 file_list_spec='${wl}-f,'
17687
17688 if test "$GCC" = yes; then
17689 case $host_os in aix4.[012]|aix4.[012].*)
17690 # We only want to do this on AIX 4.2 and lower, the check
17691 # below for broken collect2 doesn't work under 4.3+
17692 collect2name=`${CC} -print-prog-name=collect2`
17693 if test -f "$collect2name" &&
17694 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17695 then
17696 # We have reworked collect2
17697 :
17698 else
17699 # We have old collect2
17700 hardcode_direct=unsupported
17701 # It fails to find uninstalled libraries when the uninstalled
17702 # path is not listed in the libpath. Setting hardcode_minus_L
17703 # to unsupported forces relinking
17704 hardcode_minus_L=yes
17705 hardcode_libdir_flag_spec='-L$libdir'
17706 hardcode_libdir_separator=
17707 fi
17708 ;;
17709 esac
17710 shared_flag='-shared'
17711 if test "$aix_use_runtimelinking" = yes; then
17712 shared_flag="$shared_flag "'${wl}-G'
17713 fi
17714 else
17715 # not using gcc
17716 if test "$host_cpu" = ia64; then
17717 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17718 # chokes on -Wl,-G. The following line is correct:
17719 shared_flag='-G'
17720 else
17721 if test "$aix_use_runtimelinking" = yes; then
17722 shared_flag='${wl}-G'
17723 else
17724 shared_flag='${wl}-bM:SRE'
17725 fi
17726 fi
17727 fi
17728
17729 export_dynamic_flag_spec='${wl}-bexpall'
17730 # It seems that -bexpall does not export symbols beginning with
17731 # underscore (_), so it is better to generate a list of symbols to export.
17732 always_export_symbols=yes
17733 if test "$aix_use_runtimelinking" = yes; then
17734 # Warning - without using the other runtime loading flags (-brtl),
17735 # -berok will link without error, but may produce a broken library.
17736 allow_undefined_flag='-berok'
17737 # Determine the default libpath from the value encoded in an
17738 # empty executable.
17739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17740 /* end confdefs.h. */
17741
17742 int
17743 main ()
17744 {
17745
17746 ;
17747 return 0;
17748 }
17749 _ACEOF
17750 if ac_fn_c_try_link "$LINENO"; then :
17751
17752 lt_aix_libpath_sed='
17753 /Import File Strings/,/^$/ {
17754 /^0/ {
17755 s/^0 *\(.*\)$/\1/
17756 p
17757 }
17758 }'
17759 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17760 # Check for a 64-bit object if we didn't find anything.
17761 if test -z "$aix_libpath"; then
17762 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17763 fi
17764 fi
17765 rm -f core conftest.err conftest.$ac_objext \
17766 conftest$ac_exeext conftest.$ac_ext
17767 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17768
17769 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17770 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"
17771 else
17772 if test "$host_cpu" = ia64; then
17773 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17774 allow_undefined_flag="-z nodefs"
17775 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"
17776 else
17777 # Determine the default libpath from the value encoded in an
17778 # empty executable.
17779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17780 /* end confdefs.h. */
17781
17782 int
17783 main ()
17784 {
17785
17786 ;
17787 return 0;
17788 }
17789 _ACEOF
17790 if ac_fn_c_try_link "$LINENO"; then :
17791
17792 lt_aix_libpath_sed='
17793 /Import File Strings/,/^$/ {
17794 /^0/ {
17795 s/^0 *\(.*\)$/\1/
17796 p
17797 }
17798 }'
17799 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17800 # Check for a 64-bit object if we didn't find anything.
17801 if test -z "$aix_libpath"; then
17802 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17803 fi
17804 fi
17805 rm -f core conftest.err conftest.$ac_objext \
17806 conftest$ac_exeext conftest.$ac_ext
17807 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17808
17809 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17810 # Warning - without using the other run time loading flags,
17811 # -berok will link without error, but may produce a broken library.
17812 no_undefined_flag=' ${wl}-bernotok'
17813 allow_undefined_flag=' ${wl}-berok'
17814 if test "$with_gnu_ld" = yes; then
17815 # We only use this code for GNU lds that support --whole-archive.
17816 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17817 else
17818 # Exported symbols can be pulled into shared objects from archives
17819 whole_archive_flag_spec='$convenience'
17820 fi
17821 archive_cmds_need_lc=yes
17822 # This is similar to how AIX traditionally builds its shared libraries.
17823 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'
17824 fi
17825 fi
17826 ;;
17827
17828 amigaos*)
17829 case $host_cpu in
17830 powerpc)
17831 # see comment about AmigaOS4 .so support
17832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17833 archive_expsym_cmds=''
17834 ;;
17835 m68k)
17836 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)'
17837 hardcode_libdir_flag_spec='-L$libdir'
17838 hardcode_minus_L=yes
17839 ;;
17840 esac
17841 ;;
17842
17843 bsdi[45]*)
17844 export_dynamic_flag_spec=-rdynamic
17845 ;;
17846
17847 cygwin* | mingw* | pw32* | cegcc*)
17848 # When not using gcc, we currently assume that we are using
17849 # Microsoft Visual C++.
17850 # hardcode_libdir_flag_spec is actually meaningless, as there is
17851 # no search path for DLLs.
17852 hardcode_libdir_flag_spec=' '
17853 allow_undefined_flag=unsupported
17854 # Tell ltmain to make .lib files, not .a files.
17855 libext=lib
17856 # Tell ltmain to make .dll files, not .so files.
17857 shrext_cmds=".dll"
17858 # FIXME: Setting linknames here is a bad hack.
17859 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17860 # The linker will automatically build a .lib file if we build a DLL.
17861 old_archive_from_new_cmds='true'
17862 # FIXME: Should let the user specify the lib program.
17863 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17864 fix_srcfile_path='`cygpath -w "$srcfile"`'
17865 enable_shared_with_static_runtimes=yes
17866 ;;
17867
17868 darwin* | rhapsody*)
17869
17870
17871 archive_cmds_need_lc=no
17872 hardcode_direct=no
17873 hardcode_automatic=yes
17874 hardcode_shlibpath_var=unsupported
17875 if test "$lt_cv_ld_force_load" = "yes"; then
17876 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\"`'
17877 else
17878 whole_archive_flag_spec=''
17879 fi
17880 link_all_deplibs=yes
17881 allow_undefined_flag="$_lt_dar_allow_undefined"
17882 case $cc_basename in
17883 ifort*) _lt_dar_can_shared=yes ;;
17884 *) _lt_dar_can_shared=$GCC ;;
17885 esac
17886 if test "$_lt_dar_can_shared" = "yes"; then
17887 output_verbose_link_cmd=func_echo_all
17888 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17889 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17890 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}"
17891 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}"
17892
17893 else
17894 ld_shlibs=no
17895 fi
17896
17897 ;;
17898
17899 dgux*)
17900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17901 hardcode_libdir_flag_spec='-L$libdir'
17902 hardcode_shlibpath_var=no
17903 ;;
17904
17905 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17906 # support. Future versions do this automatically, but an explicit c++rt0.o
17907 # does not break anything, and helps significantly (at the cost of a little
17908 # extra space).
17909 freebsd2.2*)
17910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17911 hardcode_libdir_flag_spec='-R$libdir'
17912 hardcode_direct=yes
17913 hardcode_shlibpath_var=no
17914 ;;
17915
17916 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17917 freebsd2.*)
17918 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17919 hardcode_direct=yes
17920 hardcode_minus_L=yes
17921 hardcode_shlibpath_var=no
17922 ;;
17923
17924 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17925 freebsd* | dragonfly*)
17926 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17927 hardcode_libdir_flag_spec='-R$libdir'
17928 hardcode_direct=yes
17929 hardcode_shlibpath_var=no
17930 ;;
17931
17932 hpux9*)
17933 if test "$GCC" = yes; then
17934 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'
17935 else
17936 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'
17937 fi
17938 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17939 hardcode_libdir_separator=:
17940 hardcode_direct=yes
17941
17942 # hardcode_minus_L: Not really in the search PATH,
17943 # but as the default location of the library.
17944 hardcode_minus_L=yes
17945 export_dynamic_flag_spec='${wl}-E'
17946 ;;
17947
17948 hpux10*)
17949 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17950 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17951 else
17952 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17953 fi
17954 if test "$with_gnu_ld" = no; then
17955 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17956 hardcode_libdir_flag_spec_ld='+b $libdir'
17957 hardcode_libdir_separator=:
17958 hardcode_direct=yes
17959 hardcode_direct_absolute=yes
17960 export_dynamic_flag_spec='${wl}-E'
17961 # hardcode_minus_L: Not really in the search PATH,
17962 # but as the default location of the library.
17963 hardcode_minus_L=yes
17964 fi
17965 ;;
17966
17967 hpux11*)
17968 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17969 case $host_cpu in
17970 hppa*64*)
17971 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17972 ;;
17973 ia64*)
17974 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17975 ;;
17976 *)
17977 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17978 ;;
17979 esac
17980 else
17981 case $host_cpu in
17982 hppa*64*)
17983 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17984 ;;
17985 ia64*)
17986 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17987 ;;
17988 *)
17989
17990 # Older versions of the 11.00 compiler do not understand -b yet
17991 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17993 $as_echo_n "checking if $CC understands -b... " >&6; }
17994 if ${lt_cv_prog_compiler__b+:} false; then :
17995 $as_echo_n "(cached) " >&6
17996 else
17997 lt_cv_prog_compiler__b=no
17998 save_LDFLAGS="$LDFLAGS"
17999 LDFLAGS="$LDFLAGS -b"
18000 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18001 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18002 # The linker can only warn and ignore the option if not recognized
18003 # So say no if there are warnings
18004 if test -s conftest.err; then
18005 # Append any errors to the config.log.
18006 cat conftest.err 1>&5
18007 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18009 if diff conftest.exp conftest.er2 >/dev/null; then
18010 lt_cv_prog_compiler__b=yes
18011 fi
18012 else
18013 lt_cv_prog_compiler__b=yes
18014 fi
18015 fi
18016 $RM -r conftest*
18017 LDFLAGS="$save_LDFLAGS"
18018
18019 fi
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18021 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18022
18023 if test x"$lt_cv_prog_compiler__b" = xyes; then
18024 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18025 else
18026 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18027 fi
18028
18029 ;;
18030 esac
18031 fi
18032 if test "$with_gnu_ld" = no; then
18033 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18034 hardcode_libdir_separator=:
18035
18036 case $host_cpu in
18037 hppa*64*|ia64*)
18038 hardcode_direct=no
18039 hardcode_shlibpath_var=no
18040 ;;
18041 *)
18042 hardcode_direct=yes
18043 hardcode_direct_absolute=yes
18044 export_dynamic_flag_spec='${wl}-E'
18045
18046 # hardcode_minus_L: Not really in the search PATH,
18047 # but as the default location of the library.
18048 hardcode_minus_L=yes
18049 ;;
18050 esac
18051 fi
18052 ;;
18053
18054 irix5* | irix6* | nonstopux*)
18055 if test "$GCC" = yes; then
18056 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'
18057 # Try to use the -exported_symbol ld option, if it does not
18058 # work, assume that -exports_file does not work either and
18059 # implicitly export all symbols.
18060 save_LDFLAGS="$LDFLAGS"
18061 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18063 /* end confdefs.h. */
18064 int foo(void) {}
18065 _ACEOF
18066 if ac_fn_c_try_link "$LINENO"; then :
18067 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'
18068
18069 fi
18070 rm -f core conftest.err conftest.$ac_objext \
18071 conftest$ac_exeext conftest.$ac_ext
18072 LDFLAGS="$save_LDFLAGS"
18073 else
18074 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'
18075 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'
18076 fi
18077 archive_cmds_need_lc='no'
18078 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18079 hardcode_libdir_separator=:
18080 inherit_rpath=yes
18081 link_all_deplibs=yes
18082 ;;
18083
18084 netbsd*)
18085 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18086 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18087 else
18088 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18089 fi
18090 hardcode_libdir_flag_spec='-R$libdir'
18091 hardcode_direct=yes
18092 hardcode_shlibpath_var=no
18093 ;;
18094
18095 newsos6)
18096 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18097 hardcode_direct=yes
18098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18099 hardcode_libdir_separator=:
18100 hardcode_shlibpath_var=no
18101 ;;
18102
18103 *nto* | *qnx*)
18104 ;;
18105
18106 openbsd*)
18107 if test -f /usr/libexec/ld.so; then
18108 hardcode_direct=yes
18109 hardcode_shlibpath_var=no
18110 hardcode_direct_absolute=yes
18111 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18112 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18113 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18114 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18115 export_dynamic_flag_spec='${wl}-E'
18116 else
18117 case $host_os in
18118 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18119 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18120 hardcode_libdir_flag_spec='-R$libdir'
18121 ;;
18122 *)
18123 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18124 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18125 ;;
18126 esac
18127 fi
18128 else
18129 ld_shlibs=no
18130 fi
18131 ;;
18132
18133 os2*)
18134 hardcode_libdir_flag_spec='-L$libdir'
18135 hardcode_minus_L=yes
18136 allow_undefined_flag=unsupported
18137 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'
18138 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18139 ;;
18140
18141 osf3*)
18142 if test "$GCC" = yes; then
18143 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18144 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'
18145 else
18146 allow_undefined_flag=' -expect_unresolved \*'
18147 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'
18148 fi
18149 archive_cmds_need_lc='no'
18150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18151 hardcode_libdir_separator=:
18152 ;;
18153
18154 osf4* | osf5*) # as osf3* with the addition of -msym flag
18155 if test "$GCC" = yes; then
18156 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18157 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'
18158 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18159 else
18160 allow_undefined_flag=' -expect_unresolved \*'
18161 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'
18162 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~
18163 $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'
18164
18165 # Both c and cxx compiler support -rpath directly
18166 hardcode_libdir_flag_spec='-rpath $libdir'
18167 fi
18168 archive_cmds_need_lc='no'
18169 hardcode_libdir_separator=:
18170 ;;
18171
18172 solaris*)
18173 no_undefined_flag=' -z defs'
18174 if test "$GCC" = yes; then
18175 wlarc='${wl}'
18176 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18177 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18178 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18179 else
18180 case `$CC -V 2>&1` in
18181 *"Compilers 5.0"*)
18182 wlarc=''
18183 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18184 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18185 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18186 ;;
18187 *)
18188 wlarc='${wl}'
18189 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18190 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18191 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18192 ;;
18193 esac
18194 fi
18195 hardcode_libdir_flag_spec='-R$libdir'
18196 hardcode_shlibpath_var=no
18197 case $host_os in
18198 solaris2.[0-5] | solaris2.[0-5].*) ;;
18199 *)
18200 # The compiler driver will combine and reorder linker options,
18201 # but understands `-z linker_flag'. GCC discards it without `$wl',
18202 # but is careful enough not to reorder.
18203 # Supported since Solaris 2.6 (maybe 2.5.1?)
18204 if test "$GCC" = yes; then
18205 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18206 else
18207 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18208 fi
18209 ;;
18210 esac
18211 link_all_deplibs=yes
18212 ;;
18213
18214 sunos4*)
18215 if test "x$host_vendor" = xsequent; then
18216 # Use $CC to link under sequent, because it throws in some extra .o
18217 # files that make .init and .fini sections work.
18218 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18219 else
18220 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18221 fi
18222 hardcode_libdir_flag_spec='-L$libdir'
18223 hardcode_direct=yes
18224 hardcode_minus_L=yes
18225 hardcode_shlibpath_var=no
18226 ;;
18227
18228 sysv4)
18229 case $host_vendor in
18230 sni)
18231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18232 hardcode_direct=yes # is this really true???
18233 ;;
18234 siemens)
18235 ## LD is ld it makes a PLAMLIB
18236 ## CC just makes a GrossModule.
18237 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18238 reload_cmds='$CC -r -o $output$reload_objs'
18239 hardcode_direct=no
18240 ;;
18241 motorola)
18242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18243 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18244 ;;
18245 esac
18246 runpath_var='LD_RUN_PATH'
18247 hardcode_shlibpath_var=no
18248 ;;
18249
18250 sysv4.3*)
18251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18252 hardcode_shlibpath_var=no
18253 export_dynamic_flag_spec='-Bexport'
18254 ;;
18255
18256 sysv4*MP*)
18257 if test -d /usr/nec; then
18258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18259 hardcode_shlibpath_var=no
18260 runpath_var=LD_RUN_PATH
18261 hardcode_runpath_var=yes
18262 ld_shlibs=yes
18263 fi
18264 ;;
18265
18266 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18267 no_undefined_flag='${wl}-z,text'
18268 archive_cmds_need_lc=no
18269 hardcode_shlibpath_var=no
18270 runpath_var='LD_RUN_PATH'
18271
18272 if test "$GCC" = yes; then
18273 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18274 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18275 else
18276 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18277 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18278 fi
18279 ;;
18280
18281 sysv5* | sco3.2v5* | sco5v6*)
18282 # Note: We can NOT use -z defs as we might desire, because we do not
18283 # link with -lc, and that would cause any symbols used from libc to
18284 # always be unresolved, which means just about no library would
18285 # ever link correctly. If we're not using GNU ld we use -z text
18286 # though, which does catch some bad symbols but isn't as heavy-handed
18287 # as -z defs.
18288 no_undefined_flag='${wl}-z,text'
18289 allow_undefined_flag='${wl}-z,nodefs'
18290 archive_cmds_need_lc=no
18291 hardcode_shlibpath_var=no
18292 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18293 hardcode_libdir_separator=':'
18294 link_all_deplibs=yes
18295 export_dynamic_flag_spec='${wl}-Bexport'
18296 runpath_var='LD_RUN_PATH'
18297
18298 if test "$GCC" = yes; then
18299 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18300 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18301 else
18302 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18303 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18304 fi
18305 ;;
18306
18307 uts4*)
18308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18309 hardcode_libdir_flag_spec='-L$libdir'
18310 hardcode_shlibpath_var=no
18311 ;;
18312
18313 *)
18314 ld_shlibs=no
18315 ;;
18316 esac
18317
18318 if test x$host_vendor = xsni; then
18319 case $host in
18320 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18321 export_dynamic_flag_spec='${wl}-Blargedynsym'
18322 ;;
18323 esac
18324 fi
18325 fi
18326
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18328 $as_echo "$ld_shlibs" >&6; }
18329 test "$ld_shlibs" = no && can_build_shared=no
18330
18331 with_gnu_ld=$with_gnu_ld
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347 #
18348 # Do we need to explicitly link libc?
18349 #
18350 case "x$archive_cmds_need_lc" in
18351 x|xyes)
18352 # Assume -lc should be added
18353 archive_cmds_need_lc=yes
18354
18355 if test "$enable_shared" = yes && test "$GCC" = yes; then
18356 case $archive_cmds in
18357 *'~'*)
18358 # FIXME: we may have to deal with multi-command sequences.
18359 ;;
18360 '$CC '*)
18361 # Test whether the compiler implicitly links with -lc since on some
18362 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18363 # to ld, don't add -lc before -lgcc.
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18365 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18366 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18367 $as_echo_n "(cached) " >&6
18368 else
18369 $RM conftest*
18370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18371
18372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18373 (eval $ac_compile) 2>&5
18374 ac_status=$?
18375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18376 test $ac_status = 0; } 2>conftest.err; then
18377 soname=conftest
18378 lib=conftest
18379 libobjs=conftest.$ac_objext
18380 deplibs=
18381 wl=$lt_prog_compiler_wl
18382 pic_flag=$lt_prog_compiler_pic
18383 compiler_flags=-v
18384 linker_flags=-v
18385 verstring=
18386 output_objdir=.
18387 libname=conftest
18388 lt_save_allow_undefined_flag=$allow_undefined_flag
18389 allow_undefined_flag=
18390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18391 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18392 ac_status=$?
18393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18394 test $ac_status = 0; }
18395 then
18396 lt_cv_archive_cmds_need_lc=no
18397 else
18398 lt_cv_archive_cmds_need_lc=yes
18399 fi
18400 allow_undefined_flag=$lt_save_allow_undefined_flag
18401 else
18402 cat conftest.err 1>&5
18403 fi
18404 $RM conftest*
18405
18406 fi
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18408 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18409 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18410 ;;
18411 esac
18412 fi
18413 ;;
18414 esac
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18573 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18574
18575 if test "$GCC" = yes; then
18576 case $host_os in
18577 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18578 *) lt_awk_arg="/^libraries:/" ;;
18579 esac
18580 case $host_os in
18581 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18582 *) lt_sed_strip_eq="s,=/,/,g" ;;
18583 esac
18584 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18585 case $lt_search_path_spec in
18586 *\;*)
18587 # if the path contains ";" then we assume it to be the separator
18588 # otherwise default to the standard path separator (i.e. ":") - it is
18589 # assumed that no part of a normal pathname contains ";" but that should
18590 # okay in the real world where ";" in dirpaths is itself problematic.
18591 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18592 ;;
18593 *)
18594 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18595 ;;
18596 esac
18597 # Ok, now we have the path, separated by spaces, we can step through it
18598 # and add multilib dir if necessary.
18599 lt_tmp_lt_search_path_spec=
18600 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18601 for lt_sys_path in $lt_search_path_spec; do
18602 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18603 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18604 else
18605 test -d "$lt_sys_path" && \
18606 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18607 fi
18608 done
18609 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18610 BEGIN {RS=" "; FS="/|\n";} {
18611 lt_foo="";
18612 lt_count=0;
18613 for (lt_i = NF; lt_i > 0; lt_i--) {
18614 if ($lt_i != "" && $lt_i != ".") {
18615 if ($lt_i == "..") {
18616 lt_count++;
18617 } else {
18618 if (lt_count == 0) {
18619 lt_foo="/" $lt_i lt_foo;
18620 } else {
18621 lt_count--;
18622 }
18623 }
18624 }
18625 }
18626 if (lt_foo != "") { lt_freq[lt_foo]++; }
18627 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18628 }'`
18629 # AWK program above erroneously prepends '/' to C:/dos/paths
18630 # for these hosts.
18631 case $host_os in
18632 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18633 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18634 esac
18635 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18636 else
18637 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18638 fi
18639 library_names_spec=
18640 libname_spec='lib$name'
18641 soname_spec=
18642 shrext_cmds=".so"
18643 postinstall_cmds=
18644 postuninstall_cmds=
18645 finish_cmds=
18646 finish_eval=
18647 shlibpath_var=
18648 shlibpath_overrides_runpath=unknown
18649 version_type=none
18650 dynamic_linker="$host_os ld.so"
18651 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18652 need_lib_prefix=unknown
18653 hardcode_into_libs=no
18654
18655 # when you set need_version to no, make sure it does not cause -set_version
18656 # flags to be left without arguments
18657 need_version=unknown
18658
18659 case $host_os in
18660 aix3*)
18661 version_type=linux
18662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18663 shlibpath_var=LIBPATH
18664
18665 # AIX 3 has no versioning support, so we append a major version to the name.
18666 soname_spec='${libname}${release}${shared_ext}$major'
18667 ;;
18668
18669 aix[4-9]*)
18670 version_type=linux
18671 need_lib_prefix=no
18672 need_version=no
18673 hardcode_into_libs=yes
18674 if test "$host_cpu" = ia64; then
18675 # AIX 5 supports IA64
18676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18677 shlibpath_var=LD_LIBRARY_PATH
18678 else
18679 # With GCC up to 2.95.x, collect2 would create an import file
18680 # for dependence libraries. The import file would start with
18681 # the line `#! .'. This would cause the generated library to
18682 # depend on `.', always an invalid library. This was fixed in
18683 # development snapshots of GCC prior to 3.0.
18684 case $host_os in
18685 aix4 | aix4.[01] | aix4.[01].*)
18686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18687 echo ' yes '
18688 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18689 :
18690 else
18691 can_build_shared=no
18692 fi
18693 ;;
18694 esac
18695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18696 # soname into executable. Probably we can add versioning support to
18697 # collect2, so additional links can be useful in future.
18698 if test "$aix_use_runtimelinking" = yes; then
18699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18700 # instead of lib<name>.a to let people know that these are not
18701 # typical AIX shared libraries.
18702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18703 else
18704 # We preserve .a as extension for shared libraries through AIX4.2
18705 # and later when we are not doing run time linking.
18706 library_names_spec='${libname}${release}.a $libname.a'
18707 soname_spec='${libname}${release}${shared_ext}$major'
18708 fi
18709 shlibpath_var=LIBPATH
18710 fi
18711 ;;
18712
18713 amigaos*)
18714 case $host_cpu in
18715 powerpc)
18716 # Since July 2007 AmigaOS4 officially supports .so libraries.
18717 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18719 ;;
18720 m68k)
18721 library_names_spec='$libname.ixlibrary $libname.a'
18722 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18723 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'
18724 ;;
18725 esac
18726 ;;
18727
18728 beos*)
18729 library_names_spec='${libname}${shared_ext}'
18730 dynamic_linker="$host_os ld.so"
18731 shlibpath_var=LIBRARY_PATH
18732 ;;
18733
18734 bsdi[45]*)
18735 version_type=linux
18736 need_version=no
18737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18738 soname_spec='${libname}${release}${shared_ext}$major'
18739 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18740 shlibpath_var=LD_LIBRARY_PATH
18741 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18742 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18743 # the default ld.so.conf also contains /usr/contrib/lib and
18744 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18745 # libtool to hard-code these into programs
18746 ;;
18747
18748 cygwin* | mingw* | pw32* | cegcc*)
18749 version_type=windows
18750 shrext_cmds=".dll"
18751 need_version=no
18752 need_lib_prefix=no
18753
18754 case $GCC,$host_os in
18755 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18756 library_names_spec='$libname.dll.a'
18757 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18758 postinstall_cmds='base_file=`basename \${file}`~
18759 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18760 dldir=$destdir/`dirname \$dlpath`~
18761 test -d \$dldir || mkdir -p \$dldir~
18762 $install_prog $dir/$dlname \$dldir/$dlname~
18763 chmod a+x \$dldir/$dlname~
18764 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18765 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18766 fi'
18767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18768 dlpath=$dir/\$dldll~
18769 $RM \$dlpath'
18770 shlibpath_overrides_runpath=yes
18771
18772 case $host_os in
18773 cygwin*)
18774 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18775 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18776
18777 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18778 ;;
18779 mingw* | cegcc*)
18780 # MinGW DLLs use traditional 'lib' prefix
18781 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18782 ;;
18783 pw32*)
18784 # pw32 DLLs use 'pw' prefix rather than 'lib'
18785 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18786 ;;
18787 esac
18788 ;;
18789
18790 *)
18791 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18792 ;;
18793 esac
18794 dynamic_linker='Win32 ld.exe'
18795 # FIXME: first we should search . and the directory the executable is in
18796 shlibpath_var=PATH
18797 ;;
18798
18799 darwin* | rhapsody*)
18800 dynamic_linker="$host_os dyld"
18801 version_type=darwin
18802 need_lib_prefix=no
18803 need_version=no
18804 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18805 soname_spec='${libname}${release}${major}$shared_ext'
18806 shlibpath_overrides_runpath=yes
18807 shlibpath_var=DYLD_LIBRARY_PATH
18808 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18809
18810 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18811 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18812 ;;
18813
18814 dgux*)
18815 version_type=linux
18816 need_lib_prefix=no
18817 need_version=no
18818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18819 soname_spec='${libname}${release}${shared_ext}$major'
18820 shlibpath_var=LD_LIBRARY_PATH
18821 ;;
18822
18823 freebsd* | dragonfly*)
18824 # DragonFly does not have aout. When/if they implement a new
18825 # versioning mechanism, adjust this.
18826 if test -x /usr/bin/objformat; then
18827 objformat=`/usr/bin/objformat`
18828 else
18829 case $host_os in
18830 freebsd[23].*) objformat=aout ;;
18831 *) objformat=elf ;;
18832 esac
18833 fi
18834 version_type=freebsd-$objformat
18835 case $version_type in
18836 freebsd-elf*)
18837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18838 need_version=no
18839 need_lib_prefix=no
18840 ;;
18841 freebsd-*)
18842 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18843 need_version=yes
18844 ;;
18845 esac
18846 shlibpath_var=LD_LIBRARY_PATH
18847 case $host_os in
18848 freebsd2.*)
18849 shlibpath_overrides_runpath=yes
18850 ;;
18851 freebsd3.[01]* | freebsdelf3.[01]*)
18852 shlibpath_overrides_runpath=yes
18853 hardcode_into_libs=yes
18854 ;;
18855 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18856 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18857 shlibpath_overrides_runpath=no
18858 hardcode_into_libs=yes
18859 ;;
18860 *) # from 4.6 on, and DragonFly
18861 shlibpath_overrides_runpath=yes
18862 hardcode_into_libs=yes
18863 ;;
18864 esac
18865 ;;
18866
18867 haiku*)
18868 version_type=linux
18869 need_lib_prefix=no
18870 need_version=no
18871 dynamic_linker="$host_os runtime_loader"
18872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18873 soname_spec='${libname}${release}${shared_ext}$major'
18874 shlibpath_var=LIBRARY_PATH
18875 shlibpath_overrides_runpath=yes
18876 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18877 hardcode_into_libs=yes
18878 ;;
18879
18880 hpux9* | hpux10* | hpux11*)
18881 # Give a soname corresponding to the major version so that dld.sl refuses to
18882 # link against other versions.
18883 version_type=sunos
18884 need_lib_prefix=no
18885 need_version=no
18886 case $host_cpu in
18887 ia64*)
18888 shrext_cmds='.so'
18889 hardcode_into_libs=yes
18890 dynamic_linker="$host_os dld.so"
18891 shlibpath_var=LD_LIBRARY_PATH
18892 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18894 soname_spec='${libname}${release}${shared_ext}$major'
18895 if test "X$HPUX_IA64_MODE" = X32; then
18896 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18897 else
18898 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18899 fi
18900 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18901 ;;
18902 hppa*64*)
18903 shrext_cmds='.sl'
18904 hardcode_into_libs=yes
18905 dynamic_linker="$host_os dld.sl"
18906 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18909 soname_spec='${libname}${release}${shared_ext}$major'
18910 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18912 ;;
18913 *)
18914 shrext_cmds='.sl'
18915 dynamic_linker="$host_os dld.sl"
18916 shlibpath_var=SHLIB_PATH
18917 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18919 soname_spec='${libname}${release}${shared_ext}$major'
18920 ;;
18921 esac
18922 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18923 postinstall_cmds='chmod 555 $lib'
18924 # or fails outright, so override atomically:
18925 install_override_mode=555
18926 ;;
18927
18928 interix[3-9]*)
18929 version_type=linux
18930 need_lib_prefix=no
18931 need_version=no
18932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18933 soname_spec='${libname}${release}${shared_ext}$major'
18934 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18935 shlibpath_var=LD_LIBRARY_PATH
18936 shlibpath_overrides_runpath=no
18937 hardcode_into_libs=yes
18938 ;;
18939
18940 irix5* | irix6* | nonstopux*)
18941 case $host_os in
18942 nonstopux*) version_type=nonstopux ;;
18943 *)
18944 if test "$lt_cv_prog_gnu_ld" = yes; then
18945 version_type=linux
18946 else
18947 version_type=irix
18948 fi ;;
18949 esac
18950 need_lib_prefix=no
18951 need_version=no
18952 soname_spec='${libname}${release}${shared_ext}$major'
18953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18954 case $host_os in
18955 irix5* | nonstopux*)
18956 libsuff= shlibsuff=
18957 ;;
18958 *)
18959 case $LD in # libtool.m4 will add one of these switches to LD
18960 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18961 libsuff= shlibsuff= libmagic=32-bit;;
18962 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18963 libsuff=32 shlibsuff=N32 libmagic=N32;;
18964 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18965 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18966 *) libsuff= shlibsuff= libmagic=never-match;;
18967 esac
18968 ;;
18969 esac
18970 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18971 shlibpath_overrides_runpath=no
18972 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18973 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18974 hardcode_into_libs=yes
18975 ;;
18976
18977 # No shared lib support for Linux oldld, aout, or coff.
18978 linux*oldld* | linux*aout* | linux*coff*)
18979 dynamic_linker=no
18980 ;;
18981
18982 # This must be Linux ELF.
18983
18984 # uclinux* changes (here and below) have been submitted to the libtool
18985 # project, but have not yet been accepted: they are GCC-local changes
18986 # for the time being. (See
18987 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18988 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
18989 version_type=linux
18990 need_lib_prefix=no
18991 need_version=no
18992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18993 soname_spec='${libname}${release}${shared_ext}$major'
18994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18995 shlibpath_var=LD_LIBRARY_PATH
18996 shlibpath_overrides_runpath=no
18997
18998 # Some binutils ld are patched to set DT_RUNPATH
18999 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19000 $as_echo_n "(cached) " >&6
19001 else
19002 lt_cv_shlibpath_overrides_runpath=no
19003 save_LDFLAGS=$LDFLAGS
19004 save_libdir=$libdir
19005 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19006 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19008 /* end confdefs.h. */
19009
19010 int
19011 main ()
19012 {
19013
19014 ;
19015 return 0;
19016 }
19017 _ACEOF
19018 if ac_fn_c_try_link "$LINENO"; then :
19019 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19020 lt_cv_shlibpath_overrides_runpath=yes
19021 fi
19022 fi
19023 rm -f core conftest.err conftest.$ac_objext \
19024 conftest$ac_exeext conftest.$ac_ext
19025 LDFLAGS=$save_LDFLAGS
19026 libdir=$save_libdir
19027
19028 fi
19029
19030 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19031
19032 # This implies no fast_install, which is unacceptable.
19033 # Some rework will be needed to allow for fast_install
19034 # before this can be enabled.
19035 hardcode_into_libs=yes
19036
19037 # Append ld.so.conf contents to the search path
19038 if test -f /etc/ld.so.conf; then
19039 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' ' '`
19040 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19041 fi
19042
19043 # We used to test for /lib/ld.so.1 and disable shared libraries on
19044 # powerpc, because MkLinux only supported shared libraries with the
19045 # GNU dynamic linker. Since this was broken with cross compilers,
19046 # most powerpc-linux boxes support dynamic linking these days and
19047 # people can always --disable-shared, the test was removed, and we
19048 # assume the GNU/Linux dynamic linker is in use.
19049 dynamic_linker='GNU/Linux ld.so'
19050 ;;
19051
19052 netbsd*)
19053 version_type=sunos
19054 need_lib_prefix=no
19055 need_version=no
19056 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19059 dynamic_linker='NetBSD (a.out) ld.so'
19060 else
19061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19062 soname_spec='${libname}${release}${shared_ext}$major'
19063 dynamic_linker='NetBSD ld.elf_so'
19064 fi
19065 shlibpath_var=LD_LIBRARY_PATH
19066 shlibpath_overrides_runpath=yes
19067 hardcode_into_libs=yes
19068 ;;
19069
19070 newsos6)
19071 version_type=linux
19072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19073 shlibpath_var=LD_LIBRARY_PATH
19074 shlibpath_overrides_runpath=yes
19075 ;;
19076
19077 *nto* | *qnx*)
19078 version_type=qnx
19079 need_lib_prefix=no
19080 need_version=no
19081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19082 soname_spec='${libname}${release}${shared_ext}$major'
19083 shlibpath_var=LD_LIBRARY_PATH
19084 shlibpath_overrides_runpath=no
19085 hardcode_into_libs=yes
19086 dynamic_linker='ldqnx.so'
19087 ;;
19088
19089 openbsd*)
19090 version_type=sunos
19091 sys_lib_dlsearch_path_spec="/usr/lib"
19092 need_lib_prefix=no
19093 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19094 case $host_os in
19095 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19096 *) need_version=no ;;
19097 esac
19098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19100 shlibpath_var=LD_LIBRARY_PATH
19101 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19102 case $host_os in
19103 openbsd2.[89] | openbsd2.[89].*)
19104 shlibpath_overrides_runpath=no
19105 ;;
19106 *)
19107 shlibpath_overrides_runpath=yes
19108 ;;
19109 esac
19110 else
19111 shlibpath_overrides_runpath=yes
19112 fi
19113 ;;
19114
19115 os2*)
19116 libname_spec='$name'
19117 shrext_cmds=".dll"
19118 need_lib_prefix=no
19119 library_names_spec='$libname${shared_ext} $libname.a'
19120 dynamic_linker='OS/2 ld.exe'
19121 shlibpath_var=LIBPATH
19122 ;;
19123
19124 osf3* | osf4* | osf5*)
19125 version_type=osf
19126 need_lib_prefix=no
19127 need_version=no
19128 soname_spec='${libname}${release}${shared_ext}$major'
19129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19130 shlibpath_var=LD_LIBRARY_PATH
19131 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19132 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19133 ;;
19134
19135 rdos*)
19136 dynamic_linker=no
19137 ;;
19138
19139 solaris*)
19140 version_type=linux
19141 need_lib_prefix=no
19142 need_version=no
19143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19144 soname_spec='${libname}${release}${shared_ext}$major'
19145 shlibpath_var=LD_LIBRARY_PATH
19146 shlibpath_overrides_runpath=yes
19147 hardcode_into_libs=yes
19148 # ldd complains unless libraries are executable
19149 postinstall_cmds='chmod +x $lib'
19150 ;;
19151
19152 sunos4*)
19153 version_type=sunos
19154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19155 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19156 shlibpath_var=LD_LIBRARY_PATH
19157 shlibpath_overrides_runpath=yes
19158 if test "$with_gnu_ld" = yes; then
19159 need_lib_prefix=no
19160 fi
19161 need_version=yes
19162 ;;
19163
19164 sysv4 | sysv4.3*)
19165 version_type=linux
19166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19167 soname_spec='${libname}${release}${shared_ext}$major'
19168 shlibpath_var=LD_LIBRARY_PATH
19169 case $host_vendor in
19170 sni)
19171 shlibpath_overrides_runpath=no
19172 need_lib_prefix=no
19173 runpath_var=LD_RUN_PATH
19174 ;;
19175 siemens)
19176 need_lib_prefix=no
19177 ;;
19178 motorola)
19179 need_lib_prefix=no
19180 need_version=no
19181 shlibpath_overrides_runpath=no
19182 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19183 ;;
19184 esac
19185 ;;
19186
19187 sysv4*MP*)
19188 if test -d /usr/nec ;then
19189 version_type=linux
19190 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19191 soname_spec='$libname${shared_ext}.$major'
19192 shlibpath_var=LD_LIBRARY_PATH
19193 fi
19194 ;;
19195
19196 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19197 version_type=freebsd-elf
19198 need_lib_prefix=no
19199 need_version=no
19200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19201 soname_spec='${libname}${release}${shared_ext}$major'
19202 shlibpath_var=LD_LIBRARY_PATH
19203 shlibpath_overrides_runpath=yes
19204 hardcode_into_libs=yes
19205 if test "$with_gnu_ld" = yes; then
19206 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19207 else
19208 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19209 case $host_os in
19210 sco3.2v5*)
19211 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19212 ;;
19213 esac
19214 fi
19215 sys_lib_dlsearch_path_spec='/usr/lib'
19216 ;;
19217
19218 tpf*)
19219 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19220 version_type=linux
19221 need_lib_prefix=no
19222 need_version=no
19223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19224 shlibpath_var=LD_LIBRARY_PATH
19225 shlibpath_overrides_runpath=no
19226 hardcode_into_libs=yes
19227 ;;
19228
19229 uts4*)
19230 version_type=linux
19231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19232 soname_spec='${libname}${release}${shared_ext}$major'
19233 shlibpath_var=LD_LIBRARY_PATH
19234 ;;
19235
19236 *)
19237 dynamic_linker=no
19238 ;;
19239 esac
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19241 $as_echo "$dynamic_linker" >&6; }
19242 test "$dynamic_linker" = no && can_build_shared=no
19243
19244 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19245 if test "$GCC" = yes; then
19246 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19247 fi
19248
19249 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19250 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19251 fi
19252 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19253 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19254 fi
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19348 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19349 hardcode_action=
19350 if test -n "$hardcode_libdir_flag_spec" ||
19351 test -n "$runpath_var" ||
19352 test "X$hardcode_automatic" = "Xyes" ; then
19353
19354 # We can hardcode non-existent directories.
19355 if test "$hardcode_direct" != no &&
19356 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19357 # have to relink, otherwise we might link with an installed library
19358 # when we should be linking with a yet-to-be-installed one
19359 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19360 test "$hardcode_minus_L" != no; then
19361 # Linking always hardcodes the temporary library directory.
19362 hardcode_action=relink
19363 else
19364 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19365 hardcode_action=immediate
19366 fi
19367 else
19368 # We cannot hardcode anything, or else we can only hardcode existing
19369 # directories.
19370 hardcode_action=unsupported
19371 fi
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19373 $as_echo "$hardcode_action" >&6; }
19374
19375 if test "$hardcode_action" = relink ||
19376 test "$inherit_rpath" = yes; then
19377 # Fast installation is not supported
19378 enable_fast_install=no
19379 elif test "$shlibpath_overrides_runpath" = yes ||
19380 test "$enable_shared" = no; then
19381 # Fast installation is not necessary
19382 enable_fast_install=needless
19383 fi
19384
19385
19386
19387
19388
19389
19390 if test "x$enable_dlopen" != xyes; then
19391 enable_dlopen=unknown
19392 enable_dlopen_self=unknown
19393 enable_dlopen_self_static=unknown
19394 else
19395 lt_cv_dlopen=no
19396 lt_cv_dlopen_libs=
19397
19398 case $host_os in
19399 beos*)
19400 lt_cv_dlopen="load_add_on"
19401 lt_cv_dlopen_libs=
19402 lt_cv_dlopen_self=yes
19403 ;;
19404
19405 mingw* | pw32* | cegcc*)
19406 lt_cv_dlopen="LoadLibrary"
19407 lt_cv_dlopen_libs=
19408 ;;
19409
19410 cygwin*)
19411 lt_cv_dlopen="dlopen"
19412 lt_cv_dlopen_libs=
19413 ;;
19414
19415 darwin*)
19416 # if libdl is installed we need to link against it
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19418 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19419 if ${ac_cv_lib_dl_dlopen+:} false; then :
19420 $as_echo_n "(cached) " >&6
19421 else
19422 ac_check_lib_save_LIBS=$LIBS
19423 LIBS="-ldl $LIBS"
19424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19425 /* end confdefs.h. */
19426
19427 /* Override any GCC internal prototype to avoid an error.
19428 Use char because int might match the return type of a GCC
19429 builtin and then its argument prototype would still apply. */
19430 #ifdef __cplusplus
19431 extern "C"
19432 #endif
19433 char dlopen ();
19434 int
19435 main ()
19436 {
19437 return dlopen ();
19438 ;
19439 return 0;
19440 }
19441 _ACEOF
19442 if ac_fn_c_try_link "$LINENO"; then :
19443 ac_cv_lib_dl_dlopen=yes
19444 else
19445 ac_cv_lib_dl_dlopen=no
19446 fi
19447 rm -f core conftest.err conftest.$ac_objext \
19448 conftest$ac_exeext conftest.$ac_ext
19449 LIBS=$ac_check_lib_save_LIBS
19450 fi
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19452 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19453 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19454 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19455 else
19456
19457 lt_cv_dlopen="dyld"
19458 lt_cv_dlopen_libs=
19459 lt_cv_dlopen_self=yes
19460
19461 fi
19462
19463 ;;
19464
19465 *)
19466 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19467 if test "x$ac_cv_func_shl_load" = xyes; then :
19468 lt_cv_dlopen="shl_load"
19469 else
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19471 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19472 if ${ac_cv_lib_dld_shl_load+:} false; then :
19473 $as_echo_n "(cached) " >&6
19474 else
19475 ac_check_lib_save_LIBS=$LIBS
19476 LIBS="-ldld $LIBS"
19477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19478 /* end confdefs.h. */
19479
19480 /* Override any GCC internal prototype to avoid an error.
19481 Use char because int might match the return type of a GCC
19482 builtin and then its argument prototype would still apply. */
19483 #ifdef __cplusplus
19484 extern "C"
19485 #endif
19486 char shl_load ();
19487 int
19488 main ()
19489 {
19490 return shl_load ();
19491 ;
19492 return 0;
19493 }
19494 _ACEOF
19495 if ac_fn_c_try_link "$LINENO"; then :
19496 ac_cv_lib_dld_shl_load=yes
19497 else
19498 ac_cv_lib_dld_shl_load=no
19499 fi
19500 rm -f core conftest.err conftest.$ac_objext \
19501 conftest$ac_exeext conftest.$ac_ext
19502 LIBS=$ac_check_lib_save_LIBS
19503 fi
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19505 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19506 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19507 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19508 else
19509 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19510 if test "x$ac_cv_func_dlopen" = xyes; then :
19511 lt_cv_dlopen="dlopen"
19512 else
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19514 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19515 if ${ac_cv_lib_dl_dlopen+:} false; then :
19516 $as_echo_n "(cached) " >&6
19517 else
19518 ac_check_lib_save_LIBS=$LIBS
19519 LIBS="-ldl $LIBS"
19520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19521 /* end confdefs.h. */
19522
19523 /* Override any GCC internal prototype to avoid an error.
19524 Use char because int might match the return type of a GCC
19525 builtin and then its argument prototype would still apply. */
19526 #ifdef __cplusplus
19527 extern "C"
19528 #endif
19529 char dlopen ();
19530 int
19531 main ()
19532 {
19533 return dlopen ();
19534 ;
19535 return 0;
19536 }
19537 _ACEOF
19538 if ac_fn_c_try_link "$LINENO"; then :
19539 ac_cv_lib_dl_dlopen=yes
19540 else
19541 ac_cv_lib_dl_dlopen=no
19542 fi
19543 rm -f core conftest.err conftest.$ac_objext \
19544 conftest$ac_exeext conftest.$ac_ext
19545 LIBS=$ac_check_lib_save_LIBS
19546 fi
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19548 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19549 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19550 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19551 else
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19553 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19554 if ${ac_cv_lib_svld_dlopen+:} false; then :
19555 $as_echo_n "(cached) " >&6
19556 else
19557 ac_check_lib_save_LIBS=$LIBS
19558 LIBS="-lsvld $LIBS"
19559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19560 /* end confdefs.h. */
19561
19562 /* Override any GCC internal prototype to avoid an error.
19563 Use char because int might match the return type of a GCC
19564 builtin and then its argument prototype would still apply. */
19565 #ifdef __cplusplus
19566 extern "C"
19567 #endif
19568 char dlopen ();
19569 int
19570 main ()
19571 {
19572 return dlopen ();
19573 ;
19574 return 0;
19575 }
19576 _ACEOF
19577 if ac_fn_c_try_link "$LINENO"; then :
19578 ac_cv_lib_svld_dlopen=yes
19579 else
19580 ac_cv_lib_svld_dlopen=no
19581 fi
19582 rm -f core conftest.err conftest.$ac_objext \
19583 conftest$ac_exeext conftest.$ac_ext
19584 LIBS=$ac_check_lib_save_LIBS
19585 fi
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19587 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19588 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19589 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19590 else
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19592 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19593 if ${ac_cv_lib_dld_dld_link+:} false; then :
19594 $as_echo_n "(cached) " >&6
19595 else
19596 ac_check_lib_save_LIBS=$LIBS
19597 LIBS="-ldld $LIBS"
19598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19599 /* end confdefs.h. */
19600
19601 /* Override any GCC internal prototype to avoid an error.
19602 Use char because int might match the return type of a GCC
19603 builtin and then its argument prototype would still apply. */
19604 #ifdef __cplusplus
19605 extern "C"
19606 #endif
19607 char dld_link ();
19608 int
19609 main ()
19610 {
19611 return dld_link ();
19612 ;
19613 return 0;
19614 }
19615 _ACEOF
19616 if ac_fn_c_try_link "$LINENO"; then :
19617 ac_cv_lib_dld_dld_link=yes
19618 else
19619 ac_cv_lib_dld_dld_link=no
19620 fi
19621 rm -f core conftest.err conftest.$ac_objext \
19622 conftest$ac_exeext conftest.$ac_ext
19623 LIBS=$ac_check_lib_save_LIBS
19624 fi
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19626 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19627 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19628 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19629 fi
19630
19631
19632 fi
19633
19634
19635 fi
19636
19637
19638 fi
19639
19640
19641 fi
19642
19643
19644 fi
19645
19646 ;;
19647 esac
19648
19649 if test "x$lt_cv_dlopen" != xno; then
19650 enable_dlopen=yes
19651 else
19652 enable_dlopen=no
19653 fi
19654
19655 case $lt_cv_dlopen in
19656 dlopen)
19657 save_CPPFLAGS="$CPPFLAGS"
19658 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19659
19660 save_LDFLAGS="$LDFLAGS"
19661 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19662
19663 save_LIBS="$LIBS"
19664 LIBS="$lt_cv_dlopen_libs $LIBS"
19665
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19667 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19668 if ${lt_cv_dlopen_self+:} false; then :
19669 $as_echo_n "(cached) " >&6
19670 else
19671 if test "$cross_compiling" = yes; then :
19672 lt_cv_dlopen_self=cross
19673 else
19674 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19675 lt_status=$lt_dlunknown
19676 cat > conftest.$ac_ext <<_LT_EOF
19677 #line 19679 "configure"
19678 #include "confdefs.h"
19679
19680 #if HAVE_DLFCN_H
19681 #include <dlfcn.h>
19682 #endif
19683
19684 #include <stdio.h>
19685
19686 #ifdef RTLD_GLOBAL
19687 # define LT_DLGLOBAL RTLD_GLOBAL
19688 #else
19689 # ifdef DL_GLOBAL
19690 # define LT_DLGLOBAL DL_GLOBAL
19691 # else
19692 # define LT_DLGLOBAL 0
19693 # endif
19694 #endif
19695
19696 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19697 find out it does not work in some platform. */
19698 #ifndef LT_DLLAZY_OR_NOW
19699 # ifdef RTLD_LAZY
19700 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19701 # else
19702 # ifdef DL_LAZY
19703 # define LT_DLLAZY_OR_NOW DL_LAZY
19704 # else
19705 # ifdef RTLD_NOW
19706 # define LT_DLLAZY_OR_NOW RTLD_NOW
19707 # else
19708 # ifdef DL_NOW
19709 # define LT_DLLAZY_OR_NOW DL_NOW
19710 # else
19711 # define LT_DLLAZY_OR_NOW 0
19712 # endif
19713 # endif
19714 # endif
19715 # endif
19716 #endif
19717
19718 /* When -fvisbility=hidden is used, assume the code has been annotated
19719 correspondingly for the symbols needed. */
19720 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19721 void fnord () __attribute__((visibility("default")));
19722 #endif
19723
19724 void fnord () { int i=42; }
19725 int main ()
19726 {
19727 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19728 int status = $lt_dlunknown;
19729
19730 if (self)
19731 {
19732 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19733 else
19734 {
19735 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19736 else puts (dlerror ());
19737 }
19738 /* dlclose (self); */
19739 }
19740 else
19741 puts (dlerror ());
19742
19743 return status;
19744 }
19745 _LT_EOF
19746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19747 (eval $ac_link) 2>&5
19748 ac_status=$?
19749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19750 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19751 (./conftest; exit; ) >&5 2>/dev/null
19752 lt_status=$?
19753 case x$lt_status in
19754 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19755 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19756 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19757 esac
19758 else :
19759 # compilation failed
19760 lt_cv_dlopen_self=no
19761 fi
19762 fi
19763 rm -fr conftest*
19764
19765
19766 fi
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19768 $as_echo "$lt_cv_dlopen_self" >&6; }
19769
19770 if test "x$lt_cv_dlopen_self" = xyes; then
19771 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19773 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19774 if ${lt_cv_dlopen_self_static+:} false; then :
19775 $as_echo_n "(cached) " >&6
19776 else
19777 if test "$cross_compiling" = yes; then :
19778 lt_cv_dlopen_self_static=cross
19779 else
19780 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19781 lt_status=$lt_dlunknown
19782 cat > conftest.$ac_ext <<_LT_EOF
19783 #line 19785 "configure"
19784 #include "confdefs.h"
19785
19786 #if HAVE_DLFCN_H
19787 #include <dlfcn.h>
19788 #endif
19789
19790 #include <stdio.h>
19791
19792 #ifdef RTLD_GLOBAL
19793 # define LT_DLGLOBAL RTLD_GLOBAL
19794 #else
19795 # ifdef DL_GLOBAL
19796 # define LT_DLGLOBAL DL_GLOBAL
19797 # else
19798 # define LT_DLGLOBAL 0
19799 # endif
19800 #endif
19801
19802 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19803 find out it does not work in some platform. */
19804 #ifndef LT_DLLAZY_OR_NOW
19805 # ifdef RTLD_LAZY
19806 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19807 # else
19808 # ifdef DL_LAZY
19809 # define LT_DLLAZY_OR_NOW DL_LAZY
19810 # else
19811 # ifdef RTLD_NOW
19812 # define LT_DLLAZY_OR_NOW RTLD_NOW
19813 # else
19814 # ifdef DL_NOW
19815 # define LT_DLLAZY_OR_NOW DL_NOW
19816 # else
19817 # define LT_DLLAZY_OR_NOW 0
19818 # endif
19819 # endif
19820 # endif
19821 # endif
19822 #endif
19823
19824 /* When -fvisbility=hidden is used, assume the code has been annotated
19825 correspondingly for the symbols needed. */
19826 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19827 void fnord () __attribute__((visibility("default")));
19828 #endif
19829
19830 void fnord () { int i=42; }
19831 int main ()
19832 {
19833 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19834 int status = $lt_dlunknown;
19835
19836 if (self)
19837 {
19838 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19839 else
19840 {
19841 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19842 else puts (dlerror ());
19843 }
19844 /* dlclose (self); */
19845 }
19846 else
19847 puts (dlerror ());
19848
19849 return status;
19850 }
19851 _LT_EOF
19852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19853 (eval $ac_link) 2>&5
19854 ac_status=$?
19855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19856 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19857 (./conftest; exit; ) >&5 2>/dev/null
19858 lt_status=$?
19859 case x$lt_status in
19860 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19861 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19862 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19863 esac
19864 else :
19865 # compilation failed
19866 lt_cv_dlopen_self_static=no
19867 fi
19868 fi
19869 rm -fr conftest*
19870
19871
19872 fi
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19874 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19875 fi
19876
19877 CPPFLAGS="$save_CPPFLAGS"
19878 LDFLAGS="$save_LDFLAGS"
19879 LIBS="$save_LIBS"
19880 ;;
19881 esac
19882
19883 case $lt_cv_dlopen_self in
19884 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19885 *) enable_dlopen_self=unknown ;;
19886 esac
19887
19888 case $lt_cv_dlopen_self_static in
19889 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19890 *) enable_dlopen_self_static=unknown ;;
19891 esac
19892 fi
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910 striplib=
19911 old_striplib=
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19913 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19914 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19915 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19916 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19918 $as_echo "yes" >&6; }
19919 else
19920 # FIXME - insert some real tests, host_os isn't really good enough
19921 case $host_os in
19922 darwin*)
19923 if test -n "$STRIP" ; then
19924 striplib="$STRIP -x"
19925 old_striplib="$STRIP -S"
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19927 $as_echo "yes" >&6; }
19928 else
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19930 $as_echo "no" >&6; }
19931 fi
19932 ;;
19933 *)
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19935 $as_echo "no" >&6; }
19936 ;;
19937 esac
19938 fi
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951 # Report which library types will actually be built
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19953 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19955 $as_echo "$can_build_shared" >&6; }
19956
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19958 $as_echo_n "checking whether to build shared libraries... " >&6; }
19959 test "$can_build_shared" = "no" && enable_shared=no
19960
19961 # On AIX, shared libraries and static libraries use the same namespace, and
19962 # are all built from PIC.
19963 case $host_os in
19964 aix3*)
19965 test "$enable_shared" = yes && enable_static=no
19966 if test -n "$RANLIB"; then
19967 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19968 postinstall_cmds='$RANLIB $lib'
19969 fi
19970 ;;
19971
19972 aix[4-9]*)
19973 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19974 test "$enable_shared" = yes && enable_static=no
19975 fi
19976 ;;
19977 esac
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19979 $as_echo "$enable_shared" >&6; }
19980
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19982 $as_echo_n "checking whether to build static libraries... " >&6; }
19983 # Make sure either enable_shared or enable_static is yes.
19984 test "$enable_shared" = yes || enable_static=yes
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19986 $as_echo "$enable_static" >&6; }
19987
19988
19989
19990
19991 fi
19992 ac_ext=cpp
19993 ac_cpp='$CXXCPP $CPPFLAGS'
19994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19997
19998 CC="$lt_save_CC"
19999
20000 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20001 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20002 (test "X$CXX" != "Xg++"))) ; then
20003 ac_ext=cpp
20004 ac_cpp='$CXXCPP $CPPFLAGS'
20005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20009 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20010 if test -z "$CXXCPP"; then
20011 if ${ac_cv_prog_CXXCPP+:} false; then :
20012 $as_echo_n "(cached) " >&6
20013 else
20014 # Double quotes because CXXCPP needs to be expanded
20015 for CXXCPP in "$CXX -E" "/lib/cpp"
20016 do
20017 ac_preproc_ok=false
20018 for ac_cxx_preproc_warn_flag in '' yes
20019 do
20020 # Use a header file that comes with gcc, so configuring glibc
20021 # with a fresh cross-compiler works.
20022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20023 # <limits.h> exists even on freestanding compilers.
20024 # On the NeXT, cc -E runs the code through the compiler's parser,
20025 # not just through cpp. "Syntax error" is here to catch this case.
20026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20027 /* end confdefs.h. */
20028 #ifdef __STDC__
20029 # include <limits.h>
20030 #else
20031 # include <assert.h>
20032 #endif
20033 Syntax error
20034 _ACEOF
20035 if ac_fn_cxx_try_cpp "$LINENO"; then :
20036
20037 else
20038 # Broken: fails on valid input.
20039 continue
20040 fi
20041 rm -f conftest.err conftest.i conftest.$ac_ext
20042
20043 # OK, works on sane cases. Now check whether nonexistent headers
20044 # can be detected and how.
20045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20046 /* end confdefs.h. */
20047 #include <ac_nonexistent.h>
20048 _ACEOF
20049 if ac_fn_cxx_try_cpp "$LINENO"; then :
20050 # Broken: success on invalid input.
20051 continue
20052 else
20053 # Passes both tests.
20054 ac_preproc_ok=:
20055 break
20056 fi
20057 rm -f conftest.err conftest.i conftest.$ac_ext
20058
20059 done
20060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20061 rm -f conftest.i conftest.err conftest.$ac_ext
20062 if $ac_preproc_ok; then :
20063 break
20064 fi
20065
20066 done
20067 ac_cv_prog_CXXCPP=$CXXCPP
20068
20069 fi
20070 CXXCPP=$ac_cv_prog_CXXCPP
20071 else
20072 ac_cv_prog_CXXCPP=$CXXCPP
20073 fi
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20075 $as_echo "$CXXCPP" >&6; }
20076 ac_preproc_ok=false
20077 for ac_cxx_preproc_warn_flag in '' yes
20078 do
20079 # Use a header file that comes with gcc, so configuring glibc
20080 # with a fresh cross-compiler works.
20081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20082 # <limits.h> exists even on freestanding compilers.
20083 # On the NeXT, cc -E runs the code through the compiler's parser,
20084 # not just through cpp. "Syntax error" is here to catch this case.
20085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20086 /* end confdefs.h. */
20087 #ifdef __STDC__
20088 # include <limits.h>
20089 #else
20090 # include <assert.h>
20091 #endif
20092 Syntax error
20093 _ACEOF
20094 if ac_fn_cxx_try_cpp "$LINENO"; then :
20095
20096 else
20097 # Broken: fails on valid input.
20098 continue
20099 fi
20100 rm -f conftest.err conftest.i conftest.$ac_ext
20101
20102 # OK, works on sane cases. Now check whether nonexistent headers
20103 # can be detected and how.
20104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20105 /* end confdefs.h. */
20106 #include <ac_nonexistent.h>
20107 _ACEOF
20108 if ac_fn_cxx_try_cpp "$LINENO"; then :
20109 # Broken: success on invalid input.
20110 continue
20111 else
20112 # Passes both tests.
20113 ac_preproc_ok=:
20114 break
20115 fi
20116 rm -f conftest.err conftest.i conftest.$ac_ext
20117
20118 done
20119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20120 rm -f conftest.i conftest.err conftest.$ac_ext
20121 if $ac_preproc_ok; then :
20122
20123 else
20124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20126 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20127 See \`config.log' for more details" "$LINENO" 5; }
20128 fi
20129
20130 ac_ext=cpp
20131 ac_cpp='$CXXCPP $CPPFLAGS'
20132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20135
20136 else
20137 _lt_caught_CXX_error=yes
20138 fi
20139
20140 ac_ext=cpp
20141 ac_cpp='$CXXCPP $CPPFLAGS'
20142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20145
20146 archive_cmds_need_lc_CXX=no
20147 allow_undefined_flag_CXX=
20148 always_export_symbols_CXX=no
20149 archive_expsym_cmds_CXX=
20150 compiler_needs_object_CXX=no
20151 export_dynamic_flag_spec_CXX=
20152 hardcode_direct_CXX=no
20153 hardcode_direct_absolute_CXX=no
20154 hardcode_libdir_flag_spec_CXX=
20155 hardcode_libdir_flag_spec_ld_CXX=
20156 hardcode_libdir_separator_CXX=
20157 hardcode_minus_L_CXX=no
20158 hardcode_shlibpath_var_CXX=unsupported
20159 hardcode_automatic_CXX=no
20160 inherit_rpath_CXX=no
20161 module_cmds_CXX=
20162 module_expsym_cmds_CXX=
20163 link_all_deplibs_CXX=unknown
20164 old_archive_cmds_CXX=$old_archive_cmds
20165 reload_flag_CXX=$reload_flag
20166 reload_cmds_CXX=$reload_cmds
20167 no_undefined_flag_CXX=
20168 whole_archive_flag_spec_CXX=
20169 enable_shared_with_static_runtimes_CXX=no
20170
20171 # Source file extension for C++ test sources.
20172 ac_ext=cpp
20173
20174 # Object file extension for compiled C++ test sources.
20175 objext=o
20176 objext_CXX=$objext
20177
20178 # No sense in running all these tests if we already determined that
20179 # the CXX compiler isn't working. Some variables (like enable_shared)
20180 # are currently assumed to apply to all compilers on this platform,
20181 # and will be corrupted by setting them based on a non-working compiler.
20182 if test "$_lt_caught_CXX_error" != yes; then
20183 # Code to be used in simple compile tests
20184 lt_simple_compile_test_code="int some_variable = 0;"
20185
20186 # Code to be used in simple link tests
20187 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20188
20189 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20190
20191
20192
20193
20194
20195
20196 # If no C compiler was specified, use CC.
20197 LTCC=${LTCC-"$CC"}
20198
20199 # If no C compiler flags were specified, use CFLAGS.
20200 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20201
20202 # Allow CC to be a program name with arguments.
20203 compiler=$CC
20204
20205
20206 # save warnings/boilerplate of simple test code
20207 ac_outfile=conftest.$ac_objext
20208 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20209 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20210 _lt_compiler_boilerplate=`cat conftest.err`
20211 $RM conftest*
20212
20213 ac_outfile=conftest.$ac_objext
20214 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20215 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20216 _lt_linker_boilerplate=`cat conftest.err`
20217 $RM -r conftest*
20218
20219
20220 # Allow CC to be a program name with arguments.
20221 lt_save_CC=$CC
20222 lt_save_LD=$LD
20223 lt_save_GCC=$GCC
20224 GCC=$GXX
20225 lt_save_with_gnu_ld=$with_gnu_ld
20226 lt_save_path_LD=$lt_cv_path_LD
20227 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20228 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20229 else
20230 $as_unset lt_cv_prog_gnu_ld
20231 fi
20232 if test -n "${lt_cv_path_LDCXX+set}"; then
20233 lt_cv_path_LD=$lt_cv_path_LDCXX
20234 else
20235 $as_unset lt_cv_path_LD
20236 fi
20237 test -z "${LDCXX+set}" || LD=$LDCXX
20238 CC=${CXX-"c++"}
20239 compiler=$CC
20240 compiler_CXX=$CC
20241 for cc_temp in $compiler""; do
20242 case $cc_temp in
20243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20245 \-*) ;;
20246 *) break;;
20247 esac
20248 done
20249 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20250
20251
20252 if test -n "$compiler"; then
20253 # We don't want -fno-exception when compiling C++ code, so set the
20254 # no_builtin_flag separately
20255 if test "$GXX" = yes; then
20256 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20257 else
20258 lt_prog_compiler_no_builtin_flag_CXX=
20259 fi
20260
20261 if test "$GXX" = yes; then
20262 # Set up default GNU C++ configuration
20263
20264
20265
20266 # Check whether --with-gnu-ld was given.
20267 if test "${with_gnu_ld+set}" = set; then :
20268 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20269 else
20270 with_gnu_ld=no
20271 fi
20272
20273 ac_prog=ld
20274 if test "$GCC" = yes; then
20275 # Check if gcc -print-prog-name=ld gives a path.
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20277 $as_echo_n "checking for ld used by $CC... " >&6; }
20278 case $host in
20279 *-*-mingw*)
20280 # gcc leaves a trailing carriage return which upsets mingw
20281 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20282 *)
20283 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20284 esac
20285 case $ac_prog in
20286 # Accept absolute paths.
20287 [\\/]* | ?:[\\/]*)
20288 re_direlt='/[^/][^/]*/\.\./'
20289 # Canonicalize the pathname of ld
20290 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20291 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20292 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20293 done
20294 test -z "$LD" && LD="$ac_prog"
20295 ;;
20296 "")
20297 # If it fails, then pretend we aren't using GCC.
20298 ac_prog=ld
20299 ;;
20300 *)
20301 # If it is relative, then search for the first ld in PATH.
20302 with_gnu_ld=unknown
20303 ;;
20304 esac
20305 elif test "$with_gnu_ld" = yes; then
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20307 $as_echo_n "checking for GNU ld... " >&6; }
20308 else
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20310 $as_echo_n "checking for non-GNU ld... " >&6; }
20311 fi
20312 if ${lt_cv_path_LD+:} false; then :
20313 $as_echo_n "(cached) " >&6
20314 else
20315 if test -z "$LD"; then
20316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20317 for ac_dir in $PATH; do
20318 IFS="$lt_save_ifs"
20319 test -z "$ac_dir" && ac_dir=.
20320 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20321 lt_cv_path_LD="$ac_dir/$ac_prog"
20322 # Check to see if the program is GNU ld. I'd rather use --version,
20323 # but apparently some variants of GNU ld only accept -v.
20324 # Break only if it was the GNU/non-GNU ld that we prefer.
20325 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20326 *GNU* | *'with BFD'*)
20327 test "$with_gnu_ld" != no && break
20328 ;;
20329 *)
20330 test "$with_gnu_ld" != yes && break
20331 ;;
20332 esac
20333 fi
20334 done
20335 IFS="$lt_save_ifs"
20336 else
20337 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20338 fi
20339 fi
20340
20341 LD="$lt_cv_path_LD"
20342 if test -n "$LD"; then
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20344 $as_echo "$LD" >&6; }
20345 else
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20347 $as_echo "no" >&6; }
20348 fi
20349 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20351 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20352 if ${lt_cv_prog_gnu_ld+:} false; then :
20353 $as_echo_n "(cached) " >&6
20354 else
20355 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20356 case `$LD -v 2>&1 </dev/null` in
20357 *GNU* | *'with BFD'*)
20358 lt_cv_prog_gnu_ld=yes
20359 ;;
20360 *)
20361 lt_cv_prog_gnu_ld=no
20362 ;;
20363 esac
20364 fi
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20366 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20367 with_gnu_ld=$lt_cv_prog_gnu_ld
20368
20369
20370
20371
20372
20373
20374
20375 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20376 # archiving commands below assume that GNU ld is being used.
20377 if test "$with_gnu_ld" = yes; then
20378 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20379 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'
20380
20381 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20382 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20383
20384 # If archive_cmds runs LD, not CC, wlarc should be empty
20385 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20386 # investigate it a little bit more. (MM)
20387 wlarc='${wl}'
20388
20389 # ancient GNU ld didn't support --whole-archive et. al.
20390 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20391 $GREP 'no-whole-archive' > /dev/null; then
20392 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20393 else
20394 whole_archive_flag_spec_CXX=
20395 fi
20396 else
20397 with_gnu_ld=no
20398 wlarc=
20399
20400 # A generic and very simple default shared library creation
20401 # command for GNU C++ for the case where it uses the native
20402 # linker, instead of GNU ld. If possible, this setting should
20403 # overridden to take advantage of the native linker features on
20404 # the platform it is being used on.
20405 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20406 fi
20407
20408 # Commands to make compiler produce verbose output that lists
20409 # what "hidden" libraries, object files and flags are used when
20410 # linking a shared library.
20411 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20412
20413 else
20414 GXX=no
20415 with_gnu_ld=no
20416 wlarc=
20417 fi
20418
20419 # PORTME: fill in a description of your system's C++ link characteristics
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20421 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20422 ld_shlibs_CXX=yes
20423 case $host_os in
20424 aix3*)
20425 # FIXME: insert proper C++ library support
20426 ld_shlibs_CXX=no
20427 ;;
20428 aix[4-9]*)
20429 if test "$host_cpu" = ia64; then
20430 # On IA64, the linker does run time linking by default, so we don't
20431 # have to do anything special.
20432 aix_use_runtimelinking=no
20433 exp_sym_flag='-Bexport'
20434 no_entry_flag=""
20435 else
20436 aix_use_runtimelinking=no
20437
20438 # Test if we are trying to use run time linking or normal
20439 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20440 # need to do runtime linking.
20441 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20442 for ld_flag in $LDFLAGS; do
20443 case $ld_flag in
20444 *-brtl*)
20445 aix_use_runtimelinking=yes
20446 break
20447 ;;
20448 esac
20449 done
20450 ;;
20451 esac
20452
20453 exp_sym_flag='-bexport'
20454 no_entry_flag='-bnoentry'
20455 fi
20456
20457 # When large executables or shared objects are built, AIX ld can
20458 # have problems creating the table of contents. If linking a library
20459 # or program results in "error TOC overflow" add -mminimal-toc to
20460 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20461 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20462
20463 archive_cmds_CXX=''
20464 hardcode_direct_CXX=yes
20465 hardcode_direct_absolute_CXX=yes
20466 hardcode_libdir_separator_CXX=':'
20467 link_all_deplibs_CXX=yes
20468 file_list_spec_CXX='${wl}-f,'
20469
20470 if test "$GXX" = yes; then
20471 case $host_os in aix4.[012]|aix4.[012].*)
20472 # We only want to do this on AIX 4.2 and lower, the check
20473 # below for broken collect2 doesn't work under 4.3+
20474 collect2name=`${CC} -print-prog-name=collect2`
20475 if test -f "$collect2name" &&
20476 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20477 then
20478 # We have reworked collect2
20479 :
20480 else
20481 # We have old collect2
20482 hardcode_direct_CXX=unsupported
20483 # It fails to find uninstalled libraries when the uninstalled
20484 # path is not listed in the libpath. Setting hardcode_minus_L
20485 # to unsupported forces relinking
20486 hardcode_minus_L_CXX=yes
20487 hardcode_libdir_flag_spec_CXX='-L$libdir'
20488 hardcode_libdir_separator_CXX=
20489 fi
20490 esac
20491 shared_flag='-shared'
20492 if test "$aix_use_runtimelinking" = yes; then
20493 shared_flag="$shared_flag "'${wl}-G'
20494 fi
20495 else
20496 # not using gcc
20497 if test "$host_cpu" = ia64; then
20498 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20499 # chokes on -Wl,-G. The following line is correct:
20500 shared_flag='-G'
20501 else
20502 if test "$aix_use_runtimelinking" = yes; then
20503 shared_flag='${wl}-G'
20504 else
20505 shared_flag='${wl}-bM:SRE'
20506 fi
20507 fi
20508 fi
20509
20510 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20511 # It seems that -bexpall does not export symbols beginning with
20512 # underscore (_), so it is better to generate a list of symbols to
20513 # export.
20514 always_export_symbols_CXX=yes
20515 if test "$aix_use_runtimelinking" = yes; then
20516 # Warning - without using the other runtime loading flags (-brtl),
20517 # -berok will link without error, but may produce a broken library.
20518 allow_undefined_flag_CXX='-berok'
20519 # Determine the default libpath from the value encoded in an empty
20520 # executable.
20521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20522 /* end confdefs.h. */
20523
20524 int
20525 main ()
20526 {
20527
20528 ;
20529 return 0;
20530 }
20531 _ACEOF
20532 if ac_fn_cxx_try_link "$LINENO"; then :
20533
20534 lt_aix_libpath_sed='
20535 /Import File Strings/,/^$/ {
20536 /^0/ {
20537 s/^0 *\(.*\)$/\1/
20538 p
20539 }
20540 }'
20541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20542 # Check for a 64-bit object if we didn't find anything.
20543 if test -z "$aix_libpath"; then
20544 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20545 fi
20546 fi
20547 rm -f core conftest.err conftest.$ac_objext \
20548 conftest$ac_exeext conftest.$ac_ext
20549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20550
20551 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20552
20553 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"
20554 else
20555 if test "$host_cpu" = ia64; then
20556 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20557 allow_undefined_flag_CXX="-z nodefs"
20558 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"
20559 else
20560 # Determine the default libpath from the value encoded in an
20561 # empty executable.
20562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20563 /* end confdefs.h. */
20564
20565 int
20566 main ()
20567 {
20568
20569 ;
20570 return 0;
20571 }
20572 _ACEOF
20573 if ac_fn_cxx_try_link "$LINENO"; then :
20574
20575 lt_aix_libpath_sed='
20576 /Import File Strings/,/^$/ {
20577 /^0/ {
20578 s/^0 *\(.*\)$/\1/
20579 p
20580 }
20581 }'
20582 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20583 # Check for a 64-bit object if we didn't find anything.
20584 if test -z "$aix_libpath"; then
20585 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20586 fi
20587 fi
20588 rm -f core conftest.err conftest.$ac_objext \
20589 conftest$ac_exeext conftest.$ac_ext
20590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20591
20592 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20593 # Warning - without using the other run time loading flags,
20594 # -berok will link without error, but may produce a broken library.
20595 no_undefined_flag_CXX=' ${wl}-bernotok'
20596 allow_undefined_flag_CXX=' ${wl}-berok'
20597 if test "$with_gnu_ld" = yes; then
20598 # We only use this code for GNU lds that support --whole-archive.
20599 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20600 else
20601 # Exported symbols can be pulled into shared objects from archives
20602 whole_archive_flag_spec_CXX='$convenience'
20603 fi
20604 archive_cmds_need_lc_CXX=yes
20605 # This is similar to how AIX traditionally builds its shared
20606 # libraries.
20607 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'
20608 fi
20609 fi
20610 ;;
20611
20612 beos*)
20613 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20614 allow_undefined_flag_CXX=unsupported
20615 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20616 # support --undefined. This deserves some investigation. FIXME
20617 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20618 else
20619 ld_shlibs_CXX=no
20620 fi
20621 ;;
20622
20623 chorus*)
20624 case $cc_basename in
20625 *)
20626 # FIXME: insert proper C++ library support
20627 ld_shlibs_CXX=no
20628 ;;
20629 esac
20630 ;;
20631
20632 cygwin* | mingw* | pw32* | cegcc*)
20633 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20634 # as there is no search path for DLLs.
20635 hardcode_libdir_flag_spec_CXX='-L$libdir'
20636 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20637 allow_undefined_flag_CXX=unsupported
20638 always_export_symbols_CXX=no
20639 enable_shared_with_static_runtimes_CXX=yes
20640
20641 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20642 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'
20643 # If the export-symbols file already is a .def file (1st line
20644 # is EXPORTS), use it as is; otherwise, prepend...
20645 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20646 cp $export_symbols $output_objdir/$soname.def;
20647 else
20648 echo EXPORTS > $output_objdir/$soname.def;
20649 cat $export_symbols >> $output_objdir/$soname.def;
20650 fi~
20651 $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'
20652 else
20653 ld_shlibs_CXX=no
20654 fi
20655 ;;
20656 darwin* | rhapsody*)
20657
20658
20659 archive_cmds_need_lc_CXX=no
20660 hardcode_direct_CXX=no
20661 hardcode_automatic_CXX=yes
20662 hardcode_shlibpath_var_CXX=unsupported
20663 if test "$lt_cv_ld_force_load" = "yes"; then
20664 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\"`'
20665 else
20666 whole_archive_flag_spec_CXX=''
20667 fi
20668 link_all_deplibs_CXX=yes
20669 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20670 case $cc_basename in
20671 ifort*) _lt_dar_can_shared=yes ;;
20672 *) _lt_dar_can_shared=$GCC ;;
20673 esac
20674 if test "$_lt_dar_can_shared" = "yes"; then
20675 output_verbose_link_cmd=func_echo_all
20676 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}"
20677 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20678 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}"
20679 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}"
20680 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20681 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}"
20682 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}"
20683 fi
20684
20685 else
20686 ld_shlibs_CXX=no
20687 fi
20688
20689 ;;
20690
20691 dgux*)
20692 case $cc_basename in
20693 ec++*)
20694 # FIXME: insert proper C++ library support
20695 ld_shlibs_CXX=no
20696 ;;
20697 ghcx*)
20698 # Green Hills C++ Compiler
20699 # FIXME: insert proper C++ library support
20700 ld_shlibs_CXX=no
20701 ;;
20702 *)
20703 # FIXME: insert proper C++ library support
20704 ld_shlibs_CXX=no
20705 ;;
20706 esac
20707 ;;
20708
20709 freebsd2.*)
20710 # C++ shared libraries reported to be fairly broken before
20711 # switch to ELF
20712 ld_shlibs_CXX=no
20713 ;;
20714
20715 freebsd-elf*)
20716 archive_cmds_need_lc_CXX=no
20717 ;;
20718
20719 freebsd* | dragonfly*)
20720 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20721 # conventions
20722 ld_shlibs_CXX=yes
20723 ;;
20724
20725 gnu*)
20726 ;;
20727
20728 haiku*)
20729 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20730 link_all_deplibs_CXX=yes
20731 ;;
20732
20733 hpux9*)
20734 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20735 hardcode_libdir_separator_CXX=:
20736 export_dynamic_flag_spec_CXX='${wl}-E'
20737 hardcode_direct_CXX=yes
20738 hardcode_minus_L_CXX=yes # Not in the search PATH,
20739 # but as the default
20740 # location of the library.
20741
20742 case $cc_basename in
20743 CC*)
20744 # FIXME: insert proper C++ library support
20745 ld_shlibs_CXX=no
20746 ;;
20747 aCC*)
20748 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'
20749 # Commands to make compiler produce verbose output that lists
20750 # what "hidden" libraries, object files and flags are used when
20751 # linking a shared library.
20752 #
20753 # There doesn't appear to be a way to prevent this compiler from
20754 # explicitly linking system object files so we need to strip them
20755 # from the output so that they don't get included in the library
20756 # dependencies.
20757 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"'
20758 ;;
20759 *)
20760 if test "$GXX" = yes; then
20761 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'
20762 else
20763 # FIXME: insert proper C++ library support
20764 ld_shlibs_CXX=no
20765 fi
20766 ;;
20767 esac
20768 ;;
20769
20770 hpux10*|hpux11*)
20771 if test $with_gnu_ld = no; then
20772 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20773 hardcode_libdir_separator_CXX=:
20774
20775 case $host_cpu in
20776 hppa*64*|ia64*)
20777 ;;
20778 *)
20779 export_dynamic_flag_spec_CXX='${wl}-E'
20780 ;;
20781 esac
20782 fi
20783 case $host_cpu in
20784 hppa*64*|ia64*)
20785 hardcode_direct_CXX=no
20786 hardcode_shlibpath_var_CXX=no
20787 ;;
20788 *)
20789 hardcode_direct_CXX=yes
20790 hardcode_direct_absolute_CXX=yes
20791 hardcode_minus_L_CXX=yes # Not in the search PATH,
20792 # but as the default
20793 # location of the library.
20794 ;;
20795 esac
20796
20797 case $cc_basename in
20798 CC*)
20799 # FIXME: insert proper C++ library support
20800 ld_shlibs_CXX=no
20801 ;;
20802 aCC*)
20803 case $host_cpu in
20804 hppa*64*)
20805 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20806 ;;
20807 ia64*)
20808 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20809 ;;
20810 *)
20811 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20812 ;;
20813 esac
20814 # Commands to make compiler produce verbose output that lists
20815 # what "hidden" libraries, object files and flags are used when
20816 # linking a shared library.
20817 #
20818 # There doesn't appear to be a way to prevent this compiler from
20819 # explicitly linking system object files so we need to strip them
20820 # from the output so that they don't get included in the library
20821 # dependencies.
20822 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"'
20823 ;;
20824 *)
20825 if test "$GXX" = yes; then
20826 if test $with_gnu_ld = no; then
20827 case $host_cpu in
20828 hppa*64*)
20829 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20830 ;;
20831 ia64*)
20832 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20833 ;;
20834 *)
20835 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'
20836 ;;
20837 esac
20838 fi
20839 else
20840 # FIXME: insert proper C++ library support
20841 ld_shlibs_CXX=no
20842 fi
20843 ;;
20844 esac
20845 ;;
20846
20847 interix[3-9]*)
20848 hardcode_direct_CXX=no
20849 hardcode_shlibpath_var_CXX=no
20850 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20851 export_dynamic_flag_spec_CXX='${wl}-E'
20852 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20853 # Instead, shared libraries are loaded at an image base (0x10000000 by
20854 # default) and relocated if they conflict, which is a slow very memory
20855 # consuming and fragmenting process. To avoid this, we pick a random,
20856 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20857 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20858 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'
20859 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'
20860 ;;
20861 irix5* | irix6*)
20862 case $cc_basename in
20863 CC*)
20864 # SGI C++
20865 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'
20866
20867 # Archives containing C++ object files must be created using
20868 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20869 # necessary to make sure instantiated templates are included
20870 # in the archive.
20871 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20872 ;;
20873 *)
20874 if test "$GXX" = yes; then
20875 if test "$with_gnu_ld" = no; then
20876 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'
20877 else
20878 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'
20879 fi
20880 fi
20881 link_all_deplibs_CXX=yes
20882 ;;
20883 esac
20884 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20885 hardcode_libdir_separator_CXX=:
20886 inherit_rpath_CXX=yes
20887 ;;
20888
20889 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20890 case $cc_basename in
20891 KCC*)
20892 # Kuck and Associates, Inc. (KAI) C++ Compiler
20893
20894 # KCC will only create a shared library if the output file
20895 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20896 # to its proper name (with version) after linking.
20897 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'
20898 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'
20899 # Commands to make compiler produce verbose output that lists
20900 # what "hidden" libraries, object files and flags are used when
20901 # linking a shared library.
20902 #
20903 # There doesn't appear to be a way to prevent this compiler from
20904 # explicitly linking system object files so we need to strip them
20905 # from the output so that they don't get included in the library
20906 # dependencies.
20907 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"'
20908
20909 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20910 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20911
20912 # Archives containing C++ object files must be created using
20913 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20914 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20915 ;;
20916 icpc* | ecpc* )
20917 # Intel C++
20918 with_gnu_ld=yes
20919 # version 8.0 and above of icpc choke on multiply defined symbols
20920 # if we add $predep_objects and $postdep_objects, however 7.1 and
20921 # earlier do not add the objects themselves.
20922 case `$CC -V 2>&1` in
20923 *"Version 7."*)
20924 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20925 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'
20926 ;;
20927 *) # Version 8.0 or newer
20928 tmp_idyn=
20929 case $host_cpu in
20930 ia64*) tmp_idyn=' -i_dynamic';;
20931 esac
20932 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20933 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'
20934 ;;
20935 esac
20936 archive_cmds_need_lc_CXX=no
20937 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20938 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20939 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20940 ;;
20941 pgCC* | pgcpp*)
20942 # Portland Group C++ compiler
20943 case `$CC -V` in
20944 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20945 prelink_cmds_CXX='tpldir=Template.dir~
20946 rm -rf $tpldir~
20947 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20948 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20949 old_archive_cmds_CXX='tpldir=Template.dir~
20950 rm -rf $tpldir~
20951 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20952 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20953 $RANLIB $oldlib'
20954 archive_cmds_CXX='tpldir=Template.dir~
20955 rm -rf $tpldir~
20956 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20957 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20958 archive_expsym_cmds_CXX='tpldir=Template.dir~
20959 rm -rf $tpldir~
20960 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20961 $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'
20962 ;;
20963 *) # Version 6 and above use weak symbols
20964 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20965 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'
20966 ;;
20967 esac
20968
20969 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20970 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20971 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'
20972 ;;
20973 cxx*)
20974 # Compaq C++
20975 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20976 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'
20977
20978 runpath_var=LD_RUN_PATH
20979 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20980 hardcode_libdir_separator_CXX=:
20981
20982 # Commands to make compiler produce verbose output that lists
20983 # what "hidden" libraries, object files and flags are used when
20984 # linking a shared library.
20985 #
20986 # There doesn't appear to be a way to prevent this compiler from
20987 # explicitly linking system object files so we need to strip them
20988 # from the output so that they don't get included in the library
20989 # dependencies.
20990 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'
20991 ;;
20992 xl* | mpixl* | bgxl*)
20993 # IBM XL 8.0 on PPC, with GNU ld
20994 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20995 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20996 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20997 if test "x$supports_anon_versioning" = xyes; then
20998 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20999 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21000 echo "local: *; };" >> $output_objdir/$libname.ver~
21001 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21002 fi
21003 ;;
21004 *)
21005 case `$CC -V 2>&1 | sed 5q` in
21006 *Sun\ C*)
21007 # Sun C++ 5.9
21008 no_undefined_flag_CXX=' -zdefs'
21009 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21010 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'
21011 hardcode_libdir_flag_spec_CXX='-R$libdir'
21012 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'
21013 compiler_needs_object_CXX=yes
21014
21015 # Not sure whether something based on
21016 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21017 # would be better.
21018 output_verbose_link_cmd='func_echo_all'
21019
21020 # Archives containing C++ object files must be created using
21021 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21022 # necessary to make sure instantiated templates are included
21023 # in the archive.
21024 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21025 ;;
21026 esac
21027 ;;
21028 esac
21029 ;;
21030
21031 lynxos*)
21032 # FIXME: insert proper C++ library support
21033 ld_shlibs_CXX=no
21034 ;;
21035
21036 m88k*)
21037 # FIXME: insert proper C++ library support
21038 ld_shlibs_CXX=no
21039 ;;
21040
21041 mvs*)
21042 case $cc_basename in
21043 cxx*)
21044 # FIXME: insert proper C++ library support
21045 ld_shlibs_CXX=no
21046 ;;
21047 *)
21048 # FIXME: insert proper C++ library support
21049 ld_shlibs_CXX=no
21050 ;;
21051 esac
21052 ;;
21053
21054 netbsd*)
21055 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21056 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21057 wlarc=
21058 hardcode_libdir_flag_spec_CXX='-R$libdir'
21059 hardcode_direct_CXX=yes
21060 hardcode_shlibpath_var_CXX=no
21061 fi
21062 # Workaround some broken pre-1.5 toolchains
21063 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21064 ;;
21065
21066 *nto* | *qnx*)
21067 ld_shlibs_CXX=yes
21068 ;;
21069
21070 openbsd2*)
21071 # C++ shared libraries are fairly broken
21072 ld_shlibs_CXX=no
21073 ;;
21074
21075 openbsd*)
21076 if test -f /usr/libexec/ld.so; then
21077 hardcode_direct_CXX=yes
21078 hardcode_shlibpath_var_CXX=no
21079 hardcode_direct_absolute_CXX=yes
21080 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21081 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21082 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21083 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21084 export_dynamic_flag_spec_CXX='${wl}-E'
21085 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21086 fi
21087 output_verbose_link_cmd=func_echo_all
21088 else
21089 ld_shlibs_CXX=no
21090 fi
21091 ;;
21092
21093 osf3* | osf4* | osf5*)
21094 case $cc_basename in
21095 KCC*)
21096 # Kuck and Associates, Inc. (KAI) C++ Compiler
21097
21098 # KCC will only create a shared library if the output file
21099 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21100 # to its proper name (with version) after linking.
21101 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'
21102
21103 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21104 hardcode_libdir_separator_CXX=:
21105
21106 # Archives containing C++ object files must be created using
21107 # the KAI C++ compiler.
21108 case $host in
21109 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21110 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21111 esac
21112 ;;
21113 RCC*)
21114 # Rational C++ 2.4.1
21115 # FIXME: insert proper C++ library support
21116 ld_shlibs_CXX=no
21117 ;;
21118 cxx*)
21119 case $host in
21120 osf3*)
21121 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21122 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'
21123 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21124 ;;
21125 *)
21126 allow_undefined_flag_CXX=' -expect_unresolved \*'
21127 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'
21128 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21129 echo "-hidden">> $lib.exp~
21130 $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~
21131 $RM $lib.exp'
21132 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21133 ;;
21134 esac
21135
21136 hardcode_libdir_separator_CXX=:
21137
21138 # Commands to make compiler produce verbose output that lists
21139 # what "hidden" libraries, object files and flags are used when
21140 # linking a shared library.
21141 #
21142 # There doesn't appear to be a way to prevent this compiler from
21143 # explicitly linking system object files so we need to strip them
21144 # from the output so that they don't get included in the library
21145 # dependencies.
21146 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"'
21147 ;;
21148 *)
21149 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21150 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21151 case $host in
21152 osf3*)
21153 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'
21154 ;;
21155 *)
21156 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'
21157 ;;
21158 esac
21159
21160 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21161 hardcode_libdir_separator_CXX=:
21162
21163 # Commands to make compiler produce verbose output that lists
21164 # what "hidden" libraries, object files and flags are used when
21165 # linking a shared library.
21166 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21167
21168 else
21169 # FIXME: insert proper C++ library support
21170 ld_shlibs_CXX=no
21171 fi
21172 ;;
21173 esac
21174 ;;
21175
21176 psos*)
21177 # FIXME: insert proper C++ library support
21178 ld_shlibs_CXX=no
21179 ;;
21180
21181 sunos4*)
21182 case $cc_basename in
21183 CC*)
21184 # Sun C++ 4.x
21185 # FIXME: insert proper C++ library support
21186 ld_shlibs_CXX=no
21187 ;;
21188 lcc*)
21189 # Lucid
21190 # FIXME: insert proper C++ library support
21191 ld_shlibs_CXX=no
21192 ;;
21193 *)
21194 # FIXME: insert proper C++ library support
21195 ld_shlibs_CXX=no
21196 ;;
21197 esac
21198 ;;
21199
21200 solaris*)
21201 case $cc_basename in
21202 CC*)
21203 # Sun C++ 4.2, 5.x and Centerline C++
21204 archive_cmds_need_lc_CXX=yes
21205 no_undefined_flag_CXX=' -zdefs'
21206 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21207 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21208 $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'
21209
21210 hardcode_libdir_flag_spec_CXX='-R$libdir'
21211 hardcode_shlibpath_var_CXX=no
21212 case $host_os in
21213 solaris2.[0-5] | solaris2.[0-5].*) ;;
21214 *)
21215 # The compiler driver will combine and reorder linker options,
21216 # but understands `-z linker_flag'.
21217 # Supported since Solaris 2.6 (maybe 2.5.1?)
21218 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21219 ;;
21220 esac
21221 link_all_deplibs_CXX=yes
21222
21223 output_verbose_link_cmd='func_echo_all'
21224
21225 # Archives containing C++ object files must be created using
21226 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21227 # necessary to make sure instantiated templates are included
21228 # in the archive.
21229 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21230 ;;
21231 gcx*)
21232 # Green Hills C++ Compiler
21233 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21234
21235 # The C++ compiler must be used to create the archive.
21236 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21237 ;;
21238 *)
21239 # GNU C++ compiler with Solaris linker
21240 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21241 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21242 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21243 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21244 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21245 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21246
21247 # Commands to make compiler produce verbose output that lists
21248 # what "hidden" libraries, object files and flags are used when
21249 # linking a shared library.
21250 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21251 else
21252 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21253 # platform.
21254 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21255 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21256 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21257
21258 # Commands to make compiler produce verbose output that lists
21259 # what "hidden" libraries, object files and flags are used when
21260 # linking a shared library.
21261 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21262 fi
21263
21264 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21265 case $host_os in
21266 solaris2.[0-5] | solaris2.[0-5].*) ;;
21267 *)
21268 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21269 ;;
21270 esac
21271 fi
21272 ;;
21273 esac
21274 ;;
21275
21276 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21277 no_undefined_flag_CXX='${wl}-z,text'
21278 archive_cmds_need_lc_CXX=no
21279 hardcode_shlibpath_var_CXX=no
21280 runpath_var='LD_RUN_PATH'
21281
21282 case $cc_basename in
21283 CC*)
21284 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21285 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21286 ;;
21287 *)
21288 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21289 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21290 ;;
21291 esac
21292 ;;
21293
21294 sysv5* | sco3.2v5* | sco5v6*)
21295 # Note: We can NOT use -z defs as we might desire, because we do not
21296 # link with -lc, and that would cause any symbols used from libc to
21297 # always be unresolved, which means just about no library would
21298 # ever link correctly. If we're not using GNU ld we use -z text
21299 # though, which does catch some bad symbols but isn't as heavy-handed
21300 # as -z defs.
21301 no_undefined_flag_CXX='${wl}-z,text'
21302 allow_undefined_flag_CXX='${wl}-z,nodefs'
21303 archive_cmds_need_lc_CXX=no
21304 hardcode_shlibpath_var_CXX=no
21305 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21306 hardcode_libdir_separator_CXX=':'
21307 link_all_deplibs_CXX=yes
21308 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21309 runpath_var='LD_RUN_PATH'
21310
21311 case $cc_basename in
21312 CC*)
21313 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21314 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21315 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21316 '"$old_archive_cmds_CXX"
21317 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21318 '"$reload_cmds_CXX"
21319 ;;
21320 *)
21321 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21322 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21323 ;;
21324 esac
21325 ;;
21326
21327 tandem*)
21328 case $cc_basename in
21329 NCC*)
21330 # NonStop-UX NCC 3.20
21331 # FIXME: insert proper C++ library support
21332 ld_shlibs_CXX=no
21333 ;;
21334 *)
21335 # FIXME: insert proper C++ library support
21336 ld_shlibs_CXX=no
21337 ;;
21338 esac
21339 ;;
21340
21341 vxworks*)
21342 # FIXME: insert proper C++ library support
21343 ld_shlibs_CXX=no
21344 ;;
21345
21346 *)
21347 # FIXME: insert proper C++ library support
21348 ld_shlibs_CXX=no
21349 ;;
21350 esac
21351
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21353 $as_echo "$ld_shlibs_CXX" >&6; }
21354 test "$ld_shlibs_CXX" = no && can_build_shared=no
21355
21356 GCC_CXX="$GXX"
21357 LD_CXX="$LD"
21358
21359 ## CAVEAT EMPTOR:
21360 ## There is no encapsulation within the following macros, do not change
21361 ## the running order or otherwise move them around unless you know exactly
21362 ## what you are doing...
21363 # Dependencies to place before and after the object being linked:
21364 predep_objects_CXX=
21365 postdep_objects_CXX=
21366 predeps_CXX=
21367 postdeps_CXX=
21368 compiler_lib_search_path_CXX=
21369
21370 cat > conftest.$ac_ext <<_LT_EOF
21371 class Foo
21372 {
21373 public:
21374 Foo (void) { a = 0; }
21375 private:
21376 int a;
21377 };
21378 _LT_EOF
21379
21380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21381 (eval $ac_compile) 2>&5
21382 ac_status=$?
21383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21384 test $ac_status = 0; }; then
21385 # Parse the compiler output and extract the necessary
21386 # objects, libraries and library flags.
21387
21388 # Sentinel used to keep track of whether or not we are before
21389 # the conftest object file.
21390 pre_test_object_deps_done=no
21391
21392 for p in `eval "$output_verbose_link_cmd"`; do
21393 case $p in
21394
21395 -L* | -R* | -l*)
21396 # Some compilers place space between "-{L,R}" and the path.
21397 # Remove the space.
21398 if test $p = "-L" ||
21399 test $p = "-R"; then
21400 prev=$p
21401 continue
21402 else
21403 prev=
21404 fi
21405
21406 if test "$pre_test_object_deps_done" = no; then
21407 case $p in
21408 -L* | -R*)
21409 # Internal compiler library paths should come after those
21410 # provided the user. The postdeps already come after the
21411 # user supplied libs so there is no need to process them.
21412 if test -z "$compiler_lib_search_path_CXX"; then
21413 compiler_lib_search_path_CXX="${prev}${p}"
21414 else
21415 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21416 fi
21417 ;;
21418 # The "-l" case would never come before the object being
21419 # linked, so don't bother handling this case.
21420 esac
21421 else
21422 if test -z "$postdeps_CXX"; then
21423 postdeps_CXX="${prev}${p}"
21424 else
21425 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21426 fi
21427 fi
21428 ;;
21429
21430 *.$objext)
21431 # This assumes that the test object file only shows up
21432 # once in the compiler output.
21433 if test "$p" = "conftest.$objext"; then
21434 pre_test_object_deps_done=yes
21435 continue
21436 fi
21437
21438 if test "$pre_test_object_deps_done" = no; then
21439 if test -z "$predep_objects_CXX"; then
21440 predep_objects_CXX="$p"
21441 else
21442 predep_objects_CXX="$predep_objects_CXX $p"
21443 fi
21444 else
21445 if test -z "$postdep_objects_CXX"; then
21446 postdep_objects_CXX="$p"
21447 else
21448 postdep_objects_CXX="$postdep_objects_CXX $p"
21449 fi
21450 fi
21451 ;;
21452
21453 *) ;; # Ignore the rest.
21454
21455 esac
21456 done
21457
21458 # Clean up.
21459 rm -f a.out a.exe
21460 else
21461 echo "libtool.m4: error: problem compiling CXX test program"
21462 fi
21463
21464 $RM -f confest.$objext
21465
21466 # PORTME: override above test on systems where it is broken
21467 case $host_os in
21468 interix[3-9]*)
21469 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21470 # hack all around it, let's just trust "g++" to DTRT.
21471 predep_objects_CXX=
21472 postdep_objects_CXX=
21473 postdeps_CXX=
21474 ;;
21475
21476 linux*)
21477 case `$CC -V 2>&1 | sed 5q` in
21478 *Sun\ C*)
21479 # Sun C++ 5.9
21480
21481 # The more standards-conforming stlport4 library is
21482 # incompatible with the Cstd library. Avoid specifying
21483 # it if it's in CXXFLAGS. Ignore libCrun as
21484 # -library=stlport4 depends on it.
21485 case " $CXX $CXXFLAGS " in
21486 *" -library=stlport4 "*)
21487 solaris_use_stlport4=yes
21488 ;;
21489 esac
21490
21491 if test "$solaris_use_stlport4" != yes; then
21492 postdeps_CXX='-library=Cstd -library=Crun'
21493 fi
21494 ;;
21495 esac
21496 ;;
21497
21498 solaris*)
21499 case $cc_basename in
21500 CC*)
21501 # The more standards-conforming stlport4 library is
21502 # incompatible with the Cstd library. Avoid specifying
21503 # it if it's in CXXFLAGS. Ignore libCrun as
21504 # -library=stlport4 depends on it.
21505 case " $CXX $CXXFLAGS " in
21506 *" -library=stlport4 "*)
21507 solaris_use_stlport4=yes
21508 ;;
21509 esac
21510
21511 # Adding this requires a known-good setup of shared libraries for
21512 # Sun compiler versions before 5.6, else PIC objects from an old
21513 # archive will be linked into the output, leading to subtle bugs.
21514 if test "$solaris_use_stlport4" != yes; then
21515 postdeps_CXX='-library=Cstd -library=Crun'
21516 fi
21517 ;;
21518 esac
21519 ;;
21520 esac
21521
21522
21523 case " $postdeps_CXX " in
21524 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21525 esac
21526 compiler_lib_search_dirs_CXX=
21527 if test -n "${compiler_lib_search_path_CXX}"; then
21528 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21529 fi
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561 lt_prog_compiler_wl_CXX=
21562 lt_prog_compiler_pic_CXX=
21563 lt_prog_compiler_static_CXX=
21564
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21566 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21567
21568 # C++ specific cases for pic, static, wl, etc.
21569 if test "$GXX" = yes; then
21570 lt_prog_compiler_wl_CXX='-Wl,'
21571 lt_prog_compiler_static_CXX='-static'
21572
21573 case $host_os in
21574 aix*)
21575 # All AIX code is PIC.
21576 if test "$host_cpu" = ia64; then
21577 # AIX 5 now supports IA64 processor
21578 lt_prog_compiler_static_CXX='-Bstatic'
21579 fi
21580 lt_prog_compiler_pic_CXX='-fPIC'
21581 ;;
21582
21583 amigaos*)
21584 case $host_cpu in
21585 powerpc)
21586 # see comment about AmigaOS4 .so support
21587 lt_prog_compiler_pic_CXX='-fPIC'
21588 ;;
21589 m68k)
21590 # FIXME: we need at least 68020 code to build shared libraries, but
21591 # adding the `-m68020' flag to GCC prevents building anything better,
21592 # like `-m68040'.
21593 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21594 ;;
21595 esac
21596 ;;
21597
21598 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21599 # PIC is the default for these OSes.
21600 ;;
21601 mingw* | cygwin* | os2* | pw32* | cegcc*)
21602 # This hack is so that the source file can tell whether it is being
21603 # built for inclusion in a dll (and should export symbols for example).
21604 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21605 # (--disable-auto-import) libraries
21606 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21607 ;;
21608 darwin* | rhapsody*)
21609 # PIC is the default on this platform
21610 # Common symbols not allowed in MH_DYLIB files
21611 lt_prog_compiler_pic_CXX='-fno-common'
21612 ;;
21613 *djgpp*)
21614 # DJGPP does not support shared libraries at all
21615 lt_prog_compiler_pic_CXX=
21616 ;;
21617 haiku*)
21618 # PIC is the default for Haiku.
21619 # The "-static" flag exists, but is broken.
21620 lt_prog_compiler_static_CXX=
21621 ;;
21622 interix[3-9]*)
21623 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21624 # Instead, we relocate shared libraries at runtime.
21625 ;;
21626 sysv4*MP*)
21627 if test -d /usr/nec; then
21628 lt_prog_compiler_pic_CXX=-Kconform_pic
21629 fi
21630 ;;
21631 hpux*)
21632 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21633 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21634 # sets the default TLS model and affects inlining.
21635 case $host_cpu in
21636 hppa*64*)
21637 ;;
21638 *)
21639 lt_prog_compiler_pic_CXX='-fPIC'
21640 ;;
21641 esac
21642 ;;
21643 *qnx* | *nto*)
21644 # QNX uses GNU C++, but need to define -shared option too, otherwise
21645 # it will coredump.
21646 lt_prog_compiler_pic_CXX='-fPIC -shared'
21647 ;;
21648 *)
21649 lt_prog_compiler_pic_CXX='-fPIC'
21650 ;;
21651 esac
21652 else
21653 case $host_os in
21654 aix[4-9]*)
21655 # All AIX code is PIC.
21656 if test "$host_cpu" = ia64; then
21657 # AIX 5 now supports IA64 processor
21658 lt_prog_compiler_static_CXX='-Bstatic'
21659 else
21660 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21661 fi
21662 ;;
21663 chorus*)
21664 case $cc_basename in
21665 cxch68*)
21666 # Green Hills C++ Compiler
21667 # _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"
21668 ;;
21669 esac
21670 ;;
21671 dgux*)
21672 case $cc_basename in
21673 ec++*)
21674 lt_prog_compiler_pic_CXX='-KPIC'
21675 ;;
21676 ghcx*)
21677 # Green Hills C++ Compiler
21678 lt_prog_compiler_pic_CXX='-pic'
21679 ;;
21680 *)
21681 ;;
21682 esac
21683 ;;
21684 freebsd* | dragonfly*)
21685 # FreeBSD uses GNU C++
21686 ;;
21687 hpux9* | hpux10* | hpux11*)
21688 case $cc_basename in
21689 CC*)
21690 lt_prog_compiler_wl_CXX='-Wl,'
21691 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21692 if test "$host_cpu" != ia64; then
21693 lt_prog_compiler_pic_CXX='+Z'
21694 fi
21695 ;;
21696 aCC*)
21697 lt_prog_compiler_wl_CXX='-Wl,'
21698 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21699 case $host_cpu in
21700 hppa*64*|ia64*)
21701 # +Z the default
21702 ;;
21703 *)
21704 lt_prog_compiler_pic_CXX='+Z'
21705 ;;
21706 esac
21707 ;;
21708 *)
21709 ;;
21710 esac
21711 ;;
21712 interix*)
21713 # This is c89, which is MS Visual C++ (no shared libs)
21714 # Anyone wants to do a port?
21715 ;;
21716 irix5* | irix6* | nonstopux*)
21717 case $cc_basename in
21718 CC*)
21719 lt_prog_compiler_wl_CXX='-Wl,'
21720 lt_prog_compiler_static_CXX='-non_shared'
21721 # CC pic flag -KPIC is the default.
21722 ;;
21723 *)
21724 ;;
21725 esac
21726 ;;
21727 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21728 case $cc_basename in
21729 KCC*)
21730 # KAI C++ Compiler
21731 lt_prog_compiler_wl_CXX='--backend -Wl,'
21732 lt_prog_compiler_pic_CXX='-fPIC'
21733 ;;
21734 ecpc* )
21735 # old Intel C++ for x86_64 which still supported -KPIC.
21736 lt_prog_compiler_wl_CXX='-Wl,'
21737 lt_prog_compiler_pic_CXX='-KPIC'
21738 lt_prog_compiler_static_CXX='-static'
21739 ;;
21740 icpc* )
21741 # Intel C++, used to be incompatible with GCC.
21742 # ICC 10 doesn't accept -KPIC any more.
21743 lt_prog_compiler_wl_CXX='-Wl,'
21744 lt_prog_compiler_pic_CXX='-fPIC'
21745 lt_prog_compiler_static_CXX='-static'
21746 ;;
21747 pgCC* | pgcpp*)
21748 # Portland Group C++ compiler
21749 lt_prog_compiler_wl_CXX='-Wl,'
21750 lt_prog_compiler_pic_CXX='-fpic'
21751 lt_prog_compiler_static_CXX='-Bstatic'
21752 ;;
21753 cxx*)
21754 # Compaq C++
21755 # Make sure the PIC flag is empty. It appears that all Alpha
21756 # Linux and Compaq Tru64 Unix objects are PIC.
21757 lt_prog_compiler_pic_CXX=
21758 lt_prog_compiler_static_CXX='-non_shared'
21759 ;;
21760 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21761 # IBM XL 8.0, 9.0 on PPC and BlueGene
21762 lt_prog_compiler_wl_CXX='-Wl,'
21763 lt_prog_compiler_pic_CXX='-qpic'
21764 lt_prog_compiler_static_CXX='-qstaticlink'
21765 ;;
21766 *)
21767 case `$CC -V 2>&1 | sed 5q` in
21768 *Sun\ C*)
21769 # Sun C++ 5.9
21770 lt_prog_compiler_pic_CXX='-KPIC'
21771 lt_prog_compiler_static_CXX='-Bstatic'
21772 lt_prog_compiler_wl_CXX='-Qoption ld '
21773 ;;
21774 esac
21775 ;;
21776 esac
21777 ;;
21778 lynxos*)
21779 ;;
21780 m88k*)
21781 ;;
21782 mvs*)
21783 case $cc_basename in
21784 cxx*)
21785 lt_prog_compiler_pic_CXX='-W c,exportall'
21786 ;;
21787 *)
21788 ;;
21789 esac
21790 ;;
21791 netbsd*)
21792 ;;
21793 *qnx* | *nto*)
21794 # QNX uses GNU C++, but need to define -shared option too, otherwise
21795 # it will coredump.
21796 lt_prog_compiler_pic_CXX='-fPIC -shared'
21797 ;;
21798 osf3* | osf4* | osf5*)
21799 case $cc_basename in
21800 KCC*)
21801 lt_prog_compiler_wl_CXX='--backend -Wl,'
21802 ;;
21803 RCC*)
21804 # Rational C++ 2.4.1
21805 lt_prog_compiler_pic_CXX='-pic'
21806 ;;
21807 cxx*)
21808 # Digital/Compaq C++
21809 lt_prog_compiler_wl_CXX='-Wl,'
21810 # Make sure the PIC flag is empty. It appears that all Alpha
21811 # Linux and Compaq Tru64 Unix objects are PIC.
21812 lt_prog_compiler_pic_CXX=
21813 lt_prog_compiler_static_CXX='-non_shared'
21814 ;;
21815 *)
21816 ;;
21817 esac
21818 ;;
21819 psos*)
21820 ;;
21821 solaris*)
21822 case $cc_basename in
21823 CC*)
21824 # Sun C++ 4.2, 5.x and Centerline C++
21825 lt_prog_compiler_pic_CXX='-KPIC'
21826 lt_prog_compiler_static_CXX='-Bstatic'
21827 lt_prog_compiler_wl_CXX='-Qoption ld '
21828 ;;
21829 gcx*)
21830 # Green Hills C++ Compiler
21831 lt_prog_compiler_pic_CXX='-PIC'
21832 ;;
21833 *)
21834 ;;
21835 esac
21836 ;;
21837 sunos4*)
21838 case $cc_basename in
21839 CC*)
21840 # Sun C++ 4.x
21841 lt_prog_compiler_pic_CXX='-pic'
21842 lt_prog_compiler_static_CXX='-Bstatic'
21843 ;;
21844 lcc*)
21845 # Lucid
21846 lt_prog_compiler_pic_CXX='-pic'
21847 ;;
21848 *)
21849 ;;
21850 esac
21851 ;;
21852 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21853 case $cc_basename in
21854 CC*)
21855 lt_prog_compiler_wl_CXX='-Wl,'
21856 lt_prog_compiler_pic_CXX='-KPIC'
21857 lt_prog_compiler_static_CXX='-Bstatic'
21858 ;;
21859 esac
21860 ;;
21861 tandem*)
21862 case $cc_basename in
21863 NCC*)
21864 # NonStop-UX NCC 3.20
21865 lt_prog_compiler_pic_CXX='-KPIC'
21866 ;;
21867 *)
21868 ;;
21869 esac
21870 ;;
21871 vxworks*)
21872 ;;
21873 *)
21874 lt_prog_compiler_can_build_shared_CXX=no
21875 ;;
21876 esac
21877 fi
21878
21879 case $host_os in
21880 # For platforms which do not support PIC, -DPIC is meaningless:
21881 *djgpp*)
21882 lt_prog_compiler_pic_CXX=
21883 ;;
21884 *)
21885 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21886 ;;
21887 esac
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21889 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21890
21891
21892
21893 #
21894 # Check to make sure the PIC flag actually works.
21895 #
21896 if test -n "$lt_prog_compiler_pic_CXX"; then
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21898 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21899 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21900 $as_echo_n "(cached) " >&6
21901 else
21902 lt_cv_prog_compiler_pic_works_CXX=no
21903 ac_outfile=conftest.$ac_objext
21904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21905 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21906 # Insert the option either (1) after the last *FLAGS variable, or
21907 # (2) before a word containing "conftest.", or (3) at the end.
21908 # Note that $ac_compile itself does not contain backslashes and begins
21909 # with a dollar sign (not a hyphen), so the echo should work correctly.
21910 # The option is referenced via a variable to avoid confusing sed.
21911 lt_compile=`echo "$ac_compile" | $SED \
21912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21914 -e 's:$: $lt_compiler_flag:'`
21915 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21916 (eval "$lt_compile" 2>conftest.err)
21917 ac_status=$?
21918 cat conftest.err >&5
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 if (exit $ac_status) && test -s "$ac_outfile"; then
21921 # The compiler can only warn and ignore the option if not recognized
21922 # So say no if there are warnings other than the usual output.
21923 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21925 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21926 lt_cv_prog_compiler_pic_works_CXX=yes
21927 fi
21928 fi
21929 $RM conftest*
21930
21931 fi
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21933 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21934
21935 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21936 case $lt_prog_compiler_pic_CXX in
21937 "" | " "*) ;;
21938 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21939 esac
21940 else
21941 lt_prog_compiler_pic_CXX=
21942 lt_prog_compiler_can_build_shared_CXX=no
21943 fi
21944
21945 fi
21946
21947
21948
21949 #
21950 # Check to make sure the static flag actually works.
21951 #
21952 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21954 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21955 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21956 $as_echo_n "(cached) " >&6
21957 else
21958 lt_cv_prog_compiler_static_works_CXX=no
21959 save_LDFLAGS="$LDFLAGS"
21960 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21961 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21962 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21963 # The linker can only warn and ignore the option if not recognized
21964 # So say no if there are warnings
21965 if test -s conftest.err; then
21966 # Append any errors to the config.log.
21967 cat conftest.err 1>&5
21968 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21970 if diff conftest.exp conftest.er2 >/dev/null; then
21971 lt_cv_prog_compiler_static_works_CXX=yes
21972 fi
21973 else
21974 lt_cv_prog_compiler_static_works_CXX=yes
21975 fi
21976 fi
21977 $RM -r conftest*
21978 LDFLAGS="$save_LDFLAGS"
21979
21980 fi
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21982 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21983
21984 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21985 :
21986 else
21987 lt_prog_compiler_static_CXX=
21988 fi
21989
21990
21991
21992
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21994 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21995 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21996 $as_echo_n "(cached) " >&6
21997 else
21998 lt_cv_prog_compiler_c_o_CXX=no
21999 $RM -r conftest 2>/dev/null
22000 mkdir conftest
22001 cd conftest
22002 mkdir out
22003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22004
22005 lt_compiler_flag="-o out/conftest2.$ac_objext"
22006 # Insert the option either (1) after the last *FLAGS variable, or
22007 # (2) before a word containing "conftest.", or (3) at the end.
22008 # Note that $ac_compile itself does not contain backslashes and begins
22009 # with a dollar sign (not a hyphen), so the echo should work correctly.
22010 lt_compile=`echo "$ac_compile" | $SED \
22011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22013 -e 's:$: $lt_compiler_flag:'`
22014 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22015 (eval "$lt_compile" 2>out/conftest.err)
22016 ac_status=$?
22017 cat out/conftest.err >&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22020 then
22021 # The compiler can only warn and ignore the option if not recognized
22022 # So say no if there are warnings
22023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22024 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22025 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22026 lt_cv_prog_compiler_c_o_CXX=yes
22027 fi
22028 fi
22029 chmod u+w . 2>&5
22030 $RM conftest*
22031 # SGI C++ compiler will create directory out/ii_files/ for
22032 # template instantiation
22033 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22034 $RM out/* && rmdir out
22035 cd ..
22036 $RM -r conftest
22037 $RM conftest*
22038
22039 fi
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22041 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22042
22043
22044
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22046 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22047 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22048 $as_echo_n "(cached) " >&6
22049 else
22050 lt_cv_prog_compiler_c_o_CXX=no
22051 $RM -r conftest 2>/dev/null
22052 mkdir conftest
22053 cd conftest
22054 mkdir out
22055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22056
22057 lt_compiler_flag="-o out/conftest2.$ac_objext"
22058 # Insert the option either (1) after the last *FLAGS variable, or
22059 # (2) before a word containing "conftest.", or (3) at the end.
22060 # Note that $ac_compile itself does not contain backslashes and begins
22061 # with a dollar sign (not a hyphen), so the echo should work correctly.
22062 lt_compile=`echo "$ac_compile" | $SED \
22063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22065 -e 's:$: $lt_compiler_flag:'`
22066 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22067 (eval "$lt_compile" 2>out/conftest.err)
22068 ac_status=$?
22069 cat out/conftest.err >&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22072 then
22073 # The compiler can only warn and ignore the option if not recognized
22074 # So say no if there are warnings
22075 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22076 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22077 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22078 lt_cv_prog_compiler_c_o_CXX=yes
22079 fi
22080 fi
22081 chmod u+w . 2>&5
22082 $RM conftest*
22083 # SGI C++ compiler will create directory out/ii_files/ for
22084 # template instantiation
22085 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22086 $RM out/* && rmdir out
22087 cd ..
22088 $RM -r conftest
22089 $RM conftest*
22090
22091 fi
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22093 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22094
22095
22096
22097
22098 hard_links="nottested"
22099 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22100 # do not overwrite the value of need_locks provided by the user
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22102 $as_echo_n "checking if we can lock with hard links... " >&6; }
22103 hard_links=yes
22104 $RM conftest*
22105 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22106 touch conftest.a
22107 ln conftest.a conftest.b 2>&5 || hard_links=no
22108 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22110 $as_echo "$hard_links" >&6; }
22111 if test "$hard_links" = no; then
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22113 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22114 need_locks=warn
22115 fi
22116 else
22117 need_locks=no
22118 fi
22119
22120
22121
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22123 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22124
22125 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22126 case $host_os in
22127 aix[4-9]*)
22128 # If we're using GNU nm, then we don't want the "-C" option.
22129 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22130 # Also, AIX nm treats weak defined symbols like other global defined
22131 # symbols, whereas GNU nm marks them as "W".
22132 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22133 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'
22134 else
22135 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'
22136 fi
22137 ;;
22138 pw32*)
22139 export_symbols_cmds_CXX="$ltdll_cmds"
22140 ;;
22141 cygwin* | mingw* | cegcc*)
22142 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'
22143 ;;
22144 *)
22145 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22146 ;;
22147 esac
22148 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22149
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22151 $as_echo "$ld_shlibs_CXX" >&6; }
22152 test "$ld_shlibs_CXX" = no && can_build_shared=no
22153
22154 with_gnu_ld_CXX=$with_gnu_ld
22155
22156
22157
22158
22159
22160
22161 #
22162 # Do we need to explicitly link libc?
22163 #
22164 case "x$archive_cmds_need_lc_CXX" in
22165 x|xyes)
22166 # Assume -lc should be added
22167 archive_cmds_need_lc_CXX=yes
22168
22169 if test "$enable_shared" = yes && test "$GCC" = yes; then
22170 case $archive_cmds_CXX in
22171 *'~'*)
22172 # FIXME: we may have to deal with multi-command sequences.
22173 ;;
22174 '$CC '*)
22175 # Test whether the compiler implicitly links with -lc since on some
22176 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22177 # to ld, don't add -lc before -lgcc.
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22179 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22180 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22181 $as_echo_n "(cached) " >&6
22182 else
22183 $RM conftest*
22184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22185
22186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22187 (eval $ac_compile) 2>&5
22188 ac_status=$?
22189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22190 test $ac_status = 0; } 2>conftest.err; then
22191 soname=conftest
22192 lib=conftest
22193 libobjs=conftest.$ac_objext
22194 deplibs=
22195 wl=$lt_prog_compiler_wl_CXX
22196 pic_flag=$lt_prog_compiler_pic_CXX
22197 compiler_flags=-v
22198 linker_flags=-v
22199 verstring=
22200 output_objdir=.
22201 libname=conftest
22202 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22203 allow_undefined_flag_CXX=
22204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22205 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22206 ac_status=$?
22207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22208 test $ac_status = 0; }
22209 then
22210 lt_cv_archive_cmds_need_lc_CXX=no
22211 else
22212 lt_cv_archive_cmds_need_lc_CXX=yes
22213 fi
22214 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22215 else
22216 cat conftest.err 1>&5
22217 fi
22218 $RM conftest*
22219
22220 fi
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22222 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22223 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22224 ;;
22225 esac
22226 fi
22227 ;;
22228 esac
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22294 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22295
22296 library_names_spec=
22297 libname_spec='lib$name'
22298 soname_spec=
22299 shrext_cmds=".so"
22300 postinstall_cmds=
22301 postuninstall_cmds=
22302 finish_cmds=
22303 finish_eval=
22304 shlibpath_var=
22305 shlibpath_overrides_runpath=unknown
22306 version_type=none
22307 dynamic_linker="$host_os ld.so"
22308 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22309 need_lib_prefix=unknown
22310 hardcode_into_libs=no
22311
22312 # when you set need_version to no, make sure it does not cause -set_version
22313 # flags to be left without arguments
22314 need_version=unknown
22315
22316 case $host_os in
22317 aix3*)
22318 version_type=linux
22319 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22320 shlibpath_var=LIBPATH
22321
22322 # AIX 3 has no versioning support, so we append a major version to the name.
22323 soname_spec='${libname}${release}${shared_ext}$major'
22324 ;;
22325
22326 aix[4-9]*)
22327 version_type=linux
22328 need_lib_prefix=no
22329 need_version=no
22330 hardcode_into_libs=yes
22331 if test "$host_cpu" = ia64; then
22332 # AIX 5 supports IA64
22333 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22334 shlibpath_var=LD_LIBRARY_PATH
22335 else
22336 # With GCC up to 2.95.x, collect2 would create an import file
22337 # for dependence libraries. The import file would start with
22338 # the line `#! .'. This would cause the generated library to
22339 # depend on `.', always an invalid library. This was fixed in
22340 # development snapshots of GCC prior to 3.0.
22341 case $host_os in
22342 aix4 | aix4.[01] | aix4.[01].*)
22343 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22344 echo ' yes '
22345 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22346 :
22347 else
22348 can_build_shared=no
22349 fi
22350 ;;
22351 esac
22352 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22353 # soname into executable. Probably we can add versioning support to
22354 # collect2, so additional links can be useful in future.
22355 if test "$aix_use_runtimelinking" = yes; then
22356 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22357 # instead of lib<name>.a to let people know that these are not
22358 # typical AIX shared libraries.
22359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22360 else
22361 # We preserve .a as extension for shared libraries through AIX4.2
22362 # and later when we are not doing run time linking.
22363 library_names_spec='${libname}${release}.a $libname.a'
22364 soname_spec='${libname}${release}${shared_ext}$major'
22365 fi
22366 shlibpath_var=LIBPATH
22367 fi
22368 ;;
22369
22370 amigaos*)
22371 case $host_cpu in
22372 powerpc)
22373 # Since July 2007 AmigaOS4 officially supports .so libraries.
22374 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22376 ;;
22377 m68k)
22378 library_names_spec='$libname.ixlibrary $libname.a'
22379 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22380 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'
22381 ;;
22382 esac
22383 ;;
22384
22385 beos*)
22386 library_names_spec='${libname}${shared_ext}'
22387 dynamic_linker="$host_os ld.so"
22388 shlibpath_var=LIBRARY_PATH
22389 ;;
22390
22391 bsdi[45]*)
22392 version_type=linux
22393 need_version=no
22394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22395 soname_spec='${libname}${release}${shared_ext}$major'
22396 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22397 shlibpath_var=LD_LIBRARY_PATH
22398 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22399 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22400 # the default ld.so.conf also contains /usr/contrib/lib and
22401 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22402 # libtool to hard-code these into programs
22403 ;;
22404
22405 cygwin* | mingw* | pw32* | cegcc*)
22406 version_type=windows
22407 shrext_cmds=".dll"
22408 need_version=no
22409 need_lib_prefix=no
22410
22411 case $GCC,$host_os in
22412 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22413 library_names_spec='$libname.dll.a'
22414 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22415 postinstall_cmds='base_file=`basename \${file}`~
22416 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22417 dldir=$destdir/`dirname \$dlpath`~
22418 test -d \$dldir || mkdir -p \$dldir~
22419 $install_prog $dir/$dlname \$dldir/$dlname~
22420 chmod a+x \$dldir/$dlname~
22421 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22422 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22423 fi'
22424 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22425 dlpath=$dir/\$dldll~
22426 $RM \$dlpath'
22427 shlibpath_overrides_runpath=yes
22428
22429 case $host_os in
22430 cygwin*)
22431 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22432 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22433
22434 ;;
22435 mingw* | cegcc*)
22436 # MinGW DLLs use traditional 'lib' prefix
22437 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22438 ;;
22439 pw32*)
22440 # pw32 DLLs use 'pw' prefix rather than 'lib'
22441 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22442 ;;
22443 esac
22444 ;;
22445
22446 *)
22447 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22448 ;;
22449 esac
22450 dynamic_linker='Win32 ld.exe'
22451 # FIXME: first we should search . and the directory the executable is in
22452 shlibpath_var=PATH
22453 ;;
22454
22455 darwin* | rhapsody*)
22456 dynamic_linker="$host_os dyld"
22457 version_type=darwin
22458 need_lib_prefix=no
22459 need_version=no
22460 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22461 soname_spec='${libname}${release}${major}$shared_ext'
22462 shlibpath_overrides_runpath=yes
22463 shlibpath_var=DYLD_LIBRARY_PATH
22464 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22465
22466 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22467 ;;
22468
22469 dgux*)
22470 version_type=linux
22471 need_lib_prefix=no
22472 need_version=no
22473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22474 soname_spec='${libname}${release}${shared_ext}$major'
22475 shlibpath_var=LD_LIBRARY_PATH
22476 ;;
22477
22478 freebsd* | dragonfly*)
22479 # DragonFly does not have aout. When/if they implement a new
22480 # versioning mechanism, adjust this.
22481 if test -x /usr/bin/objformat; then
22482 objformat=`/usr/bin/objformat`
22483 else
22484 case $host_os in
22485 freebsd[23].*) objformat=aout ;;
22486 *) objformat=elf ;;
22487 esac
22488 fi
22489 version_type=freebsd-$objformat
22490 case $version_type in
22491 freebsd-elf*)
22492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22493 need_version=no
22494 need_lib_prefix=no
22495 ;;
22496 freebsd-*)
22497 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22498 need_version=yes
22499 ;;
22500 esac
22501 shlibpath_var=LD_LIBRARY_PATH
22502 case $host_os in
22503 freebsd2.*)
22504 shlibpath_overrides_runpath=yes
22505 ;;
22506 freebsd3.[01]* | freebsdelf3.[01]*)
22507 shlibpath_overrides_runpath=yes
22508 hardcode_into_libs=yes
22509 ;;
22510 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22511 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22512 shlibpath_overrides_runpath=no
22513 hardcode_into_libs=yes
22514 ;;
22515 *) # from 4.6 on, and DragonFly
22516 shlibpath_overrides_runpath=yes
22517 hardcode_into_libs=yes
22518 ;;
22519 esac
22520 ;;
22521
22522 haiku*)
22523 version_type=linux
22524 need_lib_prefix=no
22525 need_version=no
22526 dynamic_linker="$host_os runtime_loader"
22527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22528 soname_spec='${libname}${release}${shared_ext}$major'
22529 shlibpath_var=LIBRARY_PATH
22530 shlibpath_overrides_runpath=yes
22531 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22532 hardcode_into_libs=yes
22533 ;;
22534
22535 hpux9* | hpux10* | hpux11*)
22536 # Give a soname corresponding to the major version so that dld.sl refuses to
22537 # link against other versions.
22538 version_type=sunos
22539 need_lib_prefix=no
22540 need_version=no
22541 case $host_cpu in
22542 ia64*)
22543 shrext_cmds='.so'
22544 hardcode_into_libs=yes
22545 dynamic_linker="$host_os dld.so"
22546 shlibpath_var=LD_LIBRARY_PATH
22547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22549 soname_spec='${libname}${release}${shared_ext}$major'
22550 if test "X$HPUX_IA64_MODE" = X32; then
22551 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22552 else
22553 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22554 fi
22555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22556 ;;
22557 hppa*64*)
22558 shrext_cmds='.sl'
22559 hardcode_into_libs=yes
22560 dynamic_linker="$host_os dld.sl"
22561 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22564 soname_spec='${libname}${release}${shared_ext}$major'
22565 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22567 ;;
22568 *)
22569 shrext_cmds='.sl'
22570 dynamic_linker="$host_os dld.sl"
22571 shlibpath_var=SHLIB_PATH
22572 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22574 soname_spec='${libname}${release}${shared_ext}$major'
22575 ;;
22576 esac
22577 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22578 postinstall_cmds='chmod 555 $lib'
22579 # or fails outright, so override atomically:
22580 install_override_mode=555
22581 ;;
22582
22583 interix[3-9]*)
22584 version_type=linux
22585 need_lib_prefix=no
22586 need_version=no
22587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22588 soname_spec='${libname}${release}${shared_ext}$major'
22589 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22590 shlibpath_var=LD_LIBRARY_PATH
22591 shlibpath_overrides_runpath=no
22592 hardcode_into_libs=yes
22593 ;;
22594
22595 irix5* | irix6* | nonstopux*)
22596 case $host_os in
22597 nonstopux*) version_type=nonstopux ;;
22598 *)
22599 if test "$lt_cv_prog_gnu_ld" = yes; then
22600 version_type=linux
22601 else
22602 version_type=irix
22603 fi ;;
22604 esac
22605 need_lib_prefix=no
22606 need_version=no
22607 soname_spec='${libname}${release}${shared_ext}$major'
22608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22609 case $host_os in
22610 irix5* | nonstopux*)
22611 libsuff= shlibsuff=
22612 ;;
22613 *)
22614 case $LD in # libtool.m4 will add one of these switches to LD
22615 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22616 libsuff= shlibsuff= libmagic=32-bit;;
22617 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22618 libsuff=32 shlibsuff=N32 libmagic=N32;;
22619 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22620 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22621 *) libsuff= shlibsuff= libmagic=never-match;;
22622 esac
22623 ;;
22624 esac
22625 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22626 shlibpath_overrides_runpath=no
22627 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22628 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22629 hardcode_into_libs=yes
22630 ;;
22631
22632 # No shared lib support for Linux oldld, aout, or coff.
22633 linux*oldld* | linux*aout* | linux*coff*)
22634 dynamic_linker=no
22635 ;;
22636
22637 # This must be Linux ELF.
22638
22639 # uclinux* changes (here and below) have been submitted to the libtool
22640 # project, but have not yet been accepted: they are GCC-local changes
22641 # for the time being. (See
22642 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22643 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22644 version_type=linux
22645 need_lib_prefix=no
22646 need_version=no
22647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22648 soname_spec='${libname}${release}${shared_ext}$major'
22649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22650 shlibpath_var=LD_LIBRARY_PATH
22651 shlibpath_overrides_runpath=no
22652
22653 # Some binutils ld are patched to set DT_RUNPATH
22654 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22655 $as_echo_n "(cached) " >&6
22656 else
22657 lt_cv_shlibpath_overrides_runpath=no
22658 save_LDFLAGS=$LDFLAGS
22659 save_libdir=$libdir
22660 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22661 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22663 /* end confdefs.h. */
22664
22665 int
22666 main ()
22667 {
22668
22669 ;
22670 return 0;
22671 }
22672 _ACEOF
22673 if ac_fn_cxx_try_link "$LINENO"; then :
22674 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22675 lt_cv_shlibpath_overrides_runpath=yes
22676 fi
22677 fi
22678 rm -f core conftest.err conftest.$ac_objext \
22679 conftest$ac_exeext conftest.$ac_ext
22680 LDFLAGS=$save_LDFLAGS
22681 libdir=$save_libdir
22682
22683 fi
22684
22685 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22686
22687 # This implies no fast_install, which is unacceptable.
22688 # Some rework will be needed to allow for fast_install
22689 # before this can be enabled.
22690 hardcode_into_libs=yes
22691
22692 # Append ld.so.conf contents to the search path
22693 if test -f /etc/ld.so.conf; then
22694 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' ' '`
22695 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22696 fi
22697
22698 # We used to test for /lib/ld.so.1 and disable shared libraries on
22699 # powerpc, because MkLinux only supported shared libraries with the
22700 # GNU dynamic linker. Since this was broken with cross compilers,
22701 # most powerpc-linux boxes support dynamic linking these days and
22702 # people can always --disable-shared, the test was removed, and we
22703 # assume the GNU/Linux dynamic linker is in use.
22704 dynamic_linker='GNU/Linux ld.so'
22705 ;;
22706
22707 netbsd*)
22708 version_type=sunos
22709 need_lib_prefix=no
22710 need_version=no
22711 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22714 dynamic_linker='NetBSD (a.out) ld.so'
22715 else
22716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22717 soname_spec='${libname}${release}${shared_ext}$major'
22718 dynamic_linker='NetBSD ld.elf_so'
22719 fi
22720 shlibpath_var=LD_LIBRARY_PATH
22721 shlibpath_overrides_runpath=yes
22722 hardcode_into_libs=yes
22723 ;;
22724
22725 newsos6)
22726 version_type=linux
22727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728 shlibpath_var=LD_LIBRARY_PATH
22729 shlibpath_overrides_runpath=yes
22730 ;;
22731
22732 *nto* | *qnx*)
22733 version_type=qnx
22734 need_lib_prefix=no
22735 need_version=no
22736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22737 soname_spec='${libname}${release}${shared_ext}$major'
22738 shlibpath_var=LD_LIBRARY_PATH
22739 shlibpath_overrides_runpath=no
22740 hardcode_into_libs=yes
22741 dynamic_linker='ldqnx.so'
22742 ;;
22743
22744 openbsd*)
22745 version_type=sunos
22746 sys_lib_dlsearch_path_spec="/usr/lib"
22747 need_lib_prefix=no
22748 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22749 case $host_os in
22750 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22751 *) need_version=no ;;
22752 esac
22753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22755 shlibpath_var=LD_LIBRARY_PATH
22756 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22757 case $host_os in
22758 openbsd2.[89] | openbsd2.[89].*)
22759 shlibpath_overrides_runpath=no
22760 ;;
22761 *)
22762 shlibpath_overrides_runpath=yes
22763 ;;
22764 esac
22765 else
22766 shlibpath_overrides_runpath=yes
22767 fi
22768 ;;
22769
22770 os2*)
22771 libname_spec='$name'
22772 shrext_cmds=".dll"
22773 need_lib_prefix=no
22774 library_names_spec='$libname${shared_ext} $libname.a'
22775 dynamic_linker='OS/2 ld.exe'
22776 shlibpath_var=LIBPATH
22777 ;;
22778
22779 osf3* | osf4* | osf5*)
22780 version_type=osf
22781 need_lib_prefix=no
22782 need_version=no
22783 soname_spec='${libname}${release}${shared_ext}$major'
22784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22785 shlibpath_var=LD_LIBRARY_PATH
22786 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22787 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22788 ;;
22789
22790 rdos*)
22791 dynamic_linker=no
22792 ;;
22793
22794 solaris*)
22795 version_type=linux
22796 need_lib_prefix=no
22797 need_version=no
22798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22799 soname_spec='${libname}${release}${shared_ext}$major'
22800 shlibpath_var=LD_LIBRARY_PATH
22801 shlibpath_overrides_runpath=yes
22802 hardcode_into_libs=yes
22803 # ldd complains unless libraries are executable
22804 postinstall_cmds='chmod +x $lib'
22805 ;;
22806
22807 sunos4*)
22808 version_type=sunos
22809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22810 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22811 shlibpath_var=LD_LIBRARY_PATH
22812 shlibpath_overrides_runpath=yes
22813 if test "$with_gnu_ld" = yes; then
22814 need_lib_prefix=no
22815 fi
22816 need_version=yes
22817 ;;
22818
22819 sysv4 | sysv4.3*)
22820 version_type=linux
22821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22822 soname_spec='${libname}${release}${shared_ext}$major'
22823 shlibpath_var=LD_LIBRARY_PATH
22824 case $host_vendor in
22825 sni)
22826 shlibpath_overrides_runpath=no
22827 need_lib_prefix=no
22828 runpath_var=LD_RUN_PATH
22829 ;;
22830 siemens)
22831 need_lib_prefix=no
22832 ;;
22833 motorola)
22834 need_lib_prefix=no
22835 need_version=no
22836 shlibpath_overrides_runpath=no
22837 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22838 ;;
22839 esac
22840 ;;
22841
22842 sysv4*MP*)
22843 if test -d /usr/nec ;then
22844 version_type=linux
22845 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22846 soname_spec='$libname${shared_ext}.$major'
22847 shlibpath_var=LD_LIBRARY_PATH
22848 fi
22849 ;;
22850
22851 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22852 version_type=freebsd-elf
22853 need_lib_prefix=no
22854 need_version=no
22855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22856 soname_spec='${libname}${release}${shared_ext}$major'
22857 shlibpath_var=LD_LIBRARY_PATH
22858 shlibpath_overrides_runpath=yes
22859 hardcode_into_libs=yes
22860 if test "$with_gnu_ld" = yes; then
22861 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22862 else
22863 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22864 case $host_os in
22865 sco3.2v5*)
22866 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22867 ;;
22868 esac
22869 fi
22870 sys_lib_dlsearch_path_spec='/usr/lib'
22871 ;;
22872
22873 tpf*)
22874 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22875 version_type=linux
22876 need_lib_prefix=no
22877 need_version=no
22878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22879 shlibpath_var=LD_LIBRARY_PATH
22880 shlibpath_overrides_runpath=no
22881 hardcode_into_libs=yes
22882 ;;
22883
22884 uts4*)
22885 version_type=linux
22886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22887 soname_spec='${libname}${release}${shared_ext}$major'
22888 shlibpath_var=LD_LIBRARY_PATH
22889 ;;
22890
22891 *)
22892 dynamic_linker=no
22893 ;;
22894 esac
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22896 $as_echo "$dynamic_linker" >&6; }
22897 test "$dynamic_linker" = no && can_build_shared=no
22898
22899 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22900 if test "$GCC" = yes; then
22901 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22902 fi
22903
22904 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22905 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22906 fi
22907 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22908 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22909 fi
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22949 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22950 hardcode_action_CXX=
22951 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22952 test -n "$runpath_var_CXX" ||
22953 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22954
22955 # We can hardcode non-existent directories.
22956 if test "$hardcode_direct_CXX" != no &&
22957 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22958 # have to relink, otherwise we might link with an installed library
22959 # when we should be linking with a yet-to-be-installed one
22960 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22961 test "$hardcode_minus_L_CXX" != no; then
22962 # Linking always hardcodes the temporary library directory.
22963 hardcode_action_CXX=relink
22964 else
22965 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22966 hardcode_action_CXX=immediate
22967 fi
22968 else
22969 # We cannot hardcode anything, or else we can only hardcode existing
22970 # directories.
22971 hardcode_action_CXX=unsupported
22972 fi
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22974 $as_echo "$hardcode_action_CXX" >&6; }
22975
22976 if test "$hardcode_action_CXX" = relink ||
22977 test "$inherit_rpath_CXX" = yes; then
22978 # Fast installation is not supported
22979 enable_fast_install=no
22980 elif test "$shlibpath_overrides_runpath" = yes ||
22981 test "$enable_shared" = no; then
22982 # Fast installation is not necessary
22983 enable_fast_install=needless
22984 fi
22985
22986
22987
22988
22989
22990
22991
22992 fi # test -n "$compiler"
22993
22994 CC=$lt_save_CC
22995 LDCXX=$LD
22996 LD=$lt_save_LD
22997 GCC=$lt_save_GCC
22998 with_gnu_ld=$lt_save_with_gnu_ld
22999 lt_cv_path_LDCXX=$lt_cv_path_LD
23000 lt_cv_path_LD=$lt_save_path_LD
23001 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23002 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23003 fi # test "$_lt_caught_CXX_error" != yes
23004
23005 ac_ext=cpp
23006 ac_cpp='$CXXCPP $CPPFLAGS'
23007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026 # Only expand once:
23027
23028
23029
23030
23031
23032 # Identify the assembler which will work hand-in-glove with the newly
23033 # built GCC, so that we can examine its features. This is the assembler
23034 # which will be driven by the driver program.
23035 #
23036 # If build != host, and we aren't building gas in-tree, we identify a
23037 # build->target assembler and hope that it will have the same features
23038 # as the host->target assembler we'll be using.
23039 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23040
23041 if ${gcc_cv_as+:} false; then :
23042
23043 else
23044
23045 if test -x "$DEFAULT_ASSEMBLER"; then
23046 gcc_cv_as="$DEFAULT_ASSEMBLER"
23047 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23048 && test -f ../gas/Makefile \
23049 && test x$build = x$host; then
23050 gcc_cv_as=../gas/as-new$build_exeext
23051 elif test -x as$build_exeext; then
23052 # Build using assembler in the current directory.
23053 gcc_cv_as=./as$build_exeext
23054 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
23055 gcc_cv_as="$AS_FOR_TARGET"
23056 else
23057 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23058 set dummy $AS_FOR_TARGET; ac_word=$2
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23060 $as_echo_n "checking for $ac_word... " >&6; }
23061 if ${ac_cv_path_gcc_cv_as+:} false; then :
23062 $as_echo_n "(cached) " >&6
23063 else
23064 case $gcc_cv_as in
23065 [\\/]* | ?:[\\/]*)
23066 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
23067 ;;
23068 *)
23069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23070 for as_dir in $PATH
23071 do
23072 IFS=$as_save_IFS
23073 test -z "$as_dir" && as_dir=.
23074 for ac_exec_ext in '' $ac_executable_extensions; do
23075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23076 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
23077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23078 break 2
23079 fi
23080 done
23081 done
23082 IFS=$as_save_IFS
23083
23084 ;;
23085 esac
23086 fi
23087 gcc_cv_as=$ac_cv_path_gcc_cv_as
23088 if test -n "$gcc_cv_as"; then
23089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23090 $as_echo "$gcc_cv_as" >&6; }
23091 else
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23093 $as_echo "no" >&6; }
23094 fi
23095
23096
23097 fi
23098 fi
23099
23100 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
23101
23102 case "$ORIGINAL_AS_FOR_TARGET" in
23103 ./as | ./as$build_exeext) ;;
23104 *) ac_config_files="$ac_config_files as:exec-tool.in"
23105 ;;
23106 esac
23107
23108 default_ld=
23109 # Check whether --enable-ld was given.
23110 if test "${enable_ld+set}" = set; then :
23111 enableval=$enable_ld; case "${enableval}" in
23112 no)
23113 default_ld=ld.gold
23114 ;;
23115 esac
23116 fi
23117
23118
23119 install_gold_as_default=no
23120 # Check whether --enable-gold was given.
23121 if test "${enable_gold+set}" = set; then :
23122 enableval=$enable_gold; case "${enableval}" in
23123 default)
23124 install_gold_as_default=yes
23125 ;;
23126 yes)
23127 if test x${default_ld} != x; then
23128 install_gold_as_default=yes
23129 fi
23130 ;;
23131 no)
23132 ;;
23133 *)
23134 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
23135 ;;
23136 esac
23137 fi
23138
23139
23140 # Identify the linker which will work hand-in-glove with the newly
23141 # built GCC, so that we can examine its features. This is the linker
23142 # which will be driven by the driver program.
23143 #
23144 # If build != host, and we aren't building gas in-tree, we identify a
23145 # build->target linker and hope that it will have the same features
23146 # as the host->target linker we'll be using.
23147 gcc_cv_gld_major_version=
23148 gcc_cv_gld_minor_version=
23149 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23150 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23151 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23152
23153 if ${gcc_cv_ld+:} false; then :
23154
23155 else
23156
23157 if test -x "$DEFAULT_LINKER"; then
23158 gcc_cv_ld="$DEFAULT_LINKER"
23159 elif test $install_gold_as_default = yes \
23160 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23161 && test -f ../gold/Makefile \
23162 && test x$build = x$host; then
23163 gcc_cv_ld=../gold/ld-new$build_exeext
23164 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23165 && test -f ../ld/Makefile \
23166 && test x$build = x$host; then
23167 gcc_cv_ld=../ld/ld-new$build_exeext
23168 elif test -x collect-ld$build_exeext; then
23169 # Build using linker in the current directory.
23170 gcc_cv_ld=./collect-ld$build_exeext
23171 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
23172 gcc_cv_ld="$LD_FOR_TARGET"
23173 else
23174 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23175 set dummy $LD_FOR_TARGET; ac_word=$2
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23177 $as_echo_n "checking for $ac_word... " >&6; }
23178 if ${ac_cv_path_gcc_cv_ld+:} false; then :
23179 $as_echo_n "(cached) " >&6
23180 else
23181 case $gcc_cv_ld in
23182 [\\/]* | ?:[\\/]*)
23183 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
23184 ;;
23185 *)
23186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23187 for as_dir in $PATH
23188 do
23189 IFS=$as_save_IFS
23190 test -z "$as_dir" && as_dir=.
23191 for ac_exec_ext in '' $ac_executable_extensions; do
23192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23193 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23195 break 2
23196 fi
23197 done
23198 done
23199 IFS=$as_save_IFS
23200
23201 ;;
23202 esac
23203 fi
23204 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23205 if test -n "$gcc_cv_ld"; then
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23207 $as_echo "$gcc_cv_ld" >&6; }
23208 else
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23210 $as_echo "no" >&6; }
23211 fi
23212
23213
23214 fi
23215 fi
23216
23217 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23218 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23219 # if the PLUGIN_LD is set ld-new, just have it as ld
23220 # as that is the installed named.
23221 if test x$PLUGIN_LD_SUFFIX = xld-new \
23222 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23223 PLUGIN_LD_SUFFIX=ld
23224 fi
23225
23226 # Check whether --with-plugin-ld was given.
23227 if test "${with_plugin_ld+set}" = set; then :
23228 withval=$with_plugin_ld; if test x"$withval" != x; then
23229 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23230 PLUGIN_LD_SUFFIX="$withval"
23231 fi
23232 fi
23233
23234
23235
23236 cat >>confdefs.h <<_ACEOF
23237 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23238 _ACEOF
23239
23240
23241 # Check to see if we are using gold instead of ld
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23243 $as_echo_n "checking whether we are using gold... " >&6; }
23244 ld_is_gold=no
23245 if test x$gcc_cv_ld != x; then
23246 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23247 | grep "GNU gold" > /dev/null; then
23248 ld_is_gold=yes
23249 fi
23250 fi
23251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23252 $as_echo "$ld_is_gold" >&6; }
23253
23254 # Check to see if we are using mold instead of ld
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23256 $as_echo_n "checking whether we are using mold... " >&6; }
23257 ld_is_mold=no
23258 if test x$gcc_cv_ld != x; then
23259 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23260 | grep "mold" > /dev/null; then
23261 ld_is_mold=yes
23262 fi
23263 fi
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23265 $as_echo "$ld_is_mold" >&6; }
23266
23267
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23269 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23270 # Check to see if default ld is not gold, but gold is
23271 # available and has support for split stack. If gcc was configured
23272 # with gold then no checking is done.
23273 #
23274 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23275
23276 # For platforms other than powerpc64*, enable as appropriate.
23277
23278 gold_non_default=no
23279 ld_gold=`which ${gcc_cv_ld}.gold`
23280 # Make sure this gold has minimal split stack support
23281 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23282 ld_vers=`$ld_gold --version | sed 1q`
23283 gold_vers=`echo $ld_vers | sed -n \
23284 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23285 case $target in
23286 # check that the gold version contains the complete split stack support
23287 # on powerpc64 big and little endian
23288 powerpc64*-*-*)
23289 case "$gold_vers" in
23290 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23291 ;;
23292 *) gold_non_default=no
23293 ;;
23294 esac
23295 ;;
23296 esac
23297 fi
23298 if test $gold_non_default = yes; then
23299
23300 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23301
23302 fi
23303 fi
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23305 $as_echo "$gold_non_default" >&6; }
23306
23307 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23308
23309 case "$ORIGINAL_LD_FOR_TARGET" in
23310 ./collect-ld | ./collect-ld$build_exeext) ;;
23311 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23312 ;;
23313 esac
23314
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23316 $as_echo_n "checking what linker to use... " >&6; }
23317 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23318 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23319 # Single tree build which includes ld. We want to prefer it
23320 # over whatever linker top-level may have detected, since
23321 # we'll use what we're building after installation anyway.
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23323 $as_echo "newly built ld" >&6; }
23324 in_tree_ld=yes
23325 in_tree_ld_is_elf=no
23326 if (grep 'EMUL = .*elf' ../ld/Makefile \
23327 || grep 'EMUL = .*linux' ../ld/Makefile \
23328 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23329 in_tree_ld_is_elf=yes
23330 elif test "$ld_is_gold" = yes; then
23331 in_tree_ld_is_elf=yes
23332 fi
23333 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
23334 do
23335 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23336 if test x$gcc_cv_gld_version != x; then
23337 break
23338 fi
23339 done
23340 case $gcc_cv_gld_version in
23341 VERSION=[0-9]*) ;;
23342 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23343 esac
23344 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23345 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23346 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23347 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23348 else
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23350 $as_echo "$gcc_cv_ld" >&6; }
23351 in_tree_ld=no
23352 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23353 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23354 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23355 fi
23356
23357
23358
23359
23360 # Figure out what nm we will be using.
23361 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23362 if ${gcc_cv_nm+:} false; then :
23363
23364 else
23365
23366 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23367 && test -f ../binutils/Makefile \
23368 && test x$build = x$host; then
23369 gcc_cv_nm=../binutils/nm-new$build_exeext
23370 elif test -x nm$build_exeext; then
23371 gcc_cv_nm=./nm$build_exeext
23372 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23373 gcc_cv_nm="$NM_FOR_TARGET"
23374 else
23375 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23376 set dummy $NM_FOR_TARGET; ac_word=$2
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23378 $as_echo_n "checking for $ac_word... " >&6; }
23379 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23380 $as_echo_n "(cached) " >&6
23381 else
23382 case $gcc_cv_nm in
23383 [\\/]* | ?:[\\/]*)
23384 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23385 ;;
23386 *)
23387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23388 for as_dir in $PATH
23389 do
23390 IFS=$as_save_IFS
23391 test -z "$as_dir" && as_dir=.
23392 for ac_exec_ext in '' $ac_executable_extensions; do
23393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23394 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23396 break 2
23397 fi
23398 done
23399 done
23400 IFS=$as_save_IFS
23401
23402 ;;
23403 esac
23404 fi
23405 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23406 if test -n "$gcc_cv_nm"; then
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23408 $as_echo "$gcc_cv_nm" >&6; }
23409 else
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23411 $as_echo "no" >&6; }
23412 fi
23413
23414
23415 fi
23416 fi
23417
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23419 $as_echo_n "checking what nm to use... " >&6; }
23420 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23421 # Single tree build which includes binutils.
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23423 $as_echo "newly built nm" >&6; }
23424 in_tree_nm=yes
23425 else
23426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23427 $as_echo "$gcc_cv_nm" >&6; }
23428 in_tree_nm=no
23429 fi
23430
23431 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23432
23433 case "$ORIGINAL_NM_FOR_TARGET" in
23434 ./nm | ./nm$build_exeext) ;;
23435 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23436 ;;
23437 esac
23438
23439
23440 # Figure out what objdump we will be using.
23441 if ${gcc_cv_objdump+:} false; then :
23442
23443 else
23444
23445 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23446 && test -f ../binutils/Makefile \
23447 && test x$build = x$host; then
23448 # Single tree build which includes binutils.
23449 gcc_cv_objdump=../binutils/objdump$build_exeext
23450 elif test -x objdump$build_exeext; then
23451 gcc_cv_objdump=./objdump$build_exeext
23452 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23453 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23454 else
23455 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23456 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23458 $as_echo_n "checking for $ac_word... " >&6; }
23459 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23460 $as_echo_n "(cached) " >&6
23461 else
23462 case $gcc_cv_objdump in
23463 [\\/]* | ?:[\\/]*)
23464 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23465 ;;
23466 *)
23467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23468 for as_dir in $PATH
23469 do
23470 IFS=$as_save_IFS
23471 test -z "$as_dir" && as_dir=.
23472 for ac_exec_ext in '' $ac_executable_extensions; do
23473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23474 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23476 break 2
23477 fi
23478 done
23479 done
23480 IFS=$as_save_IFS
23481
23482 ;;
23483 esac
23484 fi
23485 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23486 if test -n "$gcc_cv_objdump"; then
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23488 $as_echo "$gcc_cv_objdump" >&6; }
23489 else
23490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23491 $as_echo "no" >&6; }
23492 fi
23493
23494
23495 fi
23496 fi
23497
23498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23499 $as_echo_n "checking what objdump to use... " >&6; }
23500 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23501 # Single tree build which includes binutils.
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23503 $as_echo "newly built objdump" >&6; }
23504 elif test x$gcc_cv_objdump = x; then
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23506 $as_echo "not found" >&6; }
23507 else
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23509 $as_echo "$gcc_cv_objdump" >&6; }
23510 fi
23511
23512 # Figure out what readelf we will be using.
23513 if ${gcc_cv_readelf+:} false; then :
23514
23515 else
23516
23517 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23518 && test -f ../binutils/Makefile \
23519 && test x$build = x$host; then
23520 # Single tree build which includes binutils.
23521 gcc_cv_readelf=../binutils/readelf$build_exeext
23522 elif test -x readelf$build_exeext; then
23523 gcc_cv_readelf=./readelf$build_exeext
23524 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23525 gcc_cv_readelf="$READELF_FOR_TARGET"
23526 else
23527 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23528 set dummy $READELF_FOR_TARGET; ac_word=$2
23529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23530 $as_echo_n "checking for $ac_word... " >&6; }
23531 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23532 $as_echo_n "(cached) " >&6
23533 else
23534 case $gcc_cv_readelf in
23535 [\\/]* | ?:[\\/]*)
23536 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23537 ;;
23538 *)
23539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23540 for as_dir in $PATH
23541 do
23542 IFS=$as_save_IFS
23543 test -z "$as_dir" && as_dir=.
23544 for ac_exec_ext in '' $ac_executable_extensions; do
23545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23546 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23548 break 2
23549 fi
23550 done
23551 done
23552 IFS=$as_save_IFS
23553
23554 ;;
23555 esac
23556 fi
23557 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23558 if test -n "$gcc_cv_readelf"; then
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23560 $as_echo "$gcc_cv_readelf" >&6; }
23561 else
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23563 $as_echo "no" >&6; }
23564 fi
23565
23566
23567 fi
23568 fi
23569
23570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23571 $as_echo_n "checking what readelf to use... " >&6; }
23572 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23573 # Single tree build which includes binutils.
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23575 $as_echo "newly built readelf" >&6; }
23576 elif test x$gcc_cv_readelf = x; then
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23578 $as_echo "not found" >&6; }
23579 else
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23581 $as_echo "$gcc_cv_readelf" >&6; }
23582 fi
23583
23584 # Figure out what otool we will be using.
23585 if ${gcc_cv_otool+:} false; then :
23586
23587 else
23588
23589 if test -x otool$build_exeext; then
23590 gcc_cv_otool=./otool$build_exeext
23591 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23592 gcc_cv_otool="$OTOOL_FOR_TARGET"
23593 else
23594 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23595 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23597 $as_echo_n "checking for $ac_word... " >&6; }
23598 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23599 $as_echo_n "(cached) " >&6
23600 else
23601 case $gcc_cv_otool in
23602 [\\/]* | ?:[\\/]*)
23603 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23604 ;;
23605 *)
23606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23607 for as_dir in $PATH
23608 do
23609 IFS=$as_save_IFS
23610 test -z "$as_dir" && as_dir=.
23611 for ac_exec_ext in '' $ac_executable_extensions; do
23612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23613 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23615 break 2
23616 fi
23617 done
23618 done
23619 IFS=$as_save_IFS
23620
23621 ;;
23622 esac
23623 fi
23624 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23625 if test -n "$gcc_cv_otool"; then
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23627 $as_echo "$gcc_cv_otool" >&6; }
23628 else
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23630 $as_echo "no" >&6; }
23631 fi
23632
23633
23634 fi
23635 fi
23636
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23638 $as_echo_n "checking what otool to use... " >&6; }
23639 if test x$gcc_cv_otool = x; then
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23641 $as_echo "not found" >&6; }
23642 else
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23644 $as_echo "$gcc_cv_otool" >&6; }
23645 fi
23646
23647 # Figure out the dsymutil we will use.
23648 if ${gcc_cv_dsymutil+:} false; then :
23649
23650 else
23651
23652 if test -x "$DEFAULT_DSYMUTIL"; then
23653 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23654 elif test -x dsymutil$build_exeext; then
23655 gcc_cv_dsymutil=./dsymutil$build_exeext
23656 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23657 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23658 elif ( set dummy $DSYMUTIL; test -x $2 ); then
23659 gcc_cv_dsymutil=$DSYMUTIL
23660 else
23661 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23662 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23664 $as_echo_n "checking for $ac_word... " >&6; }
23665 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23666 $as_echo_n "(cached) " >&6
23667 else
23668 case $gcc_cv_dsymutil in
23669 [\\/]* | ?:[\\/]*)
23670 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23671 ;;
23672 *)
23673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23674 for as_dir in $PATH
23675 do
23676 IFS=$as_save_IFS
23677 test -z "$as_dir" && as_dir=.
23678 for ac_exec_ext in '' $ac_executable_extensions; do
23679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23680 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23682 break 2
23683 fi
23684 done
23685 done
23686 IFS=$as_save_IFS
23687
23688 ;;
23689 esac
23690 fi
23691 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23692 if test -n "$gcc_cv_dsymutil"; then
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23694 $as_echo "$gcc_cv_dsymutil" >&6; }
23695 else
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23697 $as_echo "no" >&6; }
23698 fi
23699
23700
23701 fi
23702 fi
23703
23704 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23705
23706 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23707 ./dsymutil | ./dsymutil$build_exeext) ;;
23708 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23709 ;;
23710 esac
23711
23712 # Figure out what assembler alignment features are present.
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23714 $as_echo_n "checking assembler flags... " >&6; }
23715 if ${gcc_cv_as_flags+:} false; then :
23716 $as_echo_n "(cached) " >&6
23717 else
23718 case "$target" in
23719 i[34567]86-*-linux*)
23720 gcc_cv_as_flags=--32
23721 ;;
23722 x86_64-*-linux-gnux32)
23723 gcc_cv_as_flags=--x32
23724 ;;
23725 x86_64-*-linux*)
23726 gcc_cv_as_flags=--64
23727 ;;
23728 powerpc*-*-darwin*)
23729 gcc_cv_as_flags="-arch ppc"
23730 ;;
23731 *)
23732 gcc_cv_as_flags=" "
23733 ;;
23734 esac
23735 fi
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23737 $as_echo "$gcc_cv_as_flags" >&6; }
23738
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23740 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23741 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23742 $as_echo_n "(cached) " >&6
23743 else
23744 gcc_cv_as_balign_and_p2align=no
23745 if test x$gcc_cv_as != x; then
23746 $as_echo '.balign 4
23747 .p2align 2' > conftest.s
23748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23750 (eval $ac_try) 2>&5
23751 ac_status=$?
23752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23753 test $ac_status = 0; }; }
23754 then
23755 gcc_cv_as_balign_and_p2align=yes
23756 else
23757 echo "configure: failed program was" >&5
23758 cat conftest.s >&5
23759 fi
23760 rm -f conftest.o conftest.s
23761 fi
23762 fi
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23764 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23765 if test $gcc_cv_as_balign_and_p2align = yes; then
23766
23767 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23768
23769 fi
23770
23771
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23773 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23774 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23775 $as_echo_n "(cached) " >&6
23776 else
23777 gcc_cv_as_max_skip_p2align=no
23778 if test x$gcc_cv_as != x; then
23779 $as_echo '.p2align 4,,7' > conftest.s
23780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23782 (eval $ac_try) 2>&5
23783 ac_status=$?
23784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23785 test $ac_status = 0; }; }
23786 then
23787 gcc_cv_as_max_skip_p2align=yes
23788 else
23789 echo "configure: failed program was" >&5
23790 cat conftest.s >&5
23791 fi
23792 rm -f conftest.o conftest.s
23793 fi
23794 fi
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23796 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23797 if test $gcc_cv_as_max_skip_p2align = yes; then
23798
23799 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23800
23801 fi
23802
23803
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23805 $as_echo_n "checking assembler for .literal16... " >&6; }
23806 if ${gcc_cv_as_literal16+:} false; then :
23807 $as_echo_n "(cached) " >&6
23808 else
23809 gcc_cv_as_literal16=no
23810 if test x$gcc_cv_as != x; then
23811 $as_echo '.literal16' > conftest.s
23812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23814 (eval $ac_try) 2>&5
23815 ac_status=$?
23816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23817 test $ac_status = 0; }; }
23818 then
23819 gcc_cv_as_literal16=yes
23820 else
23821 echo "configure: failed program was" >&5
23822 cat conftest.s >&5
23823 fi
23824 rm -f conftest.o conftest.s
23825 fi
23826 fi
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23828 $as_echo "$gcc_cv_as_literal16" >&6; }
23829 if test $gcc_cv_as_literal16 = yes; then
23830
23831 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23832
23833 fi
23834
23835
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23837 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23838 if ${gcc_cv_as_subsection_m1+:} false; then :
23839 $as_echo_n "(cached) " >&6
23840 else
23841 gcc_cv_as_subsection_m1=no
23842 if test x$gcc_cv_as != x; then
23843 $as_echo 'conftest_label1: .word 0
23844 .subsection -1
23845 conftest_label2: .word 0
23846 .previous' > conftest.s
23847 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23849 (eval $ac_try) 2>&5
23850 ac_status=$?
23851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23852 test $ac_status = 0; }; }
23853 then
23854 if test x$gcc_cv_nm != x; then
23855 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23856 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23857 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23858 then :
23859 else gcc_cv_as_subsection_m1=yes
23860 fi
23861 rm -f conftest.nm1 conftest.nm2
23862 fi
23863 else
23864 echo "configure: failed program was" >&5
23865 cat conftest.s >&5
23866 fi
23867 rm -f conftest.o conftest.s
23868 fi
23869 fi
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23871 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23872 if test $gcc_cv_as_subsection_m1 = yes; then
23873
23874 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23875
23876 fi
23877
23878
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23880 $as_echo_n "checking assembler for .weak... " >&6; }
23881 if ${gcc_cv_as_weak+:} false; then :
23882 $as_echo_n "(cached) " >&6
23883 else
23884 gcc_cv_as_weak=no
23885 if test x$gcc_cv_as != x; then
23886 $as_echo ' .weak foobar' > conftest.s
23887 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23889 (eval $ac_try) 2>&5
23890 ac_status=$?
23891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23892 test $ac_status = 0; }; }
23893 then
23894 gcc_cv_as_weak=yes
23895 else
23896 echo "configure: failed program was" >&5
23897 cat conftest.s >&5
23898 fi
23899 rm -f conftest.o conftest.s
23900 fi
23901 fi
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23903 $as_echo "$gcc_cv_as_weak" >&6; }
23904 if test $gcc_cv_as_weak = yes; then
23905
23906 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23907
23908 fi
23909
23910
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23912 $as_echo_n "checking assembler for .weakref... " >&6; }
23913 if ${gcc_cv_as_weakref+:} false; then :
23914 $as_echo_n "(cached) " >&6
23915 else
23916 gcc_cv_as_weakref=no
23917 if test x$gcc_cv_as != x; then
23918 $as_echo ' .weakref foobar, barfnot' > conftest.s
23919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23921 (eval $ac_try) 2>&5
23922 ac_status=$?
23923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23924 test $ac_status = 0; }; }
23925 then
23926 gcc_cv_as_weakref=yes
23927 else
23928 echo "configure: failed program was" >&5
23929 cat conftest.s >&5
23930 fi
23931 rm -f conftest.o conftest.s
23932 fi
23933 fi
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23935 $as_echo "$gcc_cv_as_weakref" >&6; }
23936 if test $gcc_cv_as_weakref = yes; then
23937
23938 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23939
23940 fi
23941
23942
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23944 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23945 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23946 $as_echo_n "(cached) " >&6
23947 else
23948 gcc_cv_as_nsubspa_comdat=no
23949 if test x$gcc_cv_as != x; then
23950 $as_echo ' .SPACE $TEXT$
23951 .NSUBSPA $CODE$,COMDAT' > conftest.s
23952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23954 (eval $ac_try) 2>&5
23955 ac_status=$?
23956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23957 test $ac_status = 0; }; }
23958 then
23959 gcc_cv_as_nsubspa_comdat=yes
23960 else
23961 echo "configure: failed program was" >&5
23962 cat conftest.s >&5
23963 fi
23964 rm -f conftest.o conftest.s
23965 fi
23966 fi
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23968 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23969 if test $gcc_cv_as_nsubspa_comdat = yes; then
23970
23971 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23972
23973 fi
23974
23975
23976 # .hidden needs to be supported in both the assembler and the linker,
23977 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23978 # This is irritatingly difficult to feature test for; we have to check the
23979 # date string after the version number. If we've got an in-tree
23980 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23981 # to be safe.
23982 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23983 case "${target}" in
23984 *-*-aix*)
23985 conftest_s=' .globl foobar,hidden'
23986 ;;
23987 *)
23988 conftest_s=' .hidden foobar
23989 foobar:'
23990 ;;
23991 esac
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23993 $as_echo_n "checking assembler for .hidden... " >&6; }
23994 if ${gcc_cv_as_hidden+:} false; then :
23995 $as_echo_n "(cached) " >&6
23996 else
23997 gcc_cv_as_hidden=no
23998 if test x$gcc_cv_as != x; then
23999 $as_echo "$conftest_s" > conftest.s
24000 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24002 (eval $ac_try) 2>&5
24003 ac_status=$?
24004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24005 test $ac_status = 0; }; }
24006 then
24007 gcc_cv_as_hidden=yes
24008 else
24009 echo "configure: failed program was" >&5
24010 cat conftest.s >&5
24011 fi
24012 rm -f conftest.o conftest.s
24013 fi
24014 fi
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24016 $as_echo "$gcc_cv_as_hidden" >&6; }
24017
24018
24019 case "${target}" in
24020 *-*-darwin*)
24021 # Darwin as has some visibility support, though with a different syntax.
24022 gcc_cv_as_hidden=yes
24023 ;;
24024 esac
24025
24026 # gnu_indirect_function type is an extension proposed at
24027 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24028 # selection of function implementation
24029 # Check whether --enable-gnu-indirect-function was given.
24030 if test "${enable_gnu_indirect_function+set}" = set; then :
24031 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24032 yes | no) ;;
24033 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24034 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24035 esac
24036 else
24037 enable_gnu_indirect_function="$default_gnu_indirect_function"
24038 fi
24039
24040
24041 case "${target}" in
24042 riscv*-*-linux*)
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24044 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24045 cat > conftest.s <<EOF
24046 .text
24047 .type foo_resolver, @function
24048 foo_resolver:
24049 ret
24050 .size foo_resolver, .-foo_resolver
24051
24052 .globl foo
24053 .type foo, %gnu_indirect_function
24054 .set foo, foo_resolver
24055
24056 .globl bar
24057 .type bar, @function
24058 bar:
24059 call foo
24060 ret
24061 .size bar, .-bar
24062 EOF
24063 if test x$gcc_cv_as != x \
24064 && test x$gcc_cv_ld != x \
24065 && test x$gcc_cv_readelf != x \
24066 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24067 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24068 && $gcc_cv_readelf --relocs --wide conftest \
24069 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
24070 enable_gnu_indirect_function=yes
24071 fi
24072 rm -f conftest conftest.o conftest.s
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24074 $as_echo "$enable_gnu_indirect_function" >&6; }
24075 ;;
24076 esac
24077
24078 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24079
24080 cat >>confdefs.h <<_ACEOF
24081 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24082 _ACEOF
24083
24084
24085
24086 if test $in_tree_ld != yes ; then
24087 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24088 if echo "$ld_ver" | grep GNU > /dev/null; then
24089 if test x"$ld_is_gold" = xyes; then
24090 # GNU gold --version looks like this:
24091 #
24092 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24093 #
24094 # We extract the binutils version which is more familiar and specific
24095 # than the gold version.
24096 ld_vers=`echo $ld_ver | sed -n \
24097 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24098 else
24099 # GNU ld --version looks like this:
24100 #
24101 # GNU ld (GNU Binutils) 2.21.51.20110225
24102 ld_vers=`echo $ld_ver | sed -n \
24103 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24104 fi
24105 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'`
24106 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24107 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24108 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24109 else
24110 case "${target}" in
24111 *-*-solaris2*)
24112 # Solaris 2 ld -V output looks like this for a regular version:
24113 #
24114 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24115 #
24116 # but test versions add stuff at the end:
24117 #
24118 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24119 #
24120 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24121 # numbers can be used in ld.so.1 feature checks even if a different
24122 # linker is configured.
24123 ld_ver=`$gcc_cv_ld -V 2>&1`
24124 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
24125 ld_vers=`echo $ld_ver | sed -n \
24126 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24127 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24128 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24129 fi
24130 ;;
24131 esac
24132 fi
24133 fi
24134
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24136 $as_echo_n "checking linker for .hidden support... " >&6; }
24137 if ${gcc_cv_ld_hidden+:} false; then :
24138 $as_echo_n "(cached) " >&6
24139 else
24140 if test $in_tree_ld = yes ; then
24141 gcc_cv_ld_hidden=no
24142 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 \
24143 && test $in_tree_ld_is_elf = yes; then
24144 gcc_cv_ld_hidden=yes
24145 fi
24146 else
24147 gcc_cv_ld_hidden=yes
24148 if test x"$ld_is_gold" = xyes; then
24149 :
24150 elif test x"$ld_is_mold" = xyes; then
24151 :
24152 elif echo "$ld_ver" | grep GNU > /dev/null; then
24153 if test 0"$ld_date" -lt 20020404; then
24154 if test -n "$ld_date"; then
24155 # If there was date string, but was earlier than 2002-04-04, fail
24156 gcc_cv_ld_hidden=no
24157 elif test -z "$ld_vers"; then
24158 # If there was no date string nor ld version number, something is wrong
24159 gcc_cv_ld_hidden=no
24160 else
24161 test -z "$ld_vers_patch" && ld_vers_patch=0
24162 if test "$ld_vers_major" -lt 2; then
24163 gcc_cv_ld_hidden=no
24164 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24165 gcc_cv_ld_hidden="no"
24166 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24167 gcc_cv_ld_hidden=no
24168 fi
24169 fi
24170 fi
24171 else
24172 case "${target}" in
24173 *-*-aix[789]*)
24174 gcc_cv_ld_hidden=yes
24175 ;;
24176 *-*-darwin*)
24177 # Darwin ld has some visibility support.
24178 gcc_cv_ld_hidden=yes
24179 ;;
24180 hppa64*-*-hpux* | ia64*-*-hpux*)
24181 gcc_cv_ld_hidden=yes
24182 ;;
24183 *-*-solaris2*)
24184 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24185 # .symbolic was only added in Solaris 9 12/02.
24186 gcc_cv_ld_hidden=yes
24187 ;;
24188 *)
24189 gcc_cv_ld_hidden=no
24190 ;;
24191 esac
24192 fi
24193 fi
24194 fi
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24196 $as_echo "$gcc_cv_ld_hidden" >&6; }
24197 libgcc_visibility=no
24198
24199
24200 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24201 libgcc_visibility=yes
24202
24203 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24204
24205 fi
24206
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24208 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24209 gcc_cv_ld_ro_rw_mix=unknown
24210 if test $in_tree_ld = yes ; then
24211 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 \
24212 && test $in_tree_ld_is_elf = yes; then
24213 gcc_cv_ld_ro_rw_mix=read-write
24214 fi
24215 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24216 echo '.section myfoosect, "a"' > conftest1.s
24217 echo '.section myfoosect, "aw"' > conftest2.s
24218 echo '.byte 1' >> conftest2.s
24219 echo '.section myfoosect, "a"' > conftest3.s
24220 echo '.byte 0' >> conftest3.s
24221 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24222 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24223 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
24224 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24225 conftest2.o conftest3.o > /dev/null 2>&1; then
24226 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24227 | sed -e '/myfoosect/!d' -e N`
24228 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24229 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24230 gcc_cv_ld_ro_rw_mix=read-only
24231 else
24232 gcc_cv_ld_ro_rw_mix=read-write
24233 fi
24234 fi
24235 fi
24236 rm -f conftest.* conftest[123].*
24237 fi
24238 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24239
24240 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24241
24242 fi
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24244 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24245
24246 # Check whether --enable-initfini-array was given.
24247 if test "${enable_initfini_array+set}" = set; then :
24248 enableval=$enable_initfini_array;
24249 else
24250
24251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24252 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24253 if ${gcc_cv_initfini_array+:} false; then :
24254 $as_echo_n "(cached) " >&6
24255 else
24256 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24257 case "${target}" in
24258 ia64-*)
24259 if test "$cross_compiling" = yes; then :
24260 gcc_cv_initfini_array=no
24261 else
24262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24263 /* end confdefs.h. */
24264
24265 #ifndef __ELF__
24266 #error Not an ELF OS
24267 #endif
24268 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24269 if it can be used. */
24270 static int x = -1;
24271 int main (void) { return x; }
24272 int foo (void) { x = 0; }
24273 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24274
24275 _ACEOF
24276 if ac_fn_cxx_try_run "$LINENO"; then :
24277 gcc_cv_initfini_array=yes
24278 else
24279 gcc_cv_initfini_array=no
24280 fi
24281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24282 conftest.$ac_objext conftest.beam conftest.$ac_ext
24283 fi
24284 ;;
24285 *)
24286 gcc_cv_initfini_array=no
24287 if test $in_tree_ld = yes ; then
24288 if test "$gcc_cv_gld_major_version" -eq 2 \
24289 -a "$gcc_cv_gld_minor_version" -ge 22 \
24290 -o "$gcc_cv_gld_major_version" -gt 2 \
24291 && test $in_tree_ld_is_elf = yes; then
24292 gcc_cv_initfini_array=yes
24293 fi
24294 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24295 case $target:$gas in
24296 *:yes)
24297 sh_flags='"a"'
24298 sh_type='%progbits'
24299 ;;
24300 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24301 sh_flags='"a"'
24302 sh_type='@progbits'
24303 ;;
24304 sparc*-*-solaris2*:no)
24305 sh_flags='#alloc'
24306 sh_type='#progbits'
24307 sh_quote='"'
24308 ;;
24309 esac
24310 case "$target:$gnu_ld" in
24311 *:yes)
24312 cat > conftest.s <<EOF
24313 .section .dtors,$sh_flags,$sh_type
24314 .balign 4
24315 .byte 'A', 'A', 'A', 'A'
24316 .section .ctors,$sh_flags,$sh_type
24317 .balign 4
24318 .byte 'B', 'B', 'B', 'B'
24319 .section .fini_array.65530,$sh_flags,$sh_type
24320 .balign 4
24321 .byte 'C', 'C', 'C', 'C'
24322 .section .init_array.65530,$sh_flags,$sh_type
24323 .balign 4
24324 .byte 'D', 'D', 'D', 'D'
24325 .section .dtors.64528,$sh_flags,$sh_type
24326 .balign 4
24327 .byte 'E', 'E', 'E', 'E'
24328 .section .ctors.64528,$sh_flags,$sh_type
24329 .balign 4
24330 .byte 'F', 'F', 'F', 'F'
24331 .section .fini_array.01005,$sh_flags,$sh_type
24332 .balign 4
24333 .byte 'G', 'G', 'G', 'G'
24334 .section .init_array.01005,$sh_flags,$sh_type
24335 .balign 4
24336 .byte 'H', 'H', 'H', 'H'
24337 .text
24338 .globl _start
24339 _start:
24340 EOF
24341 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24342 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24343 && $gcc_cv_objdump -s -j .init_array conftest \
24344 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24345 && $gcc_cv_objdump -s -j .fini_array conftest \
24346 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24347 gcc_cv_initfini_array=yes
24348 fi
24349 ;;
24350 *-*-solaris2*:no)
24351 # When Solaris ld added constructor priority support, it was
24352 # decided to only handle .init_array.N/.fini_array.N since
24353 # there was no need for backwards compatibility with
24354 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24355 # sections with correct execution order resp. to
24356 # .init_array/.fini_array, while gld merges them into
24357 # .init_array/.fini_array.
24358 cat > conftest.s <<EOF
24359 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24360 .align 4
24361 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24362 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24363 .align 4
24364 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24365 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24366 .align 4
24367 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24368 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24369 .align 4
24370 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24371 .text
24372 .globl _start
24373 _start:
24374 EOF
24375 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24376 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24377 && $gcc_cv_objdump -s -j .init_array conftest \
24378 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24379 && $gcc_cv_objdump -s -j .fini_array conftest \
24380 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24381 gcc_cv_initfini_array=yes
24382 fi
24383 ;;
24384 esac
24385 rm -f conftest conftest.*
24386 fi
24387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24388 /* end confdefs.h. */
24389
24390 #ifndef __ELF__
24391 # error Not an ELF OS
24392 #endif
24393 #include <stdlib.h>
24394 #if defined __GLIBC_PREREQ
24395 # if __GLIBC_PREREQ (2, 4)
24396 # else
24397 # error GLIBC 2.4 required
24398 # endif
24399 #else
24400 # if defined __sun__ && defined __svr4__
24401 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24402 # else
24403 # error The C library not known to support .init_array/.fini_array
24404 # endif
24405 #endif
24406
24407 _ACEOF
24408 if ac_fn_cxx_try_cpp "$LINENO"; then :
24409
24410 else
24411 gcc_cv_initfini_array=no
24412 fi
24413 rm -f conftest.err conftest.i conftest.$ac_ext;;
24414 esac
24415 else
24416 case "${target}" in
24417 aarch64*-linux-gnu*)
24418 # AArch64 postdates glibc support for .init_array/.fini_array,
24419 # so we don't need the preprocessor test above.
24420 gcc_cv_initfini_array=yes
24421 ;;
24422
24423 *)
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24425 $as_echo_n "checking cross compile... guessing... " >&6; }
24426 gcc_cv_initfini_array=no
24427 ;;
24428 esac
24429 fi
24430 fi
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24432 $as_echo "$gcc_cv_initfini_array" >&6; }
24433 enable_initfini_array=$gcc_cv_initfini_array
24434
24435 fi
24436
24437
24438 cat >>confdefs.h <<_ACEOF
24439 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24440 _ACEOF
24441
24442
24443
24444 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24445 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24446 # these directives, even when they appear to accept them.
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24448 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24449 if ${gcc_cv_as_leb128+:} false; then :
24450 $as_echo_n "(cached) " >&6
24451 else
24452 gcc_cv_as_leb128=no
24453 if test x$gcc_cv_as != x; then
24454 $as_echo ' .data
24455 .uleb128 L2 - L1
24456 L1:
24457 .uleb128 1280
24458 .sleb128 -1010
24459 L2:
24460 .uleb128 0x8000000000000000
24461 ' > conftest.s
24462 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24464 (eval $ac_try) 2>&5
24465 ac_status=$?
24466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24467 test $ac_status = 0; }; }
24468 then
24469
24470 if test "x$gcc_cv_objdump" != x; then
24471 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24472 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24473 gcc_cv_as_leb128=yes
24474 fi
24475 elif test "x$gcc_cv_otool" != x; then
24476 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24477 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24478 gcc_cv_as_leb128=yes
24479 fi
24480 else
24481 # play safe, assume the assembler is broken.
24482 :
24483 fi
24484
24485 else
24486 echo "configure: failed program was" >&5
24487 cat conftest.s >&5
24488 fi
24489 rm -f conftest.o conftest.s
24490 fi
24491 fi
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24493 $as_echo "$gcc_cv_as_leb128" >&6; }
24494 if test $gcc_cv_as_leb128 = yes; then
24495
24496 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24497
24498 fi
24499 if test $gcc_cv_as_leb128 != yes; then
24500
24501 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24502
24503 fi
24504
24505 # Determine if an .eh_frame section is read-only.
24506 gcc_fn_eh_frame_ro () {
24507 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24508 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24509 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24510 }
24511
24512 # Check if we have assembler support for unwind directives.
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24514 $as_echo_n "checking assembler for cfi directives... " >&6; }
24515 if ${gcc_cv_as_cfi_directive+:} false; then :
24516 $as_echo_n "(cached) " >&6
24517 else
24518 gcc_cv_as_cfi_directive=no
24519 if test x$gcc_cv_as != x; then
24520 $as_echo ' .text
24521 .cfi_startproc
24522 .cfi_offset 0, 0
24523 .cfi_same_value 1
24524 .cfi_def_cfa 1, 2
24525 .cfi_escape 1, 2, 3, 4, 5
24526 .cfi_endproc' > conftest.s
24527 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24529 (eval $ac_try) 2>&5
24530 ac_status=$?
24531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24532 test $ac_status = 0; }; }
24533 then
24534 case "$target" in
24535 *-*-solaris*)
24536 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24537 # read-only and read-write sections, we need to make sure that the
24538 # assembler used emits read-write .eh_frame sections.
24539 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24540 gcc_cv_as_cfi_directive=yes
24541 elif test "x$gcc_cv_objdump" = x; then
24542 # No objdump, err on the side of caution.
24543 gcc_cv_as_cfi_directive=no
24544 else
24545 if test x$gas = xyes; then
24546 as_32_opt="--32"
24547 as_64_opt="--64"
24548 else
24549 as_32_opt="-m32"
24550 as_64_opt="-m64"
24551 fi
24552 case "$target" in
24553 sparc*-*-solaris2.*)
24554 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24555 if gcc_fn_eh_frame_ro $as_32_opt \
24556 || gcc_fn_eh_frame_ro $as_64_opt; then
24557 gcc_cv_as_cfi_directive=no
24558 else
24559 gcc_cv_as_cfi_directive=yes
24560 fi
24561 ;;
24562 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24563 # On Solaris/x86, make sure that GCC and assembler agree on using
24564 # read-only .eh_frame sections for 64-bit.
24565 if gcc_fn_eh_frame_ro $as_32_opt; then
24566 gcc_cv_as_cfi_directive=no
24567 elif gcc_fn_eh_frame_ro $as_64_opt; then
24568 gcc_cv_as_cfi_directive=yes
24569 else
24570 gcc_cv_as_cfi_directive=no
24571 fi
24572 ;;
24573 esac
24574 fi
24575 ;;
24576 *-*-*)
24577 gcc_cv_as_cfi_directive=yes
24578 ;;
24579 esac
24580 else
24581 echo "configure: failed program was" >&5
24582 cat conftest.s >&5
24583 fi
24584 rm -f conftest.o conftest.s
24585 fi
24586 fi
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24588 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24589
24590
24591 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24593 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24594 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24595 $as_echo_n "(cached) " >&6
24596 else
24597 gcc_cv_as_cfi_advance_working=no
24598 if test x$gcc_cv_as != x; then
24599 $as_echo ' .text
24600 .cfi_startproc
24601 .cfi_adjust_cfa_offset 64
24602 .skip 75040, 0
24603 .cfi_adjust_cfa_offset 128
24604 .cfi_endproc' > conftest.s
24605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24607 (eval $ac_try) 2>&5
24608 ac_status=$?
24609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24610 test $ac_status = 0; }; }
24611 then
24612
24613 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24614 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24615 gcc_cv_as_cfi_advance_working=yes
24616 fi
24617
24618 else
24619 echo "configure: failed program was" >&5
24620 cat conftest.s >&5
24621 fi
24622 rm -f conftest.o conftest.s
24623 fi
24624 fi
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24626 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24627
24628
24629 else
24630 # no objdump, err on the side of caution
24631 gcc_cv_as_cfi_advance_working=no
24632 fi
24633
24634
24635 cat >>confdefs.h <<_ACEOF
24636 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24637 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24638 _ACEOF
24639
24640
24641
24642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24643 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24644 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24645 $as_echo_n "(cached) " >&6
24646 else
24647 gcc_cv_as_cfi_personality_directive=no
24648 if test x$gcc_cv_as != x; then
24649 $as_echo ' .text
24650 .cfi_startproc
24651 .cfi_personality 0, symbol
24652 .cfi_endproc' > conftest.s
24653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24655 (eval $ac_try) 2>&5
24656 ac_status=$?
24657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24658 test $ac_status = 0; }; }
24659 then
24660 gcc_cv_as_cfi_personality_directive=yes
24661 else
24662 echo "configure: failed program was" >&5
24663 cat conftest.s >&5
24664 fi
24665 rm -f conftest.o conftest.s
24666 fi
24667 fi
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24669 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24670
24671
24672
24673 cat >>confdefs.h <<_ACEOF
24674 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24675 _ACEOF
24676
24677
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24679 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24680 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24681 $as_echo_n "(cached) " >&6
24682 else
24683 gcc_cv_as_cfi_sections_directive=no
24684 if test x$gcc_cv_as != x; then
24685 $as_echo ' .text
24686 .cfi_sections .debug_frame, .eh_frame
24687 .cfi_startproc
24688 .cfi_endproc' > conftest.s
24689 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24691 (eval $ac_try) 2>&5
24692 ac_status=$?
24693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24694 test $ac_status = 0; }; }
24695 then
24696 case $target_os in
24697 win32 | pe | cygwin* | mingw32*)
24698 # Need to check that we generated the correct relocation for the
24699 # .debug_frame section. This was fixed for binutils 2.21.
24700 gcc_cv_as_cfi_sections_directive=no
24701 if test "x$gcc_cv_objdump" != x; then
24702 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24703 grep secrel > /dev/null; then
24704 gcc_cv_as_cfi_sections_directive=yes
24705 fi
24706 fi
24707 ;;
24708 *)
24709 gcc_cv_as_cfi_sections_directive=yes
24710 ;;
24711 esac
24712 else
24713 echo "configure: failed program was" >&5
24714 cat conftest.s >&5
24715 fi
24716 rm -f conftest.o conftest.s
24717 fi
24718 fi
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24720 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24721
24722
24723
24724
24725 cat >>confdefs.h <<_ACEOF
24726 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24727 _ACEOF
24728
24729
24730 # GAS versions up to and including 2.11.0 may mis-optimize
24731 # .eh_frame data.
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24733 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24734 if ${gcc_cv_as_eh_frame+:} false; then :
24735 $as_echo_n "(cached) " >&6
24736 else
24737 gcc_cv_as_eh_frame=no
24738 if test x$gcc_cv_as != x; then
24739 $as_echo ' .text
24740 .LFB1:
24741 .4byte 0
24742 .L1:
24743 .4byte 0
24744 .LFE1:
24745 .section .eh_frame,"aw",@progbits
24746 __FRAME_BEGIN__:
24747 .4byte .LECIE1-.LSCIE1
24748 .LSCIE1:
24749 .4byte 0x0
24750 .byte 0x1
24751 .ascii "z\0"
24752 .byte 0x1
24753 .byte 0x78
24754 .byte 0x1a
24755 .byte 0x0
24756 .byte 0x4
24757 .4byte 1
24758 .p2align 1
24759 .LECIE1:
24760 .LSFDE1:
24761 .4byte .LEFDE1-.LASFDE1
24762 .LASFDE1:
24763 .4byte .LASFDE1-__FRAME_BEGIN__
24764 .4byte .LFB1
24765 .4byte .LFE1-.LFB1
24766 .byte 0x4
24767 .4byte .LFE1-.LFB1
24768 .byte 0x4
24769 .4byte .L1-.LFB1
24770 .LEFDE1:' > conftest.s
24771 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24773 (eval $ac_try) 2>&5
24774 ac_status=$?
24775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24776 test $ac_status = 0; }; }
24777 then
24778 cat > conftest.lit <<EOF
24779 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24780 0010 01000000 12000000 18000000 00000000 ................
24781 0020 08000000 04080000 0044 .........D
24782 EOF
24783 cat > conftest.big <<EOF
24784 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24785 0010 00000001 00000012 00000018 00000000 ................
24786 0020 00000008 04000000 0844 .........D
24787 EOF
24788 # If the assembler didn't choke, and we can objdump,
24789 # and we got the correct data, then succeed.
24790 # The text in the here-document typically retains its unix-style line
24791 # endings, while the output of objdump will use host line endings.
24792 # Therefore, use diff -b for the comparisons.
24793 if test x$gcc_cv_objdump != x \
24794 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24795 | tail -3 > conftest.got \
24796 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24797 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24798 then
24799 gcc_cv_as_eh_frame=yes
24800 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24802 (eval $ac_try) 2>&5
24803 ac_status=$?
24804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24805 test $ac_status = 0; }; }; then
24806 gcc_cv_as_eh_frame=buggy
24807 else
24808 # Uh oh, what do we do now?
24809 gcc_cv_as_eh_frame=no
24810 fi
24811 else
24812 echo "configure: failed program was" >&5
24813 cat conftest.s >&5
24814 fi
24815 rm -f conftest.o conftest.s
24816 fi
24817 fi
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24819 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24820
24821
24822
24823 if test $gcc_cv_as_eh_frame = buggy; then
24824
24825 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24826
24827 fi
24828
24829 # Test if the assembler supports the section flag 'e' or #exclude for
24830 # specifying an excluded section.
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24832 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24833 if ${gcc_cv_as_section_exclude_e+:} false; then :
24834 $as_echo_n "(cached) " >&6
24835 else
24836 gcc_cv_as_section_exclude_e=no
24837 if test x$gcc_cv_as != x; then
24838 $as_echo '.section foo1,"e"
24839 .byte 0,0,0,0' > conftest.s
24840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24842 (eval $ac_try) 2>&5
24843 ac_status=$?
24844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24845 test $ac_status = 0; }; }
24846 then
24847 gcc_cv_as_section_exclude_e=yes
24848 else
24849 echo "configure: failed program was" >&5
24850 cat conftest.s >&5
24851 fi
24852 rm -f conftest.o conftest.s
24853 fi
24854 fi
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24856 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24857
24858
24859 if test $gcc_cv_as_section_exclude_e = no; then
24860 case "${target}" in
24861 # Solaris as uses #exclude instead.
24862 *-*-solaris2*)
24863 case "${target}" in
24864 sparc*-*-solaris2*)
24865 conftest_s='.section "foo1", #exclude'
24866 ;;
24867 i?86-*-solaris2* | x86_64-*-solaris2*)
24868 conftest_s='.section foo1, #exclude'
24869 ;;
24870 esac
24871 ;;
24872 esac
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24874 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24875 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24876 $as_echo_n "(cached) " >&6
24877 else
24878 gcc_cv_as_section_exclude_hash=no
24879 if test x$gcc_cv_as != x; then
24880 $as_echo "$conftest_s
24881 .byte 0,0,0,0" > conftest.s
24882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24884 (eval $ac_try) 2>&5
24885 ac_status=$?
24886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24887 test $ac_status = 0; }; }
24888 then
24889 gcc_cv_as_section_exclude_hash=yes
24890 else
24891 echo "configure: failed program was" >&5
24892 cat conftest.s >&5
24893 fi
24894 rm -f conftest.o conftest.s
24895 fi
24896 fi
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24898 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24899
24900
24901 fi
24902
24903 cat >>confdefs.h <<_ACEOF
24904 #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`
24905 _ACEOF
24906
24907
24908 # Test if the assembler supports the section flag 'R' for specifying
24909 # section with SHF_GNU_RETAIN.
24910 case "${target}" in
24911 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24912 # assembler supports the section flag 'R', it doesn't mean that
24913 # Solairs ld supports it.
24914 *-*-solaris2*)
24915 gcc_cv_as_shf_gnu_retain=no
24916 ;;
24917 *)
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24919 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
24920 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
24921 $as_echo_n "(cached) " >&6
24922 else
24923 gcc_cv_as_shf_gnu_retain=no
24924 if test x$gcc_cv_as != x; then
24925 $as_echo '.section .foo,"awR",%progbits
24926 .byte 0' > conftest.s
24927 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24929 (eval $ac_try) 2>&5
24930 ac_status=$?
24931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24932 test $ac_status = 0; }; }
24933 then
24934 gcc_cv_as_shf_gnu_retain=yes
24935 else
24936 echo "configure: failed program was" >&5
24937 cat conftest.s >&5
24938 fi
24939 rm -f conftest.o conftest.s
24940 fi
24941 fi
24942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
24943 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
24944
24945
24946 ;;
24947 esac
24948
24949 cat >>confdefs.h <<_ACEOF
24950 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
24951 _ACEOF
24952
24953
24954 # Test if the assembler supports the section flag 'o' for specifying
24955 # section with link-order.
24956 case "${target}" in
24957 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24958 # assembler supports the section flag 'o', it doesn't mean that
24959 # Solairs ld supports it.
24960 *-*-solaris2*)
24961 gcc_cv_as_section_link_order=no
24962 ;;
24963 *)
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
24965 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
24966 if ${gcc_cv_as_section_link_order+:} false; then :
24967 $as_echo_n "(cached) " >&6
24968 else
24969 gcc_cv_as_section_link_order=no
24970 if test x$gcc_cv_as != x; then
24971 $as_echo '.section .foo,"a"
24972 .byte 0
24973 .section __patchable_function_entries,"awo",%progbits,.foo
24974 .byte 0' > conftest.s
24975 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24977 (eval $ac_try) 2>&5
24978 ac_status=$?
24979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24980 test $ac_status = 0; }; }
24981 then
24982 gcc_cv_as_section_link_order=yes
24983 else
24984 echo "configure: failed program was" >&5
24985 cat conftest.s >&5
24986 fi
24987 rm -f conftest.o conftest.s
24988 fi
24989 fi
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
24991 $as_echo "$gcc_cv_as_section_link_order" >&6; }
24992
24993
24994 ;;
24995 esac
24996
24997 cat >>confdefs.h <<_ACEOF
24998 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
24999 _ACEOF
25000
25001
25002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25003 $as_echo_n "checking assembler for section merging support... " >&6; }
25004 if ${gcc_cv_as_shf_merge+:} false; then :
25005 $as_echo_n "(cached) " >&6
25006 else
25007 gcc_cv_as_shf_merge=no
25008 if test x$gcc_cv_as != x; then
25009 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25012 (eval $ac_try) 2>&5
25013 ac_status=$?
25014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25015 test $ac_status = 0; }; }
25016 then
25017 gcc_cv_as_shf_merge=yes
25018 else
25019 echo "configure: failed program was" >&5
25020 cat conftest.s >&5
25021 fi
25022 rm -f conftest.o conftest.s
25023 fi
25024 fi
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25026 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25027
25028
25029 if test $gcc_cv_as_shf_merge = no; then
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25031 $as_echo_n "checking assembler for section merging support... " >&6; }
25032 if ${gcc_cv_as_shf_merge+:} false; then :
25033 $as_echo_n "(cached) " >&6
25034 else
25035 gcc_cv_as_shf_merge=no
25036 if test x$gcc_cv_as != x; then
25037 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25040 (eval $ac_try) 2>&5
25041 ac_status=$?
25042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25043 test $ac_status = 0; }; }
25044 then
25045 gcc_cv_as_shf_merge=yes
25046 else
25047 echo "configure: failed program was" >&5
25048 cat conftest.s >&5
25049 fi
25050 rm -f conftest.o conftest.s
25051 fi
25052 fi
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25054 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25055
25056
25057 fi
25058
25059 cat >>confdefs.h <<_ACEOF
25060 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25061 _ACEOF
25062
25063
25064 gcc_cv_ld_aligned_shf_merge=yes
25065 case "$target" in
25066 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25067 # alignment > 1.
25068 sparc*-*-solaris2.11*)
25069 if test x"$gnu_ld" = xno \
25070 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25071 gcc_cv_ld_aligned_shf_merge=no
25072 fi
25073 ;;
25074 esac
25075
25076 cat >>confdefs.h <<_ACEOF
25077 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25078 _ACEOF
25079
25080
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
25082 $as_echo_n "checking assembler for stabs directive... " >&6; }
25083 if ${gcc_cv_as_stabs_directive+:} false; then :
25084 $as_echo_n "(cached) " >&6
25085 else
25086 gcc_cv_as_stabs_directive=no
25087 if test x$gcc_cv_as != x; then
25088 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
25089 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25091 (eval $ac_try) 2>&5
25092 ac_status=$?
25093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25094 test $ac_status = 0; }; }
25095 then
25096 gcc_cv_as_stabs_directive=yes
25097 else
25098 echo "configure: failed program was" >&5
25099 cat conftest.s >&5
25100 fi
25101 rm -f conftest.o conftest.s
25102 fi
25103 fi
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
25105 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
25106 if test $gcc_cv_as_stabs_directive = yes; then
25107
25108 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
25109
25110 fi
25111
25112
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25114 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25115 if ${gcc_cv_as_comdat_group+:} false; then :
25116 $as_echo_n "(cached) " >&6
25117 else
25118 gcc_cv_as_comdat_group=no
25119 if test x$gcc_cv_as != x; then
25120 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25123 (eval $ac_try) 2>&5
25124 ac_status=$?
25125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25126 test $ac_status = 0; }; }
25127 then
25128 gcc_cv_as_comdat_group=yes
25129 else
25130 echo "configure: failed program was" >&5
25131 cat conftest.s >&5
25132 fi
25133 rm -f conftest.o conftest.s
25134 fi
25135 fi
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25137 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25138
25139
25140 if test $gcc_cv_as_comdat_group = yes; then
25141 gcc_cv_as_comdat_group_percent=no
25142 gcc_cv_as_comdat_group_group=no
25143 else
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25145 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25146 if ${gcc_cv_as_comdat_group_percent+:} false; then :
25147 $as_echo_n "(cached) " >&6
25148 else
25149 gcc_cv_as_comdat_group_percent=no
25150 if test x$gcc_cv_as != x; then
25151 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25154 (eval $ac_try) 2>&5
25155 ac_status=$?
25156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25157 test $ac_status = 0; }; }
25158 then
25159 gcc_cv_as_comdat_group_percent=yes
25160 else
25161 echo "configure: failed program was" >&5
25162 cat conftest.s >&5
25163 fi
25164 rm -f conftest.o conftest.s
25165 fi
25166 fi
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25168 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25169
25170
25171 if test $gcc_cv_as_comdat_group_percent = yes; then
25172 gcc_cv_as_comdat_group_group=no
25173 else
25174 case "${target}" in
25175 # Sun as uses a completely different syntax.
25176 *-*-solaris2*)
25177 case "${target}" in
25178 sparc*-*-solaris2*)
25179 conftest_s='
25180 .group foo,".text%foo",#comdat
25181 .section ".text%foo", #alloc,#execinstr,#progbits
25182 .globl foo
25183 foo:
25184 '
25185 ;;
25186 i?86-*-solaris2* | x86_64-*-solaris2*)
25187 conftest_s='
25188 .group foo,.text%foo,#comdat
25189 .section .text%foo, "ax", @progbits
25190 .globl foo
25191 foo:
25192 '
25193 ;;
25194 esac
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25196 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25197 if ${gcc_cv_as_comdat_group_group+:} false; then :
25198 $as_echo_n "(cached) " >&6
25199 else
25200 gcc_cv_as_comdat_group_group=no
25201 if test x$gcc_cv_as != x; then
25202 $as_echo "$conftest_s" > conftest.s
25203 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25205 (eval $ac_try) 2>&5
25206 ac_status=$?
25207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25208 test $ac_status = 0; }; }
25209 then
25210 gcc_cv_as_comdat_group_group=yes
25211 else
25212 echo "configure: failed program was" >&5
25213 cat conftest.s >&5
25214 fi
25215 rm -f conftest.o conftest.s
25216 fi
25217 fi
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25219 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25220
25221
25222 ;;
25223 esac
25224 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25225 gcc_cv_as_comdat_group_group=no
25226 fi
25227 fi
25228 fi
25229 if test x"$ld_is_gold" = xyes; then
25230 comdat_group=yes
25231 elif test x"$ld_is_mold" = xyes; then
25232 comdat_group=yes
25233 elif test $in_tree_ld = yes ; then
25234 comdat_group=no
25235 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 \
25236 && test $in_tree_ld_is_elf = yes; then
25237 comdat_group=yes
25238 fi
25239 elif echo "$ld_ver" | grep GNU > /dev/null; then
25240 comdat_group=yes
25241 if test 0"$ld_date" -lt 20050308; then
25242 if test -n "$ld_date"; then
25243 # If there was date string, but was earlier than 2005-03-08, fail
25244 comdat_group=no
25245 elif test "$ld_vers_major" -lt 2; then
25246 comdat_group=no
25247 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25248 comdat_group=no
25249 fi
25250 fi
25251 else
25252 case "${target}" in
25253 *-*-solaris2.1[1-9]*)
25254 comdat_group=no
25255 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25256 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25257 # version 1.688.
25258 #
25259 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25260 # least ld version 1.2267.
25261 if test "$ld_vers_major" -gt 1; then
25262 comdat_group=yes
25263 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25264 comdat_group=yes
25265 elif test "$ld_vers_minor" -ge 2267; then
25266 comdat_group=yes
25267 fi
25268 ;;
25269 *)
25270 # Assume linkers other than GNU ld don't support COMDAT group.
25271 comdat_group=no
25272 ;;
25273 esac
25274 fi
25275 # Allow overriding the automatic COMDAT group tests above.
25276 # Check whether --enable-comdat was given.
25277 if test "${enable_comdat+set}" = set; then :
25278 enableval=$enable_comdat; comdat_group="$enable_comdat"
25279 fi
25280
25281 if test $comdat_group = no; then
25282 gcc_cv_as_comdat_group=no
25283 gcc_cv_as_comdat_group_percent=no
25284 gcc_cv_as_comdat_group_group=no
25285 fi
25286
25287 cat >>confdefs.h <<_ACEOF
25288 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25289 || test $gcc_cv_as_comdat_group_percent = yes \
25290 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25291 _ACEOF
25292
25293
25294 # Restrict this test to Solaris/x86: other targets define this statically.
25295 case "${target}" in
25296 i?86-*-solaris2* | x86_64-*-solaris2*)
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25298 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25299 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25300 hidden_linkonce=yes
25301 else
25302 case "${target}" in
25303 # Full support for hidden thunks in linkonce sections only appeared in
25304 # Solaris 11/OpenSolaris.
25305 *-*-solaris2.1[1-9]*)
25306 hidden_linkonce=yes
25307 ;;
25308 *)
25309 hidden_linkonce=no
25310 ;;
25311 esac
25312 fi
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25314 $as_echo "$hidden_linkonce" >&6; }
25315
25316 cat >>confdefs.h <<_ACEOF
25317 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25318 _ACEOF
25319
25320 ;;
25321 esac
25322
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25324 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25325 if ${gcc_cv_as_is_stmt+:} false; then :
25326 $as_echo_n "(cached) " >&6
25327 else
25328 gcc_cv_as_is_stmt=no
25329 if test x$gcc_cv_as != x; then
25330 $as_echo ' .text
25331 .file 1 "conf.c"
25332 .loc 1 1 0 is_stmt 1' > conftest.s
25333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25335 (eval $ac_try) 2>&5
25336 ac_status=$?
25337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25338 test $ac_status = 0; }; }
25339 then
25340 gcc_cv_as_is_stmt=yes
25341 else
25342 echo "configure: failed program was" >&5
25343 cat conftest.s >&5
25344 fi
25345 rm -f conftest.o conftest.s
25346 fi
25347 fi
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25349 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25350 if test $gcc_cv_as_is_stmt = yes; then
25351
25352 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25353
25354 fi
25355
25356
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25358 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25359 if ${gcc_cv_as_discriminator+:} false; then :
25360 $as_echo_n "(cached) " >&6
25361 else
25362 gcc_cv_as_discriminator=no
25363 if test x$gcc_cv_as != x; then
25364 $as_echo ' .text
25365 .file 1 "conf.c"
25366 .loc 1 1 0 discriminator 1' > conftest.s
25367 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25369 (eval $ac_try) 2>&5
25370 ac_status=$?
25371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25372 test $ac_status = 0; }; }
25373 then
25374 gcc_cv_as_discriminator=yes
25375 else
25376 echo "configure: failed program was" >&5
25377 cat conftest.s >&5
25378 fi
25379 rm -f conftest.o conftest.s
25380 fi
25381 fi
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25383 $as_echo "$gcc_cv_as_discriminator" >&6; }
25384 if test $gcc_cv_as_discriminator = yes; then
25385
25386 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25387
25388 fi
25389
25390
25391 # Catch the newlib flag of the same name so we can gate GCC features on it.
25392 # Check whether --enable-newlib-nano-formatted-io was given.
25393 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25394 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25395 yes|no)
25396 ;;
25397 *)
25398 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25399 ;;
25400 esac
25401 fi
25402
25403
25404 # Thread-local storage - the check is heavily parameterized.
25405 conftest_s=
25406 tls_as_opt=
25407 case "$target" in
25408 alpha*-*-*)
25409 conftest_s='
25410 .section ".tdata","awT",@progbits
25411 foo: .long 25
25412 .text
25413 ldq $27,__tls_get_addr($29) !literal!1
25414 lda $16,foo($29) !tlsgd!1
25415 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25416 ldq $27,__tls_get_addr($29) !literal!2
25417 lda $16,foo($29) !tlsldm!2
25418 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25419 ldq $1,foo($29) !gotdtprel
25420 ldah $2,foo($29) !dtprelhi
25421 lda $3,foo($2) !dtprello
25422 lda $4,foo($29) !dtprel
25423 ldq $1,foo($29) !gottprel
25424 ldah $2,foo($29) !tprelhi
25425 lda $3,foo($2) !tprello
25426 lda $4,foo($29) !tprel'
25427 tls_as_opt=--fatal-warnings
25428 ;;
25429 arc*-*-*)
25430 conftest_s='
25431 add_s r0,r0, @foo@tpoff'
25432 ;;
25433 cris-*-*|crisv32-*-*)
25434 conftest_s='
25435 .section ".tdata","awT",@progbits
25436 x: .long 25
25437 .text
25438 move.d x:IE,$r10
25439 nop'
25440 tls_as_opt=--fatal-warnings
25441 ;;
25442 frv*-*-*)
25443 conftest_s='
25444 .section ".tdata","awT",@progbits
25445 x: .long 25
25446 .text
25447 call #gettlsoff(x)'
25448 ;;
25449 hppa*-*-linux*)
25450 conftest_s='
25451 t1: .reg %r20
25452 t2: .reg %r21
25453 gp: .reg %r19
25454 .section ".tdata","awT",@progbits
25455 foo: .long 25
25456 .text
25457 .align 4
25458 addil LT%foo-$tls_gdidx$,gp
25459 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25460 b __tls_get_addr
25461 nop
25462 addil LT%foo-$tls_ldidx$,gp
25463 b __tls_get_addr
25464 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25465 addil LR%foo-$tls_dtpoff$,%ret0
25466 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25467 mfctl %cr27,%t1
25468 addil LT%foo-$tls_ieoff$,gp
25469 ldw RT%foo-$tls_ieoff$(%r1),%t2
25470 add %t1,%t2,%t3
25471 mfctl %cr27,%t1
25472 addil LR%foo-$tls_leoff$,%t1
25473 ldo RR%foo-$tls_leoff$(%r1),%t2'
25474 tls_as_opt=--fatal-warnings
25475 ;;
25476 arm*-*-*)
25477 conftest_s='
25478 .section ".tdata","awT",%progbits
25479 foo: .long 25
25480 .text
25481 .word foo(gottpoff)
25482 .word foo(tpoff)
25483 .word foo(tlsgd)
25484 .word foo(tlsldm)
25485 .word foo(tlsldo)'
25486 ;;
25487 i[34567]86-*-* | x86_64-*-*)
25488 case "$target" in
25489 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25490 on_solaris=yes
25491 ;;
25492 *)
25493 on_solaris=no
25494 ;;
25495 esac
25496 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25497 conftest_s='
25498 .section .tdata,"awt",@progbits'
25499 tls_section_flag=t
25500
25501 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25502
25503 else
25504 conftest_s='
25505 .section ".tdata","awT",@progbits'
25506 tls_section_flag=T
25507 tls_as_opt="--fatal-warnings"
25508 fi
25509 case "$target" in
25510 i[34567]86-*-*)
25511 if test x$on_solaris = xyes; then
25512 case $gas_flag in
25513 yes) tls_as_opt="$tls_as_opt --32" ;;
25514 esac
25515 fi
25516 conftest_s="$conftest_s
25517 foo: .long 25
25518 .text
25519 movl %gs:0, %eax
25520 leal foo@tlsgd(,%ebx,1), %eax
25521 leal foo@tlsldm(%ebx), %eax
25522 leal foo@dtpoff(%eax), %edx
25523 movl foo@gottpoff(%ebx), %eax
25524 subl foo@gottpoff(%ebx), %eax
25525 addl foo@gotntpoff(%ebx), %eax
25526 movl foo@indntpoff, %eax
25527 movl \$foo@tpoff, %eax
25528 subl \$foo@tpoff, %eax
25529 leal foo@ntpoff(%ecx), %eax"
25530 ;;
25531 x86_64-*-*)
25532 if test x$on_solaris = xyes; then
25533 case $gas_flag in
25534 yes) tls_as_opt="$tls_as_opt --64" ;;
25535 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25536 esac
25537 fi
25538 conftest_s="$conftest_s
25539 foo: .long 25
25540 .text
25541 movq %fs:0, %rax
25542 leaq foo@tlsgd(%rip), %rdi
25543 leaq foo@tlsld(%rip), %rdi
25544 leaq foo@dtpoff(%rax), %rdx
25545 movq foo@gottpoff(%rip), %rax
25546 movq \$foo@tpoff, %rax"
25547 ;;
25548 esac
25549 ;;
25550 ia64-*-*)
25551 conftest_s='
25552 .section ".tdata","awT",@progbits
25553 foo: data8 25
25554 .text
25555 addl r16 = @ltoff(@dtpmod(foo#)), gp
25556 addl r17 = @ltoff(@dtprel(foo#)), gp
25557 addl r18 = @ltoff(@tprel(foo#)), gp
25558 addl r19 = @dtprel(foo#), gp
25559 adds r21 = @dtprel(foo#), r13
25560 movl r23 = @dtprel(foo#)
25561 addl r20 = @tprel(foo#), gp
25562 adds r22 = @tprel(foo#), r13
25563 movl r24 = @tprel(foo#)'
25564 tls_as_opt=--fatal-warnings
25565 ;;
25566 loongarch*-*-*)
25567 conftest_s='
25568 .section .tdata,"awT",@progbits
25569 x: .word 2
25570 .text
25571 la.tls.gd $a0,x
25572 bl __tls_get_addr'
25573 tls_first_major=0
25574 tls_first_minor=0
25575 tls_as_opt='--fatal-warnings'
25576 ;;
25577 microblaze*-*-*)
25578 conftest_s='
25579 .section .tdata,"awT",@progbits
25580 x:
25581 .word 2
25582 .text
25583 addik r5,r20,x@TLSGD
25584 addik r5,r20,x@TLSLDM'
25585 tls_as_opt='--fatal-warnings'
25586 ;;
25587 mips*-*-*)
25588 conftest_s='
25589 .section .tdata,"awT",@progbits
25590 x:
25591 .word 2
25592 .text
25593 addiu $4, $28, %tlsgd(x)
25594 addiu $4, $28, %tlsldm(x)
25595 lui $4, %dtprel_hi(x)
25596 addiu $4, $4, %dtprel_lo(x)
25597 lw $4, %gottprel(x)($28)
25598 lui $4, %tprel_hi(x)
25599 addiu $4, $4, %tprel_lo(x)'
25600 tls_as_opt='-32 --fatal-warnings'
25601 ;;
25602 m68k-*-*)
25603 conftest_s='
25604 .section .tdata,"awT",@progbits
25605 x:
25606 .word 2
25607 .text
25608 foo:
25609 move.l x@TLSGD(%a5),%a0
25610 move.l x@TLSLDM(%a5),%a0
25611 move.l x@TLSLDO(%a5),%a0
25612 move.l x@TLSIE(%a5),%a0
25613 move.l x@TLSLE(%a5),%a0'
25614 tls_as_opt='--fatal-warnings'
25615 ;;
25616 nios2-*-*)
25617 conftest_s='
25618 .section ".tdata","awT",@progbits'
25619 tls_as_opt="--fatal-warnings"
25620 ;;
25621 aarch64*-*-*)
25622 conftest_s='
25623 .section ".tdata","awT",%progbits
25624 foo: .long 25
25625 .text
25626 adrp x0, :tlsgd:x
25627 add x0, x0, #:tlsgd_lo12:x
25628 bl __tls_get_addr
25629 nop'
25630 tls_as_opt='--fatal-warnings'
25631 ;;
25632 or1k*-*-*)
25633 conftest_s='
25634 .section ".tdata","awT",@progbits
25635 foo: .long 25
25636 .text
25637 l.movhi r3, tpoffha(foo)
25638 l.add r3, r3, r10
25639 l.lwz r4, tpofflo(foo)(r3)'
25640 tls_as_opt=--fatal-warnings
25641 ;;
25642 powerpc-ibm-aix*)
25643 conftest_s='
25644 .extern __get_tpointer
25645 .toc
25646 LC..1:
25647 .tc a[TC],a[TL]@le
25648 .csect .text[PR]
25649 .tlstest:
25650 lwz 9,LC..1(2)
25651 bla __get_tpointer
25652 lwzx 3,9,3
25653 .globl a
25654 .csect a[TL],4
25655 a:
25656 .space 4'
25657 ;;
25658 powerpc64*-*-*)
25659 conftest_s='
25660 .section ".tdata","awT",@progbits
25661 .align 3
25662 ld0: .space 8
25663 ld1: .space 8
25664 x1: .space 8
25665 x2: .space 8
25666 x3: .space 8
25667 .text
25668 addi 3,2,ld0@got@tlsgd
25669 bl .__tls_get_addr
25670 nop
25671 addi 3,2,ld1@toc
25672 bl .__tls_get_addr
25673 nop
25674 addi 3,2,x1@got@tlsld
25675 bl .__tls_get_addr
25676 nop
25677 addi 9,3,x1@dtprel
25678 bl .__tls_get_addr
25679 nop
25680 addis 9,3,x2@dtprel@ha
25681 addi 9,9,x2@dtprel@l
25682 bl .__tls_get_addr
25683 nop
25684 ld 9,x3@got@dtprel(2)
25685 add 9,9,3
25686 bl .__tls_get_addr
25687 nop'
25688 tls_as_opt="-a64 --fatal-warnings"
25689 ;;
25690 powerpc*-*-*)
25691 conftest_s='
25692 .section ".tdata","awT",@progbits
25693 .align 2
25694 ld0: .space 4
25695 ld1: .space 4
25696 x1: .space 4
25697 x2: .space 4
25698 x3: .space 4
25699 .text
25700 addi 3,31,ld0@got@tlsgd
25701 bl __tls_get_addr
25702 addi 3,31,x1@got@tlsld
25703 bl __tls_get_addr
25704 addi 9,3,x1@dtprel
25705 addis 9,3,x2@dtprel@ha
25706 addi 9,9,x2@dtprel@l
25707 lwz 9,x3@got@tprel(31)
25708 add 9,9,x@tls
25709 addi 9,2,x1@tprel
25710 addis 9,2,x2@tprel@ha
25711 addi 9,9,x2@tprel@l'
25712 tls_as_opt="-a32 --fatal-warnings"
25713 ;;
25714 riscv*-*-*)
25715 conftest_s='
25716 .section .tdata,"awT",@progbits
25717 x: .word 2
25718 .text
25719 la.tls.gd a0,x
25720 call __tls_get_addr'
25721 tls_as_opt='--fatal-warnings'
25722 ;;
25723 s390-*-*)
25724 conftest_s='
25725 .section ".tdata","awT",@progbits
25726 foo: .long 25
25727 .text
25728 .long foo@TLSGD
25729 .long foo@TLSLDM
25730 .long foo@DTPOFF
25731 .long foo@NTPOFF
25732 .long foo@GOTNTPOFF
25733 .long foo@INDNTPOFF
25734 l %r1,foo@GOTNTPOFF(%r12)
25735 l %r1,0(%r1):tls_load:foo
25736 bas %r14,0(%r1,%r13):tls_gdcall:foo
25737 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25738 tls_as_opt="-m31 --fatal-warnings"
25739 ;;
25740 s390x-*-*)
25741 conftest_s='
25742 .section ".tdata","awT",@progbits
25743 foo: .long 25
25744 .text
25745 .quad foo@TLSGD
25746 .quad foo@TLSLDM
25747 .quad foo@DTPOFF
25748 .quad foo@NTPOFF
25749 .quad foo@GOTNTPOFF
25750 lg %r1,foo@GOTNTPOFF(%r12)
25751 larl %r1,foo@INDNTPOFF
25752 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25753 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25754 tls_as_opt="-m64 -Aesame --fatal-warnings"
25755 ;;
25756 sh-*-* | sh[123456789lbe]*-*-*)
25757 conftest_s='
25758 .section ".tdata","awT",@progbits
25759 foo: .long 25
25760 .text
25761 .long foo@TLSGD
25762 .long foo@TLSLDM
25763 .long foo@DTPOFF
25764 .long foo@GOTTPOFF
25765 .long foo@TPOFF'
25766 tls_as_opt=--fatal-warnings
25767 ;;
25768 sparc*-*-*)
25769 case "$target" in
25770 sparc*-sun-solaris2.*)
25771 on_solaris=yes
25772 ;;
25773 *)
25774 on_solaris=no
25775 ;;
25776 esac
25777 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25778 conftest_s='
25779 .section ".tdata",#alloc,#write,#tls'
25780 else
25781 conftest_s='
25782 .section ".tdata","awT",@progbits'
25783 tls_as_opt="-32 --fatal-warnings"
25784 fi
25785 conftest_s="$conftest_s
25786 foo: .long 25
25787 .text
25788 sethi %tgd_hi22(foo), %o0
25789 add %o0, %tgd_lo10(foo), %o1
25790 add %l7, %o1, %o0, %tgd_add(foo)
25791 call __tls_get_addr, %tgd_call(foo)
25792 sethi %tldm_hi22(foo), %l1
25793 add %l1, %tldm_lo10(foo), %l2
25794 add %l7, %l2, %o0, %tldm_add(foo)
25795 call __tls_get_addr, %tldm_call(foo)
25796 sethi %tldo_hix22(foo), %l3
25797 xor %l3, %tldo_lox10(foo), %l4
25798 add %o0, %l4, %l5, %tldo_add(foo)
25799 sethi %tie_hi22(foo), %o3
25800 add %o3, %tie_lo10(foo), %o3
25801 ld [%l7 + %o3], %o2, %tie_ld(foo)
25802 add %g7, %o2, %o4, %tie_add(foo)
25803 sethi %tle_hix22(foo), %l1
25804 xor %l1, %tle_lox10(foo), %o5
25805 ld [%g7 + %o5], %o1"
25806 ;;
25807 xtensa*-*-*)
25808 conftest_s='
25809 .section ".tdata","awT",@progbits
25810 foo: .long 25
25811 .text
25812 movi a8, foo@TLSFUNC
25813 movi a10, foo@TLSARG
25814 callx8.tls a8, foo@TLSCALL'
25815 ;;
25816 esac
25817 set_have_as_tls=no
25818 if test "x$enable_tls" = xno ; then
25819 : # TLS explicitly disabled.
25820 elif test "x$enable_tls" = xyes ; then
25821 set_have_as_tls=yes # TLS explicitly enabled.
25822 elif test -z "$conftest_s"; then
25823 : # If we don't have a check, assume no support.
25824 else
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25826 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25827 if ${gcc_cv_as_tls+:} false; then :
25828 $as_echo_n "(cached) " >&6
25829 else
25830 gcc_cv_as_tls=no
25831 if test x$gcc_cv_as != x; then
25832 $as_echo "$conftest_s" > conftest.s
25833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25835 (eval $ac_try) 2>&5
25836 ac_status=$?
25837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25838 test $ac_status = 0; }; }
25839 then
25840 gcc_cv_as_tls=yes
25841 else
25842 echo "configure: failed program was" >&5
25843 cat conftest.s >&5
25844 fi
25845 rm -f conftest.o conftest.s
25846 fi
25847 fi
25848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25849 $as_echo "$gcc_cv_as_tls" >&6; }
25850 if test $gcc_cv_as_tls = yes; then
25851 set_have_as_tls=yes
25852 fi
25853
25854 fi
25855 if test $set_have_as_tls = yes ; then
25856
25857 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25858
25859 fi
25860
25861 # Target-specific assembler checks.
25862
25863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25864 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25865 gcc_cv_ld_static_dynamic=no
25866 gcc_cv_ld_static_option='-Bstatic'
25867 gcc_cv_ld_dynamic_option='-Bdynamic'
25868 if test $in_tree_ld = yes ; then
25869 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
25870 gcc_cv_ld_static_dynamic=yes
25871 fi
25872 elif test x$gcc_cv_ld != x; then
25873 # Check if linker supports -Bstatic/-Bdynamic option
25874 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25875 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25876 gcc_cv_ld_static_dynamic=yes
25877 else
25878 case "$target" in
25879 # AIX ld uses -b flags
25880 *-*-aix4.[23]* | *-*-aix[5-9]*)
25881 gcc_cv_ld_static_dynamic=yes
25882 gcc_cv_ld_static_option="-bstatic"
25883 gcc_cv_ld_dynamic_option="-bdynamic"
25884 ;;
25885 # HP-UX ld uses -a flags to select between shared and archive.
25886 *-*-hpux*)
25887 if test x"$gnu_ld" = xno; then
25888 gcc_cv_ld_static_dynamic=yes
25889 gcc_cv_ld_static_option="-aarchive_shared"
25890 gcc_cv_ld_dynamic_option="-adefault"
25891 fi
25892 ;;
25893 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25894 *-*-solaris2*)
25895 gcc_cv_ld_static_dynamic=yes
25896 ;;
25897 esac
25898 fi
25899 fi
25900 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25901
25902 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25903
25904
25905 cat >>confdefs.h <<_ACEOF
25906 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25907 _ACEOF
25908
25909
25910 cat >>confdefs.h <<_ACEOF
25911 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25912 _ACEOF
25913
25914 fi
25915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25916 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25917
25918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25919 $as_echo_n "checking linker --version-script option... " >&6; }
25920 gcc_cv_ld_version_script=no
25921 ld_version_script_option=''
25922 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25923 gcc_cv_ld_version_script=yes
25924 ld_version_script_option='--version-script'
25925 elif test x$gcc_cv_ld != x; then
25926 case "$target" in
25927 # Solaris 2 ld always supports -M. It also supports a subset of
25928 # --version-script since Solaris 11.4, but requires
25929 # -z gnu-version-script-compat to activate.
25930 *-*-solaris2*)
25931 gcc_cv_ld_version_script=yes
25932 ld_version_script_option='-M'
25933 ;;
25934 esac
25935 fi
25936 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25938 $as_echo "$gcc_cv_ld_version_script" >&6; }
25939
25940
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25942 $as_echo_n "checking linker soname option... " >&6; }
25943 gcc_cv_ld_soname=no
25944 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25945 gcc_cv_ld_soname=yes
25946 ld_soname_option='-soname'
25947 elif test x$gcc_cv_ld != x; then
25948 case "$target" in
25949 *-*-darwin*)
25950 gcc_cv_ld_soname=yes
25951 ld_soname_option='-install_name'
25952 ;;
25953 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25954 # ld compatiblity since some Solaris 10 update.
25955 *-*-solaris2*)
25956 gcc_cv_ld_soname=yes
25957 ld_soname_option='-h'
25958 ;;
25959 esac
25960 fi
25961 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25963 $as_echo "$gcc_cv_ld_soname" >&6; }
25964
25965
25966 if test x"$demangler_in_ld" = xyes; then
25967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25968 $as_echo_n "checking linker --demangle support... " >&6; }
25969 gcc_cv_ld_demangle=no
25970 if test $in_tree_ld = yes; then
25971 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 \
25972 gcc_cv_ld_demangle=yes
25973 fi
25974 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25975 # Check if the GNU linker supports --demangle option
25976 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25977 gcc_cv_ld_demangle=yes
25978 fi
25979 fi
25980 if test x"$gcc_cv_ld_demangle" = xyes; then
25981
25982 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25983
25984 fi
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25986 $as_echo "$gcc_cv_ld_demangle" >&6; }
25987 fi
25988
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25990 $as_echo_n "checking linker plugin support... " >&6; }
25991 gcc_cv_lto_plugin=0
25992 if test -f liblto_plugin.la; then
25993 save_ld_ver="$ld_ver"
25994 save_ld_vers_major="$ld_vers_major"
25995 save_ld_vers_minor="$ld_vers_minor"
25996 save_ld_is_gold="$ld_is_gold"
25997
25998 ld_is_gold=no
25999
26000 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
26001 ld_ver="GNU ld"
26002 # FIXME: ld_is_gold?
26003 ld_vers_major="$gcc_cv_gld_major_version"
26004 ld_vers_minor="$gcc_cv_gld_minor_version"
26005 else
26006 # Determine plugin linker version.
26007 # FIXME: Partial duplicate from above, generalize.
26008 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26009 if echo "$ld_ver" | grep GNU > /dev/null; then
26010 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
26011 ld_is_gold=yes
26012 ld_vers=`echo $ld_ver | sed -n \
26013 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26014 else
26015 ld_vers=`echo $ld_ver | sed -n \
26016 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26017 fi
26018 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26019 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26020 fi
26021 fi
26022
26023 # Determine plugin support.
26024 if echo "$ld_ver" | grep GNU > /dev/null; then
26025 # Require GNU ld or gold 2.21+ for plugin support by default.
26026 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26027 gcc_cv_lto_plugin=2
26028 elif test "$ld_is_mold" = yes; then
26029 gcc_cv_lto_plugin=2
26030 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26031 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26032 gcc_cv_lto_plugin=1
26033 fi
26034 fi
26035
26036 ld_ver="$save_ld_ver"
26037 ld_vers_major="$save_ld_vers_major"
26038 ld_vers_minor="$save_ld_vers_minor"
26039 ld_is_gold="$save_ld_is_gold"
26040 fi
26041
26042 cat >>confdefs.h <<_ACEOF
26043 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26044 _ACEOF
26045
26046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26047 $as_echo "$gcc_cv_lto_plugin" >&6; }
26048
26049 # Target OS-specific assembler checks.
26050
26051 case "$target_os" in
26052 darwin*)
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26054 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26055 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
26056 $as_echo_n "(cached) " >&6
26057 else
26058 gcc_cv_as_mmacosx_version_min=no
26059 if test x$gcc_cv_as != x; then
26060 $as_echo '.text' > conftest.s
26061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26063 (eval $ac_try) 2>&5
26064 ac_status=$?
26065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26066 test $ac_status = 0; }; }
26067 then
26068 gcc_cv_as_mmacosx_version_min=yes
26069 else
26070 echo "configure: failed program was" >&5
26071 cat conftest.s >&5
26072 fi
26073 rm -f conftest.o conftest.s
26074 fi
26075 fi
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26077 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26078 if test $gcc_cv_as_mmacosx_version_min = yes; then
26079
26080 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26081
26082 fi
26083
26084 ;;
26085 esac
26086
26087 # Target CPU-specific assembler checks.
26088
26089 case "$target" in
26090 aarch64*-*-*)
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26092 $as_echo_n "checking assembler for -mabi option... " >&6; }
26093 if ${gcc_cv_as_aarch64_mabi+:} false; then :
26094 $as_echo_n "(cached) " >&6
26095 else
26096 gcc_cv_as_aarch64_mabi=no
26097 if test x$gcc_cv_as != x; then
26098 $as_echo '.text' > conftest.s
26099 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26101 (eval $ac_try) 2>&5
26102 ac_status=$?
26103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26104 test $ac_status = 0; }; }
26105 then
26106 gcc_cv_as_aarch64_mabi=yes
26107 else
26108 echo "configure: failed program was" >&5
26109 cat conftest.s >&5
26110 fi
26111 rm -f conftest.o conftest.s
26112 fi
26113 fi
26114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26115 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26116
26117
26118 if test x$gcc_cv_as_aarch64_mabi = xyes; then
26119
26120 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26121
26122 else
26123 if test x$with_abi = xilp32; then
26124 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26125 Upgrade the Assembler." "$LINENO" 5
26126 fi
26127 if test x"$with_multilib_list" = xdefault; then
26128 TM_MULTILIB_CONFIG=lp64
26129 else
26130 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
26131 for aarch64_multilib in ${aarch64_multilibs}; do
26132 case ${aarch64_multilib} in
26133 ilp32)
26134 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26135 Upgrade the Assembler." "$LINENO" 5
26136 ;;
26137 *)
26138 ;;
26139 esac
26140 done
26141 fi
26142 fi
26143 # Check if we have binutils support for relocations types needed by -fpic
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26145 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26146 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
26147 $as_echo_n "(cached) " >&6
26148 else
26149 gcc_cv_as_aarch64_picreloc=no
26150 if test x$gcc_cv_as != x; then
26151 $as_echo '
26152 .text
26153 ldr x0, [x2, #:gotpage_lo15:globalsym]
26154 ' > conftest.s
26155 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26157 (eval $ac_try) 2>&5
26158 ac_status=$?
26159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26160 test $ac_status = 0; }; }
26161 then
26162 gcc_cv_as_aarch64_picreloc=yes
26163 else
26164 echo "configure: failed program was" >&5
26165 cat conftest.s >&5
26166 fi
26167 rm -f conftest.o conftest.s
26168 fi
26169 fi
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26171 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26172 if test $gcc_cv_as_aarch64_picreloc = yes; then
26173
26174 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26175
26176 fi
26177
26178 # Enable Branch Target Identification Mechanism and Return Address
26179 # Signing by default.
26180 # Check whether --enable-standard-branch-protection was given.
26181 if test "${enable_standard_branch_protection+set}" = set; then :
26182 enableval=$enable_standard_branch_protection;
26183 case $enableval in
26184 yes)
26185 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26186 ;;
26187 no)
26188 ;;
26189 *)
26190 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26191 Valid choices are 'yes' and 'no'." "$LINENO" 5
26192 ;;
26193 esac
26194
26195 fi
26196
26197 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26198 # Check whether --enable-fix-cortex-a53-835769 was given.
26199 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26200 enableval=$enable_fix_cortex_a53_835769;
26201 case $enableval in
26202 yes)
26203 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26204 ;;
26205 no)
26206 ;;
26207 *)
26208 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26209 Valid choices are 'yes' and 'no'." "$LINENO" 5
26210 ;;
26211
26212 esac
26213
26214 fi
26215
26216 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26217 # Check whether --enable-fix-cortex-a53-843419 was given.
26218 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26219 enableval=$enable_fix_cortex_a53_843419;
26220 case $enableval in
26221 yes)
26222 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26223 ;;
26224 no)
26225 ;;
26226 *)
26227 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26228 Valid choices are 'yes' and 'no'." "$LINENO" 5
26229 ;;
26230
26231 esac
26232
26233 fi
26234
26235 ;;
26236
26237 # All TARGET_ABI_OSF targets.
26238 alpha*-*-linux* | alpha*-*-*bsd*)
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26240 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26241 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26242 $as_echo_n "(cached) " >&6
26243 else
26244 gcc_cv_as_alpha_explicit_relocs=no
26245 if test x$gcc_cv_as != x; then
26246 $as_echo ' .set nomacro
26247 .text
26248 extbl $3, $2, $3 !lituse_bytoff!1
26249 ldq $2, a($29) !literal!1
26250 ldq $4, b($29) !literal!2
26251 ldq_u $3, 0($2) !lituse_base!1
26252 ldq $27, f($29) !literal!5
26253 jsr $26, ($27), f !lituse_jsr!5
26254 ldah $29, 0($26) !gpdisp!3
26255 lda $0, c($29) !gprel
26256 ldah $1, d($29) !gprelhigh
26257 lda $1, d($1) !gprellow
26258 lda $29, 0($29) !gpdisp!3' > conftest.s
26259 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26261 (eval $ac_try) 2>&5
26262 ac_status=$?
26263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26264 test $ac_status = 0; }; }
26265 then
26266 gcc_cv_as_alpha_explicit_relocs=yes
26267 else
26268 echo "configure: failed program was" >&5
26269 cat conftest.s >&5
26270 fi
26271 rm -f conftest.o conftest.s
26272 fi
26273 fi
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26275 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26276 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26277
26278 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26279
26280 fi
26281
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26283 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26284 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26285 $as_echo_n "(cached) " >&6
26286 else
26287 gcc_cv_as_alpha_jsrdirect_relocs=no
26288 if test x$gcc_cv_as != x; then
26289 $as_echo ' .set nomacro
26290 .text
26291 ldq $27, a($29) !literal!1
26292 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26293 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26295 (eval $ac_try) 2>&5
26296 ac_status=$?
26297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26298 test $ac_status = 0; }; }
26299 then
26300 gcc_cv_as_alpha_jsrdirect_relocs=yes
26301 else
26302 echo "configure: failed program was" >&5
26303 cat conftest.s >&5
26304 fi
26305 rm -f conftest.o conftest.s
26306 fi
26307 fi
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26309 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26310 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26311
26312 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26313
26314 fi
26315
26316 ;;
26317
26318 avr-*-*)
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26320 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26321 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26322 $as_echo_n "(cached) " >&6
26323 else
26324 gcc_cv_as_avr_mlink_relax=no
26325 if test x$gcc_cv_as != x; then
26326 $as_echo '.text' > conftest.s
26327 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26329 (eval $ac_try) 2>&5
26330 ac_status=$?
26331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26332 test $ac_status = 0; }; }
26333 then
26334 gcc_cv_as_avr_mlink_relax=yes
26335 else
26336 echo "configure: failed program was" >&5
26337 cat conftest.s >&5
26338 fi
26339 rm -f conftest.o conftest.s
26340 fi
26341 fi
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26343 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26344 if test $gcc_cv_as_avr_mlink_relax = yes; then
26345
26346 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26347
26348 fi
26349
26350
26351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26352 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26353 if ${gcc_cv_as_avr_mrmw+:} false; then :
26354 $as_echo_n "(cached) " >&6
26355 else
26356 gcc_cv_as_avr_mrmw=no
26357 if test x$gcc_cv_as != x; then
26358 $as_echo '.text' > conftest.s
26359 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26361 (eval $ac_try) 2>&5
26362 ac_status=$?
26363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26364 test $ac_status = 0; }; }
26365 then
26366 gcc_cv_as_avr_mrmw=yes
26367 else
26368 echo "configure: failed program was" >&5
26369 cat conftest.s >&5
26370 fi
26371 rm -f conftest.o conftest.s
26372 fi
26373 fi
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26375 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26376 if test $gcc_cv_as_avr_mrmw = yes; then
26377
26378 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26379
26380 fi
26381
26382
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26384 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26385 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26386 $as_echo_n "(cached) " >&6
26387 else
26388 gcc_cv_as_avr_mgccisr=no
26389 if test x$gcc_cv_as != x; then
26390 $as_echo '.text
26391 __gcc_isr 1
26392 __gcc_isr 2
26393 __gcc_isr 0,r24
26394 ' > conftest.s
26395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26397 (eval $ac_try) 2>&5
26398 ac_status=$?
26399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26400 test $ac_status = 0; }; }
26401 then
26402 gcc_cv_as_avr_mgccisr=yes
26403 else
26404 echo "configure: failed program was" >&5
26405 cat conftest.s >&5
26406 fi
26407 rm -f conftest.o conftest.s
26408 fi
26409 fi
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26411 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26412 if test $gcc_cv_as_avr_mgccisr = yes; then
26413
26414 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26415
26416 fi
26417
26418
26419 # Check how default linker description file implements .rodata for
26420 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26421 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26423 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26424 cat > conftest.s <<EOF
26425 .section .rodata,"a",@progbits
26426 .global xxvaryy
26427 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26428 xxvaryy:
26429 .word 1
26430 EOF
26431 rm -f conftest.nm
26432 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26434 (eval $ac_try) 2>&5
26435 ac_status=$?
26436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26437 test $ac_status = 0; }; }
26438 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26440 (eval $ac_try) 2>&5
26441 ac_status=$?
26442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26443 test $ac_status = 0; }; }
26444 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26446 (eval $ac_try) 2>&5
26447 ac_status=$?
26448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26449 test $ac_status = 0; }; }
26450 if test -s conftest.nm
26451 then
26452 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26454 $as_echo "yes" >&6; }
26455
26456 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26457
26458 else
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26460 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26461 echo "$as_me: nm output was" >&5
26462 cat conftest.nm >&5
26463 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26464 { $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
26465 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26466 fi
26467 else
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26469 $as_echo "test failed" >&6; }
26470 echo "$as_me: failed program was" >&5
26471 cat conftest.s >&5
26472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26473 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26474 fi
26475 rm -f conftest.s conftest.o conftest.elf conftest.nm
26476 ;;
26477
26478 cris-*-*)
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26480 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26481 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26482 $as_echo_n "(cached) " >&6
26483 else
26484 gcc_cv_as_cris_no_mul_bug=no
26485 if test x$gcc_cv_as != x; then
26486 $as_echo '.text' > conftest.s
26487 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26489 (eval $ac_try) 2>&5
26490 ac_status=$?
26491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26492 test $ac_status = 0; }; }
26493 then
26494 gcc_cv_as_cris_no_mul_bug=yes
26495 else
26496 echo "configure: failed program was" >&5
26497 cat conftest.s >&5
26498 fi
26499 rm -f conftest.o conftest.s
26500 fi
26501 fi
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26503 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26504 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26505
26506 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26507
26508 fi
26509
26510 ;;
26511
26512 sparc*-*-*)
26513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26514 $as_echo_n "checking assembler for -relax option... " >&6; }
26515 if ${gcc_cv_as_sparc_relax+:} false; then :
26516 $as_echo_n "(cached) " >&6
26517 else
26518 gcc_cv_as_sparc_relax=no
26519 if test x$gcc_cv_as != x; then
26520 $as_echo '.text' > conftest.s
26521 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26523 (eval $ac_try) 2>&5
26524 ac_status=$?
26525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26526 test $ac_status = 0; }; }
26527 then
26528 gcc_cv_as_sparc_relax=yes
26529 else
26530 echo "configure: failed program was" >&5
26531 cat conftest.s >&5
26532 fi
26533 rm -f conftest.o conftest.s
26534 fi
26535 fi
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26537 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26538 if test $gcc_cv_as_sparc_relax = yes; then
26539
26540 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26541
26542 fi
26543
26544
26545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26546 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26547 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26548 $as_echo_n "(cached) " >&6
26549 else
26550 gcc_cv_as_sparc_gotdata_op=no
26551 if test x$gcc_cv_as != x; then
26552 $as_echo '.text
26553 .align 4
26554 foo:
26555 nop
26556 bar:
26557 sethi %gdop_hix22(foo), %g1
26558 xor %g1, %gdop_lox10(foo), %g1
26559 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26560 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26562 (eval $ac_try) 2>&5
26563 ac_status=$?
26564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26565 test $ac_status = 0; }; }
26566 then
26567 if test x$gcc_cv_ld != x \
26568 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26569 if test x$gcc_cv_objdump != x; then
26570 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26571 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26572 gcc_cv_as_sparc_gotdata_op=no
26573 else
26574 gcc_cv_as_sparc_gotdata_op=yes
26575 fi
26576 fi
26577 fi
26578 rm -f conftest
26579 else
26580 echo "configure: failed program was" >&5
26581 cat conftest.s >&5
26582 fi
26583 rm -f conftest.o conftest.s
26584 fi
26585 fi
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26587 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26588 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26589
26590 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26591
26592 fi
26593
26594
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26596 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26597 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26598 $as_echo_n "(cached) " >&6
26599 else
26600 gcc_cv_as_sparc_ua_pcrel=no
26601 if test x$gcc_cv_as != x; then
26602 $as_echo '.text
26603 foo:
26604 nop
26605 .data
26606 .align 4
26607 .byte 0
26608 .uaword %r_disp32(foo)' > conftest.s
26609 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26611 (eval $ac_try) 2>&5
26612 ac_status=$?
26613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26614 test $ac_status = 0; }; }
26615 then
26616 if test x$gcc_cv_ld != x \
26617 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26618 gcc_cv_as_sparc_ua_pcrel=yes
26619 fi
26620 rm -f conftest
26621 else
26622 echo "configure: failed program was" >&5
26623 cat conftest.s >&5
26624 fi
26625 rm -f conftest.o conftest.s
26626 fi
26627 fi
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26629 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26630 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26631
26632 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26633
26634
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26636 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26637 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26638 $as_echo_n "(cached) " >&6
26639 else
26640 gcc_cv_as_sparc_ua_pcrel_hidden=no
26641 if test x$gcc_cv_as != x; then
26642 $as_echo '.data
26643 .align 4
26644 .byte 0x31
26645 .uaword %r_disp32(foo)
26646 .byte 0x32, 0x33, 0x34
26647 .global foo
26648 .hidden foo
26649 foo:
26650 .skip 4' > conftest.s
26651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26653 (eval $ac_try) 2>&5
26654 ac_status=$?
26655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26656 test $ac_status = 0; }; }
26657 then
26658 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26659 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26660 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26661 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26662 if $gcc_cv_objdump -R conftest 2> /dev/null \
26663 | grep 'DISP32' > /dev/null 2>&1; then
26664 :
26665 else
26666 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26667 fi
26668 fi
26669 rm -f conftest
26670 else
26671 echo "configure: failed program was" >&5
26672 cat conftest.s >&5
26673 fi
26674 rm -f conftest.o conftest.s
26675 fi
26676 fi
26677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26678 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26679 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26680
26681 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26682
26683 fi
26684
26685
26686 fi
26687 # unaligned pcrel relocs
26688
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26690 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26691 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26692 $as_echo_n "(cached) " >&6
26693 else
26694 gcc_cv_as_sparc_offsetable_lo10=no
26695 if test x$gcc_cv_as != x; then
26696 $as_echo '.text
26697 or %g1, %lo(ab) + 12, %g1
26698 or %g1, %lo(ab + 12), %g1' > conftest.s
26699 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26701 (eval $ac_try) 2>&5
26702 ac_status=$?
26703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26704 test $ac_status = 0; }; }
26705 then
26706 if test x$gcc_cv_objdump != x \
26707 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26708 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26709 gcc_cv_as_sparc_offsetable_lo10=yes
26710 fi
26711 else
26712 echo "configure: failed program was" >&5
26713 cat conftest.s >&5
26714 fi
26715 rm -f conftest.o conftest.s
26716 fi
26717 fi
26718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26719 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26720 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26721
26722 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26723
26724 fi
26725
26726
26727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26728 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26729 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26730 $as_echo_n "(cached) " >&6
26731 else
26732 gcc_cv_as_sparc_fmaf=no
26733 if test x$gcc_cv_as != x; then
26734 $as_echo '.text
26735 .register %g2, #scratch
26736 .register %g3, #scratch
26737 .align 4
26738 fmaddd %f0, %f2, %f4, %f6
26739 addxccc %g1, %g2, %g3
26740 fsrl32 %f2, %f4, %f8
26741 fnaddd %f10, %f12, %f14' > conftest.s
26742 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26744 (eval $ac_try) 2>&5
26745 ac_status=$?
26746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26747 test $ac_status = 0; }; }
26748 then
26749 gcc_cv_as_sparc_fmaf=yes
26750 else
26751 echo "configure: failed program was" >&5
26752 cat conftest.s >&5
26753 fi
26754 rm -f conftest.o conftest.s
26755 fi
26756 fi
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26758 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26759 if test $gcc_cv_as_sparc_fmaf = yes; then
26760
26761 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26762
26763 fi
26764
26765
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26767 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26768 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26769 $as_echo_n "(cached) " >&6
26770 else
26771 gcc_cv_as_sparc_sparc4=no
26772 if test x$gcc_cv_as != x; then
26773 $as_echo '.text
26774 .register %g2, #scratch
26775 .register %g3, #scratch
26776 .align 4
26777 cxbe %g2, %g3, 1f
26778 1: cwbneg %g2, %g3, 1f
26779 1: sha1
26780 md5
26781 aes_kexpand0 %f4, %f6, %f8
26782 des_round %f38, %f40, %f42, %f44
26783 camellia_f %f54, %f56, %f58, %f60
26784 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26785 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26787 (eval $ac_try) 2>&5
26788 ac_status=$?
26789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26790 test $ac_status = 0; }; }
26791 then
26792 gcc_cv_as_sparc_sparc4=yes
26793 else
26794 echo "configure: failed program was" >&5
26795 cat conftest.s >&5
26796 fi
26797 rm -f conftest.o conftest.s
26798 fi
26799 fi
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26801 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26802 if test $gcc_cv_as_sparc_sparc4 = yes; then
26803
26804 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26805
26806 fi
26807
26808
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26810 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26811 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26812 $as_echo_n "(cached) " >&6
26813 else
26814 gcc_cv_as_sparc_sparc5=no
26815 if test x$gcc_cv_as != x; then
26816 $as_echo '.text
26817 .register %g2, #scratch
26818 .register %g3, #scratch
26819 .align 4
26820 subxc %g1, %g2, %g3
26821 fpadd8 %f0, %f2, %f4' > conftest.s
26822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26824 (eval $ac_try) 2>&5
26825 ac_status=$?
26826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26827 test $ac_status = 0; }; }
26828 then
26829 gcc_cv_as_sparc_sparc5=yes
26830 else
26831 echo "configure: failed program was" >&5
26832 cat conftest.s >&5
26833 fi
26834 rm -f conftest.o conftest.s
26835 fi
26836 fi
26837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26838 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26839 if test $gcc_cv_as_sparc_sparc5 = yes; then
26840
26841 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26842
26843 fi
26844
26845
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26847 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26848 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26849 $as_echo_n "(cached) " >&6
26850 else
26851 gcc_cv_as_sparc_sparc6=no
26852 if test x$gcc_cv_as != x; then
26853 $as_echo '.text
26854 .register %g2, #scratch
26855 .register %g3, #scratch
26856 .align 4
26857 rd %entropy, %g1
26858 fpsll64x %f0, %f2, %f4' > conftest.s
26859 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26861 (eval $ac_try) 2>&5
26862 ac_status=$?
26863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26864 test $ac_status = 0; }; }
26865 then
26866 gcc_cv_as_sparc_sparc6=yes
26867 else
26868 echo "configure: failed program was" >&5
26869 cat conftest.s >&5
26870 fi
26871 rm -f conftest.o conftest.s
26872 fi
26873 fi
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26875 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26876 if test $gcc_cv_as_sparc_sparc6 = yes; then
26877
26878 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26879
26880 fi
26881
26882
26883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26884 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26885 if ${gcc_cv_as_sparc_leon+:} false; then :
26886 $as_echo_n "(cached) " >&6
26887 else
26888 gcc_cv_as_sparc_leon=no
26889 if test x$gcc_cv_as != x; then
26890 $as_echo '.text
26891 .register %g2, #scratch
26892 .register %g3, #scratch
26893 .align 4
26894 smac %g2, %g3, %g1
26895 umac %g2, %g3, %g1
26896 casa [%g2] 0xb, %g3, %g1' > conftest.s
26897 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26899 (eval $ac_try) 2>&5
26900 ac_status=$?
26901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26902 test $ac_status = 0; }; }
26903 then
26904 gcc_cv_as_sparc_leon=yes
26905 else
26906 echo "configure: failed program was" >&5
26907 cat conftest.s >&5
26908 fi
26909 rm -f conftest.o conftest.s
26910 fi
26911 fi
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26913 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26914 if test $gcc_cv_as_sparc_leon = yes; then
26915
26916 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26917
26918 fi
26919
26920 ;;
26921
26922 i[34567]86-*-* | x86_64-*-*)
26923 case $target_os in
26924 cygwin*)
26925 # Full C++ conformance when using a shared libstdc++-v3 requires some
26926 # support from the Cygwin DLL, which in more recent versions exports
26927 # wrappers to aid in interposing and redirecting operators new, delete,
26928 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26929 # are configuring for a version of Cygwin that exports the wrappers.
26930 if test x$host = x$target && test x$host_cpu = xi686; then
26931 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26932 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26933 gcc_ac_cygwin_dll_wrappers=yes
26934 else
26935 gcc_ac_cygwin_dll_wrappers=no
26936 fi
26937
26938 else
26939 # Can't check presence of libc functions during cross-compile, so
26940 # we just have to assume we're building for an up-to-date target.
26941 gcc_ac_cygwin_dll_wrappers=yes
26942 fi
26943
26944 cat >>confdefs.h <<_ACEOF
26945 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26946 _ACEOF
26947
26948 esac
26949 case $target_os in
26950 cygwin* | pe | mingw32*)
26951 # Recent binutils allows the three-operand form of ".comm" on PE. This
26952 # definition is used unconditionally to initialise the default state of
26953 # the target option variable that governs usage of the feature.
26954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26955 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26956 if ${gcc_cv_as_comm_has_align+:} false; then :
26957 $as_echo_n "(cached) " >&6
26958 else
26959 gcc_cv_as_comm_has_align=no
26960 if test x$gcc_cv_as != x; then
26961 $as_echo '.comm foo,1,32' > conftest.s
26962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26964 (eval $ac_try) 2>&5
26965 ac_status=$?
26966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26967 test $ac_status = 0; }; }
26968 then
26969 gcc_cv_as_comm_has_align=yes
26970 else
26971 echo "configure: failed program was" >&5
26972 cat conftest.s >&5
26973 fi
26974 rm -f conftest.o conftest.s
26975 fi
26976 fi
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26978 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26979
26980
26981
26982 cat >>confdefs.h <<_ACEOF
26983 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26984 _ACEOF
26985
26986 # Used for DWARF 2 in PE
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26988 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26989 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26990 $as_echo_n "(cached) " >&6
26991 else
26992 gcc_cv_as_ix86_pe_secrel32=no
26993 if test x$gcc_cv_as != x; then
26994 $as_echo '.text
26995 foo: nop
26996 .data
26997 .secrel32 foo' > conftest.s
26998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27000 (eval $ac_try) 2>&5
27001 ac_status=$?
27002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27003 test $ac_status = 0; }; }
27004 then
27005 if test x$gcc_cv_ld != x \
27006 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
27007 gcc_cv_as_ix86_pe_secrel32=yes
27008 fi
27009 rm -f conftest
27010 else
27011 echo "configure: failed program was" >&5
27012 cat conftest.s >&5
27013 fi
27014 rm -f conftest.o conftest.s
27015 fi
27016 fi
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27018 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27019 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27020
27021 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27022
27023 fi
27024
27025 # Test if the assembler supports the extended form of the .section
27026 # directive that specifies section alignment. LTO support uses this,
27027 # but normally only after installation, so we warn but don't fail the
27028 # configure if LTO is enabled but the assembler does not support it.
27029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27030 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27031 if ${gcc_cv_as_section_has_align+:} false; then :
27032 $as_echo_n "(cached) " >&6
27033 else
27034 gcc_cv_as_section_has_align=no
27035 if test x$gcc_cv_as != x; then
27036 $as_echo '.section lto_test,"dr0"' > conftest.s
27037 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27039 (eval $ac_try) 2>&5
27040 ac_status=$?
27041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27042 test $ac_status = 0; }; }
27043 then
27044 gcc_cv_as_section_has_align=yes
27045 else
27046 echo "configure: failed program was" >&5
27047 cat conftest.s >&5
27048 fi
27049 rm -f conftest.o conftest.s
27050 fi
27051 fi
27052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27053 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27054
27055
27056 if test x$gcc_cv_as_section_has_align != xyes; then
27057 case ",$enable_languages," in
27058 *,lto,*)
27059 { $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
27060 $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;}
27061 ;;
27062 esac
27063 fi
27064 ;;
27065 esac
27066 case $target_os in
27067 darwin2* | darwin19*)
27068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27069 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27070 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
27071 $as_echo_n "(cached) " >&6
27072 else
27073 gcc_cv_as_mllvm_x86_pad_for_align=no
27074 if test x$gcc_cv_as != x; then
27075 $as_echo '.text' > conftest.s
27076 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27078 (eval $ac_try) 2>&5
27079 ac_status=$?
27080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27081 test $ac_status = 0; }; }
27082 then
27083 gcc_cv_as_mllvm_x86_pad_for_align=yes
27084 else
27085 echo "configure: failed program was" >&5
27086 cat conftest.s >&5
27087 fi
27088 rm -f conftest.o conftest.s
27089 fi
27090 fi
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27092 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27093 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27094
27095 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27096
27097 fi
27098
27099 ;;
27100 esac
27101
27102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27103 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27104 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
27105 $as_echo_n "(cached) " >&6
27106 else
27107 gcc_cv_as_ix86_xbrace_comment=no
27108 if test x$gcc_cv_as != x; then
27109 $as_echo '.text' > conftest.s
27110 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27112 (eval $ac_try) 2>&5
27113 ac_status=$?
27114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27115 test $ac_status = 0; }; }
27116 then
27117 gcc_cv_as_ix86_xbrace_comment=yes
27118 else
27119 echo "configure: failed program was" >&5
27120 cat conftest.s >&5
27121 fi
27122 rm -f conftest.o conftest.s
27123 fi
27124 fi
27125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27126 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27127 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27128
27129 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27130
27131 fi
27132
27133
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27135 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27136 if ${gcc_cv_as_ix86_filds+:} false; then :
27137 $as_echo_n "(cached) " >&6
27138 else
27139 gcc_cv_as_ix86_filds=no
27140 if test x$gcc_cv_as != x; then
27141 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27142 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27144 (eval $ac_try) 2>&5
27145 ac_status=$?
27146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27147 test $ac_status = 0; }; }
27148 then
27149 gcc_cv_as_ix86_filds=yes
27150 else
27151 echo "configure: failed program was" >&5
27152 cat conftest.s >&5
27153 fi
27154 rm -f conftest.o conftest.s
27155 fi
27156 fi
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27158 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27159 if test $gcc_cv_as_ix86_filds = yes; then
27160
27161 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27162
27163 fi
27164
27165
27166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27167 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27168 if ${gcc_cv_as_ix86_fildq+:} false; then :
27169 $as_echo_n "(cached) " >&6
27170 else
27171 gcc_cv_as_ix86_fildq=no
27172 if test x$gcc_cv_as != x; then
27173 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27174 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27176 (eval $ac_try) 2>&5
27177 ac_status=$?
27178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27179 test $ac_status = 0; }; }
27180 then
27181 gcc_cv_as_ix86_fildq=yes
27182 else
27183 echo "configure: failed program was" >&5
27184 cat conftest.s >&5
27185 fi
27186 rm -f conftest.o conftest.s
27187 fi
27188 fi
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27190 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27191 if test $gcc_cv_as_ix86_fildq = yes; then
27192
27193 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27194
27195 fi
27196
27197
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27199 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27200 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27201 $as_echo_n "(cached) " >&6
27202 else
27203 gcc_cv_as_ix86_cmov_sun_syntax=no
27204 if test x$gcc_cv_as != x; then
27205 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27206 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27208 (eval $ac_try) 2>&5
27209 ac_status=$?
27210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27211 test $ac_status = 0; }; }
27212 then
27213 gcc_cv_as_ix86_cmov_sun_syntax=yes
27214 else
27215 echo "configure: failed program was" >&5
27216 cat conftest.s >&5
27217 fi
27218 rm -f conftest.o conftest.s
27219 fi
27220 fi
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27222 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27223 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27224
27225 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27226
27227 fi
27228
27229
27230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27231 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27232 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27233 $as_echo_n "(cached) " >&6
27234 else
27235 gcc_cv_as_ix86_ffreep=no
27236 if test x$gcc_cv_as != x; then
27237 $as_echo 'ffreep %st(1)' > conftest.s
27238 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27240 (eval $ac_try) 2>&5
27241 ac_status=$?
27242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27243 test $ac_status = 0; }; }
27244 then
27245 gcc_cv_as_ix86_ffreep=yes
27246 else
27247 echo "configure: failed program was" >&5
27248 cat conftest.s >&5
27249 fi
27250 rm -f conftest.o conftest.s
27251 fi
27252 fi
27253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27254 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27255 if test $gcc_cv_as_ix86_ffreep = yes; then
27256
27257 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27258
27259 fi
27260
27261
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27263 $as_echo_n "checking assembler for .quad directive... " >&6; }
27264 if ${gcc_cv_as_ix86_quad+:} false; then :
27265 $as_echo_n "(cached) " >&6
27266 else
27267 gcc_cv_as_ix86_quad=no
27268 if test x$gcc_cv_as != x; then
27269 $as_echo '.quad 0' > conftest.s
27270 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27272 (eval $ac_try) 2>&5
27273 ac_status=$?
27274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27275 test $ac_status = 0; }; }
27276 then
27277 gcc_cv_as_ix86_quad=yes
27278 else
27279 echo "configure: failed program was" >&5
27280 cat conftest.s >&5
27281 fi
27282 rm -f conftest.o conftest.s
27283 fi
27284 fi
27285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27286 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27287 if test $gcc_cv_as_ix86_quad = yes; then
27288
27289 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27290
27291 fi
27292
27293
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27295 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27296 if ${gcc_cv_as_ix86_sahf+:} false; then :
27297 $as_echo_n "(cached) " >&6
27298 else
27299 gcc_cv_as_ix86_sahf=no
27300 if test x$gcc_cv_as != x; then
27301 $as_echo '.code64
27302 sahf' > conftest.s
27303 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27305 (eval $ac_try) 2>&5
27306 ac_status=$?
27307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27308 test $ac_status = 0; }; }
27309 then
27310 gcc_cv_as_ix86_sahf=yes
27311 else
27312 echo "configure: failed program was" >&5
27313 cat conftest.s >&5
27314 fi
27315 rm -f conftest.o conftest.s
27316 fi
27317 fi
27318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27319 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27320 if test $gcc_cv_as_ix86_sahf = yes; then
27321
27322 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27323
27324 fi
27325
27326
27327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27328 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27329 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27330 $as_echo_n "(cached) " >&6
27331 else
27332 gcc_cv_as_ix86_interunit_movq=no
27333 if test x$gcc_cv_as != x; then
27334 $as_echo '.code64
27335 movq %mm0, %rax
27336 movq %rax, %xmm0' > conftest.s
27337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27339 (eval $ac_try) 2>&5
27340 ac_status=$?
27341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27342 test $ac_status = 0; }; }
27343 then
27344 gcc_cv_as_ix86_interunit_movq=yes
27345 else
27346 echo "configure: failed program was" >&5
27347 cat conftest.s >&5
27348 fi
27349 rm -f conftest.o conftest.s
27350 fi
27351 fi
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27353 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27354
27355
27356
27357 cat >>confdefs.h <<_ACEOF
27358 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27359 _ACEOF
27360
27361
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27363 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27364 if ${gcc_cv_as_ix86_hle+:} false; then :
27365 $as_echo_n "(cached) " >&6
27366 else
27367 gcc_cv_as_ix86_hle=no
27368 if test x$gcc_cv_as != x; then
27369 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27372 (eval $ac_try) 2>&5
27373 ac_status=$?
27374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27375 test $ac_status = 0; }; }
27376 then
27377 gcc_cv_as_ix86_hle=yes
27378 else
27379 echo "configure: failed program was" >&5
27380 cat conftest.s >&5
27381 fi
27382 rm -f conftest.o conftest.s
27383 fi
27384 fi
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27386 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27387 if test $gcc_cv_as_ix86_hle = yes; then
27388
27389 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27390
27391 fi
27392
27393
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27395 $as_echo_n "checking assembler for swap suffix... " >&6; }
27396 if ${gcc_cv_as_ix86_swap+:} false; then :
27397 $as_echo_n "(cached) " >&6
27398 else
27399 gcc_cv_as_ix86_swap=no
27400 if test x$gcc_cv_as != x; then
27401 $as_echo 'movl.s %esp, %ebp' > conftest.s
27402 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27404 (eval $ac_try) 2>&5
27405 ac_status=$?
27406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27407 test $ac_status = 0; }; }
27408 then
27409 gcc_cv_as_ix86_swap=yes
27410 else
27411 echo "configure: failed program was" >&5
27412 cat conftest.s >&5
27413 fi
27414 rm -f conftest.o conftest.s
27415 fi
27416 fi
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27418 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27419 if test $gcc_cv_as_ix86_swap = yes; then
27420
27421 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27422
27423 fi
27424
27425
27426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27427 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27428 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27429 $as_echo_n "(cached) " >&6
27430 else
27431 gcc_cv_as_ix86_diff_sect_delta=no
27432 if test x$gcc_cv_as != x; then
27433 $as_echo '.section .rodata
27434 .L1:
27435 .long .L2-.L1
27436 .long .L3-.L1
27437 .text
27438 .L3: nop
27439 .L2: nop' > conftest.s
27440 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27442 (eval $ac_try) 2>&5
27443 ac_status=$?
27444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27445 test $ac_status = 0; }; }
27446 then
27447 gcc_cv_as_ix86_diff_sect_delta=yes
27448 else
27449 echo "configure: failed program was" >&5
27450 cat conftest.s >&5
27451 fi
27452 rm -f conftest.o conftest.s
27453 fi
27454 fi
27455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27456 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27457 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27458
27459 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27460
27461 fi
27462
27463
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27465 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27466 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27467 $as_echo_n "(cached) " >&6
27468 else
27469 gcc_cv_as_ix86_rep_lock_prefix=no
27470 if test x$gcc_cv_as != x; then
27471 $as_echo 'rep movsl
27472 rep ret
27473 rep nop
27474 rep bsf %ecx, %eax
27475 rep bsr %ecx, %eax
27476 lock addl %edi, (%eax,%esi)
27477 lock orl $0, (%esp)' > conftest.s
27478 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27480 (eval $ac_try) 2>&5
27481 ac_status=$?
27482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27483 test $ac_status = 0; }; }
27484 then
27485 gcc_cv_as_ix86_rep_lock_prefix=yes
27486 else
27487 echo "configure: failed program was" >&5
27488 cat conftest.s >&5
27489 fi
27490 rm -f conftest.o conftest.s
27491 fi
27492 fi
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27494 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27495 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27496
27497 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27498
27499 fi
27500
27501
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27503 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27504 if ${gcc_cv_as_ix86_ud2+:} false; then :
27505 $as_echo_n "(cached) " >&6
27506 else
27507 gcc_cv_as_ix86_ud2=no
27508 if test x$gcc_cv_as != x; then
27509 $as_echo 'ud2' > conftest.s
27510 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27512 (eval $ac_try) 2>&5
27513 ac_status=$?
27514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27515 test $ac_status = 0; }; }
27516 then
27517 gcc_cv_as_ix86_ud2=yes
27518 else
27519 echo "configure: failed program was" >&5
27520 cat conftest.s >&5
27521 fi
27522 rm -f conftest.o conftest.s
27523 fi
27524 fi
27525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27526 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27527 if test $gcc_cv_as_ix86_ud2 = yes; then
27528
27529 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27530
27531 fi
27532
27533
27534 # Enforce 32-bit output with gas and gld.
27535 if test x$gas = xyes; then
27536 as_ix86_gas_32_opt="--32"
27537 fi
27538 if echo "$ld_ver" | grep GNU > /dev/null; then
27539 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27540 ld_ix86_gld_32_opt="-melf_i386_sol2"
27541 else
27542 ld_ix86_gld_32_opt="-melf_i386"
27543 fi
27544 fi
27545
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27547 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27548 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27549 $as_echo_n "(cached) " >&6
27550 else
27551 gcc_cv_as_ix86_tlsgdplt=no
27552 if test x$gcc_cv_as != x; then
27553 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27554 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27556 (eval $ac_try) 2>&5
27557 ac_status=$?
27558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27559 test $ac_status = 0; }; }
27560 then
27561 if test x$gcc_cv_ld != x \
27562 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27563 gcc_cv_as_ix86_tlsgdplt=yes
27564 fi
27565 rm -f conftest
27566 else
27567 echo "configure: failed program was" >&5
27568 cat conftest.s >&5
27569 fi
27570 rm -f conftest.o conftest.s
27571 fi
27572 fi
27573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27574 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27575 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27576
27577 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27578
27579 fi
27580
27581
27582 conftest_s='
27583 .section .tdata,"aw'$tls_section_flag'",@progbits
27584 tls_ld:
27585 .section .text,"ax",@progbits
27586 call tls_ld@tlsldmplt'
27587
27588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27589 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27590 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27591 $as_echo_n "(cached) " >&6
27592 else
27593 gcc_cv_as_ix86_tlsldmplt=no
27594 if test x$gcc_cv_as != x; then
27595 $as_echo "$conftest_s" > conftest.s
27596 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27598 (eval $ac_try) 2>&5
27599 ac_status=$?
27600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27601 test $ac_status = 0; }; }
27602 then
27603 if test x$gcc_cv_ld != x \
27604 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27605 gcc_cv_as_ix86_tlsldmplt=yes
27606 fi
27607 rm -f conftest
27608 else
27609 echo "configure: failed program was" >&5
27610 cat conftest.s >&5
27611 fi
27612 rm -f conftest.o conftest.s
27613 fi
27614 fi
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27616 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27617
27618
27619
27620 cat >>confdefs.h <<_ACEOF
27621 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27622 _ACEOF
27623
27624
27625 conftest_s='
27626 .section .text,"ax",@progbits
27627 .globl _start
27628 .type _start, @function
27629 _start:
27630 leal value@tlsldm(%ebx), %eax
27631 call ___tls_get_addr@plt
27632
27633 .section .tdata,"aw'$tls_section_flag'",@progbits
27634 .type value, @object
27635 value:'
27636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27637 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27638 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27639 $as_echo_n "(cached) " >&6
27640 else
27641 gcc_cv_as_ix86_tlsldm=no
27642 if test x$gcc_cv_as != x; then
27643 $as_echo "$conftest_s" > conftest.s
27644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27646 (eval $ac_try) 2>&5
27647 ac_status=$?
27648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27649 test $ac_status = 0; }; }
27650 then
27651 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27652 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27653 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27654 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27655 gcc_cv_as_ix86_tlsldm=yes
27656 fi
27657 fi
27658 rm -f conftest
27659 else
27660 echo "configure: failed program was" >&5
27661 cat conftest.s >&5
27662 fi
27663 rm -f conftest.o conftest.s
27664 fi
27665 fi
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27667 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27668
27669
27670
27671 cat >>confdefs.h <<_ACEOF
27672 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27673 _ACEOF
27674
27675
27676 conftest_s='
27677 .data
27678 bar:
27679 .byte 1
27680 .text
27681 .global _start
27682 _start:
27683 cmpl $0, bar@GOT
27684 jmp *_start@GOT'
27685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27686 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27687 if ${gcc_cv_as_ix86_got32x+:} false; then :
27688 $as_echo_n "(cached) " >&6
27689 else
27690 gcc_cv_as_ix86_got32x=no
27691 if test x$gcc_cv_as != x; then
27692 $as_echo "$conftest_s" > conftest.s
27693 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27695 (eval $ac_try) 2>&5
27696 ac_status=$?
27697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27698 test $ac_status = 0; }; }
27699 then
27700 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27701 && test x$gcc_cv_readelf != x \
27702 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27703 | grep R_386_GOT32X > /dev/null 2>&1 \
27704 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27705 if $gcc_cv_objdump -dw conftest 2>&1 \
27706 | grep 0xffffff > /dev/null 2>&1; then
27707 gcc_cv_as_ix86_got32x=no
27708 else
27709 gcc_cv_as_ix86_got32x=yes
27710 fi
27711 fi
27712 rm -f conftest
27713 else
27714 echo "configure: failed program was" >&5
27715 cat conftest.s >&5
27716 fi
27717 rm -f conftest.o conftest.s
27718 fi
27719 fi
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27721 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27722
27723
27724
27725 cat >>confdefs.h <<_ACEOF
27726 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27727 _ACEOF
27728
27729
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27731 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27732 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27733 $as_echo_n "(cached) " >&6
27734 else
27735 gcc_cv_as_ix86_gotoff_in_data=no
27736 if test x$gcc_cv_as != x; then
27737 $as_echo ' .text
27738 .L0:
27739 nop
27740 .data
27741 .long .L0@GOTOFF' > conftest.s
27742 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27744 (eval $ac_try) 2>&5
27745 ac_status=$?
27746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27747 test $ac_status = 0; }; }
27748 then
27749 gcc_cv_as_ix86_gotoff_in_data=yes
27750 else
27751 echo "configure: failed program was" >&5
27752 cat conftest.s >&5
27753 fi
27754 rm -f conftest.o conftest.s
27755 fi
27756 fi
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27758 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27759
27760
27761
27762 cat >>confdefs.h <<_ACEOF
27763 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27764 _ACEOF
27765
27766
27767 conftest_s='
27768 .section .text,"ax",@progbits
27769 .globl _start
27770 .type _start, @function
27771 _start:
27772 leal ld@tlsldm(%ecx), %eax
27773 call *___tls_get_addr@GOT(%ecx)
27774 leal gd@tlsgd(%ecx), %eax
27775 call *___tls_get_addr@GOT(%ecx)
27776
27777 .section .tdata,"aw'$tls_section_flag'",@progbits
27778 .type ld, @object
27779 ld:
27780 .byte 0
27781 .globl gd
27782 .type gd, @object
27783 gd:
27784 .byte 0'
27785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27786 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27787 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27788 $as_echo_n "(cached) " >&6
27789 else
27790 gcc_cv_as_ix86_tls_get_addr_via_got=no
27791 if test x$gcc_cv_as != x; then
27792 $as_echo "$conftest_s" > conftest.s
27793 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27795 (eval $ac_try) 2>&5
27796 ac_status=$?
27797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27798 test $ac_status = 0; }; }
27799 then
27800 if test x$gcc_cv_ld != x \
27801 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27802 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27803 fi
27804 rm -f conftest
27805 else
27806 echo "configure: failed program was" >&5
27807 cat conftest.s >&5
27808 fi
27809 rm -f conftest.o conftest.s
27810 fi
27811 fi
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27813 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27814
27815
27816
27817 cat >>confdefs.h <<_ACEOF
27818 #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`
27819 _ACEOF
27820
27821 ;;
27822
27823 ia64*-*-*)
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27825 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27826 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27827 $as_echo_n "(cached) " >&6
27828 else
27829 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27830 if test x$gcc_cv_as != x; then
27831 $as_echo ' .text
27832 addl r15 = @ltoffx(x#), gp
27833 ;;
27834 ld8.mov r16 = [r15], x#
27835 ' > conftest.s
27836 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27838 (eval $ac_try) 2>&5
27839 ac_status=$?
27840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27841 test $ac_status = 0; }; }
27842 then
27843 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27844 else
27845 echo "configure: failed program was" >&5
27846 cat conftest.s >&5
27847 fi
27848 rm -f conftest.o conftest.s
27849 fi
27850 fi
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27852 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27853 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27854
27855 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27856
27857 fi
27858
27859
27860 ;;
27861
27862 powerpc*-*-*)
27863
27864 case $target in
27865 *-*-darwin*)
27866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27867 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27868 if ${gcc_cv_as_machine_directive+:} false; then :
27869 $as_echo_n "(cached) " >&6
27870 else
27871 gcc_cv_as_machine_directive=no
27872 if test x$gcc_cv_as != x; then
27873 $as_echo ' .machine ppc7400' > conftest.s
27874 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27876 (eval $ac_try) 2>&5
27877 ac_status=$?
27878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27879 test $ac_status = 0; }; }
27880 then
27881 gcc_cv_as_machine_directive=yes
27882 else
27883 echo "configure: failed program was" >&5
27884 cat conftest.s >&5
27885 fi
27886 rm -f conftest.o conftest.s
27887 fi
27888 fi
27889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27890 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27891
27892
27893 if test x$gcc_cv_as_machine_directive != xyes; then
27894 echo "*** This target requires an assembler supporting \".machine\"" >&2
27895 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27896 test x$build = x$target && exit 1
27897 fi
27898 ;;
27899 esac
27900
27901 case $target in
27902 *-*-aix*) conftest_s=' .machine "pwr5"
27903 .csect .text[PR]
27904 mfcr 3,128';;
27905 *-*-darwin*) conftest_s=' .text
27906 mfcr r3,128';;
27907 *) conftest_s=' .machine power4
27908 .text
27909 mfcr 3,128';;
27910 esac
27911
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27913 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27914 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27915 $as_echo_n "(cached) " >&6
27916 else
27917 gcc_cv_as_powerpc_mfcrf=no
27918 if test x$gcc_cv_as != x; then
27919 $as_echo "$conftest_s" > conftest.s
27920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27922 (eval $ac_try) 2>&5
27923 ac_status=$?
27924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27925 test $ac_status = 0; }; }
27926 then
27927 gcc_cv_as_powerpc_mfcrf=yes
27928 else
27929 echo "configure: failed program was" >&5
27930 cat conftest.s >&5
27931 fi
27932 rm -f conftest.o conftest.s
27933 fi
27934 fi
27935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27936 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27937 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27938
27939 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27940
27941 fi
27942
27943
27944 case $target in
27945 *-*-aix*) conftest_s=' .csect .text[PR]
27946 LCF..0:
27947 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27948 *-*-darwin*)
27949 conftest_s=' .text
27950 LCF0:
27951 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27952 *) conftest_s=' .text
27953 .LCF0:
27954 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27955 esac
27956
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27958 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27959 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27960 $as_echo_n "(cached) " >&6
27961 else
27962 gcc_cv_as_powerpc_rel16=no
27963 if test x$gcc_cv_as != x; then
27964 $as_echo "$conftest_s" > conftest.s
27965 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27967 (eval $ac_try) 2>&5
27968 ac_status=$?
27969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27970 test $ac_status = 0; }; }
27971 then
27972 gcc_cv_as_powerpc_rel16=yes
27973 else
27974 echo "configure: failed program was" >&5
27975 cat conftest.s >&5
27976 fi
27977 rm -f conftest.o conftest.s
27978 fi
27979 fi
27980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27981 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27982 if test $gcc_cv_as_powerpc_rel16 = yes; then
27983
27984 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27985
27986 fi
27987
27988
27989 case $target in
27990 *-*-aix*) conftest_s=' .machine "pwr7"
27991 .csect .text[PR]
27992 lxvd2x 1,2,3';;
27993 *) conftest_s=' .machine power7
27994 .text
27995 lxvd2x 1,2,3';;
27996 esac
27997
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27999 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28000 if ${gcc_cv_as_powerpc_vsx+:} false; then :
28001 $as_echo_n "(cached) " >&6
28002 else
28003 gcc_cv_as_powerpc_vsx=no
28004 if test x$gcc_cv_as != x; then
28005 $as_echo "$conftest_s" > conftest.s
28006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28008 (eval $ac_try) 2>&5
28009 ac_status=$?
28010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28011 test $ac_status = 0; }; }
28012 then
28013 gcc_cv_as_powerpc_vsx=yes
28014 else
28015 echo "configure: failed program was" >&5
28016 cat conftest.s >&5
28017 fi
28018 rm -f conftest.o conftest.s
28019 fi
28020 fi
28021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28022 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28023 if test $gcc_cv_as_powerpc_vsx = yes; then
28024
28025 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28026
28027 fi
28028
28029
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28031 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28032 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
28033 $as_echo_n "(cached) " >&6
28034 else
28035 gcc_cv_as_powerpc_gnu_attribute=no
28036 if test x$gcc_cv_as != x; then
28037 $as_echo '.gnu_attribute 4,1' > conftest.s
28038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28040 (eval $ac_try) 2>&5
28041 ac_status=$?
28042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28043 test $ac_status = 0; }; }
28044 then
28045 gcc_cv_as_powerpc_gnu_attribute=yes
28046 else
28047 echo "configure: failed program was" >&5
28048 cat conftest.s >&5
28049 fi
28050 rm -f conftest.o conftest.s
28051 fi
28052 fi
28053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28054 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28055 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28056
28057 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28058
28059 fi
28060
28061
28062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28063 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28064 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
28065 $as_echo_n "(cached) " >&6
28066 else
28067 gcc_cv_as_powerpc_entry_markers=no
28068 if test x$gcc_cv_as != x; then
28069 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28070 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28072 (eval $ac_try) 2>&5
28073 ac_status=$?
28074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28075 test $ac_status = 0; }; }
28076 then
28077 gcc_cv_as_powerpc_entry_markers=yes
28078 else
28079 echo "configure: failed program was" >&5
28080 cat conftest.s >&5
28081 fi
28082 rm -f conftest.o conftest.s
28083 fi
28084 fi
28085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28086 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28087 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28088
28089 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28090
28091 fi
28092
28093
28094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28095 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28096 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
28097 $as_echo_n "(cached) " >&6
28098 else
28099 gcc_cv_as_powerpc_pltseq_markers=no
28100 if test x$gcc_cv_as != x; then
28101 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28102 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28104 (eval $ac_try) 2>&5
28105 ac_status=$?
28106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28107 test $ac_status = 0; }; }
28108 then
28109 gcc_cv_as_powerpc_pltseq_markers=yes
28110 else
28111 echo "configure: failed program was" >&5
28112 cat conftest.s >&5
28113 fi
28114 rm -f conftest.o conftest.s
28115 fi
28116 fi
28117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28118 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28119 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28120
28121 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28122
28123 fi
28124
28125
28126 case $target in
28127 *-*-aix*)
28128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28129 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28130 if ${gcc_cv_as_aix_ref+:} false; then :
28131 $as_echo_n "(cached) " >&6
28132 else
28133 gcc_cv_as_aix_ref=no
28134 if test x$gcc_cv_as != x; then
28135 $as_echo ' .csect stuff[rw]
28136 stuff:
28137 .long 1
28138 .extern sym
28139 .ref sym
28140 ' > conftest.s
28141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28143 (eval $ac_try) 2>&5
28144 ac_status=$?
28145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28146 test $ac_status = 0; }; }
28147 then
28148 gcc_cv_as_aix_ref=yes
28149 else
28150 echo "configure: failed program was" >&5
28151 cat conftest.s >&5
28152 fi
28153 rm -f conftest.o conftest.s
28154 fi
28155 fi
28156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28157 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28158 if test $gcc_cv_as_aix_ref = yes; then
28159
28160 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28161
28162 fi
28163
28164
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28166 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28167 if ${gcc_cv_as_aix_dwloc+:} false; then :
28168 $as_echo_n "(cached) " >&6
28169 else
28170 gcc_cv_as_aix_dwloc=no
28171 if test x$gcc_cv_as != x; then
28172 $as_echo ' .dwsect 0xA0000
28173 Lframe..0:
28174 .vbyte 4,Lframe..0
28175 ' > conftest.s
28176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28178 (eval $ac_try) 2>&5
28179 ac_status=$?
28180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28181 test $ac_status = 0; }; }
28182 then
28183 gcc_cv_as_aix_dwloc=yes
28184 else
28185 echo "configure: failed program was" >&5
28186 cat conftest.s >&5
28187 fi
28188 rm -f conftest.o conftest.s
28189 fi
28190 fi
28191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28192 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28193 if test $gcc_cv_as_aix_dwloc = yes; then
28194
28195 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28196
28197 fi
28198
28199 ;;
28200 esac
28201 ;;
28202
28203 mips*-*-*)
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28205 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28206 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28207 $as_echo_n "(cached) " >&6
28208 else
28209 gcc_cv_as_mips_explicit_relocs=no
28210 if test x$gcc_cv_as != x; then
28211 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28212 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28214 (eval $ac_try) 2>&5
28215 ac_status=$?
28216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28217 test $ac_status = 0; }; }
28218 then
28219 gcc_cv_as_mips_explicit_relocs=yes
28220 else
28221 echo "configure: failed program was" >&5
28222 cat conftest.s >&5
28223 fi
28224 rm -f conftest.o conftest.s
28225 fi
28226 fi
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28228 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28229 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28230 if test x$target_cpu_default = x
28231 then target_cpu_default=MASK_EXPLICIT_RELOCS
28232 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28233 fi
28234 fi
28235
28236
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28238 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28239 if ${gcc_cv_as_mips_no_shared+:} false; then :
28240 $as_echo_n "(cached) " >&6
28241 else
28242 gcc_cv_as_mips_no_shared=no
28243 if test x$gcc_cv_as != x; then
28244 $as_echo 'nop' > conftest.s
28245 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28247 (eval $ac_try) 2>&5
28248 ac_status=$?
28249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28250 test $ac_status = 0; }; }
28251 then
28252 gcc_cv_as_mips_no_shared=yes
28253 else
28254 echo "configure: failed program was" >&5
28255 cat conftest.s >&5
28256 fi
28257 rm -f conftest.o conftest.s
28258 fi
28259 fi
28260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28261 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28262 if test $gcc_cv_as_mips_no_shared = yes; then
28263
28264 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28265
28266 fi
28267
28268
28269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28270 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28271 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28272 $as_echo_n "(cached) " >&6
28273 else
28274 gcc_cv_as_mips_gnu_attribute=no
28275 if test x$gcc_cv_as != x; then
28276 $as_echo '.gnu_attribute 4,1' > conftest.s
28277 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28279 (eval $ac_try) 2>&5
28280 ac_status=$?
28281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28282 test $ac_status = 0; }; }
28283 then
28284 gcc_cv_as_mips_gnu_attribute=yes
28285 else
28286 echo "configure: failed program was" >&5
28287 cat conftest.s >&5
28288 fi
28289 rm -f conftest.o conftest.s
28290 fi
28291 fi
28292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28293 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28294 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28295
28296 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28297
28298 fi
28299
28300
28301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28302 $as_echo_n "checking assembler for .module support... " >&6; }
28303 if ${gcc_cv_as_mips_dot_module+:} false; then :
28304 $as_echo_n "(cached) " >&6
28305 else
28306 gcc_cv_as_mips_dot_module=no
28307 if test x$gcc_cv_as != x; then
28308 $as_echo '.module mips2
28309 .module fp=xx' > conftest.s
28310 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28312 (eval $ac_try) 2>&5
28313 ac_status=$?
28314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28315 test $ac_status = 0; }; }
28316 then
28317 gcc_cv_as_mips_dot_module=yes
28318 else
28319 echo "configure: failed program was" >&5
28320 cat conftest.s >&5
28321 fi
28322 rm -f conftest.o conftest.s
28323 fi
28324 fi
28325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28326 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28327 if test $gcc_cv_as_mips_dot_module = yes; then
28328
28329 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28330
28331 fi
28332
28333 if test x$gcc_cv_as_mips_dot_module = xno \
28334 && test x$with_fp_32 != x; then
28335 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28336 fi
28337
28338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28339 $as_echo_n "checking assembler for .micromips support... " >&6; }
28340 if ${gcc_cv_as_micromips_support+:} false; then :
28341 $as_echo_n "(cached) " >&6
28342 else
28343 gcc_cv_as_micromips_support=no
28344 if test x$gcc_cv_as != x; then
28345 $as_echo '.set micromips' > conftest.s
28346 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28348 (eval $ac_try) 2>&5
28349 ac_status=$?
28350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28351 test $ac_status = 0; }; }
28352 then
28353 gcc_cv_as_micromips_support=yes
28354 else
28355 echo "configure: failed program was" >&5
28356 cat conftest.s >&5
28357 fi
28358 rm -f conftest.o conftest.s
28359 fi
28360 fi
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28362 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28363 if test $gcc_cv_as_micromips_support = yes; then
28364
28365 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28366
28367 fi
28368
28369
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28371 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28372 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28373 $as_echo_n "(cached) " >&6
28374 else
28375 gcc_cv_as_mips_dtprelword=no
28376 if test x$gcc_cv_as != x; then
28377 $as_echo '.section .tdata,"awT",@progbits
28378 x:
28379 .word 2
28380 .text
28381 .dtprelword x+0x8000' > conftest.s
28382 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28384 (eval $ac_try) 2>&5
28385 ac_status=$?
28386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28387 test $ac_status = 0; }; }
28388 then
28389 gcc_cv_as_mips_dtprelword=yes
28390 else
28391 echo "configure: failed program was" >&5
28392 cat conftest.s >&5
28393 fi
28394 rm -f conftest.o conftest.s
28395 fi
28396 fi
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28398 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28399 if test $gcc_cv_as_mips_dtprelword = yes; then
28400
28401 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28402
28403 fi
28404
28405
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28407 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28408 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28409 $as_echo_n "(cached) " >&6
28410 else
28411 gcc_cv_as_mips_dspr1_mult=no
28412 if test x$gcc_cv_as != x; then
28413 $as_echo ' .set mips32r2
28414 .set nodspr2
28415 .set dsp
28416 madd $ac3,$4,$5
28417 maddu $ac3,$4,$5
28418 msub $ac3,$4,$5
28419 msubu $ac3,$4,$5
28420 mult $ac3,$4,$5
28421 multu $ac3,$4,$5' > conftest.s
28422 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28424 (eval $ac_try) 2>&5
28425 ac_status=$?
28426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28427 test $ac_status = 0; }; }
28428 then
28429 gcc_cv_as_mips_dspr1_mult=yes
28430 else
28431 echo "configure: failed program was" >&5
28432 cat conftest.s >&5
28433 fi
28434 rm -f conftest.o conftest.s
28435 fi
28436 fi
28437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28438 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28439 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28440
28441 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28442
28443 fi
28444
28445
28446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28447 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28448 gcc_cv_as_ld_jalr_reloc=no
28449 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28450 if test $in_tree_ld = yes ; then
28451 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 \
28452 && test $in_tree_ld_is_elf = yes; then
28453 gcc_cv_as_ld_jalr_reloc=yes
28454 fi
28455 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28456 echo ' .ent x' > conftest.s
28457 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28458 echo ' lw $25,%call16(y)($28)' >> conftest.s
28459 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28460 echo '1: jalr $25' >> conftest.s
28461 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28462 echo '1: jalr $25' >> conftest.s
28463 echo ' .end x' >> conftest.s
28464 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28465 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28466 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28467 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28468 gcc_cv_as_ld_jalr_reloc=yes
28469 fi
28470 fi
28471 rm -f conftest.*
28472 fi
28473 fi
28474 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28475 if test x$target_cpu_default = x; then
28476 target_cpu_default=MASK_RELAX_PIC_CALLS
28477 else
28478 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28479 fi
28480 fi
28481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28482 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28483
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28485 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28486 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28487 $as_echo_n "(cached) " >&6
28488 else
28489 gcc_cv_ld_mips_personality_relaxation=no
28490 if test $in_tree_ld = yes ; then
28491 if test "$gcc_cv_gld_major_version" -eq 2 \
28492 -a "$gcc_cv_gld_minor_version" -ge 21 \
28493 -o "$gcc_cv_gld_major_version" -gt 2; then
28494 gcc_cv_ld_mips_personality_relaxation=yes
28495 fi
28496 elif test x$gcc_cv_as != x \
28497 -a x$gcc_cv_ld != x \
28498 -a x$gcc_cv_readelf != x ; then
28499 cat > conftest.s <<EOF
28500 .cfi_startproc
28501 .cfi_personality 0x80,indirect_ptr
28502 .ent test
28503 test:
28504 nop
28505 .end test
28506 .cfi_endproc
28507
28508 .section .data,"aw",@progbits
28509 indirect_ptr:
28510 .dc.a personality
28511 EOF
28512 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28513 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28514 if $gcc_cv_readelf -d conftest 2>&1 \
28515 | grep TEXTREL > /dev/null 2>&1; then
28516 :
28517 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28518 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28519 :
28520 else
28521 gcc_cv_ld_mips_personality_relaxation=yes
28522 fi
28523 fi
28524 fi
28525 rm -f conftest.s conftest.o conftest
28526 fi
28527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28528 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28529 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28530
28531 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28532
28533 fi
28534
28535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28536 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28537 if ${gcc_cv_as_mips_nan+:} false; then :
28538 $as_echo_n "(cached) " >&6
28539 else
28540 gcc_cv_as_mips_nan=no
28541 if test x$gcc_cv_as != x; then
28542 $as_echo '' > conftest.s
28543 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28545 (eval $ac_try) 2>&5
28546 ac_status=$?
28547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28548 test $ac_status = 0; }; }
28549 then
28550 gcc_cv_as_mips_nan=yes
28551 else
28552 echo "configure: failed program was" >&5
28553 cat conftest.s >&5
28554 fi
28555 rm -f conftest.o conftest.s
28556 fi
28557 fi
28558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28559 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28560 if test $gcc_cv_as_mips_nan = yes; then
28561
28562 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28563
28564 fi
28565
28566 if test x$gcc_cv_as_mips_nan = xno \
28567 && test x$with_nan != x; then
28568 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28569 fi
28570 ;;
28571 msp430-*-*)
28572 # Earlier GAS versions generically support .gnu_attribute, but the
28573 # msp430 assembler will not do anything with it.
28574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28575 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28576 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28577 $as_echo_n "(cached) " >&6
28578 else
28579 gcc_cv_as_msp430_gnu_attribute=no
28580 if test x$gcc_cv_as != x; then
28581 $as_echo '.gnu_attribute 4,1' > conftest.s
28582 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28584 (eval $ac_try) 2>&5
28585 ac_status=$?
28586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28587 test $ac_status = 0; }; }
28588 then
28589 gcc_cv_as_msp430_gnu_attribute=yes
28590 else
28591 echo "configure: failed program was" >&5
28592 cat conftest.s >&5
28593 fi
28594 rm -f conftest.o conftest.s
28595 fi
28596 fi
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28598 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28599 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28600
28601 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28602
28603 fi
28604
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28606 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28607 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28608 $as_echo_n "(cached) " >&6
28609 else
28610 gcc_cv_as_msp430_mspabi_attribute=no
28611 if test x$gcc_cv_as != x; then
28612 $as_echo '.mspabi_attribute 4,2' > conftest.s
28613 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28615 (eval $ac_try) 2>&5
28616 ac_status=$?
28617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28618 test $ac_status = 0; }; }
28619 then
28620 gcc_cv_as_msp430_mspabi_attribute=yes
28621 else
28622 echo "configure: failed program was" >&5
28623 cat conftest.s >&5
28624 fi
28625 rm -f conftest.o conftest.s
28626 fi
28627 fi
28628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28629 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28630 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28631
28632 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28633
28634 fi
28635
28636 if test x$enable_newlib_nano_formatted_io = xyes; then
28637
28638 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28639
28640 fi
28641 ;;
28642 nios2-*-*)
28643 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28644 # syntax that is documented in the ABI specification.
28645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28646 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28647 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28648 $as_echo_n "(cached) " >&6
28649 else
28650 gcc_cv_as_nios2_gotoff_relocation=no
28651 if test x$gcc_cv_as != x; then
28652 $as_echo ' .extern foo
28653 .data
28654 .long %gotoff(foo)' > conftest.s
28655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28657 (eval $ac_try) 2>&5
28658 ac_status=$?
28659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28660 test $ac_status = 0; }; }
28661 then
28662 gcc_cv_as_nios2_gotoff_relocation=yes
28663 else
28664 echo "configure: failed program was" >&5
28665 cat conftest.s >&5
28666 fi
28667 rm -f conftest.o conftest.s
28668 fi
28669 fi
28670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28671 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28672 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28673
28674 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28675
28676 fi
28677
28678 ;;
28679 riscv*-*-*)
28680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28681 $as_echo_n "checking assembler for .attribute support... " >&6; }
28682 if ${gcc_cv_as_riscv_attribute+:} false; then :
28683 $as_echo_n "(cached) " >&6
28684 else
28685 gcc_cv_as_riscv_attribute=no
28686 if test x$gcc_cv_as != x; then
28687 $as_echo '.attribute stack_align,4' > conftest.s
28688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28690 (eval $ac_try) 2>&5
28691 ac_status=$?
28692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28693 test $ac_status = 0; }; }
28694 then
28695 gcc_cv_as_riscv_attribute=yes
28696 else
28697 echo "configure: failed program was" >&5
28698 cat conftest.s >&5
28699 fi
28700 rm -f conftest.o conftest.s
28701 fi
28702 fi
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28704 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28705 if test $gcc_cv_as_riscv_attribute = yes; then
28706
28707 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28708
28709 fi
28710
28711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28712 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28713 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28714 $as_echo_n "(cached) " >&6
28715 else
28716 gcc_cv_as_riscv_isa_spec=no
28717 if test x$gcc_cv_as != x; then
28718 $as_echo '' > conftest.s
28719 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28721 (eval $ac_try) 2>&5
28722 ac_status=$?
28723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28724 test $ac_status = 0; }; }
28725 then
28726 gcc_cv_as_riscv_isa_spec=yes
28727 else
28728 echo "configure: failed program was" >&5
28729 cat conftest.s >&5
28730 fi
28731 rm -f conftest.o conftest.s
28732 fi
28733 fi
28734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28735 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28736 if test $gcc_cv_as_riscv_isa_spec = yes; then
28737
28738 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28739
28740 fi
28741
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28743 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28744 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28745 $as_echo_n "(cached) " >&6
28746 else
28747 gcc_cv_as_riscv_march_zifencei=no
28748 if test x$gcc_cv_as != x; then
28749 $as_echo '' > conftest.s
28750 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28752 (eval $ac_try) 2>&5
28753 ac_status=$?
28754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28755 test $ac_status = 0; }; }
28756 then
28757 gcc_cv_as_riscv_march_zifencei=yes
28758 else
28759 echo "configure: failed program was" >&5
28760 cat conftest.s >&5
28761 fi
28762 rm -f conftest.o conftest.s
28763 fi
28764 fi
28765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28766 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28767 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28768
28769 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28770
28771 fi
28772
28773 ;;
28774 loongarch*-*-*)
28775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28776 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28777 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
28778 $as_echo_n "(cached) " >&6
28779 else
28780 gcc_cv_as_loongarch_dtprelword=no
28781 if test x$gcc_cv_as != x; then
28782 $as_echo '' > conftest.s
28783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28785 (eval $ac_try) 2>&5
28786 ac_status=$?
28787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28788 test $ac_status = 0; }; }
28789 then
28790 .section .tdata,"awT",@progbits
28791 x:
28792 .word 2
28793 .text
28794 .dtprelword x+0x8000
28795 else
28796 echo "configure: failed program was" >&5
28797 cat conftest.s >&5
28798 fi
28799 rm -f conftest.o conftest.s
28800 fi
28801 fi
28802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
28803 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
28804
28805 if test $gcc_cv_as_loongarch_dtprelword != yes; then
28806
28807 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28808
28809 fi
28810 ;;
28811 s390*-*-*)
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28813 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28814 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28815 $as_echo_n "(cached) " >&6
28816 else
28817 gcc_cv_as_s390_gnu_attribute=no
28818 if test x$gcc_cv_as != x; then
28819 $as_echo '.gnu_attribute 8,1' > conftest.s
28820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28822 (eval $ac_try) 2>&5
28823 ac_status=$?
28824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28825 test $ac_status = 0; }; }
28826 then
28827 gcc_cv_as_s390_gnu_attribute=yes
28828 else
28829 echo "configure: failed program was" >&5
28830 cat conftest.s >&5
28831 fi
28832 rm -f conftest.o conftest.s
28833 fi
28834 fi
28835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28836 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28837 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28838
28839 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28840
28841 fi
28842
28843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28844 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28845 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28846 $as_echo_n "(cached) " >&6
28847 else
28848 gcc_cv_as_s390_machine_machinemode=no
28849 if test x$gcc_cv_as != x; then
28850 $as_echo ' .machinemode push
28851 .machinemode pop
28852 .machine push
28853 .machine pop' > conftest.s
28854 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28856 (eval $ac_try) 2>&5
28857 ac_status=$?
28858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28859 test $ac_status = 0; }; }
28860 then
28861 gcc_cv_as_s390_machine_machinemode=yes
28862 else
28863 echo "configure: failed program was" >&5
28864 cat conftest.s >&5
28865 fi
28866 rm -f conftest.o conftest.s
28867 fi
28868 fi
28869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28870 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28871 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28872
28873 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28874
28875 fi
28876
28877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28878 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28879 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28880 $as_echo_n "(cached) " >&6
28881 else
28882 gcc_cv_as_s390_architecture_modifiers=no
28883 if test x$gcc_cv_as != x; then
28884 $as_echo ' .machine z13+vx ' > conftest.s
28885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28887 (eval $ac_try) 2>&5
28888 ac_status=$?
28889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28890 test $ac_status = 0; }; }
28891 then
28892 gcc_cv_as_s390_architecture_modifiers=yes
28893 else
28894 echo "configure: failed program was" >&5
28895 cat conftest.s >&5
28896 fi
28897 rm -f conftest.o conftest.s
28898 fi
28899 fi
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28901 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28902 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28903
28904 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28905
28906 fi
28907
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28909 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28910 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28911 $as_echo_n "(cached) " >&6
28912 else
28913 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28914 if test x$gcc_cv_as != x; then
28915 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28916 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28918 (eval $ac_try) 2>&5
28919 ac_status=$?
28920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28921 test $ac_status = 0; }; }
28922 then
28923 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28924 else
28925 echo "configure: failed program was" >&5
28926 cat conftest.s >&5
28927 fi
28928 rm -f conftest.o conftest.s
28929 fi
28930 fi
28931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28932 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28933 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28934
28935 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28936
28937 fi
28938
28939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28940 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28941 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
28942 $as_echo_n "(cached) " >&6
28943 else
28944 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
28945 if test x$gcc_cv_as != x; then
28946 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28949 (eval $ac_try) 2>&5
28950 ac_status=$?
28951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28952 test $ac_status = 0; }; }
28953 then
28954 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
28955 else
28956 echo "configure: failed program was" >&5
28957 cat conftest.s >&5
28958 fi
28959 rm -f conftest.o conftest.s
28960 fi
28961 fi
28962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28963 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28964 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28965
28966 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
28967
28968 fi
28969
28970
28971 ;;
28972 esac
28973
28974 # Mips, LoongArch and HP-UX need the GNU assembler.
28975 # Linux on IA64 might be able to use the Intel assembler.
28976
28977 case "$target" in
28978 mips*-*-* | loongarch*-*-* | *-*-hpux* )
28979 if test x$gas_flag = xyes \
28980 || test x"$host" != x"$build" \
28981 || test ! -x "$gcc_cv_as" \
28982 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28983 :
28984 else
28985 echo "*** This configuration requires the GNU assembler" >&2
28986 exit 1
28987 fi
28988 ;;
28989 esac
28990
28991 # AMD GCN needs the LLVM assembler and linker.
28992 # Test that LLVM is at least 13.0.1.
28993 case "$target" in
28994 amdgcn-* | gcn-*)
28995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
28996 $as_echo_n "checking llvm assembler version... " >&6; }
28997 gcc_cv_as_version="unknown"
28998 if test x$gcc_cv_as != x; then
28999 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29000 case "$gcc_cv_as_version" in
29001 13.0.[1-9]*) ;; # 13.0.1+
29002 13.[1-9]*) ;; # 13.1+
29003 1[4-9]*) ;; # 14..19
29004 [2-9][0-9]*) ;; # 20..99
29005 [1-9][0-9][0-9]*) ;; # 100+
29006 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
29007 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29008 esac
29009 fi
29010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29011 $as_echo "$gcc_cv_as_version, ok" >&6; }
29012 ;;
29013 esac
29014
29015 case "$target" in
29016 arm*)
29017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29018 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29019 if ${gcc_cv_as_arm_option_extensions+:} false; then :
29020 $as_echo_n "(cached) " >&6
29021 else
29022 gcc_cv_as_arm_option_extensions=no
29023 if test x$gcc_cv_as != x; then
29024 $as_echo '.text
29025 .thumb
29026 .syntax unified
29027 vmov.f32 s0, s1' > conftest.s
29028 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29030 (eval $ac_try) 2>&5
29031 ac_status=$?
29032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29033 test $ac_status = 0; }; }
29034 then
29035 gcc_cv_as_arm_option_extensions=yes
29036 else
29037 echo "configure: failed program was" >&5
29038 cat conftest.s >&5
29039 fi
29040 rm -f conftest.o conftest.s
29041 fi
29042 fi
29043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29044 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29045 if test $gcc_cv_as_arm_option_extensions = yes; then
29046
29047 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29048
29049 fi
29050
29051 esac
29052
29053 # ??? Not all targets support dwarf2 debug_line, even within a version
29054 # of gas. Moreover, we need to emit a valid instruction to trigger any
29055 # info to the output file. So, as supported targets are added to gas 2.11,
29056 # add some instruction here to (also) show we expect this might work.
29057 # ??? Once 2.11 is released, probably need to add first known working
29058 # version to the per-target configury.
29059 case "$cpu_type" in
29060 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29061 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29062 | visium | xstormy16 | xtensa)
29063 insn="nop"
29064 ;;
29065 ia64 | s390)
29066 insn="nop 0"
29067 ;;
29068 mmix)
29069 insn="swym 0"
29070 ;;
29071 esac
29072 if test x"$insn" != x; then
29073 conftest_s="\
29074 .file 1 \"conftest.s\"
29075 .loc 1 3 0
29076 $insn"
29077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29078 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29079 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29080 $as_echo_n "(cached) " >&6
29081 else
29082 gcc_cv_as_dwarf2_debug_line=no
29083 if test x$gcc_cv_as != x; then
29084 $as_echo "$conftest_s" > conftest.s
29085 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29087 (eval $ac_try) 2>&5
29088 ac_status=$?
29089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29090 test $ac_status = 0; }; }
29091 then
29092 if test x$gcc_cv_objdump != x \
29093 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29094 | grep debug_line > /dev/null 2>&1; then
29095 gcc_cv_as_dwarf2_debug_line=yes
29096 elif test x$gcc_cv_otool != x \
29097 && $gcc_cv_otool -l conftest.o 2> /dev/null \
29098 | grep debug_line > /dev/null 2>&1; then
29099 gcc_cv_as_dwarf2_debug_line=yes
29100 fi
29101 else
29102 echo "configure: failed program was" >&5
29103 cat conftest.s >&5
29104 fi
29105 rm -f conftest.o conftest.s
29106 fi
29107 fi
29108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29109 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29110
29111
29112
29113 # The .debug_line file table must be in the exact order that
29114 # we specified the files, since these indices are also used
29115 # by DW_AT_decl_file. Approximate this test by testing if
29116 # the assembler bitches if the same index is assigned twice.
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29118 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29119 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29120 $as_echo_n "(cached) " >&6
29121 else
29122 gcc_cv_as_dwarf2_file_buggy=no
29123 if test x$gcc_cv_as != x; then
29124 $as_echo ' .file 1 "foo.s"
29125 .file 1 "bar.s"' > conftest.s
29126 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29128 (eval $ac_try) 2>&5
29129 ac_status=$?
29130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29131 test $ac_status = 0; }; }
29132 then
29133 gcc_cv_as_dwarf2_file_buggy=yes
29134 else
29135 echo "configure: failed program was" >&5
29136 cat conftest.s >&5
29137 fi
29138 rm -f conftest.o conftest.s
29139 fi
29140 fi
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29142 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29143
29144
29145
29146 if test $gcc_cv_as_dwarf2_debug_line = yes \
29147 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29148
29149 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29150
29151
29152 if test $gcc_cv_as_leb128 = yes; then
29153 conftest_s="\
29154 .file 1 \"conftest.s\"
29155 .loc 1 3 0 view .LVU1
29156 $insn
29157 .data
29158 .uleb128 .LVU1
29159 .uleb128 .LVU1
29160 "
29161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29162 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29163 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29164 $as_echo_n "(cached) " >&6
29165 else
29166 gcc_cv_as_dwarf2_debug_view=no
29167 if test x$gcc_cv_as != x; then
29168 $as_echo "$conftest_s" > conftest.s
29169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29171 (eval $ac_try) 2>&5
29172 ac_status=$?
29173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29174 test $ac_status = 0; }; }
29175 then
29176 gcc_cv_as_dwarf2_debug_view=yes
29177 else
29178 echo "configure: failed program was" >&5
29179 cat conftest.s >&5
29180 fi
29181 rm -f conftest.o conftest.s
29182 fi
29183 fi
29184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29185 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29186 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29187
29188 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29189
29190 fi
29191
29192 fi
29193 fi
29194
29195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29196 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29197 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29198 $as_echo_n "(cached) " >&6
29199 else
29200 gcc_cv_as_gdwarf2_flag=no
29201 if test x$gcc_cv_as != x; then
29202 $as_echo "$insn" > conftest.s
29203 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29205 (eval $ac_try) 2>&5
29206 ac_status=$?
29207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29208 test $ac_status = 0; }; }
29209 then
29210 gcc_cv_as_gdwarf2_flag=yes
29211 else
29212 echo "configure: failed program was" >&5
29213 cat conftest.s >&5
29214 fi
29215 rm -f conftest.o conftest.s
29216 fi
29217 fi
29218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29219 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29220 if test $gcc_cv_as_gdwarf2_flag = yes; then
29221
29222 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29223
29224 fi
29225
29226
29227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29228 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29229 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29230 $as_echo_n "(cached) " >&6
29231 else
29232 gcc_cv_as_gdwarf_5_flag=no
29233 if test x$gcc_cv_as != x; then
29234 $as_echo "$insn" > conftest.s
29235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29237 (eval $ac_try) 2>&5
29238 ac_status=$?
29239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29240 test $ac_status = 0; }; }
29241 then
29242 if test x$gcc_cv_objdump != x \
29243 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29244 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29245 gcc_cv_as_gdwarf_5_flag=yes;
29246 fi
29247 else
29248 echo "configure: failed program was" >&5
29249 cat conftest.s >&5
29250 fi
29251 rm -f conftest.o conftest.s
29252 fi
29253 fi
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29255 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29256 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29257
29258 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29259
29260 fi
29261
29262
29263 case $target_os in
29264 win32 | pe | cygwin* | mingw32*)
29265 section_flags=\"dr\"
29266 function_type=".def foo; .scl 2; .type 32; .endef"
29267 function_size="";;
29268 *)
29269 section_flags=\"\",%progbits
29270 function_type=".type foo, %function"
29271 function_size=".size foo, .-foo";;
29272 esac
29273 dwarf4_debug_info_size=0x46
29274 dwarf4_high_pc_form=7
29275 dwarf4_debug_aranges_size=0x2c
29276 dwarf4_line_sz=9
29277 for dwarf4_addr_size in 8 4; do
29278 conftest_s="\
29279 .file \"a.c\"
29280 .text
29281 .Ltext0:
29282 .p2align 4
29283 .globl foo
29284 $function_type
29285 foo:
29286 .LFB0:
29287 .LM1:
29288 $insn
29289 .LM2:
29290 .LFE0:
29291 $function_size
29292 .Letext0:
29293 .section .debug_info,$section_flags
29294 .Ldebug_info0:
29295 .4byte $dwarf4_debug_info_size
29296 .2byte 0x4
29297 .4byte .Ldebug_abbrev0
29298 .byte 0x$dwarf4_addr_size
29299 .byte 0x1
29300 .ascii \"GNU C17\\0\"
29301 .byte 0xc
29302 .ascii \"a.c\\0\"
29303 .ascii \"/\\0\"
29304 .${dwarf4_addr_size}byte .Ltext0
29305 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29306 .4byte .Ldebug_line0
29307 .byte 0x2
29308 .ascii \"foo\\0\"
29309 .byte 0x1
29310 .byte 0x2
29311 .byte 0x1
29312 .${dwarf4_addr_size}byte .LFB0
29313 .${dwarf4_addr_size}byte .LFE0-.LFB0
29314 .byte 0x1
29315 .byte 0x9c
29316 .byte 0
29317 .section .debug_abbrev,$section_flags
29318 .Ldebug_abbrev0:
29319 .byte 0x1
29320 .byte 0x11
29321 .byte 0x1
29322 .byte 0x25
29323 .byte 0x8
29324 .byte 0x13
29325 .byte 0xb
29326 .byte 0x3
29327 .byte 0x8
29328 .byte 0x1b
29329 .byte 0x8
29330 .byte 0x11
29331 .byte 0x1
29332 .byte 0x12
29333 .byte 0x$dwarf4_high_pc_form
29334 .byte 0x10
29335 .byte 0x17
29336 .byte 0
29337 .byte 0
29338 .byte 0x2
29339 .byte 0x2e
29340 .byte 0
29341 .byte 0x3f
29342 .byte 0x19
29343 .byte 0x3
29344 .byte 0x8
29345 .byte 0x3a
29346 .byte 0xb
29347 .byte 0x3b
29348 .byte 0xb
29349 .byte 0x39
29350 .byte 0xb
29351 .byte 0x11
29352 .byte 0x1
29353 .byte 0x12
29354 .byte 0x$dwarf4_high_pc_form
29355 .byte 0x40
29356 .byte 0x18
29357 .byte 0
29358 .byte 0
29359 .byte 0
29360 .section .debug_aranges,$section_flags
29361 .4byte $dwarf4_debug_aranges_size
29362 .2byte 0x2
29363 .4byte .Ldebug_info0
29364 .byte 0x8
29365 .byte 0
29366 .2byte 0
29367 .2byte 0
29368 .${dwarf4_addr_size}byte .Ltext0
29369 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29370 .${dwarf4_addr_size}byte 0
29371 .${dwarf4_addr_size}byte 0
29372 .section .debug_line,$section_flags
29373 .Ldebug_line0:
29374 .4byte .LELT0-.LSLT0
29375 .LSLT0:
29376 .2byte 0x4
29377 .4byte .LELTP0-.LASLTP0
29378 .LASLTP0:
29379 .byte 0x1
29380 .byte 0x1
29381 .byte 0x1
29382 .byte 0xf6
29383 .byte 0xf2
29384 .byte 0xd
29385 .byte 0
29386 .byte 0x1
29387 .byte 0x1
29388 .byte 0x1
29389 .byte 0x1
29390 .byte 0
29391 .byte 0
29392 .byte 0
29393 .byte 0x1
29394 .byte 0
29395 .byte 0
29396 .byte 0x1
29397 .byte 0
29398 .ascii \"a.c\\0\"
29399 .byte 0
29400 .byte 0
29401 .byte 0
29402 .byte 0
29403 .LELTP0:
29404 .byte 0
29405 .byte 0x$dwarf4_line_sz
29406 .byte 0x2
29407 .${dwarf4_addr_size}byte .LM1
29408 .byte 0x18
29409 .byte 0x5
29410 .byte 0x1
29411 .byte 0
29412 .byte 0x$dwarf4_line_sz
29413 .byte 0x2
29414 .${dwarf4_addr_size}byte .LM2
29415 .byte 0x1
29416 .byte 0x5
29417 .byte 0x1
29418 .byte 0
29419 .byte 0x$dwarf4_line_sz
29420 .byte 0x2
29421 .${dwarf4_addr_size}byte .Letext0
29422 .byte 0
29423 .byte 0x1
29424 .byte 0x1
29425 .LELT0:
29426 .section .debug_str,$section_flags
29427 .ident \"GCC\"
29428 "
29429 dwarf4_success=no
29430 if test $dwarf4_addr_size = 4; then
29431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29432 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29433 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29434 $as_echo_n "(cached) " >&6
29435 else
29436 gcc_cv_as_debug_line_32_flag=no
29437 if test x$gcc_cv_as != x; then
29438 $as_echo "$conftest_s" > conftest.s
29439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29441 (eval $ac_try) 2>&5
29442 ac_status=$?
29443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29444 test $ac_status = 0; }; }
29445 then
29446 gcc_cv_as_debug_line_32_flag=yes
29447 else
29448 echo "configure: failed program was" >&5
29449 cat conftest.s >&5
29450 fi
29451 rm -f conftest.o conftest.s
29452 fi
29453 fi
29454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29455 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29456 if test $gcc_cv_as_debug_line_32_flag = yes; then
29457 dwarf4_success=yes
29458 fi
29459
29460 else
29461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29462 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29463 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29464 $as_echo_n "(cached) " >&6
29465 else
29466 gcc_cv_as_debug_line_64_flag=no
29467 if test x$gcc_cv_as != x; then
29468 $as_echo "$conftest_s" > conftest.s
29469 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29471 (eval $ac_try) 2>&5
29472 ac_status=$?
29473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29474 test $ac_status = 0; }; }
29475 then
29476 gcc_cv_as_debug_line_64_flag=yes
29477 else
29478 echo "configure: failed program was" >&5
29479 cat conftest.s >&5
29480 fi
29481 rm -f conftest.o conftest.s
29482 fi
29483 fi
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29485 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29486 if test $gcc_cv_as_debug_line_64_flag = yes; then
29487 dwarf4_success=yes
29488 fi
29489
29490 fi
29491 if test $dwarf4_success = yes; then
29492 dwarf4_success=no
29493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29494 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29495 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29496 $as_echo_n "(cached) " >&6
29497 else
29498 gcc_cv_as_dwarf_4_debug_line_flag=no
29499 if test x$gcc_cv_as != x; then
29500 $as_echo "$conftest_s" > conftest.s
29501 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29503 (eval $ac_try) 2>&5
29504 ac_status=$?
29505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29506 test $ac_status = 0; }; }
29507 then
29508 gcc_cv_as_dwarf_4_debug_line_flag=yes
29509 else
29510 echo "configure: failed program was" >&5
29511 cat conftest.s >&5
29512 fi
29513 rm -f conftest.o conftest.s
29514 fi
29515 fi
29516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29517 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29518 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29519 dwarf4_success=yes
29520 fi
29521
29522 break
29523 fi
29524 dwarf4_debug_info_size=0x36
29525 dwarf4_high_pc_form=6
29526 dwarf4_debug_aranges_size=0x1c
29527 dwarf4_line_sz=5
29528 done
29529
29530 if test $dwarf4_success = yes; then
29531 conftest_s="\
29532 .file \"foo.c\"
29533 .text
29534 bar:
29535 #APP
29536 # 82 \"xxx.h\" 1
29537 $insn
29538 # 0 \"\" 2
29539 #NO_APP
29540 $insn
29541 foo:
29542 .file 1 \"foo.c\"
29543 $insn
29544 .file 2 \"foo.h\"
29545 ret
29546 "
29547 dwarf4_success=no
29548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29549 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29550 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29551 $as_echo_n "(cached) " >&6
29552 else
29553 gcc_cv_as_dwarf_4_app_flag=no
29554 if test x$gcc_cv_as != x; then
29555 $as_echo "$conftest_s" > conftest.s
29556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29558 (eval $ac_try) 2>&5
29559 ac_status=$?
29560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29561 test $ac_status = 0; }; }
29562 then
29563 gcc_cv_as_dwarf_4_app_flag=yes
29564 else
29565 echo "configure: failed program was" >&5
29566 cat conftest.s >&5
29567 fi
29568 rm -f conftest.o conftest.s
29569 fi
29570 fi
29571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29572 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29573 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29574 dwarf4_success=yes
29575 fi
29576
29577 fi
29578
29579 if test $dwarf4_success = yes; then
29580 conftest_s="\
29581 .text
29582 .globl foo
29583 $function_type
29584 foo:
29585 $insn
29586 $function_size
29587 .file 1 \"foo.c\"
29588 "
29589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29590 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29591 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29592 $as_echo_n "(cached) " >&6
29593 else
29594 gcc_cv_as_working_gdwarf_n_flag=no
29595 if test x$gcc_cv_as != x; then
29596 $as_echo "$conftest_s" > conftest.s
29597 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29599 (eval $ac_try) 2>&5
29600 ac_status=$?
29601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29602 test $ac_status = 0; }; }
29603 then
29604 if test x$gcc_cv_objdump != x \
29605 && $gcc_cv_objdump -W conftest.o 2>&1 \
29606 | grep conftest.s > /dev/null 2>&1; then
29607 gcc_cv_as_working_gdwarf_n_flag=no
29608 else
29609 gcc_cv_as_working_gdwarf_n_flag=yes
29610 fi
29611 else
29612 echo "configure: failed program was" >&5
29613 cat conftest.s >&5
29614 fi
29615 rm -f conftest.o conftest.s
29616 fi
29617 fi
29618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29619 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29620
29621
29622 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29623
29624 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29625
29626 fi
29627 fi
29628
29629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
29630 $as_echo_n "checking assembler for --gstabs option... " >&6; }
29631 if ${gcc_cv_as_gstabs_flag+:} false; then :
29632 $as_echo_n "(cached) " >&6
29633 else
29634 gcc_cv_as_gstabs_flag=no
29635 if test x$gcc_cv_as != x; then
29636 $as_echo "$insn" > conftest.s
29637 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
29638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29639 (eval $ac_try) 2>&5
29640 ac_status=$?
29641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29642 test $ac_status = 0; }; }
29643 then
29644 gcc_cv_as_gstabs_flag=yes
29645 else
29646 echo "configure: failed program was" >&5
29647 cat conftest.s >&5
29648 fi
29649 rm -f conftest.o conftest.s
29650 fi
29651 fi
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
29653 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
29654 if test $gcc_cv_as_gstabs_flag = yes; then
29655
29656 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
29657
29658 fi
29659
29660
29661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29662 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29663 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29664 $as_echo_n "(cached) " >&6
29665 else
29666 gcc_cv_as_debug_prefix_map_flag=no
29667 if test x$gcc_cv_as != x; then
29668 $as_echo "$insn" > conftest.s
29669 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29671 (eval $ac_try) 2>&5
29672 ac_status=$?
29673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29674 test $ac_status = 0; }; }
29675 then
29676 gcc_cv_as_debug_prefix_map_flag=yes
29677 else
29678 echo "configure: failed program was" >&5
29679 cat conftest.s >&5
29680 fi
29681 rm -f conftest.o conftest.s
29682 fi
29683 fi
29684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29685 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29686 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29687
29688 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29689
29690 fi
29691
29692 fi
29693
29694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29695 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29696 if ${gcc_cv_as_compress_debug+:} false; then :
29697 $as_echo_n "(cached) " >&6
29698 else
29699 gcc_cv_as_compress_debug=no
29700 if test x$gcc_cv_as != x; then
29701 $as_echo '' > conftest.s
29702 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29704 (eval $ac_try) 2>&5
29705 ac_status=$?
29706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29707 test $ac_status = 0; }; }
29708 then
29709 # gas compiled without zlib cannot compress debug sections and warns
29710 # about it, but still exits successfully. So check for this, too.
29711 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29712 then
29713 gcc_cv_as_compress_debug=0
29714 # Since binutils 2.26, gas supports --compress-debug-sections=type,
29715 # defaulting to the ELF gABI format.
29716 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
29717 then
29718 gcc_cv_as_compress_debug=2
29719 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29720 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29721 # Before binutils 2.26, gas only supported --compress-debug-options and
29722 # emitted the traditional GNU format.
29723 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
29724 then
29725 gcc_cv_as_compress_debug=1
29726 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29727 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29728 else
29729 gcc_cv_as_compress_debug=0
29730 fi
29731 else
29732 echo "configure: failed program was" >&5
29733 cat conftest.s >&5
29734 fi
29735 rm -f conftest.o conftest.s
29736 fi
29737 fi
29738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29739 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29740
29741
29742
29743 cat >>confdefs.h <<_ACEOF
29744 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29745 _ACEOF
29746
29747
29748 cat >>confdefs.h <<_ACEOF
29749 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29750 _ACEOF
29751
29752
29753 cat >>confdefs.h <<_ACEOF
29754 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29755 _ACEOF
29756
29757
29758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29759 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29760 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29761 $as_echo_n "(cached) " >&6
29762 else
29763 gcc_cv_as_lcomm_with_alignment=no
29764 if test x$gcc_cv_as != x; then
29765 $as_echo '.lcomm bar,4,16' > conftest.s
29766 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29768 (eval $ac_try) 2>&5
29769 ac_status=$?
29770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29771 test $ac_status = 0; }; }
29772 then
29773 gcc_cv_as_lcomm_with_alignment=yes
29774 else
29775 echo "configure: failed program was" >&5
29776 cat conftest.s >&5
29777 fi
29778 rm -f conftest.o conftest.s
29779 fi
29780 fi
29781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29782 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29783 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29784
29785 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29786
29787 fi
29788
29789
29790 if test x$with_sysroot = x && test x$host = x$target \
29791 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29792 && test "$prefix" != "NONE"; then
29793
29794 cat >>confdefs.h <<_ACEOF
29795 #define PREFIX_INCLUDE_DIR "$prefix/include"
29796 _ACEOF
29797
29798 fi
29799
29800 # Determine the version of glibc, if any, used on the target.
29801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29802 $as_echo_n "checking for target glibc version... " >&6; }
29803
29804 # Check whether --with-glibc-version was given.
29805 if test "${with_glibc_version+set}" = set; then :
29806 withval=$with_glibc_version;
29807 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29808 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29809 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29810 else
29811 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
29812 fi
29813 else
29814
29815 glibc_version_major=0
29816 glibc_version_minor=0
29817 if test -f $target_header_dir/features.h \
29818 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29819 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29820 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29821 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29822 fi
29823 fi
29824
29825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29826 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29827
29828 cat >>confdefs.h <<_ACEOF
29829 #define TARGET_GLIBC_MAJOR $glibc_version_major
29830 _ACEOF
29831
29832
29833 cat >>confdefs.h <<_ACEOF
29834 #define TARGET_GLIBC_MINOR $glibc_version_minor
29835 _ACEOF
29836
29837
29838 # Check whether --enable-gnu-unique-object was given.
29839 if test "${enable_gnu_unique_object+set}" = set; then :
29840 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29841 yes | no) ;;
29842 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29843 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29844 esac
29845 else
29846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29847 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29848 if ${gcc_cv_as_gnu_unique_object+:} false; then :
29849 $as_echo_n "(cached) " >&6
29850 else
29851 gcc_cv_as_gnu_unique_object=no
29852 if test x$gcc_cv_as != x; then
29853 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29854 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29856 (eval $ac_try) 2>&5
29857 ac_status=$?
29858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29859 test $ac_status = 0; }; }
29860 then
29861 gcc_cv_as_gnu_unique_object=yes
29862 else
29863 echo "configure: failed program was" >&5
29864 cat conftest.s >&5
29865 fi
29866 rm -f conftest.o conftest.s
29867 fi
29868 fi
29869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29870 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29871 if test $gcc_cv_as_gnu_unique_object = yes; then
29872 # We need to unquote above to to use the definition from config.gcc.
29873 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29874
29875 if test $glibc_version_major -gt 2 \
29876 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29877 enable_gnu_unique_object=yes
29878 fi
29879
29880 fi
29881
29882 fi
29883
29884 if test x$enable_gnu_unique_object = xyes; then
29885
29886 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29887
29888 fi
29889
29890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29891 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29892 if ${gcc_cv_as_line_zero+:} false; then :
29893 $as_echo_n "(cached) " >&6
29894 else
29895 gcc_cv_as_line_zero=no
29896 if test "x$gcc_cv_as" != x; then
29897 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29898 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29900 (eval $ac_try) 2>&5
29901 ac_status=$?
29902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29903 test $ac_status = 0; }; } &&
29904 test "x`cat conftest.out`" = x
29905 then
29906 gcc_cv_as_line_zero=yes
29907 else
29908 echo "configure: failed program was" >&5
29909 cat conftest.s >&5
29910 echo "configure: error output was" >&5
29911 cat conftest.out >&5
29912 fi
29913 rm -f conftest.o conftest.s conftest.out
29914 fi
29915 fi
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29917 $as_echo "$gcc_cv_as_line_zero" >&6; }
29918 if test "x$gcc_cv_as_line_zero" = xyes; then
29919
29920 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29921
29922 fi
29923
29924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29925 $as_echo_n "checking support for thin archives... " >&6; }
29926 thin_archive_support=no
29927 echo 'int main (void) { return 0; }' > conftest.c
29928 if ($AR --version | sed 1q | grep "GNU ar" \
29929 && $CC $CFLAGS -c conftest.c \
29930 && $AR rcT conftest.a conftest.o \
29931 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
29932 thin_archive_support=yes
29933 fi
29934 rm -f conftest.c conftest.o conftest.a conftest
29935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29936 $as_echo "$thin_archive_support" >&6; }
29937
29938
29939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29940 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29941 gcc_cv_ld_eh_frame_hdr=no
29942 if test $in_tree_ld = yes ; then
29943 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 \
29944 && test $in_tree_ld_is_elf = yes; then
29945 gcc_cv_ld_eh_frame_hdr=yes
29946 fi
29947 elif test x$gcc_cv_ld != x; then
29948 if echo "$ld_ver" | grep GNU > /dev/null; then
29949 # Check if linker supports --eh-frame-hdr option
29950 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
29951 gcc_cv_ld_eh_frame_hdr=yes
29952 fi
29953 else
29954 case "$target" in
29955 *-*-solaris2*)
29956 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
29957 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
29958 gcc_cv_ld_eh_frame_hdr=yes
29959 fi
29960 ;;
29961 esac
29962 fi
29963 fi
29964
29965 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
29966
29967 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
29968
29969 fi
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
29971 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
29972
29973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
29974 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
29975 gcc_cv_ld_eh_frame_ciev3=no
29976 if test $in_tree_ld = yes ; then
29977 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 \
29978 && test $in_tree_ld_is_elf = yes; then
29979 gcc_cv_ld_eh_frame_ciev3=yes
29980 fi
29981 elif test x$gcc_cv_ld != x; then
29982 if echo "$ld_ver" | grep GNU > /dev/null; then
29983 gcc_cv_ld_eh_frame_ciev3=yes
29984 if test 0"$ld_date" -lt 20040513; then
29985 if test -n "$ld_date"; then
29986 # If there was date string, but was earlier than 2004-05-13, fail
29987 gcc_cv_ld_eh_frame_ciev3=no
29988 elif test "$ld_vers_major" -lt 2; then
29989 gcc_cv_ld_eh_frame_ciev3=no
29990 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
29991 gcc_cv_ld_eh_frame_ciev3=no
29992 fi
29993 fi
29994 else
29995 case "$target" in
29996 *-*-solaris2*)
29997 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
29998 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
29999 gcc_cv_ld_eh_frame_ciev3=yes
30000 fi
30001 ;;
30002 esac
30003 fi
30004 fi
30005
30006 cat >>confdefs.h <<_ACEOF
30007 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30008 _ACEOF
30009
30010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30011 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30012
30013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30014 $as_echo_n "checking linker position independent executable support... " >&6; }
30015 gcc_cv_ld_pie=no
30016 if test $in_tree_ld = yes ; then
30017 case "$target" in
30018 # Full PIE support on Solaris was only introduced in gld 2.26.
30019 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
30020 *) gcc_gld_pie_min_version=15 ;;
30021 esac
30022 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 \
30023 && test $in_tree_ld_is_elf = yes; then
30024 gcc_cv_ld_pie=yes
30025 fi
30026 elif test x$gcc_cv_ld != x; then
30027 # Check if linker supports -pie option
30028 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
30029 gcc_cv_ld_pie=yes
30030 case "$target" in
30031 *-*-solaris2*)
30032 if echo "$ld_ver" | grep GNU > /dev/null \
30033 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30034 gcc_cv_ld_pie=no
30035 fi
30036 ;;
30037 esac
30038 else
30039 case "$target" in
30040 *-*-solaris2.1[1-9]*)
30041 # Solaris 11.3 added PIE support.
30042 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
30043 gcc_cv_ld_pie=yes
30044 fi
30045 ;;
30046 esac
30047 fi
30048 fi
30049 if test x"$gcc_cv_ld_pie" = xyes; then
30050
30051 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30052
30053 fi
30054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30055 $as_echo "$gcc_cv_ld_pie" >&6; }
30056
30057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30058 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30059 gcc_cv_ld_pie_copyreloc=no
30060 if test $gcc_cv_ld_pie = yes ; then
30061 if test $in_tree_ld = yes ; then
30062 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
30063 gcc_cv_ld_pie_copyreloc=yes
30064 fi
30065 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30066 # Check if linker supports -pie option with copy reloc
30067 case "$target" in
30068 i?86-*-linux* | x86_64-*-linux*)
30069 cat > conftest1.s <<EOF
30070 .globl a_glob
30071 .data
30072 .type a_glob, @object
30073 .size a_glob, 4
30074 a_glob:
30075 .long 2
30076 EOF
30077 cat > conftest2.s <<EOF
30078 .text
30079 .globl main
30080 .type main, @function
30081 main:
30082 movl %eax, a_glob(%rip)
30083 .size main, .-main
30084 .globl ptr
30085 .section .data.rel,"aw",@progbits
30086 .type ptr, @object
30087 ptr:
30088 .quad a_glob
30089 EOF
30090 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30091 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
30092 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30093 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
30094 gcc_cv_ld_pie_copyreloc=yes
30095 fi
30096 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30097 ;;
30098 esac
30099 fi
30100 fi
30101
30102 cat >>confdefs.h <<_ACEOF
30103 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30104 _ACEOF
30105
30106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30107 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30108
30109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30110 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30111 gcc_cv_ld_eh_gc_sections=no
30112 if test $in_tree_ld = yes ; then
30113 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 \
30114 && test $in_tree_ld_is_elf = yes; then
30115 gcc_cv_ld_eh_gc_sections=yes
30116 fi
30117 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
30118 cat > conftest.s <<EOF
30119 .section .text
30120 .globl _start
30121 .type _start, @function
30122 _start:
30123 .long foo
30124 .size _start, .-_start
30125 .section .text.foo,"ax",@progbits
30126 .type foo, @function
30127 foo:
30128 .long 0
30129 .size foo, .-foo
30130 .section .gcc_except_table.foo,"a",@progbits
30131 .L0:
30132 .long 0
30133 .section .eh_frame,"a",@progbits
30134 .long .L0
30135 EOF
30136 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30137 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30138 | grep "gc-sections option ignored" > /dev/null; then
30139 gcc_cv_ld_eh_gc_sections=no
30140 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30141 | grep gcc_except_table > /dev/null; then
30142 gcc_cv_ld_eh_gc_sections=yes
30143 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30144 if test x$gcc_cv_as_comdat_group != xyes; then
30145 gcc_cv_ld_eh_gc_sections=no
30146 cat > conftest.s <<EOF
30147 .section .text
30148 .globl _start
30149 .type _start, @function
30150 _start:
30151 .long foo
30152 .size _start, .-_start
30153 .section .gnu.linkonce.t.foo,"ax",@progbits
30154 .type foo, @function
30155 foo:
30156 .long 0
30157 .size foo, .-foo
30158 .section .gcc_except_table.foo,"a",@progbits
30159 .L0:
30160 .long 0
30161 .section .eh_frame,"a",@progbits
30162 .long .L0
30163 EOF
30164 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30165 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30166 | grep "gc-sections option ignored" > /dev/null; then
30167 gcc_cv_ld_eh_gc_sections=no
30168 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30169 | grep gcc_except_table > /dev/null; then
30170 gcc_cv_ld_eh_gc_sections=yes
30171 fi
30172 fi
30173 fi
30174 fi
30175 fi
30176 rm -f conftest.s conftest.o conftest
30177 fi
30178 case "$target" in
30179 hppa*-*-linux*)
30180 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30181 gcc_cv_ld_eh_gc_sections=no
30182 ;;
30183 esac
30184 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30185
30186 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30187
30188 fi
30189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30190 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30191
30192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30193 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30194 gcc_cv_ld_eh_gc_sections_bug=no
30195 if test $in_tree_ld = yes ; then
30196 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 \
30197 && test $in_tree_ld_is_elf = yes; then
30198 gcc_cv_ld_eh_gc_sections_bug=yes
30199 fi
30200 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
30201 gcc_cv_ld_eh_gc_sections_bug=yes
30202 cat > conftest.s <<EOF
30203 .section .text
30204 .globl _start
30205 .type _start, @function
30206 _start:
30207 .long foo
30208 .size _start, .-_start
30209 .section .text.startup.foo,"ax",@progbits
30210 .type foo, @function
30211 foo:
30212 .long 0
30213 .size foo, .-foo
30214 .section .gcc_except_table.foo,"a",@progbits
30215 .L0:
30216 .long 0
30217 .section .eh_frame,"a",@progbits
30218 .long .L0
30219 EOF
30220 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30221 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30222 | grep "gc-sections option ignored" > /dev/null; then
30223 :
30224 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30225 | grep gcc_except_table > /dev/null; then
30226 gcc_cv_ld_eh_gc_sections_bug=no
30227 fi
30228 fi
30229 rm -f conftest.s conftest.o conftest
30230 fi
30231 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30232
30233 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30234
30235 fi
30236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30237 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30238
30239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30240 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30241 # gold/gld support compressed debug sections since binutils 2.19/2.21
30242 # In binutils 2.26, gld gained support for the ELF gABI format.
30243 if test $in_tree_ld = yes ; then
30244 gcc_cv_ld_compress_debug=0
30245 if test $ld_is_mold = yes; then
30246 gcc_cv_ld_compress_debug=3
30247 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30248 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
30249 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
30250 gcc_cv_ld_compress_debug=2
30251 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30252 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
30253 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
30254 gcc_cv_ld_compress_debug=3
30255 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30256 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
30257 && test $in_tree_ld_is_elf = yes; then
30258 gcc_cv_ld_compress_debug=1
30259 fi
30260 elif echo "$ld_ver" | grep GNU > /dev/null; then
30261 if test $ld_is_mold = yes; then
30262 gcc_cv_ld_compress_debug=3
30263 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30264 elif test "$ld_vers_major" -lt 2 \
30265 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
30266 gcc_cv_ld_compress_debug=0
30267 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30268 gcc_cv_ld_compress_debug=1
30269 else
30270 gcc_cv_ld_compress_debug=3
30271 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30272 fi
30273 if test $ld_is_gold = yes; then
30274 gcc_cv_ld_compress_debug=2
30275 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30276 fi
30277 else
30278 case "${target}" in
30279 *-*-solaris2*)
30280 # Introduced in Solaris 11.2.
30281 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30282 gcc_cv_ld_compress_debug=3
30283 gcc_cv_ld_compress_debug_option="-z compress-sections"
30284 else
30285 gcc_cv_ld_compress_debug=0
30286 fi
30287 ;;
30288 *)
30289 # Assume linkers other than GNU ld don't support compessed debug
30290 # sections.
30291 gcc_cv_ld_compress_debug=0
30292 ;;
30293 esac
30294 fi
30295
30296 cat >>confdefs.h <<_ACEOF
30297 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30298 _ACEOF
30299
30300
30301 cat >>confdefs.h <<_ACEOF
30302 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30303 _ACEOF
30304
30305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30306 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30307
30308 if test x"$ld64_flag" = x"yes"; then
30309
30310 # Set defaults for possibly untestable items.
30311 gcc_cv_ld64_export_dynamic=0
30312 gcc_cv_ld64_platform_version=0
30313
30314 if test "$build" = "$host"; then
30315 darwin_try_test=1
30316 else
30317 darwin_try_test=0
30318 fi
30319
30320 # On Darwin, because of FAT library support, it is often possible to execute
30321 # exes from compatible archs even when the host differs from the build system.
30322 case "$build","$host" in
30323 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30324 darwin_try_test=1;;
30325 *) ;;
30326 esac
30327
30328 # If the configurer specified a minimum ld64 version to be supported, then use
30329 # that to determine feature support.
30330 if test x"${gcc_cv_ld64_version}" != x; then
30331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30332 $as_echo_n "checking ld64 specified version... " >&6; }
30333 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30335 $as_echo "$gcc_cv_ld64_major" >&6; }
30336 if test "$gcc_cv_ld64_major" -ge 236; then
30337 gcc_cv_ld64_export_dynamic=1
30338 fi
30339 if test "$gcc_cv_ld64_major" -ge 512; then
30340 gcc_cv_ld64_platform_version=1
30341 fi
30342 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30343 # If the version was not specified, try to find it.
30344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30345 $as_echo_n "checking linker version... " >&6; }
30346 if test x"${gcc_cv_ld64_version}" = x; then
30347 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30348 fi
30349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30350 $as_echo "$gcc_cv_ld64_version" >&6; }
30351
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30353 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30354 gcc_cv_ld64_export_dynamic=1
30355 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30356 gcc_cv_ld64_export_dynamic=0
30357 fi
30358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30359 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30360
30361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30362 $as_echo_n "checking linker for -platform_version support... " >&6; }
30363 gcc_cv_ld64_platform_version=1
30364 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30365 gcc_cv_ld64_platform_version=0
30366 fi
30367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30368 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30369 fi
30370
30371 if test x"${gcc_cv_ld64_version}" != x; then
30372
30373 cat >>confdefs.h <<_ACEOF
30374 #define LD64_VERSION "${gcc_cv_ld64_version}"
30375 _ACEOF
30376
30377 fi
30378
30379
30380 cat >>confdefs.h <<_ACEOF
30381 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30382 _ACEOF
30383
30384
30385
30386 cat >>confdefs.h <<_ACEOF
30387 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30388 _ACEOF
30389
30390 fi
30391
30392 if test x"$dsymutil_flag" = x"yes"; then
30393
30394 # If the user specified a dsymutil path, then we will already have the
30395 # version string, otherwise, pick it up.
30396 if test x"$gcc_cv_dsymutil" = x; then
30397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30398 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30399 dsymutil_vers="tool unspecified"
30400 elif test x"$dsymutil_vers" = x; then
30401 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30402 fi
30403
30404 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30406 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30407 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30408 dsymutil_kind=DWARFUTILS
30409 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30410 elif echo $dsymutil_temp | grep clang- > /dev/null; then
30411 dsymutil_kind=CLANG
30412 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30413 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30414 dsymutil_kind=LLVM
30415 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30416 else
30417 dsymutil_kind=UNKNOWN
30418 dsymutil_vers="0.0"
30419 fi
30420 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30421 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30422 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30423 if test x"${dsymutil_minor}" = x; then
30424 dsymutil_minor=0
30425 fi
30426 if test x"${dsymutil_tiny}" = x; then
30427 dsymutil_tiny=0
30428 fi
30429
30430 cat >>confdefs.h <<_ACEOF
30431 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30432 _ACEOF
30433
30434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30435 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30436 fi
30437
30438 case $target_os in
30439 win32 | pe | cygwin* | mingw32*)
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30441 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30442 gcc_cv_ld_broken_pe_dwarf5=yes
30443 if test $in_tree_ld = yes ; then
30444 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30445 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30446 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30447 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30448 gcc_cv_ld_broken_pe_dwarf5=no
30449 fi
30450 else
30451 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30452 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30453 gcc_cv_ld_broken_pe_dwarf5=no
30454 fi
30455 fi
30456 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30457
30458 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30459
30460 fi
30461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30462 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30463
30464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30465 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30466 gcc_cv_ld_disable_dynamicbase=no
30467 if test $in_tree_ld = yes; then
30468 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 \
30469 gcc_cv_ld_disable_dynamicbase=yes
30470 fi
30471 else
30472 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30473 gcc_cv_ld_disable_dynamicbase=yes
30474 fi
30475 fi
30476 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30477
30478 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30479
30480 fi
30481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30482 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30483 ;;
30484 esac
30485
30486 # --------
30487 # UNSORTED
30488 # --------
30489
30490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30491 $as_echo_n "checking linker --as-needed support... " >&6; }
30492 if ${gcc_cv_ld_as_needed+:} false; then :
30493 $as_echo_n "(cached) " >&6
30494 else
30495 gcc_cv_ld_as_needed=no
30496 gcc_cv_ld_as_needed_option='--as-needed'
30497 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30498 if test $in_tree_ld = yes ; then
30499 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 \
30500 && test $in_tree_ld_is_elf = yes; then
30501 gcc_cv_ld_as_needed=yes
30502 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30503 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30504 gcc_cv_ld_no_as_needed_option='--pop-state'
30505 fi
30506 fi
30507 elif test x$gcc_cv_ld != x; then
30508 # Check if linker supports --as-needed and --no-as-needed options
30509 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30510 gcc_cv_ld_as_needed=yes
30511 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30512 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30513 && echo "$ld_ver" | grep GNU > /dev/null \
30514 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30515 # Use these options only when both ld.bfd and ld.gold support
30516 # --push-state/--pop-state, which unfortunately wasn't added
30517 # at the same time.
30518 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30519 gcc_cv_ld_no_as_needed_option='--pop-state'
30520 fi
30521 fi
30522 case "$target:$gnu_ld" in
30523 *-*-solaris2*:no)
30524 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30525 # forms.
30526 gcc_cv_ld_as_needed=yes
30527 gcc_cv_ld_as_needed_option="-z ignore"
30528 gcc_cv_ld_no_as_needed_option="-z record"
30529 ;;
30530 esac
30531 fi
30532 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30533 # dl_iterate_phdr, i.e. since Solaris 11.
30534 case "$target" in
30535 *-*-solaris2.1[1-9]*)
30536 case "$target" in
30537 i?86-*-* | x86_64-*-*)
30538 if echo "$ld_ver" | grep GNU > /dev/null; then
30539 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30540 gcc_cv_ld_as_needed=no
30541 fi
30542 ;;
30543 esac
30544 ;;
30545 *-*-solaris2*)
30546 gcc_cv_ld_as_needed=no
30547 ;;
30548 esac
30549
30550 fi
30551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30552 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30553 if test x"$gcc_cv_ld_as_needed" = xyes; then
30554
30555 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30556
30557
30558 cat >>confdefs.h <<_ACEOF
30559 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30560 _ACEOF
30561
30562
30563 cat >>confdefs.h <<_ACEOF
30564 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30565 _ACEOF
30566
30567 fi
30568
30569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30570 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30571 saved_LDFLAGS="$LDFLAGS"
30572 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30573 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30575 /* end confdefs.h. */
30576 int main(void) {return 0;}
30577 _ACEOF
30578 if ac_fn_cxx_try_link "$LINENO"; then :
30579 gcc_cv_ld_clearcap=yes; break
30580 else
30581 gcc_cv_ld_clearcap=no
30582 fi
30583 rm -f core conftest.err conftest.$ac_objext \
30584 conftest$ac_exeext conftest.$ac_ext
30585 done
30586 LDFLAGS="$saved_LDFLAGS"
30587 if test "x$gcc_cv_ld_clearcap" = xyes; then
30588
30589 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30590
30591 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30592
30593 fi
30594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30595 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30596
30597 case "$target" in
30598 powerpc*-*-*)
30599 case "$target" in
30600 *le-*-linux*)
30601 emul_name="-melf32lppc"
30602 ;;
30603 *)
30604 emul_name="-melf32ppc"
30605 ;;
30606 esac
30607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30608 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30609 if ${gcc_cv_ld_ppc_attr+:} false; then :
30610 $as_echo_n "(cached) " >&6
30611 else
30612 gcc_cv_ld_ppc_attr=no
30613 if test x"$ld_is_gold" = xyes; then
30614 gcc_cv_ld_ppc_attr=yes
30615 elif test $in_tree_ld = yes ; then
30616 if test "$gcc_cv_gld_major_version" -eq 2 \
30617 -a "$gcc_cv_gld_minor_version" -ge 28 \
30618 -o "$gcc_cv_gld_major_version" -gt 2; then
30619 gcc_cv_ld_ppc_attr=yes
30620 fi
30621 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30622 # check that merging the long double .gnu_attribute doesn't warn
30623 cat > conftest1.s <<EOF
30624 .gnu_attribute 4,1
30625 EOF
30626 cat > conftest2.s <<EOF
30627 .gnu_attribute 4,9
30628 EOF
30629 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30630 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30631 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30632 && test ! -s conftest.err; then
30633 gcc_cv_ld_ppc_attr=yes
30634 fi
30635 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30636 fi
30637
30638 fi
30639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30640 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30641 if test x$gcc_cv_ld_ppc_attr = xyes; then
30642
30643 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30644
30645 fi
30646 ;;
30647 esac
30648
30649 case "$target:$tm_file" in
30650 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30651 case "$target" in
30652 *le-*-linux*)
30653 emul_name="-melf64lppc"
30654 ;;
30655 *-*-linux*)
30656 emul_name="-melf64ppc"
30657 ;;
30658 *le-*-freebsd*)
30659 emul_name="-melf64lppc_fbsd"
30660 ;;
30661 *-*-freebsd*)
30662 emul_name="-melf64ppc_fbsd"
30663 ;;
30664 esac
30665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30666 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30667 if ${gcc_cv_ld_no_dot_syms+:} false; then :
30668 $as_echo_n "(cached) " >&6
30669 else
30670 gcc_cv_ld_no_dot_syms=no
30671 if test x"$ld_is_gold" = xyes; then
30672 gcc_cv_ld_no_dot_syms=yes
30673 elif test $in_tree_ld = yes ; then
30674 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
30675 gcc_cv_ld_no_dot_syms=yes
30676 fi
30677 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30678 cat > conftest1.s <<EOF
30679 .text
30680 bl .foo
30681 EOF
30682 cat > conftest2.s <<EOF
30683 .section ".opd","aw"
30684 .align 3
30685 .globl foo
30686 .type foo,@function
30687 foo:
30688 .quad .LEfoo,.TOC.@tocbase,0
30689 .text
30690 .LEfoo:
30691 blr
30692 .size foo,.-.LEfoo
30693 EOF
30694 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30695 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30696 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30697 gcc_cv_ld_no_dot_syms=yes
30698 fi
30699 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30700 fi
30701
30702 fi
30703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30704 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30705 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30706
30707 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30708
30709 fi
30710
30711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30712 $as_echo_n "checking linker large toc support... " >&6; }
30713 if ${gcc_cv_ld_large_toc+:} false; then :
30714 $as_echo_n "(cached) " >&6
30715 else
30716 gcc_cv_ld_large_toc=no
30717 if test x"$ld_is_gold" = xyes; then
30718 gcc_cv_ld_large_toc=yes
30719 elif test $in_tree_ld = yes ; then
30720 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
30721 gcc_cv_ld_large_toc=yes
30722 fi
30723 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30724 cat > conftest.s <<EOF
30725 .section ".tbss","awT",@nobits
30726 .align 3
30727 ie0: .space 8
30728 .global _start
30729 .text
30730 _start:
30731 addis 9,13,ie0@got@tprel@ha
30732 ld 9,ie0@got@tprel@l(9)
30733 EOF
30734 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30735 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30736 gcc_cv_ld_large_toc=yes
30737 fi
30738 rm -f conftest conftest.o conftest.s
30739 fi
30740
30741 fi
30742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30743 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30744 if test x"$gcc_cv_ld_large_toc" = xyes; then
30745
30746 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30747
30748 fi
30749
30750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30751 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30752 if ${gcc_cv_ld_toc_align+:} false; then :
30753 $as_echo_n "(cached) " >&6
30754 else
30755 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30756 cat > conftest.s <<EOF
30757 .global _start
30758 .text
30759 _start:
30760 addis 9,2,x@got@ha
30761 .section .data.rel.ro,"aw",@progbits
30762 .p2align 16
30763 .space 32768
30764 x: .quad .TOC.
30765 EOF
30766 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30767 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30768 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)) }'`
30769 fi
30770 rm -f conftest conftest.o conftest.s
30771 fi
30772
30773 fi
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30775 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30776 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30777
30778 cat >>confdefs.h <<_ACEOF
30779 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30780 _ACEOF
30781
30782 fi
30783 ;;
30784 esac
30785
30786 case "$target" in
30787 *-*-aix*)
30788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30789 $as_echo_n "checking linker large toc support... " >&6; }
30790 if ${gcc_cv_ld_large_toc+:} false; then :
30791 $as_echo_n "(cached) " >&6
30792 else
30793 gcc_cv_ld_large_toc=no
30794 if test x$gcc_cv_as != x ; then
30795 cat > conftest.s <<EOF
30796 .toc
30797 LC..1:
30798 .tc a[TC],a[RW]
30799 .extern a[RW]
30800 .csect .text[PR]
30801 .largetoctest:
30802 addis 9,LC..1@u(2)
30803 ld 3,LC..1@l(9)
30804 EOF
30805 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
30806 gcc_cv_ld_large_toc=yes
30807 fi
30808 rm -f conftest conftest.o conftest.s
30809 fi
30810
30811 fi
30812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30813 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30814 if test x"$gcc_cv_ld_large_toc" = xyes; then
30815
30816 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30817
30818 fi
30819 ;;
30820 esac
30821
30822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30823 $as_echo_n "checking linker --build-id support... " >&6; }
30824 if ${gcc_cv_ld_buildid+:} false; then :
30825 $as_echo_n "(cached) " >&6
30826 else
30827 gcc_cv_ld_buildid=no
30828 if test $in_tree_ld = yes ; then
30829 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30830 "$gcc_cv_gld_minor_version" -ge 18 -o \
30831 "$gcc_cv_gld_major_version" -gt 2 \
30832 && test $in_tree_ld_is_elf = yes; then
30833 gcc_cv_ld_buildid=yes
30834 fi
30835 elif test x$gcc_cv_ld != x; then
30836 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
30837 gcc_cv_ld_buildid=yes
30838 fi
30839 fi
30840 fi
30841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30842 $as_echo "$gcc_cv_ld_buildid" >&6; }
30843 if test x"$gcc_cv_ld_buildid" = xyes; then
30844
30845 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30846
30847 fi
30848
30849 # Check whether --enable-linker-build-id was given.
30850 if test "${enable_linker_build_id+set}" = set; then :
30851 enableval=$enable_linker_build_id;
30852 else
30853 enable_linker_build_id=no
30854 fi
30855
30856
30857 if test x"$enable_linker_build_id" = xyes; then
30858 if test x"$gcc_cv_ld_buildid" = xyes; then
30859
30860 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30861
30862 else
30863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30864 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30865 fi
30866 fi
30867
30868 # In binutils 2.21, GNU ld gained support for new emulations fully
30869 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30871 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30872 if ${gcc_cv_ld_sol2_emulation+:} false; then :
30873 $as_echo_n "(cached) " >&6
30874 else
30875 gcc_cv_ld_sol2_emulation=no
30876 if test $in_tree_ld = yes ; then
30877 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30878 "$gcc_cv_gld_minor_version" -ge 21 -o \
30879 "$gcc_cv_gld_major_version" -gt 2 \
30880 && test $in_tree_ld_is_elf = yes; then
30881 gcc_cv_ld_sol2_emulation=yes
30882 fi
30883 elif test x$gcc_cv_ld != x; then
30884 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
30885 grep _sol2 > /dev/null; then
30886 gcc_cv_ld_sol2_emulation=yes
30887 fi
30888 fi
30889 fi
30890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30891 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30892 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
30893
30894 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30895
30896 fi
30897
30898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30899 $as_echo_n "checking linker --sysroot support... " >&6; }
30900 if ${gcc_cv_ld_sysroot+:} false; then :
30901 $as_echo_n "(cached) " >&6
30902 else
30903 gcc_cv_ld_sysroot=no
30904 if test $in_tree_ld = yes ; then
30905 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
30906 gcc_cv_ld_sysroot=yes
30907 fi
30908 elif test x$gcc_cv_ld != x; then
30909 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
30910 gcc_cv_ld_sysroot=yes
30911 fi
30912 fi
30913 fi
30914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30915 $as_echo "$gcc_cv_ld_sysroot" >&6; }
30916 if test x"$gcc_cv_ld_sysroot" = xyes; then
30917
30918 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30919
30920 fi
30921
30922 case $target in
30923 *-*-solaris2*)
30924 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30926 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30927 if ${gcc_cv_solaris_crts+:} false; then :
30928 $as_echo_n "(cached) " >&6
30929 else
30930 gcc_cv_solaris_crts=no
30931 if test x$host != x$target; then
30932 if test "x$with_sysroot" = xyes; then
30933 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
30934 else
30935 target_sysroot="${with_sysroot}"
30936 fi
30937 fi
30938 target_libdir="$target_sysroot/usr/lib"
30939 # At the time they were added, gcrt1.o became a symlink for backwards
30940 # compatibility on x86, while crt1.o was added on sparc, so check for that.
30941 case $target in
30942 i?86-*-solaris2* | x86_64-*-solaris2*)
30943 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
30944 ;;
30945 sparc*-*-solaris2*)
30946 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
30947 ;;
30948 esac
30949 fi
30950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30951 $as_echo "$gcc_cv_solaris_crts" >&6; }
30952 ;;
30953 esac
30954 if test x$gcc_cv_solaris_crts = xyes; then
30955
30956 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30957
30958 fi
30959
30960 # Check whether --enable-libssp was given.
30961 if test "${enable_libssp+set}" = set; then :
30962 enableval=$enable_libssp; case "${enableval}" in
30963 yes|no)
30964 ;;
30965 *)
30966 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
30967 ;;
30968 esac
30969 fi
30970
30971
30972 # Test for stack protector support in target C library.
30973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
30974 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
30975 if ${gcc_cv_libc_provides_ssp+:} false; then :
30976 $as_echo_n "(cached) " >&6
30977 else
30978 gcc_cv_libc_provides_ssp=no
30979 if test "x$enable_libssp" = "xno"; then
30980 gcc_cv_libc_provides_ssp=yes
30981 elif test "x$enable_libssp" = "xyes"; then
30982 gcc_cv_libc_provides_ssp=no
30983 else
30984 case "$target" in
30985 *-*-musl*)
30986 # All versions of musl provide stack protector
30987 gcc_cv_libc_provides_ssp=yes;;
30988 *-*-linux* | *-*-kfreebsd*-gnu)
30989 # glibc 2.4 and later provides __stack_chk_fail and
30990 # either __stack_chk_guard, or TLS access to stack guard canary.
30991
30992 if test $glibc_version_major -gt 2 \
30993 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30994 gcc_cv_libc_provides_ssp=yes
30995 else
30996
30997 if test -f $target_header_dir/features.h \
30998 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
30999 $target_header_dir/features.h > /dev/null; then
31000 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31001 $target_header_dir/features.h > /dev/null && \
31002 test -f $target_header_dir/bits/uClibc_config.h && \
31003 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31004 $target_header_dir/bits/uClibc_config.h > /dev/null; then
31005 gcc_cv_libc_provides_ssp=yes
31006 fi
31007 # all versions of Bionic support stack protector
31008 elif test -f $target_header_dir/sys/cdefs.h \
31009 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31010 $target_header_dir/sys/cdefs.h > /dev/null; then
31011 gcc_cv_libc_provides_ssp=yes
31012 fi
31013 fi
31014 ;;
31015 *-*-gnu*)
31016 # Avoid complicated tests (see
31017 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31018 # simply assert that glibc does provide this, which is true for all
31019 # realistically usable GNU/Hurd configurations.
31020 # All supported versions of musl provide it as well
31021 gcc_cv_libc_provides_ssp=yes;;
31022 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
31023 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31024 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
31025 gcc_cv_libc_provides_ssp=yes
31026 else
31027 echo "no __stack_chk_fail on this target"
31028 fi
31029
31030 ;;
31031 *) gcc_cv_libc_provides_ssp=no ;;
31032 esac
31033 fi
31034 fi
31035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31036 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31037
31038 if test x$gcc_cv_libc_provides_ssp = xyes; then
31039
31040 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31041
31042 fi
31043
31044 # Check whether --enable-default-ssp was given.
31045 # Check whether --enable-default-ssp was given.
31046 if test "${enable_default_ssp+set}" = set; then :
31047 enableval=$enable_default_ssp;
31048 if test x$gcc_cv_libc_provides_ssp = xyes; then
31049 case "$target" in
31050 ia64*-*-*) enable_default_ssp=no ;;
31051 *) enable_default_ssp=$enableval ;;
31052 esac
31053 else
31054 enable_default_ssp=no
31055 fi
31056 else
31057 enable_default_ssp=no
31058 fi
31059
31060 if test x$enable_default_ssp = xyes ; then
31061
31062 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31063
31064 fi
31065
31066
31067 # Test for <sys/sdt.h> on the target.
31068
31069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31070 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31071 have_sys_sdt_h=no
31072 if test -f $target_header_dir/sys/sdt.h; then
31073 have_sys_sdt_h=yes
31074
31075 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31076
31077 fi
31078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
31079 $as_echo "$have_sys_sdt_h" >&6; }
31080
31081 # Check if TFmode long double should be used by default or not.
31082 # Some glibc targets used DFmode long double, but with glibc 2.4
31083 # and later they can use TFmode.
31084 case "$target" in
31085 powerpc*-*-linux* | \
31086 sparc*-*-linux* | \
31087 s390*-*-linux* | \
31088 alpha*-*-linux*)
31089
31090 # Check whether --with-long-double-128 was given.
31091 if test "${with_long_double_128+set}" = set; then :
31092 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
31093 else
31094
31095 case "$target" in
31096 s390*-*-linux-musl*)
31097 gcc_cv_target_ldbl128=yes
31098 ;;
31099 powerpc*-*-linux-musl*)
31100 gcc_cv_target_ldbl128=no
31101 ;;
31102 *)
31103
31104 if test $glibc_version_major -gt 2 \
31105 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31106 gcc_cv_target_ldbl128=yes
31107 else
31108
31109 gcc_cv_target_ldbl128=no
31110 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31111 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
31112 && gcc_cv_target_ldbl128=yes
31113
31114 fi
31115
31116 ;;
31117 esac
31118
31119 fi
31120
31121 ;;
31122 esac
31123 if test x$gcc_cv_target_ldbl128 = xyes; then
31124
31125 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31126
31127 fi
31128
31129 # Check if TFmode long double target should use the IBM extended double or IEEE
31130 # 128-bit floating point formats if long doubles are 128-bits long. The long
31131 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31132 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31133 # libgcc.
31134
31135 # Check whether --with-long-double-format was given.
31136 if test "${with_long_double_format+set}" = set; then :
31137 withval=$with_long_double_format;
31138 case "$target:$with_long_double_format" in
31139 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
31140 :
31141 ;;
31142 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
31143 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31144 case "$with_cpu" in
31145 power7 | power8 | power9 | power1*)
31146 :
31147 ;;
31148 *)
31149 as_fn_error $? "Configuration option --with-long-double-format is only \
31150 supported if the default cpu is power7 or newer" "$LINENO" 5
31151 with_long_double_format=""
31152 ;;
31153 esac
31154 ;;
31155 powerpc64*-*-linux*:*)
31156 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31157 with_long_double_format=""
31158 ;;
31159 *)
31160 as_fn_error $? "Configure option --with-long-double-format is only supported \
31161 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31162 with_long_double_format=""
31163 ;;
31164 esac
31165 fi
31166
31167
31168 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31169 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31170 gcc_cv_libc_provides_hwcap_in_tcb=no
31171 case "$target" in
31172 powerpc*-*-linux*)
31173
31174 if test $glibc_version_major -gt 2 \
31175 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31176 gcc_cv_libc_provides_hwcap_in_tcb=yes
31177 fi
31178 ;;
31179 esac
31180 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31181
31182 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31183
31184 fi
31185
31186 # Check if the target LIBC handles PT_GNU_STACK.
31187 gcc_cv_libc_gnustack=unknown
31188 case "$target" in
31189 mips*-*-linux-musl*)
31190 gcc_cv_libc_gnustack=yes
31191 ;;
31192 mips*-*-linux*)
31193
31194 if test $glibc_version_major -gt 2 \
31195 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31196 gcc_cv_libc_gnustack=yes
31197 fi
31198 ;;
31199 esac
31200 if test x$gcc_cv_libc_gnustack = xyes; then
31201
31202 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31203
31204 fi
31205
31206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31207 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31208 gcc_cv_target_dl_iterate_phdr=unknown
31209 case "$target" in
31210 *-*-solaris2*)
31211 # <link.h> needs both a dl_iterate_phdr declaration and support for
31212 # compilation with largefile support.
31213 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31214 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31215 gcc_cv_target_dl_iterate_phdr=yes
31216 else
31217 gcc_cv_target_dl_iterate_phdr=no
31218 fi
31219 ;;
31220 *-*-dragonfly* | *-*-freebsd*)
31221 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31222 gcc_cv_target_dl_iterate_phdr=yes
31223 else
31224 gcc_cv_target_dl_iterate_phdr=no
31225 fi
31226 ;;
31227 *-linux-musl*)
31228 gcc_cv_target_dl_iterate_phdr=yes
31229 ;;
31230 esac
31231
31232 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31233
31234 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31235
31236 fi
31237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31238 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31239
31240 # We no longer support different GC mechanisms. Emit an error if
31241 # the user configures with --with-gc.
31242
31243 # Check whether --with-gc was given.
31244 if test "${with_gc+set}" = set; then :
31245 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31246 fi
31247
31248
31249 # Libraries to use on the host. This will normally be set by the top
31250 # level Makefile. Here we simply capture the value for our Makefile.
31251 if test -z "${HOST_LIBS+set}"; then
31252 HOST_LIBS=
31253 fi
31254
31255
31256 # Use the system's zlib library.
31257
31258 # Use the system's zlib library.
31259 zlibdir="-L\$(top_builddir)/../zlib"
31260 zlibinc="-I\$(top_srcdir)/../zlib"
31261
31262 # Check whether --with-system-zlib was given.
31263 if test "${with_system_zlib+set}" = set; then :
31264 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31265 zlibdir=
31266 zlibinc=
31267 fi
31268
31269 fi
31270
31271
31272
31273
31274
31275
31276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31277 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31278 # Check whether --enable-maintainer-mode was given.
31279 if test "${enable_maintainer_mode+set}" = set; then :
31280 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31281 else
31282 maintainer_mode=no
31283 fi
31284
31285
31286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31287 $as_echo "$maintainer_mode" >&6; }
31288
31289 if test "$maintainer_mode" = "yes"; then
31290 MAINT=''
31291 else
31292 MAINT='#'
31293 fi
31294
31295 if test -z "$CTAGS"; then
31296 CTAGS=ctags
31297 fi
31298
31299 if test -z "$ETAGS"; then
31300 ETAGS=etags
31301 fi
31302
31303 if test -z "$CSCOPE"; then
31304 CSCOPE=cscope
31305 fi
31306
31307
31308
31309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31310 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31311 # Check whether --enable-link-mutex was given.
31312 if test "${enable_link_mutex+set}" = set; then :
31313 enableval=$enable_link_mutex; do_link_mutex=$enableval
31314 else
31315 do_link_mutex=no
31316 fi
31317
31318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31319 $as_echo "$do_link_mutex" >&6; }
31320
31321 if test "$do_link_mutex" = "yes"; then
31322 DO_LINK_MUTEX=true
31323 else
31324 DO_LINK_MUTEX=false
31325 fi
31326
31327
31328
31329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31330 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31331 # Check whether --enable-link-serialization was given.
31332 if test "${enable_link_serialization+set}" = set; then :
31333 enableval=$enable_link_serialization; do_link_serialization=$enableval
31334 else
31335 do_link_serialization=no
31336 fi
31337
31338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31339 $as_echo "$do_link_serialization" >&6; }
31340
31341 case "$do_link_serialization" in
31342 yes)
31343 DO_LINK_SERIALIZATION=1;;
31344 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31345 DO_LINK_SERIALIZATION=$do_link_serialization;;
31346 no)
31347 DO_LINK_SERIALIZATION=;;
31348 *)
31349 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31350 esac
31351
31352
31353 # --------------
31354 # Language hooks
31355 # --------------
31356
31357 # Make empty files to contain the specs and options for each language.
31358 # Then add #include lines to for a compiler that has specs and/or options.
31359
31360 subdirs=
31361 lang_opt_files=
31362 lang_specs_files=
31363 lang_tree_files=
31364 # These (without "all_") are set in each config-lang.in.
31365 # `language' must be a single word so is spelled singularly.
31366 all_languages=
31367 all_compilers=
31368 all_outputs='Makefile'
31369 # List of language configure and makefile fragments.
31370 all_lang_configurefrags=
31371 all_lang_makefrags=
31372 # Additional files for gengtype
31373 all_gtfiles="$target_gtfiles"
31374
31375 # These are the languages that are set in --enable-languages,
31376 # and are available in the GCC tree.
31377 all_selected_languages=
31378
31379 # Add the language fragments.
31380 # Languages are added via two mechanisms. Some information must be
31381 # recorded in makefile variables, these are defined in config-lang.in.
31382 # We accumulate them and plug them into the main Makefile.
31383 # The other mechanism is a set of hooks for each of the main targets
31384 # like `clean', `install', etc.
31385
31386 language_hooks="Make-hooks"
31387
31388 for lang in ${srcdir}/*/config-lang.in
31389 do
31390 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31391
31392 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31393 if test "x$lang_alias" = x
31394 then
31395 echo "$lang doesn't set \$language." 1>&2
31396 exit 1
31397 fi
31398 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31399 subdirs="$subdirs $subdir"
31400
31401 # $gcc_subdir is where the gcc integration files are to be found
31402 # for a language, both for internal compiler purposes (compiler
31403 # sources implementing front-end to GCC tree converters), and for
31404 # build infrastructure purposes (Make-lang.in, etc.)
31405 #
31406 # This will be <subdir> (relative to $srcdir) if a line like
31407 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31408 # is found in <langdir>/config-lang.in, and will remain <langdir>
31409 # otherwise.
31410 #
31411 # Except for the language alias (fetched above), the regular
31412 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31413 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31414 # only this and the language alias.
31415
31416 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31417 if [ "$gcc_subdir" = "" ]; then
31418 gcc_subdir="$subdir"
31419 fi
31420
31421 case ",$enable_languages," in
31422 *,$lang_alias,*)
31423 all_selected_languages="$all_selected_languages $lang_alias"
31424 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31425 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31426 fi
31427 ;;
31428 esac
31429
31430 language=
31431 boot_language=
31432 compilers=
31433 outputs=
31434 gtfiles=
31435 subdir_requires=
31436 . ${srcdir}/$gcc_subdir/config-lang.in
31437 if test "x$language" = x
31438 then
31439 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31440 exit 1
31441 fi
31442
31443 ok=:
31444 case ",$enable_languages," in
31445 *,$lang_alias,*) ;;
31446 *)
31447 for i in $subdir_requires; do
31448 test -f "${srcdir}/$i/config-lang.in" && continue
31449 ok=false
31450 break
31451 done
31452 ;;
31453 esac
31454 $ok || continue
31455
31456 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31457 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31458 # Put c/Make-lang.in fragment first to match serialization languages order.
31459 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31460 else
31461 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31462 fi
31463 if test -f $srcdir/$gcc_subdir/lang.opt; then
31464 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31465 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31466 fi
31467 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31468 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31469 fi
31470 all_languages="$all_languages $language"
31471 all_compilers="$all_compilers $compilers"
31472 all_outputs="$all_outputs $outputs"
31473 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31474 case ",$enable_languages," in
31475 *,lto,*)
31476
31477 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31478
31479 enable_lto=yes
31480
31481 ;;
31482 *) ;;
31483 esac
31484 done
31485
31486 check_languages=
31487 for language in $all_selected_languages
31488 do
31489 check_languages="$check_languages check-$language"
31490 done
31491
31492 selftest_languages=
31493 for language in $all_selected_languages
31494 do
31495 selftest_languages="$selftest_languages selftest-$language"
31496 done
31497
31498 # We link each language in with a set of hooks, reached indirectly via
31499 # lang.${target}. Only do so for selected languages.
31500
31501 rm -f Make-hooks
31502 touch Make-hooks
31503 target_list="all.cross start.encap rest.encap tags \
31504 install-common install-man install-info install-dvi install-pdf \
31505 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31506 mostlyclean clean distclean maintainer-clean install-plugin"
31507
31508 for t in $target_list
31509 do
31510 x=
31511 for lang in $all_selected_languages
31512 do
31513 x="$x $lang.$t"
31514 done
31515 echo "lang.$t: $x" >> Make-hooks
31516 done
31517
31518 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31519 echo "SERIAL_LIST =" >> Make-hooks
31520 echo else >> Make-hooks
31521 lang_cnt=0
31522 lang_list=
31523 prev=c
31524 serialization_languages=c
31525 for lang in $all_selected_languages
31526 do
31527 test $lang = c && continue
31528 if test $lang = lto; then
31529 serialization_languages="$serialization_languages lto1 lto2"
31530 else
31531 serialization_languages="$serialization_languages $lang"
31532 fi
31533 done
31534 for lang in $serialization_languages
31535 do
31536 test $lang = c && continue
31537 lang_cnt=`expr $lang_cnt + 1`
31538 lang_list=" $prev$lang_list"
31539 prev=${lang}
31540 done
31541 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31542 echo endif >> Make-hooks
31543 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31544 echo "INDEX.c = 0" >> Make-hooks
31545 lang_idx=1
31546 for lang in $serialization_languages
31547 do
31548 test $lang = c && continue
31549 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31550 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31551 lang_cnt=`expr $lang_cnt - 1`
31552 lang_idx=`expr $lang_idx + 1`
31553 done
31554
31555 # --------
31556 # Option include files
31557 # --------
31558
31559 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31560 option_includes="option-includes.mk"
31561
31562
31563 # --------
31564 # UNSORTED
31565 # --------
31566
31567 # Create .gdbinit.
31568
31569 echo "dir ." > .gdbinit
31570 echo "dir ${srcdir}" >> .gdbinit
31571 if test x$gdb_needs_out_file_path = xyes
31572 then
31573 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31574 fi
31575 if test "x$subdirs" != x; then
31576 for s in $subdirs
31577 do
31578 echo "dir ${srcdir}/$s" >> .gdbinit
31579 done
31580 fi
31581 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31582 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31583
31584 # Put a breakpoint on __asan_report_error to help with debugging buffer
31585 # overflow.
31586 case "$CFLAGS" in
31587 *-fsanitize=address*)
31588 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31589 ;;
31590 esac
31591
31592 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31593
31594
31595
31596 # Find a directory in which to install a shared libgcc.
31597
31598 # Check whether --enable-version-specific-runtime-libs was given.
31599 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31600 enableval=$enable_version_specific_runtime_libs;
31601 fi
31602
31603
31604 # Substitute configuration variables
31605
31606
31607
31608
31609
31610
31611
31612
31613
31614
31615
31616
31617
31618
31619
31620
31621
31622
31623
31624
31625
31626
31627
31628
31629
31630
31631
31632
31633
31634
31635
31636
31637
31638
31639
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 # Echo link setup.
31675 if test x${build} = x${host} ; then
31676 if test x${host} = x${target} ; then
31677 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31678 else
31679 echo "Links are now set up to build a cross-compiler" 1>&2
31680 echo " from ${host} to ${target}." 1>&2
31681 fi
31682 else
31683 if test x${host} = x${target} ; then
31684 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31685 echo " for ${target}." 1>&2
31686 else
31687 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31688 echo " from ${host} to ${target}." 1>&2
31689 fi
31690 fi
31691
31692
31693
31694
31695
31696
31697 if test "x${ISLLIBS}" != "x" ; then
31698
31699 $as_echo "#define HAVE_isl 1" >>confdefs.h
31700
31701 fi
31702
31703 # Check for plugin support
31704 # Check whether --enable-plugin was given.
31705 if test "${enable_plugin+set}" = set; then :
31706 enableval=$enable_plugin; enable_plugin=$enableval
31707 else
31708 enable_plugin=yes; default_plugin=yes
31709 fi
31710
31711
31712 pluginlibs=
31713 plugin_check=yes
31714
31715 case "${host}" in
31716 *-*-mingw*)
31717 # Since plugin support under MinGW is not as straightforward as on
31718 # other platforms (e.g., we have to link import library, etc), we
31719 # only enable it if explicitly requested.
31720 if test x"$default_plugin" = x"yes"; then
31721 enable_plugin=no
31722 elif test x"$enable_plugin" = x"yes"; then
31723 # Use make's target variable to derive import library name.
31724 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31725 plugin_check=no
31726 fi
31727 ;;
31728 *-*-darwin*)
31729 if test x$build = x$host; then
31730 export_sym_check="nm${exeext} -g"
31731 elif test x$host = x$target; then
31732 export_sym_check="$gcc_cv_nm -g"
31733 else
31734 export_sym_check=
31735 fi
31736 ;;
31737 *)
31738 if test x$build = x$host; then
31739 export_sym_check="$ac_cv_prog_OBJDUMP -T"
31740 elif test x$host = x$target; then
31741 export_sym_check="$gcc_cv_objdump -T"
31742 else
31743 export_sym_check=
31744 fi
31745 ;;
31746 esac
31747
31748 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31749
31750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31751 $as_echo_n "checking for exported symbols... " >&6; }
31752 if test "x$export_sym_check" != x; then
31753 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31754 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31755 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31756 : # No need to use a flag
31757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31758 $as_echo "yes" >&6; }
31759 else
31760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31761 $as_echo "yes" >&6; }
31762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31763 $as_echo_n "checking for -rdynamic... " >&6; }
31764 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31765 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31766 plugin_rdynamic=yes
31767 pluginlibs="-rdynamic"
31768 else
31769 plugin_rdynamic=no
31770 enable_plugin=no
31771 fi
31772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31773 $as_echo "$plugin_rdynamic" >&6; }
31774 fi
31775 else
31776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31777 $as_echo "unable to check" >&6; }
31778 fi
31779
31780 # Check -ldl
31781 saved_LIBS="$LIBS"
31782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31783 $as_echo_n "checking for library containing dlopen... " >&6; }
31784 if ${ac_cv_search_dlopen+:} false; then :
31785 $as_echo_n "(cached) " >&6
31786 else
31787 ac_func_search_save_LIBS=$LIBS
31788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31789 /* end confdefs.h. */
31790
31791 /* Override any GCC internal prototype to avoid an error.
31792 Use char because int might match the return type of a GCC
31793 builtin and then its argument prototype would still apply. */
31794 #ifdef __cplusplus
31795 extern "C"
31796 #endif
31797 char dlopen ();
31798 int
31799 main ()
31800 {
31801 return dlopen ();
31802 ;
31803 return 0;
31804 }
31805 _ACEOF
31806 for ac_lib in '' dl; do
31807 if test -z "$ac_lib"; then
31808 ac_res="none required"
31809 else
31810 ac_res=-l$ac_lib
31811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31812 fi
31813 if ac_fn_cxx_try_link "$LINENO"; then :
31814 ac_cv_search_dlopen=$ac_res
31815 fi
31816 rm -f core conftest.err conftest.$ac_objext \
31817 conftest$ac_exeext
31818 if ${ac_cv_search_dlopen+:} false; then :
31819 break
31820 fi
31821 done
31822 if ${ac_cv_search_dlopen+:} false; then :
31823
31824 else
31825 ac_cv_search_dlopen=no
31826 fi
31827 rm conftest.$ac_ext
31828 LIBS=$ac_func_search_save_LIBS
31829 fi
31830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31831 $as_echo "$ac_cv_search_dlopen" >&6; }
31832 ac_res=$ac_cv_search_dlopen
31833 if test "$ac_res" != no; then :
31834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31835
31836 fi
31837
31838 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
31839 pluginlibs="$pluginlibs -ldl"
31840 fi
31841 LIBS="$saved_LIBS"
31842
31843 # Check that we can build shared objects with -fPIC -shared
31844 saved_LDFLAGS="$LDFLAGS"
31845 saved_CFLAGS="$CFLAGS"
31846 saved_CXXFLAGS="$CXXFLAGS"
31847 case "${host}" in
31848 *-*-darwin*)
31849 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31850 CFLAGS="$CFLAGS -fPIC"
31851 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
31852 CXXFLAGS="$CXXFLAGS -fPIC"
31853 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
31854 ;;
31855 *)
31856 CFLAGS="$CFLAGS -fPIC"
31857 CXXFLAGS="$CXXFLAGS -fPIC"
31858 LDFLAGS="$LDFLAGS -fPIC -shared"
31859 ;;
31860 esac
31861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31862 $as_echo_n "checking for -fPIC -shared... " >&6; }
31863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31864 /* end confdefs.h. */
31865 extern int X;
31866 int
31867 main ()
31868 {
31869 return X == 0;
31870 ;
31871 return 0;
31872 }
31873 _ACEOF
31874 if ac_fn_cxx_try_link "$LINENO"; then :
31875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31876 $as_echo "yes" >&6; }; have_pic_shared=yes
31877 else
31878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31879 $as_echo "no" >&6; }; have_pic_shared=no
31880 fi
31881 rm -f core conftest.err conftest.$ac_objext \
31882 conftest$ac_exeext conftest.$ac_ext
31883 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
31884 pluginlibs=
31885 enable_plugin=no
31886 fi
31887 LDFLAGS="$saved_LDFLAGS"
31888 CFLAGS="$saved_CFLAGS"
31889 CXXFLAGS="$saved_CXXFLAGS"
31890
31891 # If plugin support had been requested but not available, fail.
31892 if test x"$enable_plugin" = x"no" ; then
31893 if test x"$default_plugin" != x"yes"; then
31894 as_fn_error $? "
31895 Building GCC with plugin support requires a host that supports
31896 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
31897 fi
31898 fi
31899 fi
31900
31901
31902
31903 if test x"$enable_plugin" = x"yes"; then
31904
31905 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
31906
31907 fi
31908
31909
31910 # Enable --enable-host-shared
31911 # Check whether --enable-host-shared was given.
31912 if test "${enable_host_shared+set}" = set; then :
31913 enableval=$enable_host_shared; PICFLAG=-fPIC
31914 else
31915 PICFLAG=
31916 fi
31917
31918
31919
31920
31921
31922 # Check whether --enable-libquadmath-support was given.
31923 if test "${enable_libquadmath_support+set}" = set; then :
31924 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
31925 else
31926 ENABLE_LIBQUADMATH_SUPPORT=yes
31927 fi
31928
31929 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31930
31931 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31932
31933 fi
31934
31935
31936 # Specify what hash style to use by default.
31937
31938 # Check whether --with-linker-hash-style was given.
31939 if test "${with_linker_hash_style+set}" = set; then :
31940 withval=$with_linker_hash_style; case x"$withval" in
31941 xsysv)
31942 LINKER_HASH_STYLE=sysv
31943 ;;
31944 xgnu)
31945 LINKER_HASH_STYLE=gnu
31946 ;;
31947 xboth)
31948 LINKER_HASH_STYLE=both
31949 ;;
31950 *)
31951 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
31952 ;;
31953 esac
31954 else
31955 LINKER_HASH_STYLE=''
31956 fi
31957
31958 if test x"${LINKER_HASH_STYLE}" != x; then
31959
31960 cat >>confdefs.h <<_ACEOF
31961 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
31962 _ACEOF
31963
31964 fi
31965
31966 # Specify what should be the default of -fdiagnostics-color option.
31967
31968 # Check whether --with-diagnostics-color was given.
31969 if test "${with_diagnostics_color+set}" = set; then :
31970 withval=$with_diagnostics_color; case x"$withval" in
31971 xnever)
31972 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
31973 ;;
31974 xauto)
31975 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
31976 ;;
31977 xauto-if-env)
31978 DIAGNOSTICS_COLOR_DEFAULT=-1
31979 ;;
31980 xalways)
31981 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
31982 ;;
31983 *)
31984 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
31985 ;;
31986 esac
31987 else
31988 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
31989 fi
31990
31991
31992 cat >>confdefs.h <<_ACEOF
31993 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
31994 _ACEOF
31995
31996
31997 # Specify what should be the default of -fdiagnostics-urls option.
31998
31999 # Check whether --with-diagnostics-urls was given.
32000 if test "${with_diagnostics_urls+set}" = set; then :
32001 withval=$with_diagnostics_urls; case x"$withval" in
32002 xnever)
32003 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
32004 ;;
32005 xauto)
32006 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32007 ;;
32008 xauto-if-env)
32009 DIAGNOSTICS_URLS_DEFAULT=-1
32010 ;;
32011 xalways)
32012 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
32013 ;;
32014 *)
32015 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32016 ;;
32017 esac
32018 else
32019 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32020 fi
32021
32022
32023 cat >>confdefs.h <<_ACEOF
32024 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32025 _ACEOF
32026
32027
32028 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32029 # of jit/jit-playback.cc.
32030 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32031 echo "gcc_driver_version: ${gcc_driver_version}"
32032 cat > gcc-driver-name.h <<EOF
32033 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32034 EOF
32035
32036 # Check whether --enable-default-pie was given.
32037 # Check whether --enable-default-pie was given.
32038 if test "${enable_default_pie+set}" = set; then :
32039 enableval=$enable_default_pie; enable_default_pie=$enableval
32040 else
32041 enable_default_pie=no
32042 fi
32043
32044 if test x$enable_default_pie = xyes ; then
32045
32046 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32047
32048 fi
32049
32050
32051 # Check if -fno-PIE works.
32052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32053 $as_echo_n "checking for -fno-PIE option... " >&6; }
32054 if ${gcc_cv_c_no_fpie+:} false; then :
32055 $as_echo_n "(cached) " >&6
32056 else
32057 saved_CXXFLAGS="$CXXFLAGS"
32058 CXXFLAGS="$CXXFLAGS -fno-PIE"
32059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32060 /* end confdefs.h. */
32061 int main(void) {return 0;}
32062 _ACEOF
32063 if ac_fn_cxx_try_compile "$LINENO"; then :
32064 gcc_cv_c_no_fpie=yes
32065 else
32066 gcc_cv_c_no_fpie=no
32067 fi
32068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32069 CXXFLAGS="$saved_CXXFLAGS"
32070 fi
32071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32072 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32073 if test "$gcc_cv_c_no_fpie" = "yes"; then
32074 NO_PIE_CFLAGS="-fno-PIE"
32075 fi
32076
32077
32078 # Check if -no-pie works.
32079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32080 $as_echo_n "checking for -no-pie option... " >&6; }
32081 if ${gcc_cv_no_pie+:} false; then :
32082 $as_echo_n "(cached) " >&6
32083 else
32084 saved_LDFLAGS="$LDFLAGS"
32085 LDFLAGS="$LDFLAGS -no-pie"
32086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32087 /* end confdefs.h. */
32088 int main(void) {return 0;}
32089 _ACEOF
32090 if ac_fn_cxx_try_link "$LINENO"; then :
32091 gcc_cv_no_pie=yes
32092 else
32093 gcc_cv_no_pie=no
32094 fi
32095 rm -f core conftest.err conftest.$ac_objext \
32096 conftest$ac_exeext conftest.$ac_ext
32097 LDFLAGS="$saved_LDFLAGS"
32098 fi
32099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32100 $as_echo "$gcc_cv_no_pie" >&6; }
32101 if test "$gcc_cv_no_pie" = "yes"; then
32102 NO_PIE_FLAG="-no-pie"
32103 fi
32104
32105
32106 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32107 # Check whether --enable-cet was given.
32108 if test "${enable_cet+set}" = set; then :
32109 enableval=$enable_cet;
32110 case "$enableval" in
32111 yes|no|auto) ;;
32112 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32113 esac
32114
32115 else
32116 enable_cet=auto
32117 fi
32118
32119
32120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32121 $as_echo_n "checking for CET support... " >&6; }
32122
32123 case "$host" in
32124 i[34567]86-*-linux* | x86_64-*-linux*)
32125 may_have_cet=yes
32126 cet_save_CFLAGS="$CFLAGS"
32127 CFLAGS="$CFLAGS -fcf-protection"
32128 case "$enable_cet" in
32129 auto)
32130 # Check if target supports multi-byte NOPs
32131 # and if compiler and assembler support CET.
32132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32133 /* end confdefs.h. */
32134
32135 int
32136 main ()
32137 {
32138
32139 #if !defined(__SSE2__)
32140 #error target does not support multi-byte NOPs
32141 #else
32142 asm ("setssbsy");
32143 #endif
32144
32145 ;
32146 return 0;
32147 }
32148 _ACEOF
32149 if ac_fn_cxx_try_compile "$LINENO"; then :
32150 enable_cet=yes
32151 else
32152 enable_cet=no
32153 fi
32154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32155 ;;
32156 yes)
32157 # Check if compiler and assembler support CET.
32158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32159 /* end confdefs.h. */
32160
32161 int
32162 main ()
32163 {
32164 asm ("setssbsy");
32165 ;
32166 return 0;
32167 }
32168 _ACEOF
32169 if ac_fn_cxx_try_compile "$LINENO"; then :
32170 support_cet=yes
32171 else
32172 support_cet=no
32173 fi
32174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32175 if test $support_cet = "no"; then
32176 if test x$enable_bootstrap != xno \
32177 && test -z "${with_build_subdir}" \
32178 && (test ! -f ../stage_current \
32179 || test `cat ../stage_current` != "stage1"); then
32180 # Require CET support only for the final GCC build.
32181 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32182 else
32183 # Don't enable CET without CET support for non-bootstrap
32184 # build, in stage1 nor for build support.
32185 enable_cet=no
32186 fi
32187 fi
32188 ;;
32189 esac
32190 CFLAGS="$cet_save_CFLAGS"
32191 ;;
32192 *)
32193 may_have_cet=no
32194 enable_cet=no
32195 ;;
32196 esac
32197
32198 cet_save_CFLAGS="$CFLAGS"
32199 CFLAGS="$CFLAGS -fcf-protection=none"
32200 cet_save_LDFLAGS="$LDFLAGS"
32201 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32202 if test x$may_have_cet = xyes; then
32203 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32205 /* end confdefs.h. */
32206
32207 int
32208 main ()
32209 {
32210 return 0;
32211 ;
32212 return 0;
32213 }
32214 _ACEOF
32215 if ac_fn_cxx_try_link "$LINENO"; then :
32216 may_have_cet=yes
32217 else
32218 may_have_cet=no
32219 fi
32220 rm -f core conftest.err conftest.$ac_objext \
32221 conftest$ac_exeext conftest.$ac_ext
32222 fi
32223
32224 if test x$may_have_cet = xyes; then
32225 if test x$cross_compiling = xno; then
32226 if test "$cross_compiling" = yes; then :
32227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32229 as_fn_error $? "cannot run test program while cross compiling
32230 See \`config.log' for more details" "$LINENO" 5; }
32231 else
32232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32233 /* end confdefs.h. */
32234
32235 int
32236 main ()
32237 {
32238 asm ("endbr32");
32239 return 0;
32240 }
32241
32242 _ACEOF
32243 if ac_fn_cxx_try_run "$LINENO"; then :
32244 have_multi_byte_nop=yes
32245 else
32246 have_multi_byte_nop=no
32247 fi
32248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32249 conftest.$ac_objext conftest.beam conftest.$ac_ext
32250 fi
32251
32252 have_cet=no
32253 if test x$have_multi_byte_nop = xyes; then
32254 if test "$cross_compiling" = yes; then :
32255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32257 as_fn_error $? "cannot run test program while cross compiling
32258 See \`config.log' for more details" "$LINENO" 5; }
32259 else
32260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32261 /* end confdefs.h. */
32262
32263 static void
32264 foo (void)
32265 {
32266 }
32267
32268 static void
32269 __attribute__ ((noinline, noclone))
32270 xxx (void (*f) (void))
32271 {
32272 f ();
32273 }
32274
32275 static void
32276 __attribute__ ((noinline, noclone))
32277 bar (void)
32278 {
32279 xxx (foo);
32280 }
32281
32282 int
32283 main ()
32284 {
32285 bar ();
32286 return 0;
32287 }
32288
32289 _ACEOF
32290 if ac_fn_cxx_try_run "$LINENO"; then :
32291 have_cet=no
32292 else
32293 have_cet=yes
32294 fi
32295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32296 conftest.$ac_objext conftest.beam conftest.$ac_ext
32297 fi
32298
32299 fi
32300 if test x$enable_cet = xno -a x$have_cet = xyes; then
32301 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32302 fi
32303 fi
32304 else
32305 # Enable CET in cross compiler if possible so that it will run on both
32306 # CET and non-CET hosts.
32307 have_cet=yes
32308 fi
32309 if test x$enable_cet = xyes; then
32310 CET_HOST_FLAGS="-fcf-protection"
32311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32312 $as_echo "yes" >&6; }
32313 else
32314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32315 $as_echo "no" >&6; }
32316 fi
32317 CFLAGS="$cet_save_CFLAGS"
32318 LDFLAGS="$cet_save_LDFLAGS"
32319
32320 case x$enable_languages in
32321 *jit*)
32322 ;;
32323 *)
32324 CET_HOST_FLAGS=
32325 ;;
32326 esac
32327
32328
32329 # Check linker supports '-z bndplt'
32330 ld_bndplt_support=no
32331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32332 $as_echo_n "checking linker -z bndplt option... " >&6; }
32333 if test x"$ld_is_gold" = xno; then
32334 if test $in_tree_ld = yes ; then
32335 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
32336 ld_bndplt_support=yes
32337 fi
32338 elif test x$gcc_cv_ld != x; then
32339 # Check if linker supports -a bndplt option
32340 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32341 ld_bndplt_support=yes
32342 fi
32343 fi
32344 fi
32345 if test x"$ld_bndplt_support" = xyes; then
32346
32347 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32348
32349 fi
32350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32351 $as_echo "$ld_bndplt_support" >&6; }
32352
32353 # Check linker supports '--push-state'/'--pop-state'
32354 ld_pushpopstate_support=no
32355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32356 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32357 if test x"$ld_is_gold" = xno; then
32358 if test $in_tree_ld = yes ; then
32359 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
32360 ld_pushpopstate_support=yes
32361 fi
32362 elif test x$gcc_cv_ld != x; then
32363 # Check if linker supports --push-state/--pop-state options
32364 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32365 ld_pushpopstate_support=yes
32366 fi
32367 fi
32368 fi
32369 if test x"$ld_pushpopstate_support" = xyes; then
32370
32371 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32372
32373 fi
32374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32375 $as_echo "$ld_pushpopstate_support" >&6; }
32376
32377 # On s390, float_t has historically been statically defined as double for no
32378 # good reason. To comply with the C standard in the light of this definition,
32379 # gcc has evaluated float expressions in double precision when in
32380 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32381 # a smooth transition towards the new model used by most architectures, where
32382 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32383 # float_t from that, this behavior can be configured with
32384 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32385 # the old model. When omitted, native builds and cross compiles that have target
32386 # libc headers will detect whether libc clamps float_t to double and in that
32387 # case maintain the old model. Otherwise, they will default to the new model.
32388 # Check whether --enable-s390-excess-float-precision was given.
32389 if test "${enable_s390_excess_float_precision+set}" = set; then :
32390 enableval=$enable_s390_excess_float_precision;
32391 else
32392 enable_s390_excess_float_precision=auto
32393 fi
32394
32395
32396 case $target in
32397 s390*-linux*)
32398 if test x"$enable_s390_excess_float_precision" = xauto; then
32399 # Can we autodetect the behavior of the target libc?
32400 if test "$target" = "$host" -a "$host" = "$build"; then
32401 enable_s390_excess_float_precision=autodetect
32402 elif test "x$with_headers" != xno; then
32403 # cross build. are target headers available?
32404 # carefully coerce the build-system compiler to use target headers
32405 saved_CXXFLAGS="$CXXFLAGS"
32406 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32407 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32408 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32410 /* end confdefs.h. */
32411
32412 #include <math.h>
32413
32414 _ACEOF
32415 if ac_fn_cxx_try_compile "$LINENO"; then :
32416 enable_s390_excess_float_precision=autodetect
32417 fi
32418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32419 CXXFLAGS="$saved_CXXFLAGS"
32420 fi
32421
32422 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32423 saved_CXXFLAGS="$CXXFLAGS"
32424 if ! test "$target" = "$host" -a "$host" = "$build"; then
32425 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32426 unset CROSS_TEST_CXXFLAGS
32427 fi
32428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32429 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32430 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32431 $as_echo_n "(cached) " >&6
32432 else
32433
32434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32435 /* end confdefs.h. */
32436
32437 #define __FLT_EVAL_METHOD__ 0
32438 #include <math.h>
32439 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32440
32441 _ACEOF
32442 if ac_fn_cxx_try_compile "$LINENO"; then :
32443 gcc_cv_float_t_clamped_to_double=yes
32444 else
32445 gcc_cv_float_t_clamped_to_double=no
32446 fi
32447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32448 fi
32449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32450 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32451 CXXFLAGS="$saved_CXXFLAGS"
32452 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32453 else
32454 # no way to detect behavior of target libc, default to new model
32455 enable_s390_excess_float_precision=no
32456 fi
32457 fi
32458
32459
32460 if test x"$enable_s390_excess_float_precision" = xyes; then
32461
32462 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32463
32464 fi
32465 ;;
32466 esac
32467
32468 # Configure the subdirectories
32469 # AC_CONFIG_SUBDIRS($subdirs)
32470
32471 # Create the Makefile
32472 # and configure language subdirectories
32473 ac_config_files="$ac_config_files $all_outputs"
32474
32475
32476 ac_config_commands="$ac_config_commands default"
32477
32478 cat >confcache <<\_ACEOF
32479 # This file is a shell script that caches the results of configure
32480 # tests run on this system so they can be shared between configure
32481 # scripts and configure runs, see configure's option --config-cache.
32482 # It is not useful on other systems. If it contains results you don't
32483 # want to keep, you may remove or edit it.
32484 #
32485 # config.status only pays attention to the cache file if you give it
32486 # the --recheck option to rerun configure.
32487 #
32488 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32489 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32490 # following values.
32491
32492 _ACEOF
32493
32494 # The following way of writing the cache mishandles newlines in values,
32495 # but we know of no workaround that is simple, portable, and efficient.
32496 # So, we kill variables containing newlines.
32497 # Ultrix sh set writes to stderr and can't be redirected directly,
32498 # and sets the high bit in the cache file unless we assign to the vars.
32499 (
32500 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32501 eval ac_val=\$$ac_var
32502 case $ac_val in #(
32503 *${as_nl}*)
32504 case $ac_var in #(
32505 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32506 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32507 esac
32508 case $ac_var in #(
32509 _ | IFS | as_nl) ;; #(
32510 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32511 *) { eval $ac_var=; unset $ac_var;} ;;
32512 esac ;;
32513 esac
32514 done
32515
32516 (set) 2>&1 |
32517 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32518 *${as_nl}ac_space=\ *)
32519 # `set' does not quote correctly, so add quotes: double-quote
32520 # substitution turns \\\\ into \\, and sed turns \\ into \.
32521 sed -n \
32522 "s/'/'\\\\''/g;
32523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32524 ;; #(
32525 *)
32526 # `set' quotes correctly as required by POSIX, so do not add quotes.
32527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32528 ;;
32529 esac |
32530 sort
32531 ) |
32532 sed '
32533 /^ac_cv_env_/b end
32534 t clear
32535 :clear
32536 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32537 t end
32538 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32539 :end' >>confcache
32540 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32541 if test -w "$cache_file"; then
32542 if test "x$cache_file" != "x/dev/null"; then
32543 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32544 $as_echo "$as_me: updating cache $cache_file" >&6;}
32545 if test ! -f "$cache_file" || test -h "$cache_file"; then
32546 cat confcache >"$cache_file"
32547 else
32548 case $cache_file in #(
32549 */* | ?:*)
32550 mv -f confcache "$cache_file"$$ &&
32551 mv -f "$cache_file"$$ "$cache_file" ;; #(
32552 *)
32553 mv -f confcache "$cache_file" ;;
32554 esac
32555 fi
32556 fi
32557 else
32558 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32559 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32560 fi
32561 fi
32562 rm -f confcache
32563
32564 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32565 # Let make expand exec_prefix.
32566 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32567
32568 DEFS=-DHAVE_CONFIG_H
32569
32570 ac_libobjs=
32571 ac_ltlibobjs=
32572 U=
32573 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32574 # 1. Remove the extension, and $U if already installed.
32575 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32576 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32577 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32578 # will be set to the directory where LIBOBJS objects are built.
32579 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32580 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32581 done
32582 LIBOBJS=$ac_libobjs
32583
32584 LTLIBOBJS=$ac_ltlibobjs
32585
32586
32587
32588
32589 : "${CONFIG_STATUS=./config.status}"
32590 ac_write_fail=0
32591 ac_clean_files_save=$ac_clean_files
32592 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32593 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32594 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32595 as_write_fail=0
32596 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32597 #! $SHELL
32598 # Generated by $as_me.
32599 # Run this file to recreate the current configuration.
32600 # Compiler output produced by configure, useful for debugging
32601 # configure, is in config.log if it exists.
32602
32603 debug=false
32604 ac_cs_recheck=false
32605 ac_cs_silent=false
32606
32607 SHELL=\${CONFIG_SHELL-$SHELL}
32608 export SHELL
32609 _ASEOF
32610 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32611 ## -------------------- ##
32612 ## M4sh Initialization. ##
32613 ## -------------------- ##
32614
32615 # Be more Bourne compatible
32616 DUALCASE=1; export DUALCASE # for MKS sh
32617 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32618 emulate sh
32619 NULLCMD=:
32620 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32621 # is contrary to our usage. Disable this feature.
32622 alias -g '${1+"$@"}'='"$@"'
32623 setopt NO_GLOB_SUBST
32624 else
32625 case `(set -o) 2>/dev/null` in #(
32626 *posix*) :
32627 set -o posix ;; #(
32628 *) :
32629 ;;
32630 esac
32631 fi
32632
32633
32634 as_nl='
32635 '
32636 export as_nl
32637 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32638 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32639 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32640 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32641 # Prefer a ksh shell builtin over an external printf program on Solaris,
32642 # but without wasting forks for bash or zsh.
32643 if test -z "$BASH_VERSION$ZSH_VERSION" \
32644 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32645 as_echo='print -r --'
32646 as_echo_n='print -rn --'
32647 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32648 as_echo='printf %s\n'
32649 as_echo_n='printf %s'
32650 else
32651 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32652 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32653 as_echo_n='/usr/ucb/echo -n'
32654 else
32655 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32656 as_echo_n_body='eval
32657 arg=$1;
32658 case $arg in #(
32659 *"$as_nl"*)
32660 expr "X$arg" : "X\\(.*\\)$as_nl";
32661 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32662 esac;
32663 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32664 '
32665 export as_echo_n_body
32666 as_echo_n='sh -c $as_echo_n_body as_echo'
32667 fi
32668 export as_echo_body
32669 as_echo='sh -c $as_echo_body as_echo'
32670 fi
32671
32672 # The user is always right.
32673 if test "${PATH_SEPARATOR+set}" != set; then
32674 PATH_SEPARATOR=:
32675 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32676 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32677 PATH_SEPARATOR=';'
32678 }
32679 fi
32680
32681
32682 # IFS
32683 # We need space, tab and new line, in precisely that order. Quoting is
32684 # there to prevent editors from complaining about space-tab.
32685 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32686 # splitting by setting IFS to empty value.)
32687 IFS=" "" $as_nl"
32688
32689 # Find who we are. Look in the path if we contain no directory separator.
32690 as_myself=
32691 case $0 in #((
32692 *[\\/]* ) as_myself=$0 ;;
32693 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32694 for as_dir in $PATH
32695 do
32696 IFS=$as_save_IFS
32697 test -z "$as_dir" && as_dir=.
32698 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32699 done
32700 IFS=$as_save_IFS
32701
32702 ;;
32703 esac
32704 # We did not find ourselves, most probably we were run as `sh COMMAND'
32705 # in which case we are not to be found in the path.
32706 if test "x$as_myself" = x; then
32707 as_myself=$0
32708 fi
32709 if test ! -f "$as_myself"; then
32710 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32711 exit 1
32712 fi
32713
32714 # Unset variables that we do not need and which cause bugs (e.g. in
32715 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32716 # suppresses any "Segmentation fault" message there. '((' could
32717 # trigger a bug in pdksh 5.2.14.
32718 for as_var in BASH_ENV ENV MAIL MAILPATH
32719 do eval test x\${$as_var+set} = xset \
32720 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32721 done
32722 PS1='$ '
32723 PS2='> '
32724 PS4='+ '
32725
32726 # NLS nuisances.
32727 LC_ALL=C
32728 export LC_ALL
32729 LANGUAGE=C
32730 export LANGUAGE
32731
32732 # CDPATH.
32733 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32734
32735
32736 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32737 # ----------------------------------------
32738 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32739 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32740 # script with STATUS, using 1 if that was 0.
32741 as_fn_error ()
32742 {
32743 as_status=$1; test $as_status -eq 0 && as_status=1
32744 if test "$4"; then
32745 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32746 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32747 fi
32748 $as_echo "$as_me: error: $2" >&2
32749 as_fn_exit $as_status
32750 } # as_fn_error
32751
32752
32753 # as_fn_set_status STATUS
32754 # -----------------------
32755 # Set $? to STATUS, without forking.
32756 as_fn_set_status ()
32757 {
32758 return $1
32759 } # as_fn_set_status
32760
32761 # as_fn_exit STATUS
32762 # -----------------
32763 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32764 as_fn_exit ()
32765 {
32766 set +e
32767 as_fn_set_status $1
32768 exit $1
32769 } # as_fn_exit
32770
32771 # as_fn_unset VAR
32772 # ---------------
32773 # Portably unset VAR.
32774 as_fn_unset ()
32775 {
32776 { eval $1=; unset $1;}
32777 }
32778 as_unset=as_fn_unset
32779 # as_fn_append VAR VALUE
32780 # ----------------------
32781 # Append the text in VALUE to the end of the definition contained in VAR. Take
32782 # advantage of any shell optimizations that allow amortized linear growth over
32783 # repeated appends, instead of the typical quadratic growth present in naive
32784 # implementations.
32785 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32786 eval 'as_fn_append ()
32787 {
32788 eval $1+=\$2
32789 }'
32790 else
32791 as_fn_append ()
32792 {
32793 eval $1=\$$1\$2
32794 }
32795 fi # as_fn_append
32796
32797 # as_fn_arith ARG...
32798 # ------------------
32799 # Perform arithmetic evaluation on the ARGs, and store the result in the
32800 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32801 # must be portable across $(()) and expr.
32802 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32803 eval 'as_fn_arith ()
32804 {
32805 as_val=$(( $* ))
32806 }'
32807 else
32808 as_fn_arith ()
32809 {
32810 as_val=`expr "$@" || test $? -eq 1`
32811 }
32812 fi # as_fn_arith
32813
32814
32815 if expr a : '\(a\)' >/dev/null 2>&1 &&
32816 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32817 as_expr=expr
32818 else
32819 as_expr=false
32820 fi
32821
32822 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32823 as_basename=basename
32824 else
32825 as_basename=false
32826 fi
32827
32828 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32829 as_dirname=dirname
32830 else
32831 as_dirname=false
32832 fi
32833
32834 as_me=`$as_basename -- "$0" ||
32835 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32836 X"$0" : 'X\(//\)$' \| \
32837 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32838 $as_echo X/"$0" |
32839 sed '/^.*\/\([^/][^/]*\)\/*$/{
32840 s//\1/
32841 q
32842 }
32843 /^X\/\(\/\/\)$/{
32844 s//\1/
32845 q
32846 }
32847 /^X\/\(\/\).*/{
32848 s//\1/
32849 q
32850 }
32851 s/.*/./; q'`
32852
32853 # Avoid depending upon Character Ranges.
32854 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32855 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32856 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32857 as_cr_digits='0123456789'
32858 as_cr_alnum=$as_cr_Letters$as_cr_digits
32859
32860 ECHO_C= ECHO_N= ECHO_T=
32861 case `echo -n x` in #(((((
32862 -n*)
32863 case `echo 'xy\c'` in
32864 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32865 xy) ECHO_C='\c';;
32866 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32867 ECHO_T=' ';;
32868 esac;;
32869 *)
32870 ECHO_N='-n';;
32871 esac
32872
32873 rm -f conf$$ conf$$.exe conf$$.file
32874 if test -d conf$$.dir; then
32875 rm -f conf$$.dir/conf$$.file
32876 else
32877 rm -f conf$$.dir
32878 mkdir conf$$.dir 2>/dev/null
32879 fi
32880 if (echo >conf$$.file) 2>/dev/null; then
32881 if ln -s conf$$.file conf$$ 2>/dev/null; then
32882 as_ln_s='ln -s'
32883 # ... but there are two gotchas:
32884 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32885 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32886 # In both cases, we have to default to `cp -pR'.
32887 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32888 as_ln_s='cp -pR'
32889 elif ln conf$$.file conf$$ 2>/dev/null; then
32890 as_ln_s=ln
32891 else
32892 as_ln_s='cp -pR'
32893 fi
32894 else
32895 as_ln_s='cp -pR'
32896 fi
32897 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32898 rmdir conf$$.dir 2>/dev/null
32899
32900
32901 # as_fn_mkdir_p
32902 # -------------
32903 # Create "$as_dir" as a directory, including parents if necessary.
32904 as_fn_mkdir_p ()
32905 {
32906
32907 case $as_dir in #(
32908 -*) as_dir=./$as_dir;;
32909 esac
32910 test -d "$as_dir" || eval $as_mkdir_p || {
32911 as_dirs=
32912 while :; do
32913 case $as_dir in #(
32914 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32915 *) as_qdir=$as_dir;;
32916 esac
32917 as_dirs="'$as_qdir' $as_dirs"
32918 as_dir=`$as_dirname -- "$as_dir" ||
32919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32920 X"$as_dir" : 'X\(//\)[^/]' \| \
32921 X"$as_dir" : 'X\(//\)$' \| \
32922 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32923 $as_echo X"$as_dir" |
32924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32925 s//\1/
32926 q
32927 }
32928 /^X\(\/\/\)[^/].*/{
32929 s//\1/
32930 q
32931 }
32932 /^X\(\/\/\)$/{
32933 s//\1/
32934 q
32935 }
32936 /^X\(\/\).*/{
32937 s//\1/
32938 q
32939 }
32940 s/.*/./; q'`
32941 test -d "$as_dir" && break
32942 done
32943 test -z "$as_dirs" || eval "mkdir $as_dirs"
32944 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32945
32946
32947 } # as_fn_mkdir_p
32948 if mkdir -p . 2>/dev/null; then
32949 as_mkdir_p='mkdir -p "$as_dir"'
32950 else
32951 test -d ./-p && rmdir ./-p
32952 as_mkdir_p=false
32953 fi
32954
32955
32956 # as_fn_executable_p FILE
32957 # -----------------------
32958 # Test if FILE is an executable regular file.
32959 as_fn_executable_p ()
32960 {
32961 test -f "$1" && test -x "$1"
32962 } # as_fn_executable_p
32963 as_test_x='test -x'
32964 as_executable_p=as_fn_executable_p
32965
32966 # Sed expression to map a string onto a valid CPP name.
32967 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32968
32969 # Sed expression to map a string onto a valid variable name.
32970 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32971
32972
32973 exec 6>&1
32974 ## ----------------------------------- ##
32975 ## Main body of $CONFIG_STATUS script. ##
32976 ## ----------------------------------- ##
32977 _ASEOF
32978 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32979
32980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32981 # Save the log message, to keep $0 and so on meaningful, and to
32982 # report actual input values of CONFIG_FILES etc. instead of their
32983 # values after options handling.
32984 ac_log="
32985 This file was extended by $as_me, which was
32986 generated by GNU Autoconf 2.69. Invocation command line was
32987
32988 CONFIG_FILES = $CONFIG_FILES
32989 CONFIG_HEADERS = $CONFIG_HEADERS
32990 CONFIG_LINKS = $CONFIG_LINKS
32991 CONFIG_COMMANDS = $CONFIG_COMMANDS
32992 $ $0 $@
32993
32994 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32995 "
32996
32997 _ACEOF
32998
32999 case $ac_config_files in *"
33000 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33001 esac
33002
33003 case $ac_config_headers in *"
33004 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33005 esac
33006
33007
33008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33009 # Files that config.status was made for.
33010 config_files="$ac_config_files"
33011 config_headers="$ac_config_headers"
33012 config_links="$ac_config_links"
33013 config_commands="$ac_config_commands"
33014
33015 _ACEOF
33016
33017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33018 ac_cs_usage="\
33019 \`$as_me' instantiates files and other configuration actions
33020 from templates according to the current configuration. Unless the files
33021 and actions are specified as TAGs, all are instantiated by default.
33022
33023 Usage: $0 [OPTION]... [TAG]...
33024
33025 -h, --help print this help, then exit
33026 -V, --version print version number and configuration settings, then exit
33027 --config print configuration, then exit
33028 -q, --quiet, --silent
33029 do not print progress messages
33030 -d, --debug don't remove temporary files
33031 --recheck update $as_me by reconfiguring in the same conditions
33032 --file=FILE[:TEMPLATE]
33033 instantiate the configuration file FILE
33034 --header=FILE[:TEMPLATE]
33035 instantiate the configuration header FILE
33036
33037 Configuration files:
33038 $config_files
33039
33040 Configuration headers:
33041 $config_headers
33042
33043 Configuration links:
33044 $config_links
33045
33046 Configuration commands:
33047 $config_commands
33048
33049 Report bugs to the package provider."
33050
33051 _ACEOF
33052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33053 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33054 ac_cs_version="\\
33055 config.status
33056 configured by $0, generated by GNU Autoconf 2.69,
33057 with options \\"\$ac_cs_config\\"
33058
33059 Copyright (C) 2012 Free Software Foundation, Inc.
33060 This config.status script is free software; the Free Software Foundation
33061 gives unlimited permission to copy, distribute and modify it."
33062
33063 ac_pwd='$ac_pwd'
33064 srcdir='$srcdir'
33065 AWK='$AWK'
33066 test -n "\$AWK" || AWK=awk
33067 _ACEOF
33068
33069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33070 # The default lists apply if the user does not specify any file.
33071 ac_need_defaults=:
33072 while test $# != 0
33073 do
33074 case $1 in
33075 --*=?*)
33076 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33077 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33078 ac_shift=:
33079 ;;
33080 --*=)
33081 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33082 ac_optarg=
33083 ac_shift=:
33084 ;;
33085 *)
33086 ac_option=$1
33087 ac_optarg=$2
33088 ac_shift=shift
33089 ;;
33090 esac
33091
33092 case $ac_option in
33093 # Handling of the options.
33094 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33095 ac_cs_recheck=: ;;
33096 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33097 $as_echo "$ac_cs_version"; exit ;;
33098 --config | --confi | --conf | --con | --co | --c )
33099 $as_echo "$ac_cs_config"; exit ;;
33100 --debug | --debu | --deb | --de | --d | -d )
33101 debug=: ;;
33102 --file | --fil | --fi | --f )
33103 $ac_shift
33104 case $ac_optarg in
33105 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33106 '') as_fn_error $? "missing file argument" ;;
33107 esac
33108 as_fn_append CONFIG_FILES " '$ac_optarg'"
33109 ac_need_defaults=false;;
33110 --header | --heade | --head | --hea )
33111 $ac_shift
33112 case $ac_optarg in
33113 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33114 esac
33115 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33116 ac_need_defaults=false;;
33117 --he | --h)
33118 # Conflict between --help and --header
33119 as_fn_error $? "ambiguous option: \`$1'
33120 Try \`$0 --help' for more information.";;
33121 --help | --hel | -h )
33122 $as_echo "$ac_cs_usage"; exit ;;
33123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33124 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33125 ac_cs_silent=: ;;
33126
33127 # This is an error.
33128 -*) as_fn_error $? "unrecognized option: \`$1'
33129 Try \`$0 --help' for more information." ;;
33130
33131 *) as_fn_append ac_config_targets " $1"
33132 ac_need_defaults=false ;;
33133
33134 esac
33135 shift
33136 done
33137
33138 ac_configure_extra_args=
33139
33140 if $ac_cs_silent; then
33141 exec 6>/dev/null
33142 ac_configure_extra_args="$ac_configure_extra_args --silent"
33143 fi
33144
33145 _ACEOF
33146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33147 if \$ac_cs_recheck; then
33148 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33149 shift
33150 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33151 CONFIG_SHELL='$SHELL'
33152 export CONFIG_SHELL
33153 exec "\$@"
33154 fi
33155
33156 _ACEOF
33157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33158 exec 5>>config.log
33159 {
33160 echo
33161 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33162 ## Running $as_me. ##
33163 _ASBOX
33164 $as_echo "$ac_log"
33165 } >&5
33166
33167 _ACEOF
33168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33169 #
33170 # INIT-COMMANDS
33171 #
33172 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33173 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33174 subdirs='$subdirs'
33175
33176 _ACEOF
33177
33178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33179
33180 # Handling of arguments.
33181 for ac_config_target in $ac_config_targets
33182 do
33183 case $ac_config_target in
33184 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
33185 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33186 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33187 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33188 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33189 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33190 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33191 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33192 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33193 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33194
33195 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33196 esac
33197 done
33198
33199
33200 # If the user did not use the arguments to specify the items to instantiate,
33201 # then the envvar interface is used. Set only those that are not.
33202 # We use the long form for the default assignment because of an extremely
33203 # bizarre bug on SunOS 4.1.3.
33204 if $ac_need_defaults; then
33205 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33206 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33207 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33208 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33209 fi
33210
33211 # Have a temporary directory for convenience. Make it in the build tree
33212 # simply because there is no reason against having it here, and in addition,
33213 # creating and moving files from /tmp can sometimes cause problems.
33214 # Hook for its removal unless debugging.
33215 # Note that there is a small window in which the directory will not be cleaned:
33216 # after its creation but before its name has been assigned to `$tmp'.
33217 $debug ||
33218 {
33219 tmp= ac_tmp=
33220 trap 'exit_status=$?
33221 : "${ac_tmp:=$tmp}"
33222 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33223 ' 0
33224 trap 'as_fn_exit 1' 1 2 13 15
33225 }
33226 # Create a (secure) tmp directory for tmp files.
33227
33228 {
33229 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33230 test -d "$tmp"
33231 } ||
33232 {
33233 tmp=./conf$$-$RANDOM
33234 (umask 077 && mkdir "$tmp")
33235 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33236 ac_tmp=$tmp
33237
33238 # Set up the scripts for CONFIG_FILES section.
33239 # No need to generate them if there are no CONFIG_FILES.
33240 # This happens for instance with `./config.status config.h'.
33241 if test -n "$CONFIG_FILES"; then
33242
33243 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33244 ac_cs_awk_getline=:
33245 ac_cs_awk_pipe_init=
33246 ac_cs_awk_read_file='
33247 while ((getline aline < (F[key])) > 0)
33248 print(aline)
33249 close(F[key])'
33250 ac_cs_awk_pipe_fini=
33251 else
33252 ac_cs_awk_getline=false
33253 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33254 ac_cs_awk_read_file='
33255 print "|#_!!_#|"
33256 print "cat " F[key] " &&"
33257 '$ac_cs_awk_pipe_init
33258 # The final `:' finishes the AND list.
33259 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33260 fi
33261 ac_cr=`echo X | tr X '\015'`
33262 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33263 # But we know of no other shell where ac_cr would be empty at this
33264 # point, so we can use a bashism as a fallback.
33265 if test "x$ac_cr" = x; then
33266 eval ac_cr=\$\'\\r\'
33267 fi
33268 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33269 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33270 ac_cs_awk_cr='\\r'
33271 else
33272 ac_cs_awk_cr=$ac_cr
33273 fi
33274
33275 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33276 _ACEOF
33277
33278 # Create commands to substitute file output variables.
33279 {
33280 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33281 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33282 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33283 echo "_ACAWK" &&
33284 echo "_ACEOF"
33285 } >conf$$files.sh &&
33286 . ./conf$$files.sh ||
33287 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33288 rm -f conf$$files.sh
33289
33290 {
33291 echo "cat >conf$$subs.awk <<_ACEOF" &&
33292 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33293 echo "_ACEOF"
33294 } >conf$$subs.sh ||
33295 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33296 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33297 ac_delim='%!_!# '
33298 for ac_last_try in false false false false false :; do
33299 . ./conf$$subs.sh ||
33300 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33301
33302 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33303 if test $ac_delim_n = $ac_delim_num; then
33304 break
33305 elif $ac_last_try; then
33306 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33307 else
33308 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33309 fi
33310 done
33311 rm -f conf$$subs.sh
33312
33313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33314 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33315 _ACEOF
33316 sed -n '
33317 h
33318 s/^/S["/; s/!.*/"]=/
33319 p
33320 g
33321 s/^[^!]*!//
33322 :repl
33323 t repl
33324 s/'"$ac_delim"'$//
33325 t delim
33326 :nl
33327 h
33328 s/\(.\{148\}\)..*/\1/
33329 t more1
33330 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33331 p
33332 n
33333 b repl
33334 :more1
33335 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33336 p
33337 g
33338 s/.\{148\}//
33339 t nl
33340 :delim
33341 h
33342 s/\(.\{148\}\)..*/\1/
33343 t more2
33344 s/["\\]/\\&/g; s/^/"/; s/$/"/
33345 p
33346 b
33347 :more2
33348 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33349 p
33350 g
33351 s/.\{148\}//
33352 t delim
33353 ' <conf$$subs.awk | sed '
33354 /^[^""]/{
33355 N
33356 s/\n//
33357 }
33358 ' >>$CONFIG_STATUS || ac_write_fail=1
33359 rm -f conf$$subs.awk
33360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33361 _ACAWK
33362 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33363 for (key in S) S_is_set[key] = 1
33364 FS = "\a"
33365 \$ac_cs_awk_pipe_init
33366 }
33367 {
33368 line = $ 0
33369 nfields = split(line, field, "@")
33370 substed = 0
33371 len = length(field[1])
33372 for (i = 2; i < nfields; i++) {
33373 key = field[i]
33374 keylen = length(key)
33375 if (S_is_set[key]) {
33376 value = S[key]
33377 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33378 len += length(value) + length(field[++i])
33379 substed = 1
33380 } else
33381 len += 1 + keylen
33382 }
33383 if (nfields == 3 && !substed) {
33384 key = field[2]
33385 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33386 \$ac_cs_awk_read_file
33387 next
33388 }
33389 }
33390 print line
33391 }
33392 \$ac_cs_awk_pipe_fini
33393 _ACAWK
33394 _ACEOF
33395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33396 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33397 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33398 else
33399 cat
33400 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33401 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33402 _ACEOF
33403
33404 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33405 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33406 # trailing colons and then remove the whole line if VPATH becomes empty
33407 # (actually we leave an empty line to preserve line numbers).
33408 if test "x$srcdir" = x.; then
33409 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33410 h
33411 s///
33412 s/^/:/
33413 s/[ ]*$/:/
33414 s/:\$(srcdir):/:/g
33415 s/:\${srcdir}:/:/g
33416 s/:@srcdir@:/:/g
33417 s/^:*//
33418 s/:*$//
33419 x
33420 s/\(=[ ]*\).*/\1/
33421 G
33422 s/\n//
33423 s/^[^=]*=[ ]*$//
33424 }'
33425 fi
33426
33427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33428 fi # test -n "$CONFIG_FILES"
33429
33430 # Set up the scripts for CONFIG_HEADERS section.
33431 # No need to generate them if there are no CONFIG_HEADERS.
33432 # This happens for instance with `./config.status Makefile'.
33433 if test -n "$CONFIG_HEADERS"; then
33434 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33435 BEGIN {
33436 _ACEOF
33437
33438 # Transform confdefs.h into an awk script `defines.awk', embedded as
33439 # here-document in config.status, that substitutes the proper values into
33440 # config.h.in to produce config.h.
33441
33442 # Create a delimiter string that does not exist in confdefs.h, to ease
33443 # handling of long lines.
33444 ac_delim='%!_!# '
33445 for ac_last_try in false false :; do
33446 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33447 if test -z "$ac_tt"; then
33448 break
33449 elif $ac_last_try; then
33450 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33451 else
33452 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33453 fi
33454 done
33455
33456 # For the awk script, D is an array of macro values keyed by name,
33457 # likewise P contains macro parameters if any. Preserve backslash
33458 # newline sequences.
33459
33460 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33461 sed -n '
33462 s/.\{148\}/&'"$ac_delim"'/g
33463 t rset
33464 :rset
33465 s/^[ ]*#[ ]*define[ ][ ]*/ /
33466 t def
33467 d
33468 :def
33469 s/\\$//
33470 t bsnl
33471 s/["\\]/\\&/g
33472 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33473 D["\1"]=" \3"/p
33474 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33475 d
33476 :bsnl
33477 s/["\\]/\\&/g
33478 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33479 D["\1"]=" \3\\\\\\n"\\/p
33480 t cont
33481 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33482 t cont
33483 d
33484 :cont
33485 n
33486 s/.\{148\}/&'"$ac_delim"'/g
33487 t clear
33488 :clear
33489 s/\\$//
33490 t bsnlc
33491 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33492 d
33493 :bsnlc
33494 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33495 b cont
33496 ' <confdefs.h | sed '
33497 s/'"$ac_delim"'/"\\\
33498 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33499
33500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33501 for (key in D) D_is_set[key] = 1
33502 FS = "\a"
33503 }
33504 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33505 line = \$ 0
33506 split(line, arg, " ")
33507 if (arg[1] == "#") {
33508 defundef = arg[2]
33509 mac1 = arg[3]
33510 } else {
33511 defundef = substr(arg[1], 2)
33512 mac1 = arg[2]
33513 }
33514 split(mac1, mac2, "(") #)
33515 macro = mac2[1]
33516 prefix = substr(line, 1, index(line, defundef) - 1)
33517 if (D_is_set[macro]) {
33518 # Preserve the white space surrounding the "#".
33519 print prefix "define", macro P[macro] D[macro]
33520 next
33521 } else {
33522 # Replace #undef with comments. This is necessary, for example,
33523 # in the case of _POSIX_SOURCE, which is predefined and required
33524 # on some systems where configure will not decide to define it.
33525 if (defundef == "undef") {
33526 print "/*", prefix defundef, macro, "*/"
33527 next
33528 }
33529 }
33530 }
33531 { print }
33532 _ACAWK
33533 _ACEOF
33534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33535 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33536 fi # test -n "$CONFIG_HEADERS"
33537
33538
33539 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33540 shift
33541 for ac_tag
33542 do
33543 case $ac_tag in
33544 :[FHLC]) ac_mode=$ac_tag; continue;;
33545 esac
33546 case $ac_mode$ac_tag in
33547 :[FHL]*:*);;
33548 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33549 :[FH]-) ac_tag=-:-;;
33550 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33551 esac
33552 ac_save_IFS=$IFS
33553 IFS=:
33554 set x $ac_tag
33555 IFS=$ac_save_IFS
33556 shift
33557 ac_file=$1
33558 shift
33559
33560 case $ac_mode in
33561 :L) ac_source=$1;;
33562 :[FH])
33563 ac_file_inputs=
33564 for ac_f
33565 do
33566 case $ac_f in
33567 -) ac_f="$ac_tmp/stdin";;
33568 *) # Look for the file first in the build tree, then in the source tree
33569 # (if the path is not absolute). The absolute path cannot be DOS-style,
33570 # because $ac_f cannot contain `:'.
33571 test -f "$ac_f" ||
33572 case $ac_f in
33573 [\\/$]*) false;;
33574 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33575 esac ||
33576 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33577 esac
33578 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33579 as_fn_append ac_file_inputs " '$ac_f'"
33580 done
33581
33582 # Let's still pretend it is `configure' which instantiates (i.e., don't
33583 # use $as_me), people would be surprised to read:
33584 # /* config.h. Generated by config.status. */
33585 configure_input='Generated from '`
33586 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33587 `' by configure.'
33588 if test x"$ac_file" != x-; then
33589 configure_input="$ac_file. $configure_input"
33590 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33591 $as_echo "$as_me: creating $ac_file" >&6;}
33592 fi
33593 # Neutralize special characters interpreted by sed in replacement strings.
33594 case $configure_input in #(
33595 *\&* | *\|* | *\\* )
33596 ac_sed_conf_input=`$as_echo "$configure_input" |
33597 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33598 *) ac_sed_conf_input=$configure_input;;
33599 esac
33600
33601 case $ac_tag in
33602 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33603 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33604 esac
33605 ;;
33606 esac
33607
33608 ac_dir=`$as_dirname -- "$ac_file" ||
33609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33610 X"$ac_file" : 'X\(//\)[^/]' \| \
33611 X"$ac_file" : 'X\(//\)$' \| \
33612 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33613 $as_echo X"$ac_file" |
33614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33615 s//\1/
33616 q
33617 }
33618 /^X\(\/\/\)[^/].*/{
33619 s//\1/
33620 q
33621 }
33622 /^X\(\/\/\)$/{
33623 s//\1/
33624 q
33625 }
33626 /^X\(\/\).*/{
33627 s//\1/
33628 q
33629 }
33630 s/.*/./; q'`
33631 as_dir="$ac_dir"; as_fn_mkdir_p
33632 ac_builddir=.
33633
33634 case "$ac_dir" in
33635 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33636 *)
33637 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33638 # A ".." for each directory in $ac_dir_suffix.
33639 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33640 case $ac_top_builddir_sub in
33641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33643 esac ;;
33644 esac
33645 ac_abs_top_builddir=$ac_pwd
33646 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33647 # for backward compatibility:
33648 ac_top_builddir=$ac_top_build_prefix
33649
33650 case $srcdir in
33651 .) # We are building in place.
33652 ac_srcdir=.
33653 ac_top_srcdir=$ac_top_builddir_sub
33654 ac_abs_top_srcdir=$ac_pwd ;;
33655 [\\/]* | ?:[\\/]* ) # Absolute name.
33656 ac_srcdir=$srcdir$ac_dir_suffix;
33657 ac_top_srcdir=$srcdir
33658 ac_abs_top_srcdir=$srcdir ;;
33659 *) # Relative name.
33660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33661 ac_top_srcdir=$ac_top_build_prefix$srcdir
33662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33663 esac
33664 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33665
33666
33667 case $ac_mode in
33668 :F)
33669 #
33670 # CONFIG_FILE
33671 #
33672
33673 _ACEOF
33674
33675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33676 # If the template does not know about datarootdir, expand it.
33677 # FIXME: This hack should be removed a few years after 2.60.
33678 ac_datarootdir_hack=; ac_datarootdir_seen=
33679 ac_sed_dataroot='
33680 /datarootdir/ {
33681 p
33682 q
33683 }
33684 /@datadir@/p
33685 /@docdir@/p
33686 /@infodir@/p
33687 /@localedir@/p
33688 /@mandir@/p'
33689 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33690 *datarootdir*) ac_datarootdir_seen=yes;;
33691 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33693 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33694 _ACEOF
33695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33696 ac_datarootdir_hack='
33697 s&@datadir@&$datadir&g
33698 s&@docdir@&$docdir&g
33699 s&@infodir@&$infodir&g
33700 s&@localedir@&$localedir&g
33701 s&@mandir@&$mandir&g
33702 s&\\\${datarootdir}&$datarootdir&g' ;;
33703 esac
33704 _ACEOF
33705
33706 # Neutralize VPATH when `$srcdir' = `.'.
33707 # Shell code in configure.ac might set extrasub.
33708 # FIXME: do we really want to maintain this feature?
33709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33710 ac_sed_extra="$ac_vpsub
33711 $extrasub
33712 _ACEOF
33713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33714 :t
33715 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33716 s|@configure_input@|$ac_sed_conf_input|;t t
33717 s&@top_builddir@&$ac_top_builddir_sub&;t t
33718 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33719 s&@srcdir@&$ac_srcdir&;t t
33720 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33721 s&@top_srcdir@&$ac_top_srcdir&;t t
33722 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33723 s&@builddir@&$ac_builddir&;t t
33724 s&@abs_builddir@&$ac_abs_builddir&;t t
33725 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33726 $ac_datarootdir_hack
33727 "
33728 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33729 if $ac_cs_awk_getline; then
33730 $AWK -f "$ac_tmp/subs.awk"
33731 else
33732 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33733 fi \
33734 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33735
33736 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33737 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33738 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33739 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33741 which seems to be undefined. Please make sure it is defined" >&5
33742 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33743 which seems to be undefined. Please make sure it is defined" >&2;}
33744
33745 rm -f "$ac_tmp/stdin"
33746 case $ac_file in
33747 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33748 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33749 esac \
33750 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33751 ;;
33752 :H)
33753 #
33754 # CONFIG_HEADER
33755 #
33756 if test x"$ac_file" != x-; then
33757 {
33758 $as_echo "/* $configure_input */" \
33759 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33760 } >"$ac_tmp/config.h" \
33761 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33762 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33763 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33764 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33765 else
33766 rm -f "$ac_file"
33767 mv "$ac_tmp/config.h" "$ac_file" \
33768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33769 fi
33770 else
33771 $as_echo "/* $configure_input */" \
33772 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33773 || as_fn_error $? "could not create -" "$LINENO" 5
33774 fi
33775 ;;
33776 :L)
33777 #
33778 # CONFIG_LINK
33779 #
33780
33781 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33782 :
33783 else
33784 # Prefer the file from the source tree if names are identical.
33785 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33786 ac_source=$srcdir/$ac_source
33787 fi
33788
33789 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33790 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33791
33792 if test ! -r "$ac_source"; then
33793 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33794 fi
33795 rm -f "$ac_file"
33796
33797 # Try a relative symlink, then a hard link, then a copy.
33798 case $ac_source in
33799 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33800 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33801 esac
33802 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33803 ln "$ac_source" "$ac_file" 2>/dev/null ||
33804 cp -p "$ac_source" "$ac_file" ||
33805 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33806 fi
33807 ;;
33808 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33809 $as_echo "$as_me: executing $ac_file commands" >&6;}
33810 ;;
33811 esac
33812
33813
33814 case $ac_file$ac_mode in
33815 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33816 "gccdepdir":C)
33817 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33818 for lang in $subdirs c-family common analyzer rtl-ssa
33819 do
33820 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33821 done ;;
33822 "as":F) chmod +x as ;;
33823 "collect-ld":F) chmod +x collect-ld ;;
33824 "nm":F) chmod +x nm ;;
33825 "dsymutil":F) chmod +x dsymutil ;;
33826 "default":C)
33827 case ${CONFIG_HEADERS} in
33828 *auto-host.h:config.in*)
33829 echo > cstamp-h ;;
33830 esac
33831 # Make sure all the subdirs exist.
33832 for d in $subdirs doc build common c-family
33833 do
33834 test -d $d || mkdir $d
33835 done
33836 ;;
33837
33838 esac
33839 done # for ac_tag
33840
33841
33842 as_fn_exit 0
33843 _ACEOF
33844 ac_clean_files=$ac_clean_files_save
33845
33846 test $ac_write_fail = 0 ||
33847 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33848
33849
33850 # configure is writing to config.log, and then calls config.status.
33851 # config.status does its own redirection, appending to config.log.
33852 # Unfortunately, on DOS this fails, as config.log is still kept open
33853 # by configure, so config.status won't be able to write to it; its
33854 # output is simply discarded. So we exec the FD to /dev/null,
33855 # effectively closing config.log, so it can be properly (re)opened and
33856 # appended to by config.status. When coming back to configure, we
33857 # need to make the FD available again.
33858 if test "$no_create" != yes; then
33859 ac_cs_success=:
33860 ac_config_status_args=
33861 test "$silent" = yes &&
33862 ac_config_status_args="$ac_config_status_args --quiet"
33863 exec 5>/dev/null
33864 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33865 exec 5>>config.log
33866 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33867 # would make configure fail if this is the last instruction.
33868 $ac_cs_success || as_fn_exit 1
33869 fi
33870 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33872 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33873 fi
33874
33875