]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
offload-defaulted: Config option to silently ignore uninstalled offload compilers
[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.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 CET_HOST_FLAGS
635 NO_PIE_FLAG
636 NO_PIE_CFLAGS
637 enable_default_pie
638 PICFLAG
639 enable_host_shared
640 enable_plugin
641 pluginlibs
642 ISLINC
643 ISLLIBS
644 GMPINC
645 GMPLIBS
646 target_cpu_default
647 d_target_objs
648 fortran_target_objs
649 cxx_target_objs
650 c_target_objs
651 use_gcc_stdint
652 xm_defines
653 xm_include_list
654 xm_file_list
655 tm_d_include_list
656 tm_d_file_list
657 tm_p_include_list
658 tm_p_file_list
659 tm_defines
660 tm_include_list
661 tm_file_list
662 common_out_object_file
663 common_out_file
664 out_object_file
665 out_file
666 objc_boehm_gc
667 md_file
668 local_prefix
669 lang_tree_files
670 lang_specs_files
671 lang_opt_files
672 install
673 out_host_hook_obj
674 host_xm_defines
675 host_xm_include_list
676 host_xm_file_list
677 host_exeext
678 gcc_gxx_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 MAINT
718 zlibinc
719 zlibdir
720 HOST_LIBS
721 enable_default_ssp
722 thin_archive_support
723 ld_soname_option
724 ld_version_script_option
725 libgcc_visibility
726 gcc_cv_otool
727 gcc_cv_readelf
728 gcc_cv_objdump
729 ORIGINAL_NM_FOR_TARGET
730 gcc_cv_nm
731 ORIGINAL_LD_GOLD_FOR_TARGET
732 ORIGINAL_LD_BFD_FOR_TARGET
733 ORIGINAL_LD_FOR_TARGET
734 ORIGINAL_PLUGIN_LD_FOR_TARGET
735 gcc_cv_ld
736 ORIGINAL_AS_FOR_TARGET
737 gcc_cv_as
738 enable_fast_install
739 objdir
740 OTOOL64
741 OTOOL
742 LIPO
743 NMEDIT
744 DSYMUTIL
745 STRIP
746 OBJDUMP
747 ac_ct_DUMPBIN
748 DUMPBIN
749 LD
750 FGREP
751 SED
752 LIBTOOL
753 collect2
754 NO_PIE_FLAG_FOR_BUILD
755 NO_PIE_CFLAGS_FOR_BUILD
756 BUILD_NO_PIE_FLAG
757 BUILD_NO_PIE_CFLAGS
758 STMP_FIXINC
759 BUILD_LDFLAGS
760 BUILD_CXXFLAGS
761 BUILD_CFLAGS
762 CXX_FOR_BUILD
763 CC_FOR_BUILD
764 inhibit_libc
765 BUILD_SYSTEM_HEADER_DIR
766 SYSTEM_HEADER_DIR
767 ALL
768 CROSS
769 CATOBJEXT
770 GENCAT
771 INSTOBJEXT
772 DATADIRNAME
773 CATALOGS
774 POSUB
775 GMSGFMT
776 XGETTEXT
777 INCINTL
778 LIBINTL_DEP
779 LIBINTL
780 USE_NLS
781 get_gcc_base_ver
782 HAVE_AUTO_BUILD
783 extra_opt_files
784 extra_modes_file
785 NATIVE_SYSTEM_HEADER_DIR
786 objext
787 manext
788 LIBICONV_DEP
789 LTLIBICONV
790 LIBICONV
791 ZSTD_LDFLAGS
792 ZSTD_CPPFLAGS
793 ZSTD_LIB
794 ZSTD_INCLUDE
795 DL_LIB
796 LDEXP_LIB
797 NETLIBS
798 EXTRA_GCC_LIBS
799 GNAT_LIBEXC
800 COLLECT2_LIBS
801 CXXDEPMODE
802 DEPDIR
803 am__leading_dot
804 doc_build_sys
805 AR
806 NM
807 BISON
808 FLEX
809 GENERATED_MANPAGES
810 BUILD_INFO
811 MAKEINFO
812 have_mktemp_command
813 make_compare_target
814 INSTALL_DATA
815 INSTALL_PROGRAM
816 INSTALL
817 ranlib_flags
818 RANLIB
819 LN
820 LN_S
821 AWK
822 SET_MAKE
823 omp_device_property_deps
824 omp_device_properties
825 accel_dir_suffix
826 real_target_noncanonical
827 enable_as_accelerator
828 gnat_install_lib
829 REPORT_BUGS_TEXI
830 REPORT_BUGS_TO
831 PKGVERSION
832 CONFIGURE_SPECS
833 enable_gcov
834 enable_shared
835 enable_fixed_point
836 enable_decimal_float
837 with_float
838 with_cpu
839 enable_multiarch
840 enable_multilib
841 coverage_flags
842 valgrind_command
843 valgrind_path_defines
844 valgrind_path
845 TREECHECKING
846 nocommon_flag
847 noexception_flags
848 warn_cxxflags
849 warn_cflags
850 c_strict_warn
851 strict_warn
852 c_loose_warn
853 loose_warn
854 aliasing_flags
855 CPP
856 EGREP
857 GREP
858 CXXCPP
859 PICFLAG_FOR_TARGET
860 GNATMAKE
861 GNATBIND
862 ac_ct_CXX
863 CXXFLAGS
864 CXX
865 OBJEXT
866 EXEEXT
867 ac_ct_CC
868 CPPFLAGS
869 LDFLAGS
870 CFLAGS
871 CC
872 GENINSRC
873 CROSS_SYSTEM_HEADER_DIR
874 TARGET_SYSTEM_ROOT_DEFINE
875 TARGET_SYSTEM_ROOT
876 SYSROOT_CFLAGS_FOR_TARGET
877 target_subdir
878 host_subdir
879 build_subdir
880 build_libsubdir
881 target_noncanonical
882 host_noncanonical
883 target_os
884 target_vendor
885 target_cpu
886 target
887 host_os
888 host_vendor
889 host_cpu
890 host
891 build_os
892 build_vendor
893 build_cpu
894 build
895 target_alias
896 host_alias
897 build_alias
898 LIBS
899 ECHO_T
900 ECHO_N
901 ECHO_C
902 DEFS
903 mandir
904 localedir
905 libdir
906 psdir
907 pdfdir
908 dvidir
909 htmldir
910 infodir
911 docdir
912 oldincludedir
913 includedir
914 localstatedir
915 sharedstatedir
916 sysconfdir
917 datadir
918 datarootdir
919 libexecdir
920 sbindir
921 bindir
922 program_transform_name
923 prefix
924 exec_prefix
925 PACKAGE_URL
926 PACKAGE_BUGREPORT
927 PACKAGE_STRING
928 PACKAGE_VERSION
929 PACKAGE_TARNAME
930 PACKAGE_NAME
931 PATH_SEPARATOR
932 SHELL'
933 ac_subst_files='option_includes
934 language_hooks'
935 ac_user_opts='
936 enable_option_checking
937 with_build_libsubdir
938 with_local_prefix
939 with_native_system_header_dir
940 with_build_sysroot
941 with_sysroot
942 with_gxx_include_dir
943 with_gxx_libcxx_include_dir
944 with_cpp_install_dir
945 enable_generated_files_in_srcdir
946 with_gnu_ld
947 with_ld
948 with_demangler_in_ld
949 with_gnu_as
950 with_as
951 enable_largefile
952 enable_build_format_warnings
953 enable_werror_always
954 enable_checking
955 enable_coverage
956 enable_gather_detailed_mem_stats
957 enable_valgrind_annotations
958 with_stabs
959 enable_multilib
960 enable_multiarch
961 with_stack_clash_protection_guard_size
962 enable___cxa_atexit
963 enable_decimal_float
964 enable_fixed_point
965 enable_threads
966 enable_tls
967 enable_vtable_verify
968 enable_analyzer
969 enable_objc_gc
970 with_dwarf2
971 enable_shared
972 enable_gcov
973 with_specs
974 with_pkgversion
975 with_bugurl
976 with_documentation_root_url
977 with_changes_root_url
978 enable_languages
979 with_multilib_list
980 with_multilib_generator
981 with_zstd
982 with_zstd_include
983 with_zstd_lib
984 enable_rpath
985 with_libiconv_prefix
986 with_libiconv_type
987 enable_sjlj_exceptions
988 with_gcc_major_version_only
989 enable_secureplt
990 enable_mingw_wildcard
991 enable_large_address_aware
992 enable_leading_mingw64_underscores
993 enable_cld
994 enable_frame_pointer
995 enable_win32_registry
996 enable_static
997 with_pic
998 enable_fast_install
999 enable_libtool_lock
1000 enable_ld
1001 enable_gold
1002 with_plugin_ld
1003 enable_gnu_indirect_function
1004 enable_initfini_array
1005 enable_comdat
1006 enable_newlib_nano_formatted_io
1007 enable_standard_branch_protection
1008 enable_fix_cortex_a53_835769
1009 enable_fix_cortex_a53_843419
1010 with_glibc_version
1011 enable_gnu_unique_object
1012 enable_linker_build_id
1013 enable_libssp
1014 enable_default_ssp
1015 with_long_double_128
1016 with_long_double_format
1017 with_gc
1018 with_system_zlib
1019 enable_maintainer_mode
1020 enable_link_mutex
1021 enable_link_serialization
1022 enable_version_specific_runtime_libs
1023 enable_plugin
1024 enable_host_shared
1025 enable_libquadmath_support
1026 with_linker_hash_style
1027 with_diagnostics_color
1028 with_diagnostics_urls
1029 enable_default_pie
1030 enable_cet
1031 enable_s390_excess_float_precision
1032 '
1033 ac_precious_vars='build_alias
1034 host_alias
1035 target_alias
1036 CC
1037 CFLAGS
1038 LDFLAGS
1039 LIBS
1040 CPPFLAGS
1041 CXX
1042 CXXFLAGS
1043 CCC
1044 CXXCPP
1045 CPP
1046 GMPLIBS
1047 GMPINC
1048 ISLLIBS
1049 ISLINC'
1050
1051
1052 # Initialize some variables set by options.
1053 ac_init_help=
1054 ac_init_version=false
1055 ac_unrecognized_opts=
1056 ac_unrecognized_sep=
1057 # The variables have the same names as the options, with
1058 # dashes changed to underlines.
1059 cache_file=/dev/null
1060 exec_prefix=NONE
1061 no_create=
1062 no_recursion=
1063 prefix=NONE
1064 program_prefix=NONE
1065 program_suffix=NONE
1066 program_transform_name=s,x,x,
1067 silent=
1068 site=
1069 srcdir=
1070 verbose=
1071 x_includes=NONE
1072 x_libraries=NONE
1073
1074 # Installation directory options.
1075 # These are left unexpanded so users can "make install exec_prefix=/foo"
1076 # and all the variables that are supposed to be based on exec_prefix
1077 # by default will actually change.
1078 # Use braces instead of parens because sh, perl, etc. also accept them.
1079 # (The list follows the same order as the GNU Coding Standards.)
1080 bindir='${exec_prefix}/bin'
1081 sbindir='${exec_prefix}/sbin'
1082 libexecdir='${exec_prefix}/libexec'
1083 datarootdir='${prefix}/share'
1084 datadir='${datarootdir}'
1085 sysconfdir='${prefix}/etc'
1086 sharedstatedir='${prefix}/com'
1087 localstatedir='${prefix}/var'
1088 includedir='${prefix}/include'
1089 oldincludedir='/usr/include'
1090 docdir='${datarootdir}/doc/${PACKAGE}'
1091 infodir='${datarootdir}/info'
1092 htmldir='${docdir}'
1093 dvidir='${docdir}'
1094 pdfdir='${docdir}'
1095 psdir='${docdir}'
1096 libdir='${exec_prefix}/lib'
1097 localedir='${datarootdir}/locale'
1098 mandir='${datarootdir}/man'
1099
1100 ac_prev=
1101 ac_dashdash=
1102 for ac_option
1103 do
1104 # If the previous option needs an argument, assign it.
1105 if test -n "$ac_prev"; then
1106 eval $ac_prev=\$ac_option
1107 ac_prev=
1108 continue
1109 fi
1110
1111 case $ac_option in
1112 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1113 *=) ac_optarg= ;;
1114 *) ac_optarg=yes ;;
1115 esac
1116
1117 # Accept the important Cygnus configure options, so we can diagnose typos.
1118
1119 case $ac_dashdash$ac_option in
1120 --)
1121 ac_dashdash=yes ;;
1122
1123 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1124 ac_prev=bindir ;;
1125 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1126 bindir=$ac_optarg ;;
1127
1128 -build | --build | --buil | --bui | --bu)
1129 ac_prev=build_alias ;;
1130 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1131 build_alias=$ac_optarg ;;
1132
1133 -cache-file | --cache-file | --cache-fil | --cache-fi \
1134 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1135 ac_prev=cache_file ;;
1136 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1137 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1138 cache_file=$ac_optarg ;;
1139
1140 --config-cache | -C)
1141 cache_file=config.cache ;;
1142
1143 -datadir | --datadir | --datadi | --datad)
1144 ac_prev=datadir ;;
1145 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1146 datadir=$ac_optarg ;;
1147
1148 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1149 | --dataroo | --dataro | --datar)
1150 ac_prev=datarootdir ;;
1151 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1152 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1153 datarootdir=$ac_optarg ;;
1154
1155 -disable-* | --disable-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid feature name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "enable_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval enable_$ac_useropt=no ;;
1170
1171 -docdir | --docdir | --docdi | --doc | --do)
1172 ac_prev=docdir ;;
1173 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1174 docdir=$ac_optarg ;;
1175
1176 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1177 ac_prev=dvidir ;;
1178 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1179 dvidir=$ac_optarg ;;
1180
1181 -enable-* | --enable-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid feature name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "enable_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval enable_$ac_useropt=\$ac_optarg ;;
1196
1197 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1198 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1199 | --exec | --exe | --ex)
1200 ac_prev=exec_prefix ;;
1201 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1202 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1203 | --exec=* | --exe=* | --ex=*)
1204 exec_prefix=$ac_optarg ;;
1205
1206 -gas | --gas | --ga | --g)
1207 # Obsolete; use --with-gas.
1208 with_gas=yes ;;
1209
1210 -help | --help | --hel | --he | -h)
1211 ac_init_help=long ;;
1212 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1213 ac_init_help=recursive ;;
1214 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1215 ac_init_help=short ;;
1216
1217 -host | --host | --hos | --ho)
1218 ac_prev=host_alias ;;
1219 -host=* | --host=* | --hos=* | --ho=*)
1220 host_alias=$ac_optarg ;;
1221
1222 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1223 ac_prev=htmldir ;;
1224 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1225 | --ht=*)
1226 htmldir=$ac_optarg ;;
1227
1228 -includedir | --includedir | --includedi | --included | --include \
1229 | --includ | --inclu | --incl | --inc)
1230 ac_prev=includedir ;;
1231 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1232 | --includ=* | --inclu=* | --incl=* | --inc=*)
1233 includedir=$ac_optarg ;;
1234
1235 -infodir | --infodir | --infodi | --infod | --info | --inf)
1236 ac_prev=infodir ;;
1237 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1238 infodir=$ac_optarg ;;
1239
1240 -libdir | --libdir | --libdi | --libd)
1241 ac_prev=libdir ;;
1242 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1243 libdir=$ac_optarg ;;
1244
1245 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1246 | --libexe | --libex | --libe)
1247 ac_prev=libexecdir ;;
1248 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1249 | --libexe=* | --libex=* | --libe=*)
1250 libexecdir=$ac_optarg ;;
1251
1252 -localedir | --localedir | --localedi | --localed | --locale)
1253 ac_prev=localedir ;;
1254 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1255 localedir=$ac_optarg ;;
1256
1257 -localstatedir | --localstatedir | --localstatedi | --localstated \
1258 | --localstate | --localstat | --localsta | --localst | --locals)
1259 ac_prev=localstatedir ;;
1260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1261 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1262 localstatedir=$ac_optarg ;;
1263
1264 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1265 ac_prev=mandir ;;
1266 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1267 mandir=$ac_optarg ;;
1268
1269 -nfp | --nfp | --nf)
1270 # Obsolete; use --without-fp.
1271 with_fp=no ;;
1272
1273 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1274 | --no-cr | --no-c | -n)
1275 no_create=yes ;;
1276
1277 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1278 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1279 no_recursion=yes ;;
1280
1281 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1282 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1283 | --oldin | --oldi | --old | --ol | --o)
1284 ac_prev=oldincludedir ;;
1285 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1286 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1287 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1288 oldincludedir=$ac_optarg ;;
1289
1290 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1291 ac_prev=prefix ;;
1292 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1293 prefix=$ac_optarg ;;
1294
1295 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1296 | --program-pre | --program-pr | --program-p)
1297 ac_prev=program_prefix ;;
1298 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1299 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1300 program_prefix=$ac_optarg ;;
1301
1302 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1303 | --program-suf | --program-su | --program-s)
1304 ac_prev=program_suffix ;;
1305 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1306 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1307 program_suffix=$ac_optarg ;;
1308
1309 -program-transform-name | --program-transform-name \
1310 | --program-transform-nam | --program-transform-na \
1311 | --program-transform-n | --program-transform- \
1312 | --program-transform | --program-transfor \
1313 | --program-transfo | --program-transf \
1314 | --program-trans | --program-tran \
1315 | --progr-tra | --program-tr | --program-t)
1316 ac_prev=program_transform_name ;;
1317 -program-transform-name=* | --program-transform-name=* \
1318 | --program-transform-nam=* | --program-transform-na=* \
1319 | --program-transform-n=* | --program-transform-=* \
1320 | --program-transform=* | --program-transfor=* \
1321 | --program-transfo=* | --program-transf=* \
1322 | --program-trans=* | --program-tran=* \
1323 | --progr-tra=* | --program-tr=* | --program-t=*)
1324 program_transform_name=$ac_optarg ;;
1325
1326 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1327 ac_prev=pdfdir ;;
1328 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1329 pdfdir=$ac_optarg ;;
1330
1331 -psdir | --psdir | --psdi | --psd | --ps)
1332 ac_prev=psdir ;;
1333 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1334 psdir=$ac_optarg ;;
1335
1336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1337 | -silent | --silent | --silen | --sile | --sil)
1338 silent=yes ;;
1339
1340 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1341 ac_prev=sbindir ;;
1342 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1343 | --sbi=* | --sb=*)
1344 sbindir=$ac_optarg ;;
1345
1346 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1347 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1348 | --sharedst | --shareds | --shared | --share | --shar \
1349 | --sha | --sh)
1350 ac_prev=sharedstatedir ;;
1351 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1352 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1353 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1354 | --sha=* | --sh=*)
1355 sharedstatedir=$ac_optarg ;;
1356
1357 -site | --site | --sit)
1358 ac_prev=site ;;
1359 -site=* | --site=* | --sit=*)
1360 site=$ac_optarg ;;
1361
1362 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1363 ac_prev=srcdir ;;
1364 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1365 srcdir=$ac_optarg ;;
1366
1367 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1368 | --syscon | --sysco | --sysc | --sys | --sy)
1369 ac_prev=sysconfdir ;;
1370 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1371 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1372 sysconfdir=$ac_optarg ;;
1373
1374 -target | --target | --targe | --targ | --tar | --ta | --t)
1375 ac_prev=target_alias ;;
1376 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1377 target_alias=$ac_optarg ;;
1378
1379 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1380 verbose=yes ;;
1381
1382 -version | --version | --versio | --versi | --vers | -V)
1383 ac_init_version=: ;;
1384
1385 -with-* | --with-*)
1386 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1387 # Reject names that are not valid shell variable names.
1388 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1389 as_fn_error $? "invalid package name: $ac_useropt"
1390 ac_useropt_orig=$ac_useropt
1391 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1392 case $ac_user_opts in
1393 *"
1394 "with_$ac_useropt"
1395 "*) ;;
1396 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1397 ac_unrecognized_sep=', ';;
1398 esac
1399 eval with_$ac_useropt=\$ac_optarg ;;
1400
1401 -without-* | --without-*)
1402 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1403 # Reject names that are not valid shell variable names.
1404 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1405 as_fn_error $? "invalid package name: $ac_useropt"
1406 ac_useropt_orig=$ac_useropt
1407 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1408 case $ac_user_opts in
1409 *"
1410 "with_$ac_useropt"
1411 "*) ;;
1412 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1413 ac_unrecognized_sep=', ';;
1414 esac
1415 eval with_$ac_useropt=no ;;
1416
1417 --x)
1418 # Obsolete; use --with-x.
1419 with_x=yes ;;
1420
1421 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1422 | --x-incl | --x-inc | --x-in | --x-i)
1423 ac_prev=x_includes ;;
1424 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1425 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1426 x_includes=$ac_optarg ;;
1427
1428 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1429 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1430 ac_prev=x_libraries ;;
1431 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1432 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1433 x_libraries=$ac_optarg ;;
1434
1435 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1436 Try \`$0 --help' for more information"
1437 ;;
1438
1439 *=*)
1440 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1441 # Reject names that are not valid shell variable names.
1442 case $ac_envvar in #(
1443 '' | [0-9]* | *[!_$as_cr_alnum]* )
1444 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1445 esac
1446 eval $ac_envvar=\$ac_optarg
1447 export $ac_envvar ;;
1448
1449 *)
1450 # FIXME: should be removed in autoconf 3.0.
1451 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1452 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1453 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1454 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1455 ;;
1456
1457 esac
1458 done
1459
1460 if test -n "$ac_prev"; then
1461 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1462 as_fn_error $? "missing argument to $ac_option"
1463 fi
1464
1465 if test -n "$ac_unrecognized_opts"; then
1466 case $enable_option_checking in
1467 no) ;;
1468 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1469 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1470 esac
1471 fi
1472
1473 # Check all directory arguments for consistency.
1474 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1475 datadir sysconfdir sharedstatedir localstatedir includedir \
1476 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1477 libdir localedir mandir
1478 do
1479 eval ac_val=\$$ac_var
1480 # Remove trailing slashes.
1481 case $ac_val in
1482 */ )
1483 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1484 eval $ac_var=\$ac_val;;
1485 esac
1486 # Be sure to have absolute directory names.
1487 case $ac_val in
1488 [\\/$]* | ?:[\\/]* ) continue;;
1489 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1490 esac
1491 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1492 done
1493
1494 # There might be people who depend on the old broken behavior: `$host'
1495 # used to hold the argument of --host etc.
1496 # FIXME: To remove some day.
1497 build=$build_alias
1498 host=$host_alias
1499 target=$target_alias
1500
1501 # FIXME: To remove some day.
1502 if test "x$host_alias" != x; then
1503 if test "x$build_alias" = x; then
1504 cross_compiling=maybe
1505 elif test "x$build_alias" != "x$host_alias"; then
1506 cross_compiling=yes
1507 fi
1508 fi
1509
1510 ac_tool_prefix=
1511 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1512
1513 test "$silent" = yes && exec 6>/dev/null
1514
1515
1516 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1517 ac_ls_di=`ls -di .` &&
1518 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1519 as_fn_error $? "working directory cannot be determined"
1520 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1521 as_fn_error $? "pwd does not report name of working directory"
1522
1523
1524 # Find the source files, if location was not specified.
1525 if test -z "$srcdir"; then
1526 ac_srcdir_defaulted=yes
1527 # Try the directory containing this script, then the parent directory.
1528 ac_confdir=`$as_dirname -- "$as_myself" ||
1529 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1530 X"$as_myself" : 'X\(//\)[^/]' \| \
1531 X"$as_myself" : 'X\(//\)$' \| \
1532 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1533 $as_echo X"$as_myself" |
1534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1535 s//\1/
1536 q
1537 }
1538 /^X\(\/\/\)[^/].*/{
1539 s//\1/
1540 q
1541 }
1542 /^X\(\/\/\)$/{
1543 s//\1/
1544 q
1545 }
1546 /^X\(\/\).*/{
1547 s//\1/
1548 q
1549 }
1550 s/.*/./; q'`
1551 srcdir=$ac_confdir
1552 if test ! -r "$srcdir/$ac_unique_file"; then
1553 srcdir=..
1554 fi
1555 else
1556 ac_srcdir_defaulted=no
1557 fi
1558 if test ! -r "$srcdir/$ac_unique_file"; then
1559 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1560 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1561 fi
1562 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1563 ac_abs_confdir=`(
1564 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1565 pwd)`
1566 # When building in place, set srcdir=.
1567 if test "$ac_abs_confdir" = "$ac_pwd"; then
1568 srcdir=.
1569 fi
1570 # Remove unnecessary trailing slashes from srcdir.
1571 # Double slashes in file names in object file debugging info
1572 # mess up M-x gdb in Emacs.
1573 case $srcdir in
1574 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1575 esac
1576 for ac_var in $ac_precious_vars; do
1577 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1578 eval ac_env_${ac_var}_value=\$${ac_var}
1579 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1580 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1581 done
1582
1583 #
1584 # Report the --help message.
1585 #
1586 if test "$ac_init_help" = "long"; then
1587 # Omit some internal or obsolete options to make the list less imposing.
1588 # This message is too long to be a string in the A/UX 3.1 sh.
1589 cat <<_ACEOF
1590 \`configure' configures this package to adapt to many kinds of systems.
1591
1592 Usage: $0 [OPTION]... [VAR=VALUE]...
1593
1594 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1595 VAR=VALUE. See below for descriptions of some of the useful variables.
1596
1597 Defaults for the options are specified in brackets.
1598
1599 Configuration:
1600 -h, --help display this help and exit
1601 --help=short display options specific to this package
1602 --help=recursive display the short help of all the included packages
1603 -V, --version display version information and exit
1604 -q, --quiet, --silent do not print \`checking ...' messages
1605 --cache-file=FILE cache test results in FILE [disabled]
1606 -C, --config-cache alias for \`--cache-file=config.cache'
1607 -n, --no-create do not create output files
1608 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1609
1610 Installation directories:
1611 --prefix=PREFIX install architecture-independent files in PREFIX
1612 [$ac_default_prefix]
1613 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1614 [PREFIX]
1615
1616 By default, \`make install' will install all the files in
1617 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1618 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1619 for instance \`--prefix=\$HOME'.
1620
1621 For better control, use the options below.
1622
1623 Fine tuning of the installation directories:
1624 --bindir=DIR user executables [EPREFIX/bin]
1625 --sbindir=DIR system admin executables [EPREFIX/sbin]
1626 --libexecdir=DIR program executables [EPREFIX/libexec]
1627 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1628 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1629 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1630 --libdir=DIR object code libraries [EPREFIX/lib]
1631 --includedir=DIR C header files [PREFIX/include]
1632 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1633 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1634 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1635 --infodir=DIR info documentation [DATAROOTDIR/info]
1636 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1637 --mandir=DIR man documentation [DATAROOTDIR/man]
1638 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1639 --htmldir=DIR html documentation [DOCDIR]
1640 --dvidir=DIR dvi documentation [DOCDIR]
1641 --pdfdir=DIR pdf documentation [DOCDIR]
1642 --psdir=DIR ps documentation [DOCDIR]
1643 _ACEOF
1644
1645 cat <<\_ACEOF
1646
1647 Program names:
1648 --program-prefix=PREFIX prepend PREFIX to installed program names
1649 --program-suffix=SUFFIX append SUFFIX to installed program names
1650 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1651
1652 System types:
1653 --build=BUILD configure for building on BUILD [guessed]
1654 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1655 --target=TARGET configure for building compilers for TARGET [HOST]
1656 _ACEOF
1657 fi
1658
1659 if test -n "$ac_init_help"; then
1660
1661 cat <<\_ACEOF
1662
1663 Optional Features:
1664 --disable-option-checking ignore unrecognized --enable/--with options
1665 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1666 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1667 --enable-generated-files-in-srcdir
1668 put copies of generated files in source dir intended
1669 for creating source tarballs for users without
1670 texinfo bison or flex
1671 --disable-largefile omit support for large files
1672 --disable-build-format-warnings
1673 don't use -Wformat while building GCC
1674 --enable-werror-always enable -Werror despite compiler version
1675 --enable-checking[=LIST]
1676 enable expensive run-time checks. With LIST, enable
1677 only specific categories of checks. Categories are:
1678 yes,no,all,none,release. Flags are:
1679 assert,df,extra,fold,gc,gcac,gimple,misc,
1680 rtlflag,rtl,runtime,tree,valgrind,types
1681 --enable-coverage[=LEVEL]
1682 enable compiler's code coverage collection. Use to
1683 measure compiler performance and locate unused parts
1684 of the compiler. With LEVEL, specify optimization.
1685 Values are opt, noopt, default is noopt
1686 --enable-gather-detailed-mem-stats
1687 enable detailed memory allocation stats gathering
1688 --enable-valgrind-annotations
1689 enable valgrind runtime interaction
1690 --enable-multilib enable library support for multiple ABIs
1691 --enable-multiarch enable support for multiarch paths
1692 --enable-__cxa_atexit enable __cxa_atexit for C++
1693 --enable-decimal-float={no,yes,bid,dpd}
1694 enable decimal float extension to C. Selecting 'bid'
1695 or 'dpd' choses which decimal floating point format
1696 to use
1697 --enable-fixed-point enable fixed-point arithmetic extension to C
1698 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1699 package
1700 --enable-tls enable or disable generation of tls code overriding
1701 the assembler check for tls support
1702 --enable-vtable-verify enable vtable verification feature
1703 --disable-analyzer disable -fanalyzer static analyzer
1704 --enable-objc-gc enable the use of Boehm's garbage collector with the
1705 GNU Objective-C runtime
1706 --disable-shared don't provide a shared libgcc
1707 --disable-gcov don't provide libgcov and related host tools
1708 --enable-languages=LIST specify which front-ends to build
1709 --disable-rpath do not hardcode runtime library paths
1710 --enable-sjlj-exceptions
1711 arrange to use setjmp/longjmp exception handling
1712 --enable-secureplt enable -msecure-plt by default for PowerPC
1713 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1714 Default to platform configuration
1715 --enable-large-address-aware
1716 Link mingw executables with --large-address-aware
1717 --enable-leading-mingw64-underscores
1718 enable leading underscores on 64 bit mingw targets
1719 --enable-cld enable -mcld by default for 32bit x86
1720 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1721 --disable-win32-registry
1722 disable lookup of installation paths in the Registry
1723 on Windows hosts
1724 --enable-win32-registry enable registry lookup (default)
1725 --enable-win32-registry=KEY
1726 use KEY instead of GCC version as the last portion
1727 of the registry key
1728 --enable-shared[=PKGS] build shared libraries [default=yes]
1729 --enable-static[=PKGS] build static libraries [default=yes]
1730 --enable-fast-install[=PKGS]
1731 optimize for fast installation [default=yes]
1732 --disable-libtool-lock avoid locking (might break parallel builds)
1733 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1734 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1735 --enable-gnu-indirect-function
1736 enable the use of the @gnu_indirect_function to
1737 glibc systems
1738 --enable-initfini-array use .init_array/.fini_array sections
1739 --enable-comdat enable COMDAT group support
1740 --enable-newlib-nano-formatted-io
1741 Use nano version formatted IO
1742
1743 --enable-standard-branch-protection
1744 enable Branch Target Identification Mechanism and
1745 Return Address Signing by default for AArch64
1746 --disable-standard-branch-protection
1747 disable Branch Target Identification Mechanism and
1748 Return Address Signing by default for AArch64
1749
1750
1751 --enable-fix-cortex-a53-835769
1752 enable workaround for AArch64 Cortex-A53 erratum
1753 835769 by default
1754 --disable-fix-cortex-a53-835769
1755 disable workaround for AArch64 Cortex-A53 erratum
1756 835769 by default
1757
1758
1759 --enable-fix-cortex-a53-843419
1760 enable workaround for AArch64 Cortex-A53 erratum
1761 843419 by default
1762 --disable-fix-cortex-a53-843419
1763 disable workaround for AArch64 Cortex-A53 erratum
1764 843419 by default
1765
1766 --enable-gnu-unique-object
1767 enable the use of the @gnu_unique_object ELF
1768 extension on glibc systems
1769 --enable-linker-build-id
1770 compiler will always pass --build-id to linker
1771 --enable-libssp enable linking against libssp
1772 --enable-default-ssp enable Stack Smashing Protection as default
1773 --enable-maintainer-mode
1774 enable make rules and dependencies not useful (and
1775 sometimes confusing) to the casual installer
1776 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1777 thrashing on the build machine
1778 --enable-link-serialization
1779 avoid linking multiple GCC front-ends at once using
1780 make dependencies to avoid thrashing on the build
1781 machine
1782 --enable-version-specific-runtime-libs
1783 specify that runtime libraries should be installed
1784 in a compiler-specific directory
1785 --enable-plugin enable plugin support
1786 --enable-host-shared build host code as shared libraries
1787 --disable-libquadmath-support
1788 disable libquadmath support for Fortran
1789 --enable-default-pie enable Position Independent Executable as default
1790 --enable-cet enable Intel CET in host libraries [default=auto]
1791 --enable-s390-excess-float-precision
1792 on s390 targets, evaluate float with double
1793 precision when in standards-conforming mode
1794
1795 Optional Packages:
1796 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1797 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1798 --with-build-libsubdir=DIR Directory where to find libraries for build system
1799 --with-local-prefix=DIR specifies directory to put local include
1800 --with-native-system-header-dir=dir
1801 use dir as the directory to look for standard
1802 system header files in. Defaults to /usr/include.
1803 --with-build-sysroot=sysroot
1804 use sysroot as the system root during the build
1805 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1806 --with-gxx-include-dir=DIR
1807 specifies directory to put g++ header files
1808 --with-gxx-libcxx-include-dir=DIR
1809 specifies directory to find libc++ header files
1810 --with-cpp-install-dir=DIR
1811 install the user visible C preprocessor in DIR
1812 (relative to PREFIX) as well as PREFIX/bin
1813 --with-gnu-ld arrange to work with GNU ld
1814 --with-ld arrange to use the specified ld (full pathname)
1815 --with-demangler-in-ld try to use demangler in GNU ld
1816 --with-gnu-as arrange to work with GNU as
1817 --with-as arrange to use the specified as (full pathname)
1818 --with-stabs arrange to use stabs instead of host debug format
1819 --with-stack-clash-protection-guard-size=size
1820 Set the default stack clash protection guard size
1821 for specific targets as a power of two in bytes.
1822 --with-dwarf2 force the default debug format to be DWARF 2
1823 --with-specs=SPECS add SPECS to driver command-line processing
1824 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1825 --with-bugurl=URL Direct users to URL to report a bug
1826 --with-documentation-root-url=URL
1827 Root for documentation URLs
1828 --with-changes-root-url=URL
1829 Root for GCC changes URLs
1830 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1831 --with-multilib-generator
1832 Multi-libs configuration string (RISC-V only)
1833 --with-zstd=PATH specify prefix directory for installed zstd library.
1834 Equivalent to --with-zstd-include=PATH/include plus
1835 --with-zstd-lib=PATH/lib
1836 --with-zstd-include=PATH
1837 specify directory for installed zstd include files
1838 --with-zstd-lib=PATH specify directory for the installed zstd library
1839 --with-gnu-ld assume the C compiler uses GNU ld default=no
1840 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1841 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1842 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1843 --with-gcc-major-version-only
1844 use only GCC major number in filesystem paths
1845 --with-pic try to use only PIC/non-PIC objects [default=use
1846 both]
1847 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1848 --with-plugin-ld=[ARG] specify the plugin linker
1849 --with-glibc-version=M.N
1850 assume GCC used with glibc version M.N or later
1851 --with-long-double-128 use 128-bit long double by default
1852 --with-long-double-format={ieee,ibm}
1853 Specify whether PowerPC long double uses IEEE or IBM format
1854
1855 --with-gc={page,zone} this option is not supported anymore. It used to
1856 choose the garbage collection mechanism to use with
1857 the compiler
1858 --with-system-zlib use installed libz
1859 --with-linker-hash-style={sysv,gnu,both}
1860 specify the linker hash style
1861 --with-diagnostics-color={never,auto,auto-if-env,always}
1862 specify the default of -fdiagnostics-color option
1863 auto-if-env stands for -fdiagnostics-color=auto if
1864 GCC_COLOR environment variable is present and
1865 -fdiagnostics-color=never otherwise
1866 --with-diagnostics-urls={never,auto,auto-if-env,always}
1867 specify the default of -fdiagnostics-urls option
1868 auto-if-env stands for -fdiagnostics-urls=auto if
1869 GCC_URLS or TERM_URLS environment variable is
1870 present and -fdiagnostics-urls=never otherwise
1871
1872 Some influential environment variables:
1873 CC C compiler command
1874 CFLAGS C compiler flags
1875 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1876 nonstandard directory <lib dir>
1877 LIBS libraries to pass to the linker, e.g. -l<library>
1878 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1879 you have headers in a nonstandard directory <include dir>
1880 CXX C++ compiler command
1881 CXXFLAGS C++ compiler flags
1882 CXXCPP C++ preprocessor
1883 CPP C preprocessor
1884 GMPLIBS How to link GMP
1885 GMPINC How to find GMP include files
1886 ISLLIBS How to link isl
1887 ISLINC How to find isl include files
1888
1889 Use these variables to override the choices made by `configure' or to help
1890 it to find libraries and programs with nonstandard names/locations.
1891
1892 Report bugs to the package provider.
1893 _ACEOF
1894 ac_status=$?
1895 fi
1896
1897 if test "$ac_init_help" = "recursive"; then
1898 # If there are subdirs, report their specific --help.
1899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1900 test -d "$ac_dir" ||
1901 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1902 continue
1903 ac_builddir=.
1904
1905 case "$ac_dir" in
1906 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1907 *)
1908 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1909 # A ".." for each directory in $ac_dir_suffix.
1910 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1911 case $ac_top_builddir_sub in
1912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1914 esac ;;
1915 esac
1916 ac_abs_top_builddir=$ac_pwd
1917 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1918 # for backward compatibility:
1919 ac_top_builddir=$ac_top_build_prefix
1920
1921 case $srcdir in
1922 .) # We are building in place.
1923 ac_srcdir=.
1924 ac_top_srcdir=$ac_top_builddir_sub
1925 ac_abs_top_srcdir=$ac_pwd ;;
1926 [\\/]* | ?:[\\/]* ) # Absolute name.
1927 ac_srcdir=$srcdir$ac_dir_suffix;
1928 ac_top_srcdir=$srcdir
1929 ac_abs_top_srcdir=$srcdir ;;
1930 *) # Relative name.
1931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1932 ac_top_srcdir=$ac_top_build_prefix$srcdir
1933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1934 esac
1935 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1936
1937 cd "$ac_dir" || { ac_status=$?; continue; }
1938 # Check for guested configure.
1939 if test -f "$ac_srcdir/configure.gnu"; then
1940 echo &&
1941 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1942 elif test -f "$ac_srcdir/configure"; then
1943 echo &&
1944 $SHELL "$ac_srcdir/configure" --help=recursive
1945 else
1946 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1947 fi || ac_status=$?
1948 cd "$ac_pwd" || { ac_status=$?; break; }
1949 done
1950 fi
1951
1952 test -n "$ac_init_help" && exit $ac_status
1953 if $ac_init_version; then
1954 cat <<\_ACEOF
1955 configure
1956 generated by GNU Autoconf 2.69
1957
1958 Copyright (C) 2012 Free Software Foundation, Inc.
1959 This configure script is free software; the Free Software Foundation
1960 gives unlimited permission to copy, distribute and modify it.
1961 _ACEOF
1962 exit
1963 fi
1964
1965 ## ------------------------ ##
1966 ## Autoconf initialization. ##
1967 ## ------------------------ ##
1968
1969 # ac_fn_c_try_compile LINENO
1970 # --------------------------
1971 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1972 ac_fn_c_try_compile ()
1973 {
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 rm -f conftest.$ac_objext
1976 if { { ac_try="$ac_compile"
1977 case "(($ac_try" in
1978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1979 *) ac_try_echo=$ac_try;;
1980 esac
1981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 $as_echo "$ac_try_echo"; } >&5
1983 (eval "$ac_compile") 2>conftest.err
1984 ac_status=$?
1985 if test -s conftest.err; then
1986 grep -v '^ *+' conftest.err >conftest.er1
1987 cat conftest.er1 >&5
1988 mv -f conftest.er1 conftest.err
1989 fi
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && {
1992 test -z "$ac_c_werror_flag" ||
1993 test ! -s conftest.err
1994 } && test -s conftest.$ac_objext; then :
1995 ac_retval=0
1996 else
1997 $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
1999
2000 ac_retval=1
2001 fi
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 as_fn_set_status $ac_retval
2004
2005 } # ac_fn_c_try_compile
2006
2007 # ac_fn_cxx_try_compile LINENO
2008 # ----------------------------
2009 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2010 ac_fn_cxx_try_compile ()
2011 {
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 rm -f conftest.$ac_objext
2014 if { { ac_try="$ac_compile"
2015 case "(($ac_try" in
2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017 *) ac_try_echo=$ac_try;;
2018 esac
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021 (eval "$ac_compile") 2>conftest.err
2022 ac_status=$?
2023 if test -s conftest.err; then
2024 grep -v '^ *+' conftest.err >conftest.er1
2025 cat conftest.er1 >&5
2026 mv -f conftest.er1 conftest.err
2027 fi
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; } && {
2030 test -z "$ac_cxx_werror_flag" ||
2031 test ! -s conftest.err
2032 } && test -s conftest.$ac_objext; then :
2033 ac_retval=0
2034 else
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2037
2038 ac_retval=1
2039 fi
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 as_fn_set_status $ac_retval
2042
2043 } # ac_fn_cxx_try_compile
2044
2045 # ac_fn_cxx_try_cpp LINENO
2046 # ------------------------
2047 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2048 ac_fn_cxx_try_cpp ()
2049 {
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 if { { ac_try="$ac_cpp conftest.$ac_ext"
2052 case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055 esac
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2059 ac_status=$?
2060 if test -s conftest.err; then
2061 grep -v '^ *+' conftest.err >conftest.er1
2062 cat conftest.er1 >&5
2063 mv -f conftest.er1 conftest.err
2064 fi
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; } > conftest.i && {
2067 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2068 test ! -s conftest.err
2069 }; then :
2070 ac_retval=0
2071 else
2072 $as_echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2074
2075 ac_retval=1
2076 fi
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 as_fn_set_status $ac_retval
2079
2080 } # ac_fn_cxx_try_cpp
2081
2082 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2083 # ---------------------------------------------------------
2084 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2085 # the include files in INCLUDES and setting the cache variable VAR
2086 # accordingly.
2087 ac_fn_cxx_check_header_mongrel ()
2088 {
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 if eval \${$3+:} false; then :
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092 $as_echo_n "checking for $2... " >&6; }
2093 if eval \${$3+:} false; then :
2094 $as_echo_n "(cached) " >&6
2095 fi
2096 eval ac_res=\$$3
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 else
2100 # Is the header compilable?
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2102 $as_echo_n "checking $2 usability... " >&6; }
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2105 $4
2106 #include <$2>
2107 _ACEOF
2108 if ac_fn_cxx_try_compile "$LINENO"; then :
2109 ac_header_compiler=yes
2110 else
2111 ac_header_compiler=no
2112 fi
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2115 $as_echo "$ac_header_compiler" >&6; }
2116
2117 # Is the header present?
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2119 $as_echo_n "checking $2 presence... " >&6; }
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2122 #include <$2>
2123 _ACEOF
2124 if ac_fn_cxx_try_cpp "$LINENO"; then :
2125 ac_header_preproc=yes
2126 else
2127 ac_header_preproc=no
2128 fi
2129 rm -f conftest.err conftest.i conftest.$ac_ext
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2131 $as_echo "$ac_header_preproc" >&6; }
2132
2133 # So? What about this header?
2134 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2135 yes:no: )
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2137 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2139 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2140 ;;
2141 no:yes:* )
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2143 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2145 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2147 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2149 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2151 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2152 ;;
2153 esac
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2155 $as_echo_n "checking for $2... " >&6; }
2156 if eval \${$3+:} false; then :
2157 $as_echo_n "(cached) " >&6
2158 else
2159 eval "$3=\$ac_header_compiler"
2160 fi
2161 eval ac_res=\$$3
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 fi
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166
2167 } # ac_fn_cxx_check_header_mongrel
2168
2169 # ac_fn_cxx_try_run LINENO
2170 # ------------------------
2171 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2172 # that executables *can* be run.
2173 ac_fn_cxx_try_run ()
2174 {
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 if { { ac_try="$ac_link"
2177 case "(($ac_try" in
2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179 *) ac_try_echo=$ac_try;;
2180 esac
2181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182 $as_echo "$ac_try_echo"; } >&5
2183 (eval "$ac_link") 2>&5
2184 ac_status=$?
2185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2187 { { case "(($ac_try" in
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2190 esac
2191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192 $as_echo "$ac_try_echo"; } >&5
2193 (eval "$ac_try") 2>&5
2194 ac_status=$?
2195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2196 test $ac_status = 0; }; }; then :
2197 ac_retval=0
2198 else
2199 $as_echo "$as_me: program exited with status $ac_status" >&5
2200 $as_echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2202
2203 ac_retval=$ac_status
2204 fi
2205 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 as_fn_set_status $ac_retval
2208
2209 } # ac_fn_cxx_try_run
2210
2211 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2212 # ---------------------------------------------------------
2213 # Tests whether HEADER exists and can be compiled using the include files in
2214 # INCLUDES, setting the cache variable VAR accordingly.
2215 ac_fn_cxx_check_header_compile ()
2216 {
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2219 $as_echo_n "checking for $2... " >&6; }
2220 if eval \${$3+:} false; then :
2221 $as_echo_n "(cached) " >&6
2222 else
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2225 $4
2226 #include <$2>
2227 _ACEOF
2228 if ac_fn_cxx_try_compile "$LINENO"; then :
2229 eval "$3=yes"
2230 else
2231 eval "$3=no"
2232 fi
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 fi
2235 eval ac_res=\$$3
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237 $as_echo "$ac_res" >&6; }
2238 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239
2240 } # ac_fn_cxx_check_header_compile
2241
2242 # ac_fn_c_try_cpp LINENO
2243 # ----------------------
2244 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2245 ac_fn_c_try_cpp ()
2246 {
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 if { { ac_try="$ac_cpp conftest.$ac_ext"
2249 case "(($ac_try" in
2250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251 *) ac_try_echo=$ac_try;;
2252 esac
2253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2254 $as_echo "$ac_try_echo"; } >&5
2255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2256 ac_status=$?
2257 if test -s conftest.err; then
2258 grep -v '^ *+' conftest.err >conftest.er1
2259 cat conftest.er1 >&5
2260 mv -f conftest.er1 conftest.err
2261 fi
2262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263 test $ac_status = 0; } > conftest.i && {
2264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2265 test ! -s conftest.err
2266 }; then :
2267 ac_retval=0
2268 else
2269 $as_echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.$ac_ext >&5
2271
2272 ac_retval=1
2273 fi
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275 as_fn_set_status $ac_retval
2276
2277 } # ac_fn_c_try_cpp
2278
2279 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2280 # ----------------------------------------------
2281 # Tries to find the compile-time value of EXPR in a program that includes
2282 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2283 # computed
2284 ac_fn_cxx_compute_int ()
2285 {
2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287 if test "$cross_compiling" = yes; then
2288 # Depending upon the size, compute the lo and hi bounds.
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2291 $4
2292 int
2293 main ()
2294 {
2295 static int test_array [1 - 2 * !(($2) >= 0)];
2296 test_array [0] = 0;
2297 return test_array [0];
2298
2299 ;
2300 return 0;
2301 }
2302 _ACEOF
2303 if ac_fn_cxx_try_compile "$LINENO"; then :
2304 ac_lo=0 ac_mid=0
2305 while :; do
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2308 $4
2309 int
2310 main ()
2311 {
2312 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2313 test_array [0] = 0;
2314 return test_array [0];
2315
2316 ;
2317 return 0;
2318 }
2319 _ACEOF
2320 if ac_fn_cxx_try_compile "$LINENO"; then :
2321 ac_hi=$ac_mid; break
2322 else
2323 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2324 if test $ac_lo -le $ac_mid; then
2325 ac_lo= ac_hi=
2326 break
2327 fi
2328 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2329 fi
2330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331 done
2332 else
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2335 $4
2336 int
2337 main ()
2338 {
2339 static int test_array [1 - 2 * !(($2) < 0)];
2340 test_array [0] = 0;
2341 return test_array [0];
2342
2343 ;
2344 return 0;
2345 }
2346 _ACEOF
2347 if ac_fn_cxx_try_compile "$LINENO"; then :
2348 ac_hi=-1 ac_mid=-1
2349 while :; do
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2352 $4
2353 int
2354 main ()
2355 {
2356 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2357 test_array [0] = 0;
2358 return test_array [0];
2359
2360 ;
2361 return 0;
2362 }
2363 _ACEOF
2364 if ac_fn_cxx_try_compile "$LINENO"; then :
2365 ac_lo=$ac_mid; break
2366 else
2367 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2368 if test $ac_mid -le $ac_hi; then
2369 ac_lo= ac_hi=
2370 break
2371 fi
2372 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2373 fi
2374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375 done
2376 else
2377 ac_lo= ac_hi=
2378 fi
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 fi
2381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 # Binary search between lo and hi bounds.
2383 while test "x$ac_lo" != "x$ac_hi"; do
2384 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2387 $4
2388 int
2389 main ()
2390 {
2391 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2392 test_array [0] = 0;
2393 return test_array [0];
2394
2395 ;
2396 return 0;
2397 }
2398 _ACEOF
2399 if ac_fn_cxx_try_compile "$LINENO"; then :
2400 ac_hi=$ac_mid
2401 else
2402 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2403 fi
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 done
2406 case $ac_lo in #((
2407 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2408 '') ac_retval=1 ;;
2409 esac
2410 else
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $4
2414 static long int longval () { return $2; }
2415 static unsigned long int ulongval () { return $2; }
2416 #include <stdio.h>
2417 #include <stdlib.h>
2418 int
2419 main ()
2420 {
2421
2422 FILE *f = fopen ("conftest.val", "w");
2423 if (! f)
2424 return 1;
2425 if (($2) < 0)
2426 {
2427 long int i = longval ();
2428 if (i != ($2))
2429 return 1;
2430 fprintf (f, "%ld", i);
2431 }
2432 else
2433 {
2434 unsigned long int i = ulongval ();
2435 if (i != ($2))
2436 return 1;
2437 fprintf (f, "%lu", i);
2438 }
2439 /* Do not output a trailing newline, as this causes \r\n confusion
2440 on some platforms. */
2441 return ferror (f) || fclose (f) != 0;
2442
2443 ;
2444 return 0;
2445 }
2446 _ACEOF
2447 if ac_fn_cxx_try_run "$LINENO"; then :
2448 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2449 else
2450 ac_retval=1
2451 fi
2452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2453 conftest.$ac_objext conftest.beam conftest.$ac_ext
2454 rm -f conftest.val
2455
2456 fi
2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2458 as_fn_set_status $ac_retval
2459
2460 } # ac_fn_cxx_compute_int
2461
2462 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2463 # ---------------------------------------------
2464 # Tests whether TYPE exists after having included INCLUDES, setting cache
2465 # variable VAR accordingly.
2466 ac_fn_cxx_check_type ()
2467 {
2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2470 $as_echo_n "checking for $2... " >&6; }
2471 if eval \${$3+:} false; then :
2472 $as_echo_n "(cached) " >&6
2473 else
2474 eval "$3=no"
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2477 $4
2478 int
2479 main ()
2480 {
2481 if (sizeof ($2))
2482 return 0;
2483 ;
2484 return 0;
2485 }
2486 _ACEOF
2487 if ac_fn_cxx_try_compile "$LINENO"; then :
2488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489 /* end confdefs.h. */
2490 $4
2491 int
2492 main ()
2493 {
2494 if (sizeof (($2)))
2495 return 0;
2496 ;
2497 return 0;
2498 }
2499 _ACEOF
2500 if ac_fn_cxx_try_compile "$LINENO"; then :
2501
2502 else
2503 eval "$3=yes"
2504 fi
2505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2506 fi
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508 fi
2509 eval ac_res=\$$3
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2511 $as_echo "$ac_res" >&6; }
2512 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2513
2514 } # ac_fn_cxx_check_type
2515
2516 # ac_fn_c_find_intX_t LINENO BITS VAR
2517 # -----------------------------------
2518 # Finds a signed integer type with width BITS, setting cache variable VAR
2519 # accordingly.
2520 ac_fn_c_find_intX_t ()
2521 {
2522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2524 $as_echo_n "checking for int$2_t... " >&6; }
2525 if eval \${$3+:} false; then :
2526 $as_echo_n "(cached) " >&6
2527 else
2528 eval "$3=no"
2529 # Order is important - never check a type that is potentially smaller
2530 # than half of the expected target width.
2531 for ac_type in int$2_t 'int' 'long int' \
2532 'long long int' 'short int' 'signed char'; do
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2535 $ac_includes_default
2536 enum { N = $2 / 2 - 1 };
2537 int
2538 main ()
2539 {
2540 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2541 test_array [0] = 0;
2542 return test_array [0];
2543
2544 ;
2545 return 0;
2546 }
2547 _ACEOF
2548 if ac_fn_cxx_try_compile "$LINENO"; then :
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2551 $ac_includes_default
2552 enum { N = $2 / 2 - 1 };
2553 int
2554 main ()
2555 {
2556 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2557 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2558 test_array [0] = 0;
2559 return test_array [0];
2560
2561 ;
2562 return 0;
2563 }
2564 _ACEOF
2565 if ac_fn_cxx_try_compile "$LINENO"; then :
2566
2567 else
2568 case $ac_type in #(
2569 int$2_t) :
2570 eval "$3=yes" ;; #(
2571 *) :
2572 eval "$3=\$ac_type" ;;
2573 esac
2574 fi
2575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576 fi
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578 if eval test \"x\$"$3"\" = x"no"; then :
2579
2580 else
2581 break
2582 fi
2583 done
2584 fi
2585 eval ac_res=\$$3
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2587 $as_echo "$ac_res" >&6; }
2588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2589
2590 } # ac_fn_c_find_intX_t
2591
2592 # ac_fn_cxx_try_link LINENO
2593 # -------------------------
2594 # Try to link conftest.$ac_ext, and return whether this succeeded.
2595 ac_fn_cxx_try_link ()
2596 {
2597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2598 rm -f conftest.$ac_objext conftest$ac_exeext
2599 if { { ac_try="$ac_link"
2600 case "(($ac_try" in
2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602 *) ac_try_echo=$ac_try;;
2603 esac
2604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2605 $as_echo "$ac_try_echo"; } >&5
2606 (eval "$ac_link") 2>conftest.err
2607 ac_status=$?
2608 if test -s conftest.err; then
2609 grep -v '^ *+' conftest.err >conftest.er1
2610 cat conftest.er1 >&5
2611 mv -f conftest.er1 conftest.err
2612 fi
2613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2614 test $ac_status = 0; } && {
2615 test -z "$ac_cxx_werror_flag" ||
2616 test ! -s conftest.err
2617 } && test -s conftest$ac_exeext && {
2618 test "$cross_compiling" = yes ||
2619 test -x conftest$ac_exeext
2620 }; then :
2621 ac_retval=0
2622 else
2623 $as_echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2625
2626 ac_retval=1
2627 fi
2628 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2629 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2630 # interfere with the next link command; also delete a directory that is
2631 # left behind by Apple's compiler. We do this before executing the actions.
2632 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2634 as_fn_set_status $ac_retval
2635
2636 } # ac_fn_cxx_try_link
2637
2638 # ac_fn_c_find_uintX_t LINENO BITS VAR
2639 # ------------------------------------
2640 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2641 # accordingly.
2642 ac_fn_c_find_uintX_t ()
2643 {
2644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2646 $as_echo_n "checking for uint$2_t... " >&6; }
2647 if eval \${$3+:} false; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 eval "$3=no"
2651 # Order is important - never check a type that is potentially smaller
2652 # than half of the expected target width.
2653 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2654 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2656 /* end confdefs.h. */
2657 $ac_includes_default
2658 int
2659 main ()
2660 {
2661 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2662 test_array [0] = 0;
2663 return test_array [0];
2664
2665 ;
2666 return 0;
2667 }
2668 _ACEOF
2669 if ac_fn_cxx_try_compile "$LINENO"; then :
2670 case $ac_type in #(
2671 uint$2_t) :
2672 eval "$3=yes" ;; #(
2673 *) :
2674 eval "$3=\$ac_type" ;;
2675 esac
2676 fi
2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678 if eval test \"x\$"$3"\" = x"no"; then :
2679
2680 else
2681 break
2682 fi
2683 done
2684 fi
2685 eval ac_res=\$$3
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2689
2690 } # ac_fn_c_find_uintX_t
2691
2692 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2693 # ------------------------------------------------
2694 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2695 ac_fn_cxx_check_header_preproc ()
2696 {
2697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2699 $as_echo_n "checking for $2... " >&6; }
2700 if eval \${$3+:} false; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704 /* end confdefs.h. */
2705 #include <$2>
2706 _ACEOF
2707 if ac_fn_cxx_try_cpp "$LINENO"; then :
2708 eval "$3=yes"
2709 else
2710 eval "$3=no"
2711 fi
2712 rm -f conftest.err conftest.i conftest.$ac_ext
2713 fi
2714 eval ac_res=\$$3
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2716 $as_echo "$ac_res" >&6; }
2717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2718
2719 } # ac_fn_cxx_check_header_preproc
2720
2721 # ac_fn_cxx_check_func LINENO FUNC VAR
2722 # ------------------------------------
2723 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2724 ac_fn_cxx_check_func ()
2725 {
2726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2728 $as_echo_n "checking for $2... " >&6; }
2729 if eval \${$3+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2733 /* end confdefs.h. */
2734 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2736 #define $2 innocuous_$2
2737
2738 /* System header to define __stub macros and hopefully few prototypes,
2739 which can conflict with char $2 (); below.
2740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2741 <limits.h> exists even on freestanding compilers. */
2742
2743 #ifdef __STDC__
2744 # include <limits.h>
2745 #else
2746 # include <assert.h>
2747 #endif
2748
2749 #undef $2
2750
2751 /* Override any GCC internal prototype to avoid an error.
2752 Use char because int might match the return type of a GCC
2753 builtin and then its argument prototype would still apply. */
2754 #ifdef __cplusplus
2755 extern "C"
2756 #endif
2757 char $2 ();
2758 /* The GNU C library defines this for functions which it implements
2759 to always fail with ENOSYS. Some functions are actually named
2760 something starting with __ and the normal name is an alias. */
2761 #if defined __stub_$2 || defined __stub___$2
2762 choke me
2763 #endif
2764
2765 int
2766 main ()
2767 {
2768 return $2 ();
2769 ;
2770 return 0;
2771 }
2772 _ACEOF
2773 if ac_fn_cxx_try_link "$LINENO"; then :
2774 eval "$3=yes"
2775 else
2776 eval "$3=no"
2777 fi
2778 rm -f core conftest.err conftest.$ac_objext \
2779 conftest$ac_exeext conftest.$ac_ext
2780 fi
2781 eval ac_res=\$$3
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2783 $as_echo "$ac_res" >&6; }
2784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2785
2786 } # ac_fn_cxx_check_func
2787
2788 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2789 # -----------------------------------------------
2790 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2791 # accordingly.
2792 ac_fn_cxx_check_decl ()
2793 {
2794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2795 as_decl_name=`echo $2|sed 's/ *(.*//'`
2796 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2798 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2799 if eval \${$3+:} false; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h. */
2804 $4
2805 int
2806 main ()
2807 {
2808 #ifndef $as_decl_name
2809 #ifdef __cplusplus
2810 (void) $as_decl_use;
2811 #else
2812 (void) $as_decl_name;
2813 #endif
2814 #endif
2815
2816 ;
2817 return 0;
2818 }
2819 _ACEOF
2820 if ac_fn_cxx_try_compile "$LINENO"; then :
2821 eval "$3=yes"
2822 else
2823 eval "$3=no"
2824 fi
2825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2826 fi
2827 eval ac_res=\$$3
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829 $as_echo "$ac_res" >&6; }
2830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2831
2832 } # ac_fn_cxx_check_decl
2833
2834 # ac_fn_c_try_link LINENO
2835 # -----------------------
2836 # Try to link conftest.$ac_ext, and return whether this succeeded.
2837 ac_fn_c_try_link ()
2838 {
2839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2840 rm -f conftest.$ac_objext conftest$ac_exeext
2841 if { { ac_try="$ac_link"
2842 case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845 esac
2846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847 $as_echo "$ac_try_echo"; } >&5
2848 (eval "$ac_link") 2>conftest.err
2849 ac_status=$?
2850 if test -s conftest.err; then
2851 grep -v '^ *+' conftest.err >conftest.er1
2852 cat conftest.er1 >&5
2853 mv -f conftest.er1 conftest.err
2854 fi
2855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2856 test $ac_status = 0; } && {
2857 test -z "$ac_c_werror_flag" ||
2858 test ! -s conftest.err
2859 } && test -s conftest$ac_exeext && {
2860 test "$cross_compiling" = yes ||
2861 test -x conftest$ac_exeext
2862 }; then :
2863 ac_retval=0
2864 else
2865 $as_echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2867
2868 ac_retval=1
2869 fi
2870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2872 # interfere with the next link command; also delete a directory that is
2873 # left behind by Apple's compiler. We do this before executing the actions.
2874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2876 as_fn_set_status $ac_retval
2877
2878 } # ac_fn_c_try_link
2879
2880 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2881 # ----------------------------------------------
2882 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2883 ac_fn_c_check_header_preproc ()
2884 {
2885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2887 $as_echo_n "checking for $2... " >&6; }
2888 if eval \${$3+:} false; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h. */
2893 #include <$2>
2894 _ACEOF
2895 if ac_fn_c_try_cpp "$LINENO"; then :
2896 eval "$3=yes"
2897 else
2898 eval "$3=no"
2899 fi
2900 rm -f conftest.err conftest.i conftest.$ac_ext
2901 fi
2902 eval ac_res=\$$3
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2904 $as_echo "$ac_res" >&6; }
2905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2906
2907 } # ac_fn_c_check_header_preproc
2908
2909 # ac_fn_c_check_func LINENO FUNC VAR
2910 # ----------------------------------
2911 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2912 ac_fn_c_check_func ()
2913 {
2914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2916 $as_echo_n "checking for $2... " >&6; }
2917 if eval \${$3+:} false; then :
2918 $as_echo_n "(cached) " >&6
2919 else
2920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2921 /* end confdefs.h. */
2922 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2924 #define $2 innocuous_$2
2925
2926 /* System header to define __stub macros and hopefully few prototypes,
2927 which can conflict with char $2 (); below.
2928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2929 <limits.h> exists even on freestanding compilers. */
2930
2931 #ifdef __STDC__
2932 # include <limits.h>
2933 #else
2934 # include <assert.h>
2935 #endif
2936
2937 #undef $2
2938
2939 /* Override any GCC internal prototype to avoid an error.
2940 Use char because int might match the return type of a GCC
2941 builtin and then its argument prototype would still apply. */
2942 #ifdef __cplusplus
2943 extern "C"
2944 #endif
2945 char $2 ();
2946 /* The GNU C library defines this for functions which it implements
2947 to always fail with ENOSYS. Some functions are actually named
2948 something starting with __ and the normal name is an alias. */
2949 #if defined __stub_$2 || defined __stub___$2
2950 choke me
2951 #endif
2952
2953 int
2954 main ()
2955 {
2956 return $2 ();
2957 ;
2958 return 0;
2959 }
2960 _ACEOF
2961 if ac_fn_c_try_link "$LINENO"; then :
2962 eval "$3=yes"
2963 else
2964 eval "$3=no"
2965 fi
2966 rm -f core conftest.err conftest.$ac_objext \
2967 conftest$ac_exeext conftest.$ac_ext
2968 fi
2969 eval ac_res=\$$3
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2971 $as_echo "$ac_res" >&6; }
2972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2973
2974 } # ac_fn_c_check_func
2975 cat >config.log <<_ACEOF
2976 This file contains any messages produced by compilers while
2977 running configure, to aid debugging if configure makes a mistake.
2978
2979 It was created by $as_me, which was
2980 generated by GNU Autoconf 2.69. Invocation command line was
2981
2982 $ $0 $@
2983
2984 _ACEOF
2985 exec 5>>config.log
2986 {
2987 cat <<_ASUNAME
2988 ## --------- ##
2989 ## Platform. ##
2990 ## --------- ##
2991
2992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2997
2998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3000
3001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3004 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3008
3009 _ASUNAME
3010
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
3016 $as_echo "PATH: $as_dir"
3017 done
3018 IFS=$as_save_IFS
3019
3020 } >&5
3021
3022 cat >&5 <<_ACEOF
3023
3024
3025 ## ----------- ##
3026 ## Core tests. ##
3027 ## ----------- ##
3028
3029 _ACEOF
3030
3031
3032 # Keep a trace of the command line.
3033 # Strip out --no-create and --no-recursion so they do not pile up.
3034 # Strip out --silent because we don't want to record it for future runs.
3035 # Also quote any args containing shell meta-characters.
3036 # Make two passes to allow for proper duplicate-argument suppression.
3037 ac_configure_args=
3038 ac_configure_args0=
3039 ac_configure_args1=
3040 ac_must_keep_next=false
3041 for ac_pass in 1 2
3042 do
3043 for ac_arg
3044 do
3045 case $ac_arg in
3046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3048 | -silent | --silent | --silen | --sile | --sil)
3049 continue ;;
3050 *\'*)
3051 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3052 esac
3053 case $ac_pass in
3054 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3055 2)
3056 as_fn_append ac_configure_args1 " '$ac_arg'"
3057 if test $ac_must_keep_next = true; then
3058 ac_must_keep_next=false # Got value, back to normal.
3059 else
3060 case $ac_arg in
3061 *=* | --config-cache | -C | -disable-* | --disable-* \
3062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3064 | -with-* | --with-* | -without-* | --without-* | --x)
3065 case "$ac_configure_args0 " in
3066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3067 esac
3068 ;;
3069 -* ) ac_must_keep_next=true ;;
3070 esac
3071 fi
3072 as_fn_append ac_configure_args " '$ac_arg'"
3073 ;;
3074 esac
3075 done
3076 done
3077 { ac_configure_args0=; unset ac_configure_args0;}
3078 { ac_configure_args1=; unset ac_configure_args1;}
3079
3080 # When interrupted or exit'd, cleanup temporary files, and complete
3081 # config.log. We remove comments because anyway the quotes in there
3082 # would cause problems or look ugly.
3083 # WARNING: Use '\'' to represent an apostrophe within the trap.
3084 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3085 trap 'exit_status=$?
3086 # Save into config.log some information that might help in debugging.
3087 {
3088 echo
3089
3090 $as_echo "## ---------------- ##
3091 ## Cache variables. ##
3092 ## ---------------- ##"
3093 echo
3094 # The following way of writing the cache mishandles newlines in values,
3095 (
3096 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3097 eval ac_val=\$$ac_var
3098 case $ac_val in #(
3099 *${as_nl}*)
3100 case $ac_var in #(
3101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3102 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3103 esac
3104 case $ac_var in #(
3105 _ | IFS | as_nl) ;; #(
3106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3107 *) { eval $ac_var=; unset $ac_var;} ;;
3108 esac ;;
3109 esac
3110 done
3111 (set) 2>&1 |
3112 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3113 *${as_nl}ac_space=\ *)
3114 sed -n \
3115 "s/'\''/'\''\\\\'\'''\''/g;
3116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3117 ;; #(
3118 *)
3119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3120 ;;
3121 esac |
3122 sort
3123 )
3124 echo
3125
3126 $as_echo "## ----------------- ##
3127 ## Output variables. ##
3128 ## ----------------- ##"
3129 echo
3130 for ac_var in $ac_subst_vars
3131 do
3132 eval ac_val=\$$ac_var
3133 case $ac_val in
3134 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3135 esac
3136 $as_echo "$ac_var='\''$ac_val'\''"
3137 done | sort
3138 echo
3139
3140 if test -n "$ac_subst_files"; then
3141 $as_echo "## ------------------- ##
3142 ## File substitutions. ##
3143 ## ------------------- ##"
3144 echo
3145 for ac_var in $ac_subst_files
3146 do
3147 eval ac_val=\$$ac_var
3148 case $ac_val in
3149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3150 esac
3151 $as_echo "$ac_var='\''$ac_val'\''"
3152 done | sort
3153 echo
3154 fi
3155
3156 if test -s confdefs.h; then
3157 $as_echo "## ----------- ##
3158 ## confdefs.h. ##
3159 ## ----------- ##"
3160 echo
3161 cat confdefs.h
3162 echo
3163 fi
3164 test "$ac_signal" != 0 &&
3165 $as_echo "$as_me: caught signal $ac_signal"
3166 $as_echo "$as_me: exit $exit_status"
3167 } >&5
3168 rm -f core *.core core.conftest.* &&
3169 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3170 exit $exit_status
3171 ' 0
3172 for ac_signal in 1 2 13 15; do
3173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3174 done
3175 ac_signal=0
3176
3177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3178 rm -f -r conftest* confdefs.h
3179
3180 $as_echo "/* confdefs.h */" > confdefs.h
3181
3182 # Predefined preprocessor variables.
3183
3184 cat >>confdefs.h <<_ACEOF
3185 #define PACKAGE_NAME "$PACKAGE_NAME"
3186 _ACEOF
3187
3188 cat >>confdefs.h <<_ACEOF
3189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3190 _ACEOF
3191
3192 cat >>confdefs.h <<_ACEOF
3193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3194 _ACEOF
3195
3196 cat >>confdefs.h <<_ACEOF
3197 #define PACKAGE_STRING "$PACKAGE_STRING"
3198 _ACEOF
3199
3200 cat >>confdefs.h <<_ACEOF
3201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3202 _ACEOF
3203
3204 cat >>confdefs.h <<_ACEOF
3205 #define PACKAGE_URL "$PACKAGE_URL"
3206 _ACEOF
3207
3208
3209 # Let the site file select an alternate cache file if it wants to.
3210 # Prefer an explicitly selected file to automatically selected ones.
3211 ac_site_file1=NONE
3212 ac_site_file2=NONE
3213 if test -n "$CONFIG_SITE"; then
3214 # We do not want a PATH search for config.site.
3215 case $CONFIG_SITE in #((
3216 -*) ac_site_file1=./$CONFIG_SITE;;
3217 */*) ac_site_file1=$CONFIG_SITE;;
3218 *) ac_site_file1=./$CONFIG_SITE;;
3219 esac
3220 elif test "x$prefix" != xNONE; then
3221 ac_site_file1=$prefix/share/config.site
3222 ac_site_file2=$prefix/etc/config.site
3223 else
3224 ac_site_file1=$ac_default_prefix/share/config.site
3225 ac_site_file2=$ac_default_prefix/etc/config.site
3226 fi
3227 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3228 do
3229 test "x$ac_site_file" = xNONE && continue
3230 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3232 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3233 sed 's/^/| /' "$ac_site_file" >&5
3234 . "$ac_site_file" \
3235 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 as_fn_error $? "failed to load site script $ac_site_file
3238 See \`config.log' for more details" "$LINENO" 5; }
3239 fi
3240 done
3241
3242 if test -r "$cache_file"; then
3243 # Some versions of bash will fail to source /dev/null (special files
3244 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3245 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3247 $as_echo "$as_me: loading cache $cache_file" >&6;}
3248 case $cache_file in
3249 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3250 *) . "./$cache_file";;
3251 esac
3252 fi
3253 else
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3255 $as_echo "$as_me: creating cache $cache_file" >&6;}
3256 >$cache_file
3257 fi
3258
3259 # Check that the precious variables saved in the cache have kept the same
3260 # value.
3261 ac_cache_corrupted=false
3262 for ac_var in $ac_precious_vars; do
3263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3264 eval ac_new_set=\$ac_env_${ac_var}_set
3265 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3266 eval ac_new_val=\$ac_env_${ac_var}_value
3267 case $ac_old_set,$ac_new_set in
3268 set,)
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3270 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3271 ac_cache_corrupted=: ;;
3272 ,set)
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3274 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3275 ac_cache_corrupted=: ;;
3276 ,);;
3277 *)
3278 if test "x$ac_old_val" != "x$ac_new_val"; then
3279 # differences in whitespace do not lead to failure.
3280 ac_old_val_w=`echo x $ac_old_val`
3281 ac_new_val_w=`echo x $ac_new_val`
3282 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3284 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3285 ac_cache_corrupted=:
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3288 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3289 eval $ac_var=\$ac_old_val
3290 fi
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3292 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3294 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3295 fi;;
3296 esac
3297 # Pass precious variables to config.status.
3298 if test "$ac_new_set" = set; then
3299 case $ac_new_val in
3300 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3301 *) ac_arg=$ac_var=$ac_new_val ;;
3302 esac
3303 case " $ac_configure_args " in
3304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3305 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3306 esac
3307 fi
3308 done
3309 if $ac_cache_corrupted; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3313 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3314 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3315 fi
3316 ## -------------------- ##
3317 ## Main body of script. ##
3318 ## -------------------- ##
3319
3320 ac_ext=c
3321 ac_cpp='$CPP $CPPFLAGS'
3322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325
3326
3327
3328
3329
3330
3331 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3332
3333
3334 gcc_version=`cat $srcdir/BASE-VER`
3335
3336 # Determine the host, build, and target systems
3337 ac_aux_dir=
3338 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3339 if test -f "$ac_dir/install-sh"; then
3340 ac_aux_dir=$ac_dir
3341 ac_install_sh="$ac_aux_dir/install-sh -c"
3342 break
3343 elif test -f "$ac_dir/install.sh"; then
3344 ac_aux_dir=$ac_dir
3345 ac_install_sh="$ac_aux_dir/install.sh -c"
3346 break
3347 elif test -f "$ac_dir/shtool"; then
3348 ac_aux_dir=$ac_dir
3349 ac_install_sh="$ac_aux_dir/shtool install -c"
3350 break
3351 fi
3352 done
3353 if test -z "$ac_aux_dir"; then
3354 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3355 fi
3356
3357 # These three variables are undocumented and unsupported,
3358 # and are intended to be withdrawn in a future Autoconf release.
3359 # They can cause serious problems if a builder's source tree is in a directory
3360 # whose full name contains unusual characters.
3361 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3362 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3363 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3364
3365
3366 # Make sure we can run config.sub.
3367 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3368 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3369
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3371 $as_echo_n "checking build system type... " >&6; }
3372 if ${ac_cv_build+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 ac_build_alias=$build_alias
3376 test "x$ac_build_alias" = x &&
3377 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3378 test "x$ac_build_alias" = x &&
3379 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3380 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3381 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3382
3383 fi
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3385 $as_echo "$ac_cv_build" >&6; }
3386 case $ac_cv_build in
3387 *-*-*) ;;
3388 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3389 esac
3390 build=$ac_cv_build
3391 ac_save_IFS=$IFS; IFS='-'
3392 set x $ac_cv_build
3393 shift
3394 build_cpu=$1
3395 build_vendor=$2
3396 shift; shift
3397 # Remember, the first character of IFS is used to create $*,
3398 # except with old shells:
3399 build_os=$*
3400 IFS=$ac_save_IFS
3401 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3402
3403
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3405 $as_echo_n "checking host system type... " >&6; }
3406 if ${ac_cv_host+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408 else
3409 if test "x$host_alias" = x; then
3410 ac_cv_host=$ac_cv_build
3411 else
3412 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3413 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3414 fi
3415
3416 fi
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3418 $as_echo "$ac_cv_host" >&6; }
3419 case $ac_cv_host in
3420 *-*-*) ;;
3421 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3422 esac
3423 host=$ac_cv_host
3424 ac_save_IFS=$IFS; IFS='-'
3425 set x $ac_cv_host
3426 shift
3427 host_cpu=$1
3428 host_vendor=$2
3429 shift; shift
3430 # Remember, the first character of IFS is used to create $*,
3431 # except with old shells:
3432 host_os=$*
3433 IFS=$ac_save_IFS
3434 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3435
3436
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3438 $as_echo_n "checking target system type... " >&6; }
3439 if ${ac_cv_target+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 if test "x$target_alias" = x; then
3443 ac_cv_target=$ac_cv_host
3444 else
3445 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3446 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3447 fi
3448
3449 fi
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3451 $as_echo "$ac_cv_target" >&6; }
3452 case $ac_cv_target in
3453 *-*-*) ;;
3454 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3455 esac
3456 target=$ac_cv_target
3457 ac_save_IFS=$IFS; IFS='-'
3458 set x $ac_cv_target
3459 shift
3460 target_cpu=$1
3461 target_vendor=$2
3462 shift; shift
3463 # Remember, the first character of IFS is used to create $*,
3464 # except with old shells:
3465 target_os=$*
3466 IFS=$ac_save_IFS
3467 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3468
3469
3470 # The aliases save the names the user supplied, while $host etc.
3471 # will get canonicalized.
3472 test -n "$target_alias" &&
3473 test "$program_prefix$program_suffix$program_transform_name" = \
3474 NONENONEs,x,x, &&
3475 program_prefix=${target_alias}-
3476
3477 # Determine the noncanonical host name, for Ada.
3478 case ${build_alias} in
3479 "") build_noncanonical=${build} ;;
3480 *) build_noncanonical=${build_alias} ;;
3481 esac
3482
3483 case ${host_alias} in
3484 "") host_noncanonical=${build_noncanonical} ;;
3485 *) host_noncanonical=${host_alias} ;;
3486 esac
3487
3488
3489
3490
3491 # Determine the noncanonical target name, for directory use.
3492 case ${target_alias} in
3493 "") target_noncanonical=${host_noncanonical} ;;
3494 *) target_noncanonical=${target_alias} ;;
3495 esac
3496
3497
3498
3499
3500 # Used for constructing correct paths for offload compilers.
3501 real_target_noncanonical=${target_noncanonical}
3502 accel_dir_suffix=
3503
3504 # Determine the target- and build-specific subdirectories
3505
3506 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3507 # have matching libraries, they should use host libraries: Makefile.tpl
3508 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3509 # However, they still use the build modules, because the corresponding
3510 # host modules (e.g. bison) are only built for the host when bootstrap
3511 # finishes. So:
3512 # - build_subdir is where we find build modules, and never changes.
3513 # - build_libsubdir is where we find build libraries, and can be overridden.
3514
3515 # Prefix 'build-' so this never conflicts with target_subdir.
3516 build_subdir="build-${build_noncanonical}"
3517
3518 # Check whether --with-build-libsubdir was given.
3519 if test "${with_build_libsubdir+set}" = set; then :
3520 withval=$with_build_libsubdir; build_libsubdir="$withval"
3521 else
3522 build_libsubdir="$build_subdir"
3523 fi
3524
3525 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3526 if ( test $srcdir = . && test -d gcc ) \
3527 || test -d $srcdir/../host-${host_noncanonical}; then
3528 host_subdir="host-${host_noncanonical}"
3529 else
3530 host_subdir=.
3531 fi
3532 # No prefix.
3533 target_subdir=${target_noncanonical}
3534
3535
3536 # Set program_transform_name
3537 test "$program_prefix" != NONE &&
3538 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3539 # Use a double $ so make ignores it.
3540 test "$program_suffix" != NONE &&
3541 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3542 # Double any \ or $.
3543 # By default was `s,x,x', remove it if useless.
3544 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3545 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3546
3547
3548 # Check for bogus environment variables.
3549 # Test if LIBRARY_PATH contains the notation for the current directory
3550 # since this would lead to problems installing/building glibc.
3551 # LIBRARY_PATH contains the current directory if one of the following
3552 # is true:
3553 # - one of the terminals (":" and ";") is the first or last sign
3554 # - two terminals occur directly after each other
3555 # - the path contains an element with a dot in it
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3557 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3558 case ${LIBRARY_PATH} in
3559 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3560 library_path_setting="contains current directory"
3561 ;;
3562 *)
3563 library_path_setting="ok"
3564 ;;
3565 esac
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3567 $as_echo "$library_path_setting" >&6; }
3568 if test "$library_path_setting" != "ok"; then
3569 as_fn_error $? "
3570 *** LIBRARY_PATH shouldn't contain the current directory when
3571 *** building gcc. Please change the environment variable
3572 *** and run configure again." "$LINENO" 5
3573 fi
3574
3575 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3576 # since this would lead to problems installing/building glibc.
3577 # GCC_EXEC_PREFIX contains the current directory if one of the following
3578 # is true:
3579 # - one of the terminals (":" and ";") is the first or last sign
3580 # - two terminals occur directly after each other
3581 # - the path contains an element with a dot in it
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3583 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3584 case ${GCC_EXEC_PREFIX} in
3585 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3586 gcc_exec_prefix_setting="contains current directory"
3587 ;;
3588 *)
3589 gcc_exec_prefix_setting="ok"
3590 ;;
3591 esac
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3593 $as_echo "$gcc_exec_prefix_setting" >&6; }
3594 if test "$gcc_exec_prefix_setting" != "ok"; then
3595 as_fn_error $? "
3596 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3597 *** building gcc. Please change the environment variable
3598 *** and run configure again." "$LINENO" 5
3599 fi
3600
3601 # -----------
3602 # Directories
3603 # -----------
3604
3605 # Specify the local prefix
3606 local_prefix=
3607
3608 # Check whether --with-local-prefix was given.
3609 if test "${with_local_prefix+set}" = set; then :
3610 withval=$with_local_prefix; case "${withval}" in
3611 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3612 no) ;;
3613 *) local_prefix=$with_local_prefix ;;
3614 esac
3615 fi
3616
3617
3618 # Default local prefix if it is empty
3619 if test x$local_prefix = x; then
3620 local_prefix=/usr/local
3621 fi
3622
3623
3624 # Check whether --with-native-system-header-dir was given.
3625 if test "${with_native_system_header_dir+set}" = set; then :
3626 withval=$with_native_system_header_dir;
3627 case ${with_native_system_header_dir} in
3628 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3629 /* | [A-Za-z]:[\\/]*) ;;
3630 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3631 esac
3632 configured_native_system_header_dir="${withval}"
3633
3634 else
3635 configured_native_system_header_dir=
3636 fi
3637
3638
3639
3640 # Check whether --with-build-sysroot was given.
3641 if test "${with_build_sysroot+set}" = set; then :
3642 withval=$with_build_sysroot; if test x"$withval" != x ; then
3643 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3644 fi
3645 else
3646 SYSROOT_CFLAGS_FOR_TARGET=
3647 fi
3648
3649
3650
3651 if test "x$prefix" = xNONE; then
3652 test_prefix=/usr/local
3653 else
3654 test_prefix=$prefix
3655 fi
3656 if test "x$exec_prefix" = xNONE; then
3657 test_exec_prefix=$test_prefix
3658 else
3659 test_exec_prefix=$exec_prefix
3660 fi
3661
3662
3663 # Check whether --with-sysroot was given.
3664 if test "${with_sysroot+set}" = set; then :
3665 withval=$with_sysroot;
3666 case ${with_sysroot} in
3667 /) ;;
3668 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3669 esac
3670 case ${with_sysroot} in
3671 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3672 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3673 esac
3674
3675 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3676 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3677
3678 case ${TARGET_SYSTEM_ROOT} in
3679 "${test_prefix}"|"${test_prefix}/"*|\
3680 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3681 '${prefix}'|'${prefix}/'*|\
3682 '${exec_prefix}'|'${exec_prefix}/'*)
3683 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3684 TARGET_SYSTEM_ROOT_DEFINE="$t"
3685 ;;
3686 esac
3687
3688 else
3689
3690 TARGET_SYSTEM_ROOT=
3691 TARGET_SYSTEM_ROOT_DEFINE=
3692 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3693
3694 fi
3695
3696
3697
3698
3699
3700 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3701 # passed in by the toplevel make and thus we'd get different behavior
3702 # depending on where we built the sources.
3703 gcc_gxx_include_dir=
3704 # Specify the g++ header file directory
3705
3706 # Check whether --with-gxx-include-dir was given.
3707 if test "${with_gxx_include_dir+set}" = set; then :
3708 withval=$with_gxx_include_dir; case "${withval}" in
3709 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3710 no) ;;
3711 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3712 esac
3713 fi
3714
3715
3716 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3717 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3718 # relative to the sysroot.
3719 gcc_gxx_include_dir_add_sysroot=0
3720
3721 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3722 if test x${gcc_gxx_include_dir} = x; then
3723 if test x${enable_version_specific_runtime_libs} = xyes; then
3724 gcc_gxx_include_dir='${libsubdir}/include/c++'
3725 else
3726 libstdcxx_incdir='include/c++/$(version)'
3727 if test x$host != x$target; then
3728 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3729 fi
3730 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3731 fi
3732 elif test "${with_sysroot+set}" = set; then
3733 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3734 if test "${gcc_gxx_without_sysroot}"; then
3735 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3736 gcc_gxx_include_dir_add_sysroot=1
3737 fi
3738 fi
3739
3740 # Configuration for an alternate set of C++ headers.
3741 gcc_gxx_libcxx_include_dir=
3742 # Specify the alternate g++ header file directory
3743
3744 # Check whether --with-gxx-libcxx-include-dir was given.
3745 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3746 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3747 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3748 no) ;;
3749 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3750 esac
3751 fi
3752
3753
3754 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3755 # check to see if the latter starts with the former and, upon success, compute
3756 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3757 gcc_gxx_libcxx_include_dir_add_sysroot=0
3758
3759 if test x${gcc_gxx_libcxx_include_dir} != x; then
3760
3761 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3762
3763 else
3764 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3765
3766 fi
3767 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3768 if test x${gcc_gxx_libcxx_include_dir} = x; then
3769 if test x${enable_version_specific_runtime_libs} = xyes; then
3770 gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3771 else
3772 libcxx_incdir='libc++_include/c++/$(version)/v1'
3773 if test x$host != x$target; then
3774 libcxx_incdir="$target_alias/$libcxx_incdir"
3775 fi
3776 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3777 fi
3778 elif test "${with_sysroot+set}" = set; then
3779 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3780 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3781 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3782 gcc_gxx_libcxx_include_dir_add_sysroot=1
3783 fi
3784 fi
3785
3786
3787 # Check whether --with-cpp_install_dir was given.
3788 if test "${with_cpp_install_dir+set}" = set; then :
3789 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3790 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3791 elif test x$withval != xno; then
3792 cpp_install_dir=$withval
3793 fi
3794 fi
3795
3796
3797 # We would like to our source tree to be readonly. However when releases or
3798 # pre-releases are generated, the flex/bison generated files as well as the
3799 # various formats of manuals need to be included along with the rest of the
3800 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3801 # just that.
3802
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3804 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3805 # Check whether --enable-generated-files-in-srcdir was given.
3806 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3807 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3808 else
3809 generated_files_in_srcdir=no
3810 fi
3811
3812
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3814 $as_echo "$generated_files_in_srcdir" >&6; }
3815
3816 if test "$generated_files_in_srcdir" = "yes"; then
3817 GENINSRC=''
3818 else
3819 GENINSRC='#'
3820 fi
3821
3822
3823 # -------------------
3824 # Find default linker
3825 # -------------------
3826
3827 # With GNU ld
3828
3829 # Check whether --with-gnu-ld was given.
3830 if test "${with_gnu_ld+set}" = set; then :
3831 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3832 else
3833 gnu_ld_flag=no
3834 fi
3835
3836
3837 case $target in
3838 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3839 *) ld64_flag=no;;
3840 esac
3841
3842 # With pre-defined ld
3843
3844 # Check whether --with-ld was given.
3845 if test "${with_ld+set}" = set; then :
3846 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3847 fi
3848
3849 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3850 if test ! -x "$DEFAULT_LINKER"; then
3851 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3852 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3853 gnu_ld_flag=yes
3854 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3855 ld64_flag=yes
3856 fi
3857
3858 cat >>confdefs.h <<_ACEOF
3859 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3860 _ACEOF
3861
3862 fi
3863
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3865 $as_echo_n "checking whether a default linker was specified... " >&6; }
3866 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3867 if test x"$gnu_ld_flag" = x"no"; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3869 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3872 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3873 fi
3874 else
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3877 fi
3878
3879 # With demangler in GNU ld
3880
3881 # Check whether --with-demangler-in-ld was given.
3882 if test "${with_demangler_in_ld+set}" = set; then :
3883 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3884 else
3885 demangler_in_ld=yes
3886 fi
3887
3888
3889 # ----------------------
3890 # Find default assembler
3891 # ----------------------
3892
3893 # With GNU as
3894
3895 # Check whether --with-gnu-as was given.
3896 if test "${with_gnu_as+set}" = set; then :
3897 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3898 else
3899 gas_flag=no
3900 fi
3901
3902
3903
3904 # Check whether --with-as was given.
3905 if test "${with_as+set}" = set; then :
3906 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3907 fi
3908
3909 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3910 if test ! -x "$DEFAULT_ASSEMBLER"; then
3911 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3912 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3913 gas_flag=yes
3914 fi
3915
3916 cat >>confdefs.h <<_ACEOF
3917 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3918 _ACEOF
3919
3920 fi
3921
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3923 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3924 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3925 if test x"$gas_flag" = x"no"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3927 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3928 else
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3930 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3931 fi
3932 else
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934 $as_echo "no" >&6; }
3935 fi
3936
3937 # ---------------
3938 # Find C compiler
3939 # ---------------
3940
3941 # If a non-executable a.out is present (e.g. created by GNU as above even if
3942 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3943 # file, even when creating an executable, so an execution test fails.
3944 # Remove possible default executable files to avoid this.
3945 #
3946 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3947 # Autoconf includes it.
3948 rm -f a.out a.exe b.out
3949
3950 # Find the native compiler
3951 ac_ext=c
3952 ac_cpp='$CPP $CPPFLAGS'
3953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956 if test -n "$ac_tool_prefix"; then
3957 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3958 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 $as_echo_n "checking for $ac_word... " >&6; }
3961 if ${ac_cv_prog_CC+:} false; then :
3962 $as_echo_n "(cached) " >&6
3963 else
3964 if test -n "$CC"; then
3965 ac_cv_prog_CC="$CC" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 break 2
3977 fi
3978 done
3979 done
3980 IFS=$as_save_IFS
3981
3982 fi
3983 fi
3984 CC=$ac_cv_prog_CC
3985 if test -n "$CC"; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3987 $as_echo "$CC" >&6; }
3988 else
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3991 fi
3992
3993
3994 fi
3995 if test -z "$ac_cv_prog_CC"; then
3996 ac_ct_CC=$CC
3997 # Extract the first word of "gcc", so it can be a program name with args.
3998 set dummy gcc; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 if test -n "$ac_ct_CC"; then
4005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4006 else
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4009 do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4014 ac_cv_prog_ac_ct_CC="gcc"
4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 break 2
4017 fi
4018 done
4019 done
4020 IFS=$as_save_IFS
4021
4022 fi
4023 fi
4024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4025 if test -n "$ac_ct_CC"; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4027 $as_echo "$ac_ct_CC" >&6; }
4028 else
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4031 fi
4032
4033 if test "x$ac_ct_CC" = x; then
4034 CC=""
4035 else
4036 case $cross_compiling:$ac_tool_warned in
4037 yes:)
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4040 ac_tool_warned=yes ;;
4041 esac
4042 CC=$ac_ct_CC
4043 fi
4044 else
4045 CC="$ac_cv_prog_CC"
4046 fi
4047
4048 if test -z "$CC"; then
4049 if test -n "$ac_tool_prefix"; then
4050 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4051 set dummy ${ac_tool_prefix}cc; ac_word=$2
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4053 $as_echo_n "checking for $ac_word... " >&6; }
4054 if ${ac_cv_prog_CC+:} false; then :
4055 $as_echo_n "(cached) " >&6
4056 else
4057 if test -n "$CC"; then
4058 ac_cv_prog_CC="$CC" # Let the user override the test.
4059 else
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 for as_dir in $PATH
4062 do
4063 IFS=$as_save_IFS
4064 test -z "$as_dir" && as_dir=.
4065 for ac_exec_ext in '' $ac_executable_extensions; do
4066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4067 ac_cv_prog_CC="${ac_tool_prefix}cc"
4068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 break 2
4070 fi
4071 done
4072 done
4073 IFS=$as_save_IFS
4074
4075 fi
4076 fi
4077 CC=$ac_cv_prog_CC
4078 if test -n "$CC"; then
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4080 $as_echo "$CC" >&6; }
4081 else
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083 $as_echo "no" >&6; }
4084 fi
4085
4086
4087 fi
4088 fi
4089 if test -z "$CC"; then
4090 # Extract the first word of "cc", so it can be a program name with args.
4091 set dummy cc; ac_word=$2
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 $as_echo_n "checking for $ac_word... " >&6; }
4094 if ${ac_cv_prog_CC+:} false; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 if test -n "$CC"; then
4098 ac_cv_prog_CC="$CC" # Let the user override the test.
4099 else
4100 ac_prog_rejected=no
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4103 do
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4109 ac_prog_rejected=yes
4110 continue
4111 fi
4112 ac_cv_prog_CC="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 if test $ac_prog_rejected = yes; then
4121 # We found a bogon in the path, so make sure we never use it.
4122 set dummy $ac_cv_prog_CC
4123 shift
4124 if test $# != 0; then
4125 # We chose a different compiler from the bogus one.
4126 # However, it has the same basename, so the bogon will be chosen
4127 # first if we set CC to just the basename; use the full file name.
4128 shift
4129 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4130 fi
4131 fi
4132 fi
4133 fi
4134 CC=$ac_cv_prog_CC
4135 if test -n "$CC"; then
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4137 $as_echo "$CC" >&6; }
4138 else
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140 $as_echo "no" >&6; }
4141 fi
4142
4143
4144 fi
4145 if test -z "$CC"; then
4146 if test -n "$ac_tool_prefix"; then
4147 for ac_prog in cl.exe
4148 do
4149 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4150 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152 $as_echo_n "checking for $ac_word... " >&6; }
4153 if ${ac_cv_prog_CC+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 if test -n "$CC"; then
4157 ac_cv_prog_CC="$CC" # Let the user override the test.
4158 else
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4161 do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4166 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 break 2
4169 fi
4170 done
4171 done
4172 IFS=$as_save_IFS
4173
4174 fi
4175 fi
4176 CC=$ac_cv_prog_CC
4177 if test -n "$CC"; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4179 $as_echo "$CC" >&6; }
4180 else
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4183 fi
4184
4185
4186 test -n "$CC" && break
4187 done
4188 fi
4189 if test -z "$CC"; then
4190 ac_ct_CC=$CC
4191 for ac_prog in cl.exe
4192 do
4193 # Extract the first word of "$ac_prog", so it can be a program name with args.
4194 set dummy $ac_prog; ac_word=$2
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196 $as_echo_n "checking for $ac_word... " >&6; }
4197 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4198 $as_echo_n "(cached) " >&6
4199 else
4200 if test -n "$ac_ct_CC"; then
4201 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210 ac_cv_prog_ac_ct_CC="$ac_prog"
4211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 break 2
4213 fi
4214 done
4215 done
4216 IFS=$as_save_IFS
4217
4218 fi
4219 fi
4220 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4221 if test -n "$ac_ct_CC"; then
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4223 $as_echo "$ac_ct_CC" >&6; }
4224 else
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 $as_echo "no" >&6; }
4227 fi
4228
4229
4230 test -n "$ac_ct_CC" && break
4231 done
4232
4233 if test "x$ac_ct_CC" = x; then
4234 CC=""
4235 else
4236 case $cross_compiling:$ac_tool_warned in
4237 yes:)
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4240 ac_tool_warned=yes ;;
4241 esac
4242 CC=$ac_ct_CC
4243 fi
4244 fi
4245
4246 fi
4247
4248
4249 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4251 as_fn_error $? "no acceptable C compiler found in \$PATH
4252 See \`config.log' for more details" "$LINENO" 5; }
4253
4254 # Provide some information about the compiler.
4255 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4256 set X $ac_compile
4257 ac_compiler=$2
4258 for ac_option in --version -v -V -qversion; do
4259 { { ac_try="$ac_compiler $ac_option >&5"
4260 case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4263 esac
4264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4265 $as_echo "$ac_try_echo"; } >&5
4266 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4267 ac_status=$?
4268 if test -s conftest.err; then
4269 sed '10a\
4270 ... rest of stderr output deleted ...
4271 10q' conftest.err >conftest.er1
4272 cat conftest.er1 >&5
4273 fi
4274 rm -f conftest.er1 conftest.err
4275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4276 test $ac_status = 0; }
4277 done
4278
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281
4282 int
4283 main ()
4284 {
4285
4286 ;
4287 return 0;
4288 }
4289 _ACEOF
4290 ac_clean_files_save=$ac_clean_files
4291 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4292 # Try to create an executable without -o first, disregard a.out.
4293 # It will help us diagnose broken compilers, and finding out an intuition
4294 # of exeext.
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4296 $as_echo_n "checking whether the C compiler works... " >&6; }
4297 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4298
4299 # The possible output files:
4300 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4301
4302 ac_rmfiles=
4303 for ac_file in $ac_files
4304 do
4305 case $ac_file in
4306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4307 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4308 esac
4309 done
4310 rm -f $ac_rmfiles
4311
4312 if { { ac_try="$ac_link_default"
4313 case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4316 esac
4317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318 $as_echo "$ac_try_echo"; } >&5
4319 (eval "$ac_link_default") 2>&5
4320 ac_status=$?
4321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322 test $ac_status = 0; }; then :
4323 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4324 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4325 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4326 # so that the user can short-circuit this test for compilers unknown to
4327 # Autoconf.
4328 for ac_file in $ac_files ''
4329 do
4330 test -f "$ac_file" || continue
4331 case $ac_file in
4332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4333 ;;
4334 [ab].out )
4335 # We found the default executable, but exeext='' is most
4336 # certainly right.
4337 break;;
4338 *.* )
4339 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4340 then :; else
4341 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4342 fi
4343 # We set ac_cv_exeext here because the later test for it is not
4344 # safe: cross compilers may not add the suffix if given an `-o'
4345 # argument, so we may need to know it at that point already.
4346 # Even if this section looks crufty: it has the advantage of
4347 # actually working.
4348 break;;
4349 * )
4350 break;;
4351 esac
4352 done
4353 test "$ac_cv_exeext" = no && ac_cv_exeext=
4354
4355 else
4356 ac_file=''
4357 fi
4358 if test -z "$ac_file"; then :
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4361 $as_echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4363
4364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4366 as_fn_error 77 "C compiler cannot create executables
4367 See \`config.log' for more details" "$LINENO" 5; }
4368 else
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4370 $as_echo "yes" >&6; }
4371 fi
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4373 $as_echo_n "checking for C compiler default output file name... " >&6; }
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4375 $as_echo "$ac_file" >&6; }
4376 ac_exeext=$ac_cv_exeext
4377
4378 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4379 ac_clean_files=$ac_clean_files_save
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4381 $as_echo_n "checking for suffix of executables... " >&6; }
4382 if { { ac_try="$ac_link"
4383 case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386 esac
4387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4388 $as_echo "$ac_try_echo"; } >&5
4389 (eval "$ac_link") 2>&5
4390 ac_status=$?
4391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4392 test $ac_status = 0; }; then :
4393 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4394 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4395 # work properly (i.e., refer to `conftest.exe'), while it won't with
4396 # `rm'.
4397 for ac_file in conftest.exe conftest conftest.*; do
4398 test -f "$ac_file" || continue
4399 case $ac_file in
4400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4401 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4402 break;;
4403 * ) break;;
4404 esac
4405 done
4406 else
4407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4409 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4410 See \`config.log' for more details" "$LINENO" 5; }
4411 fi
4412 rm -f conftest conftest$ac_cv_exeext
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4414 $as_echo "$ac_cv_exeext" >&6; }
4415
4416 rm -f conftest.$ac_ext
4417 EXEEXT=$ac_cv_exeext
4418 ac_exeext=$EXEEXT
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421 #include <stdio.h>
4422 int
4423 main ()
4424 {
4425 FILE *f = fopen ("conftest.out", "w");
4426 return ferror (f) || fclose (f) != 0;
4427
4428 ;
4429 return 0;
4430 }
4431 _ACEOF
4432 ac_clean_files="$ac_clean_files conftest.out"
4433 # Check that the compiler produces executables we can run. If not, either
4434 # the compiler is broken, or we cross compile.
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4436 $as_echo_n "checking whether we are cross compiling... " >&6; }
4437 if test "$cross_compiling" != yes; then
4438 { { ac_try="$ac_link"
4439 case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442 esac
4443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4444 $as_echo "$ac_try_echo"; } >&5
4445 (eval "$ac_link") 2>&5
4446 ac_status=$?
4447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4448 test $ac_status = 0; }
4449 if { ac_try='./conftest$ac_cv_exeext'
4450 { { case "(($ac_try" in
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4453 esac
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456 (eval "$ac_try") 2>&5
4457 ac_status=$?
4458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; }; }; then
4460 cross_compiling=no
4461 else
4462 if test "$cross_compiling" = maybe; then
4463 cross_compiling=yes
4464 else
4465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4467 as_fn_error $? "cannot run C compiled programs.
4468 If you meant to cross compile, use \`--host'.
4469 See \`config.log' for more details" "$LINENO" 5; }
4470 fi
4471 fi
4472 fi
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4474 $as_echo "$cross_compiling" >&6; }
4475
4476 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4477 ac_clean_files=$ac_clean_files_save
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4479 $as_echo_n "checking for suffix of object files... " >&6; }
4480 if ${ac_cv_objext+:} false; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485
4486 int
4487 main ()
4488 {
4489
4490 ;
4491 return 0;
4492 }
4493 _ACEOF
4494 rm -f conftest.o conftest.obj
4495 if { { ac_try="$ac_compile"
4496 case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499 esac
4500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501 $as_echo "$ac_try_echo"; } >&5
4502 (eval "$ac_compile") 2>&5
4503 ac_status=$?
4504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505 test $ac_status = 0; }; then :
4506 for ac_file in conftest.o conftest.obj conftest.*; do
4507 test -f "$ac_file" || continue;
4508 case $ac_file in
4509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4510 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4511 break;;
4512 esac
4513 done
4514 else
4515 $as_echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4517
4518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4520 as_fn_error $? "cannot compute suffix of object files: cannot compile
4521 See \`config.log' for more details" "$LINENO" 5; }
4522 fi
4523 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4524 fi
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4526 $as_echo "$ac_cv_objext" >&6; }
4527 OBJEXT=$ac_cv_objext
4528 ac_objext=$OBJEXT
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4530 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4531 if ${ac_cv_c_compiler_gnu+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4536
4537 int
4538 main ()
4539 {
4540 #ifndef __GNUC__
4541 choke me
4542 #endif
4543
4544 ;
4545 return 0;
4546 }
4547 _ACEOF
4548 if ac_fn_c_try_compile "$LINENO"; then :
4549 ac_compiler_gnu=yes
4550 else
4551 ac_compiler_gnu=no
4552 fi
4553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4555
4556 fi
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4558 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4559 if test $ac_compiler_gnu = yes; then
4560 GCC=yes
4561 else
4562 GCC=
4563 fi
4564 ac_test_CFLAGS=${CFLAGS+set}
4565 ac_save_CFLAGS=$CFLAGS
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4567 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4568 if ${ac_cv_prog_cc_g+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 ac_save_c_werror_flag=$ac_c_werror_flag
4572 ac_c_werror_flag=yes
4573 ac_cv_prog_cc_g=no
4574 CFLAGS="-g"
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4577
4578 int
4579 main ()
4580 {
4581
4582 ;
4583 return 0;
4584 }
4585 _ACEOF
4586 if ac_fn_c_try_compile "$LINENO"; then :
4587 ac_cv_prog_cc_g=yes
4588 else
4589 CFLAGS=""
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4592
4593 int
4594 main ()
4595 {
4596
4597 ;
4598 return 0;
4599 }
4600 _ACEOF
4601 if ac_fn_c_try_compile "$LINENO"; then :
4602
4603 else
4604 ac_c_werror_flag=$ac_save_c_werror_flag
4605 CFLAGS="-g"
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4608
4609 int
4610 main ()
4611 {
4612
4613 ;
4614 return 0;
4615 }
4616 _ACEOF
4617 if ac_fn_c_try_compile "$LINENO"; then :
4618 ac_cv_prog_cc_g=yes
4619 fi
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 fi
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 fi
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_c_werror_flag=$ac_save_c_werror_flag
4626 fi
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4628 $as_echo "$ac_cv_prog_cc_g" >&6; }
4629 if test "$ac_test_CFLAGS" = set; then
4630 CFLAGS=$ac_save_CFLAGS
4631 elif test $ac_cv_prog_cc_g = yes; then
4632 if test "$GCC" = yes; then
4633 CFLAGS="-g -O2"
4634 else
4635 CFLAGS="-g"
4636 fi
4637 else
4638 if test "$GCC" = yes; then
4639 CFLAGS="-O2"
4640 else
4641 CFLAGS=
4642 fi
4643 fi
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4645 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4646 if ${ac_cv_prog_cc_c89+:} false; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 ac_cv_prog_cc_c89=no
4650 ac_save_CC=$CC
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4653 #include <stdarg.h>
4654 #include <stdio.h>
4655 struct stat;
4656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4657 struct buf { int x; };
4658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4659 static char *e (p, i)
4660 char **p;
4661 int i;
4662 {
4663 return p[i];
4664 }
4665 static char *f (char * (*g) (char **, int), char **p, ...)
4666 {
4667 char *s;
4668 va_list v;
4669 va_start (v,p);
4670 s = g (p, va_arg (v,int));
4671 va_end (v);
4672 return s;
4673 }
4674
4675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4676 function prototypes and stuff, but not '\xHH' hex character constants.
4677 These don't provoke an error unfortunately, instead are silently treated
4678 as 'x'. The following induces an error, until -std is added to get
4679 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4680 array size at least. It's necessary to write '\x00'==0 to get something
4681 that's true only with -std. */
4682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4683
4684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4685 inside strings and character constants. */
4686 #define FOO(x) 'x'
4687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4688
4689 int test (int i, double x);
4690 struct s1 {int (*f) (int a);};
4691 struct s2 {int (*f) (double a);};
4692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4693 int argc;
4694 char **argv;
4695 int
4696 main ()
4697 {
4698 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4699 ;
4700 return 0;
4701 }
4702 _ACEOF
4703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4704 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4705 do
4706 CC="$ac_save_CC $ac_arg"
4707 if ac_fn_c_try_compile "$LINENO"; then :
4708 ac_cv_prog_cc_c89=$ac_arg
4709 fi
4710 rm -f core conftest.err conftest.$ac_objext
4711 test "x$ac_cv_prog_cc_c89" != "xno" && break
4712 done
4713 rm -f conftest.$ac_ext
4714 CC=$ac_save_CC
4715
4716 fi
4717 # AC_CACHE_VAL
4718 case "x$ac_cv_prog_cc_c89" in
4719 x)
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4721 $as_echo "none needed" >&6; } ;;
4722 xno)
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4724 $as_echo "unsupported" >&6; } ;;
4725 *)
4726 CC="$CC $ac_cv_prog_cc_c89"
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4728 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4729 esac
4730 if test "x$ac_cv_prog_cc_c89" != xno; then :
4731
4732 fi
4733
4734 ac_ext=c
4735 ac_cpp='$CPP $CPPFLAGS'
4736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4739
4740 ac_ext=cpp
4741 ac_cpp='$CXXCPP $CPPFLAGS'
4742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4745 if test -z "$CXX"; then
4746 if test -n "$CCC"; then
4747 CXX=$CCC
4748 else
4749 if test -n "$ac_tool_prefix"; then
4750 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4751 do
4752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4753 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if ${ac_cv_prog_CXX+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 if test -n "$CXX"; then
4760 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4761 else
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 break 2
4772 fi
4773 done
4774 done
4775 IFS=$as_save_IFS
4776
4777 fi
4778 fi
4779 CXX=$ac_cv_prog_CXX
4780 if test -n "$CXX"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4782 $as_echo "$CXX" >&6; }
4783 else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4786 fi
4787
4788
4789 test -n "$CXX" && break
4790 done
4791 fi
4792 if test -z "$CXX"; then
4793 ac_ct_CXX=$CXX
4794 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4795 do
4796 # Extract the first word of "$ac_prog", so it can be a program name with args.
4797 set dummy $ac_prog; ac_word=$2
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799 $as_echo_n "checking for $ac_word... " >&6; }
4800 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 if test -n "$ac_ct_CXX"; then
4804 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4805 else
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4808 do
4809 IFS=$as_save_IFS
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813 ac_cv_prog_ac_ct_CXX="$ac_prog"
4814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 break 2
4816 fi
4817 done
4818 done
4819 IFS=$as_save_IFS
4820
4821 fi
4822 fi
4823 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4824 if test -n "$ac_ct_CXX"; then
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4826 $as_echo "$ac_ct_CXX" >&6; }
4827 else
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829 $as_echo "no" >&6; }
4830 fi
4831
4832
4833 test -n "$ac_ct_CXX" && break
4834 done
4835
4836 if test "x$ac_ct_CXX" = x; then
4837 CXX="g++"
4838 else
4839 case $cross_compiling:$ac_tool_warned in
4840 yes:)
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4843 ac_tool_warned=yes ;;
4844 esac
4845 CXX=$ac_ct_CXX
4846 fi
4847 fi
4848
4849 fi
4850 fi
4851 # Provide some information about the compiler.
4852 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4853 set X $ac_compile
4854 ac_compiler=$2
4855 for ac_option in --version -v -V -qversion; do
4856 { { ac_try="$ac_compiler $ac_option >&5"
4857 case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860 esac
4861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4862 $as_echo "$ac_try_echo"; } >&5
4863 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4864 ac_status=$?
4865 if test -s conftest.err; then
4866 sed '10a\
4867 ... rest of stderr output deleted ...
4868 10q' conftest.err >conftest.er1
4869 cat conftest.er1 >&5
4870 fi
4871 rm -f conftest.er1 conftest.err
4872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4873 test $ac_status = 0; }
4874 done
4875
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4877 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4878 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883
4884 int
4885 main ()
4886 {
4887 #ifndef __GNUC__
4888 choke me
4889 #endif
4890
4891 ;
4892 return 0;
4893 }
4894 _ACEOF
4895 if ac_fn_cxx_try_compile "$LINENO"; then :
4896 ac_compiler_gnu=yes
4897 else
4898 ac_compiler_gnu=no
4899 fi
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4902
4903 fi
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4905 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4906 if test $ac_compiler_gnu = yes; then
4907 GXX=yes
4908 else
4909 GXX=
4910 fi
4911 ac_test_CXXFLAGS=${CXXFLAGS+set}
4912 ac_save_CXXFLAGS=$CXXFLAGS
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4914 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4915 if ${ac_cv_prog_cxx_g+:} false; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4919 ac_cxx_werror_flag=yes
4920 ac_cv_prog_cxx_g=no
4921 CXXFLAGS="-g"
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924
4925 int
4926 main ()
4927 {
4928
4929 ;
4930 return 0;
4931 }
4932 _ACEOF
4933 if ac_fn_cxx_try_compile "$LINENO"; then :
4934 ac_cv_prog_cxx_g=yes
4935 else
4936 CXXFLAGS=""
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939
4940 int
4941 main ()
4942 {
4943
4944 ;
4945 return 0;
4946 }
4947 _ACEOF
4948 if ac_fn_cxx_try_compile "$LINENO"; then :
4949
4950 else
4951 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4952 CXXFLAGS="-g"
4953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4955
4956 int
4957 main ()
4958 {
4959
4960 ;
4961 return 0;
4962 }
4963 _ACEOF
4964 if ac_fn_cxx_try_compile "$LINENO"; then :
4965 ac_cv_prog_cxx_g=yes
4966 fi
4967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 fi
4969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970 fi
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4973 fi
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4975 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4976 if test "$ac_test_CXXFLAGS" = set; then
4977 CXXFLAGS=$ac_save_CXXFLAGS
4978 elif test $ac_cv_prog_cxx_g = yes; then
4979 if test "$GXX" = yes; then
4980 CXXFLAGS="-g -O2"
4981 else
4982 CXXFLAGS="-g"
4983 fi
4984 else
4985 if test "$GXX" = yes; then
4986 CXXFLAGS="-O2"
4987 else
4988 CXXFLAGS=
4989 fi
4990 fi
4991 ac_ext=c
4992 ac_cpp='$CPP $CPPFLAGS'
4993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996
4997
4998
4999
5000 if test -n "$ac_tool_prefix"; then
5001 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5002 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if ${ac_cv_prog_GNATBIND+:} false; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 if test -n "$GNATBIND"; then
5009 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5021 fi
5022 done
5023 done
5024 IFS=$as_save_IFS
5025
5026 fi
5027 fi
5028 GNATBIND=$ac_cv_prog_GNATBIND
5029 if test -n "$GNATBIND"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5031 $as_echo "$GNATBIND" >&6; }
5032 else
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5035 fi
5036
5037
5038 fi
5039 if test -z "$ac_cv_prog_GNATBIND"; then
5040 ac_ct_GNATBIND=$GNATBIND
5041 # Extract the first word of "gnatbind", so it can be a program name with args.
5042 set dummy gnatbind; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$ac_ct_GNATBIND"; then
5049 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5053 do
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5061 fi
5062 done
5063 done
5064 IFS=$as_save_IFS
5065
5066 fi
5067 fi
5068 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5069 if test -n "$ac_ct_GNATBIND"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5071 $as_echo "$ac_ct_GNATBIND" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5075 fi
5076
5077 if test "x$ac_ct_GNATBIND" = x; then
5078 GNATBIND="no"
5079 else
5080 case $cross_compiling:$ac_tool_warned in
5081 yes:)
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5084 ac_tool_warned=yes ;;
5085 esac
5086 GNATBIND=$ac_ct_GNATBIND
5087 fi
5088 else
5089 GNATBIND="$ac_cv_prog_GNATBIND"
5090 fi
5091
5092 if test -n "$ac_tool_prefix"; then
5093 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5094 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if ${ac_cv_prog_GNATMAKE+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 if test -n "$GNATMAKE"; then
5101 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5110 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 break 2
5113 fi
5114 done
5115 done
5116 IFS=$as_save_IFS
5117
5118 fi
5119 fi
5120 GNATMAKE=$ac_cv_prog_GNATMAKE
5121 if test -n "$GNATMAKE"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5123 $as_echo "$GNATMAKE" >&6; }
5124 else
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5127 fi
5128
5129
5130 fi
5131 if test -z "$ac_cv_prog_GNATMAKE"; then
5132 ac_ct_GNATMAKE=$GNATMAKE
5133 # Extract the first word of "gnatmake", so it can be a program name with args.
5134 set dummy gnatmake; ac_word=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 if test -n "$ac_ct_GNATMAKE"; then
5141 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5153 fi
5154 done
5155 done
5156 IFS=$as_save_IFS
5157
5158 fi
5159 fi
5160 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5161 if test -n "$ac_ct_GNATMAKE"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5163 $as_echo "$ac_ct_GNATMAKE" >&6; }
5164 else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5167 fi
5168
5169 if test "x$ac_ct_GNATMAKE" = x; then
5170 GNATMAKE="no"
5171 else
5172 case $cross_compiling:$ac_tool_warned in
5173 yes:)
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5176 ac_tool_warned=yes ;;
5177 esac
5178 GNATMAKE=$ac_ct_GNATMAKE
5179 fi
5180 else
5181 GNATMAKE="$ac_cv_prog_GNATMAKE"
5182 fi
5183
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5185 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5186 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 cat >conftest.adb <<EOF
5190 procedure conftest is begin null; end conftest;
5191 EOF
5192 acx_cv_cc_gcc_supports_ada=no
5193 # There is a bug in old released versions of GCC which causes the
5194 # driver to exit successfully when the appropriate language module
5195 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5196 # Therefore we must check for the error message as well as an
5197 # unsuccessful exit.
5198 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5199 # given a .adb file, but produce no object file. So we must check
5200 # if an object file was really produced to guard against this.
5201 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5202 if test x"$errors" = x && test -f conftest.$ac_objext; then
5203 acx_cv_cc_gcc_supports_ada=yes
5204 fi
5205 rm -f conftest.*
5206 fi
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5208 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5209
5210 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5211 have_gnat=yes
5212 else
5213 have_gnat=no
5214 fi
5215
5216
5217 # Do configure tests with the C++ compiler, since that's what we build with.
5218 ac_ext=cpp
5219 ac_cpp='$CXXCPP $CPPFLAGS'
5220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5223
5224
5225 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5226 # optimizations to be activated explicitly by the toplevel.
5227 case "$CC" in
5228 */prev-gcc/xgcc*) ;;
5229 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5230 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5231 esac
5232
5233
5234
5235 # Determine PICFLAG for target gnatlib.
5236
5237
5238
5239
5240 case "${target}" in
5241 # PIC is the default on some targets or must not be used.
5242 *-*-darwin*)
5243 # For darwin, common symbols are not allowed in MH_DYLIB files
5244 case "${CFLAGS}" in
5245 # If we are using a compiler supporting mdynamic-no-pic
5246 # and the option has been tested as safe to add, then cancel
5247 # it here, since the code generated is incompatible with shared
5248 # libs.
5249 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5250 *) PICFLAG_FOR_TARGET=-fno-common ;;
5251 esac
5252 ;;
5253 alpha*-dec-osf5*)
5254 # PIC is the default.
5255 ;;
5256 hppa*64*-*-hpux*)
5257 # PIC is the default for 64-bit PA HP-UX.
5258 ;;
5259 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5260 ;;
5261 i[34567]86-*-mingw* | x86_64-*-mingw*)
5262 ;;
5263 i[34567]86-*-interix[3-9]*)
5264 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5265 # Instead, we relocate shared libraries at runtime.
5266 ;;
5267 i[34567]86-*-nto-qnx*)
5268 # QNX uses GNU C++, but need to define -shared option too, otherwise
5269 # it will coredump.
5270 PICFLAG_FOR_TARGET='-fPIC -shared'
5271 ;;
5272 i[34567]86-pc-msdosdjgpp*)
5273 # DJGPP does not support shared libraries at all.
5274 ;;
5275 ia64*-*-hpux*)
5276 # On IA64 HP-UX, PIC is the default but the pic flag
5277 # sets the default TLS model and affects inlining.
5278 PICFLAG_FOR_TARGET=-fPIC
5279 ;;
5280 mips-sgi-irix6*)
5281 # PIC is the default.
5282 ;;
5283 rs6000-ibm-aix* | powerpc-ibm-aix*)
5284 # All AIX code is PIC.
5285 ;;
5286
5287 # Some targets support both -fPIC and -fpic, but prefer the latter.
5288 # FIXME: Why?
5289 i[34567]86-*-* | x86_64-*-*)
5290 PICFLAG_FOR_TARGET=-fpic
5291 ;;
5292 # FIXME: Override -fPIC default in libgcc only?
5293 sh-*-linux* | sh[2346lbe]*-*-linux*)
5294 PICFLAG_FOR_TARGET=-fpic
5295 ;;
5296 # FIXME: Simplify to sh*-*-netbsd*?
5297 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5298 sh64-*-netbsd* | sh64l*-*-netbsd*)
5299 PICFLAG_FOR_TARGET=-fpic
5300 ;;
5301 # Default to -fPIC unless specified otherwise.
5302 *)
5303 PICFLAG_FOR_TARGET=-fPIC
5304 ;;
5305 esac
5306
5307 # If the user explicitly uses -fpic/-fPIC, keep that.
5308 case "${CFLAGS_FOR_TARGET}" in
5309 *-fpic*)
5310 PICFLAG_FOR_TARGET=-fpic
5311 ;;
5312 *-fPIC*)
5313 PICFLAG_FOR_TARGET=-fPIC
5314 ;;
5315 esac
5316
5317
5318
5319 # -------------------------
5320 # Check C compiler features
5321 # -------------------------
5322
5323
5324 ac_ext=cpp
5325 ac_cpp='$CXXCPP $CPPFLAGS'
5326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5330 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5331 if test -z "$CXXCPP"; then
5332 if ${ac_cv_prog_CXXCPP+:} false; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 # Double quotes because CXXCPP needs to be expanded
5336 for CXXCPP in "$CXX -E" "/lib/cpp"
5337 do
5338 ac_preproc_ok=false
5339 for ac_cxx_preproc_warn_flag in '' yes
5340 do
5341 # Use a header file that comes with gcc, so configuring glibc
5342 # with a fresh cross-compiler works.
5343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5344 # <limits.h> exists even on freestanding compilers.
5345 # On the NeXT, cc -E runs the code through the compiler's parser,
5346 # not just through cpp. "Syntax error" is here to catch this case.
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349 #ifdef __STDC__
5350 # include <limits.h>
5351 #else
5352 # include <assert.h>
5353 #endif
5354 Syntax error
5355 _ACEOF
5356 if ac_fn_cxx_try_cpp "$LINENO"; then :
5357
5358 else
5359 # Broken: fails on valid input.
5360 continue
5361 fi
5362 rm -f conftest.err conftest.i conftest.$ac_ext
5363
5364 # OK, works on sane cases. Now check whether nonexistent headers
5365 # can be detected and how.
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 #include <ac_nonexistent.h>
5369 _ACEOF
5370 if ac_fn_cxx_try_cpp "$LINENO"; then :
5371 # Broken: success on invalid input.
5372 continue
5373 else
5374 # Passes both tests.
5375 ac_preproc_ok=:
5376 break
5377 fi
5378 rm -f conftest.err conftest.i conftest.$ac_ext
5379
5380 done
5381 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5382 rm -f conftest.i conftest.err conftest.$ac_ext
5383 if $ac_preproc_ok; then :
5384 break
5385 fi
5386
5387 done
5388 ac_cv_prog_CXXCPP=$CXXCPP
5389
5390 fi
5391 CXXCPP=$ac_cv_prog_CXXCPP
5392 else
5393 ac_cv_prog_CXXCPP=$CXXCPP
5394 fi
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5396 $as_echo "$CXXCPP" >&6; }
5397 ac_preproc_ok=false
5398 for ac_cxx_preproc_warn_flag in '' yes
5399 do
5400 # Use a header file that comes with gcc, so configuring glibc
5401 # with a fresh cross-compiler works.
5402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5403 # <limits.h> exists even on freestanding compilers.
5404 # On the NeXT, cc -E runs the code through the compiler's parser,
5405 # not just through cpp. "Syntax error" is here to catch this case.
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408 #ifdef __STDC__
5409 # include <limits.h>
5410 #else
5411 # include <assert.h>
5412 #endif
5413 Syntax error
5414 _ACEOF
5415 if ac_fn_cxx_try_cpp "$LINENO"; then :
5416
5417 else
5418 # Broken: fails on valid input.
5419 continue
5420 fi
5421 rm -f conftest.err conftest.i conftest.$ac_ext
5422
5423 # OK, works on sane cases. Now check whether nonexistent headers
5424 # can be detected and how.
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5427 #include <ac_nonexistent.h>
5428 _ACEOF
5429 if ac_fn_cxx_try_cpp "$LINENO"; then :
5430 # Broken: success on invalid input.
5431 continue
5432 else
5433 # Passes both tests.
5434 ac_preproc_ok=:
5435 break
5436 fi
5437 rm -f conftest.err conftest.i conftest.$ac_ext
5438
5439 done
5440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5441 rm -f conftest.i conftest.err conftest.$ac_ext
5442 if $ac_preproc_ok; then :
5443
5444 else
5445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5447 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5448 See \`config.log' for more details" "$LINENO" 5; }
5449 fi
5450
5451 ac_ext=cpp
5452 ac_cpp='$CXXCPP $CPPFLAGS'
5453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5456
5457
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5459 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5460 if ${ac_cv_path_GREP+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 if test -z "$GREP"; then
5464 ac_path_GREP_found=false
5465 # Loop through the user's path and test for each of PROGNAME-LIST
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5468 do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_prog in grep ggrep; do
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5474 as_fn_executable_p "$ac_path_GREP" || continue
5475 # Check for GNU ac_path_GREP and select it if it is found.
5476 # Check for GNU $ac_path_GREP
5477 case `"$ac_path_GREP" --version 2>&1` in
5478 *GNU*)
5479 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5480 *)
5481 ac_count=0
5482 $as_echo_n 0123456789 >"conftest.in"
5483 while :
5484 do
5485 cat "conftest.in" "conftest.in" >"conftest.tmp"
5486 mv "conftest.tmp" "conftest.in"
5487 cp "conftest.in" "conftest.nl"
5488 $as_echo 'GREP' >> "conftest.nl"
5489 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5490 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5491 as_fn_arith $ac_count + 1 && ac_count=$as_val
5492 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5493 # Best one so far, save it but keep looking for a better one
5494 ac_cv_path_GREP="$ac_path_GREP"
5495 ac_path_GREP_max=$ac_count
5496 fi
5497 # 10*(2^10) chars as input seems more than enough
5498 test $ac_count -gt 10 && break
5499 done
5500 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5501 esac
5502
5503 $ac_path_GREP_found && break 3
5504 done
5505 done
5506 done
5507 IFS=$as_save_IFS
5508 if test -z "$ac_cv_path_GREP"; then
5509 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5510 fi
5511 else
5512 ac_cv_path_GREP=$GREP
5513 fi
5514
5515 fi
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5517 $as_echo "$ac_cv_path_GREP" >&6; }
5518 GREP="$ac_cv_path_GREP"
5519
5520
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5522 $as_echo_n "checking for egrep... " >&6; }
5523 if ${ac_cv_path_EGREP+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5527 then ac_cv_path_EGREP="$GREP -E"
5528 else
5529 if test -z "$EGREP"; then
5530 ac_path_EGREP_found=false
5531 # Loop through the user's path and test for each of PROGNAME-LIST
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5534 do
5535 IFS=$as_save_IFS
5536 test -z "$as_dir" && as_dir=.
5537 for ac_prog in egrep; do
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5540 as_fn_executable_p "$ac_path_EGREP" || continue
5541 # Check for GNU ac_path_EGREP and select it if it is found.
5542 # Check for GNU $ac_path_EGREP
5543 case `"$ac_path_EGREP" --version 2>&1` in
5544 *GNU*)
5545 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5546 *)
5547 ac_count=0
5548 $as_echo_n 0123456789 >"conftest.in"
5549 while :
5550 do
5551 cat "conftest.in" "conftest.in" >"conftest.tmp"
5552 mv "conftest.tmp" "conftest.in"
5553 cp "conftest.in" "conftest.nl"
5554 $as_echo 'EGREP' >> "conftest.nl"
5555 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5557 as_fn_arith $ac_count + 1 && ac_count=$as_val
5558 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5559 # Best one so far, save it but keep looking for a better one
5560 ac_cv_path_EGREP="$ac_path_EGREP"
5561 ac_path_EGREP_max=$ac_count
5562 fi
5563 # 10*(2^10) chars as input seems more than enough
5564 test $ac_count -gt 10 && break
5565 done
5566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5567 esac
5568
5569 $ac_path_EGREP_found && break 3
5570 done
5571 done
5572 done
5573 IFS=$as_save_IFS
5574 if test -z "$ac_cv_path_EGREP"; then
5575 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5576 fi
5577 else
5578 ac_cv_path_EGREP=$EGREP
5579 fi
5580
5581 fi
5582 fi
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5584 $as_echo "$ac_cv_path_EGREP" >&6; }
5585 EGREP="$ac_cv_path_EGREP"
5586
5587
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5589 $as_echo_n "checking for ANSI C header files... " >&6; }
5590 if ${ac_cv_header_stdc+:} false; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595 #include <stdlib.h>
5596 #include <stdarg.h>
5597 #include <string.h>
5598 #include <float.h>
5599
5600 int
5601 main ()
5602 {
5603
5604 ;
5605 return 0;
5606 }
5607 _ACEOF
5608 if ac_fn_cxx_try_compile "$LINENO"; then :
5609 ac_cv_header_stdc=yes
5610 else
5611 ac_cv_header_stdc=no
5612 fi
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614
5615 if test $ac_cv_header_stdc = yes; then
5616 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 #include <string.h>
5620
5621 _ACEOF
5622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5623 $EGREP "memchr" >/dev/null 2>&1; then :
5624
5625 else
5626 ac_cv_header_stdc=no
5627 fi
5628 rm -f conftest*
5629
5630 fi
5631
5632 if test $ac_cv_header_stdc = yes; then
5633 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5636 #include <stdlib.h>
5637
5638 _ACEOF
5639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5640 $EGREP "free" >/dev/null 2>&1; then :
5641
5642 else
5643 ac_cv_header_stdc=no
5644 fi
5645 rm -f conftest*
5646
5647 fi
5648
5649 if test $ac_cv_header_stdc = yes; then
5650 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5651 if test "$cross_compiling" = yes; then :
5652 :
5653 else
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656 #include <ctype.h>
5657 #include <stdlib.h>
5658 #if ((' ' & 0x0FF) == 0x020)
5659 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5660 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5661 #else
5662 # define ISLOWER(c) \
5663 (('a' <= (c) && (c) <= 'i') \
5664 || ('j' <= (c) && (c) <= 'r') \
5665 || ('s' <= (c) && (c) <= 'z'))
5666 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5667 #endif
5668
5669 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5670 int
5671 main ()
5672 {
5673 int i;
5674 for (i = 0; i < 256; i++)
5675 if (XOR (islower (i), ISLOWER (i))
5676 || toupper (i) != TOUPPER (i))
5677 return 2;
5678 return 0;
5679 }
5680 _ACEOF
5681 if ac_fn_cxx_try_run "$LINENO"; then :
5682
5683 else
5684 ac_cv_header_stdc=no
5685 fi
5686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5687 conftest.$ac_objext conftest.beam conftest.$ac_ext
5688 fi
5689
5690 fi
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5693 $as_echo "$ac_cv_header_stdc" >&6; }
5694 if test $ac_cv_header_stdc = yes; then
5695
5696 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5697
5698 fi
5699
5700 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5701 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5702 inttypes.h stdint.h unistd.h
5703 do :
5704 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5705 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5706 "
5707 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5708 cat >>confdefs.h <<_ACEOF
5709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5710 _ACEOF
5711
5712 fi
5713
5714 done
5715
5716
5717
5718 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5719 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5720 MINIX=yes
5721 else
5722 MINIX=
5723 fi
5724
5725
5726 if test "$MINIX" = yes; then
5727
5728 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5729
5730
5731 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5732
5733
5734 $as_echo "#define _MINIX 1" >>confdefs.h
5735
5736 fi
5737
5738
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5740 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5741 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746
5747 # define __EXTENSIONS__ 1
5748 $ac_includes_default
5749 int
5750 main ()
5751 {
5752
5753 ;
5754 return 0;
5755 }
5756 _ACEOF
5757 if ac_fn_cxx_try_compile "$LINENO"; then :
5758 ac_cv_safe_to_define___extensions__=yes
5759 else
5760 ac_cv_safe_to_define___extensions__=no
5761 fi
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763 fi
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5765 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5766 test $ac_cv_safe_to_define___extensions__ = yes &&
5767 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5768
5769 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5770
5771 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5772
5773 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5774
5775 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5776
5777
5778
5779 ac_ext=c
5780 ac_cpp='$CPP $CPPFLAGS'
5781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5785 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5786 # On Suns, sometimes $CPP names a directory.
5787 if test -n "$CPP" && test -d "$CPP"; then
5788 CPP=
5789 fi
5790 if test -z "$CPP"; then
5791 if ${ac_cv_prog_CPP+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 # Double quotes because CPP needs to be expanded
5795 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5796 do
5797 ac_preproc_ok=false
5798 for ac_c_preproc_warn_flag in '' yes
5799 do
5800 # Use a header file that comes with gcc, so configuring glibc
5801 # with a fresh cross-compiler works.
5802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5803 # <limits.h> exists even on freestanding compilers.
5804 # On the NeXT, cc -E runs the code through the compiler's parser,
5805 # not just through cpp. "Syntax error" is here to catch this case.
5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807 /* end confdefs.h. */
5808 #ifdef __STDC__
5809 # include <limits.h>
5810 #else
5811 # include <assert.h>
5812 #endif
5813 Syntax error
5814 _ACEOF
5815 if ac_fn_c_try_cpp "$LINENO"; then :
5816
5817 else
5818 # Broken: fails on valid input.
5819 continue
5820 fi
5821 rm -f conftest.err conftest.i conftest.$ac_ext
5822
5823 # OK, works on sane cases. Now check whether nonexistent headers
5824 # can be detected and how.
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5827 #include <ac_nonexistent.h>
5828 _ACEOF
5829 if ac_fn_c_try_cpp "$LINENO"; then :
5830 # Broken: success on invalid input.
5831 continue
5832 else
5833 # Passes both tests.
5834 ac_preproc_ok=:
5835 break
5836 fi
5837 rm -f conftest.err conftest.i conftest.$ac_ext
5838
5839 done
5840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5841 rm -f conftest.i conftest.err conftest.$ac_ext
5842 if $ac_preproc_ok; then :
5843 break
5844 fi
5845
5846 done
5847 ac_cv_prog_CPP=$CPP
5848
5849 fi
5850 CPP=$ac_cv_prog_CPP
5851 else
5852 ac_cv_prog_CPP=$CPP
5853 fi
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5855 $as_echo "$CPP" >&6; }
5856 ac_preproc_ok=false
5857 for ac_c_preproc_warn_flag in '' yes
5858 do
5859 # Use a header file that comes with gcc, so configuring glibc
5860 # with a fresh cross-compiler works.
5861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5862 # <limits.h> exists even on freestanding compilers.
5863 # On the NeXT, cc -E runs the code through the compiler's parser,
5864 # not just through cpp. "Syntax error" is here to catch this case.
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 #ifdef __STDC__
5868 # include <limits.h>
5869 #else
5870 # include <assert.h>
5871 #endif
5872 Syntax error
5873 _ACEOF
5874 if ac_fn_c_try_cpp "$LINENO"; then :
5875
5876 else
5877 # Broken: fails on valid input.
5878 continue
5879 fi
5880 rm -f conftest.err conftest.i conftest.$ac_ext
5881
5882 # OK, works on sane cases. Now check whether nonexistent headers
5883 # can be detected and how.
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886 #include <ac_nonexistent.h>
5887 _ACEOF
5888 if ac_fn_c_try_cpp "$LINENO"; then :
5889 # Broken: success on invalid input.
5890 continue
5891 else
5892 # Passes both tests.
5893 ac_preproc_ok=:
5894 break
5895 fi
5896 rm -f conftest.err conftest.i conftest.$ac_ext
5897
5898 done
5899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5900 rm -f conftest.i conftest.err conftest.$ac_ext
5901 if $ac_preproc_ok; then :
5902
5903 else
5904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5906 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5907 See \`config.log' for more details" "$LINENO" 5; }
5908 fi
5909
5910 ac_ext=cpp
5911 ac_cpp='$CXXCPP $CPPFLAGS'
5912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5915
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5917 $as_echo_n "checking for inline... " >&6; }
5918 if ${ac_cv_c_inline+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 ac_cv_c_inline=no
5922 for ac_kw in inline __inline__ __inline; do
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925 #ifndef __cplusplus
5926 typedef int foo_t;
5927 static $ac_kw foo_t static_foo () {return 0; }
5928 $ac_kw foo_t foo () {return 0; }
5929 #endif
5930
5931 _ACEOF
5932 if ac_fn_cxx_try_compile "$LINENO"; then :
5933 ac_cv_c_inline=$ac_kw
5934 fi
5935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5936 test "$ac_cv_c_inline" != no && break
5937 done
5938
5939 fi
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5941 $as_echo "$ac_cv_c_inline" >&6; }
5942
5943 case $ac_cv_c_inline in
5944 inline | yes) ;;
5945 *)
5946 case $ac_cv_c_inline in
5947 no) ac_val=;;
5948 *) ac_val=$ac_cv_c_inline;;
5949 esac
5950 cat >>confdefs.h <<_ACEOF
5951 #ifndef __cplusplus
5952 #define inline $ac_val
5953 #endif
5954 _ACEOF
5955 ;;
5956 esac
5957
5958
5959 # Check whether --enable-largefile was given.
5960 if test "${enable_largefile+set}" = set; then :
5961 enableval=$enable_largefile;
5962 fi
5963
5964 if test "$enable_largefile" != no; then
5965
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5967 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5968 if ${ac_cv_sys_largefile_CC+:} false; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 ac_cv_sys_largefile_CC=no
5972 if test "$GCC" != yes; then
5973 ac_save_CC=$CC
5974 while :; do
5975 # IRIX 6.2 and later do not support large files by default,
5976 # so use the C compiler's -n32 option if that helps.
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5979 #include <sys/types.h>
5980 /* Check that off_t can represent 2**63 - 1 correctly.
5981 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5982 since some C++ compilers masquerading as C compilers
5983 incorrectly reject 9223372036854775807. */
5984 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5985 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5986 && LARGE_OFF_T % 2147483647 == 1)
5987 ? 1 : -1];
5988 int
5989 main ()
5990 {
5991
5992 ;
5993 return 0;
5994 }
5995 _ACEOF
5996 if ac_fn_cxx_try_compile "$LINENO"; then :
5997 break
5998 fi
5999 rm -f core conftest.err conftest.$ac_objext
6000 CC="$CC -n32"
6001 if ac_fn_cxx_try_compile "$LINENO"; then :
6002 ac_cv_sys_largefile_CC=' -n32'; break
6003 fi
6004 rm -f core conftest.err conftest.$ac_objext
6005 break
6006 done
6007 CC=$ac_save_CC
6008 rm -f conftest.$ac_ext
6009 fi
6010 fi
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6012 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6013 if test "$ac_cv_sys_largefile_CC" != no; then
6014 CC=$CC$ac_cv_sys_largefile_CC
6015 fi
6016
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6018 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6019 if ${ac_cv_sys_file_offset_bits+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 while :; do
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6025 #include <sys/types.h>
6026 /* Check that off_t can represent 2**63 - 1 correctly.
6027 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6028 since some C++ compilers masquerading as C compilers
6029 incorrectly reject 9223372036854775807. */
6030 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6031 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6032 && LARGE_OFF_T % 2147483647 == 1)
6033 ? 1 : -1];
6034 int
6035 main ()
6036 {
6037
6038 ;
6039 return 0;
6040 }
6041 _ACEOF
6042 if ac_fn_cxx_try_compile "$LINENO"; then :
6043 ac_cv_sys_file_offset_bits=no; break
6044 fi
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6048 #define _FILE_OFFSET_BITS 64
6049 #include <sys/types.h>
6050 /* Check that off_t can represent 2**63 - 1 correctly.
6051 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6052 since some C++ compilers masquerading as C compilers
6053 incorrectly reject 9223372036854775807. */
6054 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6055 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6056 && LARGE_OFF_T % 2147483647 == 1)
6057 ? 1 : -1];
6058 int
6059 main ()
6060 {
6061
6062 ;
6063 return 0;
6064 }
6065 _ACEOF
6066 if ac_fn_cxx_try_compile "$LINENO"; then :
6067 ac_cv_sys_file_offset_bits=64; break
6068 fi
6069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070 ac_cv_sys_file_offset_bits=unknown
6071 break
6072 done
6073 fi
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6075 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6076 case $ac_cv_sys_file_offset_bits in #(
6077 no | unknown) ;;
6078 *)
6079 cat >>confdefs.h <<_ACEOF
6080 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6081 _ACEOF
6082 ;;
6083 esac
6084 rm -rf conftest*
6085 if test $ac_cv_sys_file_offset_bits = unknown; then
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6087 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6088 if ${ac_cv_sys_large_files+:} false; then :
6089 $as_echo_n "(cached) " >&6
6090 else
6091 while :; do
6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6094 #include <sys/types.h>
6095 /* Check that off_t can represent 2**63 - 1 correctly.
6096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6097 since some C++ compilers masquerading as C compilers
6098 incorrectly reject 9223372036854775807. */
6099 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6101 && LARGE_OFF_T % 2147483647 == 1)
6102 ? 1 : -1];
6103 int
6104 main ()
6105 {
6106
6107 ;
6108 return 0;
6109 }
6110 _ACEOF
6111 if ac_fn_cxx_try_compile "$LINENO"; then :
6112 ac_cv_sys_large_files=no; break
6113 fi
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6117 #define _LARGE_FILES 1
6118 #include <sys/types.h>
6119 /* Check that off_t can represent 2**63 - 1 correctly.
6120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6121 since some C++ compilers masquerading as C compilers
6122 incorrectly reject 9223372036854775807. */
6123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6125 && LARGE_OFF_T % 2147483647 == 1)
6126 ? 1 : -1];
6127 int
6128 main ()
6129 {
6130
6131 ;
6132 return 0;
6133 }
6134 _ACEOF
6135 if ac_fn_cxx_try_compile "$LINENO"; then :
6136 ac_cv_sys_large_files=1; break
6137 fi
6138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139 ac_cv_sys_large_files=unknown
6140 break
6141 done
6142 fi
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6144 $as_echo "$ac_cv_sys_large_files" >&6; }
6145 case $ac_cv_sys_large_files in #(
6146 no | unknown) ;;
6147 *)
6148 cat >>confdefs.h <<_ACEOF
6149 #define _LARGE_FILES $ac_cv_sys_large_files
6150 _ACEOF
6151 ;;
6152 esac
6153 rm -rf conftest*
6154 fi
6155
6156
6157 fi
6158
6159
6160 # sizeof(char) is 1 by definition.
6161 # The cast to long int works around a bug in the HP C Compiler
6162 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6163 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6164 # This bug is HP SR number 8606223364.
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6166 $as_echo_n "checking size of void *... " >&6; }
6167 if ${ac_cv_sizeof_void_p+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6171
6172 else
6173 if test "$ac_cv_type_void_p" = yes; then
6174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6176 as_fn_error 77 "cannot compute sizeof (void *)
6177 See \`config.log' for more details" "$LINENO" 5; }
6178 else
6179 ac_cv_sizeof_void_p=0
6180 fi
6181 fi
6182
6183 fi
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6185 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6186
6187
6188
6189 cat >>confdefs.h <<_ACEOF
6190 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6191 _ACEOF
6192
6193
6194 # The cast to long int works around a bug in the HP C Compiler
6195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6197 # This bug is HP SR number 8606223364.
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6199 $as_echo_n "checking size of short... " >&6; }
6200 if ${ac_cv_sizeof_short+:} false; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6204
6205 else
6206 if test "$ac_cv_type_short" = yes; then
6207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6209 as_fn_error 77 "cannot compute sizeof (short)
6210 See \`config.log' for more details" "$LINENO" 5; }
6211 else
6212 ac_cv_sizeof_short=0
6213 fi
6214 fi
6215
6216 fi
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6218 $as_echo "$ac_cv_sizeof_short" >&6; }
6219
6220
6221
6222 cat >>confdefs.h <<_ACEOF
6223 #define SIZEOF_SHORT $ac_cv_sizeof_short
6224 _ACEOF
6225
6226
6227 # The cast to long int works around a bug in the HP C Compiler
6228 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6229 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6230 # This bug is HP SR number 8606223364.
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6232 $as_echo_n "checking size of int... " >&6; }
6233 if ${ac_cv_sizeof_int+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6237
6238 else
6239 if test "$ac_cv_type_int" = yes; then
6240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6242 as_fn_error 77 "cannot compute sizeof (int)
6243 See \`config.log' for more details" "$LINENO" 5; }
6244 else
6245 ac_cv_sizeof_int=0
6246 fi
6247 fi
6248
6249 fi
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6251 $as_echo "$ac_cv_sizeof_int" >&6; }
6252
6253
6254
6255 cat >>confdefs.h <<_ACEOF
6256 #define SIZEOF_INT $ac_cv_sizeof_int
6257 _ACEOF
6258
6259
6260 # The cast to long int works around a bug in the HP C Compiler
6261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6263 # This bug is HP SR number 8606223364.
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6265 $as_echo_n "checking size of long... " >&6; }
6266 if ${ac_cv_sizeof_long+:} false; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6270
6271 else
6272 if test "$ac_cv_type_long" = yes; then
6273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6275 as_fn_error 77 "cannot compute sizeof (long)
6276 See \`config.log' for more details" "$LINENO" 5; }
6277 else
6278 ac_cv_sizeof_long=0
6279 fi
6280 fi
6281
6282 fi
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6284 $as_echo "$ac_cv_sizeof_long" >&6; }
6285
6286
6287
6288 cat >>confdefs.h <<_ACEOF
6289 #define SIZEOF_LONG $ac_cv_sizeof_long
6290 _ACEOF
6291
6292
6293 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6294 if test "x$ac_cv_type_long_long" = xyes; then :
6295
6296 cat >>confdefs.h <<_ACEOF
6297 #define HAVE_LONG_LONG 1
6298 _ACEOF
6299
6300 # The cast to long int works around a bug in the HP C Compiler
6301 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6302 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6303 # This bug is HP SR number 8606223364.
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6305 $as_echo_n "checking size of long long... " >&6; }
6306 if ${ac_cv_sizeof_long_long+:} false; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6310
6311 else
6312 if test "$ac_cv_type_long_long" = yes; then
6313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6315 as_fn_error 77 "cannot compute sizeof (long long)
6316 See \`config.log' for more details" "$LINENO" 5; }
6317 else
6318 ac_cv_sizeof_long_long=0
6319 fi
6320 fi
6321
6322 fi
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6324 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6325
6326
6327
6328 cat >>confdefs.h <<_ACEOF
6329 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6330 _ACEOF
6331
6332
6333 fi
6334
6335 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6336 case $ac_cv_c_int8_t in #(
6337 no|yes) ;; #(
6338 *)
6339
6340 cat >>confdefs.h <<_ACEOF
6341 #define int8_t $ac_cv_c_int8_t
6342 _ACEOF
6343 ;;
6344 esac
6345
6346 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6347 case $ac_cv_c_int16_t in #(
6348 no|yes) ;; #(
6349 *)
6350
6351 cat >>confdefs.h <<_ACEOF
6352 #define int16_t $ac_cv_c_int16_t
6353 _ACEOF
6354 ;;
6355 esac
6356
6357 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6358 case $ac_cv_c_int32_t in #(
6359 no|yes) ;; #(
6360 *)
6361
6362 cat >>confdefs.h <<_ACEOF
6363 #define int32_t $ac_cv_c_int32_t
6364 _ACEOF
6365 ;;
6366 esac
6367
6368 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6369 case $ac_cv_c_int64_t in #(
6370 no|yes) ;; #(
6371 *)
6372
6373 cat >>confdefs.h <<_ACEOF
6374 #define int64_t $ac_cv_c_int64_t
6375 _ACEOF
6376 ;;
6377 esac
6378
6379
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6381 $as_echo_n "checking for unsigned long long int... " >&6; }
6382 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 ac_cv_type_unsigned_long_long_int=yes
6386 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6389
6390 /* For now, do not test the preprocessor; as of 2007 there are too many
6391 implementations with broken preprocessors. Perhaps this can
6392 be revisited in 2012. In the meantime, code should not expect
6393 #if to work with literals wider than 32 bits. */
6394 /* Test literals. */
6395 long long int ll = 9223372036854775807ll;
6396 long long int nll = -9223372036854775807LL;
6397 unsigned long long int ull = 18446744073709551615ULL;
6398 /* Test constant expressions. */
6399 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6400 ? 1 : -1)];
6401 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6402 ? 1 : -1)];
6403 int i = 63;
6404 int
6405 main ()
6406 {
6407 /* Test availability of runtime routines for shift and division. */
6408 long long int llmax = 9223372036854775807ll;
6409 unsigned long long int ullmax = 18446744073709551615ull;
6410 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6411 | (llmax / ll) | (llmax % ll)
6412 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6413 | (ullmax / ull) | (ullmax % ull));
6414 ;
6415 return 0;
6416 }
6417
6418 _ACEOF
6419 if ac_fn_cxx_try_link "$LINENO"; then :
6420
6421 else
6422 ac_cv_type_unsigned_long_long_int=no
6423 fi
6424 rm -f core conftest.err conftest.$ac_objext \
6425 conftest$ac_exeext conftest.$ac_ext
6426 fi
6427 fi
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6429 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6430 if test $ac_cv_type_unsigned_long_long_int = yes; then
6431
6432 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6433
6434 fi
6435
6436
6437
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6439 $as_echo_n "checking for long long int... " >&6; }
6440 if ${ac_cv_type_long_long_int+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 ac_cv_type_long_long_int=yes
6444 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6445 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6446 if test $ac_cv_type_long_long_int = yes; then
6447 if test "$cross_compiling" = yes; then :
6448 :
6449 else
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452 #include <limits.h>
6453 #ifndef LLONG_MAX
6454 # define HALF \
6455 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6456 # define LLONG_MAX (HALF - 1 + HALF)
6457 #endif
6458 int
6459 main ()
6460 {
6461 long long int n = 1;
6462 int i;
6463 for (i = 0; ; i++)
6464 {
6465 long long int m = n << i;
6466 if (m >> i != n)
6467 return 1;
6468 if (LLONG_MAX / 2 < m)
6469 break;
6470 }
6471 return 0;
6472 ;
6473 return 0;
6474 }
6475 _ACEOF
6476 if ac_fn_cxx_try_run "$LINENO"; then :
6477
6478 else
6479 ac_cv_type_long_long_int=no
6480 fi
6481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6482 conftest.$ac_objext conftest.beam conftest.$ac_ext
6483 fi
6484
6485 fi
6486 fi
6487 fi
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6489 $as_echo "$ac_cv_type_long_long_int" >&6; }
6490 if test $ac_cv_type_long_long_int = yes; then
6491
6492 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6493
6494 fi
6495
6496
6497
6498 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6499 if test "x$ac_cv_type_intmax_t" = xyes; then :
6500
6501 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6502
6503 else
6504 test $ac_cv_type_long_long_int = yes \
6505 && ac_type='long long int' \
6506 || ac_type='long int'
6507
6508 cat >>confdefs.h <<_ACEOF
6509 #define intmax_t $ac_type
6510 _ACEOF
6511
6512 fi
6513
6514
6515
6516 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6517 if test "x$ac_cv_type_intptr_t" = xyes; then :
6518
6519 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6520
6521 else
6522 for ac_type in 'int' 'long int' 'long long int'; do
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 $ac_includes_default
6526 int
6527 main ()
6528 {
6529 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6530 test_array [0] = 0;
6531 return test_array [0];
6532
6533 ;
6534 return 0;
6535 }
6536 _ACEOF
6537 if ac_fn_cxx_try_compile "$LINENO"; then :
6538
6539 cat >>confdefs.h <<_ACEOF
6540 #define intptr_t $ac_type
6541 _ACEOF
6542
6543 ac_type=
6544 fi
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 test -z "$ac_type" && break
6547 done
6548 fi
6549
6550
6551 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6552 case $ac_cv_c_uint8_t in #(
6553 no|yes) ;; #(
6554 *)
6555
6556 $as_echo "#define _UINT8_T 1" >>confdefs.h
6557
6558
6559 cat >>confdefs.h <<_ACEOF
6560 #define uint8_t $ac_cv_c_uint8_t
6561 _ACEOF
6562 ;;
6563 esac
6564
6565 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6566 case $ac_cv_c_uint16_t in #(
6567 no|yes) ;; #(
6568 *)
6569
6570
6571 cat >>confdefs.h <<_ACEOF
6572 #define uint16_t $ac_cv_c_uint16_t
6573 _ACEOF
6574 ;;
6575 esac
6576
6577 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6578 case $ac_cv_c_uint32_t in #(
6579 no|yes) ;; #(
6580 *)
6581
6582 $as_echo "#define _UINT32_T 1" >>confdefs.h
6583
6584
6585 cat >>confdefs.h <<_ACEOF
6586 #define uint32_t $ac_cv_c_uint32_t
6587 _ACEOF
6588 ;;
6589 esac
6590
6591 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6592 case $ac_cv_c_uint64_t in #(
6593 no|yes) ;; #(
6594 *)
6595
6596 $as_echo "#define _UINT64_T 1" >>confdefs.h
6597
6598
6599 cat >>confdefs.h <<_ACEOF
6600 #define uint64_t $ac_cv_c_uint64_t
6601 _ACEOF
6602 ;;
6603 esac
6604
6605
6606
6607 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6608 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6609
6610 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6611
6612 else
6613 test $ac_cv_type_unsigned_long_long_int = yes \
6614 && ac_type='unsigned long long int' \
6615 || ac_type='unsigned long int'
6616
6617 cat >>confdefs.h <<_ACEOF
6618 #define uintmax_t $ac_type
6619 _ACEOF
6620
6621 fi
6622
6623
6624
6625 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6626 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6627
6628 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6629
6630 else
6631 for ac_type in 'unsigned int' 'unsigned long int' \
6632 'unsigned long long int'; do
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6635 $ac_includes_default
6636 int
6637 main ()
6638 {
6639 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6640 test_array [0] = 0;
6641 return test_array [0];
6642
6643 ;
6644 return 0;
6645 }
6646 _ACEOF
6647 if ac_fn_cxx_try_compile "$LINENO"; then :
6648
6649 cat >>confdefs.h <<_ACEOF
6650 #define uintptr_t $ac_type
6651 _ACEOF
6652
6653 ac_type=
6654 fi
6655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656 test -z "$ac_type" && break
6657 done
6658 fi
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6674 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6675 fi
6676
6677 # check what underlying integer type int64_t uses
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6679 $as_echo_n "checking for int64_t underlying type... " >&6; }
6680 if ${ac_cv_int64_t_type+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6686
6687 #ifdef HAVE_STDINT_H
6688 #include <stdint.h>
6689 #endif
6690 template <typename T> struct X { };
6691 template <>
6692 struct X<long> { typedef long t; };
6693
6694 int
6695 main ()
6696 {
6697 X<int64_t>::t x;
6698 ;
6699 return 0;
6700 }
6701 _ACEOF
6702 if ac_fn_cxx_try_compile "$LINENO"; then :
6703 ac_cv_int64_t_type=long
6704 else
6705 ac_cv_int64_t_type="long long"
6706 fi
6707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708 fi
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6710 $as_echo "$ac_cv_int64_t_type" >&6; }
6711 if test "$ac_cv_int64_t_type" = "long"; then
6712
6713 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6714
6715 else
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718
6719 #ifdef HAVE_STDINT_H
6720 #include <stdint.h>
6721 #endif
6722 template <typename T> struct X { };
6723 template <>
6724 struct X<long long> { typedef long long t; };
6725
6726 int
6727 main ()
6728 {
6729 X<int64_t>::t x;
6730 ;
6731 return 0;
6732 }
6733 _ACEOF
6734 if ac_fn_cxx_try_compile "$LINENO"; then :
6735
6736 else
6737 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6738 fi
6739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6740 fi
6741
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6743 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6744 if ${ac_cv_std_swap_in_utility+:} false; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750
6751 #include <utility>
6752
6753 int
6754 main ()
6755 {
6756 int a, b; std::swap(a,b);
6757 ;
6758 return 0;
6759 }
6760 _ACEOF
6761 if ac_fn_cxx_try_compile "$LINENO"; then :
6762 ac_cv_std_swap_in_utility=yes
6763 else
6764 ac_cv_std_swap_in_utility=no
6765 fi
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 fi
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6769 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6770 if test $ac_cv_std_swap_in_utility = yes; then
6771
6772 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6773
6774 fi
6775
6776 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6777 # If the host compiler is affected by the bug, and we build with optimization
6778 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6779 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6780 # Since there is no reliable feature check for the presence of this bug,
6781 # we simply use a GCC version number check. (This should never trigger for
6782 # stages 2 or 3 of a native bootstrap.)
6783 aliasing_flags=
6784 if test "$GCC" = yes; then
6785 saved_CXXFLAGS="$CXXFLAGS"
6786
6787 # The following test compilation will succeed if and only if $CXX accepts
6788 # -fno-strict-aliasing *and* is older than GCC 4.3.
6789 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6791 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h. */
6794
6795 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6796 #error compiler not affected by placement new aliasing bug
6797 #endif
6798
6799 _ACEOF
6800 if ac_fn_cxx_try_compile "$LINENO"; then :
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6802 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6803 else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6806 fi
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808
6809 CXXFLAGS="$saved_CXXFLAGS"
6810 fi
6811
6812
6813
6814
6815 # ---------------------
6816 # Warnings and checking
6817 # ---------------------
6818
6819 # Check $CC warning features (if it's GCC).
6820 # We want to use -pedantic, but we don't want warnings about
6821 # * 'long long'
6822 # * variadic macros
6823 # * overlong strings
6824 # * C++11 narrowing conversions in { }
6825 # So, we only use -pedantic if we can disable those warnings.
6826
6827 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6828 # Check whether --enable-build-format-warnings was given.
6829 if test "${enable_build_format_warnings+set}" = set; then :
6830 enableval=$enable_build_format_warnings;
6831 else
6832 enable_build_format_warnings=yes
6833 fi
6834
6835 if test $enable_build_format_warnings = no; then :
6836 wf_opt=-Wno-format
6837 else
6838 wf_opt=
6839 fi
6840 ac_ext=cpp
6841 ac_cpp='$CXXCPP $CPPFLAGS'
6842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6845
6846 loose_warn=
6847 save_CXXFLAGS="$CXXFLAGS"
6848 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6849 # Do the check with the no- prefix removed since gcc silently
6850 # accepts any -Wno-* option on purpose
6851 case $real_option in
6852 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6853 *) option=$real_option ;;
6854 esac
6855 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6856
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6858 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6859 if eval \${$as_acx_Woption+:} false; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 CXXFLAGS="$option"
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6865
6866 int
6867 main ()
6868 {
6869
6870 ;
6871 return 0;
6872 }
6873 _ACEOF
6874 if ac_fn_cxx_try_compile "$LINENO"; then :
6875 eval "$as_acx_Woption=yes"
6876 else
6877 eval "$as_acx_Woption=no"
6878 fi
6879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6880
6881 fi
6882 eval ac_res=\$$as_acx_Woption
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6884 $as_echo "$ac_res" >&6; }
6885 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6886 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6887 fi
6888 done
6889 CXXFLAGS="$save_CXXFLAGS"
6890 ac_ext=cpp
6891 ac_cpp='$CXXCPP $CPPFLAGS'
6892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6895
6896
6897
6898 ac_ext=c
6899 ac_cpp='$CPP $CPPFLAGS'
6900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6903
6904 c_loose_warn=
6905 save_CFLAGS="$CFLAGS"
6906 for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6907 # Do the check with the no- prefix removed since gcc silently
6908 # accepts any -Wno-* option on purpose
6909 case $real_option in
6910 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6911 *) option=$real_option ;;
6912 esac
6913 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6914
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6916 $as_echo_n "checking whether $CC supports $option... " >&6; }
6917 if eval \${$as_acx_Woption+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 CFLAGS="$option"
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h. */
6923
6924 int
6925 main ()
6926 {
6927
6928 ;
6929 return 0;
6930 }
6931 _ACEOF
6932 if ac_fn_c_try_compile "$LINENO"; then :
6933 eval "$as_acx_Woption=yes"
6934 else
6935 eval "$as_acx_Woption=no"
6936 fi
6937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938
6939 fi
6940 eval ac_res=\$$as_acx_Woption
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6942 $as_echo "$ac_res" >&6; }
6943 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6944 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6945 fi
6946 done
6947 CFLAGS="$save_CFLAGS"
6948 ac_ext=cpp
6949 ac_cpp='$CXXCPP $CPPFLAGS'
6950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6953
6954
6955 ac_ext=cpp
6956 ac_cpp='$CXXCPP $CPPFLAGS'
6957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6960
6961 strict_warn=
6962 save_CXXFLAGS="$CXXFLAGS"
6963 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6964 # Do the check with the no- prefix removed since gcc silently
6965 # accepts any -Wno-* option on purpose
6966 case $real_option in
6967 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6968 *) option=$real_option ;;
6969 esac
6970 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6971
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6973 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6974 if eval \${$as_acx_Woption+:} false; then :
6975 $as_echo_n "(cached) " >&6
6976 else
6977 CXXFLAGS="$option"
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6980
6981 int
6982 main ()
6983 {
6984
6985 ;
6986 return 0;
6987 }
6988 _ACEOF
6989 if ac_fn_cxx_try_compile "$LINENO"; then :
6990 eval "$as_acx_Woption=yes"
6991 else
6992 eval "$as_acx_Woption=no"
6993 fi
6994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6995
6996 fi
6997 eval ac_res=\$$as_acx_Woption
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6999 $as_echo "$ac_res" >&6; }
7000 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7001 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7002 fi
7003 done
7004 CXXFLAGS="$save_CXXFLAGS"
7005 ac_ext=cpp
7006 ac_cpp='$CXXCPP $CPPFLAGS'
7007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7010
7011
7012 ac_ext=c
7013 ac_cpp='$CPP $CPPFLAGS'
7014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7017
7018 c_strict_warn=
7019 save_CFLAGS="$CFLAGS"
7020 for real_option in -Wold-style-definition -Wc++-compat; do
7021 # Do the check with the no- prefix removed since gcc silently
7022 # accepts any -Wno-* option on purpose
7023 case $real_option in
7024 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7025 *) option=$real_option ;;
7026 esac
7027 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7028
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7030 $as_echo_n "checking whether $CC supports $option... " >&6; }
7031 if eval \${$as_acx_Woption+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 CFLAGS="$option"
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7037
7038 int
7039 main ()
7040 {
7041
7042 ;
7043 return 0;
7044 }
7045 _ACEOF
7046 if ac_fn_c_try_compile "$LINENO"; then :
7047 eval "$as_acx_Woption=yes"
7048 else
7049 eval "$as_acx_Woption=no"
7050 fi
7051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7052
7053 fi
7054 eval ac_res=\$$as_acx_Woption
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7056 $as_echo "$ac_res" >&6; }
7057 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7058 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7059 fi
7060 done
7061 CFLAGS="$save_CFLAGS"
7062 ac_ext=cpp
7063 ac_cpp='$CXXCPP $CPPFLAGS'
7064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7067
7068
7069 ac_ext=cpp
7070 ac_cpp='$CXXCPP $CPPFLAGS'
7071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7074
7075 # Do the check with the no- prefix removed from the warning options
7076 # since gcc silently accepts any -Wno-* option on purpose
7077 if test "$GXX" = yes; then :
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7079 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7080 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 save_CXXFLAGS="$CXXFLAGS"
7084 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7087
7088 int
7089 main ()
7090 {
7091
7092 ;
7093 return 0;
7094 }
7095 _ACEOF
7096 if ac_fn_cxx_try_compile "$LINENO"; then :
7097 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7098 else
7099 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7100 fi
7101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102 CXXFLAGS="$save_CXXFLAGS"
7103 fi
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7105 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7106 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7107 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7108 fi
7109
7110 fi
7111 ac_ext=cpp
7112 ac_cpp='$CXXCPP $CPPFLAGS'
7113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7116
7117
7118 ac_ext=cpp
7119 ac_cpp='$CXXCPP $CPPFLAGS'
7120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7123
7124 # Check whether --enable-werror-always was given.
7125 if test "${enable_werror_always+set}" = set; then :
7126 enableval=$enable_werror_always;
7127 else
7128 enable_werror_always=no
7129 fi
7130
7131 if test $enable_werror_always = yes; then :
7132 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7133 fi
7134
7135 ac_ext=cpp
7136 ac_cpp='$CXXCPP $CPPFLAGS'
7137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7140
7141
7142
7143 # The above macros do nothing if the compiler is not GCC. However, the
7144 # Makefile has more goo to add other flags, so these variables are used
7145 # to enable warnings only for GCC.
7146 warn_cflags=
7147 warn_cxxflags=
7148 if test "x$GCC" = "xyes"; then
7149 warn_cflags='$(GCC_WARN_CFLAGS)'
7150 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7151 fi
7152
7153
7154
7155 # Disable exceptions and RTTI if building with g++
7156 ac_ext=c
7157 ac_cpp='$CPP $CPPFLAGS'
7158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7161
7162 noexception_flags=
7163 save_CFLAGS="$CFLAGS"
7164 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7165 # Do the check with the no- prefix removed since gcc silently
7166 # accepts any -Wno-* option on purpose
7167 case $real_option in
7168 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7169 *) option=$real_option ;;
7170 esac
7171 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7172
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7174 $as_echo_n "checking whether $CC supports $option... " >&6; }
7175 if eval \${$as_acx_Woption+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 CFLAGS="$option"
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7181
7182 int
7183 main ()
7184 {
7185
7186 ;
7187 return 0;
7188 }
7189 _ACEOF
7190 if ac_fn_c_try_compile "$LINENO"; then :
7191 eval "$as_acx_Woption=yes"
7192 else
7193 eval "$as_acx_Woption=no"
7194 fi
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196
7197 fi
7198 eval ac_res=\$$as_acx_Woption
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7200 $as_echo "$ac_res" >&6; }
7201 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7202 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7203 fi
7204 done
7205 CFLAGS="$save_CFLAGS"
7206 ac_ext=cpp
7207 ac_cpp='$CXXCPP $CPPFLAGS'
7208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7211
7212
7213
7214 # Enable expensive internal checks
7215 is_release=
7216 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7217 is_release=yes
7218 fi
7219
7220 # Check whether --enable-checking was given.
7221 if test "${enable_checking+set}" = set; then :
7222 enableval=$enable_checking; ac_checking_flags="${enableval}"
7223 else
7224
7225 # Determine the default checks.
7226 if test x$is_release = x ; then
7227 ac_checking_flags=yes,extra
7228 else
7229 ac_checking_flags=release
7230 fi
7231 fi
7232
7233 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7234 for check in release $ac_checking_flags
7235 do
7236 case $check in
7237 # these set all the flags to specific states
7238 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7239 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7240 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7241 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7242 ac_tree_checking=1 ; ac_valgrind_checking= ;
7243 ac_types_checking=1 ;;
7244 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7245 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7246 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7247 ac_rtlflag_checking= ; ac_runtime_checking= ;
7248 ac_tree_checking= ; ac_valgrind_checking= ;
7249 ac_types_checking= ;;
7250 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7251 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7252 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7253 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7254 ac_tree_checking=1 ; ac_valgrind_checking= ;
7255 ac_types_checking=1 ;;
7256 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7257 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7258 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7259 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7260 ac_tree_checking= ; ac_valgrind_checking= ;
7261 ac_types_checking= ;;
7262 # these enable particular checks
7263 assert) ac_assert_checking=1 ;;
7264 df) ac_df_checking=1 ;;
7265 extra) ac_extra_checking=1 ;;
7266 fold) ac_fold_checking=1 ;;
7267 gc) ac_gc_checking=1 ;;
7268 gcac) ac_gc_always_collect=1 ;;
7269 gimple) ac_gimple_checking=1 ;;
7270 misc) ac_checking=1 ;;
7271 rtl) ac_rtl_checking=1 ;;
7272 rtlflag) ac_rtlflag_checking=1 ;;
7273 runtime) ac_runtime_checking=1 ;;
7274 tree) ac_tree_checking=1 ;;
7275 types) ac_types_checking=1 ;;
7276 valgrind) ac_valgrind_checking=1 ;;
7277 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7278 esac
7279 done
7280 IFS="$ac_save_IFS"
7281
7282 nocommon_flag=""
7283 if test x$ac_checking != x ; then
7284
7285 $as_echo "#define CHECKING_P 1" >>confdefs.h
7286
7287 nocommon_flag=-fno-common
7288 else
7289 $as_echo "#define CHECKING_P 0" >>confdefs.h
7290
7291 fi
7292
7293 if test x$ac_extra_checking != x ; then
7294
7295 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7296
7297 else
7298 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7299
7300 fi
7301 if test x$ac_df_checking != x ; then
7302
7303 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7304
7305 fi
7306 if test x$ac_assert_checking != x ; then
7307
7308 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7309
7310 fi
7311 if test x$ac_gimple_checking != x ; then
7312
7313 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7314
7315 fi
7316
7317 if test x$ac_runtime_checking != x ; then
7318
7319 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7320
7321 fi
7322 if test x$ac_tree_checking != x ; then
7323
7324 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7325
7326 TREECHECKING=yes
7327 fi
7328 if test x$ac_types_checking != x ; then
7329
7330 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7331
7332 fi
7333
7334 if test x$ac_rtl_checking != x ; then
7335
7336 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7337
7338 fi
7339 if test x$ac_rtlflag_checking != x ; then
7340
7341 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7342
7343 fi
7344 if test x$ac_gc_checking != x ; then
7345
7346 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7347
7348 fi
7349 if test x$ac_gc_always_collect != x ; then
7350
7351 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7352
7353 fi
7354 if test x$ac_fold_checking != x ; then
7355
7356 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7357
7358 fi
7359 valgrind_path_defines=
7360 valgrind_command=
7361
7362 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7363 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7364 have_valgrind_h=yes
7365 else
7366 have_valgrind_h=no
7367 fi
7368
7369
7370
7371 # It is certainly possible that there's valgrind but no valgrind.h.
7372 # GCC relies on making annotations so we must have both.
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7374 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7377 #include <valgrind/memcheck.h>
7378 #ifndef VALGRIND_DISCARD
7379 #error VALGRIND_DISCARD not defined
7380 #endif
7381 _ACEOF
7382 if ac_fn_cxx_try_cpp "$LINENO"; then :
7383 gcc_cv_header_valgrind_memcheck_h=yes
7384 else
7385 gcc_cv_header_valgrind_memcheck_h=no
7386 fi
7387 rm -f conftest.err conftest.i conftest.$ac_ext
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7389 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7391 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7394 #include <memcheck.h>
7395 #ifndef VALGRIND_DISCARD
7396 #error VALGRIND_DISCARD not defined
7397 #endif
7398 _ACEOF
7399 if ac_fn_cxx_try_cpp "$LINENO"; then :
7400 gcc_cv_header_memcheck_h=yes
7401 else
7402 gcc_cv_header_memcheck_h=no
7403 fi
7404 rm -f conftest.err conftest.i conftest.$ac_ext
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7406 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7407 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7408
7409 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7410
7411 fi
7412 if test $gcc_cv_header_memcheck_h = yes; then
7413
7414 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7415
7416 fi
7417
7418 if test x$ac_valgrind_checking != x ; then
7419
7420 # Prepare PATH_SEPARATOR.
7421 # The user is always right.
7422 if test "${PATH_SEPARATOR+set}" != set; then
7423 echo "#! /bin/sh" >conf$$.sh
7424 echo "exit 0" >>conf$$.sh
7425 chmod +x conf$$.sh
7426 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7427 PATH_SEPARATOR=';'
7428 else
7429 PATH_SEPARATOR=:
7430 fi
7431 rm -f conf$$.sh
7432 fi
7433
7434 # Find out how to test for executable files. Don't use a zero-byte file,
7435 # as systems may use methods other than mode bits to determine executability.
7436 cat >conf$$.file <<_ASEOF
7437 #! /bin/sh
7438 exit 0
7439 _ASEOF
7440 chmod +x conf$$.file
7441 if test -x conf$$.file >/dev/null 2>&1; then
7442 ac_executable_p="test -x"
7443 else
7444 ac_executable_p="test -f"
7445 fi
7446 rm -f conf$$.file
7447
7448 # Extract the first word of "valgrind", so it can be a program name with args.
7449 set dummy valgrind; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if ${ac_cv_path_valgrind_path+:} false; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 case "$valgrind_path" in
7456 [\\/]* | ?:[\\/]*)
7457 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7458 ;;
7459 *)
7460 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7461 for ac_dir in $PATH; do
7462 IFS="$ac_save_IFS"
7463 test -z "$ac_dir" && ac_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7466 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7467 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7468 break 2
7469 fi
7470 fi
7471 done
7472 done
7473 IFS="$ac_save_IFS"
7474 ;;
7475 esac
7476 fi
7477 valgrind_path="$ac_cv_path_valgrind_path"
7478 if test -n "$valgrind_path"; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7480 $as_echo "$valgrind_path" >&6; }
7481 else
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7484 fi
7485
7486 if test "x$valgrind_path" = "x" \
7487 || (test $have_valgrind_h = no \
7488 && test $gcc_cv_header_memcheck_h = no \
7489 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7490 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7491 fi
7492 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7493 valgrind_command="$valgrind_path -q"
7494
7495 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7496
7497 fi
7498
7499
7500
7501 # Enable code coverage collection
7502 # Check whether --enable-coverage was given.
7503 if test "${enable_coverage+set}" = set; then :
7504 enableval=$enable_coverage; case "${enableval}" in
7505 yes|noopt)
7506 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7507 ;;
7508 opt)
7509 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7510 ;;
7511 no)
7512 # a.k.a. --disable-coverage
7513 coverage_flags=""
7514 ;;
7515 *)
7516 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7517 ;;
7518 esac
7519 else
7520 coverage_flags=""
7521 fi
7522
7523
7524
7525 # Check whether --enable-gather-detailed-mem-stats was given.
7526 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7527 enableval=$enable_gather_detailed_mem_stats;
7528 else
7529 enable_gather_detailed_mem_stats=no
7530 fi
7531
7532 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7533
7534 cat >>confdefs.h <<_ACEOF
7535 #define GATHER_STATISTICS $gather_stats
7536 _ACEOF
7537
7538
7539 # Check whether --enable-valgrind-annotations was given.
7540 if test "${enable_valgrind_annotations+set}" = set; then :
7541 enableval=$enable_valgrind_annotations;
7542 else
7543 enable_valgrind_annotations=no
7544 fi
7545
7546 if test x$enable_valgrind_annotations != xno \
7547 || test x$ac_valgrind_checking != x; then
7548 if (test $have_valgrind_h = no \
7549 && test $gcc_cv_header_memcheck_h = no \
7550 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7551 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7552 fi
7553
7554 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7555
7556 fi
7557
7558 # -------------------------------
7559 # Miscenalleous configure options
7560 # -------------------------------
7561
7562 # With stabs
7563
7564 # Check whether --with-stabs was given.
7565 if test "${with_stabs+set}" = set; then :
7566 withval=$with_stabs; stabs="$with_stabs"
7567 else
7568 stabs=no
7569 fi
7570
7571
7572 # Determine whether or not multilibs are enabled.
7573 # Check whether --enable-multilib was given.
7574 if test "${enable_multilib+set}" = set; then :
7575 enableval=$enable_multilib;
7576 else
7577 enable_multilib=yes
7578 fi
7579
7580
7581
7582 # Determine whether or not multiarch is enabled.
7583 # Check whether --enable-multiarch was given.
7584 if test "${enable_multiarch+set}" = set; then :
7585 enableval=$enable_multiarch; case "${enableval}" in
7586 yes|no|auto) enable_multiarch=$enableval;;
7587 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7588 esac
7589 else
7590 enable_multiarch=auto
7591 fi
7592
7593 if test x${enable_multiarch} = xauto; then
7594 if test x${with_native_system_header_dir} != x; then
7595 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7596 enable_multiarch=no
7597 fi
7598 if test x$host != x$target && test "x$with_sysroot" = x; then
7599 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7600 enable_multiarch=no
7601 fi
7602 fi
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7604 $as_echo_n "checking for multiarch configuration... " >&6; }
7605
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7607 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7608
7609 # needed for setting the multiarch name for soft-float/hard-float ABIs
7610
7611
7612
7613 # default stack clash protection guard size as power of twos in bytes.
7614 # Please keep these in sync with params.def.
7615 stk_clash_min=12
7616 stk_clash_max=30
7617
7618 # Keep the default value when the option is not used to 0, this allows us to
7619 # distinguish between the cases where the user specifially set a value via
7620 # configure and when the normal default value is used.
7621
7622 # Check whether --with-stack-clash-protection-guard-size was given.
7623 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7624 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7625 else
7626 DEFAULT_STK_CLASH_GUARD_SIZE=0
7627 fi
7628
7629 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7630 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7631 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7632 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
7633 fi
7634
7635
7636 cat >>confdefs.h <<_ACEOF
7637 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7638 _ACEOF
7639
7640
7641 # Enable __cxa_atexit for C++.
7642 # Check whether --enable-__cxa_atexit was given.
7643 if test "${enable___cxa_atexit+set}" = set; then :
7644 enableval=$enable___cxa_atexit;
7645 fi
7646
7647
7648 # Enable C extension for decimal float if target supports it.
7649
7650 # Check whether --enable-decimal-float was given.
7651 if test "${enable_decimal_float+set}" = set; then :
7652 enableval=$enable_decimal_float;
7653 case $enable_decimal_float in
7654 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7655 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7656 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7657 esac
7658
7659 else
7660
7661 case $target in
7662 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7663 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7664 i?86*-*-mingw* | x86_64*-*-mingw* | \
7665 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7666 enable_decimal_float=yes
7667 ;;
7668 *)
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7670 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7671 enable_decimal_float=no
7672 ;;
7673 esac
7674
7675 fi
7676
7677
7678 # x86's use BID format instead of DPD
7679 case x$enable_decimal_float in
7680 xyes)
7681 case $target in
7682 i?86*-*-* | x86_64*-*-*)
7683 enable_decimal_float=bid
7684 ;;
7685 *)
7686 enable_decimal_float=dpd
7687 ;;
7688 esac
7689 default_decimal_float=$enable_decimal_float
7690 ;;
7691 xno)
7692 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7693 # dependency on libdecnumber.
7694 default_decimal_float=dpd
7695 ;;
7696 esac
7697
7698
7699
7700
7701 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7702
7703 cat >>confdefs.h <<_ACEOF
7704 #define ENABLE_DECIMAL_FLOAT $dfp
7705 _ACEOF
7706
7707
7708 # Use default_decimal_float for dependency.
7709 enable_decimal_float=$default_decimal_float
7710
7711 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7712
7713 cat >>confdefs.h <<_ACEOF
7714 #define ENABLE_DECIMAL_BID_FORMAT $bid
7715 _ACEOF
7716
7717
7718 # Enable C extension for fixed-point arithmetic.
7719 # Check whether --enable-fixed-point was given.
7720 if test "${enable_fixed_point+set}" = set; then :
7721 enableval=$enable_fixed_point;
7722 else
7723
7724 case $target in
7725 arm*)
7726 enable_fixed_point=yes
7727 ;;
7728
7729 mips*-*-*)
7730 enable_fixed_point=yes
7731 ;;
7732 *)
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7734 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7735 enable_fixed_point=no
7736 ;;
7737 esac
7738
7739 fi
7740
7741
7742
7743 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7744
7745 cat >>confdefs.h <<_ACEOF
7746 #define ENABLE_FIXED_POINT $fixedpoint
7747 _ACEOF
7748
7749
7750 # Enable threads
7751 # Pass with no value to take the default
7752 # Pass with a value to specify a thread package
7753 # Check whether --enable-threads was given.
7754 if test "${enable_threads+set}" = set; then :
7755 enableval=$enable_threads;
7756 else
7757 enable_threads=''
7758 fi
7759
7760
7761 # Check whether --enable-tls was given.
7762 if test "${enable_tls+set}" = set; then :
7763 enableval=$enable_tls;
7764 case $enable_tls in
7765 yes | no) ;;
7766 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7767 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7768 esac
7769
7770 else
7771 enable_tls=''
7772 fi
7773
7774
7775 # Check whether --enable-vtable-verify was given.
7776 if test "${enable_vtable_verify+set}" = set; then :
7777 enableval=$enable_vtable_verify;
7778 else
7779 enable_vtable_verify=no
7780 fi
7781
7782 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7783
7784 cat >>confdefs.h <<_ACEOF
7785 #define ENABLE_VTABLE_VERIFY $vtable_verify
7786 _ACEOF
7787
7788
7789 # Check whether --enable-analyzer was given.
7790 if test "${enable_analyzer+set}" = set; then :
7791 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
7792 analyzer=0
7793 else
7794 analyzer=1
7795 fi
7796 else
7797 analyzer=1
7798 fi
7799
7800
7801 cat >>confdefs.h <<_ACEOF
7802 #define ENABLE_ANALYZER $analyzer
7803 _ACEOF
7804
7805
7806 # Check whether --enable-objc-gc was given.
7807 if test "${enable_objc_gc+set}" = set; then :
7808 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7809 objc_boehm_gc=''
7810 else
7811 objc_boehm_gc=1
7812 fi
7813 else
7814 objc_boehm_gc=''
7815 fi
7816
7817
7818
7819 # Check whether --with-dwarf2 was given.
7820 if test "${with_dwarf2+set}" = set; then :
7821 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7822 else
7823 dwarf2=no
7824 fi
7825
7826
7827 # Check whether --enable-shared was given.
7828 if test "${enable_shared+set}" = set; then :
7829 enableval=$enable_shared;
7830 case $enable_shared in
7831 yes | no) ;;
7832 *)
7833 enable_shared=no
7834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7835 for pkg in $enableval; do
7836 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7837 enable_shared=yes
7838 fi
7839 done
7840 IFS="$ac_save_ifs"
7841 ;;
7842 esac
7843
7844 else
7845 enable_shared=yes
7846 fi
7847
7848
7849
7850 # Check whether --enable-gcov was given.
7851 if test "${enable_gcov+set}" = set; then :
7852 enableval=$enable_gcov;
7853 else
7854 enable_gcov=yes
7855 fi
7856
7857
7858
7859
7860 # Check whether --with-specs was given.
7861 if test "${with_specs+set}" = set; then :
7862 withval=$with_specs; CONFIGURE_SPECS=$withval
7863 else
7864 CONFIGURE_SPECS=
7865
7866 fi
7867
7868
7869
7870
7871
7872 # Check whether --with-pkgversion was given.
7873 if test "${with_pkgversion+set}" = set; then :
7874 withval=$with_pkgversion; case "$withval" in
7875 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7876 no) PKGVERSION= ;;
7877 *) PKGVERSION="($withval) " ;;
7878 esac
7879 else
7880 PKGVERSION="(GCC) "
7881
7882 fi
7883
7884
7885
7886
7887
7888 # Check whether --with-bugurl was given.
7889 if test "${with_bugurl+set}" = set; then :
7890 withval=$with_bugurl; case "$withval" in
7891 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7892 no) BUGURL=
7893 ;;
7894 *) BUGURL="$withval"
7895 ;;
7896 esac
7897 else
7898 BUGURL="https://gcc.gnu.org/bugs/"
7899
7900 fi
7901
7902 case ${BUGURL} in
7903 "")
7904 REPORT_BUGS_TO=
7905 REPORT_BUGS_TEXI=
7906 ;;
7907 *)
7908 REPORT_BUGS_TO="<$BUGURL>"
7909 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7910 ;;
7911 esac;
7912
7913
7914
7915
7916 # Allow overriding the default URL for documentation
7917
7918 # Check whether --with-documentation-root-url was given.
7919 if test "${with_documentation_root_url+set}" = set; then :
7920 withval=$with_documentation_root_url; case "$withval" in
7921 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7922 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7923 */) DOCUMENTATION_ROOT_URL="$withval" ;;
7924 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
7925 esac
7926 else
7927 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
7928
7929 fi
7930
7931
7932 cat >>confdefs.h <<_ACEOF
7933 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
7934 _ACEOF
7935
7936
7937 # Allow overriding the default URL for GCC changes
7938
7939 # Check whether --with-changes-root-url was given.
7940 if test "${with_changes_root_url+set}" = set; then :
7941 withval=$with_changes_root_url; case "$withval" in
7942 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7943 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
7944 */) CHANGES_ROOT_URL="$withval" ;;
7945 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
7946 esac
7947 else
7948 CHANGES_ROOT_URL="https://gcc.gnu.org/"
7949
7950 fi
7951
7952
7953 cat >>confdefs.h <<_ACEOF
7954 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
7955 _ACEOF
7956
7957
7958 # Sanity check enable_languages in case someone does not run the toplevel
7959 # configure # script.
7960 # Check whether --enable-languages was given.
7961 if test "${enable_languages+set}" = set; then :
7962 enableval=$enable_languages; case ,${enable_languages}, in
7963 ,,|,yes,)
7964 # go safe -- we cannot be much sure without the toplevel
7965 # configure's
7966 # analysis of which target libs are present and usable
7967 enable_languages=c
7968 ;;
7969 *,all,*)
7970 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7971 ;;
7972 *,c,*)
7973 ;;
7974 *)
7975 enable_languages=c,${enable_languages}
7976 ;;
7977 esac
7978 else
7979 enable_languages=c
7980 fi
7981
7982
7983 # If top-level libada has been disabled, then wire in install-gnatlib
7984 # invocation with `make install', so that one can build and install
7985 # the library manually with `make -C gcc all gnatlib gnattools install'.
7986 if test x"$enable_libada" = xno; then
7987 gnat_install_lib=gnat-install-lib
7988 else
7989 gnat_install_lib=
7990 fi
7991
7992
7993 if test x"$enable_as_accelerator_for" != x; then
7994
7995 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7996
7997 enable_as_accelerator=yes
7998 case "${target}" in
7999 *-intelmicemul-*)
8000 # In this case we expect offload compiler to be built as native, so we
8001 # need to rename the driver to avoid clashes with host's drivers.
8002 program_transform_name="s&^&${target}-&" ;;
8003 esac
8004 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8005 program_transform_name=`echo $program_transform_name | sed $sedscript`
8006 accel_dir_suffix=/accel/${target_noncanonical}
8007 real_target_noncanonical=${enable_as_accelerator_for}
8008 fi
8009
8010
8011
8012
8013 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8014 tgt=`echo $tgt | sed 's/=.*//'`
8015
8016 enable_offloading=1
8017 case "$tgt" in
8018 *-intelmic-* | *-intelmicemul-*)
8019 omp_device_property=omp-device-properties-i386
8020 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
8021 ;;
8022 amdgcn*)
8023 omp_device_property=omp-device-properties-gcn
8024 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8025 ;;
8026 nvptx*)
8027 omp_device_property=omp-device-properties-nvptx
8028 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8029 ;;
8030 *)
8031 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8032 ;;
8033 esac
8034 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8035 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8036
8037 if test x"$offload_targets" = x; then
8038 offload_targets=$tgt
8039 else
8040 offload_targets="$offload_targets,$tgt"
8041 fi
8042 done
8043
8044
8045
8046
8047 cat >>confdefs.h <<_ACEOF
8048 #define OFFLOAD_TARGETS "$offload_targets"
8049 _ACEOF
8050
8051 if test x"$enable_offloading" != x; then
8052
8053 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8054
8055 else
8056
8057 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8058
8059 fi
8060
8061 if test "x$enable_offload_defaulted" = xyes; then
8062
8063 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8064
8065 fi
8066
8067
8068 # Check whether --with-multilib-list was given.
8069 if test "${with_multilib_list+set}" = set; then :
8070 withval=$with_multilib_list; :
8071 else
8072 with_multilib_list=default
8073 fi
8074
8075
8076
8077 # Check whether --with-multilib-generator was given.
8078 if test "${with_multilib_generator+set}" = set; then :
8079 withval=$with_multilib_generator; :
8080 else
8081 with_multilib_generator=default
8082 fi
8083
8084
8085 # -------------------------
8086 # Checks for other programs
8087 # -------------------------
8088
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8090 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8091 set x ${MAKE-make}
8092 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8093 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096 cat >conftest.make <<\_ACEOF
8097 SHELL = /bin/sh
8098 all:
8099 @echo '@@@%%%=$(MAKE)=@@@%%%'
8100 _ACEOF
8101 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8102 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8103 *@@@%%%=?*=@@@%%%*)
8104 eval ac_cv_prog_make_${ac_make}_set=yes;;
8105 *)
8106 eval ac_cv_prog_make_${ac_make}_set=no;;
8107 esac
8108 rm -f conftest.make
8109 fi
8110 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8112 $as_echo "yes" >&6; }
8113 SET_MAKE=
8114 else
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8117 SET_MAKE="MAKE=${MAKE-make}"
8118 fi
8119
8120
8121 # Find some useful tools
8122 for ac_prog in gawk mawk nawk awk
8123 do
8124 # Extract the first word of "$ac_prog", so it can be a program name with args.
8125 set dummy $ac_prog; ac_word=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if ${ac_cv_prog_AWK+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 if test -n "$AWK"; then
8132 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8133 else
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8136 do
8137 IFS=$as_save_IFS
8138 test -z "$as_dir" && as_dir=.
8139 for ac_exec_ext in '' $ac_executable_extensions; do
8140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8141 ac_cv_prog_AWK="$ac_prog"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143 break 2
8144 fi
8145 done
8146 done
8147 IFS=$as_save_IFS
8148
8149 fi
8150 fi
8151 AWK=$ac_cv_prog_AWK
8152 if test -n "$AWK"; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8154 $as_echo "$AWK" >&6; }
8155 else
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8158 fi
8159
8160
8161 test -n "$AWK" && break
8162 done
8163
8164 # We need awk to create options.c and options.h.
8165 # Bail out if it's missing.
8166 case ${AWK} in
8167 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8168 esac
8169
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8171 $as_echo_n "checking whether ln -s works... " >&6; }
8172 if ${gcc_cv_prog_LN_S+:} false; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 rm -f conftestdata_t
8176 echo >conftestdata_f
8177 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8178 then
8179 gcc_cv_prog_LN_S="ln -s"
8180 else
8181 if ln conftestdata_f conftestdata_t 2>/dev/null
8182 then
8183 gcc_cv_prog_LN_S=ln
8184 else
8185 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8186 then
8187 gcc_cv_prog_LN_S="cp -p"
8188 else
8189 gcc_cv_prog_LN_S=cp
8190 fi
8191 fi
8192 fi
8193 rm -f conftestdata_f conftestdata_t
8194
8195 fi
8196 LN_S="$gcc_cv_prog_LN_S"
8197 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8199 $as_echo "yes" >&6; }
8200 else
8201 if test "$gcc_cv_prog_LN_S" = "ln"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8203 $as_echo "no, using ln" >&6; }
8204 else
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8206 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8207 fi
8208 fi
8209
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8211 $as_echo_n "checking whether ln works... " >&6; }
8212 if ${acx_cv_prog_LN+:} false; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 rm -f conftestdata_t
8216 echo >conftestdata_f
8217 if ln conftestdata_f conftestdata_t 2>/dev/null
8218 then
8219 acx_cv_prog_LN=ln
8220 else
8221 acx_cv_prog_LN=no
8222 fi
8223 rm -f conftestdata_f conftestdata_t
8224
8225 fi
8226 if test $acx_cv_prog_LN = no; then
8227 LN="$LN_S"
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8229 $as_echo "no, using $LN" >&6; }
8230 else
8231 LN="$acx_cv_prog_LN"
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8233 $as_echo "yes" >&6; }
8234 fi
8235
8236 if test -n "$ac_tool_prefix"; then
8237 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8238 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240 $as_echo_n "checking for $ac_word... " >&6; }
8241 if ${ac_cv_prog_RANLIB+:} false; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8244 if test -n "$RANLIB"; then
8245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8246 else
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 for as_dir in $PATH
8249 do
8250 IFS=$as_save_IFS
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8254 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8256 break 2
8257 fi
8258 done
8259 done
8260 IFS=$as_save_IFS
8261
8262 fi
8263 fi
8264 RANLIB=$ac_cv_prog_RANLIB
8265 if test -n "$RANLIB"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8267 $as_echo "$RANLIB" >&6; }
8268 else
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8271 fi
8272
8273
8274 fi
8275 if test -z "$ac_cv_prog_RANLIB"; then
8276 ac_ct_RANLIB=$RANLIB
8277 # Extract the first word of "ranlib", so it can be a program name with args.
8278 set dummy ranlib; ac_word=$2
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 $as_echo_n "checking for $ac_word... " >&6; }
8281 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8284 if test -n "$ac_ct_RANLIB"; then
8285 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8286 else
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 for as_dir in $PATH
8289 do
8290 IFS=$as_save_IFS
8291 test -z "$as_dir" && as_dir=.
8292 for ac_exec_ext in '' $ac_executable_extensions; do
8293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8294 ac_cv_prog_ac_ct_RANLIB="ranlib"
8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8296 break 2
8297 fi
8298 done
8299 done
8300 IFS=$as_save_IFS
8301
8302 fi
8303 fi
8304 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8305 if test -n "$ac_ct_RANLIB"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8307 $as_echo "$ac_ct_RANLIB" >&6; }
8308 else
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8311 fi
8312
8313 if test "x$ac_ct_RANLIB" = x; then
8314 RANLIB=":"
8315 else
8316 case $cross_compiling:$ac_tool_warned in
8317 yes:)
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8320 ac_tool_warned=yes ;;
8321 esac
8322 RANLIB=$ac_ct_RANLIB
8323 fi
8324 else
8325 RANLIB="$ac_cv_prog_RANLIB"
8326 fi
8327
8328 ranlib_flags=""
8329
8330
8331 # Find a good install program. We prefer a C program (faster),
8332 # so one script is as good as another. But avoid the broken or
8333 # incompatible versions:
8334 # SysV /etc/install, /usr/sbin/install
8335 # SunOS /usr/etc/install
8336 # IRIX /sbin/install
8337 # AIX /bin/install
8338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8340 # ./install, which can be erroneously created by make from ./install.sh.
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8342 $as_echo_n "checking for a BSD compatible install... " >&6; }
8343 if test -z "$INSTALL"; then
8344 if ${ac_cv_path_install+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8348 for ac_dir in $PATH; do
8349 # Account for people who put trailing slashes in PATH elements.
8350 case "$ac_dir/" in
8351 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8352 *)
8353 # OSF1 and SCO ODT 3.0 have their own names for install.
8354 for ac_prog in ginstall scoinst install; do
8355 if test -f $ac_dir/$ac_prog; then
8356 if test $ac_prog = install &&
8357 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8358 # AIX install. It has an incompatible calling convention.
8359 # OSF/1 installbsd also uses dspmsg, but is usable.
8360 :
8361 else
8362 ac_cv_path_install="$ac_dir/$ac_prog -c"
8363 break 2
8364 fi
8365 fi
8366 done
8367 ;;
8368 esac
8369 done
8370 IFS="$ac_save_IFS"
8371
8372 fi
8373 if test "${ac_cv_path_install+set}" = set; then
8374 INSTALL="$ac_cv_path_install"
8375 else
8376 # As a last resort, use the slow shell script. We don't cache a
8377 # path for INSTALL within a source directory, because that will
8378 # break other packages using the cache if that directory is
8379 # removed, or if the path is relative.
8380 INSTALL="$ac_install_sh"
8381 fi
8382 fi
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8384 $as_echo "$INSTALL" >&6; }
8385
8386 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8387 # It thinks the first close brace ends the variable substitution.
8388 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8389
8390 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8391
8392
8393 # See if cmp has --ignore-initial.
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8395 $as_echo_n "checking for cmp's capabilities... " >&6; }
8396 if ${gcc_cv_prog_cmp_skip+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 echo abfoo >t1
8400 echo cdfoo >t2
8401 gcc_cv_prog_cmp_skip=slowcompare
8402 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8403 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8404 :
8405 else
8406 gcc_cv_prog_cmp_skip=gnucompare
8407 fi
8408 fi
8409 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8410 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8411 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8412 :
8413 else
8414 gcc_cv_prog_cmp_skip=fastcompare
8415 fi
8416 fi
8417 fi
8418 rm t1 t2
8419
8420 fi
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8422 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8423 make_compare_target=$gcc_cv_prog_cmp_skip
8424
8425
8426
8427 # See if we have the mktemp command.
8428 # Extract the first word of "mktemp", so it can be a program name with args.
8429 set dummy mktemp; ac_word=$2
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431 $as_echo_n "checking for $ac_word... " >&6; }
8432 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 if test -n "$have_mktemp_command"; then
8436 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8437 else
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 for as_dir in $PATH
8440 do
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8445 ac_cv_prog_have_mktemp_command="yes"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 break 2
8448 fi
8449 done
8450 done
8451 IFS=$as_save_IFS
8452
8453 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8454 fi
8455 fi
8456 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8457 if test -n "$have_mktemp_command"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8459 $as_echo "$have_mktemp_command" >&6; }
8460 else
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 $as_echo "no" >&6; }
8463 fi
8464
8465
8466
8467 # See if makeinfo has been installed and is modern enough
8468 # that we can use it.
8469
8470 # Extract the first word of "makeinfo", so it can be a program name with args.
8471 set dummy makeinfo; ac_word=$2
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8473 $as_echo_n "checking for $ac_word... " >&6; }
8474 if ${ac_cv_prog_MAKEINFO+:} false; then :
8475 $as_echo_n "(cached) " >&6
8476 else
8477 if test -n "$MAKEINFO"; then
8478 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8479 else
8480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481 for as_dir in $PATH
8482 do
8483 IFS=$as_save_IFS
8484 test -z "$as_dir" && as_dir=.
8485 for ac_exec_ext in '' $ac_executable_extensions; do
8486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8487 ac_cv_prog_MAKEINFO="makeinfo"
8488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8489 break 2
8490 fi
8491 done
8492 done
8493 IFS=$as_save_IFS
8494
8495 fi
8496 fi
8497 MAKEINFO=$ac_cv_prog_MAKEINFO
8498 if test -n "$MAKEINFO"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8500 $as_echo "$MAKEINFO" >&6; }
8501 else
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 $as_echo "no" >&6; }
8504 fi
8505
8506
8507 if test -n "$MAKEINFO"; then
8508 # Found it, now check the version.
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8510 $as_echo_n "checking for modern makeinfo... " >&6; }
8511 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8515 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8516
8517 case $ac_prog_version in
8518 '') gcc_cv_prog_makeinfo_modern=no;;
8519 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8520 *) gcc_cv_prog_makeinfo_modern=no;;
8521 esac
8522
8523 fi
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8525 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8526 else
8527 gcc_cv_prog_makeinfo_modern=no
8528 fi
8529 if test $gcc_cv_prog_makeinfo_modern = no; then
8530 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8531 fi
8532
8533 if test $gcc_cv_prog_makeinfo_modern = no; then
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8535 *** Makeinfo is missing or too old.
8536 *** Info documentation will not be built." >&5
8537 $as_echo "$as_me: WARNING:
8538 *** Makeinfo is missing or too old.
8539 *** Info documentation will not be built." >&2;}
8540 BUILD_INFO=
8541 else
8542 BUILD_INFO=info
8543 fi
8544
8545
8546 # Is pod2man recent enough to regenerate manpages?
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8548 $as_echo_n "checking for recent Pod::Man... " >&6; }
8549 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8551 $as_echo "yes" >&6; }
8552 GENERATED_MANPAGES=generated-manpages
8553 else
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8555 $as_echo "no" >&6; }
8556 GENERATED_MANPAGES=
8557 fi
8558
8559
8560 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8561
8562 # How about lex?
8563 for ac_prog in flex
8564 do
8565 # Extract the first word of "$ac_prog", so it can be a program name with args.
8566 set dummy $ac_prog; ac_word=$2
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8568 $as_echo_n "checking for $ac_word... " >&6; }
8569 if ${ac_cv_prog_FLEX+:} false; then :
8570 $as_echo_n "(cached) " >&6
8571 else
8572 if test -n "$FLEX"; then
8573 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8574 else
8575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576 for as_dir in $PATH
8577 do
8578 IFS=$as_save_IFS
8579 test -z "$as_dir" && as_dir=.
8580 for ac_exec_ext in '' $ac_executable_extensions; do
8581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8582 ac_cv_prog_FLEX="$ac_prog"
8583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8584 break 2
8585 fi
8586 done
8587 done
8588 IFS=$as_save_IFS
8589
8590 fi
8591 fi
8592 FLEX=$ac_cv_prog_FLEX
8593 if test -n "$FLEX"; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8595 $as_echo "$FLEX" >&6; }
8596 else
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8598 $as_echo "no" >&6; }
8599 fi
8600
8601
8602 test -n "$FLEX" && break
8603 done
8604 test -n "$FLEX" || FLEX="$MISSING flex"
8605
8606
8607 # Bison?
8608 for ac_prog in bison
8609 do
8610 # Extract the first word of "$ac_prog", so it can be a program name with args.
8611 set dummy $ac_prog; ac_word=$2
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if ${ac_cv_prog_BISON+:} false; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 if test -n "$BISON"; then
8618 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8619 else
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in $PATH
8622 do
8623 IFS=$as_save_IFS
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8627 ac_cv_prog_BISON="$ac_prog"
8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629 break 2
8630 fi
8631 done
8632 done
8633 IFS=$as_save_IFS
8634
8635 fi
8636 fi
8637 BISON=$ac_cv_prog_BISON
8638 if test -n "$BISON"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8640 $as_echo "$BISON" >&6; }
8641 else
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8644 fi
8645
8646
8647 test -n "$BISON" && break
8648 done
8649 test -n "$BISON" || BISON="$MISSING bison"
8650
8651
8652 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8653 # check for build == host before using them.
8654
8655 # NM
8656 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8657 && test -d ../binutils ; then
8658 NM='${objdir}/../binutils/nm-new'
8659 else
8660 # Extract the first word of "nm", so it can be a program name with args.
8661 set dummy nm; ac_word=$2
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8663 $as_echo_n "checking for $ac_word... " >&6; }
8664 if ${ac_cv_prog_NM+:} false; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 if test -n "$NM"; then
8668 ac_cv_prog_NM="$NM" # Let the user override the test.
8669 else
8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671 for as_dir in $PATH
8672 do
8673 IFS=$as_save_IFS
8674 test -z "$as_dir" && as_dir=.
8675 for ac_exec_ext in '' $ac_executable_extensions; do
8676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8677 ac_cv_prog_NM="nm"
8678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8679 break 2
8680 fi
8681 done
8682 done
8683 IFS=$as_save_IFS
8684
8685 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8686 fi
8687 fi
8688 NM=$ac_cv_prog_NM
8689 if test -n "$NM"; then
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8691 $as_echo "$NM" >&6; }
8692 else
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694 $as_echo "no" >&6; }
8695 fi
8696
8697
8698 fi
8699
8700 # AR
8701 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8702 && test -d ../binutils ; then
8703 AR='${objdir}/../binutils/ar'
8704 else
8705 # Extract the first word of "ar", so it can be a program name with args.
8706 set dummy ar; ac_word=$2
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708 $as_echo_n "checking for $ac_word... " >&6; }
8709 if ${ac_cv_prog_AR+:} false; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 if test -n "$AR"; then
8713 ac_cv_prog_AR="$AR" # Let the user override the test.
8714 else
8715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716 for as_dir in $PATH
8717 do
8718 IFS=$as_save_IFS
8719 test -z "$as_dir" && as_dir=.
8720 for ac_exec_ext in '' $ac_executable_extensions; do
8721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8722 ac_cv_prog_AR="ar"
8723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8724 break 2
8725 fi
8726 done
8727 done
8728 IFS=$as_save_IFS
8729
8730 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8731 fi
8732 fi
8733 AR=$ac_cv_prog_AR
8734 if test -n "$AR"; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8736 $as_echo "$AR" >&6; }
8737 else
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 $as_echo "no" >&6; }
8740 fi
8741
8742
8743 fi
8744
8745 # The jit documentation looks better if built with sphinx, but can be
8746 # built with texinfo if sphinx is not available.
8747 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8748 # Extract the first word of "sphinx-build", so it can be a program name with args.
8749 set dummy sphinx-build; ac_word=$2
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8751 $as_echo_n "checking for $ac_word... " >&6; }
8752 if ${ac_cv_prog_doc_build_sys+:} false; then :
8753 $as_echo_n "(cached) " >&6
8754 else
8755 if test -n "$doc_build_sys"; then
8756 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8757 else
8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759 for as_dir in $PATH
8760 do
8761 IFS=$as_save_IFS
8762 test -z "$as_dir" && as_dir=.
8763 for ac_exec_ext in '' $ac_executable_extensions; do
8764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8765 ac_cv_prog_doc_build_sys="sphinx"
8766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8767 break 2
8768 fi
8769 done
8770 done
8771 IFS=$as_save_IFS
8772
8773 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8774 fi
8775 fi
8776 doc_build_sys=$ac_cv_prog_doc_build_sys
8777 if test -n "$doc_build_sys"; then
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8779 $as_echo "$doc_build_sys" >&6; }
8780 else
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8782 $as_echo "no" >&6; }
8783 fi
8784
8785
8786
8787 # --------------------
8788 # Checks for C headers
8789 # --------------------
8790
8791 # Need to reject headers which give warnings, so that the -Werror bootstrap
8792 # works later. *sigh* This needs to come before all header checks.
8793
8794 ac_c_preproc_warn_flag=yes
8795
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8797 $as_echo_n "checking for ANSI C header files... " >&6; }
8798 if ${ac_cv_header_stdc+:} false; then :
8799 $as_echo_n "(cached) " >&6
8800 else
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8803 #include <stdlib.h>
8804 #include <stdarg.h>
8805 #include <string.h>
8806 #include <float.h>
8807
8808 int
8809 main ()
8810 {
8811
8812 ;
8813 return 0;
8814 }
8815 _ACEOF
8816 if ac_fn_cxx_try_compile "$LINENO"; then :
8817 ac_cv_header_stdc=yes
8818 else
8819 ac_cv_header_stdc=no
8820 fi
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822
8823 if test $ac_cv_header_stdc = yes; then
8824 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 #include <string.h>
8828
8829 _ACEOF
8830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8831 $EGREP "memchr" >/dev/null 2>&1; then :
8832
8833 else
8834 ac_cv_header_stdc=no
8835 fi
8836 rm -f conftest*
8837
8838 fi
8839
8840 if test $ac_cv_header_stdc = yes; then
8841 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h. */
8844 #include <stdlib.h>
8845
8846 _ACEOF
8847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8848 $EGREP "free" >/dev/null 2>&1; then :
8849
8850 else
8851 ac_cv_header_stdc=no
8852 fi
8853 rm -f conftest*
8854
8855 fi
8856
8857 if test $ac_cv_header_stdc = yes; then
8858 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8859 if test "$cross_compiling" = yes; then :
8860 :
8861 else
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8864 #include <ctype.h>
8865 #include <stdlib.h>
8866 #if ((' ' & 0x0FF) == 0x020)
8867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8869 #else
8870 # define ISLOWER(c) \
8871 (('a' <= (c) && (c) <= 'i') \
8872 || ('j' <= (c) && (c) <= 'r') \
8873 || ('s' <= (c) && (c) <= 'z'))
8874 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8875 #endif
8876
8877 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8878 int
8879 main ()
8880 {
8881 int i;
8882 for (i = 0; i < 256; i++)
8883 if (XOR (islower (i), ISLOWER (i))
8884 || toupper (i) != TOUPPER (i))
8885 return 2;
8886 return 0;
8887 }
8888 _ACEOF
8889 if ac_fn_cxx_try_run "$LINENO"; then :
8890
8891 else
8892 ac_cv_header_stdc=no
8893 fi
8894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8895 conftest.$ac_objext conftest.beam conftest.$ac_ext
8896 fi
8897
8898 fi
8899 fi
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8901 $as_echo "$ac_cv_header_stdc" >&6; }
8902 if test $ac_cv_header_stdc = yes; then
8903
8904 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8905
8906 fi
8907
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8909 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8910 if ${ac_cv_header_time+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915 #include <sys/types.h>
8916 #include <sys/time.h>
8917 #include <time.h>
8918
8919 int
8920 main ()
8921 {
8922 if ((struct tm *) 0)
8923 return 0;
8924 ;
8925 return 0;
8926 }
8927 _ACEOF
8928 if ac_fn_cxx_try_compile "$LINENO"; then :
8929 ac_cv_header_time=yes
8930 else
8931 ac_cv_header_time=no
8932 fi
8933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934 fi
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8936 $as_echo "$ac_cv_header_time" >&6; }
8937 if test $ac_cv_header_time = yes; then
8938
8939 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8940
8941 fi
8942
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8944 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8945 if ${gcc_cv_header_string+:} false; then :
8946 $as_echo_n "(cached) " >&6
8947 else
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8950 #include <string.h>
8951 #include <strings.h>
8952 int
8953 main ()
8954 {
8955
8956 ;
8957 return 0;
8958 }
8959 _ACEOF
8960 if ac_fn_cxx_try_compile "$LINENO"; then :
8961 gcc_cv_header_string=yes
8962 else
8963 gcc_cv_header_string=no
8964 fi
8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966 fi
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8968 $as_echo "$gcc_cv_header_string" >&6; }
8969 if test $gcc_cv_header_string = yes; then
8970
8971 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8972
8973 fi
8974
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8976 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8977 if ${ac_cv_header_sys_wait_h+:} false; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8982 #include <sys/types.h>
8983 #include <sys/wait.h>
8984 #ifndef WEXITSTATUS
8985 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8986 #endif
8987 #ifndef WIFEXITED
8988 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8989 #endif
8990
8991 int
8992 main ()
8993 {
8994 int s;
8995 wait (&s);
8996 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8997 ;
8998 return 0;
8999 }
9000 _ACEOF
9001 if ac_fn_cxx_try_compile "$LINENO"; then :
9002 ac_cv_header_sys_wait_h=yes
9003 else
9004 ac_cv_header_sys_wait_h=no
9005 fi
9006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007 fi
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9009 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9010 if test $ac_cv_header_sys_wait_h = yes; then
9011
9012 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9013
9014 fi
9015
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9017 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9018 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9019 $as_echo_n "(cached) " >&6
9020 else
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9023 #include <sys/types.h>
9024 #include <termios.h>
9025 #ifdef TIOCGWINSZ
9026 yes
9027 #endif
9028
9029 _ACEOF
9030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9031 $EGREP "yes" >/dev/null 2>&1; then :
9032 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9033 else
9034 ac_cv_sys_tiocgwinsz_in_termios_h=no
9035 fi
9036 rm -f conftest*
9037
9038 fi
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9040 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9041
9042 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9044 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9045 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9046 $as_echo_n "(cached) " >&6
9047 else
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9050 #include <sys/types.h>
9051 #include <sys/ioctl.h>
9052 #ifdef TIOCGWINSZ
9053 yes
9054 #endif
9055
9056 _ACEOF
9057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9058 $EGREP "yes" >/dev/null 2>&1; then :
9059 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9060 else
9061 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9062 fi
9063 rm -f conftest*
9064
9065 fi
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9067 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9068
9069 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9070
9071 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9072
9073 fi
9074 fi
9075
9076 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9077 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
9078 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9079 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9080 do :
9081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9082 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9083 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9084 cat >>confdefs.h <<_ACEOF
9085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9086 _ACEOF
9087
9088 fi
9089 done
9090
9091
9092 # Check for thread headers.
9093 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9094 if test "x$ac_cv_header_thread_h" = xyes; then :
9095 have_thread_h=yes
9096 else
9097 have_thread_h=
9098 fi
9099
9100 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9101 if test "x$ac_cv_header_pthread_h" = xyes; then :
9102 have_pthread_h=yes
9103 else
9104 have_pthread_h=
9105 fi
9106
9107
9108 # These tests can't be done till we know if we have limits.h.
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9110 $as_echo_n "checking for CHAR_BIT... " >&6; }
9111 if ${gcc_cv_decl_char_bit+:} false; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9116 #ifdef HAVE_LIMITS_H
9117 #include <limits.h>
9118 #endif
9119 #ifdef CHAR_BIT
9120 found
9121 #endif
9122 _ACEOF
9123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9124 $EGREP "found" >/dev/null 2>&1; then :
9125 gcc_cv_decl_char_bit=yes
9126 else
9127 gcc_cv_decl_char_bit=no
9128 fi
9129 rm -f conftest*
9130
9131
9132 fi
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9134 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9135 if test $gcc_cv_decl_char_bit = no; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9137 $as_echo_n "checking number of bits in a byte... " >&6; }
9138 if ${gcc_cv_c_nbby+:} false; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 i=8
9142 gcc_cv_c_nbby=
9143 while test $i -lt 65; do
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146
9147 int
9148 main ()
9149 {
9150 switch(0) {
9151 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9152 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9153 ; }
9154 ;
9155 return 0;
9156 }
9157 _ACEOF
9158 if ac_fn_cxx_try_compile "$LINENO"; then :
9159 gcc_cv_c_nbby=$i; break
9160 fi
9161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162 i=`expr $i + 1`
9163 done
9164 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9165
9166 fi
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9168 $as_echo "$gcc_cv_c_nbby" >&6; }
9169 if test $gcc_cv_c_nbby = failed; then
9170 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9171 else
9172
9173 cat >>confdefs.h <<_ACEOF
9174 #define CHAR_BIT $gcc_cv_c_nbby
9175 _ACEOF
9176
9177 fi
9178 fi
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9180 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9181 if ${ac_cv_c_bigendian+:} false; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 ac_cv_c_bigendian=unknown
9185 # See if we're dealing with a universal compiler.
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188 #ifndef __APPLE_CC__
9189 not a universal capable compiler
9190 #endif
9191 typedef int dummy;
9192
9193 _ACEOF
9194 if ac_fn_cxx_try_compile "$LINENO"; then :
9195
9196 # Check for potential -arch flags. It is not universal unless
9197 # there are at least two -arch flags with different values.
9198 ac_arch=
9199 ac_prev=
9200 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9201 if test -n "$ac_prev"; then
9202 case $ac_word in
9203 i?86 | x86_64 | ppc | ppc64)
9204 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9205 ac_arch=$ac_word
9206 else
9207 ac_cv_c_bigendian=universal
9208 break
9209 fi
9210 ;;
9211 esac
9212 ac_prev=
9213 elif test "x$ac_word" = "x-arch"; then
9214 ac_prev=arch
9215 fi
9216 done
9217 fi
9218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9219 if test $ac_cv_c_bigendian = unknown; then
9220 # See if sys/param.h defines the BYTE_ORDER macro.
9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h. */
9223 #include <sys/types.h>
9224 #include <sys/param.h>
9225
9226 int
9227 main ()
9228 {
9229 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9230 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9231 && LITTLE_ENDIAN)
9232 bogus endian macros
9233 #endif
9234
9235 ;
9236 return 0;
9237 }
9238 _ACEOF
9239 if ac_fn_cxx_try_compile "$LINENO"; then :
9240 # It does; now see whether it defined to BIG_ENDIAN or not.
9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h. */
9243 #include <sys/types.h>
9244 #include <sys/param.h>
9245
9246 int
9247 main ()
9248 {
9249 #if BYTE_ORDER != BIG_ENDIAN
9250 not big endian
9251 #endif
9252
9253 ;
9254 return 0;
9255 }
9256 _ACEOF
9257 if ac_fn_cxx_try_compile "$LINENO"; then :
9258 ac_cv_c_bigendian=yes
9259 else
9260 ac_cv_c_bigendian=no
9261 fi
9262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9263 fi
9264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9265 fi
9266 if test $ac_cv_c_bigendian = unknown; then
9267 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9270 #include <limits.h>
9271
9272 int
9273 main ()
9274 {
9275 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9276 bogus endian macros
9277 #endif
9278
9279 ;
9280 return 0;
9281 }
9282 _ACEOF
9283 if ac_fn_cxx_try_compile "$LINENO"; then :
9284 # It does; now see whether it defined to _BIG_ENDIAN or not.
9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9287 #include <limits.h>
9288
9289 int
9290 main ()
9291 {
9292 #ifndef _BIG_ENDIAN
9293 not big endian
9294 #endif
9295
9296 ;
9297 return 0;
9298 }
9299 _ACEOF
9300 if ac_fn_cxx_try_compile "$LINENO"; then :
9301 ac_cv_c_bigendian=yes
9302 else
9303 ac_cv_c_bigendian=no
9304 fi
9305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9306 fi
9307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9308 fi
9309 if test $ac_cv_c_bigendian = unknown; then
9310 # Compile a test program.
9311 if test "$cross_compiling" = yes; then :
9312 # Try to guess by grepping values from an object file.
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315 short int ascii_mm[] =
9316 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9317 short int ascii_ii[] =
9318 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9319 int use_ascii (int i) {
9320 return ascii_mm[i] + ascii_ii[i];
9321 }
9322 short int ebcdic_ii[] =
9323 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9324 short int ebcdic_mm[] =
9325 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9326 int use_ebcdic (int i) {
9327 return ebcdic_mm[i] + ebcdic_ii[i];
9328 }
9329 extern int foo;
9330
9331 int
9332 main ()
9333 {
9334 return use_ascii (foo) == use_ebcdic (foo);
9335 ;
9336 return 0;
9337 }
9338 _ACEOF
9339 if ac_fn_cxx_try_compile "$LINENO"; then :
9340 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9341 ac_cv_c_bigendian=yes
9342 fi
9343 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9344 if test "$ac_cv_c_bigendian" = unknown; then
9345 ac_cv_c_bigendian=no
9346 else
9347 # finding both strings is unlikely to happen, but who knows?
9348 ac_cv_c_bigendian=unknown
9349 fi
9350 fi
9351 fi
9352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9353 else
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9356 $ac_includes_default
9357 int
9358 main ()
9359 {
9360
9361 /* Are we little or big endian? From Harbison&Steele. */
9362 union
9363 {
9364 long int l;
9365 char c[sizeof (long int)];
9366 } u;
9367 u.l = 1;
9368 return u.c[sizeof (long int) - 1] == 1;
9369
9370 ;
9371 return 0;
9372 }
9373 _ACEOF
9374 if ac_fn_cxx_try_run "$LINENO"; then :
9375 ac_cv_c_bigendian=no
9376 else
9377 ac_cv_c_bigendian=yes
9378 fi
9379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9380 conftest.$ac_objext conftest.beam conftest.$ac_ext
9381 fi
9382
9383 fi
9384 fi
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9386 $as_echo "$ac_cv_c_bigendian" >&6; }
9387 case $ac_cv_c_bigendian in #(
9388 yes)
9389 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9390 ;; #(
9391 no)
9392 ;; #(
9393 universal)
9394
9395 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9396
9397 ;; #(
9398 *)
9399 as_fn_error $? "unknown endianness
9400 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9401 esac
9402
9403
9404 # ----------------------
9405 # Checks for C++ headers
9406 # ----------------------
9407
9408 ac_ext=cpp
9409 ac_cpp='$CXXCPP $CPPFLAGS'
9410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9414 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9415 if test -z "$CXXCPP"; then
9416 if ${ac_cv_prog_CXXCPP+:} false; then :
9417 $as_echo_n "(cached) " >&6
9418 else
9419 # Double quotes because CXXCPP needs to be expanded
9420 for CXXCPP in "$CXX -E" "/lib/cpp"
9421 do
9422 ac_preproc_ok=false
9423 for ac_cxx_preproc_warn_flag in '' yes
9424 do
9425 # Use a header file that comes with gcc, so configuring glibc
9426 # with a fresh cross-compiler works.
9427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9428 # <limits.h> exists even on freestanding compilers.
9429 # On the NeXT, cc -E runs the code through the compiler's parser,
9430 # not just through cpp. "Syntax error" is here to catch this case.
9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9433 #ifdef __STDC__
9434 # include <limits.h>
9435 #else
9436 # include <assert.h>
9437 #endif
9438 Syntax error
9439 _ACEOF
9440 if ac_fn_cxx_try_cpp "$LINENO"; then :
9441
9442 else
9443 # Broken: fails on valid input.
9444 continue
9445 fi
9446 rm -f conftest.err conftest.i conftest.$ac_ext
9447
9448 # OK, works on sane cases. Now check whether nonexistent headers
9449 # can be detected and how.
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9452 #include <ac_nonexistent.h>
9453 _ACEOF
9454 if ac_fn_cxx_try_cpp "$LINENO"; then :
9455 # Broken: success on invalid input.
9456 continue
9457 else
9458 # Passes both tests.
9459 ac_preproc_ok=:
9460 break
9461 fi
9462 rm -f conftest.err conftest.i conftest.$ac_ext
9463
9464 done
9465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9466 rm -f conftest.i conftest.err conftest.$ac_ext
9467 if $ac_preproc_ok; then :
9468 break
9469 fi
9470
9471 done
9472 ac_cv_prog_CXXCPP=$CXXCPP
9473
9474 fi
9475 CXXCPP=$ac_cv_prog_CXXCPP
9476 else
9477 ac_cv_prog_CXXCPP=$CXXCPP
9478 fi
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9480 $as_echo "$CXXCPP" >&6; }
9481 ac_preproc_ok=false
9482 for ac_cxx_preproc_warn_flag in '' yes
9483 do
9484 # Use a header file that comes with gcc, so configuring glibc
9485 # with a fresh cross-compiler works.
9486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9487 # <limits.h> exists even on freestanding compilers.
9488 # On the NeXT, cc -E runs the code through the compiler's parser,
9489 # not just through cpp. "Syntax error" is here to catch this case.
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9492 #ifdef __STDC__
9493 # include <limits.h>
9494 #else
9495 # include <assert.h>
9496 #endif
9497 Syntax error
9498 _ACEOF
9499 if ac_fn_cxx_try_cpp "$LINENO"; then :
9500
9501 else
9502 # Broken: fails on valid input.
9503 continue
9504 fi
9505 rm -f conftest.err conftest.i conftest.$ac_ext
9506
9507 # OK, works on sane cases. Now check whether nonexistent headers
9508 # can be detected and how.
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9511 #include <ac_nonexistent.h>
9512 _ACEOF
9513 if ac_fn_cxx_try_cpp "$LINENO"; then :
9514 # Broken: success on invalid input.
9515 continue
9516 else
9517 # Passes both tests.
9518 ac_preproc_ok=:
9519 break
9520 fi
9521 rm -f conftest.err conftest.i conftest.$ac_ext
9522
9523 done
9524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9525 rm -f conftest.i conftest.err conftest.$ac_ext
9526 if $ac_preproc_ok; then :
9527
9528 else
9529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9532 See \`config.log' for more details" >&5
9533 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9534 See \`config.log' for more details" >&2;}; }
9535 fi
9536
9537 ac_ext=cpp
9538 ac_cpp='$CXXCPP $CPPFLAGS'
9539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9542
9543
9544 for ac_header in unordered_map
9545 do :
9546 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9547 if test "x$ac_cv_header_unordered_map" = xyes; then :
9548 cat >>confdefs.h <<_ACEOF
9549 #define HAVE_UNORDERED_MAP 1
9550 _ACEOF
9551
9552 fi
9553 done
9554
9555 for ac_header in tr1/unordered_map
9556 do :
9557 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9558 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9559 cat >>confdefs.h <<_ACEOF
9560 #define HAVE_TR1_UNORDERED_MAP 1
9561 _ACEOF
9562
9563 fi
9564 done
9565
9566 for ac_header in ext/hash_map
9567 do :
9568 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9569 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9570 cat >>confdefs.h <<_ACEOF
9571 #define HAVE_EXT_HASH_MAP 1
9572 _ACEOF
9573
9574 fi
9575 done
9576
9577
9578 # --------
9579 # Dependency checking.
9580 # --------
9581
9582 rm -rf .tst 2>/dev/null
9583 mkdir .tst 2>/dev/null
9584 if test -d .tst; then
9585 am__leading_dot=.
9586 else
9587 am__leading_dot=_
9588 fi
9589 rmdir .tst 2>/dev/null
9590
9591 DEPDIR="${am__leading_dot}deps"
9592
9593 ac_config_commands="$ac_config_commands depdir"
9594
9595
9596 ac_config_commands="$ac_config_commands gccdepdir"
9597
9598
9599 depcc="$CXX" am_compiler_list=
9600
9601 am_depcomp=$ac_aux_dir/depcomp
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9603 $as_echo_n "checking dependency style of $depcc... " >&6; }
9604 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9605 $as_echo_n "(cached) " >&6
9606 else
9607 if test -f "$am_depcomp"; then
9608 # We make a subdir and do the tests there. Otherwise we can end up
9609 # making bogus files that we don't know about and never remove. For
9610 # instance it was reported that on HP-UX the gcc test will end up
9611 # making a dummy file named `D' -- because `-MD' means `put the output
9612 # in D'.
9613 mkdir conftest.dir
9614 # Copy depcomp to subdir because otherwise we won't find it if we're
9615 # using a relative directory.
9616 cp "$am_depcomp" conftest.dir
9617 cd conftest.dir
9618 # We will build objects and dependencies in a subdirectory because
9619 # it helps to detect inapplicable dependency modes. For instance
9620 # both Tru64's cc and ICC support -MD to output dependencies as a
9621 # side effect of compilation, but ICC will put the dependencies in
9622 # the current directory while Tru64 will put them in the object
9623 # directory.
9624 mkdir sub
9625
9626 am_cv_CXX_dependencies_compiler_type=none
9627 if test "$am_compiler_list" = ""; then
9628 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9629 fi
9630 for depmode in $am_compiler_list; do
9631 if test $depmode = none; then break; fi
9632
9633 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9634 # Setup a source with many dependencies, because some compilers
9635 # like to wrap large dependency lists on column 80 (with \), and
9636 # we should not choose a depcomp mode which is confused by this.
9637 #
9638 # We need to recreate these files for each test, as the compiler may
9639 # overwrite some of them when testing with obscure command lines.
9640 # This happens at least with the AIX C compiler.
9641 : > sub/conftest.c
9642 for i in 1 2 3 4 5 6; do
9643 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9644 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9645 # Solaris 8's {/usr,}/bin/sh.
9646 touch sub/conftst$i.h
9647 done
9648 echo "include sub/conftest.Po" > confmf
9649
9650 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9651 # mode. It turns out that the SunPro C++ compiler does not properly
9652 # handle `-M -o', and we need to detect this.
9653 depcmd="depmode=$depmode \
9654 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9655 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9656 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9657 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9658 if env $depcmd > conftest.err 2>&1 &&
9659 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9660 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9661 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9662 # icc doesn't choke on unknown options, it will just issue warnings
9663 # or remarks (even with -Werror). So we grep stderr for any message
9664 # that says an option was ignored or not supported.
9665 # When given -MP, icc 7.0 and 7.1 complain thusly:
9666 # icc: Command line warning: ignoring option '-M'; no argument required
9667 # The diagnosis changed in icc 8.0:
9668 # icc: Command line remark: option '-MP' not supported
9669 if (grep 'ignoring option' conftest.err ||
9670 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9671 am_cv_CXX_dependencies_compiler_type=$depmode
9672 $as_echo "$as_me:$LINENO: success" >&5
9673 break
9674 fi
9675 fi
9676 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9677 sed -e 's/^/| /' < conftest.err >&5
9678 done
9679
9680 cd ..
9681 rm -rf conftest.dir
9682 else
9683 am_cv_CXX_dependencies_compiler_type=none
9684 fi
9685
9686 fi
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9688 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9689 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9690 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9691 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9692
9693 fi
9694
9695
9696 # --------
9697 # UNSORTED
9698 # --------
9699
9700
9701 # These libraries may be used by collect2.
9702 # We may need a special search path to get them linked.
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9704 $as_echo_n "checking for collect2 libraries... " >&6; }
9705 if ${gcc_cv_collect2_libs+:} false; then :
9706 $as_echo_n "(cached) " >&6
9707 else
9708 save_LIBS="$LIBS"
9709 for libs in '' -lld -lmld \
9710 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9711 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9712 do
9713 LIBS="$libs"
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9716
9717 /* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
9720 #ifdef __cplusplus
9721 extern "C"
9722 #endif
9723 char ldopen ();
9724 int
9725 main ()
9726 {
9727 return ldopen ();
9728 ;
9729 return 0;
9730 }
9731 _ACEOF
9732 if ac_fn_cxx_try_link "$LINENO"; then :
9733 gcc_cv_collect2_libs="$libs"; break
9734 fi
9735 rm -f core conftest.err conftest.$ac_objext \
9736 conftest$ac_exeext conftest.$ac_ext
9737 done
9738 LIBS="$save_LIBS"
9739 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9740 fi
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9742 $as_echo "$gcc_cv_collect2_libs" >&6; }
9743 case $gcc_cv_collect2_libs in
9744 "none required") ;;
9745 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9746 esac
9747
9748
9749 # When building Ada code on Alpha, we need exc_resume which is usually in
9750 # -lexc. So test for it.
9751 save_LIBS="$LIBS"
9752 LIBS=
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9754 $as_echo_n "checking for library containing exc_resume... " >&6; }
9755 if ${ac_cv_search_exc_resume+:} false; then :
9756 $as_echo_n "(cached) " >&6
9757 else
9758 ac_func_search_save_LIBS=$LIBS
9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9761
9762 /* Override any GCC internal prototype to avoid an error.
9763 Use char because int might match the return type of a GCC
9764 builtin and then its argument prototype would still apply. */
9765 #ifdef __cplusplus
9766 extern "C"
9767 #endif
9768 char exc_resume ();
9769 int
9770 main ()
9771 {
9772 return exc_resume ();
9773 ;
9774 return 0;
9775 }
9776 _ACEOF
9777 for ac_lib in '' exc; do
9778 if test -z "$ac_lib"; then
9779 ac_res="none required"
9780 else
9781 ac_res=-l$ac_lib
9782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9783 fi
9784 if ac_fn_cxx_try_link "$LINENO"; then :
9785 ac_cv_search_exc_resume=$ac_res
9786 fi
9787 rm -f core conftest.err conftest.$ac_objext \
9788 conftest$ac_exeext
9789 if ${ac_cv_search_exc_resume+:} false; then :
9790 break
9791 fi
9792 done
9793 if ${ac_cv_search_exc_resume+:} false; then :
9794
9795 else
9796 ac_cv_search_exc_resume=no
9797 fi
9798 rm conftest.$ac_ext
9799 LIBS=$ac_func_search_save_LIBS
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9802 $as_echo "$ac_cv_search_exc_resume" >&6; }
9803 ac_res=$ac_cv_search_exc_resume
9804 if test "$ac_res" != no; then :
9805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9806
9807 fi
9808
9809 GNAT_LIBEXC="$LIBS"
9810 LIBS="$save_LIBS"
9811
9812
9813 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9814 save_LIBS="$LIBS"
9815 LIBS=
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9817 $as_echo_n "checking for library containing kstat_open... " >&6; }
9818 if ${ac_cv_search_kstat_open+:} false; then :
9819 $as_echo_n "(cached) " >&6
9820 else
9821 ac_func_search_save_LIBS=$LIBS
9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h. */
9824
9825 /* Override any GCC internal prototype to avoid an error.
9826 Use char because int might match the return type of a GCC
9827 builtin and then its argument prototype would still apply. */
9828 #ifdef __cplusplus
9829 extern "C"
9830 #endif
9831 char kstat_open ();
9832 int
9833 main ()
9834 {
9835 return kstat_open ();
9836 ;
9837 return 0;
9838 }
9839 _ACEOF
9840 for ac_lib in '' kstat; do
9841 if test -z "$ac_lib"; then
9842 ac_res="none required"
9843 else
9844 ac_res=-l$ac_lib
9845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9846 fi
9847 if ac_fn_cxx_try_link "$LINENO"; then :
9848 ac_cv_search_kstat_open=$ac_res
9849 fi
9850 rm -f core conftest.err conftest.$ac_objext \
9851 conftest$ac_exeext
9852 if ${ac_cv_search_kstat_open+:} false; then :
9853 break
9854 fi
9855 done
9856 if ${ac_cv_search_kstat_open+:} false; then :
9857
9858 else
9859 ac_cv_search_kstat_open=no
9860 fi
9861 rm conftest.$ac_ext
9862 LIBS=$ac_func_search_save_LIBS
9863 fi
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9865 $as_echo "$ac_cv_search_kstat_open" >&6; }
9866 ac_res=$ac_cv_search_kstat_open
9867 if test "$ac_res" != no; then :
9868 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9869
9870 fi
9871
9872 EXTRA_GCC_LIBS="$LIBS"
9873 LIBS="$save_LIBS"
9874
9875
9876 # Solaris needs libsocket and libnsl for socket functions before 11.4.
9877 # C++ needs those for libcody.
9878 save_LIBS="$LIBS"
9879 LIBS=
9880
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9882 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9883 if ${ac_cv_search_gethostbyname+:} false; then :
9884 $as_echo_n "(cached) " >&6
9885 else
9886 ac_func_search_save_LIBS=$LIBS
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9889
9890 /* Override any GCC internal prototype to avoid an error.
9891 Use char because int might match the return type of a GCC
9892 builtin and then its argument prototype would still apply. */
9893 #ifdef __cplusplus
9894 extern "C"
9895 #endif
9896 char gethostbyname ();
9897 int
9898 main ()
9899 {
9900 return gethostbyname ();
9901 ;
9902 return 0;
9903 }
9904 _ACEOF
9905 for ac_lib in '' nsl; do
9906 if test -z "$ac_lib"; then
9907 ac_res="none required"
9908 else
9909 ac_res=-l$ac_lib
9910 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9911 fi
9912 if ac_fn_cxx_try_link "$LINENO"; then :
9913 ac_cv_search_gethostbyname=$ac_res
9914 fi
9915 rm -f core conftest.err conftest.$ac_objext \
9916 conftest$ac_exeext
9917 if ${ac_cv_search_gethostbyname+:} false; then :
9918 break
9919 fi
9920 done
9921 if ${ac_cv_search_gethostbyname+:} false; then :
9922
9923 else
9924 ac_cv_search_gethostbyname=no
9925 fi
9926 rm conftest.$ac_ext
9927 LIBS=$ac_func_search_save_LIBS
9928 fi
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9930 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9931 ac_res=$ac_cv_search_gethostbyname
9932 if test "$ac_res" != no; then :
9933 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9934
9935 fi
9936
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
9938 $as_echo_n "checking for library containing socket... " >&6; }
9939 if ${ac_cv_search_socket+:} false; then :
9940 $as_echo_n "(cached) " >&6
9941 else
9942 ac_func_search_save_LIBS=$LIBS
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9945
9946 /* Override any GCC internal prototype to avoid an error.
9947 Use char because int might match the return type of a GCC
9948 builtin and then its argument prototype would still apply. */
9949 #ifdef __cplusplus
9950 extern "C"
9951 #endif
9952 char socket ();
9953 int
9954 main ()
9955 {
9956 return socket ();
9957 ;
9958 return 0;
9959 }
9960 _ACEOF
9961 for ac_lib in '' socket; do
9962 if test -z "$ac_lib"; then
9963 ac_res="none required"
9964 else
9965 ac_res=-l$ac_lib
9966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9967 fi
9968 if ac_fn_cxx_try_link "$LINENO"; then :
9969 ac_cv_search_socket=$ac_res
9970 fi
9971 rm -f core conftest.err conftest.$ac_objext \
9972 conftest$ac_exeext
9973 if ${ac_cv_search_socket+:} false; then :
9974 break
9975 fi
9976 done
9977 if ${ac_cv_search_socket+:} false; then :
9978
9979 else
9980 ac_cv_search_socket=no
9981 fi
9982 rm conftest.$ac_ext
9983 LIBS=$ac_func_search_save_LIBS
9984 fi
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
9986 $as_echo "$ac_cv_search_socket" >&6; }
9987 ac_res=$ac_cv_search_socket
9988 if test "$ac_res" != no; then :
9989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9990
9991 else
9992
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
9994 $as_echo_n "checking for socket in -lsocket... " >&6; }
9995 if ${ac_cv_lib_socket_socket+:} false; then :
9996 $as_echo_n "(cached) " >&6
9997 else
9998 ac_check_lib_save_LIBS=$LIBS
9999 LIBS="-lsocket -lnsl $LIBS"
10000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10001 /* end confdefs.h. */
10002
10003 /* Override any GCC internal prototype to avoid an error.
10004 Use char because int might match the return type of a GCC
10005 builtin and then its argument prototype would still apply. */
10006 #ifdef __cplusplus
10007 extern "C"
10008 #endif
10009 char socket ();
10010 int
10011 main ()
10012 {
10013 return socket ();
10014 ;
10015 return 0;
10016 }
10017 _ACEOF
10018 if ac_fn_cxx_try_link "$LINENO"; then :
10019 ac_cv_lib_socket_socket=yes
10020 else
10021 ac_cv_lib_socket_socket=no
10022 fi
10023 rm -f core conftest.err conftest.$ac_objext \
10024 conftest$ac_exeext conftest.$ac_ext
10025 LIBS=$ac_check_lib_save_LIBS
10026 fi
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10028 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10029 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10030 LIBS="-lsocket -lnsl $LIBS"
10031 fi
10032
10033 fi
10034
10035
10036 NETLIBS="$LIBS"
10037 LIBS="$save_LIBS"
10038
10039
10040 # Some systems put ldexp and frexp in libm instead of libc; assume
10041 # they're both in the same place. jcf-dump needs them.
10042 save_LIBS="$LIBS"
10043 LIBS=
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10045 $as_echo_n "checking for library containing ldexp... " >&6; }
10046 if ${ac_cv_search_ldexp+:} false; then :
10047 $as_echo_n "(cached) " >&6
10048 else
10049 ac_func_search_save_LIBS=$LIBS
10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10052
10053 /* Override any GCC internal prototype to avoid an error.
10054 Use char because int might match the return type of a GCC
10055 builtin and then its argument prototype would still apply. */
10056 #ifdef __cplusplus
10057 extern "C"
10058 #endif
10059 char ldexp ();
10060 int
10061 main ()
10062 {
10063 return ldexp ();
10064 ;
10065 return 0;
10066 }
10067 _ACEOF
10068 for ac_lib in '' m; do
10069 if test -z "$ac_lib"; then
10070 ac_res="none required"
10071 else
10072 ac_res=-l$ac_lib
10073 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10074 fi
10075 if ac_fn_cxx_try_link "$LINENO"; then :
10076 ac_cv_search_ldexp=$ac_res
10077 fi
10078 rm -f core conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext
10080 if ${ac_cv_search_ldexp+:} false; then :
10081 break
10082 fi
10083 done
10084 if ${ac_cv_search_ldexp+:} false; then :
10085
10086 else
10087 ac_cv_search_ldexp=no
10088 fi
10089 rm conftest.$ac_ext
10090 LIBS=$ac_func_search_save_LIBS
10091 fi
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10093 $as_echo "$ac_cv_search_ldexp" >&6; }
10094 ac_res=$ac_cv_search_ldexp
10095 if test "$ac_res" != no; then :
10096 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10097
10098 fi
10099
10100 LDEXP_LIB="$LIBS"
10101 LIBS="$save_LIBS"
10102
10103
10104 # Some systems need dlopen
10105 save_LIBS="$LIBS"
10106 LIBS=
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10108 $as_echo_n "checking for library containing dlopen... " >&6; }
10109 if ${ac_cv_search_dlopen+:} false; then :
10110 $as_echo_n "(cached) " >&6
10111 else
10112 ac_func_search_save_LIBS=$LIBS
10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10115
10116 /* Override any GCC internal prototype to avoid an error.
10117 Use char because int might match the return type of a GCC
10118 builtin and then its argument prototype would still apply. */
10119 #ifdef __cplusplus
10120 extern "C"
10121 #endif
10122 char dlopen ();
10123 int
10124 main ()
10125 {
10126 return dlopen ();
10127 ;
10128 return 0;
10129 }
10130 _ACEOF
10131 for ac_lib in '' dl; do
10132 if test -z "$ac_lib"; then
10133 ac_res="none required"
10134 else
10135 ac_res=-l$ac_lib
10136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10137 fi
10138 if ac_fn_cxx_try_link "$LINENO"; then :
10139 ac_cv_search_dlopen=$ac_res
10140 fi
10141 rm -f core conftest.err conftest.$ac_objext \
10142 conftest$ac_exeext
10143 if ${ac_cv_search_dlopen+:} false; then :
10144 break
10145 fi
10146 done
10147 if ${ac_cv_search_dlopen+:} false; then :
10148
10149 else
10150 ac_cv_search_dlopen=no
10151 fi
10152 rm conftest.$ac_ext
10153 LIBS=$ac_func_search_save_LIBS
10154 fi
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10156 $as_echo "$ac_cv_search_dlopen" >&6; }
10157 ac_res=$ac_cv_search_dlopen
10158 if test "$ac_res" != no; then :
10159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10160
10161 fi
10162
10163 DL_LIB="$LIBS"
10164 LIBS="$save_LIBS"
10165
10166
10167 # Use <inttypes.h> only if it exists,
10168 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10169 # PRId64
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10171 $as_echo_n "checking for inttypes.h... " >&6; }
10172 if ${gcc_cv_header_inttypes_h+:} false; then :
10173 $as_echo_n "(cached) " >&6
10174 else
10175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h. */
10177 #define __STDC_FORMAT_MACROS
10178 #include <sys/types.h>
10179 #include <inttypes.h>
10180 int
10181 main ()
10182 {
10183 intmax_t i = -1;
10184 #ifndef PRId64
10185 choke me
10186 #endif
10187 ;
10188 return 0;
10189 }
10190 _ACEOF
10191 if ac_fn_cxx_try_compile "$LINENO"; then :
10192 gcc_cv_header_inttypes_h=yes
10193 else
10194 gcc_cv_header_inttypes_h=no
10195 fi
10196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10197 fi
10198
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10200 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10201 if test $gcc_cv_header_inttypes_h = yes; then
10202
10203 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10204
10205 fi
10206
10207 # Look for the ZSTD package.
10208 ZSTD_INCLUDE=
10209 ZSTD_LIB=
10210
10211
10212 ZSTD_CPPFLAGS=
10213 ZSTD_LDFLAGS=
10214
10215
10216
10217 # Check whether --with-zstd was given.
10218 if test "${with_zstd+set}" = set; then :
10219 withval=$with_zstd;
10220 fi
10221
10222
10223 # Check whether --with-zstd-include was given.
10224 if test "${with_zstd_include+set}" = set; then :
10225 withval=$with_zstd_include;
10226 fi
10227
10228
10229 # Check whether --with-zstd-lib was given.
10230 if test "${with_zstd_lib+set}" = set; then :
10231 withval=$with_zstd_lib;
10232 fi
10233
10234 case "x$with_zstd" in
10235 x) ;;
10236 xno)
10237 ZSTD_INCLUDE=
10238 ZSTD_LIB=
10239 ;;
10240 *) ZSTD_INCLUDE=$with_zstd/include
10241 ZSTD_LIB=$with_zstd/lib
10242 ;;
10243 esac
10244
10245 if test "x$with_zstd" != xno; then
10246 if test "x$with_zstd_include" != x; then
10247 ZSTD_INCLUDE=$with_zstd_include
10248 fi
10249 if test "x$with_zstd_lib" != x; then
10250 ZSTD_LIB=$with_zstd_lib
10251 fi
10252 if test "x$ZSTD_INCLUDE" != x \
10253 && test "x$ZSTD_INCLUDE" != xno; then
10254 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10255 fi
10256 if test "x$ZSTD_LIB" != x \
10257 && test "x$ZSTD_LIB" != xno; then
10258 ZSTD_LDFLAGS=-L$ZSTD_LIB
10259 fi
10260
10261 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10262 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10263
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10265 $as_echo_n "checking for zstd.h... " >&6; }
10266 if ${gcc_cv_header_zstd_h+:} false; then :
10267 $as_echo_n "(cached) " >&6
10268 else
10269 # We require version 1.3.0 or later. This is the first version that has
10270 # ZSTD_getFrameContentSize.
10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h. */
10273 #include <zstd.h>
10274 #if ZSTD_VERSION_NUMBER < 10300
10275 #error "need zstd 1.3.0 or better"
10276 #endif
10277 int
10278 main ()
10279 {
10280
10281 ;
10282 return 0;
10283 }
10284 _ACEOF
10285 if ac_fn_cxx_try_compile "$LINENO"; then :
10286 gcc_cv_header_zstd_h=yes
10287 else
10288 gcc_cv_header_zstd_h=no
10289 fi
10290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10291 fi
10292
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10294 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10295 if test $gcc_cv_header_zstd_h = yes; then
10296
10297 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10298
10299 elif test "x$with_zstd" != x; then
10300 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10301 fi
10302
10303 # LTO can use zstd compression algorithm
10304 save_LIBS="$LIBS"
10305 LIBS=
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10307 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10308 if ${ac_cv_search_ZSTD_compress+:} false; then :
10309 $as_echo_n "(cached) " >&6
10310 else
10311 ac_func_search_save_LIBS=$LIBS
10312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10313 /* end confdefs.h. */
10314
10315 /* Override any GCC internal prototype to avoid an error.
10316 Use char because int might match the return type of a GCC
10317 builtin and then its argument prototype would still apply. */
10318 #ifdef __cplusplus
10319 extern "C"
10320 #endif
10321 char ZSTD_compress ();
10322 int
10323 main ()
10324 {
10325 return ZSTD_compress ();
10326 ;
10327 return 0;
10328 }
10329 _ACEOF
10330 for ac_lib in '' zstd; do
10331 if test -z "$ac_lib"; then
10332 ac_res="none required"
10333 else
10334 ac_res=-l$ac_lib
10335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10336 fi
10337 if ac_fn_cxx_try_link "$LINENO"; then :
10338 ac_cv_search_ZSTD_compress=$ac_res
10339 fi
10340 rm -f core conftest.err conftest.$ac_objext \
10341 conftest$ac_exeext
10342 if ${ac_cv_search_ZSTD_compress+:} false; then :
10343 break
10344 fi
10345 done
10346 if ${ac_cv_search_ZSTD_compress+:} false; then :
10347
10348 else
10349 ac_cv_search_ZSTD_compress=no
10350 fi
10351 rm conftest.$ac_ext
10352 LIBS=$ac_func_search_save_LIBS
10353 fi
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10355 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10356 ac_res=$ac_cv_search_ZSTD_compress
10357 if test "$ac_res" != no; then :
10358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10359
10360 fi
10361
10362 ZSTD_LIB="$LIBS"
10363 LIBS="$save_LIBS"
10364
10365 fi
10366
10367
10368
10369 for ac_func in times clock kill getrlimit setrlimit atoq \
10370 popen sysconf strsignal getrusage nl_langinfo \
10371 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10372 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
10373 do :
10374 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10375 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10376 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10377 cat >>confdefs.h <<_ACEOF
10378 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10379 _ACEOF
10380
10381 fi
10382 done
10383
10384
10385 if test x$ac_cv_func_mbstowcs = xyes; then
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10387 $as_echo_n "checking whether mbstowcs works... " >&6; }
10388 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 if test "$cross_compiling" = yes; then :
10392 gcc_cv_func_mbstowcs_works=yes
10393 else
10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10396 #include <stdlib.h>
10397 int main()
10398 {
10399 mbstowcs(0, "", 0);
10400 return 0;
10401 }
10402 _ACEOF
10403 if ac_fn_cxx_try_run "$LINENO"; then :
10404 gcc_cv_func_mbstowcs_works=yes
10405 else
10406 gcc_cv_func_mbstowcs_works=no
10407 fi
10408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10409 conftest.$ac_objext conftest.beam conftest.$ac_ext
10410 fi
10411
10412 fi
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10414 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10415 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10416
10417 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10418
10419 fi
10420 fi
10421
10422 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10423 if test "x$ac_cv_type_ssize_t" = xyes; then :
10424
10425 else
10426
10427 cat >>confdefs.h <<_ACEOF
10428 #define ssize_t int
10429 _ACEOF
10430
10431 fi
10432
10433 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10434 if test "x$ac_cv_type_caddr_t" = xyes; then :
10435
10436 else
10437
10438 cat >>confdefs.h <<_ACEOF
10439 #define caddr_t char *
10440 _ACEOF
10441
10442 fi
10443
10444 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10445 "
10446 if test "x$ac_cv_type_sighander_t" = xyes; then :
10447
10448 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10449
10450 fi
10451
10452
10453
10454 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10455 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10456 gcc_header_sys_mman_h=yes
10457 else
10458 gcc_header_sys_mman_h=no
10459 fi
10460
10461 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10462 if test "x$ac_cv_func_mmap" = xyes; then :
10463 gcc_func_mmap=yes
10464 else
10465 gcc_func_mmap=no
10466 fi
10467
10468 if test "$gcc_header_sys_mman_h" != yes \
10469 || test "$gcc_func_mmap" != yes; then
10470 gcc_cv_func_mmap_file=no
10471 gcc_cv_func_mmap_dev_zero=no
10472 gcc_cv_func_mmap_anon=no
10473 else
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10475 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10476 if ${gcc_cv_func_mmap_file+:} false; then :
10477 $as_echo_n "(cached) " >&6
10478 else
10479 # Add a system to this blacklist if
10480 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10481 # memory area containing the same data that you'd get if you applied
10482 # read() to the same fd. The only system known to have a problem here
10483 # is VMS, where text files have record structure.
10484 case "$host_os" in
10485 *vms* | ultrix*)
10486 gcc_cv_func_mmap_file=no ;;
10487 *)
10488 gcc_cv_func_mmap_file=yes;;
10489 esac
10490 fi
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10492 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10494 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10495 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10496 $as_echo_n "(cached) " >&6
10497 else
10498 # Add a system to this blacklist if it has mmap() but /dev/zero
10499 # does not exist, or if mmapping /dev/zero does not give anonymous
10500 # zeroed pages with both the following properties:
10501 # 1. If you map N consecutive pages in with one call, and then
10502 # unmap any subset of those pages, the pages that were not
10503 # explicitly unmapped remain accessible.
10504 # 2. If you map two adjacent blocks of memory and then unmap them
10505 # both at once, they must both go away.
10506 # Systems known to be in this category are Windows (all variants),
10507 # VMS, and Darwin.
10508 case "$host_os" in
10509 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10510 gcc_cv_func_mmap_dev_zero=no ;;
10511 *)
10512 gcc_cv_func_mmap_dev_zero=yes;;
10513 esac
10514 fi
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10516 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10517
10518 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10520 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10521 if ${gcc_cv_decl_map_anon+:} false; then :
10522 $as_echo_n "(cached) " >&6
10523 else
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10526 #include <sys/types.h>
10527 #include <sys/mman.h>
10528 #include <unistd.h>
10529
10530 #ifndef MAP_ANONYMOUS
10531 #define MAP_ANONYMOUS MAP_ANON
10532 #endif
10533
10534 int
10535 main ()
10536 {
10537 int n = MAP_ANONYMOUS;
10538 ;
10539 return 0;
10540 }
10541 _ACEOF
10542 if ac_fn_cxx_try_compile "$LINENO"; then :
10543 gcc_cv_decl_map_anon=yes
10544 else
10545 gcc_cv_decl_map_anon=no
10546 fi
10547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10548 fi
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10550 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10551
10552 if test $gcc_cv_decl_map_anon = no; then
10553 gcc_cv_func_mmap_anon=no
10554 else
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10556 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10557 if ${gcc_cv_func_mmap_anon+:} false; then :
10558 $as_echo_n "(cached) " >&6
10559 else
10560 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10561 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10562 # doesn't give anonymous zeroed pages with the same properties listed
10563 # above for use of /dev/zero.
10564 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10565 case "$host_os" in
10566 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10567 gcc_cv_func_mmap_anon=no ;;
10568 *)
10569 gcc_cv_func_mmap_anon=yes;;
10570 esac
10571 fi
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10573 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10574 fi
10575 fi
10576
10577 if test $gcc_cv_func_mmap_file = yes; then
10578
10579 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10580
10581 fi
10582 if test $gcc_cv_func_mmap_dev_zero = yes; then
10583
10584 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10585
10586 fi
10587 if test $gcc_cv_func_mmap_anon = yes; then
10588
10589 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10590
10591 fi
10592
10593
10594 case "${host}" in
10595 *-*-*vms*)
10596 # Under VMS, vfork works very differently than on Unix. The standard test
10597 # won't work, and it isn't easily adaptable. It makes more sense to
10598 # just force it.
10599 ac_cv_func_vfork_works=yes
10600 ;;
10601 esac
10602 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10603 if test "x$ac_cv_type_pid_t" = xyes; then :
10604
10605 else
10606
10607 cat >>confdefs.h <<_ACEOF
10608 #define pid_t int
10609 _ACEOF
10610
10611 fi
10612
10613 for ac_header in vfork.h
10614 do :
10615 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10616 if test "x$ac_cv_header_vfork_h" = xyes; then :
10617 cat >>confdefs.h <<_ACEOF
10618 #define HAVE_VFORK_H 1
10619 _ACEOF
10620
10621 fi
10622 done
10623
10624 for ac_func in fork vfork
10625 do :
10626 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10627 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10628 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10629 cat >>confdefs.h <<_ACEOF
10630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10631 _ACEOF
10632
10633 fi
10634 done
10635
10636 if test "x$ac_cv_func_fork" = xyes; then
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10638 $as_echo_n "checking for working fork... " >&6; }
10639 if ${ac_cv_func_fork_works+:} false; then :
10640 $as_echo_n "(cached) " >&6
10641 else
10642 if test "$cross_compiling" = yes; then :
10643 ac_cv_func_fork_works=cross
10644 else
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10647 $ac_includes_default
10648 int
10649 main ()
10650 {
10651
10652 /* By Ruediger Kuhlmann. */
10653 return fork () < 0;
10654
10655 ;
10656 return 0;
10657 }
10658 _ACEOF
10659 if ac_fn_cxx_try_run "$LINENO"; then :
10660 ac_cv_func_fork_works=yes
10661 else
10662 ac_cv_func_fork_works=no
10663 fi
10664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10665 conftest.$ac_objext conftest.beam conftest.$ac_ext
10666 fi
10667
10668 fi
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10670 $as_echo "$ac_cv_func_fork_works" >&6; }
10671
10672 else
10673 ac_cv_func_fork_works=$ac_cv_func_fork
10674 fi
10675 if test "x$ac_cv_func_fork_works" = xcross; then
10676 case $host in
10677 *-*-amigaos* | *-*-msdosdjgpp*)
10678 # Override, as these systems have only a dummy fork() stub
10679 ac_cv_func_fork_works=no
10680 ;;
10681 *)
10682 ac_cv_func_fork_works=yes
10683 ;;
10684 esac
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10686 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10687 fi
10688 ac_cv_func_vfork_works=$ac_cv_func_vfork
10689 if test "x$ac_cv_func_vfork" = xyes; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10691 $as_echo_n "checking for working vfork... " >&6; }
10692 if ${ac_cv_func_vfork_works+:} false; then :
10693 $as_echo_n "(cached) " >&6
10694 else
10695 if test "$cross_compiling" = yes; then :
10696 ac_cv_func_vfork_works=cross
10697 else
10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h. */
10700 /* Thanks to Paul Eggert for this test. */
10701 $ac_includes_default
10702 #include <sys/wait.h>
10703 #ifdef HAVE_VFORK_H
10704 # include <vfork.h>
10705 #endif
10706 /* On some sparc systems, changes by the child to local and incoming
10707 argument registers are propagated back to the parent. The compiler
10708 is told about this with #include <vfork.h>, but some compilers
10709 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10710 static variable whose address is put into a register that is
10711 clobbered by the vfork. */
10712 static void
10713 #ifdef __cplusplus
10714 sparc_address_test (int arg)
10715 # else
10716 sparc_address_test (arg) int arg;
10717 #endif
10718 {
10719 static pid_t child;
10720 if (!child) {
10721 child = vfork ();
10722 if (child < 0) {
10723 perror ("vfork");
10724 _exit(2);
10725 }
10726 if (!child) {
10727 arg = getpid();
10728 write(-1, "", 0);
10729 _exit (arg);
10730 }
10731 }
10732 }
10733
10734 int
10735 main ()
10736 {
10737 pid_t parent = getpid ();
10738 pid_t child;
10739
10740 sparc_address_test (0);
10741
10742 child = vfork ();
10743
10744 if (child == 0) {
10745 /* Here is another test for sparc vfork register problems. This
10746 test uses lots of local variables, at least as many local
10747 variables as main has allocated so far including compiler
10748 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10749 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10750 reuse the register of parent for one of the local variables,
10751 since it will think that parent can't possibly be used any more
10752 in this routine. Assigning to the local variable will thus
10753 munge parent in the parent process. */
10754 pid_t
10755 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10756 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10757 /* Convince the compiler that p..p7 are live; otherwise, it might
10758 use the same hardware register for all 8 local variables. */
10759 if (p != p1 || p != p2 || p != p3 || p != p4
10760 || p != p5 || p != p6 || p != p7)
10761 _exit(1);
10762
10763 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10764 from child file descriptors. If the child closes a descriptor
10765 before it execs or exits, this munges the parent's descriptor
10766 as well. Test for this by closing stdout in the child. */
10767 _exit(close(fileno(stdout)) != 0);
10768 } else {
10769 int status;
10770 struct stat st;
10771
10772 while (wait(&status) != child)
10773 ;
10774 return (
10775 /* Was there some problem with vforking? */
10776 child < 0
10777
10778 /* Did the child fail? (This shouldn't happen.) */
10779 || status
10780
10781 /* Did the vfork/compiler bug occur? */
10782 || parent != getpid()
10783
10784 /* Did the file descriptor bug occur? */
10785 || fstat(fileno(stdout), &st) != 0
10786 );
10787 }
10788 }
10789 _ACEOF
10790 if ac_fn_cxx_try_run "$LINENO"; then :
10791 ac_cv_func_vfork_works=yes
10792 else
10793 ac_cv_func_vfork_works=no
10794 fi
10795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10796 conftest.$ac_objext conftest.beam conftest.$ac_ext
10797 fi
10798
10799 fi
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10801 $as_echo "$ac_cv_func_vfork_works" >&6; }
10802
10803 fi;
10804 if test "x$ac_cv_func_fork_works" = xcross; then
10805 ac_cv_func_vfork_works=$ac_cv_func_vfork
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10807 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10808 fi
10809
10810 if test "x$ac_cv_func_vfork_works" = xyes; then
10811
10812 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10813
10814 else
10815
10816 $as_echo "#define vfork fork" >>confdefs.h
10817
10818 fi
10819 if test "x$ac_cv_func_fork_works" = xyes; then
10820
10821 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10822
10823 fi
10824
10825
10826
10827 if test "X$prefix" = "XNONE"; then
10828 acl_final_prefix="$ac_default_prefix"
10829 else
10830 acl_final_prefix="$prefix"
10831 fi
10832 if test "X$exec_prefix" = "XNONE"; then
10833 acl_final_exec_prefix='${prefix}'
10834 else
10835 acl_final_exec_prefix="$exec_prefix"
10836 fi
10837 acl_save_prefix="$prefix"
10838 prefix="$acl_final_prefix"
10839 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10840 prefix="$acl_save_prefix"
10841
10842
10843 # Check whether --with-gnu-ld was given.
10844 if test "${with_gnu_ld+set}" = set; then :
10845 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10846 else
10847 with_gnu_ld=no
10848 fi
10849
10850 # Prepare PATH_SEPARATOR.
10851 # The user is always right.
10852 if test "${PATH_SEPARATOR+set}" != set; then
10853 echo "#! /bin/sh" >conf$$.sh
10854 echo "exit 0" >>conf$$.sh
10855 chmod +x conf$$.sh
10856 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10857 PATH_SEPARATOR=';'
10858 else
10859 PATH_SEPARATOR=:
10860 fi
10861 rm -f conf$$.sh
10862 fi
10863 ac_prog=ld
10864 if test "$GCC" = yes; then
10865 # Check if gcc -print-prog-name=ld gives a path.
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10867 $as_echo_n "checking for ld used by GCC... " >&6; }
10868 case $host in
10869 *-*-mingw*)
10870 # gcc leaves a trailing carriage return which upsets mingw
10871 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10872 *)
10873 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10874 esac
10875 case $ac_prog in
10876 # Accept absolute paths.
10877 [\\/]* | [A-Za-z]:[\\/]*)
10878 re_direlt='/[^/][^/]*/\.\./'
10879 # Canonicalize the path of ld
10880 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10881 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10882 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10883 done
10884 test -z "$LD" && LD="$ac_prog"
10885 ;;
10886 "")
10887 # If it fails, then pretend we aren't using GCC.
10888 ac_prog=ld
10889 ;;
10890 *)
10891 # If it is relative, then search for the first ld in PATH.
10892 with_gnu_ld=unknown
10893 ;;
10894 esac
10895 elif test "$with_gnu_ld" = yes; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10897 $as_echo_n "checking for GNU ld... " >&6; }
10898 else
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10900 $as_echo_n "checking for non-GNU ld... " >&6; }
10901 fi
10902 if ${acl_cv_path_LD+:} false; then :
10903 $as_echo_n "(cached) " >&6
10904 else
10905 if test -z "$LD"; then
10906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10907 for ac_dir in $PATH; do
10908 test -z "$ac_dir" && ac_dir=.
10909 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10910 acl_cv_path_LD="$ac_dir/$ac_prog"
10911 # Check to see if the program is GNU ld. I'd rather use --version,
10912 # but apparently some GNU ld's only accept -v.
10913 # Break only if it was the GNU/non-GNU ld that we prefer.
10914 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10915 test "$with_gnu_ld" != no && break
10916 else
10917 test "$with_gnu_ld" != yes && break
10918 fi
10919 fi
10920 done
10921 IFS="$ac_save_ifs"
10922 else
10923 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10924 fi
10925 fi
10926
10927 LD="$acl_cv_path_LD"
10928 if test -n "$LD"; then
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10930 $as_echo "$LD" >&6; }
10931 else
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933 $as_echo "no" >&6; }
10934 fi
10935 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10937 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10938 if ${acl_cv_prog_gnu_ld+:} false; then :
10939 $as_echo_n "(cached) " >&6
10940 else
10941 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10942 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10943 acl_cv_prog_gnu_ld=yes
10944 else
10945 acl_cv_prog_gnu_ld=no
10946 fi
10947 fi
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10949 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10950 with_gnu_ld=$acl_cv_prog_gnu_ld
10951
10952
10953
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10955 $as_echo_n "checking for shared library run path origin... " >&6; }
10956 if ${acl_cv_rpath+:} false; then :
10957 $as_echo_n "(cached) " >&6
10958 else
10959
10960 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10961 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10962 . ./conftest.sh
10963 rm -f ./conftest.sh
10964 acl_cv_rpath=done
10965
10966 fi
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10968 $as_echo "$acl_cv_rpath" >&6; }
10969 wl="$acl_cv_wl"
10970 libext="$acl_cv_libext"
10971 shlibext="$acl_cv_shlibext"
10972 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10973 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10974 hardcode_direct="$acl_cv_hardcode_direct"
10975 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10976 # Check whether --enable-rpath was given.
10977 if test "${enable_rpath+set}" = set; then :
10978 enableval=$enable_rpath; :
10979 else
10980 enable_rpath=yes
10981 fi
10982
10983
10984
10985
10986
10987
10988
10989
10990 use_additional=yes
10991
10992 acl_save_prefix="$prefix"
10993 prefix="$acl_final_prefix"
10994 acl_save_exec_prefix="$exec_prefix"
10995 exec_prefix="$acl_final_exec_prefix"
10996
10997 eval additional_includedir=\"$includedir\"
10998 eval additional_libdir=\"$libdir\"
10999
11000 exec_prefix="$acl_save_exec_prefix"
11001 prefix="$acl_save_prefix"
11002
11003
11004 # Check whether --with-libiconv-prefix was given.
11005 if test "${with_libiconv_prefix+set}" = set; then :
11006 withval=$with_libiconv_prefix;
11007 if test "X$withval" = "Xno"; then
11008 use_additional=no
11009 else
11010 if test "X$withval" = "X"; then
11011
11012 acl_save_prefix="$prefix"
11013 prefix="$acl_final_prefix"
11014 acl_save_exec_prefix="$exec_prefix"
11015 exec_prefix="$acl_final_exec_prefix"
11016
11017 eval additional_includedir=\"$includedir\"
11018 eval additional_libdir=\"$libdir\"
11019
11020 exec_prefix="$acl_save_exec_prefix"
11021 prefix="$acl_save_prefix"
11022
11023 else
11024 additional_includedir="$withval/include"
11025 additional_libdir="$withval/lib"
11026 fi
11027 fi
11028
11029 fi
11030
11031
11032 # Check whether --with-libiconv-type was given.
11033 if test "${with_libiconv_type+set}" = set; then :
11034 withval=$with_libiconv_type; with_libiconv_type=$withval
11035 else
11036 with_libiconv_type=auto
11037 fi
11038
11039 lib_type=`eval echo \$with_libiconv_type`
11040
11041 LIBICONV=
11042 LTLIBICONV=
11043 INCICONV=
11044 rpathdirs=
11045 ltrpathdirs=
11046 names_already_handled=
11047 names_next_round='iconv '
11048 while test -n "$names_next_round"; do
11049 names_this_round="$names_next_round"
11050 names_next_round=
11051 for name in $names_this_round; do
11052 already_handled=
11053 for n in $names_already_handled; do
11054 if test "$n" = "$name"; then
11055 already_handled=yes
11056 break
11057 fi
11058 done
11059 if test -z "$already_handled"; then
11060 names_already_handled="$names_already_handled $name"
11061 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11062 eval value=\"\$HAVE_LIB$uppername\"
11063 if test -n "$value"; then
11064 if test "$value" = yes; then
11065 eval value=\"\$LIB$uppername\"
11066 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11067 eval value=\"\$LTLIB$uppername\"
11068 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11069 else
11070 :
11071 fi
11072 else
11073 found_dir=
11074 found_la=
11075 found_so=
11076 found_a=
11077 if test $use_additional = yes; then
11078 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11079 found_dir="$additional_libdir"
11080 found_so="$additional_libdir/lib$name.$shlibext"
11081 if test -f "$additional_libdir/lib$name.la"; then
11082 found_la="$additional_libdir/lib$name.la"
11083 fi
11084 elif test x$lib_type != xshared; then
11085 if test -f "$additional_libdir/lib$name.$libext"; then
11086 found_dir="$additional_libdir"
11087 found_a="$additional_libdir/lib$name.$libext"
11088 if test -f "$additional_libdir/lib$name.la"; then
11089 found_la="$additional_libdir/lib$name.la"
11090 fi
11091 fi
11092 fi
11093 fi
11094 if test "X$found_dir" = "X"; then
11095 for x in $LDFLAGS $LTLIBICONV; do
11096
11097 acl_save_prefix="$prefix"
11098 prefix="$acl_final_prefix"
11099 acl_save_exec_prefix="$exec_prefix"
11100 exec_prefix="$acl_final_exec_prefix"
11101 eval x=\"$x\"
11102 exec_prefix="$acl_save_exec_prefix"
11103 prefix="$acl_save_prefix"
11104
11105 case "$x" in
11106 -L*)
11107 dir=`echo "X$x" | sed -e 's/^X-L//'`
11108 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11109 found_dir="$dir"
11110 found_so="$dir/lib$name.$shlibext"
11111 if test -f "$dir/lib$name.la"; then
11112 found_la="$dir/lib$name.la"
11113 fi
11114 elif test x$lib_type != xshared; then
11115 if test -f "$dir/lib$name.$libext"; then
11116 found_dir="$dir"
11117 found_a="$dir/lib$name.$libext"
11118 if test -f "$dir/lib$name.la"; then
11119 found_la="$dir/lib$name.la"
11120 fi
11121 fi
11122 fi
11123 ;;
11124 esac
11125 if test "X$found_dir" != "X"; then
11126 break
11127 fi
11128 done
11129 fi
11130 if test "X$found_dir" != "X"; then
11131 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11132 if test "X$found_so" != "X"; then
11133 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11134 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11135 else
11136 haveit=
11137 for x in $ltrpathdirs; do
11138 if test "X$x" = "X$found_dir"; then
11139 haveit=yes
11140 break
11141 fi
11142 done
11143 if test -z "$haveit"; then
11144 ltrpathdirs="$ltrpathdirs $found_dir"
11145 fi
11146 if test "$hardcode_direct" = yes; then
11147 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11148 else
11149 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11150 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11151 haveit=
11152 for x in $rpathdirs; do
11153 if test "X$x" = "X$found_dir"; then
11154 haveit=yes
11155 break
11156 fi
11157 done
11158 if test -z "$haveit"; then
11159 rpathdirs="$rpathdirs $found_dir"
11160 fi
11161 else
11162 haveit=
11163 for x in $LDFLAGS $LIBICONV; do
11164
11165 acl_save_prefix="$prefix"
11166 prefix="$acl_final_prefix"
11167 acl_save_exec_prefix="$exec_prefix"
11168 exec_prefix="$acl_final_exec_prefix"
11169 eval x=\"$x\"
11170 exec_prefix="$acl_save_exec_prefix"
11171 prefix="$acl_save_prefix"
11172
11173 if test "X$x" = "X-L$found_dir"; then
11174 haveit=yes
11175 break
11176 fi
11177 done
11178 if test -z "$haveit"; then
11179 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11180 fi
11181 if test "$hardcode_minus_L" != no; then
11182 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11183 else
11184 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11185 fi
11186 fi
11187 fi
11188 fi
11189 else
11190 if test "X$found_a" != "X"; then
11191 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11192 else
11193 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11194 fi
11195 fi
11196 additional_includedir=
11197 case "$found_dir" in
11198 */lib | */lib/)
11199 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11200 additional_includedir="$basedir/include"
11201 ;;
11202 esac
11203 if test "X$additional_includedir" != "X"; then
11204 if test "X$additional_includedir" != "X/usr/include"; then
11205 haveit=
11206 if test "X$additional_includedir" = "X/usr/local/include"; then
11207 if test -n "$GCC"; then
11208 case $host_os in
11209 linux*) haveit=yes;;
11210 esac
11211 fi
11212 fi
11213 if test -z "$haveit"; then
11214 for x in $CPPFLAGS $INCICONV; do
11215
11216 acl_save_prefix="$prefix"
11217 prefix="$acl_final_prefix"
11218 acl_save_exec_prefix="$exec_prefix"
11219 exec_prefix="$acl_final_exec_prefix"
11220 eval x=\"$x\"
11221 exec_prefix="$acl_save_exec_prefix"
11222 prefix="$acl_save_prefix"
11223
11224 if test "X$x" = "X-I$additional_includedir"; then
11225 haveit=yes
11226 break
11227 fi
11228 done
11229 if test -z "$haveit"; then
11230 if test -d "$additional_includedir"; then
11231 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11232 fi
11233 fi
11234 fi
11235 fi
11236 fi
11237 if test -n "$found_la"; then
11238 save_libdir="$libdir"
11239 case "$found_la" in
11240 */* | *\\*) . "$found_la" ;;
11241 *) . "./$found_la" ;;
11242 esac
11243 libdir="$save_libdir"
11244 for dep in $dependency_libs; do
11245 case "$dep" in
11246 -L*)
11247 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11248 if test "X$additional_libdir" != "X/usr/lib"; then
11249 haveit=
11250 if test "X$additional_libdir" = "X/usr/local/lib"; then
11251 if test -n "$GCC"; then
11252 case $host_os in
11253 linux*) haveit=yes;;
11254 esac
11255 fi
11256 fi
11257 if test -z "$haveit"; then
11258 haveit=
11259 for x in $LDFLAGS $LIBICONV; do
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 eval x=\"$x\"
11266 exec_prefix="$acl_save_exec_prefix"
11267 prefix="$acl_save_prefix"
11268
11269 if test "X$x" = "X-L$additional_libdir"; then
11270 haveit=yes
11271 break
11272 fi
11273 done
11274 if test -z "$haveit"; then
11275 if test -d "$additional_libdir"; then
11276 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11277 fi
11278 fi
11279 haveit=
11280 for x in $LDFLAGS $LTLIBICONV; do
11281
11282 acl_save_prefix="$prefix"
11283 prefix="$acl_final_prefix"
11284 acl_save_exec_prefix="$exec_prefix"
11285 exec_prefix="$acl_final_exec_prefix"
11286 eval x=\"$x\"
11287 exec_prefix="$acl_save_exec_prefix"
11288 prefix="$acl_save_prefix"
11289
11290 if test "X$x" = "X-L$additional_libdir"; then
11291 haveit=yes
11292 break
11293 fi
11294 done
11295 if test -z "$haveit"; then
11296 if test -d "$additional_libdir"; then
11297 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11298 fi
11299 fi
11300 fi
11301 fi
11302 ;;
11303 -R*)
11304 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11305 if test "$enable_rpath" != no; then
11306 haveit=
11307 for x in $rpathdirs; do
11308 if test "X$x" = "X$dir"; then
11309 haveit=yes
11310 break
11311 fi
11312 done
11313 if test -z "$haveit"; then
11314 rpathdirs="$rpathdirs $dir"
11315 fi
11316 haveit=
11317 for x in $ltrpathdirs; do
11318 if test "X$x" = "X$dir"; then
11319 haveit=yes
11320 break
11321 fi
11322 done
11323 if test -z "$haveit"; then
11324 ltrpathdirs="$ltrpathdirs $dir"
11325 fi
11326 fi
11327 ;;
11328 -l*)
11329 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11330 ;;
11331 *.la)
11332 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11333 ;;
11334 *)
11335 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11336 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11337 ;;
11338 esac
11339 done
11340 fi
11341 else
11342 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11343 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11344 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11345 else
11346 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11347 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11348 fi
11349 fi
11350 fi
11351 fi
11352 done
11353 done
11354 if test "X$rpathdirs" != "X"; then
11355 if test -n "$hardcode_libdir_separator"; then
11356 alldirs=
11357 for found_dir in $rpathdirs; do
11358 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11359 done
11360 acl_save_libdir="$libdir"
11361 libdir="$alldirs"
11362 eval flag=\"$hardcode_libdir_flag_spec\"
11363 libdir="$acl_save_libdir"
11364 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11365 else
11366 for found_dir in $rpathdirs; do
11367 acl_save_libdir="$libdir"
11368 libdir="$found_dir"
11369 eval flag=\"$hardcode_libdir_flag_spec\"
11370 libdir="$acl_save_libdir"
11371 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11372 done
11373 fi
11374 fi
11375 if test "X$ltrpathdirs" != "X"; then
11376 for found_dir in $ltrpathdirs; do
11377 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11378 done
11379 fi
11380
11381
11382
11383
11384
11385
11386
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11388 $as_echo_n "checking for iconv... " >&6; }
11389 if ${am_cv_func_iconv+:} false; then :
11390 $as_echo_n "(cached) " >&6
11391 else
11392
11393 am_cv_func_iconv="no, consider installing GNU libiconv"
11394 am_cv_lib_iconv=no
11395 am_save_CPPFLAGS="$CPPFLAGS"
11396 CPPFLAGS="$CPPFLAGS $INCICONV"
11397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h. */
11399 #include <stdlib.h>
11400 #include <iconv.h>
11401 int
11402 main ()
11403 {
11404 iconv_t cd = iconv_open("","");
11405 iconv(cd,NULL,NULL,NULL,NULL);
11406 iconv_close(cd);
11407 ;
11408 return 0;
11409 }
11410 _ACEOF
11411 if ac_fn_cxx_try_link "$LINENO"; then :
11412 am_cv_func_iconv=yes
11413 fi
11414 rm -f core conftest.err conftest.$ac_objext \
11415 conftest$ac_exeext conftest.$ac_ext
11416 CPPFLAGS="$am_save_CPPFLAGS"
11417
11418 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11419 for _libs in .libs _libs; do
11420 am_save_CPPFLAGS="$CPPFLAGS"
11421 am_save_LIBS="$LIBS"
11422 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11423 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h. */
11426 #include <stdlib.h>
11427 #include <iconv.h>
11428 int
11429 main ()
11430 {
11431 iconv_t cd = iconv_open("","");
11432 iconv(cd,NULL,NULL,NULL,NULL);
11433 iconv_close(cd);
11434 ;
11435 return 0;
11436 }
11437 _ACEOF
11438 if ac_fn_cxx_try_link "$LINENO"; then :
11439 INCICONV="-I../libiconv/include"
11440 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11441 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11442 am_cv_lib_iconv=yes
11443 am_cv_func_iconv=yes
11444 fi
11445 rm -f core conftest.err conftest.$ac_objext \
11446 conftest$ac_exeext conftest.$ac_ext
11447 CPPFLAGS="$am_save_CPPFLAGS"
11448 LIBS="$am_save_LIBS"
11449 if test "$am_cv_func_iconv" = "yes"; then
11450 break
11451 fi
11452 done
11453 fi
11454
11455 if test "$am_cv_func_iconv" != yes; then
11456 am_save_CPPFLAGS="$CPPFLAGS"
11457 am_save_LIBS="$LIBS"
11458 CPPFLAGS="$CPPFLAGS $INCICONV"
11459 LIBS="$LIBS $LIBICONV"
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11462 #include <stdlib.h>
11463 #include <iconv.h>
11464 int
11465 main ()
11466 {
11467 iconv_t cd = iconv_open("","");
11468 iconv(cd,NULL,NULL,NULL,NULL);
11469 iconv_close(cd);
11470 ;
11471 return 0;
11472 }
11473 _ACEOF
11474 if ac_fn_cxx_try_link "$LINENO"; then :
11475 am_cv_lib_iconv=yes
11476 am_cv_func_iconv=yes
11477 fi
11478 rm -f core conftest.err conftest.$ac_objext \
11479 conftest$ac_exeext conftest.$ac_ext
11480 CPPFLAGS="$am_save_CPPFLAGS"
11481 LIBS="$am_save_LIBS"
11482 fi
11483
11484 fi
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11486 $as_echo "$am_cv_func_iconv" >&6; }
11487 if test "$am_cv_func_iconv" = yes; then
11488
11489 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11490
11491 fi
11492 if test "$am_cv_lib_iconv" = yes; then
11493
11494 for element in $INCICONV; do
11495 haveit=
11496 for x in $CPPFLAGS; do
11497
11498 acl_save_prefix="$prefix"
11499 prefix="$acl_final_prefix"
11500 acl_save_exec_prefix="$exec_prefix"
11501 exec_prefix="$acl_final_exec_prefix"
11502 eval x=\"$x\"
11503 exec_prefix="$acl_save_exec_prefix"
11504 prefix="$acl_save_prefix"
11505
11506 if test "X$x" = "X$element"; then
11507 haveit=yes
11508 break
11509 fi
11510 done
11511 if test -z "$haveit"; then
11512 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11513 fi
11514 done
11515
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11517 $as_echo_n "checking how to link with libiconv... " >&6; }
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11519 $as_echo "$LIBICONV" >&6; }
11520 else
11521 LIBICONV=
11522 LTLIBICONV=
11523 fi
11524
11525
11526
11527 if test "$am_cv_func_iconv" = yes; then
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11529 $as_echo_n "checking for iconv declaration... " >&6; }
11530 if ${am_cv_proto_iconv+:} false; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535 /* end confdefs.h. */
11536
11537 #include <stdlib.h>
11538 #include <iconv.h>
11539 extern
11540 #ifdef __cplusplus
11541 "C"
11542 #endif
11543 #if defined(__STDC__) || defined(__cplusplus)
11544 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11545 #else
11546 size_t iconv();
11547 #endif
11548
11549 int
11550 main ()
11551 {
11552
11553 ;
11554 return 0;
11555 }
11556 _ACEOF
11557 if ac_fn_cxx_try_compile "$LINENO"; then :
11558 am_cv_proto_iconv_arg1=""
11559 else
11560 am_cv_proto_iconv_arg1="const"
11561 fi
11562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11563 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);"
11564 fi
11565
11566 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11568 }$am_cv_proto_iconv" >&5
11569 $as_echo "${ac_t:-
11570 }$am_cv_proto_iconv" >&6; }
11571
11572 cat >>confdefs.h <<_ACEOF
11573 #define ICONV_CONST $am_cv_proto_iconv_arg1
11574 _ACEOF
11575
11576 fi
11577
11578
11579 # Until we have in-tree GNU iconv:
11580 LIBICONV_DEP=
11581 if test -f "$LTLIBICONV"; then
11582 LIBICONV_DEP=$LTLIBICONV
11583 fi
11584
11585
11586
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11588 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11589 if ${am_cv_val_LC_MESSAGES+:} false; then :
11590 $as_echo_n "(cached) " >&6
11591 else
11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11594 #include <locale.h>
11595 int
11596 main ()
11597 {
11598 return LC_MESSAGES
11599 ;
11600 return 0;
11601 }
11602 _ACEOF
11603 if ac_fn_cxx_try_link "$LINENO"; then :
11604 am_cv_val_LC_MESSAGES=yes
11605 else
11606 am_cv_val_LC_MESSAGES=no
11607 fi
11608 rm -f core conftest.err conftest.$ac_objext \
11609 conftest$ac_exeext conftest.$ac_ext
11610 fi
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11612 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11613 if test $am_cv_val_LC_MESSAGES = yes; then
11614
11615 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11616
11617 fi
11618
11619
11620
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11622 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11623 if ${am_cv_langinfo_codeset+:} false; then :
11624 $as_echo_n "(cached) " >&6
11625 else
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11628 #include <langinfo.h>
11629 int
11630 main ()
11631 {
11632 char* cs = nl_langinfo(CODESET);
11633 ;
11634 return 0;
11635 }
11636 _ACEOF
11637 if ac_fn_cxx_try_link "$LINENO"; then :
11638 am_cv_langinfo_codeset=yes
11639 else
11640 am_cv_langinfo_codeset=no
11641 fi
11642 rm -f core conftest.err conftest.$ac_objext \
11643 conftest$ac_exeext conftest.$ac_ext
11644
11645 fi
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11647 $as_echo "$am_cv_langinfo_codeset" >&6; }
11648 if test $am_cv_langinfo_codeset = yes; then
11649
11650 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11651
11652 fi
11653
11654
11655 # We will need to find libiberty.h and ansidecl.h
11656 saved_CFLAGS="$CFLAGS"
11657 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11658 saved_CXXFLAGS="$CXXFLAGS"
11659 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11660
11661 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11662 # normal autoconf function for these. But force definition of
11663 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11664 # basename handling in libiberty.h.
11665 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11666 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11667 #undef HAVE_DECL_BASENAME
11668 #define HAVE_DECL_BASENAME 1
11669 #include \"ansidecl.h\"
11670 #include \"system.h\"
11671 "
11672 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11673 ac_have_decl=1
11674 else
11675 ac_have_decl=0
11676 fi
11677
11678 cat >>confdefs.h <<_ACEOF
11679 #define HAVE_DECL_BASENAME $ac_have_decl
11680 _ACEOF
11681 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11682 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11683 #undef HAVE_DECL_BASENAME
11684 #define HAVE_DECL_BASENAME 1
11685 #include \"ansidecl.h\"
11686 #include \"system.h\"
11687 "
11688 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11689 ac_have_decl=1
11690 else
11691 ac_have_decl=0
11692 fi
11693
11694 cat >>confdefs.h <<_ACEOF
11695 #define HAVE_DECL_STRSTR $ac_have_decl
11696 _ACEOF
11697
11698
11699 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11700 madvise stpcpy strnlen strsignal strverscmp \
11701 strtol strtoul strtoll strtoull setenv unsetenv \
11702 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11703 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
11704 do
11705 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11707 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11708 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11709 $as_echo_n "(cached) " >&6
11710 else
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h. */
11713 #undef $ac_tr_decl
11714 #define $ac_tr_decl 1
11715
11716 #include "ansidecl.h"
11717 #include "system.h"
11718
11719 int
11720 main ()
11721 {
11722 #ifndef $ac_func
11723 char *(*pfn) = (char *(*)) $ac_func ;
11724 #endif
11725 ;
11726 return 0;
11727 }
11728 _ACEOF
11729 if ac_fn_cxx_try_compile "$LINENO"; then :
11730 eval "gcc_cv_have_decl_$ac_func=yes"
11731 else
11732 eval "gcc_cv_have_decl_$ac_func=no"
11733 fi
11734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11735 fi
11736
11737 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11739 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11740 #define $ac_tr_decl 1
11741 _ACEOF
11742
11743 else
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11746 #define $ac_tr_decl 0
11747 _ACEOF
11748
11749 fi
11750
11751 done
11752
11753
11754 for ac_func in getrlimit setrlimit getrusage
11755 do
11756 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11758 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11759 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11760 $as_echo_n "(cached) " >&6
11761 else
11762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11764 #undef $ac_tr_decl
11765 #define $ac_tr_decl 1
11766
11767 #include "ansidecl.h"
11768 #include "system.h"
11769 #ifdef HAVE_SYS_RESOURCE_H
11770 #include <sys/resource.h>
11771 #endif
11772
11773
11774 int
11775 main ()
11776 {
11777 #ifndef $ac_func
11778 char *(*pfn) = (char *(*)) $ac_func ;
11779 #endif
11780 ;
11781 return 0;
11782 }
11783 _ACEOF
11784 if ac_fn_cxx_try_compile "$LINENO"; then :
11785 eval "gcc_cv_have_decl_$ac_func=yes"
11786 else
11787 eval "gcc_cv_have_decl_$ac_func=no"
11788 fi
11789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11790 fi
11791
11792 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11794 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11795 #define $ac_tr_decl 1
11796 _ACEOF
11797
11798 else
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11801 #define $ac_tr_decl 0
11802 _ACEOF
11803
11804 fi
11805
11806 done
11807
11808
11809 for ac_func in mallinfo mallinfo2
11810 do
11811 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11813 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11814 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11815 $as_echo_n "(cached) " >&6
11816 else
11817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818 /* end confdefs.h. */
11819 #undef $ac_tr_decl
11820 #define $ac_tr_decl 1
11821
11822 #include "ansidecl.h"
11823 #include "system.h"
11824 #ifdef HAVE_MALLOC_H
11825 #include <malloc.h>
11826 #endif
11827
11828
11829 int
11830 main ()
11831 {
11832 #ifndef $ac_func
11833 char *(*pfn) = (char *(*)) $ac_func ;
11834 #endif
11835 ;
11836 return 0;
11837 }
11838 _ACEOF
11839 if ac_fn_cxx_try_compile "$LINENO"; then :
11840 eval "gcc_cv_have_decl_$ac_func=yes"
11841 else
11842 eval "gcc_cv_have_decl_$ac_func=no"
11843 fi
11844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11845 fi
11846
11847 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11849 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11850 #define $ac_tr_decl 1
11851 _ACEOF
11852
11853 else
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11856 #define $ac_tr_decl 0
11857 _ACEOF
11858
11859 fi
11860
11861 done
11862
11863
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11866
11867 #include "ansidecl.h"
11868 #include "system.h"
11869 #ifdef HAVE_SYS_RESOURCE_H
11870 #include <sys/resource.h>
11871 #endif
11872
11873 int
11874 main ()
11875 {
11876 rlim_t l = 0;
11877 ;
11878 return 0;
11879 }
11880 _ACEOF
11881 if ac_fn_cxx_try_compile "$LINENO"; then :
11882
11883 else
11884
11885 $as_echo "#define rlim_t long" >>confdefs.h
11886
11887 fi
11888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11889
11890 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11891 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11892 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11893 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11894 for ac_func in ldgetname
11895 do
11896 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11898 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11899 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11900 $as_echo_n "(cached) " >&6
11901 else
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11904 #undef $ac_tr_decl
11905 #define $ac_tr_decl 1
11906
11907 #include "ansidecl.h"
11908 #include "system.h"
11909 #ifdef HAVE_LDFCN_H
11910 #undef FREAD
11911 #undef FWRITE
11912 #include <ldfcn.h>
11913 #endif
11914
11915
11916 int
11917 main ()
11918 {
11919 #ifndef $ac_func
11920 char *(*pfn) = (char *(*)) $ac_func ;
11921 #endif
11922 ;
11923 return 0;
11924 }
11925 _ACEOF
11926 if ac_fn_cxx_try_compile "$LINENO"; then :
11927 eval "gcc_cv_have_decl_$ac_func=yes"
11928 else
11929 eval "gcc_cv_have_decl_$ac_func=no"
11930 fi
11931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11932 fi
11933
11934 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11936 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11937 #define $ac_tr_decl 1
11938 _ACEOF
11939
11940 else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11943 #define $ac_tr_decl 0
11944 _ACEOF
11945
11946 fi
11947
11948 done
11949
11950
11951 for ac_func in times
11952 do
11953 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11955 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11956 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11957 $as_echo_n "(cached) " >&6
11958 else
11959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h. */
11961 #undef $ac_tr_decl
11962 #define $ac_tr_decl 1
11963
11964 #include "ansidecl.h"
11965 #include "system.h"
11966 #ifdef HAVE_SYS_TIMES_H
11967 #include <sys/times.h>
11968 #endif
11969
11970
11971 int
11972 main ()
11973 {
11974 #ifndef $ac_func
11975 char *(*pfn) = (char *(*)) $ac_func ;
11976 #endif
11977 ;
11978 return 0;
11979 }
11980 _ACEOF
11981 if ac_fn_cxx_try_compile "$LINENO"; then :
11982 eval "gcc_cv_have_decl_$ac_func=yes"
11983 else
11984 eval "gcc_cv_have_decl_$ac_func=no"
11985 fi
11986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11987 fi
11988
11989 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11991 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11992 #define $ac_tr_decl 1
11993 _ACEOF
11994
11995 else
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11998 #define $ac_tr_decl 0
11999 _ACEOF
12000
12001 fi
12002
12003 done
12004
12005
12006 for ac_func in sigaltstack
12007 do
12008 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12010 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12011 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12012 $as_echo_n "(cached) " >&6
12013 else
12014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h. */
12016 #undef $ac_tr_decl
12017 #define $ac_tr_decl 1
12018
12019 #include "ansidecl.h"
12020 #include "system.h"
12021 #include <signal.h>
12022
12023
12024 int
12025 main ()
12026 {
12027 #ifndef $ac_func
12028 char *(*pfn) = (char *(*)) $ac_func ;
12029 #endif
12030 ;
12031 return 0;
12032 }
12033 _ACEOF
12034 if ac_fn_cxx_try_compile "$LINENO"; then :
12035 eval "gcc_cv_have_decl_$ac_func=yes"
12036 else
12037 eval "gcc_cv_have_decl_$ac_func=no"
12038 fi
12039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040 fi
12041
12042 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12044 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12045 #define $ac_tr_decl 1
12046 _ACEOF
12047
12048 else
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12051 #define $ac_tr_decl 0
12052 _ACEOF
12053
12054 fi
12055
12056 done
12057
12058
12059 # More time-related stuff.
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12061 $as_echo_n "checking for struct tms... " >&6; }
12062 if ${ac_cv_struct_tms+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065
12066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067 /* end confdefs.h. */
12068
12069 #include "ansidecl.h"
12070 #include "system.h"
12071 #ifdef HAVE_SYS_TIMES_H
12072 #include <sys/times.h>
12073 #endif
12074
12075 int
12076 main ()
12077 {
12078 struct tms tms;
12079 ;
12080 return 0;
12081 }
12082 _ACEOF
12083 if ac_fn_cxx_try_compile "$LINENO"; then :
12084 ac_cv_struct_tms=yes
12085 else
12086 ac_cv_struct_tms=no
12087 fi
12088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12089 fi
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12091 $as_echo "$ac_cv_struct_tms" >&6; }
12092 if test $ac_cv_struct_tms = yes; then
12093
12094 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12095
12096 fi
12097
12098 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12099 # revisit after autoconf 2.50.
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12101 $as_echo_n "checking for clock_t... " >&6; }
12102 if ${gcc_cv_type_clock_t+:} false; then :
12103 $as_echo_n "(cached) " >&6
12104 else
12105
12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12108
12109 #include "ansidecl.h"
12110 #include "system.h"
12111
12112 int
12113 main ()
12114 {
12115 clock_t x;
12116 ;
12117 return 0;
12118 }
12119 _ACEOF
12120 if ac_fn_cxx_try_compile "$LINENO"; then :
12121 gcc_cv_type_clock_t=yes
12122 else
12123 gcc_cv_type_clock_t=no
12124 fi
12125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12126 fi
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12128 $as_echo "$gcc_cv_type_clock_t" >&6; }
12129 if test $gcc_cv_type_clock_t = yes; then
12130
12131 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12132
12133 fi
12134
12135 # Check if F_SETLKW is supported by fcntl.
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12137 $as_echo_n "checking for F_SETLKW... " >&6; }
12138 if ${ac_cv_f_setlkw+:} false; then :
12139 $as_echo_n "(cached) " >&6
12140 else
12141
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12144
12145 #include <fcntl.h>
12146 int
12147 main ()
12148 {
12149
12150 struct flock fl;
12151 fl.l_whence = 0;
12152 fl.l_start = 0;
12153 fl.l_len = 0;
12154 fl.l_pid = 0;
12155 return fcntl (1, F_SETLKW, &fl);
12156 ;
12157 return 0;
12158 }
12159 _ACEOF
12160 if ac_fn_cxx_try_compile "$LINENO"; then :
12161 ac_cv_f_setlkw=yes
12162 else
12163 ac_cv_f_setlkw=no
12164 fi
12165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12166 fi
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12168 $as_echo "$ac_cv_f_setlkw" >&6; }
12169 if test $ac_cv_f_setlkw = yes; then
12170
12171 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12172
12173 fi
12174
12175 # Check if O_CLOEXEC is defined by fcntl
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12177 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12178 if ${ac_cv_o_cloexec+:} false; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12184
12185 #include <fcntl.h>
12186 int
12187 main ()
12188 {
12189
12190 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12191 ;
12192 return 0;
12193 }
12194 _ACEOF
12195 if ac_fn_cxx_try_compile "$LINENO"; then :
12196 ac_cv_o_cloexec=yes
12197 else
12198 ac_cv_o_cloexec=no
12199 fi
12200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12201 fi
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12203 $as_echo "$ac_cv_o_cloexec" >&6; }
12204 if test $ac_cv_o_cloexec = yes; then
12205
12206 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12207
12208 fi
12209
12210 # C++ Modules would like some networking features to provide the mapping
12211 # server. You can still use modules without them though.
12212 # The following network-related checks could probably do with some
12213 # Windows and other non-linux defenses and checking.
12214
12215 # Local socket connectivity wants AF_UNIX networking
12216 # Check for AF_UNIX networking
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12218 $as_echo_n "checking for AF_UNIX... " >&6; }
12219 if ${ac_cv_af_unix+:} false; then :
12220 $as_echo_n "(cached) " >&6
12221 else
12222
12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h. */
12225
12226 #include <sys/types.h>
12227 #include <sys/socket.h>
12228 #include <sys/un.h>
12229 #include <netinet/in.h>
12230 int
12231 main ()
12232 {
12233
12234 sockaddr_un un;
12235 un.sun_family = AF_UNSPEC;
12236 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12237 connect (fd, (sockaddr *)&un, sizeof (un));
12238 ;
12239 return 0;
12240 }
12241 _ACEOF
12242 if ac_fn_cxx_try_compile "$LINENO"; then :
12243 ac_cv_af_unix=yes
12244 else
12245 ac_cv_af_unix=no
12246 fi
12247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12248 fi
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12250 $as_echo "$ac_cv_af_unix" >&6; }
12251 if test $ac_cv_af_unix = yes; then
12252
12253 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12254
12255 fi
12256
12257 # Remote socket connectivity wants AF_INET6 networking
12258 # Check for AF_INET6 networking
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12260 $as_echo_n "checking for AF_INET6... " >&6; }
12261 if ${ac_cv_af_inet6+:} false; then :
12262 $as_echo_n "(cached) " >&6
12263 else
12264
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12267
12268 #include <sys/types.h>
12269 #include <sys/socket.h>
12270 #include <netinet/in.h>
12271 #include <netdb.h>
12272 int
12273 main ()
12274 {
12275
12276 sockaddr_in6 in6;
12277 in6.sin6_family = AF_UNSPEC;
12278 struct addrinfo *addrs = 0;
12279 struct addrinfo hints;
12280 hints.ai_flags = 0;
12281 hints.ai_family = AF_INET6;
12282 hints.ai_socktype = SOCK_STREAM;
12283 hints.ai_protocol = 0;
12284 hints.ai_canonname = 0;
12285 hints.ai_addr = 0;
12286 hints.ai_next = 0;
12287 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12288 const char *str = gai_strerror (e);
12289 freeaddrinfo (addrs);
12290 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12291 connect (fd, (sockaddr *)&in6, sizeof (in6));
12292 ;
12293 return 0;
12294 }
12295 _ACEOF
12296 if ac_fn_cxx_try_compile "$LINENO"; then :
12297 ac_cv_af_inet6=yes
12298 else
12299 ac_cv_af_inet6=no
12300 fi
12301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12302 fi
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12304 $as_echo "$ac_cv_af_inet6" >&6; }
12305 if test $ac_cv_af_inet6 = yes; then
12306
12307 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12308
12309 fi
12310
12311 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12312 CFLAGS="$saved_CFLAGS"
12313 CXXFLAGS="$saved_CXXFLAGS"
12314
12315 # mkdir takes a single argument on some systems.
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12317 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12318 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12322 /* end confdefs.h. */
12323
12324 #include <sys/types.h>
12325 #ifdef HAVE_SYS_STAT_H
12326 # include <sys/stat.h>
12327 #endif
12328 #ifdef HAVE_UNISTD_H
12329 # include <unistd.h>
12330 #endif
12331 #ifdef HAVE_DIRECT_H
12332 # include <direct.h>
12333 #endif
12334 int
12335 main ()
12336 {
12337 mkdir ("foo", 0);
12338 ;
12339 return 0;
12340 }
12341 _ACEOF
12342 if ac_fn_cxx_try_compile "$LINENO"; then :
12343 gcc_cv_mkdir_takes_one_arg=no
12344 else
12345 gcc_cv_mkdir_takes_one_arg=yes
12346 fi
12347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12350 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12351 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12352
12353 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12354
12355 fi
12356
12357
12358 # File extensions
12359 manext='.1'
12360 objext='.o'
12361
12362
12363
12364 # With Setjmp/Longjmp based exception handling.
12365 # Check whether --enable-sjlj-exceptions was given.
12366 if test "${enable_sjlj_exceptions+set}" = set; then :
12367 enableval=$enable_sjlj_exceptions; case $target in
12368 *-*-hpux10*)
12369 if test $enableval != yes; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12371 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12372 enableval=yes
12373 fi
12374 ;;
12375 esac
12376 force_sjlj_exceptions=yes
12377 else
12378 case $target in
12379 *-*-hpux10*)
12380 force_sjlj_exceptions=yes
12381 enableval=yes
12382 ;;
12383 lm32*-*-*)
12384 force_sjlj_exceptions=yes
12385 enableval=yes
12386 ;;
12387 *)
12388 force_sjlj_exceptions=no
12389 ;;
12390 esac
12391 fi
12392
12393 if test $force_sjlj_exceptions = yes; then
12394 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12395
12396 cat >>confdefs.h <<_ACEOF
12397 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12398 _ACEOF
12399
12400 fi
12401
12402 # --------------------------------------------------------
12403 # Build, host, and target specific configuration fragments
12404 # --------------------------------------------------------
12405
12406 # Collect build-machine-specific information.
12407 . ${srcdir}/config.build || exit 1
12408
12409 # Collect host-machine-specific information.
12410 . ${srcdir}/config.host || exit 1
12411
12412 target_gtfiles=
12413
12414 # Collect target-machine-specific information.
12415 . ${srcdir}/config.gcc || exit 1
12416
12417 extra_objs="${host_extra_objs} ${extra_objs}"
12418 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12419
12420 # Default the target-machine variables that were not explicitly set.
12421 if test x"$tm_file" = x
12422 then tm_file=$cpu_type/$cpu_type.h; fi
12423
12424 if test x"$extra_headers" = x
12425 then extra_headers=; fi
12426
12427 if test x$md_file = x
12428 then md_file=$cpu_type/$cpu_type.md; fi
12429
12430 if test x$out_file = x
12431 then out_file=$cpu_type/$cpu_type.c; fi
12432
12433 if test x"$tmake_file" = x
12434 then tmake_file=$cpu_type/t-$cpu_type
12435 fi
12436
12437 # Support --enable-initfini-array.
12438 if test x$enable_initfini_array != xno; then
12439 tm_file="${tm_file} initfini-array.h"
12440 fi
12441
12442 if test x"$dwarf2" = xyes
12443 then tm_file="$tm_file tm-dwarf2.h"
12444 fi
12445
12446 # Say what files are being used for the output code and MD file.
12447 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12448 echo "Using \`$srcdir/config/$md_file' as machine description file."
12449
12450 # If any of the xm_file variables contain nonexistent files, warn
12451 # about them and drop them.
12452
12453 bx=
12454 for x in $build_xm_file; do
12455 if test -f $srcdir/config/$x
12456 then bx="$bx $x"
12457 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12458 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12459 fi
12460 done
12461 build_xm_file="$bx"
12462
12463 hx=
12464 for x in $host_xm_file; do
12465 if test -f $srcdir/config/$x
12466 then hx="$hx $x"
12467 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12468 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12469 fi
12470 done
12471 host_xm_file="$hx"
12472
12473 tx=
12474 for x in $xm_file; do
12475 if test -f $srcdir/config/$x
12476 then tx="$tx $x"
12477 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12478 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12479 fi
12480 done
12481 xm_file="$tx"
12482
12483 count=a
12484 for f in $tm_file; do
12485 count=${count}x
12486 done
12487 if test $count = ax; then
12488 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12489 else
12490 echo "Using the following target machine macro files:"
12491 for f in $tm_file; do
12492 echo " $srcdir/config/$f"
12493 done
12494 fi
12495
12496 if test x$use_long_long_for_widest_fast_int = xyes; then
12497
12498 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12499
12500 fi
12501
12502 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12503
12504 cat >>confdefs.h <<_ACEOF
12505 #define HAVE_GNU_LD $gnu_ld_bool
12506 _ACEOF
12507
12508
12509 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12510
12511 cat >>confdefs.h <<_ACEOF
12512 #define HAVE_GNU_AS $gnu_as_bool
12513 _ACEOF
12514
12515
12516 count=a
12517 for f in $host_xm_file; do
12518 count=${count}x
12519 done
12520 if test $count = a; then
12521 :
12522 elif test $count = ax; then
12523 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12524 else
12525 echo "Using the following host machine macro files:"
12526 for f in $host_xm_file; do
12527 echo " $srcdir/config/$f"
12528 done
12529 fi
12530 echo "Using ${out_host_hook_obj} for host machine hooks."
12531
12532 if test "$host_xm_file" != "$build_xm_file"; then
12533 count=a
12534 for f in $build_xm_file; do
12535 count=${count}x
12536 done
12537 if test $count = a; then
12538 :
12539 elif test $count = ax; then
12540 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12541 else
12542 echo "Using the following build machine macro files:"
12543 for f in $build_xm_file; do
12544 echo " $srcdir/config/$f"
12545 done
12546 fi
12547 fi
12548
12549 if test -n "$configured_native_system_header_dir"; then
12550 native_system_header_dir=$configured_native_system_header_dir
12551 fi
12552 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12553
12554
12555 case ${host} in
12556 powerpc*-*-darwin*)
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12558 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12559 if ${gcc_cv_mcontext_underscores+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12564
12565 #include <sys/cdefs.h>
12566 #include <sys/signal.h>
12567 #include <ucontext.h>
12568 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12569
12570 _ACEOF
12571 if ac_fn_cxx_try_compile "$LINENO"; then :
12572 gcc_cv_mcontext_underscores=no
12573 else
12574 gcc_cv_mcontext_underscores=yes
12575 fi
12576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12577 fi
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12579 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12580 if test $gcc_cv_mcontext_underscores = yes; then
12581
12582 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12583
12584 fi
12585 ;;
12586 esac
12587
12588 # ---------
12589 # Threading
12590 # ---------
12591
12592 # Check if a valid thread package
12593 case ${enable_threads} in
12594 "" | no)
12595 # No threads
12596 target_thread_file='single'
12597 ;;
12598 yes)
12599 # default
12600 target_thread_file='single'
12601 ;;
12602 aix | dce | lynx | mipssde | posix | rtems | \
12603 single | tpf | vxworks | win32)
12604 target_thread_file=${enable_threads}
12605 ;;
12606 *)
12607 echo "${enable_threads} is an unknown thread package" 1>&2
12608 exit 1
12609 ;;
12610 esac
12611
12612 if test x${thread_file} = x; then
12613 # No thread file set by target-specific clauses in config.gcc,
12614 # so use file chosen by default logic above
12615 thread_file=${target_thread_file}
12616 fi
12617
12618 # --------
12619 # UNSORTED
12620 # --------
12621
12622 use_cxa_atexit=no
12623 if test x$enable___cxa_atexit = xyes || \
12624 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12625 if test x$host = x$target; then
12626 case $host in
12627 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12628 # keyed to flag_use_cxa_atexit
12629 *-*-mingw32*)
12630 use_cxa_atexit=yes
12631 ;;
12632 powerpc-ibm-aix*)
12633 use_cxa_atexit=yes
12634 ;;
12635 *)
12636 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12637 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12638 use_cxa_atexit=yes
12639 else
12640 echo "__cxa_atexit can't be enabled on this target"
12641 fi
12642
12643 ;;
12644 esac
12645 else
12646 # We can't check for __cxa_atexit when building a cross, so assume
12647 # it is available
12648 use_cxa_atexit=yes
12649 fi
12650 if test x$use_cxa_atexit = xyes; then
12651
12652 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12653
12654 fi
12655 fi
12656
12657 # Look for a file containing extra machine modes.
12658 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12659 extra_modes_file='$(srcdir)'/config/${extra_modes}
12660
12661
12662 cat >>confdefs.h <<_ACEOF
12663 #define EXTRA_MODES_FILE "config/$extra_modes"
12664 _ACEOF
12665
12666 fi
12667
12668 # Convert extra_options into a form suitable for Makefile use.
12669 extra_opt_files=
12670 all_opt_files=
12671 for f in $extra_options; do
12672 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12673 all_opt_files="$all_opt_files $srcdir/config/$f"
12674 done
12675
12676
12677 # auto-host.h is the file containing items generated by autoconf and is
12678 # the first file included by config.h.
12679 # If host=build, it is correct to have bconfig include auto-host.h
12680 # as well. If host!=build, we are in error and need to do more
12681 # work to find out the build config parameters.
12682 if test x$host = x$build
12683 then
12684 build_auto=auto-host.h
12685 HAVE_AUTO_BUILD='# '
12686 else
12687 # We create a subdir, then run autoconf in the subdir.
12688 # To prevent recursion we set host and build for the new
12689 # invocation of configure to the build for this invocation
12690 # of configure.
12691 tempdir=build.$$
12692 rm -rf $tempdir
12693 mkdir $tempdir
12694 cd $tempdir
12695 case ${srcdir} in
12696 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12697 *) realsrcdir=../${srcdir};;
12698 esac
12699 # Clearing GMPINC is necessary to prevent host headers being
12700 # used by the build compiler. Defining GENERATOR_FILE stops
12701 # system.h from including gmp.h.
12702 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12703 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12704 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12705 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
12706 ${realsrcdir}/configure \
12707 --enable-languages=${enable_languages-all} \
12708 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12709 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12710 --target=$target_alias --host=$build_alias \
12711 --build=$build_alias || exit # retaining $tempdir
12712
12713 # We just finished tests for the build machine, so rename
12714 # the file auto-build.h in the gcc directory.
12715 mv auto-host.h ../auto-build.h
12716 cd ..
12717 rm -rf $tempdir
12718 build_auto=auto-build.h
12719 HAVE_AUTO_BUILD=
12720 fi
12721
12722
12723
12724 tm_file="${tm_file} defaults.h"
12725 tm_p_file="${tm_p_file} tm-preds.h"
12726 tm_d_file="${tm_d_file} defaults.h"
12727 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12728 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12729 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12730 # put this back in temporarily.
12731 xm_file="auto-host.h ansidecl.h ${xm_file}"
12732
12733 # --------
12734 # UNSORTED
12735 # --------
12736
12737 # Compile in configure arguments.
12738 if test -f configargs.h ; then
12739 # Being re-configured.
12740 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12741 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12742 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12743 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12744 fi
12745 else
12746 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12747 fi
12748
12749 # Double all backslashes and backslash all quotes to turn
12750 # gcc_config_arguments into a C string.
12751 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12752 $gcc_config_arguments
12753 EOF
12754 gcc_config_arguments_str=`cat conftest.out`
12755 rm -f conftest.out
12756
12757 cat > configargs.h <<EOF
12758 /* Generated automatically. */
12759 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12760 static const char thread_model[] = "$thread_file";
12761
12762 static const struct {
12763 const char *name, *value;
12764 } configure_default_options[] = $configure_default_options;
12765 EOF
12766
12767 gcc_BASEVER=`cat $srcdir/BASE-VER`
12768 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12769 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12770 if test -f $srcdir/REVISION ; then
12771 gcc_REVISION=`cat $srcdir/REVISION`
12772 else
12773 gcc_REVISION=""
12774 fi
12775 cat > plugin-version.h <<EOF
12776 #include "configargs.h"
12777
12778 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12779 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12780 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12781 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12782
12783 static char basever[] = "$gcc_BASEVER";
12784 static char datestamp[] = "$gcc_DATESTAMP";
12785 static char devphase[] = "$gcc_DEVPHASE";
12786 static char revision[] = "$gcc_REVISION";
12787
12788 /* FIXME plugins: We should make the version information more precise.
12789 One way to do is to add a checksum. */
12790
12791 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12792 devphase, revision,
12793 configuration_arguments};
12794 EOF
12795
12796 # Determine what GCC version number to use in filesystem paths.
12797
12798 get_gcc_base_ver="cat"
12799
12800 # Check whether --with-gcc-major-version-only was given.
12801 if test "${with_gcc_major_version_only+set}" = set; then :
12802 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12803 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12804 fi
12805
12806 fi
12807
12808
12809
12810
12811 # Internationalization
12812 # If we haven't got the data from the intl directory,
12813 # assume NLS is disabled.
12814 USE_NLS=no
12815 LIBINTL=
12816 LIBINTL_DEP=
12817 INCINTL=
12818 XGETTEXT=
12819 GMSGFMT=
12820 POSUB=
12821
12822 if test -f ../intl/config.intl; then
12823 . ../intl/config.intl
12824 fi
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12826 $as_echo_n "checking whether NLS is requested... " >&6; }
12827 if test x"$USE_NLS" != xyes; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829 $as_echo "no" >&6; }
12830 else
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12832 $as_echo "yes" >&6; }
12833
12834 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12835
12836
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12838 $as_echo_n "checking for catalogs to be installed... " >&6; }
12839 # Look for .po and .gmo files in the source directory.
12840 CATALOGS=
12841 XLINGUAS=
12842 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12843 # If there aren't any .gmo files the shell will give us the
12844 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12845 # weeded out.
12846 case "$cat" in *\**)
12847 continue;;
12848 esac
12849 # The quadruple backslash is collapsed to a double backslash
12850 # by the backticks, then collapsed again by the double quotes,
12851 # leaving us with one backslash in the sed expression (right
12852 # before the dot that mustn't act as a wildcard).
12853 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12854 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12855 # The user is allowed to set LINGUAS to a list of languages to
12856 # install catalogs for. If it's empty that means "all of them."
12857 if test "x$LINGUAS" = x; then
12858 CATALOGS="$CATALOGS $cat"
12859 XLINGUAS="$XLINGUAS $lang"
12860 else
12861 case "$LINGUAS" in *$lang*)
12862 CATALOGS="$CATALOGS $cat"
12863 XLINGUAS="$XLINGUAS $lang"
12864 ;;
12865 esac
12866 fi
12867 done
12868 LINGUAS="$XLINGUAS"
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12870 $as_echo "$LINGUAS" >&6; }
12871
12872
12873 DATADIRNAME=share
12874
12875 INSTOBJEXT=.mo
12876
12877 GENCAT=gencat
12878
12879 CATOBJEXT=.gmo
12880
12881 fi
12882
12883 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12884 # -liconv on the link line twice.
12885 case "$LIBINTL" in *$LIBICONV*)
12886 LIBICONV= ;;
12887 esac
12888
12889 # Check whether --enable-secureplt was given.
12890 if test "${enable_secureplt+set}" = set; then :
12891 enableval=$enable_secureplt;
12892 fi
12893
12894
12895 # Check whether --enable-mingw-wildcard was given.
12896 if test "${enable_mingw_wildcard+set}" = set; then :
12897 enableval=$enable_mingw_wildcard;
12898 else
12899 enable_mingw_wildcard=platform
12900 fi
12901
12902 if test x"$enable_mingw_wildcard" != xplatform ; then :
12903
12904 cat >>confdefs.h <<_ACEOF
12905 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12906 _ACEOF
12907
12908 fi
12909
12910 # Check whether --enable-large-address-aware was given.
12911 if test "${enable_large_address_aware+set}" = set; then :
12912 enableval=$enable_large_address_aware;
12913 fi
12914
12915 if test x"$enable_large_address_aware" = xyes; then :
12916
12917 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12918
12919 fi
12920
12921 # Check whether --enable-leading-mingw64-underscores was given.
12922 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12923 enableval=$enable_leading_mingw64_underscores;
12924 fi
12925
12926 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12927
12928 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12929
12930 fi
12931
12932 # Check whether --enable-cld was given.
12933 if test "${enable_cld+set}" = set; then :
12934 enableval=$enable_cld;
12935 else
12936 enable_cld=no
12937 fi
12938
12939
12940 # Check whether --enable-frame-pointer was given.
12941 if test "${enable_frame_pointer+set}" = set; then :
12942 enableval=$enable_frame_pointer;
12943 else
12944
12945 case $target_os in
12946 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12947 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12948 enable_frame_pointer=no
12949 ;;
12950 *)
12951 enable_frame_pointer=yes
12952 ;;
12953 esac
12954
12955 fi
12956
12957
12958 case $target in
12959 i[34567]86-*-* | x86_64-*-*)
12960 if test "x$enable_cld" = xyes; then
12961 tm_defines="${tm_defines} USE_IX86_CLD=1"
12962 fi
12963 if test "x$enable_frame_pointer" = xyes; then
12964 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12965 fi
12966 ;;
12967 esac
12968
12969 # Windows32 Registry support for specifying GCC installation paths.
12970 # Check whether --enable-win32-registry was given.
12971 if test "${enable_win32_registry+set}" = set; then :
12972 enableval=$enable_win32_registry;
12973 fi
12974
12975
12976 case $host_os in
12977 win32 | pe | cygwin* | mingw32*)
12978 if test "x$enable_win32_registry" != xno; then
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12980 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12981 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12982 $as_echo_n "(cached) " >&6
12983 else
12984 ac_func_search_save_LIBS=$LIBS
12985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h. */
12987
12988 /* Override any GCC internal prototype to avoid an error.
12989 Use char because int might match the return type of a GCC
12990 builtin and then its argument prototype would still apply. */
12991 #ifdef __cplusplus
12992 extern "C"
12993 #endif
12994 char RegOpenKeyExA ();
12995 int
12996 main ()
12997 {
12998 return RegOpenKeyExA ();
12999 ;
13000 return 0;
13001 }
13002 _ACEOF
13003 for ac_lib in '' advapi32; do
13004 if test -z "$ac_lib"; then
13005 ac_res="none required"
13006 else
13007 ac_res=-l$ac_lib
13008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13009 fi
13010 if ac_fn_cxx_try_link "$LINENO"; then :
13011 ac_cv_search_RegOpenKeyExA=$ac_res
13012 fi
13013 rm -f core conftest.err conftest.$ac_objext \
13014 conftest$ac_exeext
13015 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13016 break
13017 fi
13018 done
13019 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13020
13021 else
13022 ac_cv_search_RegOpenKeyExA=no
13023 fi
13024 rm conftest.$ac_ext
13025 LIBS=$ac_func_search_save_LIBS
13026 fi
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13028 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13029 ac_res=$ac_cv_search_RegOpenKeyExA
13030 if test "$ac_res" != no; then :
13031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13032
13033 else
13034 enable_win32_registry=no
13035 fi
13036
13037 fi
13038
13039 if test "x$enable_win32_registry" != xno; then
13040
13041 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13042
13043
13044 if test "x$enable_win32_registry" != xyes \
13045 && test "x$enable_win32_registry" != x; then
13046
13047 cat >>confdefs.h <<_ACEOF
13048 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13049 _ACEOF
13050
13051 fi
13052 fi
13053 ;;
13054 esac
13055
13056 # Get an absolute path to the GCC top-level source directory
13057 holddir=`${PWDCMD-pwd}`
13058 cd $srcdir
13059 topdir=`${PWDCMD-pwd}`
13060 cd $holddir
13061
13062 # Conditionalize the makefile for this host machine.
13063 xmake_file=
13064 for f in ${host_xmake_file}
13065 do
13066 if test -f ${srcdir}/config/$f
13067 then
13068 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13069 fi
13070 done
13071
13072 # Conditionalize the makefile for this target machine.
13073 tmake_file_=
13074 for f in ${tmake_file}
13075 do
13076 if test -f ${srcdir}/config/$f
13077 then
13078 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13079 fi
13080 done
13081 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13082
13083 out_object_file=`basename $out_file .c`.o
13084 common_out_object_file=`basename $common_out_file .c`.o
13085
13086 tm_file_list="options.h"
13087 tm_include_list="options.h insn-constants.h"
13088 for f in $tm_file; do
13089 case $f in
13090 ./* )
13091 f=`echo $f | sed 's/^..//'`
13092 tm_file_list="${tm_file_list} $f"
13093 tm_include_list="${tm_include_list} $f"
13094 ;;
13095 defaults.h )
13096 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13097 tm_include_list="${tm_include_list} $f"
13098 ;;
13099 * )
13100 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13101 tm_include_list="${tm_include_list} config/$f"
13102 ;;
13103 esac
13104 done
13105
13106 tm_p_file_list=
13107 tm_p_include_list=
13108 for f in $tm_p_file; do
13109 case $f in
13110 tm-preds.h )
13111 tm_p_file_list="${tm_p_file_list} $f"
13112 tm_p_include_list="${tm_p_include_list} $f"
13113 ;;
13114 * )
13115 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13116 tm_p_include_list="${tm_p_include_list} config/$f"
13117 esac
13118 done
13119
13120 tm_d_file_list=
13121 tm_d_include_list="options.h insn-constants.h"
13122 for f in $tm_d_file; do
13123 case $f in
13124 defaults.h )
13125 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
13126 tm_d_include_list="${tm_d_include_list} $f"
13127 ;;
13128 * )
13129 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13130 tm_d_include_list="${tm_d_include_list} config/$f"
13131 ;;
13132 esac
13133 done
13134
13135 xm_file_list=
13136 xm_include_list=
13137 for f in $xm_file; do
13138 case $f in
13139 ansidecl.h )
13140 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13141 xm_include_list="${xm_include_list} $f"
13142 ;;
13143 auto-host.h )
13144 xm_file_list="${xm_file_list} $f"
13145 xm_include_list="${xm_include_list} $f"
13146 ;;
13147 * )
13148 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13149 xm_include_list="${xm_include_list} config/$f"
13150 ;;
13151 esac
13152 done
13153
13154 host_xm_file_list=
13155 host_xm_include_list=
13156 for f in $host_xm_file; do
13157 case $f in
13158 ansidecl.h )
13159 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13160 host_xm_include_list="${host_xm_include_list} $f"
13161 ;;
13162 auto-host.h )
13163 host_xm_file_list="${host_xm_file_list} $f"
13164 host_xm_include_list="${host_xm_include_list} $f"
13165 ;;
13166 * )
13167 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13168 host_xm_include_list="${host_xm_include_list} config/$f"
13169 ;;
13170 esac
13171 done
13172
13173 build_xm_file_list=
13174 for f in $build_xm_file; do
13175 case $f in
13176 ansidecl.h )
13177 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13178 build_xm_include_list="${build_xm_include_list} $f"
13179 ;;
13180 auto-build.h | auto-host.h )
13181 build_xm_file_list="${build_xm_file_list} $f"
13182 build_xm_include_list="${build_xm_include_list} $f"
13183 ;;
13184 * )
13185 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13186 build_xm_include_list="${build_xm_include_list} config/$f"
13187 ;;
13188 esac
13189 done
13190
13191 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13192 # cross-compiler which does not use the native headers and libraries.
13193 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13194 CROSS=
13195 ALL=all.internal
13196 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13197 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13198
13199 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13200 test x$build != x$host || test "x$with_build_sysroot" != x; then
13201 if test "x$with_build_sysroot" != x; then
13202 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13203 else
13204 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13205 fi
13206
13207 if test x$host != x$target
13208 then
13209 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13210 ALL=all.cross
13211 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13212 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13213 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13214 fi
13215
13216 if test "x$with_build_sysroot" != "x"; then
13217 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13218 elif test "x$with_sysroot" = x; then
13219 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13220 elif test "x$with_sysroot" = xyes; then
13221 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13222 else
13223 target_header_dir="${with_sysroot}${native_system_header_dir}"
13224 fi
13225 else
13226 target_header_dir=${native_system_header_dir}
13227 fi
13228
13229 # If this is a cross-compiler that does not
13230 # have its own set of headers then define
13231 # inhibit_libc
13232
13233 # If this is using newlib, without having the headers available now,
13234 # then define inhibit_libc in LIBGCC2_CFLAGS.
13235 # This prevents libgcc2 from containing any code which requires libc
13236 # support.
13237 : ${inhibit_libc=false}
13238 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13239 test x$with_newlib = xyes ; } &&
13240 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13241 inhibit_libc=true
13242 fi
13243
13244
13245 # When building gcc with a cross-compiler, we need to adjust things so
13246 # that the generator programs are still built with the native compiler.
13247 # Also, we cannot run fixincludes.
13248
13249 # These are the normal (build=host) settings:
13250 CC_FOR_BUILD='$(CC)'
13251 CXX_FOR_BUILD='$(CXX)'
13252 BUILD_CFLAGS='$(ALL_CFLAGS)'
13253 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13254 BUILD_LDFLAGS='$(LDFLAGS)'
13255 STMP_FIXINC=stmp-fixinc
13256
13257 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
13258 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
13259
13260 # And these apply if build != host, or we are generating coverage data
13261 if test x$build != x$host || test "x$coverage_flags" != x
13262 then
13263 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13264 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
13265 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13266
13267 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
13268 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
13269 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
13270 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
13271 fi
13272
13273
13274
13275 # Expand extra_headers to include complete path.
13276 # This substitutes for lots of t-* files.
13277 extra_headers_list=
13278 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13279 for file in ${extra_headers} ; do
13280 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13281 done
13282
13283 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13284 if test x"$use_gcc_tgmath" = xyes
13285 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13286 fi
13287
13288 # Define collect2 in Makefile.
13289 case $host_can_use_collect2 in
13290 no) collect2= ;;
13291 *) collect2='collect2$(exeext)' ;;
13292 esac
13293
13294
13295 # Add a definition of USE_COLLECT2 if system wants one.
13296 case $use_collect2 in
13297 no) use_collect2= ;;
13298 "") ;;
13299 *)
13300 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13301 xm_defines="${xm_defines} USE_COLLECT2"
13302 case $host_can_use_collect2 in
13303 no)
13304 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13305 ;;
13306 esac
13307 ;;
13308 esac
13309
13310
13311 cat >>confdefs.h <<_ACEOF
13312 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13313 _ACEOF
13314
13315
13316 # ---------------------------
13317 # Assembler & linker features
13318 # ---------------------------
13319
13320 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13321 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13322 # However when ld-new is first executed from the build tree, libtool will
13323 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13324 # to the build tree. While doing this we need to use the previous-stage
13325 # linker, or we have an infinite loop. The presence of a shell script as
13326 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13327 # the gcc/collect-ld script. So we need to know how libtool works, or
13328 # exec-tool will fail.
13329
13330
13331 case `pwd` in
13332 *\ * | *\ *)
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13334 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13335 esac
13336
13337
13338
13339 macro_version='2.2.7a'
13340 macro_revision='1.3134'
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354 ltmain="$ac_aux_dir/ltmain.sh"
13355
13356 # Backslashify metacharacters that are still active within
13357 # double-quoted strings.
13358 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13359
13360 # Same as above, but do not quote variable references.
13361 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13362
13363 # Sed substitution to delay expansion of an escaped shell variable in a
13364 # double_quote_subst'ed string.
13365 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13366
13367 # Sed substitution to delay expansion of an escaped single quote.
13368 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13369
13370 # Sed substitution to avoid accidental globbing in evaled expressions
13371 no_glob_subst='s/\*/\\\*/g'
13372
13373 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13374 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13375 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13376
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13378 $as_echo_n "checking how to print strings... " >&6; }
13379 # Test print first, because it will be a builtin if present.
13380 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13381 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13382 ECHO='print -r --'
13383 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13384 ECHO='printf %s\n'
13385 else
13386 # Use this function as a fallback that always works.
13387 func_fallback_echo ()
13388 {
13389 eval 'cat <<_LTECHO_EOF
13390 $1
13391 _LTECHO_EOF'
13392 }
13393 ECHO='func_fallback_echo'
13394 fi
13395
13396 # func_echo_all arg...
13397 # Invoke $ECHO with all args, space-separated.
13398 func_echo_all ()
13399 {
13400 $ECHO ""
13401 }
13402
13403 case "$ECHO" in
13404 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13405 $as_echo "printf" >&6; } ;;
13406 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13407 $as_echo "print -r" >&6; } ;;
13408 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13409 $as_echo "cat" >&6; } ;;
13410 esac
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13426 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13427 if ${ac_cv_path_SED+:} false; then :
13428 $as_echo_n "(cached) " >&6
13429 else
13430 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13431 for ac_i in 1 2 3 4 5 6 7; do
13432 ac_script="$ac_script$as_nl$ac_script"
13433 done
13434 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13435 { ac_script=; unset ac_script;}
13436 if test -z "$SED"; then
13437 ac_path_SED_found=false
13438 # Loop through the user's path and test for each of PROGNAME-LIST
13439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13440 for as_dir in $PATH
13441 do
13442 IFS=$as_save_IFS
13443 test -z "$as_dir" && as_dir=.
13444 for ac_prog in sed gsed; do
13445 for ac_exec_ext in '' $ac_executable_extensions; do
13446 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13447 as_fn_executable_p "$ac_path_SED" || continue
13448 # Check for GNU ac_path_SED and select it if it is found.
13449 # Check for GNU $ac_path_SED
13450 case `"$ac_path_SED" --version 2>&1` in
13451 *GNU*)
13452 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13453 *)
13454 ac_count=0
13455 $as_echo_n 0123456789 >"conftest.in"
13456 while :
13457 do
13458 cat "conftest.in" "conftest.in" >"conftest.tmp"
13459 mv "conftest.tmp" "conftest.in"
13460 cp "conftest.in" "conftest.nl"
13461 $as_echo '' >> "conftest.nl"
13462 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13463 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13464 as_fn_arith $ac_count + 1 && ac_count=$as_val
13465 if test $ac_count -gt ${ac_path_SED_max-0}; then
13466 # Best one so far, save it but keep looking for a better one
13467 ac_cv_path_SED="$ac_path_SED"
13468 ac_path_SED_max=$ac_count
13469 fi
13470 # 10*(2^10) chars as input seems more than enough
13471 test $ac_count -gt 10 && break
13472 done
13473 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13474 esac
13475
13476 $ac_path_SED_found && break 3
13477 done
13478 done
13479 done
13480 IFS=$as_save_IFS
13481 if test -z "$ac_cv_path_SED"; then
13482 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13483 fi
13484 else
13485 ac_cv_path_SED=$SED
13486 fi
13487
13488 fi
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13490 $as_echo "$ac_cv_path_SED" >&6; }
13491 SED="$ac_cv_path_SED"
13492 rm -f conftest.sed
13493
13494 test -z "$SED" && SED=sed
13495 Xsed="$SED -e 1s/^X//"
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13508 $as_echo_n "checking for fgrep... " >&6; }
13509 if ${ac_cv_path_FGREP+:} false; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13513 then ac_cv_path_FGREP="$GREP -F"
13514 else
13515 if test -z "$FGREP"; then
13516 ac_path_FGREP_found=false
13517 # Loop through the user's path and test for each of PROGNAME-LIST
13518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13519 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13520 do
13521 IFS=$as_save_IFS
13522 test -z "$as_dir" && as_dir=.
13523 for ac_prog in fgrep; do
13524 for ac_exec_ext in '' $ac_executable_extensions; do
13525 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13526 as_fn_executable_p "$ac_path_FGREP" || continue
13527 # Check for GNU ac_path_FGREP and select it if it is found.
13528 # Check for GNU $ac_path_FGREP
13529 case `"$ac_path_FGREP" --version 2>&1` in
13530 *GNU*)
13531 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13532 *)
13533 ac_count=0
13534 $as_echo_n 0123456789 >"conftest.in"
13535 while :
13536 do
13537 cat "conftest.in" "conftest.in" >"conftest.tmp"
13538 mv "conftest.tmp" "conftest.in"
13539 cp "conftest.in" "conftest.nl"
13540 $as_echo 'FGREP' >> "conftest.nl"
13541 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13543 as_fn_arith $ac_count + 1 && ac_count=$as_val
13544 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13545 # Best one so far, save it but keep looking for a better one
13546 ac_cv_path_FGREP="$ac_path_FGREP"
13547 ac_path_FGREP_max=$ac_count
13548 fi
13549 # 10*(2^10) chars as input seems more than enough
13550 test $ac_count -gt 10 && break
13551 done
13552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13553 esac
13554
13555 $ac_path_FGREP_found && break 3
13556 done
13557 done
13558 done
13559 IFS=$as_save_IFS
13560 if test -z "$ac_cv_path_FGREP"; then
13561 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13562 fi
13563 else
13564 ac_cv_path_FGREP=$FGREP
13565 fi
13566
13567 fi
13568 fi
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13570 $as_echo "$ac_cv_path_FGREP" >&6; }
13571 FGREP="$ac_cv_path_FGREP"
13572
13573
13574 test -z "$GREP" && GREP=grep
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594 # Check whether --with-gnu-ld was given.
13595 if test "${with_gnu_ld+set}" = set; then :
13596 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13597 else
13598 with_gnu_ld=no
13599 fi
13600
13601 ac_prog=ld
13602 if test "$GCC" = yes; then
13603 # Check if gcc -print-prog-name=ld gives a path.
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13605 $as_echo_n "checking for ld used by $CC... " >&6; }
13606 case $host in
13607 *-*-mingw*)
13608 # gcc leaves a trailing carriage return which upsets mingw
13609 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13610 *)
13611 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13612 esac
13613 case $ac_prog in
13614 # Accept absolute paths.
13615 [\\/]* | ?:[\\/]*)
13616 re_direlt='/[^/][^/]*/\.\./'
13617 # Canonicalize the pathname of ld
13618 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13619 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13620 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13621 done
13622 test -z "$LD" && LD="$ac_prog"
13623 ;;
13624 "")
13625 # If it fails, then pretend we aren't using GCC.
13626 ac_prog=ld
13627 ;;
13628 *)
13629 # If it is relative, then search for the first ld in PATH.
13630 with_gnu_ld=unknown
13631 ;;
13632 esac
13633 elif test "$with_gnu_ld" = yes; then
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13635 $as_echo_n "checking for GNU ld... " >&6; }
13636 else
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13638 $as_echo_n "checking for non-GNU ld... " >&6; }
13639 fi
13640 if ${lt_cv_path_LD+:} false; then :
13641 $as_echo_n "(cached) " >&6
13642 else
13643 if test -z "$LD"; then
13644 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13645 for ac_dir in $PATH; do
13646 IFS="$lt_save_ifs"
13647 test -z "$ac_dir" && ac_dir=.
13648 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13649 lt_cv_path_LD="$ac_dir/$ac_prog"
13650 # Check to see if the program is GNU ld. I'd rather use --version,
13651 # but apparently some variants of GNU ld only accept -v.
13652 # Break only if it was the GNU/non-GNU ld that we prefer.
13653 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13654 *GNU* | *'with BFD'*)
13655 test "$with_gnu_ld" != no && break
13656 ;;
13657 *)
13658 test "$with_gnu_ld" != yes && break
13659 ;;
13660 esac
13661 fi
13662 done
13663 IFS="$lt_save_ifs"
13664 else
13665 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13666 fi
13667 fi
13668
13669 LD="$lt_cv_path_LD"
13670 if test -n "$LD"; then
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13672 $as_echo "$LD" >&6; }
13673 else
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13676 fi
13677 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13679 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13680 if ${lt_cv_prog_gnu_ld+:} false; then :
13681 $as_echo_n "(cached) " >&6
13682 else
13683 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13684 case `$LD -v 2>&1 </dev/null` in
13685 *GNU* | *'with BFD'*)
13686 lt_cv_prog_gnu_ld=yes
13687 ;;
13688 *)
13689 lt_cv_prog_gnu_ld=no
13690 ;;
13691 esac
13692 fi
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13694 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13695 with_gnu_ld=$lt_cv_prog_gnu_ld
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13706 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13707 if ${lt_cv_path_NM+:} false; then :
13708 $as_echo_n "(cached) " >&6
13709 else
13710 if test -n "$NM"; then
13711 # Let the user override the test.
13712 lt_cv_path_NM="$NM"
13713 else
13714 lt_nm_to_check="${ac_tool_prefix}nm"
13715 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13716 lt_nm_to_check="$lt_nm_to_check nm"
13717 fi
13718 for lt_tmp_nm in $lt_nm_to_check; do
13719 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13720 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13721 IFS="$lt_save_ifs"
13722 test -z "$ac_dir" && ac_dir=.
13723 tmp_nm="$ac_dir/$lt_tmp_nm"
13724 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13725 # Check to see if the nm accepts a BSD-compat flag.
13726 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13727 # nm: unknown option "B" ignored
13728 # Tru64's nm complains that /dev/null is an invalid object file
13729 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13730 */dev/null* | *'Invalid file or object type'*)
13731 lt_cv_path_NM="$tmp_nm -B"
13732 break
13733 ;;
13734 *)
13735 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13736 */dev/null*)
13737 lt_cv_path_NM="$tmp_nm -p"
13738 break
13739 ;;
13740 *)
13741 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13742 continue # so that we can try to find one that supports BSD flags
13743 ;;
13744 esac
13745 ;;
13746 esac
13747 fi
13748 done
13749 IFS="$lt_save_ifs"
13750 done
13751 : ${lt_cv_path_NM=no}
13752 fi
13753 fi
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13755 $as_echo "$lt_cv_path_NM" >&6; }
13756 if test "$lt_cv_path_NM" != "no"; then
13757 NM="$lt_cv_path_NM"
13758 else
13759 # Didn't find any BSD compatible name lister, look for dumpbin.
13760 if test -n "$DUMPBIN"; then :
13761 # Let the user override the test.
13762 else
13763 if test -n "$ac_tool_prefix"; then
13764 for ac_prog in dumpbin "link -dump"
13765 do
13766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13769 $as_echo_n "checking for $ac_word... " >&6; }
13770 if ${ac_cv_prog_DUMPBIN+:} false; then :
13771 $as_echo_n "(cached) " >&6
13772 else
13773 if test -n "$DUMPBIN"; then
13774 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13775 else
13776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13777 for as_dir in $PATH
13778 do
13779 IFS=$as_save_IFS
13780 test -z "$as_dir" && as_dir=.
13781 for ac_exec_ext in '' $ac_executable_extensions; do
13782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13783 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13785 break 2
13786 fi
13787 done
13788 done
13789 IFS=$as_save_IFS
13790
13791 fi
13792 fi
13793 DUMPBIN=$ac_cv_prog_DUMPBIN
13794 if test -n "$DUMPBIN"; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13796 $as_echo "$DUMPBIN" >&6; }
13797 else
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13799 $as_echo "no" >&6; }
13800 fi
13801
13802
13803 test -n "$DUMPBIN" && break
13804 done
13805 fi
13806 if test -z "$DUMPBIN"; then
13807 ac_ct_DUMPBIN=$DUMPBIN
13808 for ac_prog in dumpbin "link -dump"
13809 do
13810 # Extract the first word of "$ac_prog", so it can be a program name with args.
13811 set dummy $ac_prog; ac_word=$2
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13813 $as_echo_n "checking for $ac_word... " >&6; }
13814 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13815 $as_echo_n "(cached) " >&6
13816 else
13817 if test -n "$ac_ct_DUMPBIN"; then
13818 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13819 else
13820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13821 for as_dir in $PATH
13822 do
13823 IFS=$as_save_IFS
13824 test -z "$as_dir" && as_dir=.
13825 for ac_exec_ext in '' $ac_executable_extensions; do
13826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13827 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13829 break 2
13830 fi
13831 done
13832 done
13833 IFS=$as_save_IFS
13834
13835 fi
13836 fi
13837 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13838 if test -n "$ac_ct_DUMPBIN"; then
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13840 $as_echo "$ac_ct_DUMPBIN" >&6; }
13841 else
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13843 $as_echo "no" >&6; }
13844 fi
13845
13846
13847 test -n "$ac_ct_DUMPBIN" && break
13848 done
13849
13850 if test "x$ac_ct_DUMPBIN" = x; then
13851 DUMPBIN=":"
13852 else
13853 case $cross_compiling:$ac_tool_warned in
13854 yes:)
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13857 ac_tool_warned=yes ;;
13858 esac
13859 DUMPBIN=$ac_ct_DUMPBIN
13860 fi
13861 fi
13862
13863 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13864 *COFF*)
13865 DUMPBIN="$DUMPBIN -symbols"
13866 ;;
13867 *)
13868 DUMPBIN=:
13869 ;;
13870 esac
13871 fi
13872
13873 if test "$DUMPBIN" != ":"; then
13874 NM="$DUMPBIN"
13875 fi
13876 fi
13877 test -z "$NM" && NM=nm
13878
13879
13880
13881
13882
13883
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13885 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13886 if ${lt_cv_nm_interface+:} false; then :
13887 $as_echo_n "(cached) " >&6
13888 else
13889 lt_cv_nm_interface="BSD nm"
13890 echo "int some_variable = 0;" > conftest.$ac_ext
13891 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13892 (eval "$ac_compile" 2>conftest.err)
13893 cat conftest.err >&5
13894 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13895 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13896 cat conftest.err >&5
13897 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13898 cat conftest.out >&5
13899 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13900 lt_cv_nm_interface="MS dumpbin"
13901 fi
13902 rm -f conftest*
13903 fi
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13905 $as_echo "$lt_cv_nm_interface" >&6; }
13906
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13908 $as_echo_n "checking whether ln -s works... " >&6; }
13909 LN_S=$as_ln_s
13910 if test "$LN_S" = "ln -s"; then
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13912 $as_echo "yes" >&6; }
13913 else
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13915 $as_echo "no, using $LN_S" >&6; }
13916 fi
13917
13918 # find the maximum length of command line arguments
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13920 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13921 if ${lt_cv_sys_max_cmd_len+:} false; then :
13922 $as_echo_n "(cached) " >&6
13923 else
13924 i=0
13925 teststring="ABCD"
13926
13927 case $build_os in
13928 msdosdjgpp*)
13929 # On DJGPP, this test can blow up pretty badly due to problems in libc
13930 # (any single argument exceeding 2000 bytes causes a buffer overrun
13931 # during glob expansion). Even if it were fixed, the result of this
13932 # check would be larger than it should be.
13933 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13934 ;;
13935
13936 gnu*)
13937 # Under GNU Hurd, this test is not required because there is
13938 # no limit to the length of command line arguments.
13939 # Libtool will interpret -1 as no limit whatsoever
13940 lt_cv_sys_max_cmd_len=-1;
13941 ;;
13942
13943 cygwin* | mingw* | cegcc*)
13944 # On Win9x/ME, this test blows up -- it succeeds, but takes
13945 # about 5 minutes as the teststring grows exponentially.
13946 # Worse, since 9x/ME are not pre-emptively multitasking,
13947 # you end up with a "frozen" computer, even though with patience
13948 # the test eventually succeeds (with a max line length of 256k).
13949 # Instead, let's just punt: use the minimum linelength reported by
13950 # all of the supported platforms: 8192 (on NT/2K/XP).
13951 lt_cv_sys_max_cmd_len=8192;
13952 ;;
13953
13954 mint*)
13955 # On MiNT this can take a long time and run out of memory.
13956 lt_cv_sys_max_cmd_len=8192;
13957 ;;
13958
13959 amigaos*)
13960 # On AmigaOS with pdksh, this test takes hours, literally.
13961 # So we just punt and use a minimum line length of 8192.
13962 lt_cv_sys_max_cmd_len=8192;
13963 ;;
13964
13965 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13966 # This has been around since 386BSD, at least. Likely further.
13967 if test -x /sbin/sysctl; then
13968 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13969 elif test -x /usr/sbin/sysctl; then
13970 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13971 else
13972 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13973 fi
13974 # And add a safety zone
13975 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13977 ;;
13978
13979 interix*)
13980 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13981 lt_cv_sys_max_cmd_len=196608
13982 ;;
13983
13984 osf*)
13985 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13986 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13987 # nice to cause kernel panics so lets avoid the loop below.
13988 # First set a reasonable default.
13989 lt_cv_sys_max_cmd_len=16384
13990 #
13991 if test -x /sbin/sysconfig; then
13992 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13993 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13994 esac
13995 fi
13996 ;;
13997 sco3.2v5*)
13998 lt_cv_sys_max_cmd_len=102400
13999 ;;
14000 sysv5* | sco5v6* | sysv4.2uw2*)
14001 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14002 if test -n "$kargmax"; then
14003 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14004 else
14005 lt_cv_sys_max_cmd_len=32768
14006 fi
14007 ;;
14008 *)
14009 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14010 if test -n "$lt_cv_sys_max_cmd_len"; then
14011 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14012 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14013 else
14014 # Make teststring a little bigger before we do anything with it.
14015 # a 1K string should be a reasonable start.
14016 for i in 1 2 3 4 5 6 7 8 ; do
14017 teststring=$teststring$teststring
14018 done
14019 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14020 # If test is not a shell built-in, we'll probably end up computing a
14021 # maximum length that is only half of the actual maximum length, but
14022 # we can't tell.
14023 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14024 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14025 test $i != 17 # 1/2 MB should be enough
14026 do
14027 i=`expr $i + 1`
14028 teststring=$teststring$teststring
14029 done
14030 # Only check the string length outside the loop.
14031 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14032 teststring=
14033 # Add a significant safety factor because C++ compilers can tack on
14034 # massive amounts of additional arguments before passing them to the
14035 # linker. It appears as though 1/2 is a usable value.
14036 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14037 fi
14038 ;;
14039 esac
14040
14041 fi
14042
14043 if test -n $lt_cv_sys_max_cmd_len ; then
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14045 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14046 else
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14048 $as_echo "none" >&6; }
14049 fi
14050 max_cmd_len=$lt_cv_sys_max_cmd_len
14051
14052
14053
14054
14055
14056
14057 : ${CP="cp -f"}
14058 : ${MV="mv -f"}
14059 : ${RM="rm -f"}
14060
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14062 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14063 # Try some XSI features
14064 xsi_shell=no
14065 ( _lt_dummy="a/b/c"
14066 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14067 = c,a/b,, \
14068 && eval 'test $(( 1 + 1 )) -eq 2 \
14069 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14070 && xsi_shell=yes
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14072 $as_echo "$xsi_shell" >&6; }
14073
14074
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14076 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14077 lt_shell_append=no
14078 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14079 >/dev/null 2>&1 \
14080 && lt_shell_append=yes
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14082 $as_echo "$lt_shell_append" >&6; }
14083
14084
14085 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14086 lt_unset=unset
14087 else
14088 lt_unset=false
14089 fi
14090
14091
14092
14093
14094
14095 # test EBCDIC or ASCII
14096 case `echo X|tr X '\101'` in
14097 A) # ASCII based system
14098 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14099 lt_SP2NL='tr \040 \012'
14100 lt_NL2SP='tr \015\012 \040\040'
14101 ;;
14102 *) # EBCDIC based system
14103 lt_SP2NL='tr \100 \n'
14104 lt_NL2SP='tr \r\n \100\100'
14105 ;;
14106 esac
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14117 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14118 if ${lt_cv_ld_reload_flag+:} false; then :
14119 $as_echo_n "(cached) " >&6
14120 else
14121 lt_cv_ld_reload_flag='-r'
14122 fi
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14124 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14125 reload_flag=$lt_cv_ld_reload_flag
14126 case $reload_flag in
14127 "" | " "*) ;;
14128 *) reload_flag=" $reload_flag" ;;
14129 esac
14130 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14131 case $host_os in
14132 darwin*)
14133 if test "$GCC" = yes; then
14134 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14135 else
14136 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14137 fi
14138 ;;
14139 esac
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149 if test -n "$ac_tool_prefix"; then
14150 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14151 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14153 $as_echo_n "checking for $ac_word... " >&6; }
14154 if ${ac_cv_prog_OBJDUMP+:} false; then :
14155 $as_echo_n "(cached) " >&6
14156 else
14157 if test -n "$OBJDUMP"; then
14158 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14159 else
14160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14161 for as_dir in $PATH
14162 do
14163 IFS=$as_save_IFS
14164 test -z "$as_dir" && as_dir=.
14165 for ac_exec_ext in '' $ac_executable_extensions; do
14166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14167 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14169 break 2
14170 fi
14171 done
14172 done
14173 IFS=$as_save_IFS
14174
14175 fi
14176 fi
14177 OBJDUMP=$ac_cv_prog_OBJDUMP
14178 if test -n "$OBJDUMP"; then
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14180 $as_echo "$OBJDUMP" >&6; }
14181 else
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14183 $as_echo "no" >&6; }
14184 fi
14185
14186
14187 fi
14188 if test -z "$ac_cv_prog_OBJDUMP"; then
14189 ac_ct_OBJDUMP=$OBJDUMP
14190 # Extract the first word of "objdump", so it can be a program name with args.
14191 set dummy objdump; ac_word=$2
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14193 $as_echo_n "checking for $ac_word... " >&6; }
14194 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14195 $as_echo_n "(cached) " >&6
14196 else
14197 if test -n "$ac_ct_OBJDUMP"; then
14198 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14199 else
14200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14201 for as_dir in $PATH
14202 do
14203 IFS=$as_save_IFS
14204 test -z "$as_dir" && as_dir=.
14205 for ac_exec_ext in '' $ac_executable_extensions; do
14206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14207 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14209 break 2
14210 fi
14211 done
14212 done
14213 IFS=$as_save_IFS
14214
14215 fi
14216 fi
14217 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14218 if test -n "$ac_ct_OBJDUMP"; then
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14220 $as_echo "$ac_ct_OBJDUMP" >&6; }
14221 else
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14223 $as_echo "no" >&6; }
14224 fi
14225
14226 if test "x$ac_ct_OBJDUMP" = x; then
14227 OBJDUMP="false"
14228 else
14229 case $cross_compiling:$ac_tool_warned in
14230 yes:)
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14233 ac_tool_warned=yes ;;
14234 esac
14235 OBJDUMP=$ac_ct_OBJDUMP
14236 fi
14237 else
14238 OBJDUMP="$ac_cv_prog_OBJDUMP"
14239 fi
14240
14241 test -z "$OBJDUMP" && OBJDUMP=objdump
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14252 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14253 if ${lt_cv_deplibs_check_method+:} false; then :
14254 $as_echo_n "(cached) " >&6
14255 else
14256 lt_cv_file_magic_cmd='$MAGIC_CMD'
14257 lt_cv_file_magic_test_file=
14258 lt_cv_deplibs_check_method='unknown'
14259 # Need to set the preceding variable on all platforms that support
14260 # interlibrary dependencies.
14261 # 'none' -- dependencies not supported.
14262 # `unknown' -- same as none, but documents that we really don't know.
14263 # 'pass_all' -- all dependencies passed with no checks.
14264 # 'test_compile' -- check by making test program.
14265 # 'file_magic [[regex]]' -- check by looking for files in library path
14266 # which responds to the $file_magic_cmd with a given extended regex.
14267 # If you have `file' or equivalent on your system and you're not sure
14268 # whether `pass_all' will *always* work, you probably want this one.
14269
14270 case $host_os in
14271 aix[4-9]*)
14272 lt_cv_deplibs_check_method=pass_all
14273 ;;
14274
14275 beos*)
14276 lt_cv_deplibs_check_method=pass_all
14277 ;;
14278
14279 bsdi[45]*)
14280 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14281 lt_cv_file_magic_cmd='/usr/bin/file -L'
14282 lt_cv_file_magic_test_file=/shlib/libc.so
14283 ;;
14284
14285 cygwin*)
14286 # func_win32_libid is a shell function defined in ltmain.sh
14287 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14288 lt_cv_file_magic_cmd='func_win32_libid'
14289 ;;
14290
14291 mingw* | pw32*)
14292 # Base MSYS/MinGW do not provide the 'file' command needed by
14293 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14294 # unless we find 'file', for example because we are cross-compiling.
14295 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14296 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14298 lt_cv_file_magic_cmd='func_win32_libid'
14299 else
14300 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14301 lt_cv_file_magic_cmd='$OBJDUMP -f'
14302 fi
14303 ;;
14304
14305 cegcc*)
14306 # use the weaker test based on 'objdump'. See mingw*.
14307 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14308 lt_cv_file_magic_cmd='$OBJDUMP -f'
14309 ;;
14310
14311 darwin* | rhapsody*)
14312 lt_cv_deplibs_check_method=pass_all
14313 ;;
14314
14315 freebsd* | dragonfly*)
14316 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14317 case $host_cpu in
14318 i*86 )
14319 # Not sure whether the presence of OpenBSD here was a mistake.
14320 # Let's accept both of them until this is cleared up.
14321 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14322 lt_cv_file_magic_cmd=/usr/bin/file
14323 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14324 ;;
14325 esac
14326 else
14327 lt_cv_deplibs_check_method=pass_all
14328 fi
14329 ;;
14330
14331 gnu*)
14332 lt_cv_deplibs_check_method=pass_all
14333 ;;
14334
14335 haiku*)
14336 lt_cv_deplibs_check_method=pass_all
14337 ;;
14338
14339 hpux10.20* | hpux11*)
14340 lt_cv_file_magic_cmd=/usr/bin/file
14341 case $host_cpu in
14342 ia64*)
14343 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14344 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14345 ;;
14346 hppa*64*)
14347 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]'
14348 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14349 ;;
14350 *)
14351 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14352 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14353 ;;
14354 esac
14355 ;;
14356
14357 interix[3-9]*)
14358 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14360 ;;
14361
14362 irix5* | irix6* | nonstopux*)
14363 case $LD in
14364 *-32|*"-32 ") libmagic=32-bit;;
14365 *-n32|*"-n32 ") libmagic=N32;;
14366 *-64|*"-64 ") libmagic=64-bit;;
14367 *) libmagic=never-match;;
14368 esac
14369 lt_cv_deplibs_check_method=pass_all
14370 ;;
14371
14372 # This must be Linux ELF.
14373 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14374 lt_cv_deplibs_check_method=pass_all
14375 ;;
14376
14377 netbsd*)
14378 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14379 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14380 else
14381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14382 fi
14383 ;;
14384
14385 newos6*)
14386 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14387 lt_cv_file_magic_cmd=/usr/bin/file
14388 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14389 ;;
14390
14391 *nto* | *qnx*)
14392 lt_cv_deplibs_check_method=pass_all
14393 ;;
14394
14395 openbsd*)
14396 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14398 else
14399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14400 fi
14401 ;;
14402
14403 osf3* | osf4* | osf5*)
14404 lt_cv_deplibs_check_method=pass_all
14405 ;;
14406
14407 rdos*)
14408 lt_cv_deplibs_check_method=pass_all
14409 ;;
14410
14411 solaris*)
14412 lt_cv_deplibs_check_method=pass_all
14413 ;;
14414
14415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14416 lt_cv_deplibs_check_method=pass_all
14417 ;;
14418
14419 sysv4 | sysv4.3*)
14420 case $host_vendor in
14421 motorola)
14422 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]'
14423 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14424 ;;
14425 ncr)
14426 lt_cv_deplibs_check_method=pass_all
14427 ;;
14428 sequent)
14429 lt_cv_file_magic_cmd='/bin/file'
14430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14431 ;;
14432 sni)
14433 lt_cv_file_magic_cmd='/bin/file'
14434 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14435 lt_cv_file_magic_test_file=/lib/libc.so
14436 ;;
14437 siemens)
14438 lt_cv_deplibs_check_method=pass_all
14439 ;;
14440 pc)
14441 lt_cv_deplibs_check_method=pass_all
14442 ;;
14443 esac
14444 ;;
14445
14446 tpf*)
14447 lt_cv_deplibs_check_method=pass_all
14448 ;;
14449 esac
14450
14451 fi
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14453 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14454 file_magic_cmd=$lt_cv_file_magic_cmd
14455 deplibs_check_method=$lt_cv_deplibs_check_method
14456 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469 if test -n "$ac_tool_prefix"; then
14470 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14471 set dummy ${ac_tool_prefix}ar; ac_word=$2
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14473 $as_echo_n "checking for $ac_word... " >&6; }
14474 if ${ac_cv_prog_AR+:} false; then :
14475 $as_echo_n "(cached) " >&6
14476 else
14477 if test -n "$AR"; then
14478 ac_cv_prog_AR="$AR" # Let the user override the test.
14479 else
14480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481 for as_dir in $PATH
14482 do
14483 IFS=$as_save_IFS
14484 test -z "$as_dir" && as_dir=.
14485 for ac_exec_ext in '' $ac_executable_extensions; do
14486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14487 ac_cv_prog_AR="${ac_tool_prefix}ar"
14488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14489 break 2
14490 fi
14491 done
14492 done
14493 IFS=$as_save_IFS
14494
14495 fi
14496 fi
14497 AR=$ac_cv_prog_AR
14498 if test -n "$AR"; then
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14500 $as_echo "$AR" >&6; }
14501 else
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14503 $as_echo "no" >&6; }
14504 fi
14505
14506
14507 fi
14508 if test -z "$ac_cv_prog_AR"; then
14509 ac_ct_AR=$AR
14510 # Extract the first word of "ar", so it can be a program name with args.
14511 set dummy ar; ac_word=$2
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14513 $as_echo_n "checking for $ac_word... " >&6; }
14514 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14515 $as_echo_n "(cached) " >&6
14516 else
14517 if test -n "$ac_ct_AR"; then
14518 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14519 else
14520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14521 for as_dir in $PATH
14522 do
14523 IFS=$as_save_IFS
14524 test -z "$as_dir" && as_dir=.
14525 for ac_exec_ext in '' $ac_executable_extensions; do
14526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14527 ac_cv_prog_ac_ct_AR="ar"
14528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14529 break 2
14530 fi
14531 done
14532 done
14533 IFS=$as_save_IFS
14534
14535 fi
14536 fi
14537 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14538 if test -n "$ac_ct_AR"; then
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14540 $as_echo "$ac_ct_AR" >&6; }
14541 else
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14543 $as_echo "no" >&6; }
14544 fi
14545
14546 if test "x$ac_ct_AR" = x; then
14547 AR="false"
14548 else
14549 case $cross_compiling:$ac_tool_warned in
14550 yes:)
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14553 ac_tool_warned=yes ;;
14554 esac
14555 AR=$ac_ct_AR
14556 fi
14557 else
14558 AR="$ac_cv_prog_AR"
14559 fi
14560
14561 test -z "$AR" && AR=ar
14562 test -z "$AR_FLAGS" && AR_FLAGS=cru
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574 if test -n "$ac_tool_prefix"; then
14575 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14576 set dummy ${ac_tool_prefix}strip; ac_word=$2
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14578 $as_echo_n "checking for $ac_word... " >&6; }
14579 if ${ac_cv_prog_STRIP+:} false; then :
14580 $as_echo_n "(cached) " >&6
14581 else
14582 if test -n "$STRIP"; then
14583 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14584 else
14585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14586 for as_dir in $PATH
14587 do
14588 IFS=$as_save_IFS
14589 test -z "$as_dir" && as_dir=.
14590 for ac_exec_ext in '' $ac_executable_extensions; do
14591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14592 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14594 break 2
14595 fi
14596 done
14597 done
14598 IFS=$as_save_IFS
14599
14600 fi
14601 fi
14602 STRIP=$ac_cv_prog_STRIP
14603 if test -n "$STRIP"; then
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14605 $as_echo "$STRIP" >&6; }
14606 else
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14608 $as_echo "no" >&6; }
14609 fi
14610
14611
14612 fi
14613 if test -z "$ac_cv_prog_STRIP"; then
14614 ac_ct_STRIP=$STRIP
14615 # Extract the first word of "strip", so it can be a program name with args.
14616 set dummy strip; ac_word=$2
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14618 $as_echo_n "checking for $ac_word... " >&6; }
14619 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14620 $as_echo_n "(cached) " >&6
14621 else
14622 if test -n "$ac_ct_STRIP"; then
14623 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14624 else
14625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14626 for as_dir in $PATH
14627 do
14628 IFS=$as_save_IFS
14629 test -z "$as_dir" && as_dir=.
14630 for ac_exec_ext in '' $ac_executable_extensions; do
14631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14632 ac_cv_prog_ac_ct_STRIP="strip"
14633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14634 break 2
14635 fi
14636 done
14637 done
14638 IFS=$as_save_IFS
14639
14640 fi
14641 fi
14642 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14643 if test -n "$ac_ct_STRIP"; then
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14645 $as_echo "$ac_ct_STRIP" >&6; }
14646 else
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14648 $as_echo "no" >&6; }
14649 fi
14650
14651 if test "x$ac_ct_STRIP" = x; then
14652 STRIP=":"
14653 else
14654 case $cross_compiling:$ac_tool_warned in
14655 yes:)
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14658 ac_tool_warned=yes ;;
14659 esac
14660 STRIP=$ac_ct_STRIP
14661 fi
14662 else
14663 STRIP="$ac_cv_prog_STRIP"
14664 fi
14665
14666 test -z "$STRIP" && STRIP=:
14667
14668
14669
14670
14671
14672
14673 if test -n "$ac_tool_prefix"; then
14674 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14675 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14677 $as_echo_n "checking for $ac_word... " >&6; }
14678 if ${ac_cv_prog_RANLIB+:} false; then :
14679 $as_echo_n "(cached) " >&6
14680 else
14681 if test -n "$RANLIB"; then
14682 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14683 else
14684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14685 for as_dir in $PATH
14686 do
14687 IFS=$as_save_IFS
14688 test -z "$as_dir" && as_dir=.
14689 for ac_exec_ext in '' $ac_executable_extensions; do
14690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14691 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14693 break 2
14694 fi
14695 done
14696 done
14697 IFS=$as_save_IFS
14698
14699 fi
14700 fi
14701 RANLIB=$ac_cv_prog_RANLIB
14702 if test -n "$RANLIB"; then
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14704 $as_echo "$RANLIB" >&6; }
14705 else
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14707 $as_echo "no" >&6; }
14708 fi
14709
14710
14711 fi
14712 if test -z "$ac_cv_prog_RANLIB"; then
14713 ac_ct_RANLIB=$RANLIB
14714 # Extract the first word of "ranlib", so it can be a program name with args.
14715 set dummy ranlib; ac_word=$2
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14717 $as_echo_n "checking for $ac_word... " >&6; }
14718 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14719 $as_echo_n "(cached) " >&6
14720 else
14721 if test -n "$ac_ct_RANLIB"; then
14722 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14723 else
14724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14725 for as_dir in $PATH
14726 do
14727 IFS=$as_save_IFS
14728 test -z "$as_dir" && as_dir=.
14729 for ac_exec_ext in '' $ac_executable_extensions; do
14730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14731 ac_cv_prog_ac_ct_RANLIB="ranlib"
14732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14733 break 2
14734 fi
14735 done
14736 done
14737 IFS=$as_save_IFS
14738
14739 fi
14740 fi
14741 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14742 if test -n "$ac_ct_RANLIB"; then
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14744 $as_echo "$ac_ct_RANLIB" >&6; }
14745 else
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14747 $as_echo "no" >&6; }
14748 fi
14749
14750 if test "x$ac_ct_RANLIB" = x; then
14751 RANLIB=":"
14752 else
14753 case $cross_compiling:$ac_tool_warned in
14754 yes:)
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14757 ac_tool_warned=yes ;;
14758 esac
14759 RANLIB=$ac_ct_RANLIB
14760 fi
14761 else
14762 RANLIB="$ac_cv_prog_RANLIB"
14763 fi
14764
14765 test -z "$RANLIB" && RANLIB=:
14766
14767
14768
14769
14770
14771
14772 # Determine commands to create old-style static archives.
14773 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14774 old_postinstall_cmds='chmod 644 $oldlib'
14775 old_postuninstall_cmds=
14776
14777 if test -n "$RANLIB"; then
14778 case $host_os in
14779 openbsd*)
14780 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14781 ;;
14782 *)
14783 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14784 ;;
14785 esac
14786 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14787 fi
14788
14789 case $host_os in
14790 darwin*)
14791 lock_old_archive_extraction=yes ;;
14792 *)
14793 lock_old_archive_extraction=no ;;
14794 esac
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834 # If no C compiler was specified, use CC.
14835 LTCC=${LTCC-"$CC"}
14836
14837 # If no C compiler flags were specified, use CFLAGS.
14838 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14839
14840 # Allow CC to be a program name with arguments.
14841 compiler=$CC
14842
14843
14844 # Check for command to grab the raw symbol name followed by C symbol from nm.
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14846 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14847 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14848 $as_echo_n "(cached) " >&6
14849 else
14850
14851 # These are sane defaults that work on at least a few old systems.
14852 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14853
14854 # Character class describing NM global symbol codes.
14855 symcode='[BCDEGRST]'
14856
14857 # Regexp to match symbols that can be accessed directly from C.
14858 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14859
14860 # Define system-specific variables.
14861 case $host_os in
14862 aix*)
14863 symcode='[BCDT]'
14864 ;;
14865 cygwin* | mingw* | pw32* | cegcc*)
14866 symcode='[ABCDGISTW]'
14867 ;;
14868 hpux*)
14869 if test "$host_cpu" = ia64; then
14870 symcode='[ABCDEGRST]'
14871 fi
14872 ;;
14873 irix* | nonstopux*)
14874 symcode='[BCDEGRST]'
14875 ;;
14876 osf*)
14877 symcode='[BCDEGQRST]'
14878 ;;
14879 solaris*)
14880 symcode='[BDRT]'
14881 ;;
14882 sco3.2v5*)
14883 symcode='[DT]'
14884 ;;
14885 sysv4.2uw2*)
14886 symcode='[DT]'
14887 ;;
14888 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14889 symcode='[ABDT]'
14890 ;;
14891 sysv4)
14892 symcode='[DFNSTU]'
14893 ;;
14894 esac
14895
14896 # If we're using GNU nm, then use its standard symbol codes.
14897 case `$NM -V 2>&1` in
14898 *GNU* | *'with BFD'*)
14899 symcode='[ABCDGIRSTW]' ;;
14900 esac
14901
14902 # Transform an extracted symbol line into a proper C declaration.
14903 # Some systems (esp. on ia64) link data and code symbols differently,
14904 # so use this general approach.
14905 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14906
14907 # Transform an extracted symbol line into symbol name and symbol address
14908 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14909 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'"
14910
14911 # Handle CRLF in mingw tool chain
14912 opt_cr=
14913 case $build_os in
14914 mingw*)
14915 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14916 ;;
14917 esac
14918
14919 # Try without a prefix underscore, then with it.
14920 for ac_symprfx in "" "_"; do
14921
14922 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14923 symxfrm="\\1 $ac_symprfx\\2 \\2"
14924
14925 # Write the raw and C identifiers.
14926 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14927 # Fake it for dumpbin and say T for any non-static function
14928 # and D for any global variable.
14929 # Also find C++ and __fastcall symbols from MSVC++,
14930 # which start with @ or ?.
14931 lt_cv_sys_global_symbol_pipe="$AWK '"\
14932 " {last_section=section; section=\$ 3};"\
14933 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14934 " \$ 0!~/External *\|/{next};"\
14935 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14936 " {if(hide[section]) next};"\
14937 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14938 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14939 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14940 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14941 " ' prfx=^$ac_symprfx"
14942 else
14943 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14944 fi
14945
14946 # Check to see that the pipe works correctly.
14947 pipe_works=no
14948
14949 rm -f conftest*
14950 cat > conftest.$ac_ext <<_LT_EOF
14951 #ifdef __cplusplus
14952 extern "C" {
14953 #endif
14954 char nm_test_var;
14955 void nm_test_func(void);
14956 void nm_test_func(void){}
14957 #ifdef __cplusplus
14958 }
14959 #endif
14960 int main(){nm_test_var='a';nm_test_func();return(0);}
14961 _LT_EOF
14962
14963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14964 (eval $ac_compile) 2>&5
14965 ac_status=$?
14966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14967 test $ac_status = 0; }; then
14968 # Now try to grab the symbols.
14969 nlist=conftest.nm
14970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14971 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14972 ac_status=$?
14973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14974 test $ac_status = 0; } && test -s "$nlist"; then
14975 # Try sorting and uniquifying the output.
14976 if sort "$nlist" | uniq > "$nlist"T; then
14977 mv -f "$nlist"T "$nlist"
14978 else
14979 rm -f "$nlist"T
14980 fi
14981
14982 # Make sure that we snagged all the symbols we need.
14983 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14984 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14985 cat <<_LT_EOF > conftest.$ac_ext
14986 #ifdef __cplusplus
14987 extern "C" {
14988 #endif
14989
14990 _LT_EOF
14991 # Now generate the symbol file.
14992 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14993
14994 cat <<_LT_EOF >> conftest.$ac_ext
14995
14996 /* The mapping between symbol names and symbols. */
14997 const struct {
14998 const char *name;
14999 void *address;
15000 }
15001 lt__PROGRAM__LTX_preloaded_symbols[] =
15002 {
15003 { "@PROGRAM@", (void *) 0 },
15004 _LT_EOF
15005 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15006 cat <<\_LT_EOF >> conftest.$ac_ext
15007 {0, (void *) 0}
15008 };
15009
15010 /* This works around a problem in FreeBSD linker */
15011 #ifdef FREEBSD_WORKAROUND
15012 static const void *lt_preloaded_setup() {
15013 return lt__PROGRAM__LTX_preloaded_symbols;
15014 }
15015 #endif
15016
15017 #ifdef __cplusplus
15018 }
15019 #endif
15020 _LT_EOF
15021 # Now try linking the two files.
15022 mv conftest.$ac_objext conftstm.$ac_objext
15023 lt_save_LIBS="$LIBS"
15024 lt_save_CFLAGS="$CFLAGS"
15025 LIBS="conftstm.$ac_objext"
15026 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15028 (eval $ac_link) 2>&5
15029 ac_status=$?
15030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15031 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15032 pipe_works=yes
15033 fi
15034 LIBS="$lt_save_LIBS"
15035 CFLAGS="$lt_save_CFLAGS"
15036 else
15037 echo "cannot find nm_test_func in $nlist" >&5
15038 fi
15039 else
15040 echo "cannot find nm_test_var in $nlist" >&5
15041 fi
15042 else
15043 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15044 fi
15045 else
15046 echo "$progname: failed program was:" >&5
15047 cat conftest.$ac_ext >&5
15048 fi
15049 rm -rf conftest* conftst*
15050
15051 # Do not use the global_symbol_pipe unless it works.
15052 if test "$pipe_works" = yes; then
15053 break
15054 else
15055 lt_cv_sys_global_symbol_pipe=
15056 fi
15057 done
15058
15059 fi
15060
15061 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15062 lt_cv_sys_global_symbol_to_cdecl=
15063 fi
15064 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15066 $as_echo "failed" >&6; }
15067 else
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15069 $as_echo "ok" >&6; }
15070 fi
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093 # Check whether --enable-libtool-lock was given.
15094 if test "${enable_libtool_lock+set}" = set; then :
15095 enableval=$enable_libtool_lock;
15096 fi
15097
15098 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15099
15100 # Some flags need to be propagated to the compiler or linker for good
15101 # libtool support.
15102 case $host in
15103 ia64-*-hpux*)
15104 # Find out which ABI we are using.
15105 echo 'int i;' > conftest.$ac_ext
15106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15107 (eval $ac_compile) 2>&5
15108 ac_status=$?
15109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15110 test $ac_status = 0; }; then
15111 case `/usr/bin/file conftest.$ac_objext` in
15112 *ELF-32*)
15113 HPUX_IA64_MODE="32"
15114 ;;
15115 *ELF-64*)
15116 HPUX_IA64_MODE="64"
15117 ;;
15118 esac
15119 fi
15120 rm -rf conftest*
15121 ;;
15122 *-*-irix6*)
15123 # Find out which ABI we are using.
15124 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15126 (eval $ac_compile) 2>&5
15127 ac_status=$?
15128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15129 test $ac_status = 0; }; then
15130 if test "$lt_cv_prog_gnu_ld" = yes; then
15131 case `/usr/bin/file conftest.$ac_objext` in
15132 *32-bit*)
15133 LD="${LD-ld} -melf32bsmip"
15134 ;;
15135 *N32*)
15136 LD="${LD-ld} -melf32bmipn32"
15137 ;;
15138 *64-bit*)
15139 LD="${LD-ld} -melf64bmip"
15140 ;;
15141 esac
15142 else
15143 case `/usr/bin/file conftest.$ac_objext` in
15144 *32-bit*)
15145 LD="${LD-ld} -32"
15146 ;;
15147 *N32*)
15148 LD="${LD-ld} -n32"
15149 ;;
15150 *64-bit*)
15151 LD="${LD-ld} -64"
15152 ;;
15153 esac
15154 fi
15155 fi
15156 rm -rf conftest*
15157 ;;
15158
15159 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15160 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15161 # Find out which ABI we are using.
15162 echo 'int i;' > conftest.$ac_ext
15163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15164 (eval $ac_compile) 2>&5
15165 ac_status=$?
15166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15167 test $ac_status = 0; }; then
15168 case `/usr/bin/file conftest.o` in
15169 *32-bit*)
15170 case $host in
15171 x86_64-*kfreebsd*-gnu)
15172 LD="${LD-ld} -m elf_i386_fbsd"
15173 ;;
15174 x86_64-*linux*)
15175 case `/usr/bin/file conftest.o` in
15176 *x86-64*)
15177 LD="${LD-ld} -m elf32_x86_64"
15178 ;;
15179 *)
15180 LD="${LD-ld} -m elf_i386"
15181 ;;
15182 esac
15183 ;;
15184 powerpc64le-*linux*)
15185 LD="${LD-ld} -m elf32lppclinux"
15186 ;;
15187 powerpc64-*linux*)
15188 LD="${LD-ld} -m elf32ppclinux"
15189 ;;
15190 s390x-*linux*)
15191 LD="${LD-ld} -m elf_s390"
15192 ;;
15193 sparc64-*linux*)
15194 LD="${LD-ld} -m elf32_sparc"
15195 ;;
15196 esac
15197 ;;
15198 *64-bit*)
15199 case $host in
15200 x86_64-*kfreebsd*-gnu)
15201 LD="${LD-ld} -m elf_x86_64_fbsd"
15202 ;;
15203 x86_64-*linux*)
15204 LD="${LD-ld} -m elf_x86_64"
15205 ;;
15206 powerpcle-*linux*)
15207 LD="${LD-ld} -m elf64lppc"
15208 ;;
15209 powerpc-*linux*)
15210 LD="${LD-ld} -m elf64ppc"
15211 ;;
15212 s390*-*linux*|s390*-*tpf*)
15213 LD="${LD-ld} -m elf64_s390"
15214 ;;
15215 sparc*-*linux*)
15216 LD="${LD-ld} -m elf64_sparc"
15217 ;;
15218 esac
15219 ;;
15220 esac
15221 fi
15222 rm -rf conftest*
15223 ;;
15224
15225 *-*-sco3.2v5*)
15226 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15227 SAVE_CFLAGS="$CFLAGS"
15228 CFLAGS="$CFLAGS -belf"
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15230 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15231 if ${lt_cv_cc_needs_belf+:} false; then :
15232 $as_echo_n "(cached) " >&6
15233 else
15234 ac_ext=c
15235 ac_cpp='$CPP $CPPFLAGS'
15236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15239
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h. */
15242
15243 int
15244 main ()
15245 {
15246
15247 ;
15248 return 0;
15249 }
15250 _ACEOF
15251 if ac_fn_c_try_link "$LINENO"; then :
15252 lt_cv_cc_needs_belf=yes
15253 else
15254 lt_cv_cc_needs_belf=no
15255 fi
15256 rm -f core conftest.err conftest.$ac_objext \
15257 conftest$ac_exeext conftest.$ac_ext
15258 ac_ext=c
15259 ac_cpp='$CPP $CPPFLAGS'
15260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15263
15264 fi
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15266 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15267 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15268 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15269 CFLAGS="$SAVE_CFLAGS"
15270 fi
15271 ;;
15272 sparc*-*solaris*)
15273 # Find out which ABI we are using.
15274 echo 'int i;' > conftest.$ac_ext
15275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15276 (eval $ac_compile) 2>&5
15277 ac_status=$?
15278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15279 test $ac_status = 0; }; then
15280 case `/usr/bin/file conftest.o` in
15281 *64-bit*)
15282 case $lt_cv_prog_gnu_ld in
15283 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15284 *)
15285 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15286 LD="${LD-ld} -64"
15287 fi
15288 ;;
15289 esac
15290 ;;
15291 esac
15292 fi
15293 rm -rf conftest*
15294 ;;
15295 esac
15296
15297 need_locks="$enable_libtool_lock"
15298
15299
15300 case $host_os in
15301 rhapsody* | darwin*)
15302 if test -n "$ac_tool_prefix"; then
15303 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15304 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15306 $as_echo_n "checking for $ac_word... " >&6; }
15307 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15308 $as_echo_n "(cached) " >&6
15309 else
15310 if test -n "$DSYMUTIL"; then
15311 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15312 else
15313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15314 for as_dir in $PATH
15315 do
15316 IFS=$as_save_IFS
15317 test -z "$as_dir" && as_dir=.
15318 for ac_exec_ext in '' $ac_executable_extensions; do
15319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15320 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15322 break 2
15323 fi
15324 done
15325 done
15326 IFS=$as_save_IFS
15327
15328 fi
15329 fi
15330 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15331 if test -n "$DSYMUTIL"; then
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15333 $as_echo "$DSYMUTIL" >&6; }
15334 else
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15336 $as_echo "no" >&6; }
15337 fi
15338
15339
15340 fi
15341 if test -z "$ac_cv_prog_DSYMUTIL"; then
15342 ac_ct_DSYMUTIL=$DSYMUTIL
15343 # Extract the first word of "dsymutil", so it can be a program name with args.
15344 set dummy dsymutil; ac_word=$2
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15346 $as_echo_n "checking for $ac_word... " >&6; }
15347 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15348 $as_echo_n "(cached) " >&6
15349 else
15350 if test -n "$ac_ct_DSYMUTIL"; then
15351 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15352 else
15353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15354 for as_dir in $PATH
15355 do
15356 IFS=$as_save_IFS
15357 test -z "$as_dir" && as_dir=.
15358 for ac_exec_ext in '' $ac_executable_extensions; do
15359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15360 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15362 break 2
15363 fi
15364 done
15365 done
15366 IFS=$as_save_IFS
15367
15368 fi
15369 fi
15370 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15371 if test -n "$ac_ct_DSYMUTIL"; then
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15373 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15374 else
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15376 $as_echo "no" >&6; }
15377 fi
15378
15379 if test "x$ac_ct_DSYMUTIL" = x; then
15380 DSYMUTIL=":"
15381 else
15382 case $cross_compiling:$ac_tool_warned in
15383 yes:)
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15386 ac_tool_warned=yes ;;
15387 esac
15388 DSYMUTIL=$ac_ct_DSYMUTIL
15389 fi
15390 else
15391 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15392 fi
15393
15394 if test -n "$ac_tool_prefix"; then
15395 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15396 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15398 $as_echo_n "checking for $ac_word... " >&6; }
15399 if ${ac_cv_prog_NMEDIT+:} false; then :
15400 $as_echo_n "(cached) " >&6
15401 else
15402 if test -n "$NMEDIT"; then
15403 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15404 else
15405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15406 for as_dir in $PATH
15407 do
15408 IFS=$as_save_IFS
15409 test -z "$as_dir" && as_dir=.
15410 for ac_exec_ext in '' $ac_executable_extensions; do
15411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15412 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15414 break 2
15415 fi
15416 done
15417 done
15418 IFS=$as_save_IFS
15419
15420 fi
15421 fi
15422 NMEDIT=$ac_cv_prog_NMEDIT
15423 if test -n "$NMEDIT"; then
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15425 $as_echo "$NMEDIT" >&6; }
15426 else
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15428 $as_echo "no" >&6; }
15429 fi
15430
15431
15432 fi
15433 if test -z "$ac_cv_prog_NMEDIT"; then
15434 ac_ct_NMEDIT=$NMEDIT
15435 # Extract the first word of "nmedit", so it can be a program name with args.
15436 set dummy nmedit; ac_word=$2
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15438 $as_echo_n "checking for $ac_word... " >&6; }
15439 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15440 $as_echo_n "(cached) " >&6
15441 else
15442 if test -n "$ac_ct_NMEDIT"; then
15443 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15444 else
15445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15446 for as_dir in $PATH
15447 do
15448 IFS=$as_save_IFS
15449 test -z "$as_dir" && as_dir=.
15450 for ac_exec_ext in '' $ac_executable_extensions; do
15451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15452 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15454 break 2
15455 fi
15456 done
15457 done
15458 IFS=$as_save_IFS
15459
15460 fi
15461 fi
15462 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15463 if test -n "$ac_ct_NMEDIT"; then
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15465 $as_echo "$ac_ct_NMEDIT" >&6; }
15466 else
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15468 $as_echo "no" >&6; }
15469 fi
15470
15471 if test "x$ac_ct_NMEDIT" = x; then
15472 NMEDIT=":"
15473 else
15474 case $cross_compiling:$ac_tool_warned in
15475 yes:)
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15478 ac_tool_warned=yes ;;
15479 esac
15480 NMEDIT=$ac_ct_NMEDIT
15481 fi
15482 else
15483 NMEDIT="$ac_cv_prog_NMEDIT"
15484 fi
15485
15486 if test -n "$ac_tool_prefix"; then
15487 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15488 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15490 $as_echo_n "checking for $ac_word... " >&6; }
15491 if ${ac_cv_prog_LIPO+:} false; then :
15492 $as_echo_n "(cached) " >&6
15493 else
15494 if test -n "$LIPO"; then
15495 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15496 else
15497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15498 for as_dir in $PATH
15499 do
15500 IFS=$as_save_IFS
15501 test -z "$as_dir" && as_dir=.
15502 for ac_exec_ext in '' $ac_executable_extensions; do
15503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15504 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15506 break 2
15507 fi
15508 done
15509 done
15510 IFS=$as_save_IFS
15511
15512 fi
15513 fi
15514 LIPO=$ac_cv_prog_LIPO
15515 if test -n "$LIPO"; then
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15517 $as_echo "$LIPO" >&6; }
15518 else
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15520 $as_echo "no" >&6; }
15521 fi
15522
15523
15524 fi
15525 if test -z "$ac_cv_prog_LIPO"; then
15526 ac_ct_LIPO=$LIPO
15527 # Extract the first word of "lipo", so it can be a program name with args.
15528 set dummy lipo; ac_word=$2
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15530 $as_echo_n "checking for $ac_word... " >&6; }
15531 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15532 $as_echo_n "(cached) " >&6
15533 else
15534 if test -n "$ac_ct_LIPO"; then
15535 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15536 else
15537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15538 for as_dir in $PATH
15539 do
15540 IFS=$as_save_IFS
15541 test -z "$as_dir" && as_dir=.
15542 for ac_exec_ext in '' $ac_executable_extensions; do
15543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15544 ac_cv_prog_ac_ct_LIPO="lipo"
15545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15546 break 2
15547 fi
15548 done
15549 done
15550 IFS=$as_save_IFS
15551
15552 fi
15553 fi
15554 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15555 if test -n "$ac_ct_LIPO"; then
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15557 $as_echo "$ac_ct_LIPO" >&6; }
15558 else
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15560 $as_echo "no" >&6; }
15561 fi
15562
15563 if test "x$ac_ct_LIPO" = x; then
15564 LIPO=":"
15565 else
15566 case $cross_compiling:$ac_tool_warned in
15567 yes:)
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15570 ac_tool_warned=yes ;;
15571 esac
15572 LIPO=$ac_ct_LIPO
15573 fi
15574 else
15575 LIPO="$ac_cv_prog_LIPO"
15576 fi
15577
15578 if test -n "$ac_tool_prefix"; then
15579 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15580 set dummy ${ac_tool_prefix}otool; 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_OTOOL+:} false; then :
15584 $as_echo_n "(cached) " >&6
15585 else
15586 if test -n "$OTOOL"; then
15587 ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool"
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 OTOOL=$ac_cv_prog_OTOOL
15607 if test -n "$OTOOL"; then
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15609 $as_echo "$OTOOL" >&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_OTOOL"; then
15618 ac_ct_OTOOL=$OTOOL
15619 # Extract the first word of "otool", so it can be a program name with args.
15620 set dummy otool; 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_OTOOL+:} false; then :
15624 $as_echo_n "(cached) " >&6
15625 else
15626 if test -n "$ac_ct_OTOOL"; then
15627 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_OTOOL="otool"
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_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15647 if test -n "$ac_ct_OTOOL"; then
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15649 $as_echo "$ac_ct_OTOOL" >&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_OTOOL" = x; then
15656 OTOOL=":"
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 OTOOL=$ac_ct_OTOOL
15665 fi
15666 else
15667 OTOOL="$ac_cv_prog_OTOOL"
15668 fi
15669
15670 if test -n "$ac_tool_prefix"; then
15671 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15672 set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+:} false; then :
15676 $as_echo_n "(cached) " >&6
15677 else
15678 if test -n "$OTOOL64"; then
15679 ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
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 OTOOL64=$ac_cv_prog_OTOOL64
15699 if test -n "$OTOOL64"; then
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15701 $as_echo "$OTOOL64" >&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_OTOOL64"; then
15710 ac_ct_OTOOL64=$OTOOL64
15711 # Extract the first word of "otool64", so it can be a program name with args.
15712 set dummy otool64; 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_OTOOL64+:} false; then :
15716 $as_echo_n "(cached) " >&6
15717 else
15718 if test -n "$ac_ct_OTOOL64"; then
15719 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_OTOOL64="otool64"
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_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15739 if test -n "$ac_ct_OTOOL64"; then
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15741 $as_echo "$ac_ct_OTOOL64" >&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_OTOOL64" = x; then
15748 OTOOL64=":"
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 OTOOL64=$ac_ct_OTOOL64
15757 fi
15758 else
15759 OTOOL64="$ac_cv_prog_OTOOL64"
15760 fi
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15789 $as_echo_n "checking for -single_module linker flag... " >&6; }
15790 if ${lt_cv_apple_cc_single_mod+:} false; then :
15791 $as_echo_n "(cached) " >&6
15792 else
15793 lt_cv_apple_cc_single_mod=no
15794 if test -z "${LT_MULTI_MODULE}"; then
15795 # By default we will add the -single_module flag. You can override
15796 # by either setting the environment variable LT_MULTI_MODULE
15797 # non-empty at configure time, or by adding -multi_module to the
15798 # link flags.
15799 rm -rf libconftest.dylib*
15800 echo "int foo(void){return 1;}" > conftest.c
15801 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15802 -dynamiclib -Wl,-single_module conftest.c" >&5
15803 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15804 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15805 _lt_result=$?
15806 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15807 lt_cv_apple_cc_single_mod=yes
15808 else
15809 cat conftest.err >&5
15810 fi
15811 rm -rf libconftest.dylib*
15812 rm -f conftest.*
15813 fi
15814 fi
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15816 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15818 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15819 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15820 $as_echo_n "(cached) " >&6
15821 else
15822 lt_cv_ld_exported_symbols_list=no
15823 save_LDFLAGS=$LDFLAGS
15824 echo "_main" > conftest.sym
15825 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827 /* end confdefs.h. */
15828
15829 int
15830 main ()
15831 {
15832
15833 ;
15834 return 0;
15835 }
15836 _ACEOF
15837 if ac_fn_c_try_link "$LINENO"; then :
15838 lt_cv_ld_exported_symbols_list=yes
15839 else
15840 lt_cv_ld_exported_symbols_list=no
15841 fi
15842 rm -f core conftest.err conftest.$ac_objext \
15843 conftest$ac_exeext conftest.$ac_ext
15844 LDFLAGS="$save_LDFLAGS"
15845
15846 fi
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15848 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15850 $as_echo_n "checking for -force_load linker flag... " >&6; }
15851 if ${lt_cv_ld_force_load+:} false; then :
15852 $as_echo_n "(cached) " >&6
15853 else
15854 lt_cv_ld_force_load=no
15855 cat > conftest.c << _LT_EOF
15856 int forced_loaded() { return 2;}
15857 _LT_EOF
15858 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15859 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15860 echo "$AR cru libconftest.a conftest.o" >&5
15861 $AR cru libconftest.a conftest.o 2>&5
15862 cat > conftest.c << _LT_EOF
15863 int main() { return 0;}
15864 _LT_EOF
15865 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15866 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15867 _lt_result=$?
15868 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15869 lt_cv_ld_force_load=yes
15870 else
15871 cat conftest.err >&5
15872 fi
15873 rm -f conftest.err libconftest.a conftest conftest.c
15874 rm -rf conftest.dSYM
15875
15876 fi
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15878 $as_echo "$lt_cv_ld_force_load" >&6; }
15879 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
15880 # build without first building modern cctools / linker.
15881 case $host_cpu-$host_os in
15882 *-rhapsody* | *-darwin1.[012])
15883 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15884 *-darwin1.*)
15885 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15886 *-darwin*)
15887 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
15888 # deployment target is forced to an earlier version.
15889 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
15890 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
15891 ;;
15892 10.[012][,.]*)
15893 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15894 ;;
15895 *)
15896 ;;
15897 esac
15898 ;;
15899 esac
15900 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15901 _lt_dar_single_mod='$single_module'
15902 fi
15903 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15904 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15905 else
15906 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15907 fi
15908 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15909 _lt_dsymutil='~$DSYMUTIL $lib || :'
15910 else
15911 _lt_dsymutil=
15912 fi
15913 ;;
15914 esac
15915
15916
15917 for ac_header in dlfcn.h
15918 do :
15919 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15920 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15921 cat >>confdefs.h <<_ACEOF
15922 #define HAVE_DLFCN_H 1
15923 _ACEOF
15924
15925 fi
15926 done
15927
15928
15929
15930
15931
15932 # Set options
15933
15934
15935
15936 enable_dlopen=no
15937
15938
15939 enable_win32_dll=no
15940
15941
15942 # Check whether --enable-shared was given.
15943 if test "${enable_shared+set}" = set; then :
15944 enableval=$enable_shared; p=${PACKAGE-default}
15945 case $enableval in
15946 yes) enable_shared=yes ;;
15947 no) enable_shared=no ;;
15948 *)
15949 enable_shared=no
15950 # Look at the argument we got. We use all the common list separators.
15951 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15952 for pkg in $enableval; do
15953 IFS="$lt_save_ifs"
15954 if test "X$pkg" = "X$p"; then
15955 enable_shared=yes
15956 fi
15957 done
15958 IFS="$lt_save_ifs"
15959 ;;
15960 esac
15961 else
15962 enable_shared=yes
15963 fi
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973 # Check whether --enable-static was given.
15974 if test "${enable_static+set}" = set; then :
15975 enableval=$enable_static; p=${PACKAGE-default}
15976 case $enableval in
15977 yes) enable_static=yes ;;
15978 no) enable_static=no ;;
15979 *)
15980 enable_static=no
15981 # Look at the argument we got. We use all the common list separators.
15982 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15983 for pkg in $enableval; do
15984 IFS="$lt_save_ifs"
15985 if test "X$pkg" = "X$p"; then
15986 enable_static=yes
15987 fi
15988 done
15989 IFS="$lt_save_ifs"
15990 ;;
15991 esac
15992 else
15993 enable_static=yes
15994 fi
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005 # Check whether --with-pic was given.
16006 if test "${with_pic+set}" = set; then :
16007 withval=$with_pic; pic_mode="$withval"
16008 else
16009 pic_mode=default
16010 fi
16011
16012
16013 test -z "$pic_mode" && pic_mode=default
16014
16015
16016
16017
16018
16019
16020
16021 # Check whether --enable-fast-install was given.
16022 if test "${enable_fast_install+set}" = set; then :
16023 enableval=$enable_fast_install; p=${PACKAGE-default}
16024 case $enableval in
16025 yes) enable_fast_install=yes ;;
16026 no) enable_fast_install=no ;;
16027 *)
16028 enable_fast_install=no
16029 # Look at the argument we got. We use all the common list separators.
16030 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16031 for pkg in $enableval; do
16032 IFS="$lt_save_ifs"
16033 if test "X$pkg" = "X$p"; then
16034 enable_fast_install=yes
16035 fi
16036 done
16037 IFS="$lt_save_ifs"
16038 ;;
16039 esac
16040 else
16041 enable_fast_install=yes
16042 fi
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054 # This can be used to rebuild libtool when needed
16055 LIBTOOL_DEPS="$ltmain"
16056
16057 # Always use our own libtool.
16058 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085 test -z "$LN_S" && LN_S="ln -s"
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100 if test -n "${ZSH_VERSION+set}" ; then
16101 setopt NO_GLOB_SUBST
16102 fi
16103
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16105 $as_echo_n "checking for objdir... " >&6; }
16106 if ${lt_cv_objdir+:} false; then :
16107 $as_echo_n "(cached) " >&6
16108 else
16109 rm -f .libs 2>/dev/null
16110 mkdir .libs 2>/dev/null
16111 if test -d .libs; then
16112 lt_cv_objdir=.libs
16113 else
16114 # MS-DOS does not allow filenames that begin with a dot.
16115 lt_cv_objdir=_libs
16116 fi
16117 rmdir .libs 2>/dev/null
16118 fi
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16120 $as_echo "$lt_cv_objdir" >&6; }
16121 objdir=$lt_cv_objdir
16122
16123
16124
16125
16126
16127 cat >>confdefs.h <<_ACEOF
16128 #define LT_OBJDIR "$lt_cv_objdir/"
16129 _ACEOF
16130
16131
16132
16133
16134 case $host_os in
16135 aix3*)
16136 # AIX sometimes has problems with the GCC collect2 program. For some
16137 # reason, if we set the COLLECT_NAMES environment variable, the problems
16138 # vanish in a puff of smoke.
16139 if test "X${COLLECT_NAMES+set}" != Xset; then
16140 COLLECT_NAMES=
16141 export COLLECT_NAMES
16142 fi
16143 ;;
16144 esac
16145
16146 # Global variables:
16147 ofile=libtool
16148 can_build_shared=yes
16149
16150 # All known linkers require a `.a' archive for static linking (except MSVC,
16151 # which needs '.lib').
16152 libext=a
16153
16154 with_gnu_ld="$lt_cv_prog_gnu_ld"
16155
16156 old_CC="$CC"
16157 old_CFLAGS="$CFLAGS"
16158
16159 # Set sane defaults for various variables
16160 test -z "$CC" && CC=cc
16161 test -z "$LTCC" && LTCC=$CC
16162 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16163 test -z "$LD" && LD=ld
16164 test -z "$ac_objext" && ac_objext=o
16165
16166 for cc_temp in $compiler""; do
16167 case $cc_temp in
16168 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16169 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16170 \-*) ;;
16171 *) break;;
16172 esac
16173 done
16174 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16175
16176
16177 # Only perform the check for file, if the check method requires it
16178 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16179 case $deplibs_check_method in
16180 file_magic*)
16181 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16183 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16184 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16185 $as_echo_n "(cached) " >&6
16186 else
16187 case $MAGIC_CMD in
16188 [\\/*] | ?:[\\/]*)
16189 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16190 ;;
16191 *)
16192 lt_save_MAGIC_CMD="$MAGIC_CMD"
16193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16194 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16195 for ac_dir in $ac_dummy; do
16196 IFS="$lt_save_ifs"
16197 test -z "$ac_dir" && ac_dir=.
16198 if test -f $ac_dir/${ac_tool_prefix}file; then
16199 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16200 if test -n "$file_magic_test_file"; then
16201 case $deplibs_check_method in
16202 "file_magic "*)
16203 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16205 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16206 $EGREP "$file_magic_regex" > /dev/null; then
16207 :
16208 else
16209 cat <<_LT_EOF 1>&2
16210
16211 *** Warning: the command libtool uses to detect shared libraries,
16212 *** $file_magic_cmd, produces output that libtool cannot recognize.
16213 *** The result is that libtool may fail to recognize shared libraries
16214 *** as such. This will affect the creation of libtool libraries that
16215 *** depend on shared libraries, but programs linked with such libtool
16216 *** libraries will work regardless of this problem. Nevertheless, you
16217 *** may want to report the problem to your system manager and/or to
16218 *** bug-libtool@gnu.org
16219
16220 _LT_EOF
16221 fi ;;
16222 esac
16223 fi
16224 break
16225 fi
16226 done
16227 IFS="$lt_save_ifs"
16228 MAGIC_CMD="$lt_save_MAGIC_CMD"
16229 ;;
16230 esac
16231 fi
16232
16233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16234 if test -n "$MAGIC_CMD"; then
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16236 $as_echo "$MAGIC_CMD" >&6; }
16237 else
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16239 $as_echo "no" >&6; }
16240 fi
16241
16242
16243
16244
16245
16246 if test -z "$lt_cv_path_MAGIC_CMD"; then
16247 if test -n "$ac_tool_prefix"; then
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16249 $as_echo_n "checking for file... " >&6; }
16250 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16251 $as_echo_n "(cached) " >&6
16252 else
16253 case $MAGIC_CMD in
16254 [\\/*] | ?:[\\/]*)
16255 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16256 ;;
16257 *)
16258 lt_save_MAGIC_CMD="$MAGIC_CMD"
16259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16260 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16261 for ac_dir in $ac_dummy; do
16262 IFS="$lt_save_ifs"
16263 test -z "$ac_dir" && ac_dir=.
16264 if test -f $ac_dir/file; then
16265 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16266 if test -n "$file_magic_test_file"; then
16267 case $deplibs_check_method in
16268 "file_magic "*)
16269 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16272 $EGREP "$file_magic_regex" > /dev/null; then
16273 :
16274 else
16275 cat <<_LT_EOF 1>&2
16276
16277 *** Warning: the command libtool uses to detect shared libraries,
16278 *** $file_magic_cmd, produces output that libtool cannot recognize.
16279 *** The result is that libtool may fail to recognize shared libraries
16280 *** as such. This will affect the creation of libtool libraries that
16281 *** depend on shared libraries, but programs linked with such libtool
16282 *** libraries will work regardless of this problem. Nevertheless, you
16283 *** may want to report the problem to your system manager and/or to
16284 *** bug-libtool@gnu.org
16285
16286 _LT_EOF
16287 fi ;;
16288 esac
16289 fi
16290 break
16291 fi
16292 done
16293 IFS="$lt_save_ifs"
16294 MAGIC_CMD="$lt_save_MAGIC_CMD"
16295 ;;
16296 esac
16297 fi
16298
16299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16300 if test -n "$MAGIC_CMD"; then
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16302 $as_echo "$MAGIC_CMD" >&6; }
16303 else
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16305 $as_echo "no" >&6; }
16306 fi
16307
16308
16309 else
16310 MAGIC_CMD=:
16311 fi
16312 fi
16313
16314 fi
16315 ;;
16316 esac
16317
16318 # Use C for the default configuration in the libtool script
16319
16320 lt_save_CC="$CC"
16321 ac_ext=c
16322 ac_cpp='$CPP $CPPFLAGS'
16323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16326
16327
16328 # Source file extension for C test sources.
16329 ac_ext=c
16330
16331 # Object file extension for compiled C test sources.
16332 objext=o
16333 objext=$objext
16334
16335 # Code to be used in simple compile tests
16336 lt_simple_compile_test_code="int some_variable = 0;"
16337
16338 # Code to be used in simple link tests
16339 lt_simple_link_test_code='int main(){return(0);}'
16340
16341
16342
16343
16344
16345
16346
16347 # If no C compiler was specified, use CC.
16348 LTCC=${LTCC-"$CC"}
16349
16350 # If no C compiler flags were specified, use CFLAGS.
16351 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16352
16353 # Allow CC to be a program name with arguments.
16354 compiler=$CC
16355
16356 # Save the default compiler, since it gets overwritten when the other
16357 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16358 compiler_DEFAULT=$CC
16359
16360 # save warnings/boilerplate of simple test code
16361 ac_outfile=conftest.$ac_objext
16362 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16363 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16364 _lt_compiler_boilerplate=`cat conftest.err`
16365 $RM conftest*
16366
16367 ac_outfile=conftest.$ac_objext
16368 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16369 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16370 _lt_linker_boilerplate=`cat conftest.err`
16371 $RM -r conftest*
16372
16373
16374 ## CAVEAT EMPTOR:
16375 ## There is no encapsulation within the following macros, do not change
16376 ## the running order or otherwise move them around unless you know exactly
16377 ## what you are doing...
16378 if test -n "$compiler"; then
16379
16380 lt_prog_compiler_no_builtin_flag=
16381
16382 if test "$GCC" = yes; then
16383 case $cc_basename in
16384 nvcc*)
16385 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16386 *)
16387 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16388 esac
16389
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16391 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16392 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16393 $as_echo_n "(cached) " >&6
16394 else
16395 lt_cv_prog_compiler_rtti_exceptions=no
16396 ac_outfile=conftest.$ac_objext
16397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16398 lt_compiler_flag="-fno-rtti -fno-exceptions"
16399 # Insert the option either (1) after the last *FLAGS variable, or
16400 # (2) before a word containing "conftest.", or (3) at the end.
16401 # Note that $ac_compile itself does not contain backslashes and begins
16402 # with a dollar sign (not a hyphen), so the echo should work correctly.
16403 # The option is referenced via a variable to avoid confusing sed.
16404 lt_compile=`echo "$ac_compile" | $SED \
16405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16407 -e 's:$: $lt_compiler_flag:'`
16408 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16409 (eval "$lt_compile" 2>conftest.err)
16410 ac_status=$?
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 if (exit $ac_status) && test -s "$ac_outfile"; then
16414 # The compiler can only warn and ignore the option if not recognized
16415 # So say no if there are warnings other than the usual output.
16416 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16418 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16419 lt_cv_prog_compiler_rtti_exceptions=yes
16420 fi
16421 fi
16422 $RM conftest*
16423
16424 fi
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16426 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16427
16428 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16429 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16430 else
16431 :
16432 fi
16433
16434 fi
16435
16436
16437
16438
16439
16440
16441 lt_prog_compiler_wl=
16442 lt_prog_compiler_pic=
16443 lt_prog_compiler_static=
16444
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16446 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16447
16448 if test "$GCC" = yes; then
16449 lt_prog_compiler_wl='-Wl,'
16450 lt_prog_compiler_static='-static'
16451
16452 case $host_os in
16453 aix*)
16454 # All AIX code is PIC.
16455 if test "$host_cpu" = ia64; then
16456 # AIX 5 now supports IA64 processor
16457 lt_prog_compiler_static='-Bstatic'
16458 fi
16459 lt_prog_compiler_pic='-fPIC'
16460 ;;
16461
16462 amigaos*)
16463 case $host_cpu in
16464 powerpc)
16465 # see comment about AmigaOS4 .so support
16466 lt_prog_compiler_pic='-fPIC'
16467 ;;
16468 m68k)
16469 # FIXME: we need at least 68020 code to build shared libraries, but
16470 # adding the `-m68020' flag to GCC prevents building anything better,
16471 # like `-m68040'.
16472 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16473 ;;
16474 esac
16475 ;;
16476
16477 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16478 # PIC is the default for these OSes.
16479 ;;
16480
16481 mingw* | cygwin* | pw32* | os2* | cegcc*)
16482 # This hack is so that the source file can tell whether it is being
16483 # built for inclusion in a dll (and should export symbols for example).
16484 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16485 # (--disable-auto-import) libraries
16486 lt_prog_compiler_pic='-DDLL_EXPORT'
16487 ;;
16488
16489 darwin* | rhapsody*)
16490 # PIC is the default on this platform
16491 # Common symbols not allowed in MH_DYLIB files
16492 lt_prog_compiler_pic='-fno-common'
16493 ;;
16494
16495 haiku*)
16496 # PIC is the default for Haiku.
16497 # The "-static" flag exists, but is broken.
16498 lt_prog_compiler_static=
16499 ;;
16500
16501 hpux*)
16502 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16503 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16504 # sets the default TLS model and affects inlining.
16505 case $host_cpu in
16506 hppa*64*)
16507 # +Z the default
16508 ;;
16509 *)
16510 lt_prog_compiler_pic='-fPIC'
16511 ;;
16512 esac
16513 ;;
16514
16515 interix[3-9]*)
16516 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16517 # Instead, we relocate shared libraries at runtime.
16518 ;;
16519
16520 msdosdjgpp*)
16521 # Just because we use GCC doesn't mean we suddenly get shared libraries
16522 # on systems that don't support them.
16523 lt_prog_compiler_can_build_shared=no
16524 enable_shared=no
16525 ;;
16526
16527 *nto* | *qnx*)
16528 # QNX uses GNU C++, but need to define -shared option too, otherwise
16529 # it will coredump.
16530 lt_prog_compiler_pic='-fPIC -shared'
16531 ;;
16532
16533 sysv4*MP*)
16534 if test -d /usr/nec; then
16535 lt_prog_compiler_pic=-Kconform_pic
16536 fi
16537 ;;
16538
16539 *)
16540 lt_prog_compiler_pic='-fPIC'
16541 ;;
16542 esac
16543
16544 case $cc_basename in
16545 nvcc*) # Cuda Compiler Driver 2.2
16546 lt_prog_compiler_wl='-Xlinker '
16547 lt_prog_compiler_pic='-Xcompiler -fPIC'
16548 ;;
16549 esac
16550 else
16551 # PORTME Check for flag to pass linker flags through the system compiler.
16552 case $host_os in
16553 aix*)
16554 lt_prog_compiler_wl='-Wl,'
16555 if test "$host_cpu" = ia64; then
16556 # AIX 5 now supports IA64 processor
16557 lt_prog_compiler_static='-Bstatic'
16558 else
16559 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16560 fi
16561 ;;
16562
16563 mingw* | cygwin* | pw32* | os2* | cegcc*)
16564 # This hack is so that the source file can tell whether it is being
16565 # built for inclusion in a dll (and should export symbols for example).
16566 lt_prog_compiler_pic='-DDLL_EXPORT'
16567 ;;
16568
16569 hpux9* | hpux10* | hpux11*)
16570 lt_prog_compiler_wl='-Wl,'
16571 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16572 # not for PA HP-UX.
16573 case $host_cpu in
16574 hppa*64*|ia64*)
16575 # +Z the default
16576 ;;
16577 *)
16578 lt_prog_compiler_pic='+Z'
16579 ;;
16580 esac
16581 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16582 lt_prog_compiler_static='${wl}-a ${wl}archive'
16583 ;;
16584
16585 irix5* | irix6* | nonstopux*)
16586 lt_prog_compiler_wl='-Wl,'
16587 # PIC (with -KPIC) is the default.
16588 lt_prog_compiler_static='-non_shared'
16589 ;;
16590
16591 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16592 case $cc_basename in
16593 # old Intel for x86_64 which still supported -KPIC.
16594 ecc*)
16595 lt_prog_compiler_wl='-Wl,'
16596 lt_prog_compiler_pic='-KPIC'
16597 lt_prog_compiler_static='-static'
16598 ;;
16599 # icc used to be incompatible with GCC.
16600 # ICC 10 doesn't accept -KPIC any more.
16601 icc* | ifort*)
16602 lt_prog_compiler_wl='-Wl,'
16603 lt_prog_compiler_pic='-fPIC'
16604 lt_prog_compiler_static='-static'
16605 ;;
16606 # Lahey Fortran 8.1.
16607 lf95*)
16608 lt_prog_compiler_wl='-Wl,'
16609 lt_prog_compiler_pic='--shared'
16610 lt_prog_compiler_static='--static'
16611 ;;
16612 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16613 # Portland Group compilers (*not* the Pentium gcc compiler,
16614 # which looks to be a dead project)
16615 lt_prog_compiler_wl='-Wl,'
16616 lt_prog_compiler_pic='-fpic'
16617 lt_prog_compiler_static='-Bstatic'
16618 ;;
16619 ccc*)
16620 lt_prog_compiler_wl='-Wl,'
16621 # All Alpha code is PIC.
16622 lt_prog_compiler_static='-non_shared'
16623 ;;
16624 xl* | bgxl* | bgf* | mpixl*)
16625 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16626 lt_prog_compiler_wl='-Wl,'
16627 lt_prog_compiler_pic='-qpic'
16628 lt_prog_compiler_static='-qstaticlink'
16629 ;;
16630 *)
16631 case `$CC -V 2>&1 | sed 5q` in
16632 *Sun\ F* | *Sun*Fortran*)
16633 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16634 lt_prog_compiler_pic='-KPIC'
16635 lt_prog_compiler_static='-Bstatic'
16636 lt_prog_compiler_wl=''
16637 ;;
16638 *Sun\ C*)
16639 # Sun C 5.9
16640 lt_prog_compiler_pic='-KPIC'
16641 lt_prog_compiler_static='-Bstatic'
16642 lt_prog_compiler_wl='-Wl,'
16643 ;;
16644 esac
16645 ;;
16646 esac
16647 ;;
16648
16649 newsos6)
16650 lt_prog_compiler_pic='-KPIC'
16651 lt_prog_compiler_static='-Bstatic'
16652 ;;
16653
16654 *nto* | *qnx*)
16655 # QNX uses GNU C++, but need to define -shared option too, otherwise
16656 # it will coredump.
16657 lt_prog_compiler_pic='-fPIC -shared'
16658 ;;
16659
16660 osf3* | osf4* | osf5*)
16661 lt_prog_compiler_wl='-Wl,'
16662 # All OSF/1 code is PIC.
16663 lt_prog_compiler_static='-non_shared'
16664 ;;
16665
16666 rdos*)
16667 lt_prog_compiler_static='-non_shared'
16668 ;;
16669
16670 solaris*)
16671 lt_prog_compiler_pic='-KPIC'
16672 lt_prog_compiler_static='-Bstatic'
16673 case $cc_basename in
16674 f77* | f90* | f95*)
16675 lt_prog_compiler_wl='-Qoption ld ';;
16676 *)
16677 lt_prog_compiler_wl='-Wl,';;
16678 esac
16679 ;;
16680
16681 sunos4*)
16682 lt_prog_compiler_wl='-Qoption ld '
16683 lt_prog_compiler_pic='-PIC'
16684 lt_prog_compiler_static='-Bstatic'
16685 ;;
16686
16687 sysv4 | sysv4.2uw2* | sysv4.3*)
16688 lt_prog_compiler_wl='-Wl,'
16689 lt_prog_compiler_pic='-KPIC'
16690 lt_prog_compiler_static='-Bstatic'
16691 ;;
16692
16693 sysv4*MP*)
16694 if test -d /usr/nec ;then
16695 lt_prog_compiler_pic='-Kconform_pic'
16696 lt_prog_compiler_static='-Bstatic'
16697 fi
16698 ;;
16699
16700 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16701 lt_prog_compiler_wl='-Wl,'
16702 lt_prog_compiler_pic='-KPIC'
16703 lt_prog_compiler_static='-Bstatic'
16704 ;;
16705
16706 unicos*)
16707 lt_prog_compiler_wl='-Wl,'
16708 lt_prog_compiler_can_build_shared=no
16709 ;;
16710
16711 uts4*)
16712 lt_prog_compiler_pic='-pic'
16713 lt_prog_compiler_static='-Bstatic'
16714 ;;
16715
16716 *)
16717 lt_prog_compiler_can_build_shared=no
16718 ;;
16719 esac
16720 fi
16721
16722 case $host_os in
16723 # For platforms which do not support PIC, -DPIC is meaningless:
16724 *djgpp*)
16725 lt_prog_compiler_pic=
16726 ;;
16727 *)
16728 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16729 ;;
16730 esac
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16732 $as_echo "$lt_prog_compiler_pic" >&6; }
16733
16734
16735
16736
16737
16738
16739 #
16740 # Check to make sure the PIC flag actually works.
16741 #
16742 if test -n "$lt_prog_compiler_pic"; then
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16744 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16745 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16746 $as_echo_n "(cached) " >&6
16747 else
16748 lt_cv_prog_compiler_pic_works=no
16749 ac_outfile=conftest.$ac_objext
16750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16751 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16752 # Insert the option either (1) after the last *FLAGS variable, or
16753 # (2) before a word containing "conftest.", or (3) at the end.
16754 # Note that $ac_compile itself does not contain backslashes and begins
16755 # with a dollar sign (not a hyphen), so the echo should work correctly.
16756 # The option is referenced via a variable to avoid confusing sed.
16757 lt_compile=`echo "$ac_compile" | $SED \
16758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16760 -e 's:$: $lt_compiler_flag:'`
16761 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16762 (eval "$lt_compile" 2>conftest.err)
16763 ac_status=$?
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 if (exit $ac_status) && test -s "$ac_outfile"; then
16767 # The compiler can only warn and ignore the option if not recognized
16768 # So say no if there are warnings other than the usual output.
16769 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16771 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16772 lt_cv_prog_compiler_pic_works=yes
16773 fi
16774 fi
16775 $RM conftest*
16776
16777 fi
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16779 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16780
16781 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16782 case $lt_prog_compiler_pic in
16783 "" | " "*) ;;
16784 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16785 esac
16786 else
16787 lt_prog_compiler_pic=
16788 lt_prog_compiler_can_build_shared=no
16789 fi
16790
16791 fi
16792
16793
16794
16795
16796
16797
16798 #
16799 # Check to make sure the static flag actually works.
16800 #
16801 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16803 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16804 if ${lt_cv_prog_compiler_static_works+:} false; then :
16805 $as_echo_n "(cached) " >&6
16806 else
16807 lt_cv_prog_compiler_static_works=no
16808 save_LDFLAGS="$LDFLAGS"
16809 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16810 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16811 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16812 # The linker can only warn and ignore the option if not recognized
16813 # So say no if there are warnings
16814 if test -s conftest.err; then
16815 # Append any errors to the config.log.
16816 cat conftest.err 1>&5
16817 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16818 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16819 if diff conftest.exp conftest.er2 >/dev/null; then
16820 lt_cv_prog_compiler_static_works=yes
16821 fi
16822 else
16823 lt_cv_prog_compiler_static_works=yes
16824 fi
16825 fi
16826 $RM -r conftest*
16827 LDFLAGS="$save_LDFLAGS"
16828
16829 fi
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16831 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16832
16833 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16834 :
16835 else
16836 lt_prog_compiler_static=
16837 fi
16838
16839
16840
16841
16842
16843
16844
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16846 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16847 if ${lt_cv_prog_compiler_c_o+:} false; then :
16848 $as_echo_n "(cached) " >&6
16849 else
16850 lt_cv_prog_compiler_c_o=no
16851 $RM -r conftest 2>/dev/null
16852 mkdir conftest
16853 cd conftest
16854 mkdir out
16855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16856
16857 lt_compiler_flag="-o out/conftest2.$ac_objext"
16858 # Insert the option either (1) after the last *FLAGS variable, or
16859 # (2) before a word containing "conftest.", or (3) at the end.
16860 # Note that $ac_compile itself does not contain backslashes and begins
16861 # with a dollar sign (not a hyphen), so the echo should work correctly.
16862 lt_compile=`echo "$ac_compile" | $SED \
16863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16865 -e 's:$: $lt_compiler_flag:'`
16866 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16867 (eval "$lt_compile" 2>out/conftest.err)
16868 ac_status=$?
16869 cat out/conftest.err >&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16872 then
16873 # The compiler can only warn and ignore the option if not recognized
16874 # So say no if there are warnings
16875 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16876 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16877 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16878 lt_cv_prog_compiler_c_o=yes
16879 fi
16880 fi
16881 chmod u+w . 2>&5
16882 $RM conftest*
16883 # SGI C++ compiler will create directory out/ii_files/ for
16884 # template instantiation
16885 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16886 $RM out/* && rmdir out
16887 cd ..
16888 $RM -r conftest
16889 $RM conftest*
16890
16891 fi
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16893 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16894
16895
16896
16897
16898
16899
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16901 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16902 if ${lt_cv_prog_compiler_c_o+:} false; then :
16903 $as_echo_n "(cached) " >&6
16904 else
16905 lt_cv_prog_compiler_c_o=no
16906 $RM -r conftest 2>/dev/null
16907 mkdir conftest
16908 cd conftest
16909 mkdir out
16910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16911
16912 lt_compiler_flag="-o out/conftest2.$ac_objext"
16913 # Insert the option either (1) after the last *FLAGS variable, or
16914 # (2) before a word containing "conftest.", or (3) at the end.
16915 # Note that $ac_compile itself does not contain backslashes and begins
16916 # with a dollar sign (not a hyphen), so the echo should work correctly.
16917 lt_compile=`echo "$ac_compile" | $SED \
16918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16920 -e 's:$: $lt_compiler_flag:'`
16921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16922 (eval "$lt_compile" 2>out/conftest.err)
16923 ac_status=$?
16924 cat out/conftest.err >&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16927 then
16928 # The compiler can only warn and ignore the option if not recognized
16929 # So say no if there are warnings
16930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16933 lt_cv_prog_compiler_c_o=yes
16934 fi
16935 fi
16936 chmod u+w . 2>&5
16937 $RM conftest*
16938 # SGI C++ compiler will create directory out/ii_files/ for
16939 # template instantiation
16940 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16941 $RM out/* && rmdir out
16942 cd ..
16943 $RM -r conftest
16944 $RM conftest*
16945
16946 fi
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16948 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16949
16950
16951
16952
16953 hard_links="nottested"
16954 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16955 # do not overwrite the value of need_locks provided by the user
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16957 $as_echo_n "checking if we can lock with hard links... " >&6; }
16958 hard_links=yes
16959 $RM conftest*
16960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16961 touch conftest.a
16962 ln conftest.a conftest.b 2>&5 || hard_links=no
16963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16965 $as_echo "$hard_links" >&6; }
16966 if test "$hard_links" = no; then
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16968 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16969 need_locks=warn
16970 fi
16971 else
16972 need_locks=no
16973 fi
16974
16975
16976
16977
16978
16979
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16981 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16982
16983 runpath_var=
16984 allow_undefined_flag=
16985 always_export_symbols=no
16986 archive_cmds=
16987 archive_expsym_cmds=
16988 compiler_needs_object=no
16989 enable_shared_with_static_runtimes=no
16990 export_dynamic_flag_spec=
16991 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16992 hardcode_automatic=no
16993 hardcode_direct=no
16994 hardcode_direct_absolute=no
16995 hardcode_libdir_flag_spec=
16996 hardcode_libdir_flag_spec_ld=
16997 hardcode_libdir_separator=
16998 hardcode_minus_L=no
16999 hardcode_shlibpath_var=unsupported
17000 inherit_rpath=no
17001 link_all_deplibs=unknown
17002 module_cmds=
17003 module_expsym_cmds=
17004 old_archive_from_new_cmds=
17005 old_archive_from_expsyms_cmds=
17006 thread_safe_flag_spec=
17007 whole_archive_flag_spec=
17008 # include_expsyms should be a list of space-separated symbols to be *always*
17009 # included in the symbol list
17010 include_expsyms=
17011 # exclude_expsyms can be an extended regexp of symbols to exclude
17012 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17013 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17014 # as well as any symbol that contains `d'.
17015 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17016 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17017 # platforms (ab)use it in PIC code, but their linkers get confused if
17018 # the symbol is explicitly referenced. Since portable code cannot
17019 # rely on this symbol name, it's probably fine to never include it in
17020 # preloaded symbol tables.
17021 # Exclude shared library initialization/finalization symbols.
17022 extract_expsyms_cmds=
17023
17024 case $host_os in
17025 cygwin* | mingw* | pw32* | cegcc*)
17026 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17027 # When not using gcc, we currently assume that we are using
17028 # Microsoft Visual C++.
17029 if test "$GCC" != yes; then
17030 with_gnu_ld=no
17031 fi
17032 ;;
17033 interix*)
17034 # we just hope/assume this is gcc and not c89 (= MSVC++)
17035 with_gnu_ld=yes
17036 ;;
17037 openbsd*)
17038 with_gnu_ld=no
17039 ;;
17040 esac
17041
17042 ld_shlibs=yes
17043
17044 # On some targets, GNU ld is compatible enough with the native linker
17045 # that we're better off using the native interface for both.
17046 lt_use_gnu_ld_interface=no
17047 if test "$with_gnu_ld" = yes; then
17048 case $host_os in
17049 aix*)
17050 # The AIX port of GNU ld has always aspired to compatibility
17051 # with the native linker. However, as the warning in the GNU ld
17052 # block says, versions before 2.19.5* couldn't really create working
17053 # shared libraries, regardless of the interface used.
17054 case `$LD -v 2>&1` in
17055 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17056 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17057 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17058 *)
17059 lt_use_gnu_ld_interface=yes
17060 ;;
17061 esac
17062 ;;
17063 *)
17064 lt_use_gnu_ld_interface=yes
17065 ;;
17066 esac
17067 fi
17068
17069 if test "$lt_use_gnu_ld_interface" = yes; then
17070 # If archive_cmds runs LD, not CC, wlarc should be empty
17071 wlarc='${wl}'
17072
17073 # Set some defaults for GNU ld with shared library support. These
17074 # are reset later if shared libraries are not supported. Putting them
17075 # here allows them to be overridden if necessary.
17076 runpath_var=LD_RUN_PATH
17077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17078 export_dynamic_flag_spec='${wl}--export-dynamic'
17079 # ancient GNU ld didn't support --whole-archive et. al.
17080 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17081 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17082 else
17083 whole_archive_flag_spec=
17084 fi
17085 supports_anon_versioning=no
17086 case `$LD -v 2>&1` in
17087 *GNU\ gold*) supports_anon_versioning=yes ;;
17088 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17089 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17090 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17091 *\ 2.11.*) ;; # other 2.11 versions
17092 *) supports_anon_versioning=yes ;;
17093 esac
17094
17095 # See if GNU ld supports shared libraries.
17096 case $host_os in
17097 aix[3-9]*)
17098 # On AIX/PPC, the GNU linker is very broken
17099 if test "$host_cpu" != ia64; then
17100 ld_shlibs=no
17101 cat <<_LT_EOF 1>&2
17102
17103 *** Warning: the GNU linker, at least up to release 2.19, is reported
17104 *** to be unable to reliably create shared libraries on AIX.
17105 *** Therefore, libtool is disabling shared libraries support. If you
17106 *** really care for shared libraries, you may want to install binutils
17107 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17108 *** You will then need to restart the configuration process.
17109
17110 _LT_EOF
17111 fi
17112 ;;
17113
17114 amigaos*)
17115 case $host_cpu in
17116 powerpc)
17117 # see comment about AmigaOS4 .so support
17118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17119 archive_expsym_cmds=''
17120 ;;
17121 m68k)
17122 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)'
17123 hardcode_libdir_flag_spec='-L$libdir'
17124 hardcode_minus_L=yes
17125 ;;
17126 esac
17127 ;;
17128
17129 beos*)
17130 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17131 allow_undefined_flag=unsupported
17132 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17133 # support --undefined. This deserves some investigation. FIXME
17134 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17135 else
17136 ld_shlibs=no
17137 fi
17138 ;;
17139
17140 cygwin* | mingw* | pw32* | cegcc*)
17141 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17142 # as there is no search path for DLLs.
17143 hardcode_libdir_flag_spec='-L$libdir'
17144 export_dynamic_flag_spec='${wl}--export-all-symbols'
17145 allow_undefined_flag=unsupported
17146 always_export_symbols=no
17147 enable_shared_with_static_runtimes=yes
17148 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17149
17150 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17152 # If the export-symbols file already is a .def file (1st line
17153 # is EXPORTS), use it as is; otherwise, prepend...
17154 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17155 cp $export_symbols $output_objdir/$soname.def;
17156 else
17157 echo EXPORTS > $output_objdir/$soname.def;
17158 cat $export_symbols >> $output_objdir/$soname.def;
17159 fi~
17160 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17161 else
17162 ld_shlibs=no
17163 fi
17164 ;;
17165
17166 haiku*)
17167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17168 link_all_deplibs=yes
17169 ;;
17170
17171 interix[3-9]*)
17172 hardcode_direct=no
17173 hardcode_shlibpath_var=no
17174 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17175 export_dynamic_flag_spec='${wl}-E'
17176 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17177 # Instead, shared libraries are loaded at an image base (0x10000000 by
17178 # default) and relocated if they conflict, which is a slow very memory
17179 # consuming and fragmenting process. To avoid this, we pick a random,
17180 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17181 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17182 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17183 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'
17184 ;;
17185
17186 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17187 tmp_diet=no
17188 if test "$host_os" = linux-dietlibc; then
17189 case $cc_basename in
17190 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17191 esac
17192 fi
17193 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17194 && test "$tmp_diet" = no
17195 then
17196 tmp_addflag=' $pic_flag'
17197 tmp_sharedflag='-shared'
17198 case $cc_basename,$host_cpu in
17199 pgcc*) # Portland Group C compiler
17200 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'
17201 tmp_addflag=' $pic_flag'
17202 ;;
17203 pgf77* | pgf90* | pgf95* | pgfortran*)
17204 # Portland Group f77 and f90 compilers
17205 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'
17206 tmp_addflag=' $pic_flag -Mnomain' ;;
17207 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17208 tmp_addflag=' -i_dynamic' ;;
17209 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17210 tmp_addflag=' -i_dynamic -nofor_main' ;;
17211 ifc* | ifort*) # Intel Fortran compiler
17212 tmp_addflag=' -nofor_main' ;;
17213 lf95*) # Lahey Fortran 8.1
17214 whole_archive_flag_spec=
17215 tmp_sharedflag='--shared' ;;
17216 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17217 tmp_sharedflag='-qmkshrobj'
17218 tmp_addflag= ;;
17219 nvcc*) # Cuda Compiler Driver 2.2
17220 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'
17221 compiler_needs_object=yes
17222 ;;
17223 esac
17224 case `$CC -V 2>&1 | sed 5q` in
17225 *Sun\ C*) # Sun C 5.9
17226 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'
17227 compiler_needs_object=yes
17228 tmp_sharedflag='-G' ;;
17229 *Sun\ F*) # Sun Fortran 8.3
17230 tmp_sharedflag='-G' ;;
17231 esac
17232 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17233
17234 if test "x$supports_anon_versioning" = xyes; then
17235 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17236 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17237 echo "local: *; };" >> $output_objdir/$libname.ver~
17238 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17239 fi
17240
17241 case $cc_basename in
17242 xlf* | bgf* | bgxlf* | mpixlf*)
17243 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17244 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17245 hardcode_libdir_flag_spec=
17246 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17247 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17248 if test "x$supports_anon_versioning" = xyes; then
17249 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17250 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17251 echo "local: *; };" >> $output_objdir/$libname.ver~
17252 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17253 fi
17254 ;;
17255 esac
17256 else
17257 ld_shlibs=no
17258 fi
17259 ;;
17260
17261 netbsd*)
17262 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17263 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17264 wlarc=
17265 else
17266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17268 fi
17269 ;;
17270
17271 solaris*)
17272 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17273 ld_shlibs=no
17274 cat <<_LT_EOF 1>&2
17275
17276 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17277 *** create shared libraries on Solaris systems. Therefore, libtool
17278 *** is disabling shared libraries support. We urge you to upgrade GNU
17279 *** binutils to release 2.9.1 or newer. Another option is to modify
17280 *** your PATH or compiler configuration so that the native linker is
17281 *** used, and then restart.
17282
17283 _LT_EOF
17284 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17287 else
17288 ld_shlibs=no
17289 fi
17290 ;;
17291
17292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17293 case `$LD -v 2>&1` in
17294 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17295 ld_shlibs=no
17296 cat <<_LT_EOF 1>&2
17297
17298 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17299 *** reliably create shared libraries on SCO systems. Therefore, libtool
17300 *** is disabling shared libraries support. We urge you to upgrade GNU
17301 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17302 *** your PATH or compiler configuration so that the native linker is
17303 *** used, and then restart.
17304
17305 _LT_EOF
17306 ;;
17307 *)
17308 # For security reasons, it is highly recommended that you always
17309 # use absolute paths for naming shared libraries, and exclude the
17310 # DT_RUNPATH tag from executables and libraries. But doing so
17311 # requires that you compile everything twice, which is a pain.
17312 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17315 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17316 else
17317 ld_shlibs=no
17318 fi
17319 ;;
17320 esac
17321 ;;
17322
17323 sunos4*)
17324 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17325 wlarc=
17326 hardcode_direct=yes
17327 hardcode_shlibpath_var=no
17328 ;;
17329
17330 *)
17331 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17334 else
17335 ld_shlibs=no
17336 fi
17337 ;;
17338 esac
17339
17340 if test "$ld_shlibs" = no; then
17341 runpath_var=
17342 hardcode_libdir_flag_spec=
17343 export_dynamic_flag_spec=
17344 whole_archive_flag_spec=
17345 fi
17346 else
17347 # PORTME fill in a description of your system's linker (not GNU ld)
17348 case $host_os in
17349 aix3*)
17350 allow_undefined_flag=unsupported
17351 always_export_symbols=yes
17352 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'
17353 # Note: this linker hardcodes the directories in LIBPATH if there
17354 # are no directories specified by -L.
17355 hardcode_minus_L=yes
17356 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17357 # Neither direct hardcoding nor static linking is supported with a
17358 # broken collect2.
17359 hardcode_direct=unsupported
17360 fi
17361 ;;
17362
17363 aix[4-9]*)
17364 if test "$host_cpu" = ia64; then
17365 # On IA64, the linker does run time linking by default, so we don't
17366 # have to do anything special.
17367 aix_use_runtimelinking=no
17368 exp_sym_flag='-Bexport'
17369 no_entry_flag=""
17370 else
17371 # If we're using GNU nm, then we don't want the "-C" option.
17372 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17373 # Also, AIX nm treats weak defined symbols like other global
17374 # defined symbols, whereas GNU nm marks them as "W".
17375 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17376 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'
17377 else
17378 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'
17379 fi
17380 aix_use_runtimelinking=no
17381
17382 # Test if we are trying to use run time linking or normal
17383 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17384 # need to do runtime linking.
17385 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17386 for ld_flag in $LDFLAGS; do
17387 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17388 aix_use_runtimelinking=yes
17389 break
17390 fi
17391 done
17392 ;;
17393 esac
17394
17395 exp_sym_flag='-bexport'
17396 no_entry_flag='-bnoentry'
17397 fi
17398
17399 # When large executables or shared objects are built, AIX ld can
17400 # have problems creating the table of contents. If linking a library
17401 # or program results in "error TOC overflow" add -mminimal-toc to
17402 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17403 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17404
17405 archive_cmds=''
17406 hardcode_direct=yes
17407 hardcode_direct_absolute=yes
17408 hardcode_libdir_separator=':'
17409 link_all_deplibs=yes
17410 file_list_spec='${wl}-f,'
17411
17412 if test "$GCC" = yes; then
17413 case $host_os in aix4.[012]|aix4.[012].*)
17414 # We only want to do this on AIX 4.2 and lower, the check
17415 # below for broken collect2 doesn't work under 4.3+
17416 collect2name=`${CC} -print-prog-name=collect2`
17417 if test -f "$collect2name" &&
17418 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17419 then
17420 # We have reworked collect2
17421 :
17422 else
17423 # We have old collect2
17424 hardcode_direct=unsupported
17425 # It fails to find uninstalled libraries when the uninstalled
17426 # path is not listed in the libpath. Setting hardcode_minus_L
17427 # to unsupported forces relinking
17428 hardcode_minus_L=yes
17429 hardcode_libdir_flag_spec='-L$libdir'
17430 hardcode_libdir_separator=
17431 fi
17432 ;;
17433 esac
17434 shared_flag='-shared'
17435 if test "$aix_use_runtimelinking" = yes; then
17436 shared_flag="$shared_flag "'${wl}-G'
17437 fi
17438 else
17439 # not using gcc
17440 if test "$host_cpu" = ia64; then
17441 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17442 # chokes on -Wl,-G. The following line is correct:
17443 shared_flag='-G'
17444 else
17445 if test "$aix_use_runtimelinking" = yes; then
17446 shared_flag='${wl}-G'
17447 else
17448 shared_flag='${wl}-bM:SRE'
17449 fi
17450 fi
17451 fi
17452
17453 export_dynamic_flag_spec='${wl}-bexpall'
17454 # It seems that -bexpall does not export symbols beginning with
17455 # underscore (_), so it is better to generate a list of symbols to export.
17456 always_export_symbols=yes
17457 if test "$aix_use_runtimelinking" = yes; then
17458 # Warning - without using the other runtime loading flags (-brtl),
17459 # -berok will link without error, but may produce a broken library.
17460 allow_undefined_flag='-berok'
17461 # Determine the default libpath from the value encoded in an
17462 # empty executable.
17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17465
17466 int
17467 main ()
17468 {
17469
17470 ;
17471 return 0;
17472 }
17473 _ACEOF
17474 if ac_fn_c_try_link "$LINENO"; then :
17475
17476 lt_aix_libpath_sed='
17477 /Import File Strings/,/^$/ {
17478 /^0/ {
17479 s/^0 *\(.*\)$/\1/
17480 p
17481 }
17482 }'
17483 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17484 # Check for a 64-bit object if we didn't find anything.
17485 if test -z "$aix_libpath"; then
17486 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17487 fi
17488 fi
17489 rm -f core conftest.err conftest.$ac_objext \
17490 conftest$ac_exeext conftest.$ac_ext
17491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17492
17493 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17494 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"
17495 else
17496 if test "$host_cpu" = ia64; then
17497 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17498 allow_undefined_flag="-z nodefs"
17499 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"
17500 else
17501 # Determine the default libpath from the value encoded in an
17502 # empty executable.
17503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17504 /* end confdefs.h. */
17505
17506 int
17507 main ()
17508 {
17509
17510 ;
17511 return 0;
17512 }
17513 _ACEOF
17514 if ac_fn_c_try_link "$LINENO"; then :
17515
17516 lt_aix_libpath_sed='
17517 /Import File Strings/,/^$/ {
17518 /^0/ {
17519 s/^0 *\(.*\)$/\1/
17520 p
17521 }
17522 }'
17523 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17524 # Check for a 64-bit object if we didn't find anything.
17525 if test -z "$aix_libpath"; then
17526 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17527 fi
17528 fi
17529 rm -f core conftest.err conftest.$ac_objext \
17530 conftest$ac_exeext conftest.$ac_ext
17531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17532
17533 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17534 # Warning - without using the other run time loading flags,
17535 # -berok will link without error, but may produce a broken library.
17536 no_undefined_flag=' ${wl}-bernotok'
17537 allow_undefined_flag=' ${wl}-berok'
17538 if test "$with_gnu_ld" = yes; then
17539 # We only use this code for GNU lds that support --whole-archive.
17540 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17541 else
17542 # Exported symbols can be pulled into shared objects from archives
17543 whole_archive_flag_spec='$convenience'
17544 fi
17545 archive_cmds_need_lc=yes
17546 # This is similar to how AIX traditionally builds its shared libraries.
17547 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'
17548 fi
17549 fi
17550 ;;
17551
17552 amigaos*)
17553 case $host_cpu in
17554 powerpc)
17555 # see comment about AmigaOS4 .so support
17556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17557 archive_expsym_cmds=''
17558 ;;
17559 m68k)
17560 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)'
17561 hardcode_libdir_flag_spec='-L$libdir'
17562 hardcode_minus_L=yes
17563 ;;
17564 esac
17565 ;;
17566
17567 bsdi[45]*)
17568 export_dynamic_flag_spec=-rdynamic
17569 ;;
17570
17571 cygwin* | mingw* | pw32* | cegcc*)
17572 # When not using gcc, we currently assume that we are using
17573 # Microsoft Visual C++.
17574 # hardcode_libdir_flag_spec is actually meaningless, as there is
17575 # no search path for DLLs.
17576 hardcode_libdir_flag_spec=' '
17577 allow_undefined_flag=unsupported
17578 # Tell ltmain to make .lib files, not .a files.
17579 libext=lib
17580 # Tell ltmain to make .dll files, not .so files.
17581 shrext_cmds=".dll"
17582 # FIXME: Setting linknames here is a bad hack.
17583 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17584 # The linker will automatically build a .lib file if we build a DLL.
17585 old_archive_from_new_cmds='true'
17586 # FIXME: Should let the user specify the lib program.
17587 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17588 fix_srcfile_path='`cygpath -w "$srcfile"`'
17589 enable_shared_with_static_runtimes=yes
17590 ;;
17591
17592 darwin* | rhapsody*)
17593
17594
17595 archive_cmds_need_lc=no
17596 hardcode_direct=no
17597 hardcode_automatic=yes
17598 hardcode_shlibpath_var=unsupported
17599 if test "$lt_cv_ld_force_load" = "yes"; then
17600 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\"`'
17601 else
17602 whole_archive_flag_spec=''
17603 fi
17604 link_all_deplibs=yes
17605 allow_undefined_flag="$_lt_dar_allow_undefined"
17606 case $cc_basename in
17607 ifort*) _lt_dar_can_shared=yes ;;
17608 *) _lt_dar_can_shared=$GCC ;;
17609 esac
17610 if test "$_lt_dar_can_shared" = "yes"; then
17611 output_verbose_link_cmd=func_echo_all
17612 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17613 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17614 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}"
17615 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}"
17616
17617 else
17618 ld_shlibs=no
17619 fi
17620
17621 ;;
17622
17623 dgux*)
17624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17625 hardcode_libdir_flag_spec='-L$libdir'
17626 hardcode_shlibpath_var=no
17627 ;;
17628
17629 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17630 # support. Future versions do this automatically, but an explicit c++rt0.o
17631 # does not break anything, and helps significantly (at the cost of a little
17632 # extra space).
17633 freebsd2.2*)
17634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17635 hardcode_libdir_flag_spec='-R$libdir'
17636 hardcode_direct=yes
17637 hardcode_shlibpath_var=no
17638 ;;
17639
17640 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17641 freebsd2.*)
17642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17643 hardcode_direct=yes
17644 hardcode_minus_L=yes
17645 hardcode_shlibpath_var=no
17646 ;;
17647
17648 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17649 freebsd* | dragonfly*)
17650 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17651 hardcode_libdir_flag_spec='-R$libdir'
17652 hardcode_direct=yes
17653 hardcode_shlibpath_var=no
17654 ;;
17655
17656 hpux9*)
17657 if test "$GCC" = yes; then
17658 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'
17659 else
17660 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'
17661 fi
17662 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17663 hardcode_libdir_separator=:
17664 hardcode_direct=yes
17665
17666 # hardcode_minus_L: Not really in the search PATH,
17667 # but as the default location of the library.
17668 hardcode_minus_L=yes
17669 export_dynamic_flag_spec='${wl}-E'
17670 ;;
17671
17672 hpux10*)
17673 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17674 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17675 else
17676 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17677 fi
17678 if test "$with_gnu_ld" = no; then
17679 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17680 hardcode_libdir_flag_spec_ld='+b $libdir'
17681 hardcode_libdir_separator=:
17682 hardcode_direct=yes
17683 hardcode_direct_absolute=yes
17684 export_dynamic_flag_spec='${wl}-E'
17685 # hardcode_minus_L: Not really in the search PATH,
17686 # but as the default location of the library.
17687 hardcode_minus_L=yes
17688 fi
17689 ;;
17690
17691 hpux11*)
17692 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17693 case $host_cpu in
17694 hppa*64*)
17695 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17696 ;;
17697 ia64*)
17698 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17699 ;;
17700 *)
17701 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17702 ;;
17703 esac
17704 else
17705 case $host_cpu in
17706 hppa*64*)
17707 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17708 ;;
17709 ia64*)
17710 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17711 ;;
17712 *)
17713
17714 # Older versions of the 11.00 compiler do not understand -b yet
17715 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17717 $as_echo_n "checking if $CC understands -b... " >&6; }
17718 if ${lt_cv_prog_compiler__b+:} false; then :
17719 $as_echo_n "(cached) " >&6
17720 else
17721 lt_cv_prog_compiler__b=no
17722 save_LDFLAGS="$LDFLAGS"
17723 LDFLAGS="$LDFLAGS -b"
17724 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17725 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17726 # The linker can only warn and ignore the option if not recognized
17727 # So say no if there are warnings
17728 if test -s conftest.err; then
17729 # Append any errors to the config.log.
17730 cat conftest.err 1>&5
17731 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17732 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17733 if diff conftest.exp conftest.er2 >/dev/null; then
17734 lt_cv_prog_compiler__b=yes
17735 fi
17736 else
17737 lt_cv_prog_compiler__b=yes
17738 fi
17739 fi
17740 $RM -r conftest*
17741 LDFLAGS="$save_LDFLAGS"
17742
17743 fi
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17745 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17746
17747 if test x"$lt_cv_prog_compiler__b" = xyes; then
17748 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17749 else
17750 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17751 fi
17752
17753 ;;
17754 esac
17755 fi
17756 if test "$with_gnu_ld" = no; then
17757 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17758 hardcode_libdir_separator=:
17759
17760 case $host_cpu in
17761 hppa*64*|ia64*)
17762 hardcode_direct=no
17763 hardcode_shlibpath_var=no
17764 ;;
17765 *)
17766 hardcode_direct=yes
17767 hardcode_direct_absolute=yes
17768 export_dynamic_flag_spec='${wl}-E'
17769
17770 # hardcode_minus_L: Not really in the search PATH,
17771 # but as the default location of the library.
17772 hardcode_minus_L=yes
17773 ;;
17774 esac
17775 fi
17776 ;;
17777
17778 irix5* | irix6* | nonstopux*)
17779 if test "$GCC" = yes; then
17780 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'
17781 # Try to use the -exported_symbol ld option, if it does not
17782 # work, assume that -exports_file does not work either and
17783 # implicitly export all symbols.
17784 save_LDFLAGS="$LDFLAGS"
17785 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17787 /* end confdefs.h. */
17788 int foo(void) {}
17789 _ACEOF
17790 if ac_fn_c_try_link "$LINENO"; then :
17791 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'
17792
17793 fi
17794 rm -f core conftest.err conftest.$ac_objext \
17795 conftest$ac_exeext conftest.$ac_ext
17796 LDFLAGS="$save_LDFLAGS"
17797 else
17798 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'
17799 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'
17800 fi
17801 archive_cmds_need_lc='no'
17802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17803 hardcode_libdir_separator=:
17804 inherit_rpath=yes
17805 link_all_deplibs=yes
17806 ;;
17807
17808 netbsd*)
17809 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17811 else
17812 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17813 fi
17814 hardcode_libdir_flag_spec='-R$libdir'
17815 hardcode_direct=yes
17816 hardcode_shlibpath_var=no
17817 ;;
17818
17819 newsos6)
17820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17821 hardcode_direct=yes
17822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17823 hardcode_libdir_separator=:
17824 hardcode_shlibpath_var=no
17825 ;;
17826
17827 *nto* | *qnx*)
17828 ;;
17829
17830 openbsd*)
17831 if test -f /usr/libexec/ld.so; then
17832 hardcode_direct=yes
17833 hardcode_shlibpath_var=no
17834 hardcode_direct_absolute=yes
17835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17836 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17837 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17838 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17839 export_dynamic_flag_spec='${wl}-E'
17840 else
17841 case $host_os in
17842 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17844 hardcode_libdir_flag_spec='-R$libdir'
17845 ;;
17846 *)
17847 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17848 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17849 ;;
17850 esac
17851 fi
17852 else
17853 ld_shlibs=no
17854 fi
17855 ;;
17856
17857 os2*)
17858 hardcode_libdir_flag_spec='-L$libdir'
17859 hardcode_minus_L=yes
17860 allow_undefined_flag=unsupported
17861 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'
17862 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17863 ;;
17864
17865 osf3*)
17866 if test "$GCC" = yes; then
17867 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17868 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'
17869 else
17870 allow_undefined_flag=' -expect_unresolved \*'
17871 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'
17872 fi
17873 archive_cmds_need_lc='no'
17874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17875 hardcode_libdir_separator=:
17876 ;;
17877
17878 osf4* | osf5*) # as osf3* with the addition of -msym flag
17879 if test "$GCC" = yes; then
17880 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17881 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'
17882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17883 else
17884 allow_undefined_flag=' -expect_unresolved \*'
17885 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'
17886 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~
17887 $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'
17888
17889 # Both c and cxx compiler support -rpath directly
17890 hardcode_libdir_flag_spec='-rpath $libdir'
17891 fi
17892 archive_cmds_need_lc='no'
17893 hardcode_libdir_separator=:
17894 ;;
17895
17896 solaris*)
17897 no_undefined_flag=' -z defs'
17898 if test "$GCC" = yes; then
17899 wlarc='${wl}'
17900 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17901 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17902 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17903 else
17904 case `$CC -V 2>&1` in
17905 *"Compilers 5.0"*)
17906 wlarc=''
17907 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17908 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17909 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17910 ;;
17911 *)
17912 wlarc='${wl}'
17913 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17914 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17915 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17916 ;;
17917 esac
17918 fi
17919 hardcode_libdir_flag_spec='-R$libdir'
17920 hardcode_shlibpath_var=no
17921 case $host_os in
17922 solaris2.[0-5] | solaris2.[0-5].*) ;;
17923 *)
17924 # The compiler driver will combine and reorder linker options,
17925 # but understands `-z linker_flag'. GCC discards it without `$wl',
17926 # but is careful enough not to reorder.
17927 # Supported since Solaris 2.6 (maybe 2.5.1?)
17928 if test "$GCC" = yes; then
17929 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17930 else
17931 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17932 fi
17933 ;;
17934 esac
17935 link_all_deplibs=yes
17936 ;;
17937
17938 sunos4*)
17939 if test "x$host_vendor" = xsequent; then
17940 # Use $CC to link under sequent, because it throws in some extra .o
17941 # files that make .init and .fini sections work.
17942 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17943 else
17944 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17945 fi
17946 hardcode_libdir_flag_spec='-L$libdir'
17947 hardcode_direct=yes
17948 hardcode_minus_L=yes
17949 hardcode_shlibpath_var=no
17950 ;;
17951
17952 sysv4)
17953 case $host_vendor in
17954 sni)
17955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17956 hardcode_direct=yes # is this really true???
17957 ;;
17958 siemens)
17959 ## LD is ld it makes a PLAMLIB
17960 ## CC just makes a GrossModule.
17961 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17962 reload_cmds='$CC -r -o $output$reload_objs'
17963 hardcode_direct=no
17964 ;;
17965 motorola)
17966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17967 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17968 ;;
17969 esac
17970 runpath_var='LD_RUN_PATH'
17971 hardcode_shlibpath_var=no
17972 ;;
17973
17974 sysv4.3*)
17975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17976 hardcode_shlibpath_var=no
17977 export_dynamic_flag_spec='-Bexport'
17978 ;;
17979
17980 sysv4*MP*)
17981 if test -d /usr/nec; then
17982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17983 hardcode_shlibpath_var=no
17984 runpath_var=LD_RUN_PATH
17985 hardcode_runpath_var=yes
17986 ld_shlibs=yes
17987 fi
17988 ;;
17989
17990 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17991 no_undefined_flag='${wl}-z,text'
17992 archive_cmds_need_lc=no
17993 hardcode_shlibpath_var=no
17994 runpath_var='LD_RUN_PATH'
17995
17996 if test "$GCC" = yes; then
17997 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17998 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17999 else
18000 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18001 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18002 fi
18003 ;;
18004
18005 sysv5* | sco3.2v5* | sco5v6*)
18006 # Note: We can NOT use -z defs as we might desire, because we do not
18007 # link with -lc, and that would cause any symbols used from libc to
18008 # always be unresolved, which means just about no library would
18009 # ever link correctly. If we're not using GNU ld we use -z text
18010 # though, which does catch some bad symbols but isn't as heavy-handed
18011 # as -z defs.
18012 no_undefined_flag='${wl}-z,text'
18013 allow_undefined_flag='${wl}-z,nodefs'
18014 archive_cmds_need_lc=no
18015 hardcode_shlibpath_var=no
18016 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18017 hardcode_libdir_separator=':'
18018 link_all_deplibs=yes
18019 export_dynamic_flag_spec='${wl}-Bexport'
18020 runpath_var='LD_RUN_PATH'
18021
18022 if test "$GCC" = yes; then
18023 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18024 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18025 else
18026 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18027 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18028 fi
18029 ;;
18030
18031 uts4*)
18032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18033 hardcode_libdir_flag_spec='-L$libdir'
18034 hardcode_shlibpath_var=no
18035 ;;
18036
18037 *)
18038 ld_shlibs=no
18039 ;;
18040 esac
18041
18042 if test x$host_vendor = xsni; then
18043 case $host in
18044 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18045 export_dynamic_flag_spec='${wl}-Blargedynsym'
18046 ;;
18047 esac
18048 fi
18049 fi
18050
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18052 $as_echo "$ld_shlibs" >&6; }
18053 test "$ld_shlibs" = no && can_build_shared=no
18054
18055 with_gnu_ld=$with_gnu_ld
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071 #
18072 # Do we need to explicitly link libc?
18073 #
18074 case "x$archive_cmds_need_lc" in
18075 x|xyes)
18076 # Assume -lc should be added
18077 archive_cmds_need_lc=yes
18078
18079 if test "$enable_shared" = yes && test "$GCC" = yes; then
18080 case $archive_cmds in
18081 *'~'*)
18082 # FIXME: we may have to deal with multi-command sequences.
18083 ;;
18084 '$CC '*)
18085 # Test whether the compiler implicitly links with -lc since on some
18086 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18087 # to ld, don't add -lc before -lgcc.
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18089 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18090 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18091 $as_echo_n "(cached) " >&6
18092 else
18093 $RM conftest*
18094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18095
18096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18097 (eval $ac_compile) 2>&5
18098 ac_status=$?
18099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18100 test $ac_status = 0; } 2>conftest.err; then
18101 soname=conftest
18102 lib=conftest
18103 libobjs=conftest.$ac_objext
18104 deplibs=
18105 wl=$lt_prog_compiler_wl
18106 pic_flag=$lt_prog_compiler_pic
18107 compiler_flags=-v
18108 linker_flags=-v
18109 verstring=
18110 output_objdir=.
18111 libname=conftest
18112 lt_save_allow_undefined_flag=$allow_undefined_flag
18113 allow_undefined_flag=
18114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18115 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18116 ac_status=$?
18117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18118 test $ac_status = 0; }
18119 then
18120 lt_cv_archive_cmds_need_lc=no
18121 else
18122 lt_cv_archive_cmds_need_lc=yes
18123 fi
18124 allow_undefined_flag=$lt_save_allow_undefined_flag
18125 else
18126 cat conftest.err 1>&5
18127 fi
18128 $RM conftest*
18129
18130 fi
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18132 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18133 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18134 ;;
18135 esac
18136 fi
18137 ;;
18138 esac
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18297 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18298
18299 if test "$GCC" = yes; then
18300 case $host_os in
18301 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18302 *) lt_awk_arg="/^libraries:/" ;;
18303 esac
18304 case $host_os in
18305 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18306 *) lt_sed_strip_eq="s,=/,/,g" ;;
18307 esac
18308 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18309 case $lt_search_path_spec in
18310 *\;*)
18311 # if the path contains ";" then we assume it to be the separator
18312 # otherwise default to the standard path separator (i.e. ":") - it is
18313 # assumed that no part of a normal pathname contains ";" but that should
18314 # okay in the real world where ";" in dirpaths is itself problematic.
18315 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18316 ;;
18317 *)
18318 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18319 ;;
18320 esac
18321 # Ok, now we have the path, separated by spaces, we can step through it
18322 # and add multilib dir if necessary.
18323 lt_tmp_lt_search_path_spec=
18324 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18325 for lt_sys_path in $lt_search_path_spec; do
18326 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18327 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18328 else
18329 test -d "$lt_sys_path" && \
18330 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18331 fi
18332 done
18333 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18334 BEGIN {RS=" "; FS="/|\n";} {
18335 lt_foo="";
18336 lt_count=0;
18337 for (lt_i = NF; lt_i > 0; lt_i--) {
18338 if ($lt_i != "" && $lt_i != ".") {
18339 if ($lt_i == "..") {
18340 lt_count++;
18341 } else {
18342 if (lt_count == 0) {
18343 lt_foo="/" $lt_i lt_foo;
18344 } else {
18345 lt_count--;
18346 }
18347 }
18348 }
18349 }
18350 if (lt_foo != "") { lt_freq[lt_foo]++; }
18351 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18352 }'`
18353 # AWK program above erroneously prepends '/' to C:/dos/paths
18354 # for these hosts.
18355 case $host_os in
18356 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18357 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18358 esac
18359 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18360 else
18361 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18362 fi
18363 library_names_spec=
18364 libname_spec='lib$name'
18365 soname_spec=
18366 shrext_cmds=".so"
18367 postinstall_cmds=
18368 postuninstall_cmds=
18369 finish_cmds=
18370 finish_eval=
18371 shlibpath_var=
18372 shlibpath_overrides_runpath=unknown
18373 version_type=none
18374 dynamic_linker="$host_os ld.so"
18375 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18376 need_lib_prefix=unknown
18377 hardcode_into_libs=no
18378
18379 # when you set need_version to no, make sure it does not cause -set_version
18380 # flags to be left without arguments
18381 need_version=unknown
18382
18383 case $host_os in
18384 aix3*)
18385 version_type=linux
18386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18387 shlibpath_var=LIBPATH
18388
18389 # AIX 3 has no versioning support, so we append a major version to the name.
18390 soname_spec='${libname}${release}${shared_ext}$major'
18391 ;;
18392
18393 aix[4-9]*)
18394 version_type=linux
18395 need_lib_prefix=no
18396 need_version=no
18397 hardcode_into_libs=yes
18398 if test "$host_cpu" = ia64; then
18399 # AIX 5 supports IA64
18400 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18401 shlibpath_var=LD_LIBRARY_PATH
18402 else
18403 # With GCC up to 2.95.x, collect2 would create an import file
18404 # for dependence libraries. The import file would start with
18405 # the line `#! .'. This would cause the generated library to
18406 # depend on `.', always an invalid library. This was fixed in
18407 # development snapshots of GCC prior to 3.0.
18408 case $host_os in
18409 aix4 | aix4.[01] | aix4.[01].*)
18410 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18411 echo ' yes '
18412 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18413 :
18414 else
18415 can_build_shared=no
18416 fi
18417 ;;
18418 esac
18419 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18420 # soname into executable. Probably we can add versioning support to
18421 # collect2, so additional links can be useful in future.
18422 if test "$aix_use_runtimelinking" = yes; then
18423 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18424 # instead of lib<name>.a to let people know that these are not
18425 # typical AIX shared libraries.
18426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18427 else
18428 # We preserve .a as extension for shared libraries through AIX4.2
18429 # and later when we are not doing run time linking.
18430 library_names_spec='${libname}${release}.a $libname.a'
18431 soname_spec='${libname}${release}${shared_ext}$major'
18432 fi
18433 shlibpath_var=LIBPATH
18434 fi
18435 ;;
18436
18437 amigaos*)
18438 case $host_cpu in
18439 powerpc)
18440 # Since July 2007 AmigaOS4 officially supports .so libraries.
18441 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18443 ;;
18444 m68k)
18445 library_names_spec='$libname.ixlibrary $libname.a'
18446 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18447 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'
18448 ;;
18449 esac
18450 ;;
18451
18452 beos*)
18453 library_names_spec='${libname}${shared_ext}'
18454 dynamic_linker="$host_os ld.so"
18455 shlibpath_var=LIBRARY_PATH
18456 ;;
18457
18458 bsdi[45]*)
18459 version_type=linux
18460 need_version=no
18461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18462 soname_spec='${libname}${release}${shared_ext}$major'
18463 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18464 shlibpath_var=LD_LIBRARY_PATH
18465 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18466 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18467 # the default ld.so.conf also contains /usr/contrib/lib and
18468 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18469 # libtool to hard-code these into programs
18470 ;;
18471
18472 cygwin* | mingw* | pw32* | cegcc*)
18473 version_type=windows
18474 shrext_cmds=".dll"
18475 need_version=no
18476 need_lib_prefix=no
18477
18478 case $GCC,$host_os in
18479 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18480 library_names_spec='$libname.dll.a'
18481 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18482 postinstall_cmds='base_file=`basename \${file}`~
18483 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18484 dldir=$destdir/`dirname \$dlpath`~
18485 test -d \$dldir || mkdir -p \$dldir~
18486 $install_prog $dir/$dlname \$dldir/$dlname~
18487 chmod a+x \$dldir/$dlname~
18488 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18489 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18490 fi'
18491 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18492 dlpath=$dir/\$dldll~
18493 $RM \$dlpath'
18494 shlibpath_overrides_runpath=yes
18495
18496 case $host_os in
18497 cygwin*)
18498 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18499 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18500
18501 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18502 ;;
18503 mingw* | cegcc*)
18504 # MinGW DLLs use traditional 'lib' prefix
18505 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18506 ;;
18507 pw32*)
18508 # pw32 DLLs use 'pw' prefix rather than 'lib'
18509 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18510 ;;
18511 esac
18512 ;;
18513
18514 *)
18515 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18516 ;;
18517 esac
18518 dynamic_linker='Win32 ld.exe'
18519 # FIXME: first we should search . and the directory the executable is in
18520 shlibpath_var=PATH
18521 ;;
18522
18523 darwin* | rhapsody*)
18524 dynamic_linker="$host_os dyld"
18525 version_type=darwin
18526 need_lib_prefix=no
18527 need_version=no
18528 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18529 soname_spec='${libname}${release}${major}$shared_ext'
18530 shlibpath_overrides_runpath=yes
18531 shlibpath_var=DYLD_LIBRARY_PATH
18532 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18533
18534 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18535 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18536 ;;
18537
18538 dgux*)
18539 version_type=linux
18540 need_lib_prefix=no
18541 need_version=no
18542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18543 soname_spec='${libname}${release}${shared_ext}$major'
18544 shlibpath_var=LD_LIBRARY_PATH
18545 ;;
18546
18547 freebsd* | dragonfly*)
18548 # DragonFly does not have aout. When/if they implement a new
18549 # versioning mechanism, adjust this.
18550 if test -x /usr/bin/objformat; then
18551 objformat=`/usr/bin/objformat`
18552 else
18553 case $host_os in
18554 freebsd[23].*) objformat=aout ;;
18555 *) objformat=elf ;;
18556 esac
18557 fi
18558 version_type=freebsd-$objformat
18559 case $version_type in
18560 freebsd-elf*)
18561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18562 need_version=no
18563 need_lib_prefix=no
18564 ;;
18565 freebsd-*)
18566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18567 need_version=yes
18568 ;;
18569 esac
18570 shlibpath_var=LD_LIBRARY_PATH
18571 case $host_os in
18572 freebsd2.*)
18573 shlibpath_overrides_runpath=yes
18574 ;;
18575 freebsd3.[01]* | freebsdelf3.[01]*)
18576 shlibpath_overrides_runpath=yes
18577 hardcode_into_libs=yes
18578 ;;
18579 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18580 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18581 shlibpath_overrides_runpath=no
18582 hardcode_into_libs=yes
18583 ;;
18584 *) # from 4.6 on, and DragonFly
18585 shlibpath_overrides_runpath=yes
18586 hardcode_into_libs=yes
18587 ;;
18588 esac
18589 ;;
18590
18591 haiku*)
18592 version_type=linux
18593 need_lib_prefix=no
18594 need_version=no
18595 dynamic_linker="$host_os runtime_loader"
18596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18597 soname_spec='${libname}${release}${shared_ext}$major'
18598 shlibpath_var=LIBRARY_PATH
18599 shlibpath_overrides_runpath=yes
18600 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18601 hardcode_into_libs=yes
18602 ;;
18603
18604 hpux9* | hpux10* | hpux11*)
18605 # Give a soname corresponding to the major version so that dld.sl refuses to
18606 # link against other versions.
18607 version_type=sunos
18608 need_lib_prefix=no
18609 need_version=no
18610 case $host_cpu in
18611 ia64*)
18612 shrext_cmds='.so'
18613 hardcode_into_libs=yes
18614 dynamic_linker="$host_os dld.so"
18615 shlibpath_var=LD_LIBRARY_PATH
18616 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18618 soname_spec='${libname}${release}${shared_ext}$major'
18619 if test "X$HPUX_IA64_MODE" = X32; then
18620 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18621 else
18622 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18623 fi
18624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18625 ;;
18626 hppa*64*)
18627 shrext_cmds='.sl'
18628 hardcode_into_libs=yes
18629 dynamic_linker="$host_os dld.sl"
18630 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18631 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18633 soname_spec='${libname}${release}${shared_ext}$major'
18634 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18635 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18636 ;;
18637 *)
18638 shrext_cmds='.sl'
18639 dynamic_linker="$host_os dld.sl"
18640 shlibpath_var=SHLIB_PATH
18641 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18643 soname_spec='${libname}${release}${shared_ext}$major'
18644 ;;
18645 esac
18646 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18647 postinstall_cmds='chmod 555 $lib'
18648 # or fails outright, so override atomically:
18649 install_override_mode=555
18650 ;;
18651
18652 interix[3-9]*)
18653 version_type=linux
18654 need_lib_prefix=no
18655 need_version=no
18656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18657 soname_spec='${libname}${release}${shared_ext}$major'
18658 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18659 shlibpath_var=LD_LIBRARY_PATH
18660 shlibpath_overrides_runpath=no
18661 hardcode_into_libs=yes
18662 ;;
18663
18664 irix5* | irix6* | nonstopux*)
18665 case $host_os in
18666 nonstopux*) version_type=nonstopux ;;
18667 *)
18668 if test "$lt_cv_prog_gnu_ld" = yes; then
18669 version_type=linux
18670 else
18671 version_type=irix
18672 fi ;;
18673 esac
18674 need_lib_prefix=no
18675 need_version=no
18676 soname_spec='${libname}${release}${shared_ext}$major'
18677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18678 case $host_os in
18679 irix5* | nonstopux*)
18680 libsuff= shlibsuff=
18681 ;;
18682 *)
18683 case $LD in # libtool.m4 will add one of these switches to LD
18684 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18685 libsuff= shlibsuff= libmagic=32-bit;;
18686 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18687 libsuff=32 shlibsuff=N32 libmagic=N32;;
18688 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18689 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18690 *) libsuff= shlibsuff= libmagic=never-match;;
18691 esac
18692 ;;
18693 esac
18694 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18695 shlibpath_overrides_runpath=no
18696 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18697 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18698 hardcode_into_libs=yes
18699 ;;
18700
18701 # No shared lib support for Linux oldld, aout, or coff.
18702 linux*oldld* | linux*aout* | linux*coff*)
18703 dynamic_linker=no
18704 ;;
18705
18706 # This must be Linux ELF.
18707
18708 # uclinux* changes (here and below) have been submitted to the libtool
18709 # project, but have not yet been accepted: they are GCC-local changes
18710 # for the time being. (See
18711 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18712 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
18713 version_type=linux
18714 need_lib_prefix=no
18715 need_version=no
18716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18717 soname_spec='${libname}${release}${shared_ext}$major'
18718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18719 shlibpath_var=LD_LIBRARY_PATH
18720 shlibpath_overrides_runpath=no
18721
18722 # Some binutils ld are patched to set DT_RUNPATH
18723 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18724 $as_echo_n "(cached) " >&6
18725 else
18726 lt_cv_shlibpath_overrides_runpath=no
18727 save_LDFLAGS=$LDFLAGS
18728 save_libdir=$libdir
18729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18732 /* end confdefs.h. */
18733
18734 int
18735 main ()
18736 {
18737
18738 ;
18739 return 0;
18740 }
18741 _ACEOF
18742 if ac_fn_c_try_link "$LINENO"; then :
18743 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18744 lt_cv_shlibpath_overrides_runpath=yes
18745 fi
18746 fi
18747 rm -f core conftest.err conftest.$ac_objext \
18748 conftest$ac_exeext conftest.$ac_ext
18749 LDFLAGS=$save_LDFLAGS
18750 libdir=$save_libdir
18751
18752 fi
18753
18754 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18755
18756 # This implies no fast_install, which is unacceptable.
18757 # Some rework will be needed to allow for fast_install
18758 # before this can be enabled.
18759 hardcode_into_libs=yes
18760
18761 # Append ld.so.conf contents to the search path
18762 if test -f /etc/ld.so.conf; then
18763 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' ' '`
18764 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18765 fi
18766
18767 # We used to test for /lib/ld.so.1 and disable shared libraries on
18768 # powerpc, because MkLinux only supported shared libraries with the
18769 # GNU dynamic linker. Since this was broken with cross compilers,
18770 # most powerpc-linux boxes support dynamic linking these days and
18771 # people can always --disable-shared, the test was removed, and we
18772 # assume the GNU/Linux dynamic linker is in use.
18773 dynamic_linker='GNU/Linux ld.so'
18774 ;;
18775
18776 netbsd*)
18777 version_type=sunos
18778 need_lib_prefix=no
18779 need_version=no
18780 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18783 dynamic_linker='NetBSD (a.out) ld.so'
18784 else
18785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18786 soname_spec='${libname}${release}${shared_ext}$major'
18787 dynamic_linker='NetBSD ld.elf_so'
18788 fi
18789 shlibpath_var=LD_LIBRARY_PATH
18790 shlibpath_overrides_runpath=yes
18791 hardcode_into_libs=yes
18792 ;;
18793
18794 newsos6)
18795 version_type=linux
18796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18797 shlibpath_var=LD_LIBRARY_PATH
18798 shlibpath_overrides_runpath=yes
18799 ;;
18800
18801 *nto* | *qnx*)
18802 version_type=qnx
18803 need_lib_prefix=no
18804 need_version=no
18805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18806 soname_spec='${libname}${release}${shared_ext}$major'
18807 shlibpath_var=LD_LIBRARY_PATH
18808 shlibpath_overrides_runpath=no
18809 hardcode_into_libs=yes
18810 dynamic_linker='ldqnx.so'
18811 ;;
18812
18813 openbsd*)
18814 version_type=sunos
18815 sys_lib_dlsearch_path_spec="/usr/lib"
18816 need_lib_prefix=no
18817 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18818 case $host_os in
18819 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18820 *) need_version=no ;;
18821 esac
18822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18824 shlibpath_var=LD_LIBRARY_PATH
18825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18826 case $host_os in
18827 openbsd2.[89] | openbsd2.[89].*)
18828 shlibpath_overrides_runpath=no
18829 ;;
18830 *)
18831 shlibpath_overrides_runpath=yes
18832 ;;
18833 esac
18834 else
18835 shlibpath_overrides_runpath=yes
18836 fi
18837 ;;
18838
18839 os2*)
18840 libname_spec='$name'
18841 shrext_cmds=".dll"
18842 need_lib_prefix=no
18843 library_names_spec='$libname${shared_ext} $libname.a'
18844 dynamic_linker='OS/2 ld.exe'
18845 shlibpath_var=LIBPATH
18846 ;;
18847
18848 osf3* | osf4* | osf5*)
18849 version_type=osf
18850 need_lib_prefix=no
18851 need_version=no
18852 soname_spec='${libname}${release}${shared_ext}$major'
18853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18854 shlibpath_var=LD_LIBRARY_PATH
18855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18857 ;;
18858
18859 rdos*)
18860 dynamic_linker=no
18861 ;;
18862
18863 solaris*)
18864 version_type=linux
18865 need_lib_prefix=no
18866 need_version=no
18867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18868 soname_spec='${libname}${release}${shared_ext}$major'
18869 shlibpath_var=LD_LIBRARY_PATH
18870 shlibpath_overrides_runpath=yes
18871 hardcode_into_libs=yes
18872 # ldd complains unless libraries are executable
18873 postinstall_cmds='chmod +x $lib'
18874 ;;
18875
18876 sunos4*)
18877 version_type=sunos
18878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18879 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18880 shlibpath_var=LD_LIBRARY_PATH
18881 shlibpath_overrides_runpath=yes
18882 if test "$with_gnu_ld" = yes; then
18883 need_lib_prefix=no
18884 fi
18885 need_version=yes
18886 ;;
18887
18888 sysv4 | sysv4.3*)
18889 version_type=linux
18890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18891 soname_spec='${libname}${release}${shared_ext}$major'
18892 shlibpath_var=LD_LIBRARY_PATH
18893 case $host_vendor in
18894 sni)
18895 shlibpath_overrides_runpath=no
18896 need_lib_prefix=no
18897 runpath_var=LD_RUN_PATH
18898 ;;
18899 siemens)
18900 need_lib_prefix=no
18901 ;;
18902 motorola)
18903 need_lib_prefix=no
18904 need_version=no
18905 shlibpath_overrides_runpath=no
18906 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18907 ;;
18908 esac
18909 ;;
18910
18911 sysv4*MP*)
18912 if test -d /usr/nec ;then
18913 version_type=linux
18914 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18915 soname_spec='$libname${shared_ext}.$major'
18916 shlibpath_var=LD_LIBRARY_PATH
18917 fi
18918 ;;
18919
18920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18921 version_type=freebsd-elf
18922 need_lib_prefix=no
18923 need_version=no
18924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18925 soname_spec='${libname}${release}${shared_ext}$major'
18926 shlibpath_var=LD_LIBRARY_PATH
18927 shlibpath_overrides_runpath=yes
18928 hardcode_into_libs=yes
18929 if test "$with_gnu_ld" = yes; then
18930 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18931 else
18932 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18933 case $host_os in
18934 sco3.2v5*)
18935 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18936 ;;
18937 esac
18938 fi
18939 sys_lib_dlsearch_path_spec='/usr/lib'
18940 ;;
18941
18942 tpf*)
18943 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18944 version_type=linux
18945 need_lib_prefix=no
18946 need_version=no
18947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18948 shlibpath_var=LD_LIBRARY_PATH
18949 shlibpath_overrides_runpath=no
18950 hardcode_into_libs=yes
18951 ;;
18952
18953 uts4*)
18954 version_type=linux
18955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18956 soname_spec='${libname}${release}${shared_ext}$major'
18957 shlibpath_var=LD_LIBRARY_PATH
18958 ;;
18959
18960 *)
18961 dynamic_linker=no
18962 ;;
18963 esac
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18965 $as_echo "$dynamic_linker" >&6; }
18966 test "$dynamic_linker" = no && can_build_shared=no
18967
18968 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18969 if test "$GCC" = yes; then
18970 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18971 fi
18972
18973 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18974 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18975 fi
18976 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18977 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18978 fi
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19072 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19073 hardcode_action=
19074 if test -n "$hardcode_libdir_flag_spec" ||
19075 test -n "$runpath_var" ||
19076 test "X$hardcode_automatic" = "Xyes" ; then
19077
19078 # We can hardcode non-existent directories.
19079 if test "$hardcode_direct" != no &&
19080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19081 # have to relink, otherwise we might link with an installed library
19082 # when we should be linking with a yet-to-be-installed one
19083 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19084 test "$hardcode_minus_L" != no; then
19085 # Linking always hardcodes the temporary library directory.
19086 hardcode_action=relink
19087 else
19088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19089 hardcode_action=immediate
19090 fi
19091 else
19092 # We cannot hardcode anything, or else we can only hardcode existing
19093 # directories.
19094 hardcode_action=unsupported
19095 fi
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19097 $as_echo "$hardcode_action" >&6; }
19098
19099 if test "$hardcode_action" = relink ||
19100 test "$inherit_rpath" = yes; then
19101 # Fast installation is not supported
19102 enable_fast_install=no
19103 elif test "$shlibpath_overrides_runpath" = yes ||
19104 test "$enable_shared" = no; then
19105 # Fast installation is not necessary
19106 enable_fast_install=needless
19107 fi
19108
19109
19110
19111
19112
19113
19114 if test "x$enable_dlopen" != xyes; then
19115 enable_dlopen=unknown
19116 enable_dlopen_self=unknown
19117 enable_dlopen_self_static=unknown
19118 else
19119 lt_cv_dlopen=no
19120 lt_cv_dlopen_libs=
19121
19122 case $host_os in
19123 beos*)
19124 lt_cv_dlopen="load_add_on"
19125 lt_cv_dlopen_libs=
19126 lt_cv_dlopen_self=yes
19127 ;;
19128
19129 mingw* | pw32* | cegcc*)
19130 lt_cv_dlopen="LoadLibrary"
19131 lt_cv_dlopen_libs=
19132 ;;
19133
19134 cygwin*)
19135 lt_cv_dlopen="dlopen"
19136 lt_cv_dlopen_libs=
19137 ;;
19138
19139 darwin*)
19140 # if libdl is installed we need to link against it
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19142 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19143 if ${ac_cv_lib_dl_dlopen+:} false; then :
19144 $as_echo_n "(cached) " >&6
19145 else
19146 ac_check_lib_save_LIBS=$LIBS
19147 LIBS="-ldl $LIBS"
19148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h. */
19150
19151 /* Override any GCC internal prototype to avoid an error.
19152 Use char because int might match the return type of a GCC
19153 builtin and then its argument prototype would still apply. */
19154 #ifdef __cplusplus
19155 extern "C"
19156 #endif
19157 char dlopen ();
19158 int
19159 main ()
19160 {
19161 return dlopen ();
19162 ;
19163 return 0;
19164 }
19165 _ACEOF
19166 if ac_fn_c_try_link "$LINENO"; then :
19167 ac_cv_lib_dl_dlopen=yes
19168 else
19169 ac_cv_lib_dl_dlopen=no
19170 fi
19171 rm -f core conftest.err conftest.$ac_objext \
19172 conftest$ac_exeext conftest.$ac_ext
19173 LIBS=$ac_check_lib_save_LIBS
19174 fi
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19176 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19177 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19178 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19179 else
19180
19181 lt_cv_dlopen="dyld"
19182 lt_cv_dlopen_libs=
19183 lt_cv_dlopen_self=yes
19184
19185 fi
19186
19187 ;;
19188
19189 *)
19190 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19191 if test "x$ac_cv_func_shl_load" = xyes; then :
19192 lt_cv_dlopen="shl_load"
19193 else
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19195 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19196 if ${ac_cv_lib_dld_shl_load+:} false; then :
19197 $as_echo_n "(cached) " >&6
19198 else
19199 ac_check_lib_save_LIBS=$LIBS
19200 LIBS="-ldld $LIBS"
19201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19202 /* end confdefs.h. */
19203
19204 /* Override any GCC internal prototype to avoid an error.
19205 Use char because int might match the return type of a GCC
19206 builtin and then its argument prototype would still apply. */
19207 #ifdef __cplusplus
19208 extern "C"
19209 #endif
19210 char shl_load ();
19211 int
19212 main ()
19213 {
19214 return shl_load ();
19215 ;
19216 return 0;
19217 }
19218 _ACEOF
19219 if ac_fn_c_try_link "$LINENO"; then :
19220 ac_cv_lib_dld_shl_load=yes
19221 else
19222 ac_cv_lib_dld_shl_load=no
19223 fi
19224 rm -f core conftest.err conftest.$ac_objext \
19225 conftest$ac_exeext conftest.$ac_ext
19226 LIBS=$ac_check_lib_save_LIBS
19227 fi
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19229 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19230 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19231 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19232 else
19233 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19234 if test "x$ac_cv_func_dlopen" = xyes; then :
19235 lt_cv_dlopen="dlopen"
19236 else
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19238 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19239 if ${ac_cv_lib_dl_dlopen+:} false; then :
19240 $as_echo_n "(cached) " >&6
19241 else
19242 ac_check_lib_save_LIBS=$LIBS
19243 LIBS="-ldl $LIBS"
19244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19245 /* end confdefs.h. */
19246
19247 /* Override any GCC internal prototype to avoid an error.
19248 Use char because int might match the return type of a GCC
19249 builtin and then its argument prototype would still apply. */
19250 #ifdef __cplusplus
19251 extern "C"
19252 #endif
19253 char dlopen ();
19254 int
19255 main ()
19256 {
19257 return dlopen ();
19258 ;
19259 return 0;
19260 }
19261 _ACEOF
19262 if ac_fn_c_try_link "$LINENO"; then :
19263 ac_cv_lib_dl_dlopen=yes
19264 else
19265 ac_cv_lib_dl_dlopen=no
19266 fi
19267 rm -f core conftest.err conftest.$ac_objext \
19268 conftest$ac_exeext conftest.$ac_ext
19269 LIBS=$ac_check_lib_save_LIBS
19270 fi
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19272 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19273 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19275 else
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19277 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19278 if ${ac_cv_lib_svld_dlopen+:} false; then :
19279 $as_echo_n "(cached) " >&6
19280 else
19281 ac_check_lib_save_LIBS=$LIBS
19282 LIBS="-lsvld $LIBS"
19283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19284 /* end confdefs.h. */
19285
19286 /* Override any GCC internal prototype to avoid an error.
19287 Use char because int might match the return type of a GCC
19288 builtin and then its argument prototype would still apply. */
19289 #ifdef __cplusplus
19290 extern "C"
19291 #endif
19292 char dlopen ();
19293 int
19294 main ()
19295 {
19296 return dlopen ();
19297 ;
19298 return 0;
19299 }
19300 _ACEOF
19301 if ac_fn_c_try_link "$LINENO"; then :
19302 ac_cv_lib_svld_dlopen=yes
19303 else
19304 ac_cv_lib_svld_dlopen=no
19305 fi
19306 rm -f core conftest.err conftest.$ac_objext \
19307 conftest$ac_exeext conftest.$ac_ext
19308 LIBS=$ac_check_lib_save_LIBS
19309 fi
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19311 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19312 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19314 else
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19316 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19317 if ${ac_cv_lib_dld_dld_link+:} false; then :
19318 $as_echo_n "(cached) " >&6
19319 else
19320 ac_check_lib_save_LIBS=$LIBS
19321 LIBS="-ldld $LIBS"
19322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19323 /* end confdefs.h. */
19324
19325 /* Override any GCC internal prototype to avoid an error.
19326 Use char because int might match the return type of a GCC
19327 builtin and then its argument prototype would still apply. */
19328 #ifdef __cplusplus
19329 extern "C"
19330 #endif
19331 char dld_link ();
19332 int
19333 main ()
19334 {
19335 return dld_link ();
19336 ;
19337 return 0;
19338 }
19339 _ACEOF
19340 if ac_fn_c_try_link "$LINENO"; then :
19341 ac_cv_lib_dld_dld_link=yes
19342 else
19343 ac_cv_lib_dld_dld_link=no
19344 fi
19345 rm -f core conftest.err conftest.$ac_objext \
19346 conftest$ac_exeext conftest.$ac_ext
19347 LIBS=$ac_check_lib_save_LIBS
19348 fi
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19350 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19351 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19352 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19353 fi
19354
19355
19356 fi
19357
19358
19359 fi
19360
19361
19362 fi
19363
19364
19365 fi
19366
19367
19368 fi
19369
19370 ;;
19371 esac
19372
19373 if test "x$lt_cv_dlopen" != xno; then
19374 enable_dlopen=yes
19375 else
19376 enable_dlopen=no
19377 fi
19378
19379 case $lt_cv_dlopen in
19380 dlopen)
19381 save_CPPFLAGS="$CPPFLAGS"
19382 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19383
19384 save_LDFLAGS="$LDFLAGS"
19385 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19386
19387 save_LIBS="$LIBS"
19388 LIBS="$lt_cv_dlopen_libs $LIBS"
19389
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19391 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19392 if ${lt_cv_dlopen_self+:} false; then :
19393 $as_echo_n "(cached) " >&6
19394 else
19395 if test "$cross_compiling" = yes; then :
19396 lt_cv_dlopen_self=cross
19397 else
19398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19399 lt_status=$lt_dlunknown
19400 cat > conftest.$ac_ext <<_LT_EOF
19401 #line 19401 "configure"
19402 #include "confdefs.h"
19403
19404 #if HAVE_DLFCN_H
19405 #include <dlfcn.h>
19406 #endif
19407
19408 #include <stdio.h>
19409
19410 #ifdef RTLD_GLOBAL
19411 # define LT_DLGLOBAL RTLD_GLOBAL
19412 #else
19413 # ifdef DL_GLOBAL
19414 # define LT_DLGLOBAL DL_GLOBAL
19415 # else
19416 # define LT_DLGLOBAL 0
19417 # endif
19418 #endif
19419
19420 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19421 find out it does not work in some platform. */
19422 #ifndef LT_DLLAZY_OR_NOW
19423 # ifdef RTLD_LAZY
19424 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19425 # else
19426 # ifdef DL_LAZY
19427 # define LT_DLLAZY_OR_NOW DL_LAZY
19428 # else
19429 # ifdef RTLD_NOW
19430 # define LT_DLLAZY_OR_NOW RTLD_NOW
19431 # else
19432 # ifdef DL_NOW
19433 # define LT_DLLAZY_OR_NOW DL_NOW
19434 # else
19435 # define LT_DLLAZY_OR_NOW 0
19436 # endif
19437 # endif
19438 # endif
19439 # endif
19440 #endif
19441
19442 /* When -fvisbility=hidden is used, assume the code has been annotated
19443 correspondingly for the symbols needed. */
19444 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19445 void fnord () __attribute__((visibility("default")));
19446 #endif
19447
19448 void fnord () { int i=42; }
19449 int main ()
19450 {
19451 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19452 int status = $lt_dlunknown;
19453
19454 if (self)
19455 {
19456 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19457 else
19458 {
19459 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19460 else puts (dlerror ());
19461 }
19462 /* dlclose (self); */
19463 }
19464 else
19465 puts (dlerror ());
19466
19467 return status;
19468 }
19469 _LT_EOF
19470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19471 (eval $ac_link) 2>&5
19472 ac_status=$?
19473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19474 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19475 (./conftest; exit; ) >&5 2>/dev/null
19476 lt_status=$?
19477 case x$lt_status in
19478 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19479 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19480 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19481 esac
19482 else :
19483 # compilation failed
19484 lt_cv_dlopen_self=no
19485 fi
19486 fi
19487 rm -fr conftest*
19488
19489
19490 fi
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19492 $as_echo "$lt_cv_dlopen_self" >&6; }
19493
19494 if test "x$lt_cv_dlopen_self" = xyes; then
19495 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19497 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19498 if ${lt_cv_dlopen_self_static+:} false; then :
19499 $as_echo_n "(cached) " >&6
19500 else
19501 if test "$cross_compiling" = yes; then :
19502 lt_cv_dlopen_self_static=cross
19503 else
19504 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19505 lt_status=$lt_dlunknown
19506 cat > conftest.$ac_ext <<_LT_EOF
19507 #line 19507 "configure"
19508 #include "confdefs.h"
19509
19510 #if HAVE_DLFCN_H
19511 #include <dlfcn.h>
19512 #endif
19513
19514 #include <stdio.h>
19515
19516 #ifdef RTLD_GLOBAL
19517 # define LT_DLGLOBAL RTLD_GLOBAL
19518 #else
19519 # ifdef DL_GLOBAL
19520 # define LT_DLGLOBAL DL_GLOBAL
19521 # else
19522 # define LT_DLGLOBAL 0
19523 # endif
19524 #endif
19525
19526 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19527 find out it does not work in some platform. */
19528 #ifndef LT_DLLAZY_OR_NOW
19529 # ifdef RTLD_LAZY
19530 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19531 # else
19532 # ifdef DL_LAZY
19533 # define LT_DLLAZY_OR_NOW DL_LAZY
19534 # else
19535 # ifdef RTLD_NOW
19536 # define LT_DLLAZY_OR_NOW RTLD_NOW
19537 # else
19538 # ifdef DL_NOW
19539 # define LT_DLLAZY_OR_NOW DL_NOW
19540 # else
19541 # define LT_DLLAZY_OR_NOW 0
19542 # endif
19543 # endif
19544 # endif
19545 # endif
19546 #endif
19547
19548 /* When -fvisbility=hidden is used, assume the code has been annotated
19549 correspondingly for the symbols needed. */
19550 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19551 void fnord () __attribute__((visibility("default")));
19552 #endif
19553
19554 void fnord () { int i=42; }
19555 int main ()
19556 {
19557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19558 int status = $lt_dlunknown;
19559
19560 if (self)
19561 {
19562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19563 else
19564 {
19565 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19566 else puts (dlerror ());
19567 }
19568 /* dlclose (self); */
19569 }
19570 else
19571 puts (dlerror ());
19572
19573 return status;
19574 }
19575 _LT_EOF
19576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19577 (eval $ac_link) 2>&5
19578 ac_status=$?
19579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19580 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19581 (./conftest; exit; ) >&5 2>/dev/null
19582 lt_status=$?
19583 case x$lt_status in
19584 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19585 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19586 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19587 esac
19588 else :
19589 # compilation failed
19590 lt_cv_dlopen_self_static=no
19591 fi
19592 fi
19593 rm -fr conftest*
19594
19595
19596 fi
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19598 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19599 fi
19600
19601 CPPFLAGS="$save_CPPFLAGS"
19602 LDFLAGS="$save_LDFLAGS"
19603 LIBS="$save_LIBS"
19604 ;;
19605 esac
19606
19607 case $lt_cv_dlopen_self in
19608 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19609 *) enable_dlopen_self=unknown ;;
19610 esac
19611
19612 case $lt_cv_dlopen_self_static in
19613 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19614 *) enable_dlopen_self_static=unknown ;;
19615 esac
19616 fi
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634 striplib=
19635 old_striplib=
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19637 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19638 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19639 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19640 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19642 $as_echo "yes" >&6; }
19643 else
19644 # FIXME - insert some real tests, host_os isn't really good enough
19645 case $host_os in
19646 darwin*)
19647 if test -n "$STRIP" ; then
19648 striplib="$STRIP -x"
19649 old_striplib="$STRIP -S"
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19651 $as_echo "yes" >&6; }
19652 else
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19654 $as_echo "no" >&6; }
19655 fi
19656 ;;
19657 *)
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19659 $as_echo "no" >&6; }
19660 ;;
19661 esac
19662 fi
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675 # Report which library types will actually be built
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19677 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19679 $as_echo "$can_build_shared" >&6; }
19680
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19682 $as_echo_n "checking whether to build shared libraries... " >&6; }
19683 test "$can_build_shared" = "no" && enable_shared=no
19684
19685 # On AIX, shared libraries and static libraries use the same namespace, and
19686 # are all built from PIC.
19687 case $host_os in
19688 aix3*)
19689 test "$enable_shared" = yes && enable_static=no
19690 if test -n "$RANLIB"; then
19691 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19692 postinstall_cmds='$RANLIB $lib'
19693 fi
19694 ;;
19695
19696 aix[4-9]*)
19697 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19698 test "$enable_shared" = yes && enable_static=no
19699 fi
19700 ;;
19701 esac
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19703 $as_echo "$enable_shared" >&6; }
19704
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19706 $as_echo_n "checking whether to build static libraries... " >&6; }
19707 # Make sure either enable_shared or enable_static is yes.
19708 test "$enable_shared" = yes || enable_static=yes
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19710 $as_echo "$enable_static" >&6; }
19711
19712
19713
19714
19715 fi
19716 ac_ext=cpp
19717 ac_cpp='$CXXCPP $CPPFLAGS'
19718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19721
19722 CC="$lt_save_CC"
19723
19724 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19725 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19726 (test "X$CXX" != "Xg++"))) ; then
19727 ac_ext=cpp
19728 ac_cpp='$CXXCPP $CPPFLAGS'
19729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19733 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19734 if test -z "$CXXCPP"; then
19735 if ${ac_cv_prog_CXXCPP+:} false; then :
19736 $as_echo_n "(cached) " >&6
19737 else
19738 # Double quotes because CXXCPP needs to be expanded
19739 for CXXCPP in "$CXX -E" "/lib/cpp"
19740 do
19741 ac_preproc_ok=false
19742 for ac_cxx_preproc_warn_flag in '' yes
19743 do
19744 # Use a header file that comes with gcc, so configuring glibc
19745 # with a fresh cross-compiler works.
19746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19747 # <limits.h> exists even on freestanding compilers.
19748 # On the NeXT, cc -E runs the code through the compiler's parser,
19749 # not just through cpp. "Syntax error" is here to catch this case.
19750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19751 /* end confdefs.h. */
19752 #ifdef __STDC__
19753 # include <limits.h>
19754 #else
19755 # include <assert.h>
19756 #endif
19757 Syntax error
19758 _ACEOF
19759 if ac_fn_cxx_try_cpp "$LINENO"; then :
19760
19761 else
19762 # Broken: fails on valid input.
19763 continue
19764 fi
19765 rm -f conftest.err conftest.i conftest.$ac_ext
19766
19767 # OK, works on sane cases. Now check whether nonexistent headers
19768 # can be detected and how.
19769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19770 /* end confdefs.h. */
19771 #include <ac_nonexistent.h>
19772 _ACEOF
19773 if ac_fn_cxx_try_cpp "$LINENO"; then :
19774 # Broken: success on invalid input.
19775 continue
19776 else
19777 # Passes both tests.
19778 ac_preproc_ok=:
19779 break
19780 fi
19781 rm -f conftest.err conftest.i conftest.$ac_ext
19782
19783 done
19784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19785 rm -f conftest.i conftest.err conftest.$ac_ext
19786 if $ac_preproc_ok; then :
19787 break
19788 fi
19789
19790 done
19791 ac_cv_prog_CXXCPP=$CXXCPP
19792
19793 fi
19794 CXXCPP=$ac_cv_prog_CXXCPP
19795 else
19796 ac_cv_prog_CXXCPP=$CXXCPP
19797 fi
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19799 $as_echo "$CXXCPP" >&6; }
19800 ac_preproc_ok=false
19801 for ac_cxx_preproc_warn_flag in '' yes
19802 do
19803 # Use a header file that comes with gcc, so configuring glibc
19804 # with a fresh cross-compiler works.
19805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19806 # <limits.h> exists even on freestanding compilers.
19807 # On the NeXT, cc -E runs the code through the compiler's parser,
19808 # not just through cpp. "Syntax error" is here to catch this case.
19809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19810 /* end confdefs.h. */
19811 #ifdef __STDC__
19812 # include <limits.h>
19813 #else
19814 # include <assert.h>
19815 #endif
19816 Syntax error
19817 _ACEOF
19818 if ac_fn_cxx_try_cpp "$LINENO"; then :
19819
19820 else
19821 # Broken: fails on valid input.
19822 continue
19823 fi
19824 rm -f conftest.err conftest.i conftest.$ac_ext
19825
19826 # OK, works on sane cases. Now check whether nonexistent headers
19827 # can be detected and how.
19828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h. */
19830 #include <ac_nonexistent.h>
19831 _ACEOF
19832 if ac_fn_cxx_try_cpp "$LINENO"; then :
19833 # Broken: success on invalid input.
19834 continue
19835 else
19836 # Passes both tests.
19837 ac_preproc_ok=:
19838 break
19839 fi
19840 rm -f conftest.err conftest.i conftest.$ac_ext
19841
19842 done
19843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19844 rm -f conftest.i conftest.err conftest.$ac_ext
19845 if $ac_preproc_ok; then :
19846
19847 else
19848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19850 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19851 See \`config.log' for more details" "$LINENO" 5; }
19852 fi
19853
19854 ac_ext=cpp
19855 ac_cpp='$CXXCPP $CPPFLAGS'
19856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19859
19860 else
19861 _lt_caught_CXX_error=yes
19862 fi
19863
19864 ac_ext=cpp
19865 ac_cpp='$CXXCPP $CPPFLAGS'
19866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19869
19870 archive_cmds_need_lc_CXX=no
19871 allow_undefined_flag_CXX=
19872 always_export_symbols_CXX=no
19873 archive_expsym_cmds_CXX=
19874 compiler_needs_object_CXX=no
19875 export_dynamic_flag_spec_CXX=
19876 hardcode_direct_CXX=no
19877 hardcode_direct_absolute_CXX=no
19878 hardcode_libdir_flag_spec_CXX=
19879 hardcode_libdir_flag_spec_ld_CXX=
19880 hardcode_libdir_separator_CXX=
19881 hardcode_minus_L_CXX=no
19882 hardcode_shlibpath_var_CXX=unsupported
19883 hardcode_automatic_CXX=no
19884 inherit_rpath_CXX=no
19885 module_cmds_CXX=
19886 module_expsym_cmds_CXX=
19887 link_all_deplibs_CXX=unknown
19888 old_archive_cmds_CXX=$old_archive_cmds
19889 reload_flag_CXX=$reload_flag
19890 reload_cmds_CXX=$reload_cmds
19891 no_undefined_flag_CXX=
19892 whole_archive_flag_spec_CXX=
19893 enable_shared_with_static_runtimes_CXX=no
19894
19895 # Source file extension for C++ test sources.
19896 ac_ext=cpp
19897
19898 # Object file extension for compiled C++ test sources.
19899 objext=o
19900 objext_CXX=$objext
19901
19902 # No sense in running all these tests if we already determined that
19903 # the CXX compiler isn't working. Some variables (like enable_shared)
19904 # are currently assumed to apply to all compilers on this platform,
19905 # and will be corrupted by setting them based on a non-working compiler.
19906 if test "$_lt_caught_CXX_error" != yes; then
19907 # Code to be used in simple compile tests
19908 lt_simple_compile_test_code="int some_variable = 0;"
19909
19910 # Code to be used in simple link tests
19911 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19912
19913 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19914
19915
19916
19917
19918
19919
19920 # If no C compiler was specified, use CC.
19921 LTCC=${LTCC-"$CC"}
19922
19923 # If no C compiler flags were specified, use CFLAGS.
19924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19925
19926 # Allow CC to be a program name with arguments.
19927 compiler=$CC
19928
19929
19930 # save warnings/boilerplate of simple test code
19931 ac_outfile=conftest.$ac_objext
19932 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19933 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19934 _lt_compiler_boilerplate=`cat conftest.err`
19935 $RM conftest*
19936
19937 ac_outfile=conftest.$ac_objext
19938 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19939 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19940 _lt_linker_boilerplate=`cat conftest.err`
19941 $RM -r conftest*
19942
19943
19944 # Allow CC to be a program name with arguments.
19945 lt_save_CC=$CC
19946 lt_save_LD=$LD
19947 lt_save_GCC=$GCC
19948 GCC=$GXX
19949 lt_save_with_gnu_ld=$with_gnu_ld
19950 lt_save_path_LD=$lt_cv_path_LD
19951 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19952 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19953 else
19954 $as_unset lt_cv_prog_gnu_ld
19955 fi
19956 if test -n "${lt_cv_path_LDCXX+set}"; then
19957 lt_cv_path_LD=$lt_cv_path_LDCXX
19958 else
19959 $as_unset lt_cv_path_LD
19960 fi
19961 test -z "${LDCXX+set}" || LD=$LDCXX
19962 CC=${CXX-"c++"}
19963 compiler=$CC
19964 compiler_CXX=$CC
19965 for cc_temp in $compiler""; do
19966 case $cc_temp in
19967 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19968 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19969 \-*) ;;
19970 *) break;;
19971 esac
19972 done
19973 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19974
19975
19976 if test -n "$compiler"; then
19977 # We don't want -fno-exception when compiling C++ code, so set the
19978 # no_builtin_flag separately
19979 if test "$GXX" = yes; then
19980 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19981 else
19982 lt_prog_compiler_no_builtin_flag_CXX=
19983 fi
19984
19985 if test "$GXX" = yes; then
19986 # Set up default GNU C++ configuration
19987
19988
19989
19990 # Check whether --with-gnu-ld was given.
19991 if test "${with_gnu_ld+set}" = set; then :
19992 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19993 else
19994 with_gnu_ld=no
19995 fi
19996
19997 ac_prog=ld
19998 if test "$GCC" = yes; then
19999 # Check if gcc -print-prog-name=ld gives a path.
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20001 $as_echo_n "checking for ld used by $CC... " >&6; }
20002 case $host in
20003 *-*-mingw*)
20004 # gcc leaves a trailing carriage return which upsets mingw
20005 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20006 *)
20007 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20008 esac
20009 case $ac_prog in
20010 # Accept absolute paths.
20011 [\\/]* | ?:[\\/]*)
20012 re_direlt='/[^/][^/]*/\.\./'
20013 # Canonicalize the pathname of ld
20014 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20015 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20016 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20017 done
20018 test -z "$LD" && LD="$ac_prog"
20019 ;;
20020 "")
20021 # If it fails, then pretend we aren't using GCC.
20022 ac_prog=ld
20023 ;;
20024 *)
20025 # If it is relative, then search for the first ld in PATH.
20026 with_gnu_ld=unknown
20027 ;;
20028 esac
20029 elif test "$with_gnu_ld" = yes; then
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20031 $as_echo_n "checking for GNU ld... " >&6; }
20032 else
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20034 $as_echo_n "checking for non-GNU ld... " >&6; }
20035 fi
20036 if ${lt_cv_path_LD+:} false; then :
20037 $as_echo_n "(cached) " >&6
20038 else
20039 if test -z "$LD"; then
20040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20041 for ac_dir in $PATH; do
20042 IFS="$lt_save_ifs"
20043 test -z "$ac_dir" && ac_dir=.
20044 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20045 lt_cv_path_LD="$ac_dir/$ac_prog"
20046 # Check to see if the program is GNU ld. I'd rather use --version,
20047 # but apparently some variants of GNU ld only accept -v.
20048 # Break only if it was the GNU/non-GNU ld that we prefer.
20049 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20050 *GNU* | *'with BFD'*)
20051 test "$with_gnu_ld" != no && break
20052 ;;
20053 *)
20054 test "$with_gnu_ld" != yes && break
20055 ;;
20056 esac
20057 fi
20058 done
20059 IFS="$lt_save_ifs"
20060 else
20061 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20062 fi
20063 fi
20064
20065 LD="$lt_cv_path_LD"
20066 if test -n "$LD"; then
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20068 $as_echo "$LD" >&6; }
20069 else
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20071 $as_echo "no" >&6; }
20072 fi
20073 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20075 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20076 if ${lt_cv_prog_gnu_ld+:} false; then :
20077 $as_echo_n "(cached) " >&6
20078 else
20079 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20080 case `$LD -v 2>&1 </dev/null` in
20081 *GNU* | *'with BFD'*)
20082 lt_cv_prog_gnu_ld=yes
20083 ;;
20084 *)
20085 lt_cv_prog_gnu_ld=no
20086 ;;
20087 esac
20088 fi
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20090 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20091 with_gnu_ld=$lt_cv_prog_gnu_ld
20092
20093
20094
20095
20096
20097
20098
20099 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20100 # archiving commands below assume that GNU ld is being used.
20101 if test "$with_gnu_ld" = yes; then
20102 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20103 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'
20104
20105 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20106 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20107
20108 # If archive_cmds runs LD, not CC, wlarc should be empty
20109 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20110 # investigate it a little bit more. (MM)
20111 wlarc='${wl}'
20112
20113 # ancient GNU ld didn't support --whole-archive et. al.
20114 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20115 $GREP 'no-whole-archive' > /dev/null; then
20116 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20117 else
20118 whole_archive_flag_spec_CXX=
20119 fi
20120 else
20121 with_gnu_ld=no
20122 wlarc=
20123
20124 # A generic and very simple default shared library creation
20125 # command for GNU C++ for the case where it uses the native
20126 # linker, instead of GNU ld. If possible, this setting should
20127 # overridden to take advantage of the native linker features on
20128 # the platform it is being used on.
20129 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20130 fi
20131
20132 # Commands to make compiler produce verbose output that lists
20133 # what "hidden" libraries, object files and flags are used when
20134 # linking a shared library.
20135 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20136
20137 else
20138 GXX=no
20139 with_gnu_ld=no
20140 wlarc=
20141 fi
20142
20143 # PORTME: fill in a description of your system's C++ link characteristics
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20145 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20146 ld_shlibs_CXX=yes
20147 case $host_os in
20148 aix3*)
20149 # FIXME: insert proper C++ library support
20150 ld_shlibs_CXX=no
20151 ;;
20152 aix[4-9]*)
20153 if test "$host_cpu" = ia64; then
20154 # On IA64, the linker does run time linking by default, so we don't
20155 # have to do anything special.
20156 aix_use_runtimelinking=no
20157 exp_sym_flag='-Bexport'
20158 no_entry_flag=""
20159 else
20160 aix_use_runtimelinking=no
20161
20162 # Test if we are trying to use run time linking or normal
20163 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20164 # need to do runtime linking.
20165 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20166 for ld_flag in $LDFLAGS; do
20167 case $ld_flag in
20168 *-brtl*)
20169 aix_use_runtimelinking=yes
20170 break
20171 ;;
20172 esac
20173 done
20174 ;;
20175 esac
20176
20177 exp_sym_flag='-bexport'
20178 no_entry_flag='-bnoentry'
20179 fi
20180
20181 # When large executables or shared objects are built, AIX ld can
20182 # have problems creating the table of contents. If linking a library
20183 # or program results in "error TOC overflow" add -mminimal-toc to
20184 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20185 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20186
20187 archive_cmds_CXX=''
20188 hardcode_direct_CXX=yes
20189 hardcode_direct_absolute_CXX=yes
20190 hardcode_libdir_separator_CXX=':'
20191 link_all_deplibs_CXX=yes
20192 file_list_spec_CXX='${wl}-f,'
20193
20194 if test "$GXX" = yes; then
20195 case $host_os in aix4.[012]|aix4.[012].*)
20196 # We only want to do this on AIX 4.2 and lower, the check
20197 # below for broken collect2 doesn't work under 4.3+
20198 collect2name=`${CC} -print-prog-name=collect2`
20199 if test -f "$collect2name" &&
20200 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20201 then
20202 # We have reworked collect2
20203 :
20204 else
20205 # We have old collect2
20206 hardcode_direct_CXX=unsupported
20207 # It fails to find uninstalled libraries when the uninstalled
20208 # path is not listed in the libpath. Setting hardcode_minus_L
20209 # to unsupported forces relinking
20210 hardcode_minus_L_CXX=yes
20211 hardcode_libdir_flag_spec_CXX='-L$libdir'
20212 hardcode_libdir_separator_CXX=
20213 fi
20214 esac
20215 shared_flag='-shared'
20216 if test "$aix_use_runtimelinking" = yes; then
20217 shared_flag="$shared_flag "'${wl}-G'
20218 fi
20219 else
20220 # not using gcc
20221 if test "$host_cpu" = ia64; then
20222 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20223 # chokes on -Wl,-G. The following line is correct:
20224 shared_flag='-G'
20225 else
20226 if test "$aix_use_runtimelinking" = yes; then
20227 shared_flag='${wl}-G'
20228 else
20229 shared_flag='${wl}-bM:SRE'
20230 fi
20231 fi
20232 fi
20233
20234 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20235 # It seems that -bexpall does not export symbols beginning with
20236 # underscore (_), so it is better to generate a list of symbols to
20237 # export.
20238 always_export_symbols_CXX=yes
20239 if test "$aix_use_runtimelinking" = yes; then
20240 # Warning - without using the other runtime loading flags (-brtl),
20241 # -berok will link without error, but may produce a broken library.
20242 allow_undefined_flag_CXX='-berok'
20243 # Determine the default libpath from the value encoded in an empty
20244 # executable.
20245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20246 /* end confdefs.h. */
20247
20248 int
20249 main ()
20250 {
20251
20252 ;
20253 return 0;
20254 }
20255 _ACEOF
20256 if ac_fn_cxx_try_link "$LINENO"; then :
20257
20258 lt_aix_libpath_sed='
20259 /Import File Strings/,/^$/ {
20260 /^0/ {
20261 s/^0 *\(.*\)$/\1/
20262 p
20263 }
20264 }'
20265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20266 # Check for a 64-bit object if we didn't find anything.
20267 if test -z "$aix_libpath"; then
20268 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20269 fi
20270 fi
20271 rm -f core conftest.err conftest.$ac_objext \
20272 conftest$ac_exeext conftest.$ac_ext
20273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20274
20275 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20276
20277 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"
20278 else
20279 if test "$host_cpu" = ia64; then
20280 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20281 allow_undefined_flag_CXX="-z nodefs"
20282 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"
20283 else
20284 # Determine the default libpath from the value encoded in an
20285 # empty executable.
20286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20287 /* end confdefs.h. */
20288
20289 int
20290 main ()
20291 {
20292
20293 ;
20294 return 0;
20295 }
20296 _ACEOF
20297 if ac_fn_cxx_try_link "$LINENO"; then :
20298
20299 lt_aix_libpath_sed='
20300 /Import File Strings/,/^$/ {
20301 /^0/ {
20302 s/^0 *\(.*\)$/\1/
20303 p
20304 }
20305 }'
20306 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20307 # Check for a 64-bit object if we didn't find anything.
20308 if test -z "$aix_libpath"; then
20309 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20310 fi
20311 fi
20312 rm -f core conftest.err conftest.$ac_objext \
20313 conftest$ac_exeext conftest.$ac_ext
20314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20315
20316 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20317 # Warning - without using the other run time loading flags,
20318 # -berok will link without error, but may produce a broken library.
20319 no_undefined_flag_CXX=' ${wl}-bernotok'
20320 allow_undefined_flag_CXX=' ${wl}-berok'
20321 if test "$with_gnu_ld" = yes; then
20322 # We only use this code for GNU lds that support --whole-archive.
20323 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20324 else
20325 # Exported symbols can be pulled into shared objects from archives
20326 whole_archive_flag_spec_CXX='$convenience'
20327 fi
20328 archive_cmds_need_lc_CXX=yes
20329 # This is similar to how AIX traditionally builds its shared
20330 # libraries.
20331 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'
20332 fi
20333 fi
20334 ;;
20335
20336 beos*)
20337 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20338 allow_undefined_flag_CXX=unsupported
20339 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20340 # support --undefined. This deserves some investigation. FIXME
20341 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20342 else
20343 ld_shlibs_CXX=no
20344 fi
20345 ;;
20346
20347 chorus*)
20348 case $cc_basename in
20349 *)
20350 # FIXME: insert proper C++ library support
20351 ld_shlibs_CXX=no
20352 ;;
20353 esac
20354 ;;
20355
20356 cygwin* | mingw* | pw32* | cegcc*)
20357 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20358 # as there is no search path for DLLs.
20359 hardcode_libdir_flag_spec_CXX='-L$libdir'
20360 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20361 allow_undefined_flag_CXX=unsupported
20362 always_export_symbols_CXX=no
20363 enable_shared_with_static_runtimes_CXX=yes
20364
20365 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20366 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'
20367 # If the export-symbols file already is a .def file (1st line
20368 # is EXPORTS), use it as is; otherwise, prepend...
20369 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20370 cp $export_symbols $output_objdir/$soname.def;
20371 else
20372 echo EXPORTS > $output_objdir/$soname.def;
20373 cat $export_symbols >> $output_objdir/$soname.def;
20374 fi~
20375 $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'
20376 else
20377 ld_shlibs_CXX=no
20378 fi
20379 ;;
20380 darwin* | rhapsody*)
20381
20382
20383 archive_cmds_need_lc_CXX=no
20384 hardcode_direct_CXX=no
20385 hardcode_automatic_CXX=yes
20386 hardcode_shlibpath_var_CXX=unsupported
20387 if test "$lt_cv_ld_force_load" = "yes"; then
20388 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\"`'
20389 else
20390 whole_archive_flag_spec_CXX=''
20391 fi
20392 link_all_deplibs_CXX=yes
20393 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20394 case $cc_basename in
20395 ifort*) _lt_dar_can_shared=yes ;;
20396 *) _lt_dar_can_shared=$GCC ;;
20397 esac
20398 if test "$_lt_dar_can_shared" = "yes"; then
20399 output_verbose_link_cmd=func_echo_all
20400 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}"
20401 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20402 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}"
20403 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}"
20404 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20405 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}"
20406 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}"
20407 fi
20408
20409 else
20410 ld_shlibs_CXX=no
20411 fi
20412
20413 ;;
20414
20415 dgux*)
20416 case $cc_basename in
20417 ec++*)
20418 # FIXME: insert proper C++ library support
20419 ld_shlibs_CXX=no
20420 ;;
20421 ghcx*)
20422 # Green Hills C++ Compiler
20423 # FIXME: insert proper C++ library support
20424 ld_shlibs_CXX=no
20425 ;;
20426 *)
20427 # FIXME: insert proper C++ library support
20428 ld_shlibs_CXX=no
20429 ;;
20430 esac
20431 ;;
20432
20433 freebsd2.*)
20434 # C++ shared libraries reported to be fairly broken before
20435 # switch to ELF
20436 ld_shlibs_CXX=no
20437 ;;
20438
20439 freebsd-elf*)
20440 archive_cmds_need_lc_CXX=no
20441 ;;
20442
20443 freebsd* | dragonfly*)
20444 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20445 # conventions
20446 ld_shlibs_CXX=yes
20447 ;;
20448
20449 gnu*)
20450 ;;
20451
20452 haiku*)
20453 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20454 link_all_deplibs_CXX=yes
20455 ;;
20456
20457 hpux9*)
20458 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20459 hardcode_libdir_separator_CXX=:
20460 export_dynamic_flag_spec_CXX='${wl}-E'
20461 hardcode_direct_CXX=yes
20462 hardcode_minus_L_CXX=yes # Not in the search PATH,
20463 # but as the default
20464 # location of the library.
20465
20466 case $cc_basename in
20467 CC*)
20468 # FIXME: insert proper C++ library support
20469 ld_shlibs_CXX=no
20470 ;;
20471 aCC*)
20472 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'
20473 # Commands to make compiler produce verbose output that lists
20474 # what "hidden" libraries, object files and flags are used when
20475 # linking a shared library.
20476 #
20477 # There doesn't appear to be a way to prevent this compiler from
20478 # explicitly linking system object files so we need to strip them
20479 # from the output so that they don't get included in the library
20480 # dependencies.
20481 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"'
20482 ;;
20483 *)
20484 if test "$GXX" = yes; then
20485 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'
20486 else
20487 # FIXME: insert proper C++ library support
20488 ld_shlibs_CXX=no
20489 fi
20490 ;;
20491 esac
20492 ;;
20493
20494 hpux10*|hpux11*)
20495 if test $with_gnu_ld = no; then
20496 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20497 hardcode_libdir_separator_CXX=:
20498
20499 case $host_cpu in
20500 hppa*64*|ia64*)
20501 ;;
20502 *)
20503 export_dynamic_flag_spec_CXX='${wl}-E'
20504 ;;
20505 esac
20506 fi
20507 case $host_cpu in
20508 hppa*64*|ia64*)
20509 hardcode_direct_CXX=no
20510 hardcode_shlibpath_var_CXX=no
20511 ;;
20512 *)
20513 hardcode_direct_CXX=yes
20514 hardcode_direct_absolute_CXX=yes
20515 hardcode_minus_L_CXX=yes # Not in the search PATH,
20516 # but as the default
20517 # location of the library.
20518 ;;
20519 esac
20520
20521 case $cc_basename in
20522 CC*)
20523 # FIXME: insert proper C++ library support
20524 ld_shlibs_CXX=no
20525 ;;
20526 aCC*)
20527 case $host_cpu in
20528 hppa*64*)
20529 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20530 ;;
20531 ia64*)
20532 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20533 ;;
20534 *)
20535 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20536 ;;
20537 esac
20538 # Commands to make compiler produce verbose output that lists
20539 # what "hidden" libraries, object files and flags are used when
20540 # linking a shared library.
20541 #
20542 # There doesn't appear to be a way to prevent this compiler from
20543 # explicitly linking system object files so we need to strip them
20544 # from the output so that they don't get included in the library
20545 # dependencies.
20546 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"'
20547 ;;
20548 *)
20549 if test "$GXX" = yes; then
20550 if test $with_gnu_ld = no; then
20551 case $host_cpu in
20552 hppa*64*)
20553 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20554 ;;
20555 ia64*)
20556 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20557 ;;
20558 *)
20559 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'
20560 ;;
20561 esac
20562 fi
20563 else
20564 # FIXME: insert proper C++ library support
20565 ld_shlibs_CXX=no
20566 fi
20567 ;;
20568 esac
20569 ;;
20570
20571 interix[3-9]*)
20572 hardcode_direct_CXX=no
20573 hardcode_shlibpath_var_CXX=no
20574 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20575 export_dynamic_flag_spec_CXX='${wl}-E'
20576 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20577 # Instead, shared libraries are loaded at an image base (0x10000000 by
20578 # default) and relocated if they conflict, which is a slow very memory
20579 # consuming and fragmenting process. To avoid this, we pick a random,
20580 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20581 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20582 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'
20583 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'
20584 ;;
20585 irix5* | irix6*)
20586 case $cc_basename in
20587 CC*)
20588 # SGI C++
20589 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'
20590
20591 # Archives containing C++ object files must be created using
20592 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20593 # necessary to make sure instantiated templates are included
20594 # in the archive.
20595 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20596 ;;
20597 *)
20598 if test "$GXX" = yes; then
20599 if test "$with_gnu_ld" = no; then
20600 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'
20601 else
20602 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'
20603 fi
20604 fi
20605 link_all_deplibs_CXX=yes
20606 ;;
20607 esac
20608 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20609 hardcode_libdir_separator_CXX=:
20610 inherit_rpath_CXX=yes
20611 ;;
20612
20613 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20614 case $cc_basename in
20615 KCC*)
20616 # Kuck and Associates, Inc. (KAI) C++ Compiler
20617
20618 # KCC will only create a shared library if the output file
20619 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20620 # to its proper name (with version) after linking.
20621 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'
20622 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'
20623 # Commands to make compiler produce verbose output that lists
20624 # what "hidden" libraries, object files and flags are used when
20625 # linking a shared library.
20626 #
20627 # There doesn't appear to be a way to prevent this compiler from
20628 # explicitly linking system object files so we need to strip them
20629 # from the output so that they don't get included in the library
20630 # dependencies.
20631 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"'
20632
20633 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20634 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20635
20636 # Archives containing C++ object files must be created using
20637 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20638 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20639 ;;
20640 icpc* | ecpc* )
20641 # Intel C++
20642 with_gnu_ld=yes
20643 # version 8.0 and above of icpc choke on multiply defined symbols
20644 # if we add $predep_objects and $postdep_objects, however 7.1 and
20645 # earlier do not add the objects themselves.
20646 case `$CC -V 2>&1` in
20647 *"Version 7."*)
20648 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20649 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'
20650 ;;
20651 *) # Version 8.0 or newer
20652 tmp_idyn=
20653 case $host_cpu in
20654 ia64*) tmp_idyn=' -i_dynamic';;
20655 esac
20656 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20657 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'
20658 ;;
20659 esac
20660 archive_cmds_need_lc_CXX=no
20661 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20662 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20663 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20664 ;;
20665 pgCC* | pgcpp*)
20666 # Portland Group C++ compiler
20667 case `$CC -V` in
20668 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20669 prelink_cmds_CXX='tpldir=Template.dir~
20670 rm -rf $tpldir~
20671 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20672 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20673 old_archive_cmds_CXX='tpldir=Template.dir~
20674 rm -rf $tpldir~
20675 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20676 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20677 $RANLIB $oldlib'
20678 archive_cmds_CXX='tpldir=Template.dir~
20679 rm -rf $tpldir~
20680 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20681 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20682 archive_expsym_cmds_CXX='tpldir=Template.dir~
20683 rm -rf $tpldir~
20684 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20685 $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'
20686 ;;
20687 *) # Version 6 and above use weak symbols
20688 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20689 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'
20690 ;;
20691 esac
20692
20693 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20694 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20695 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'
20696 ;;
20697 cxx*)
20698 # Compaq C++
20699 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20700 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'
20701
20702 runpath_var=LD_RUN_PATH
20703 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20704 hardcode_libdir_separator_CXX=:
20705
20706 # Commands to make compiler produce verbose output that lists
20707 # what "hidden" libraries, object files and flags are used when
20708 # linking a shared library.
20709 #
20710 # There doesn't appear to be a way to prevent this compiler from
20711 # explicitly linking system object files so we need to strip them
20712 # from the output so that they don't get included in the library
20713 # dependencies.
20714 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'
20715 ;;
20716 xl* | mpixl* | bgxl*)
20717 # IBM XL 8.0 on PPC, with GNU ld
20718 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20719 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20720 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20721 if test "x$supports_anon_versioning" = xyes; then
20722 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20723 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20724 echo "local: *; };" >> $output_objdir/$libname.ver~
20725 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20726 fi
20727 ;;
20728 *)
20729 case `$CC -V 2>&1 | sed 5q` in
20730 *Sun\ C*)
20731 # Sun C++ 5.9
20732 no_undefined_flag_CXX=' -zdefs'
20733 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20734 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'
20735 hardcode_libdir_flag_spec_CXX='-R$libdir'
20736 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'
20737 compiler_needs_object_CXX=yes
20738
20739 # Not sure whether something based on
20740 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20741 # would be better.
20742 output_verbose_link_cmd='func_echo_all'
20743
20744 # Archives containing C++ object files must be created using
20745 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20746 # necessary to make sure instantiated templates are included
20747 # in the archive.
20748 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20749 ;;
20750 esac
20751 ;;
20752 esac
20753 ;;
20754
20755 lynxos*)
20756 # FIXME: insert proper C++ library support
20757 ld_shlibs_CXX=no
20758 ;;
20759
20760 m88k*)
20761 # FIXME: insert proper C++ library support
20762 ld_shlibs_CXX=no
20763 ;;
20764
20765 mvs*)
20766 case $cc_basename in
20767 cxx*)
20768 # FIXME: insert proper C++ library support
20769 ld_shlibs_CXX=no
20770 ;;
20771 *)
20772 # FIXME: insert proper C++ library support
20773 ld_shlibs_CXX=no
20774 ;;
20775 esac
20776 ;;
20777
20778 netbsd*)
20779 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20780 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20781 wlarc=
20782 hardcode_libdir_flag_spec_CXX='-R$libdir'
20783 hardcode_direct_CXX=yes
20784 hardcode_shlibpath_var_CXX=no
20785 fi
20786 # Workaround some broken pre-1.5 toolchains
20787 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20788 ;;
20789
20790 *nto* | *qnx*)
20791 ld_shlibs_CXX=yes
20792 ;;
20793
20794 openbsd2*)
20795 # C++ shared libraries are fairly broken
20796 ld_shlibs_CXX=no
20797 ;;
20798
20799 openbsd*)
20800 if test -f /usr/libexec/ld.so; then
20801 hardcode_direct_CXX=yes
20802 hardcode_shlibpath_var_CXX=no
20803 hardcode_direct_absolute_CXX=yes
20804 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20805 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20807 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20808 export_dynamic_flag_spec_CXX='${wl}-E'
20809 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20810 fi
20811 output_verbose_link_cmd=func_echo_all
20812 else
20813 ld_shlibs_CXX=no
20814 fi
20815 ;;
20816
20817 osf3* | osf4* | osf5*)
20818 case $cc_basename in
20819 KCC*)
20820 # Kuck and Associates, Inc. (KAI) C++ Compiler
20821
20822 # KCC will only create a shared library if the output file
20823 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20824 # to its proper name (with version) after linking.
20825 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'
20826
20827 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20828 hardcode_libdir_separator_CXX=:
20829
20830 # Archives containing C++ object files must be created using
20831 # the KAI C++ compiler.
20832 case $host in
20833 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20834 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20835 esac
20836 ;;
20837 RCC*)
20838 # Rational C++ 2.4.1
20839 # FIXME: insert proper C++ library support
20840 ld_shlibs_CXX=no
20841 ;;
20842 cxx*)
20843 case $host in
20844 osf3*)
20845 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20846 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'
20847 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20848 ;;
20849 *)
20850 allow_undefined_flag_CXX=' -expect_unresolved \*'
20851 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'
20852 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20853 echo "-hidden">> $lib.exp~
20854 $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~
20855 $RM $lib.exp'
20856 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20857 ;;
20858 esac
20859
20860 hardcode_libdir_separator_CXX=:
20861
20862 # Commands to make compiler produce verbose output that lists
20863 # what "hidden" libraries, object files and flags are used when
20864 # linking a shared library.
20865 #
20866 # There doesn't appear to be a way to prevent this compiler from
20867 # explicitly linking system object files so we need to strip them
20868 # from the output so that they don't get included in the library
20869 # dependencies.
20870 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"'
20871 ;;
20872 *)
20873 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20874 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20875 case $host in
20876 osf3*)
20877 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'
20878 ;;
20879 *)
20880 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'
20881 ;;
20882 esac
20883
20884 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20885 hardcode_libdir_separator_CXX=:
20886
20887 # Commands to make compiler produce verbose output that lists
20888 # what "hidden" libraries, object files and flags are used when
20889 # linking a shared library.
20890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20891
20892 else
20893 # FIXME: insert proper C++ library support
20894 ld_shlibs_CXX=no
20895 fi
20896 ;;
20897 esac
20898 ;;
20899
20900 psos*)
20901 # FIXME: insert proper C++ library support
20902 ld_shlibs_CXX=no
20903 ;;
20904
20905 sunos4*)
20906 case $cc_basename in
20907 CC*)
20908 # Sun C++ 4.x
20909 # FIXME: insert proper C++ library support
20910 ld_shlibs_CXX=no
20911 ;;
20912 lcc*)
20913 # Lucid
20914 # FIXME: insert proper C++ library support
20915 ld_shlibs_CXX=no
20916 ;;
20917 *)
20918 # FIXME: insert proper C++ library support
20919 ld_shlibs_CXX=no
20920 ;;
20921 esac
20922 ;;
20923
20924 solaris*)
20925 case $cc_basename in
20926 CC*)
20927 # Sun C++ 4.2, 5.x and Centerline C++
20928 archive_cmds_need_lc_CXX=yes
20929 no_undefined_flag_CXX=' -zdefs'
20930 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20931 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20932 $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'
20933
20934 hardcode_libdir_flag_spec_CXX='-R$libdir'
20935 hardcode_shlibpath_var_CXX=no
20936 case $host_os in
20937 solaris2.[0-5] | solaris2.[0-5].*) ;;
20938 *)
20939 # The compiler driver will combine and reorder linker options,
20940 # but understands `-z linker_flag'.
20941 # Supported since Solaris 2.6 (maybe 2.5.1?)
20942 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20943 ;;
20944 esac
20945 link_all_deplibs_CXX=yes
20946
20947 output_verbose_link_cmd='func_echo_all'
20948
20949 # Archives containing C++ object files must be created using
20950 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20951 # necessary to make sure instantiated templates are included
20952 # in the archive.
20953 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20954 ;;
20955 gcx*)
20956 # Green Hills C++ Compiler
20957 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20958
20959 # The C++ compiler must be used to create the archive.
20960 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20961 ;;
20962 *)
20963 # GNU C++ compiler with Solaris linker
20964 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20965 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20966 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20967 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20968 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20969 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20970
20971 # Commands to make compiler produce verbose output that lists
20972 # what "hidden" libraries, object files and flags are used when
20973 # linking a shared library.
20974 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20975 else
20976 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20977 # platform.
20978 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20979 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20980 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
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 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20986 fi
20987
20988 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20989 case $host_os in
20990 solaris2.[0-5] | solaris2.[0-5].*) ;;
20991 *)
20992 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20993 ;;
20994 esac
20995 fi
20996 ;;
20997 esac
20998 ;;
20999
21000 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21001 no_undefined_flag_CXX='${wl}-z,text'
21002 archive_cmds_need_lc_CXX=no
21003 hardcode_shlibpath_var_CXX=no
21004 runpath_var='LD_RUN_PATH'
21005
21006 case $cc_basename in
21007 CC*)
21008 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21009 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21010 ;;
21011 *)
21012 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21013 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21014 ;;
21015 esac
21016 ;;
21017
21018 sysv5* | sco3.2v5* | sco5v6*)
21019 # Note: We can NOT use -z defs as we might desire, because we do not
21020 # link with -lc, and that would cause any symbols used from libc to
21021 # always be unresolved, which means just about no library would
21022 # ever link correctly. If we're not using GNU ld we use -z text
21023 # though, which does catch some bad symbols but isn't as heavy-handed
21024 # as -z defs.
21025 no_undefined_flag_CXX='${wl}-z,text'
21026 allow_undefined_flag_CXX='${wl}-z,nodefs'
21027 archive_cmds_need_lc_CXX=no
21028 hardcode_shlibpath_var_CXX=no
21029 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21030 hardcode_libdir_separator_CXX=':'
21031 link_all_deplibs_CXX=yes
21032 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21033 runpath_var='LD_RUN_PATH'
21034
21035 case $cc_basename in
21036 CC*)
21037 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21038 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21039 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21040 '"$old_archive_cmds_CXX"
21041 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21042 '"$reload_cmds_CXX"
21043 ;;
21044 *)
21045 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21046 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21047 ;;
21048 esac
21049 ;;
21050
21051 tandem*)
21052 case $cc_basename in
21053 NCC*)
21054 # NonStop-UX NCC 3.20
21055 # FIXME: insert proper C++ library support
21056 ld_shlibs_CXX=no
21057 ;;
21058 *)
21059 # FIXME: insert proper C++ library support
21060 ld_shlibs_CXX=no
21061 ;;
21062 esac
21063 ;;
21064
21065 vxworks*)
21066 # FIXME: insert proper C++ library support
21067 ld_shlibs_CXX=no
21068 ;;
21069
21070 *)
21071 # FIXME: insert proper C++ library support
21072 ld_shlibs_CXX=no
21073 ;;
21074 esac
21075
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21077 $as_echo "$ld_shlibs_CXX" >&6; }
21078 test "$ld_shlibs_CXX" = no && can_build_shared=no
21079
21080 GCC_CXX="$GXX"
21081 LD_CXX="$LD"
21082
21083 ## CAVEAT EMPTOR:
21084 ## There is no encapsulation within the following macros, do not change
21085 ## the running order or otherwise move them around unless you know exactly
21086 ## what you are doing...
21087 # Dependencies to place before and after the object being linked:
21088 predep_objects_CXX=
21089 postdep_objects_CXX=
21090 predeps_CXX=
21091 postdeps_CXX=
21092 compiler_lib_search_path_CXX=
21093
21094 cat > conftest.$ac_ext <<_LT_EOF
21095 class Foo
21096 {
21097 public:
21098 Foo (void) { a = 0; }
21099 private:
21100 int a;
21101 };
21102 _LT_EOF
21103
21104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21105 (eval $ac_compile) 2>&5
21106 ac_status=$?
21107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21108 test $ac_status = 0; }; then
21109 # Parse the compiler output and extract the necessary
21110 # objects, libraries and library flags.
21111
21112 # Sentinel used to keep track of whether or not we are before
21113 # the conftest object file.
21114 pre_test_object_deps_done=no
21115
21116 for p in `eval "$output_verbose_link_cmd"`; do
21117 case $p in
21118
21119 -L* | -R* | -l*)
21120 # Some compilers place space between "-{L,R}" and the path.
21121 # Remove the space.
21122 if test $p = "-L" ||
21123 test $p = "-R"; then
21124 prev=$p
21125 continue
21126 else
21127 prev=
21128 fi
21129
21130 if test "$pre_test_object_deps_done" = no; then
21131 case $p in
21132 -L* | -R*)
21133 # Internal compiler library paths should come after those
21134 # provided the user. The postdeps already come after the
21135 # user supplied libs so there is no need to process them.
21136 if test -z "$compiler_lib_search_path_CXX"; then
21137 compiler_lib_search_path_CXX="${prev}${p}"
21138 else
21139 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21140 fi
21141 ;;
21142 # The "-l" case would never come before the object being
21143 # linked, so don't bother handling this case.
21144 esac
21145 else
21146 if test -z "$postdeps_CXX"; then
21147 postdeps_CXX="${prev}${p}"
21148 else
21149 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21150 fi
21151 fi
21152 ;;
21153
21154 *.$objext)
21155 # This assumes that the test object file only shows up
21156 # once in the compiler output.
21157 if test "$p" = "conftest.$objext"; then
21158 pre_test_object_deps_done=yes
21159 continue
21160 fi
21161
21162 if test "$pre_test_object_deps_done" = no; then
21163 if test -z "$predep_objects_CXX"; then
21164 predep_objects_CXX="$p"
21165 else
21166 predep_objects_CXX="$predep_objects_CXX $p"
21167 fi
21168 else
21169 if test -z "$postdep_objects_CXX"; then
21170 postdep_objects_CXX="$p"
21171 else
21172 postdep_objects_CXX="$postdep_objects_CXX $p"
21173 fi
21174 fi
21175 ;;
21176
21177 *) ;; # Ignore the rest.
21178
21179 esac
21180 done
21181
21182 # Clean up.
21183 rm -f a.out a.exe
21184 else
21185 echo "libtool.m4: error: problem compiling CXX test program"
21186 fi
21187
21188 $RM -f confest.$objext
21189
21190 # PORTME: override above test on systems where it is broken
21191 case $host_os in
21192 interix[3-9]*)
21193 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21194 # hack all around it, let's just trust "g++" to DTRT.
21195 predep_objects_CXX=
21196 postdep_objects_CXX=
21197 postdeps_CXX=
21198 ;;
21199
21200 linux*)
21201 case `$CC -V 2>&1 | sed 5q` in
21202 *Sun\ C*)
21203 # Sun C++ 5.9
21204
21205 # The more standards-conforming stlport4 library is
21206 # incompatible with the Cstd library. Avoid specifying
21207 # it if it's in CXXFLAGS. Ignore libCrun as
21208 # -library=stlport4 depends on it.
21209 case " $CXX $CXXFLAGS " in
21210 *" -library=stlport4 "*)
21211 solaris_use_stlport4=yes
21212 ;;
21213 esac
21214
21215 if test "$solaris_use_stlport4" != yes; then
21216 postdeps_CXX='-library=Cstd -library=Crun'
21217 fi
21218 ;;
21219 esac
21220 ;;
21221
21222 solaris*)
21223 case $cc_basename in
21224 CC*)
21225 # The more standards-conforming stlport4 library is
21226 # incompatible with the Cstd library. Avoid specifying
21227 # it if it's in CXXFLAGS. Ignore libCrun as
21228 # -library=stlport4 depends on it.
21229 case " $CXX $CXXFLAGS " in
21230 *" -library=stlport4 "*)
21231 solaris_use_stlport4=yes
21232 ;;
21233 esac
21234
21235 # Adding this requires a known-good setup of shared libraries for
21236 # Sun compiler versions before 5.6, else PIC objects from an old
21237 # archive will be linked into the output, leading to subtle bugs.
21238 if test "$solaris_use_stlport4" != yes; then
21239 postdeps_CXX='-library=Cstd -library=Crun'
21240 fi
21241 ;;
21242 esac
21243 ;;
21244 esac
21245
21246
21247 case " $postdeps_CXX " in
21248 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21249 esac
21250 compiler_lib_search_dirs_CXX=
21251 if test -n "${compiler_lib_search_path_CXX}"; then
21252 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21253 fi
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285 lt_prog_compiler_wl_CXX=
21286 lt_prog_compiler_pic_CXX=
21287 lt_prog_compiler_static_CXX=
21288
21289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21290 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21291
21292 # C++ specific cases for pic, static, wl, etc.
21293 if test "$GXX" = yes; then
21294 lt_prog_compiler_wl_CXX='-Wl,'
21295 lt_prog_compiler_static_CXX='-static'
21296
21297 case $host_os in
21298 aix*)
21299 # All AIX code is PIC.
21300 if test "$host_cpu" = ia64; then
21301 # AIX 5 now supports IA64 processor
21302 lt_prog_compiler_static_CXX='-Bstatic'
21303 fi
21304 lt_prog_compiler_pic_CXX='-fPIC'
21305 ;;
21306
21307 amigaos*)
21308 case $host_cpu in
21309 powerpc)
21310 # see comment about AmigaOS4 .so support
21311 lt_prog_compiler_pic_CXX='-fPIC'
21312 ;;
21313 m68k)
21314 # FIXME: we need at least 68020 code to build shared libraries, but
21315 # adding the `-m68020' flag to GCC prevents building anything better,
21316 # like `-m68040'.
21317 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21318 ;;
21319 esac
21320 ;;
21321
21322 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21323 # PIC is the default for these OSes.
21324 ;;
21325 mingw* | cygwin* | os2* | pw32* | cegcc*)
21326 # This hack is so that the source file can tell whether it is being
21327 # built for inclusion in a dll (and should export symbols for example).
21328 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21329 # (--disable-auto-import) libraries
21330 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21331 ;;
21332 darwin* | rhapsody*)
21333 # PIC is the default on this platform
21334 # Common symbols not allowed in MH_DYLIB files
21335 lt_prog_compiler_pic_CXX='-fno-common'
21336 ;;
21337 *djgpp*)
21338 # DJGPP does not support shared libraries at all
21339 lt_prog_compiler_pic_CXX=
21340 ;;
21341 haiku*)
21342 # PIC is the default for Haiku.
21343 # The "-static" flag exists, but is broken.
21344 lt_prog_compiler_static_CXX=
21345 ;;
21346 interix[3-9]*)
21347 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21348 # Instead, we relocate shared libraries at runtime.
21349 ;;
21350 sysv4*MP*)
21351 if test -d /usr/nec; then
21352 lt_prog_compiler_pic_CXX=-Kconform_pic
21353 fi
21354 ;;
21355 hpux*)
21356 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21357 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21358 # sets the default TLS model and affects inlining.
21359 case $host_cpu in
21360 hppa*64*)
21361 ;;
21362 *)
21363 lt_prog_compiler_pic_CXX='-fPIC'
21364 ;;
21365 esac
21366 ;;
21367 *qnx* | *nto*)
21368 # QNX uses GNU C++, but need to define -shared option too, otherwise
21369 # it will coredump.
21370 lt_prog_compiler_pic_CXX='-fPIC -shared'
21371 ;;
21372 *)
21373 lt_prog_compiler_pic_CXX='-fPIC'
21374 ;;
21375 esac
21376 else
21377 case $host_os in
21378 aix[4-9]*)
21379 # All AIX code is PIC.
21380 if test "$host_cpu" = ia64; then
21381 # AIX 5 now supports IA64 processor
21382 lt_prog_compiler_static_CXX='-Bstatic'
21383 else
21384 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21385 fi
21386 ;;
21387 chorus*)
21388 case $cc_basename in
21389 cxch68*)
21390 # Green Hills C++ Compiler
21391 # _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"
21392 ;;
21393 esac
21394 ;;
21395 dgux*)
21396 case $cc_basename in
21397 ec++*)
21398 lt_prog_compiler_pic_CXX='-KPIC'
21399 ;;
21400 ghcx*)
21401 # Green Hills C++ Compiler
21402 lt_prog_compiler_pic_CXX='-pic'
21403 ;;
21404 *)
21405 ;;
21406 esac
21407 ;;
21408 freebsd* | dragonfly*)
21409 # FreeBSD uses GNU C++
21410 ;;
21411 hpux9* | hpux10* | hpux11*)
21412 case $cc_basename in
21413 CC*)
21414 lt_prog_compiler_wl_CXX='-Wl,'
21415 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21416 if test "$host_cpu" != ia64; then
21417 lt_prog_compiler_pic_CXX='+Z'
21418 fi
21419 ;;
21420 aCC*)
21421 lt_prog_compiler_wl_CXX='-Wl,'
21422 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21423 case $host_cpu in
21424 hppa*64*|ia64*)
21425 # +Z the default
21426 ;;
21427 *)
21428 lt_prog_compiler_pic_CXX='+Z'
21429 ;;
21430 esac
21431 ;;
21432 *)
21433 ;;
21434 esac
21435 ;;
21436 interix*)
21437 # This is c89, which is MS Visual C++ (no shared libs)
21438 # Anyone wants to do a port?
21439 ;;
21440 irix5* | irix6* | nonstopux*)
21441 case $cc_basename in
21442 CC*)
21443 lt_prog_compiler_wl_CXX='-Wl,'
21444 lt_prog_compiler_static_CXX='-non_shared'
21445 # CC pic flag -KPIC is the default.
21446 ;;
21447 *)
21448 ;;
21449 esac
21450 ;;
21451 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21452 case $cc_basename in
21453 KCC*)
21454 # KAI C++ Compiler
21455 lt_prog_compiler_wl_CXX='--backend -Wl,'
21456 lt_prog_compiler_pic_CXX='-fPIC'
21457 ;;
21458 ecpc* )
21459 # old Intel C++ for x86_64 which still supported -KPIC.
21460 lt_prog_compiler_wl_CXX='-Wl,'
21461 lt_prog_compiler_pic_CXX='-KPIC'
21462 lt_prog_compiler_static_CXX='-static'
21463 ;;
21464 icpc* )
21465 # Intel C++, used to be incompatible with GCC.
21466 # ICC 10 doesn't accept -KPIC any more.
21467 lt_prog_compiler_wl_CXX='-Wl,'
21468 lt_prog_compiler_pic_CXX='-fPIC'
21469 lt_prog_compiler_static_CXX='-static'
21470 ;;
21471 pgCC* | pgcpp*)
21472 # Portland Group C++ compiler
21473 lt_prog_compiler_wl_CXX='-Wl,'
21474 lt_prog_compiler_pic_CXX='-fpic'
21475 lt_prog_compiler_static_CXX='-Bstatic'
21476 ;;
21477 cxx*)
21478 # Compaq C++
21479 # Make sure the PIC flag is empty. It appears that all Alpha
21480 # Linux and Compaq Tru64 Unix objects are PIC.
21481 lt_prog_compiler_pic_CXX=
21482 lt_prog_compiler_static_CXX='-non_shared'
21483 ;;
21484 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21485 # IBM XL 8.0, 9.0 on PPC and BlueGene
21486 lt_prog_compiler_wl_CXX='-Wl,'
21487 lt_prog_compiler_pic_CXX='-qpic'
21488 lt_prog_compiler_static_CXX='-qstaticlink'
21489 ;;
21490 *)
21491 case `$CC -V 2>&1 | sed 5q` in
21492 *Sun\ C*)
21493 # Sun C++ 5.9
21494 lt_prog_compiler_pic_CXX='-KPIC'
21495 lt_prog_compiler_static_CXX='-Bstatic'
21496 lt_prog_compiler_wl_CXX='-Qoption ld '
21497 ;;
21498 esac
21499 ;;
21500 esac
21501 ;;
21502 lynxos*)
21503 ;;
21504 m88k*)
21505 ;;
21506 mvs*)
21507 case $cc_basename in
21508 cxx*)
21509 lt_prog_compiler_pic_CXX='-W c,exportall'
21510 ;;
21511 *)
21512 ;;
21513 esac
21514 ;;
21515 netbsd*)
21516 ;;
21517 *qnx* | *nto*)
21518 # QNX uses GNU C++, but need to define -shared option too, otherwise
21519 # it will coredump.
21520 lt_prog_compiler_pic_CXX='-fPIC -shared'
21521 ;;
21522 osf3* | osf4* | osf5*)
21523 case $cc_basename in
21524 KCC*)
21525 lt_prog_compiler_wl_CXX='--backend -Wl,'
21526 ;;
21527 RCC*)
21528 # Rational C++ 2.4.1
21529 lt_prog_compiler_pic_CXX='-pic'
21530 ;;
21531 cxx*)
21532 # Digital/Compaq C++
21533 lt_prog_compiler_wl_CXX='-Wl,'
21534 # Make sure the PIC flag is empty. It appears that all Alpha
21535 # Linux and Compaq Tru64 Unix objects are PIC.
21536 lt_prog_compiler_pic_CXX=
21537 lt_prog_compiler_static_CXX='-non_shared'
21538 ;;
21539 *)
21540 ;;
21541 esac
21542 ;;
21543 psos*)
21544 ;;
21545 solaris*)
21546 case $cc_basename in
21547 CC*)
21548 # Sun C++ 4.2, 5.x and Centerline C++
21549 lt_prog_compiler_pic_CXX='-KPIC'
21550 lt_prog_compiler_static_CXX='-Bstatic'
21551 lt_prog_compiler_wl_CXX='-Qoption ld '
21552 ;;
21553 gcx*)
21554 # Green Hills C++ Compiler
21555 lt_prog_compiler_pic_CXX='-PIC'
21556 ;;
21557 *)
21558 ;;
21559 esac
21560 ;;
21561 sunos4*)
21562 case $cc_basename in
21563 CC*)
21564 # Sun C++ 4.x
21565 lt_prog_compiler_pic_CXX='-pic'
21566 lt_prog_compiler_static_CXX='-Bstatic'
21567 ;;
21568 lcc*)
21569 # Lucid
21570 lt_prog_compiler_pic_CXX='-pic'
21571 ;;
21572 *)
21573 ;;
21574 esac
21575 ;;
21576 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21577 case $cc_basename in
21578 CC*)
21579 lt_prog_compiler_wl_CXX='-Wl,'
21580 lt_prog_compiler_pic_CXX='-KPIC'
21581 lt_prog_compiler_static_CXX='-Bstatic'
21582 ;;
21583 esac
21584 ;;
21585 tandem*)
21586 case $cc_basename in
21587 NCC*)
21588 # NonStop-UX NCC 3.20
21589 lt_prog_compiler_pic_CXX='-KPIC'
21590 ;;
21591 *)
21592 ;;
21593 esac
21594 ;;
21595 vxworks*)
21596 ;;
21597 *)
21598 lt_prog_compiler_can_build_shared_CXX=no
21599 ;;
21600 esac
21601 fi
21602
21603 case $host_os in
21604 # For platforms which do not support PIC, -DPIC is meaningless:
21605 *djgpp*)
21606 lt_prog_compiler_pic_CXX=
21607 ;;
21608 *)
21609 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21610 ;;
21611 esac
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21613 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21614
21615
21616
21617 #
21618 # Check to make sure the PIC flag actually works.
21619 #
21620 if test -n "$lt_prog_compiler_pic_CXX"; then
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21622 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21623 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21624 $as_echo_n "(cached) " >&6
21625 else
21626 lt_cv_prog_compiler_pic_works_CXX=no
21627 ac_outfile=conftest.$ac_objext
21628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21629 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21630 # Insert the option either (1) after the last *FLAGS variable, or
21631 # (2) before a word containing "conftest.", or (3) at the end.
21632 # Note that $ac_compile itself does not contain backslashes and begins
21633 # with a dollar sign (not a hyphen), so the echo should work correctly.
21634 # The option is referenced via a variable to avoid confusing sed.
21635 lt_compile=`echo "$ac_compile" | $SED \
21636 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21637 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21638 -e 's:$: $lt_compiler_flag:'`
21639 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21640 (eval "$lt_compile" 2>conftest.err)
21641 ac_status=$?
21642 cat conftest.err >&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 if (exit $ac_status) && test -s "$ac_outfile"; then
21645 # The compiler can only warn and ignore the option if not recognized
21646 # So say no if there are warnings other than the usual output.
21647 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21648 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21649 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21650 lt_cv_prog_compiler_pic_works_CXX=yes
21651 fi
21652 fi
21653 $RM conftest*
21654
21655 fi
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21657 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21658
21659 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21660 case $lt_prog_compiler_pic_CXX in
21661 "" | " "*) ;;
21662 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21663 esac
21664 else
21665 lt_prog_compiler_pic_CXX=
21666 lt_prog_compiler_can_build_shared_CXX=no
21667 fi
21668
21669 fi
21670
21671
21672
21673 #
21674 # Check to make sure the static flag actually works.
21675 #
21676 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21678 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21679 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21680 $as_echo_n "(cached) " >&6
21681 else
21682 lt_cv_prog_compiler_static_works_CXX=no
21683 save_LDFLAGS="$LDFLAGS"
21684 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21685 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21687 # The linker can only warn and ignore the option if not recognized
21688 # So say no if there are warnings
21689 if test -s conftest.err; then
21690 # Append any errors to the config.log.
21691 cat conftest.err 1>&5
21692 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21694 if diff conftest.exp conftest.er2 >/dev/null; then
21695 lt_cv_prog_compiler_static_works_CXX=yes
21696 fi
21697 else
21698 lt_cv_prog_compiler_static_works_CXX=yes
21699 fi
21700 fi
21701 $RM -r conftest*
21702 LDFLAGS="$save_LDFLAGS"
21703
21704 fi
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21706 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21707
21708 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21709 :
21710 else
21711 lt_prog_compiler_static_CXX=
21712 fi
21713
21714
21715
21716
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21718 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21719 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21720 $as_echo_n "(cached) " >&6
21721 else
21722 lt_cv_prog_compiler_c_o_CXX=no
21723 $RM -r conftest 2>/dev/null
21724 mkdir conftest
21725 cd conftest
21726 mkdir out
21727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21728
21729 lt_compiler_flag="-o out/conftest2.$ac_objext"
21730 # Insert the option either (1) after the last *FLAGS variable, or
21731 # (2) before a word containing "conftest.", or (3) at the end.
21732 # Note that $ac_compile itself does not contain backslashes and begins
21733 # with a dollar sign (not a hyphen), so the echo should work correctly.
21734 lt_compile=`echo "$ac_compile" | $SED \
21735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21737 -e 's:$: $lt_compiler_flag:'`
21738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21739 (eval "$lt_compile" 2>out/conftest.err)
21740 ac_status=$?
21741 cat out/conftest.err >&5
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21744 then
21745 # The compiler can only warn and ignore the option if not recognized
21746 # So say no if there are warnings
21747 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21748 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21749 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21750 lt_cv_prog_compiler_c_o_CXX=yes
21751 fi
21752 fi
21753 chmod u+w . 2>&5
21754 $RM conftest*
21755 # SGI C++ compiler will create directory out/ii_files/ for
21756 # template instantiation
21757 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21758 $RM out/* && rmdir out
21759 cd ..
21760 $RM -r conftest
21761 $RM conftest*
21762
21763 fi
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21765 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21766
21767
21768
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21770 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21771 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21772 $as_echo_n "(cached) " >&6
21773 else
21774 lt_cv_prog_compiler_c_o_CXX=no
21775 $RM -r conftest 2>/dev/null
21776 mkdir conftest
21777 cd conftest
21778 mkdir out
21779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21780
21781 lt_compiler_flag="-o out/conftest2.$ac_objext"
21782 # Insert the option either (1) after the last *FLAGS variable, or
21783 # (2) before a word containing "conftest.", or (3) at the end.
21784 # Note that $ac_compile itself does not contain backslashes and begins
21785 # with a dollar sign (not a hyphen), so the echo should work correctly.
21786 lt_compile=`echo "$ac_compile" | $SED \
21787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21789 -e 's:$: $lt_compiler_flag:'`
21790 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21791 (eval "$lt_compile" 2>out/conftest.err)
21792 ac_status=$?
21793 cat out/conftest.err >&5
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21796 then
21797 # The compiler can only warn and ignore the option if not recognized
21798 # So say no if there are warnings
21799 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21802 lt_cv_prog_compiler_c_o_CXX=yes
21803 fi
21804 fi
21805 chmod u+w . 2>&5
21806 $RM conftest*
21807 # SGI C++ compiler will create directory out/ii_files/ for
21808 # template instantiation
21809 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21810 $RM out/* && rmdir out
21811 cd ..
21812 $RM -r conftest
21813 $RM conftest*
21814
21815 fi
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21817 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21818
21819
21820
21821
21822 hard_links="nottested"
21823 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21824 # do not overwrite the value of need_locks provided by the user
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21826 $as_echo_n "checking if we can lock with hard links... " >&6; }
21827 hard_links=yes
21828 $RM conftest*
21829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21830 touch conftest.a
21831 ln conftest.a conftest.b 2>&5 || hard_links=no
21832 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21834 $as_echo "$hard_links" >&6; }
21835 if test "$hard_links" = no; then
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21837 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21838 need_locks=warn
21839 fi
21840 else
21841 need_locks=no
21842 fi
21843
21844
21845
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21847 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21848
21849 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21850 case $host_os in
21851 aix[4-9]*)
21852 # If we're using GNU nm, then we don't want the "-C" option.
21853 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21854 # Also, AIX nm treats weak defined symbols like other global defined
21855 # symbols, whereas GNU nm marks them as "W".
21856 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21857 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'
21858 else
21859 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'
21860 fi
21861 ;;
21862 pw32*)
21863 export_symbols_cmds_CXX="$ltdll_cmds"
21864 ;;
21865 cygwin* | mingw* | cegcc*)
21866 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'
21867 ;;
21868 *)
21869 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21870 ;;
21871 esac
21872 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21873
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21875 $as_echo "$ld_shlibs_CXX" >&6; }
21876 test "$ld_shlibs_CXX" = no && can_build_shared=no
21877
21878 with_gnu_ld_CXX=$with_gnu_ld
21879
21880
21881
21882
21883
21884
21885 #
21886 # Do we need to explicitly link libc?
21887 #
21888 case "x$archive_cmds_need_lc_CXX" in
21889 x|xyes)
21890 # Assume -lc should be added
21891 archive_cmds_need_lc_CXX=yes
21892
21893 if test "$enable_shared" = yes && test "$GCC" = yes; then
21894 case $archive_cmds_CXX in
21895 *'~'*)
21896 # FIXME: we may have to deal with multi-command sequences.
21897 ;;
21898 '$CC '*)
21899 # Test whether the compiler implicitly links with -lc since on some
21900 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21901 # to ld, don't add -lc before -lgcc.
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21903 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21904 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21905 $as_echo_n "(cached) " >&6
21906 else
21907 $RM conftest*
21908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21909
21910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21911 (eval $ac_compile) 2>&5
21912 ac_status=$?
21913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21914 test $ac_status = 0; } 2>conftest.err; then
21915 soname=conftest
21916 lib=conftest
21917 libobjs=conftest.$ac_objext
21918 deplibs=
21919 wl=$lt_prog_compiler_wl_CXX
21920 pic_flag=$lt_prog_compiler_pic_CXX
21921 compiler_flags=-v
21922 linker_flags=-v
21923 verstring=
21924 output_objdir=.
21925 libname=conftest
21926 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21927 allow_undefined_flag_CXX=
21928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21929 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21930 ac_status=$?
21931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21932 test $ac_status = 0; }
21933 then
21934 lt_cv_archive_cmds_need_lc_CXX=no
21935 else
21936 lt_cv_archive_cmds_need_lc_CXX=yes
21937 fi
21938 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21939 else
21940 cat conftest.err 1>&5
21941 fi
21942 $RM conftest*
21943
21944 fi
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21946 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21947 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21948 ;;
21949 esac
21950 fi
21951 ;;
21952 esac
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
22016
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22018 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22019
22020 library_names_spec=
22021 libname_spec='lib$name'
22022 soname_spec=
22023 shrext_cmds=".so"
22024 postinstall_cmds=
22025 postuninstall_cmds=
22026 finish_cmds=
22027 finish_eval=
22028 shlibpath_var=
22029 shlibpath_overrides_runpath=unknown
22030 version_type=none
22031 dynamic_linker="$host_os ld.so"
22032 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22033 need_lib_prefix=unknown
22034 hardcode_into_libs=no
22035
22036 # when you set need_version to no, make sure it does not cause -set_version
22037 # flags to be left without arguments
22038 need_version=unknown
22039
22040 case $host_os in
22041 aix3*)
22042 version_type=linux
22043 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22044 shlibpath_var=LIBPATH
22045
22046 # AIX 3 has no versioning support, so we append a major version to the name.
22047 soname_spec='${libname}${release}${shared_ext}$major'
22048 ;;
22049
22050 aix[4-9]*)
22051 version_type=linux
22052 need_lib_prefix=no
22053 need_version=no
22054 hardcode_into_libs=yes
22055 if test "$host_cpu" = ia64; then
22056 # AIX 5 supports IA64
22057 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22058 shlibpath_var=LD_LIBRARY_PATH
22059 else
22060 # With GCC up to 2.95.x, collect2 would create an import file
22061 # for dependence libraries. The import file would start with
22062 # the line `#! .'. This would cause the generated library to
22063 # depend on `.', always an invalid library. This was fixed in
22064 # development snapshots of GCC prior to 3.0.
22065 case $host_os in
22066 aix4 | aix4.[01] | aix4.[01].*)
22067 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22068 echo ' yes '
22069 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22070 :
22071 else
22072 can_build_shared=no
22073 fi
22074 ;;
22075 esac
22076 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22077 # soname into executable. Probably we can add versioning support to
22078 # collect2, so additional links can be useful in future.
22079 if test "$aix_use_runtimelinking" = yes; then
22080 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22081 # instead of lib<name>.a to let people know that these are not
22082 # typical AIX shared libraries.
22083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22084 else
22085 # We preserve .a as extension for shared libraries through AIX4.2
22086 # and later when we are not doing run time linking.
22087 library_names_spec='${libname}${release}.a $libname.a'
22088 soname_spec='${libname}${release}${shared_ext}$major'
22089 fi
22090 shlibpath_var=LIBPATH
22091 fi
22092 ;;
22093
22094 amigaos*)
22095 case $host_cpu in
22096 powerpc)
22097 # Since July 2007 AmigaOS4 officially supports .so libraries.
22098 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22100 ;;
22101 m68k)
22102 library_names_spec='$libname.ixlibrary $libname.a'
22103 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22104 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'
22105 ;;
22106 esac
22107 ;;
22108
22109 beos*)
22110 library_names_spec='${libname}${shared_ext}'
22111 dynamic_linker="$host_os ld.so"
22112 shlibpath_var=LIBRARY_PATH
22113 ;;
22114
22115 bsdi[45]*)
22116 version_type=linux
22117 need_version=no
22118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22119 soname_spec='${libname}${release}${shared_ext}$major'
22120 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22121 shlibpath_var=LD_LIBRARY_PATH
22122 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22123 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22124 # the default ld.so.conf also contains /usr/contrib/lib and
22125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22126 # libtool to hard-code these into programs
22127 ;;
22128
22129 cygwin* | mingw* | pw32* | cegcc*)
22130 version_type=windows
22131 shrext_cmds=".dll"
22132 need_version=no
22133 need_lib_prefix=no
22134
22135 case $GCC,$host_os in
22136 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22137 library_names_spec='$libname.dll.a'
22138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22139 postinstall_cmds='base_file=`basename \${file}`~
22140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22141 dldir=$destdir/`dirname \$dlpath`~
22142 test -d \$dldir || mkdir -p \$dldir~
22143 $install_prog $dir/$dlname \$dldir/$dlname~
22144 chmod a+x \$dldir/$dlname~
22145 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22146 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22147 fi'
22148 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22149 dlpath=$dir/\$dldll~
22150 $RM \$dlpath'
22151 shlibpath_overrides_runpath=yes
22152
22153 case $host_os in
22154 cygwin*)
22155 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22156 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22157
22158 ;;
22159 mingw* | cegcc*)
22160 # MinGW DLLs use traditional 'lib' prefix
22161 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22162 ;;
22163 pw32*)
22164 # pw32 DLLs use 'pw' prefix rather than 'lib'
22165 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22166 ;;
22167 esac
22168 ;;
22169
22170 *)
22171 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22172 ;;
22173 esac
22174 dynamic_linker='Win32 ld.exe'
22175 # FIXME: first we should search . and the directory the executable is in
22176 shlibpath_var=PATH
22177 ;;
22178
22179 darwin* | rhapsody*)
22180 dynamic_linker="$host_os dyld"
22181 version_type=darwin
22182 need_lib_prefix=no
22183 need_version=no
22184 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22185 soname_spec='${libname}${release}${major}$shared_ext'
22186 shlibpath_overrides_runpath=yes
22187 shlibpath_var=DYLD_LIBRARY_PATH
22188 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22189
22190 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22191 ;;
22192
22193 dgux*)
22194 version_type=linux
22195 need_lib_prefix=no
22196 need_version=no
22197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22198 soname_spec='${libname}${release}${shared_ext}$major'
22199 shlibpath_var=LD_LIBRARY_PATH
22200 ;;
22201
22202 freebsd* | dragonfly*)
22203 # DragonFly does not have aout. When/if they implement a new
22204 # versioning mechanism, adjust this.
22205 if test -x /usr/bin/objformat; then
22206 objformat=`/usr/bin/objformat`
22207 else
22208 case $host_os in
22209 freebsd[23].*) objformat=aout ;;
22210 *) objformat=elf ;;
22211 esac
22212 fi
22213 version_type=freebsd-$objformat
22214 case $version_type in
22215 freebsd-elf*)
22216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22217 need_version=no
22218 need_lib_prefix=no
22219 ;;
22220 freebsd-*)
22221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22222 need_version=yes
22223 ;;
22224 esac
22225 shlibpath_var=LD_LIBRARY_PATH
22226 case $host_os in
22227 freebsd2.*)
22228 shlibpath_overrides_runpath=yes
22229 ;;
22230 freebsd3.[01]* | freebsdelf3.[01]*)
22231 shlibpath_overrides_runpath=yes
22232 hardcode_into_libs=yes
22233 ;;
22234 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22235 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22236 shlibpath_overrides_runpath=no
22237 hardcode_into_libs=yes
22238 ;;
22239 *) # from 4.6 on, and DragonFly
22240 shlibpath_overrides_runpath=yes
22241 hardcode_into_libs=yes
22242 ;;
22243 esac
22244 ;;
22245
22246 haiku*)
22247 version_type=linux
22248 need_lib_prefix=no
22249 need_version=no
22250 dynamic_linker="$host_os runtime_loader"
22251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22252 soname_spec='${libname}${release}${shared_ext}$major'
22253 shlibpath_var=LIBRARY_PATH
22254 shlibpath_overrides_runpath=yes
22255 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22256 hardcode_into_libs=yes
22257 ;;
22258
22259 hpux9* | hpux10* | hpux11*)
22260 # Give a soname corresponding to the major version so that dld.sl refuses to
22261 # link against other versions.
22262 version_type=sunos
22263 need_lib_prefix=no
22264 need_version=no
22265 case $host_cpu in
22266 ia64*)
22267 shrext_cmds='.so'
22268 hardcode_into_libs=yes
22269 dynamic_linker="$host_os dld.so"
22270 shlibpath_var=LD_LIBRARY_PATH
22271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22273 soname_spec='${libname}${release}${shared_ext}$major'
22274 if test "X$HPUX_IA64_MODE" = X32; then
22275 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22276 else
22277 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22278 fi
22279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22280 ;;
22281 hppa*64*)
22282 shrext_cmds='.sl'
22283 hardcode_into_libs=yes
22284 dynamic_linker="$host_os dld.sl"
22285 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22288 soname_spec='${libname}${release}${shared_ext}$major'
22289 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22291 ;;
22292 *)
22293 shrext_cmds='.sl'
22294 dynamic_linker="$host_os dld.sl"
22295 shlibpath_var=SHLIB_PATH
22296 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22298 soname_spec='${libname}${release}${shared_ext}$major'
22299 ;;
22300 esac
22301 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22302 postinstall_cmds='chmod 555 $lib'
22303 # or fails outright, so override atomically:
22304 install_override_mode=555
22305 ;;
22306
22307 interix[3-9]*)
22308 version_type=linux
22309 need_lib_prefix=no
22310 need_version=no
22311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22312 soname_spec='${libname}${release}${shared_ext}$major'
22313 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22314 shlibpath_var=LD_LIBRARY_PATH
22315 shlibpath_overrides_runpath=no
22316 hardcode_into_libs=yes
22317 ;;
22318
22319 irix5* | irix6* | nonstopux*)
22320 case $host_os in
22321 nonstopux*) version_type=nonstopux ;;
22322 *)
22323 if test "$lt_cv_prog_gnu_ld" = yes; then
22324 version_type=linux
22325 else
22326 version_type=irix
22327 fi ;;
22328 esac
22329 need_lib_prefix=no
22330 need_version=no
22331 soname_spec='${libname}${release}${shared_ext}$major'
22332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22333 case $host_os in
22334 irix5* | nonstopux*)
22335 libsuff= shlibsuff=
22336 ;;
22337 *)
22338 case $LD in # libtool.m4 will add one of these switches to LD
22339 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22340 libsuff= shlibsuff= libmagic=32-bit;;
22341 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22342 libsuff=32 shlibsuff=N32 libmagic=N32;;
22343 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22344 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22345 *) libsuff= shlibsuff= libmagic=never-match;;
22346 esac
22347 ;;
22348 esac
22349 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22350 shlibpath_overrides_runpath=no
22351 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22352 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22353 hardcode_into_libs=yes
22354 ;;
22355
22356 # No shared lib support for Linux oldld, aout, or coff.
22357 linux*oldld* | linux*aout* | linux*coff*)
22358 dynamic_linker=no
22359 ;;
22360
22361 # This must be Linux ELF.
22362
22363 # uclinux* changes (here and below) have been submitted to the libtool
22364 # project, but have not yet been accepted: they are GCC-local changes
22365 # for the time being. (See
22366 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22367 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22368 version_type=linux
22369 need_lib_prefix=no
22370 need_version=no
22371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22372 soname_spec='${libname}${release}${shared_ext}$major'
22373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22374 shlibpath_var=LD_LIBRARY_PATH
22375 shlibpath_overrides_runpath=no
22376
22377 # Some binutils ld are patched to set DT_RUNPATH
22378 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22379 $as_echo_n "(cached) " >&6
22380 else
22381 lt_cv_shlibpath_overrides_runpath=no
22382 save_LDFLAGS=$LDFLAGS
22383 save_libdir=$libdir
22384 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22385 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22387 /* end confdefs.h. */
22388
22389 int
22390 main ()
22391 {
22392
22393 ;
22394 return 0;
22395 }
22396 _ACEOF
22397 if ac_fn_cxx_try_link "$LINENO"; then :
22398 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22399 lt_cv_shlibpath_overrides_runpath=yes
22400 fi
22401 fi
22402 rm -f core conftest.err conftest.$ac_objext \
22403 conftest$ac_exeext conftest.$ac_ext
22404 LDFLAGS=$save_LDFLAGS
22405 libdir=$save_libdir
22406
22407 fi
22408
22409 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22410
22411 # This implies no fast_install, which is unacceptable.
22412 # Some rework will be needed to allow for fast_install
22413 # before this can be enabled.
22414 hardcode_into_libs=yes
22415
22416 # Append ld.so.conf contents to the search path
22417 if test -f /etc/ld.so.conf; then
22418 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' ' '`
22419 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22420 fi
22421
22422 # We used to test for /lib/ld.so.1 and disable shared libraries on
22423 # powerpc, because MkLinux only supported shared libraries with the
22424 # GNU dynamic linker. Since this was broken with cross compilers,
22425 # most powerpc-linux boxes support dynamic linking these days and
22426 # people can always --disable-shared, the test was removed, and we
22427 # assume the GNU/Linux dynamic linker is in use.
22428 dynamic_linker='GNU/Linux ld.so'
22429 ;;
22430
22431 netbsd*)
22432 version_type=sunos
22433 need_lib_prefix=no
22434 need_version=no
22435 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22438 dynamic_linker='NetBSD (a.out) ld.so'
22439 else
22440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22441 soname_spec='${libname}${release}${shared_ext}$major'
22442 dynamic_linker='NetBSD ld.elf_so'
22443 fi
22444 shlibpath_var=LD_LIBRARY_PATH
22445 shlibpath_overrides_runpath=yes
22446 hardcode_into_libs=yes
22447 ;;
22448
22449 newsos6)
22450 version_type=linux
22451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22452 shlibpath_var=LD_LIBRARY_PATH
22453 shlibpath_overrides_runpath=yes
22454 ;;
22455
22456 *nto* | *qnx*)
22457 version_type=qnx
22458 need_lib_prefix=no
22459 need_version=no
22460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22461 soname_spec='${libname}${release}${shared_ext}$major'
22462 shlibpath_var=LD_LIBRARY_PATH
22463 shlibpath_overrides_runpath=no
22464 hardcode_into_libs=yes
22465 dynamic_linker='ldqnx.so'
22466 ;;
22467
22468 openbsd*)
22469 version_type=sunos
22470 sys_lib_dlsearch_path_spec="/usr/lib"
22471 need_lib_prefix=no
22472 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22473 case $host_os in
22474 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22475 *) need_version=no ;;
22476 esac
22477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22479 shlibpath_var=LD_LIBRARY_PATH
22480 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22481 case $host_os in
22482 openbsd2.[89] | openbsd2.[89].*)
22483 shlibpath_overrides_runpath=no
22484 ;;
22485 *)
22486 shlibpath_overrides_runpath=yes
22487 ;;
22488 esac
22489 else
22490 shlibpath_overrides_runpath=yes
22491 fi
22492 ;;
22493
22494 os2*)
22495 libname_spec='$name'
22496 shrext_cmds=".dll"
22497 need_lib_prefix=no
22498 library_names_spec='$libname${shared_ext} $libname.a'
22499 dynamic_linker='OS/2 ld.exe'
22500 shlibpath_var=LIBPATH
22501 ;;
22502
22503 osf3* | osf4* | osf5*)
22504 version_type=osf
22505 need_lib_prefix=no
22506 need_version=no
22507 soname_spec='${libname}${release}${shared_ext}$major'
22508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22509 shlibpath_var=LD_LIBRARY_PATH
22510 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22511 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22512 ;;
22513
22514 rdos*)
22515 dynamic_linker=no
22516 ;;
22517
22518 solaris*)
22519 version_type=linux
22520 need_lib_prefix=no
22521 need_version=no
22522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22523 soname_spec='${libname}${release}${shared_ext}$major'
22524 shlibpath_var=LD_LIBRARY_PATH
22525 shlibpath_overrides_runpath=yes
22526 hardcode_into_libs=yes
22527 # ldd complains unless libraries are executable
22528 postinstall_cmds='chmod +x $lib'
22529 ;;
22530
22531 sunos4*)
22532 version_type=sunos
22533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22534 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22535 shlibpath_var=LD_LIBRARY_PATH
22536 shlibpath_overrides_runpath=yes
22537 if test "$with_gnu_ld" = yes; then
22538 need_lib_prefix=no
22539 fi
22540 need_version=yes
22541 ;;
22542
22543 sysv4 | sysv4.3*)
22544 version_type=linux
22545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22546 soname_spec='${libname}${release}${shared_ext}$major'
22547 shlibpath_var=LD_LIBRARY_PATH
22548 case $host_vendor in
22549 sni)
22550 shlibpath_overrides_runpath=no
22551 need_lib_prefix=no
22552 runpath_var=LD_RUN_PATH
22553 ;;
22554 siemens)
22555 need_lib_prefix=no
22556 ;;
22557 motorola)
22558 need_lib_prefix=no
22559 need_version=no
22560 shlibpath_overrides_runpath=no
22561 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22562 ;;
22563 esac
22564 ;;
22565
22566 sysv4*MP*)
22567 if test -d /usr/nec ;then
22568 version_type=linux
22569 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22570 soname_spec='$libname${shared_ext}.$major'
22571 shlibpath_var=LD_LIBRARY_PATH
22572 fi
22573 ;;
22574
22575 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22576 version_type=freebsd-elf
22577 need_lib_prefix=no
22578 need_version=no
22579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22580 soname_spec='${libname}${release}${shared_ext}$major'
22581 shlibpath_var=LD_LIBRARY_PATH
22582 shlibpath_overrides_runpath=yes
22583 hardcode_into_libs=yes
22584 if test "$with_gnu_ld" = yes; then
22585 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22586 else
22587 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22588 case $host_os in
22589 sco3.2v5*)
22590 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22591 ;;
22592 esac
22593 fi
22594 sys_lib_dlsearch_path_spec='/usr/lib'
22595 ;;
22596
22597 tpf*)
22598 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22599 version_type=linux
22600 need_lib_prefix=no
22601 need_version=no
22602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22603 shlibpath_var=LD_LIBRARY_PATH
22604 shlibpath_overrides_runpath=no
22605 hardcode_into_libs=yes
22606 ;;
22607
22608 uts4*)
22609 version_type=linux
22610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22611 soname_spec='${libname}${release}${shared_ext}$major'
22612 shlibpath_var=LD_LIBRARY_PATH
22613 ;;
22614
22615 *)
22616 dynamic_linker=no
22617 ;;
22618 esac
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22620 $as_echo "$dynamic_linker" >&6; }
22621 test "$dynamic_linker" = no && can_build_shared=no
22622
22623 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22624 if test "$GCC" = yes; then
22625 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22626 fi
22627
22628 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22629 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22630 fi
22631 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22632 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22633 fi
22634
22635
22636
22637
22638
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22673 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22674 hardcode_action_CXX=
22675 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22676 test -n "$runpath_var_CXX" ||
22677 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22678
22679 # We can hardcode non-existent directories.
22680 if test "$hardcode_direct_CXX" != no &&
22681 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22682 # have to relink, otherwise we might link with an installed library
22683 # when we should be linking with a yet-to-be-installed one
22684 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22685 test "$hardcode_minus_L_CXX" != no; then
22686 # Linking always hardcodes the temporary library directory.
22687 hardcode_action_CXX=relink
22688 else
22689 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22690 hardcode_action_CXX=immediate
22691 fi
22692 else
22693 # We cannot hardcode anything, or else we can only hardcode existing
22694 # directories.
22695 hardcode_action_CXX=unsupported
22696 fi
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22698 $as_echo "$hardcode_action_CXX" >&6; }
22699
22700 if test "$hardcode_action_CXX" = relink ||
22701 test "$inherit_rpath_CXX" = yes; then
22702 # Fast installation is not supported
22703 enable_fast_install=no
22704 elif test "$shlibpath_overrides_runpath" = yes ||
22705 test "$enable_shared" = no; then
22706 # Fast installation is not necessary
22707 enable_fast_install=needless
22708 fi
22709
22710
22711
22712
22713
22714
22715
22716 fi # test -n "$compiler"
22717
22718 CC=$lt_save_CC
22719 LDCXX=$LD
22720 LD=$lt_save_LD
22721 GCC=$lt_save_GCC
22722 with_gnu_ld=$lt_save_with_gnu_ld
22723 lt_cv_path_LDCXX=$lt_cv_path_LD
22724 lt_cv_path_LD=$lt_save_path_LD
22725 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22726 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22727 fi # test "$_lt_caught_CXX_error" != yes
22728
22729 ac_ext=cpp
22730 ac_cpp='$CXXCPP $CPPFLAGS'
22731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750 # Only expand once:
22751
22752
22753
22754
22755
22756 # Identify the assembler which will work hand-in-glove with the newly
22757 # built GCC, so that we can examine its features. This is the assembler
22758 # which will be driven by the driver program.
22759 #
22760 # If build != host, and we aren't building gas in-tree, we identify a
22761 # build->target assembler and hope that it will have the same features
22762 # as the host->target assembler we'll be using.
22763 gcc_cv_gas_major_version=
22764 gcc_cv_gas_minor_version=
22765 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22766
22767 if ${gcc_cv_as+:} false; then :
22768
22769 else
22770
22771 if test -x "$DEFAULT_ASSEMBLER"; then
22772 gcc_cv_as="$DEFAULT_ASSEMBLER"
22773 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22774 && test -f ../gas/Makefile \
22775 && test x$build = x$host; then
22776 gcc_cv_as=../gas/as-new$build_exeext
22777 elif test -x as$build_exeext; then
22778 # Build using assembler in the current directory.
22779 gcc_cv_as=./as$build_exeext
22780 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22781 gcc_cv_as="$AS_FOR_TARGET"
22782 else
22783 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22784 set dummy $AS_FOR_TARGET; ac_word=$2
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22786 $as_echo_n "checking for $ac_word... " >&6; }
22787 if ${ac_cv_path_gcc_cv_as+:} false; then :
22788 $as_echo_n "(cached) " >&6
22789 else
22790 case $gcc_cv_as in
22791 [\\/]* | ?:[\\/]*)
22792 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22793 ;;
22794 *)
22795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22796 for as_dir in $PATH
22797 do
22798 IFS=$as_save_IFS
22799 test -z "$as_dir" && as_dir=.
22800 for ac_exec_ext in '' $ac_executable_extensions; do
22801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22802 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22804 break 2
22805 fi
22806 done
22807 done
22808 IFS=$as_save_IFS
22809
22810 ;;
22811 esac
22812 fi
22813 gcc_cv_as=$ac_cv_path_gcc_cv_as
22814 if test -n "$gcc_cv_as"; then
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22816 $as_echo "$gcc_cv_as" >&6; }
22817 else
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22819 $as_echo "no" >&6; }
22820 fi
22821
22822
22823 fi
22824 fi
22825
22826 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22827
22828 case "$ORIGINAL_AS_FOR_TARGET" in
22829 ./as | ./as$build_exeext) ;;
22830 *) ac_config_files="$ac_config_files as:exec-tool.in"
22831 ;;
22832 esac
22833
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22835 $as_echo_n "checking what assembler to use... " >&6; }
22836 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22837 # Single tree build which includes gas. We want to prefer it
22838 # over whatever linker top-level may have detected, since
22839 # we'll use what we're building after installation anyway.
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22841 $as_echo "newly built gas" >&6; }
22842 in_tree_gas=yes
22843 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22844 for f in $gcc_cv_as_bfd_srcdir/configure \
22845 $gcc_cv_as_gas_srcdir/configure \
22846 $gcc_cv_as_gas_srcdir/configure.ac \
22847 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22848 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22849 if test x$gcc_cv_gas_version != x; then
22850 break
22851 fi
22852 done
22853 case $gcc_cv_gas_version in
22854 VERSION=[0-9]*) ;;
22855 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22856 esac
22857 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22858 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22859 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22860 case $gcc_cv_gas_patch_version in
22861 "") gcc_cv_gas_patch_version="0" ;;
22862 esac
22863 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22864 + $gcc_cv_gas_minor_version \) \* 1000 \
22865 + $gcc_cv_gas_patch_version`
22866
22867 in_tree_gas_is_elf=no
22868 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22869 || (grep 'obj_format = multi' ../gas/Makefile \
22870 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22871 then
22872 in_tree_gas_is_elf=yes
22873 fi
22874 else
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22876 $as_echo "$gcc_cv_as" >&6; }
22877 in_tree_gas=no
22878 fi
22879
22880 default_ld=
22881 # Check whether --enable-ld was given.
22882 if test "${enable_ld+set}" = set; then :
22883 enableval=$enable_ld; case "${enableval}" in
22884 no)
22885 default_ld=ld.gold
22886 ;;
22887 esac
22888 fi
22889
22890
22891 install_gold_as_default=no
22892 # Check whether --enable-gold was given.
22893 if test "${enable_gold+set}" = set; then :
22894 enableval=$enable_gold; case "${enableval}" in
22895 default)
22896 install_gold_as_default=yes
22897 ;;
22898 yes)
22899 if test x${default_ld} != x; then
22900 install_gold_as_default=yes
22901 fi
22902 ;;
22903 no)
22904 ;;
22905 *)
22906 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22907 ;;
22908 esac
22909 fi
22910
22911
22912 # Identify the linker which will work hand-in-glove with the newly
22913 # built GCC, so that we can examine its features. This is the linker
22914 # which will be driven by the driver program.
22915 #
22916 # If build != host, and we aren't building gas in-tree, we identify a
22917 # build->target linker and hope that it will have the same features
22918 # as the host->target linker we'll be using.
22919 gcc_cv_gld_major_version=
22920 gcc_cv_gld_minor_version=
22921 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22922 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22923 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22924
22925 if ${gcc_cv_ld+:} false; then :
22926
22927 else
22928
22929 if test -x "$DEFAULT_LINKER"; then
22930 gcc_cv_ld="$DEFAULT_LINKER"
22931 elif test $install_gold_as_default = yes \
22932 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22933 && test -f ../gold/Makefile \
22934 && test x$build = x$host; then
22935 gcc_cv_ld=../gold/ld-new$build_exeext
22936 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22937 && test -f ../ld/Makefile \
22938 && test x$build = x$host; then
22939 gcc_cv_ld=../ld/ld-new$build_exeext
22940 elif test -x collect-ld$build_exeext; then
22941 # Build using linker in the current directory.
22942 gcc_cv_ld=./collect-ld$build_exeext
22943 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22944 gcc_cv_ld="$LD_FOR_TARGET"
22945 else
22946 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22947 set dummy $LD_FOR_TARGET; ac_word=$2
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22949 $as_echo_n "checking for $ac_word... " >&6; }
22950 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22951 $as_echo_n "(cached) " >&6
22952 else
22953 case $gcc_cv_ld in
22954 [\\/]* | ?:[\\/]*)
22955 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22956 ;;
22957 *)
22958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22959 for as_dir in $PATH
22960 do
22961 IFS=$as_save_IFS
22962 test -z "$as_dir" && as_dir=.
22963 for ac_exec_ext in '' $ac_executable_extensions; do
22964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22965 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22967 break 2
22968 fi
22969 done
22970 done
22971 IFS=$as_save_IFS
22972
22973 ;;
22974 esac
22975 fi
22976 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22977 if test -n "$gcc_cv_ld"; then
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22979 $as_echo "$gcc_cv_ld" >&6; }
22980 else
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22982 $as_echo "no" >&6; }
22983 fi
22984
22985
22986 fi
22987 fi
22988
22989 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22990 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22991 # if the PLUGIN_LD is set ld-new, just have it as ld
22992 # as that is the installed named.
22993 if test x$PLUGIN_LD_SUFFIX = xld-new \
22994 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22995 PLUGIN_LD_SUFFIX=ld
22996 fi
22997
22998 # Check whether --with-plugin-ld was given.
22999 if test "${with_plugin_ld+set}" = set; then :
23000 withval=$with_plugin_ld; if test x"$withval" != x; then
23001 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23002 PLUGIN_LD_SUFFIX="$withval"
23003 fi
23004 fi
23005
23006
23007
23008 cat >>confdefs.h <<_ACEOF
23009 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23010 _ACEOF
23011
23012
23013 # Check to see if we are using gold instead of ld
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23015 $as_echo_n "checking whether we are using gold... " >&6; }
23016 ld_is_gold=no
23017 if test x$gcc_cv_ld != x; then
23018 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23019 | grep "GNU gold" > /dev/null; then
23020 ld_is_gold=yes
23021 fi
23022 fi
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23024 $as_echo "$ld_is_gold" >&6; }
23025
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23027 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23028 # Check to see if default ld is not gold, but gold is
23029 # available and has support for split stack. If gcc was configured
23030 # with gold then no checking is done.
23031 #
23032 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23033
23034 # For platforms other than powerpc64*, enable as appropriate.
23035
23036 gold_non_default=no
23037 ld_gold=`which ${gcc_cv_ld}.gold`
23038 # Make sure this gold has minimal split stack support
23039 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23040 ld_vers=`$ld_gold --version | sed 1q`
23041 gold_vers=`echo $ld_vers | sed -n \
23042 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23043 case $target in
23044 # check that the gold version contains the complete split stack support
23045 # on powerpc64 big and little endian
23046 powerpc64*-*-*)
23047 case "$gold_vers" in
23048 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23049 ;;
23050 *) gold_non_default=no
23051 ;;
23052 esac
23053 ;;
23054 esac
23055 fi
23056 if test $gold_non_default = yes; then
23057
23058 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23059
23060 fi
23061 fi
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23063 $as_echo "$gold_non_default" >&6; }
23064
23065 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23066
23067 case "$ORIGINAL_LD_FOR_TARGET" in
23068 ./collect-ld | ./collect-ld$build_exeext) ;;
23069 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23070 ;;
23071 esac
23072
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23074 $as_echo_n "checking what linker to use... " >&6; }
23075 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23076 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23077 # Single tree build which includes ld. We want to prefer it
23078 # over whatever linker top-level may have detected, since
23079 # we'll use what we're building after installation anyway.
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23081 $as_echo "newly built ld" >&6; }
23082 in_tree_ld=yes
23083 in_tree_ld_is_elf=no
23084 if (grep 'EMUL = .*elf' ../ld/Makefile \
23085 || grep 'EMUL = .*linux' ../ld/Makefile \
23086 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23087 in_tree_ld_is_elf=yes
23088 elif test "$ld_is_gold" = yes; then
23089 in_tree_ld_is_elf=yes
23090 fi
23091 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
23092 do
23093 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23094 if test x$gcc_cv_gld_version != x; then
23095 break
23096 fi
23097 done
23098 case $gcc_cv_gld_version in
23099 VERSION=[0-9]*) ;;
23100 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23101 esac
23102 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23103 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23104 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23105 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23106 else
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23108 $as_echo "$gcc_cv_ld" >&6; }
23109 in_tree_ld=no
23110 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23111 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23112 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23113 fi
23114
23115
23116
23117
23118 # Figure out what nm we will be using.
23119 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23120 if ${gcc_cv_nm+:} false; then :
23121
23122 else
23123
23124 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23125 && test -f ../binutils/Makefile \
23126 && test x$build = x$host; then
23127 gcc_cv_nm=../binutils/nm-new$build_exeext
23128 elif test -x nm$build_exeext; then
23129 gcc_cv_nm=./nm$build_exeext
23130 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23131 gcc_cv_nm="$NM_FOR_TARGET"
23132 else
23133 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23134 set dummy $NM_FOR_TARGET; ac_word=$2
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23136 $as_echo_n "checking for $ac_word... " >&6; }
23137 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23138 $as_echo_n "(cached) " >&6
23139 else
23140 case $gcc_cv_nm in
23141 [\\/]* | ?:[\\/]*)
23142 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23143 ;;
23144 *)
23145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23146 for as_dir in $PATH
23147 do
23148 IFS=$as_save_IFS
23149 test -z "$as_dir" && as_dir=.
23150 for ac_exec_ext in '' $ac_executable_extensions; do
23151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23152 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23154 break 2
23155 fi
23156 done
23157 done
23158 IFS=$as_save_IFS
23159
23160 ;;
23161 esac
23162 fi
23163 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23164 if test -n "$gcc_cv_nm"; then
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23166 $as_echo "$gcc_cv_nm" >&6; }
23167 else
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23169 $as_echo "no" >&6; }
23170 fi
23171
23172
23173 fi
23174 fi
23175
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23177 $as_echo_n "checking what nm to use... " >&6; }
23178 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23179 # Single tree build which includes binutils.
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23181 $as_echo "newly built nm" >&6; }
23182 in_tree_nm=yes
23183 else
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23185 $as_echo "$gcc_cv_nm" >&6; }
23186 in_tree_nm=no
23187 fi
23188
23189 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23190
23191 case "$ORIGINAL_NM_FOR_TARGET" in
23192 ./nm | ./nm$build_exeext) ;;
23193 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23194 ;;
23195 esac
23196
23197
23198 # Figure out what objdump we will be using.
23199 if ${gcc_cv_objdump+:} false; then :
23200
23201 else
23202
23203 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23204 && test -f ../binutils/Makefile \
23205 && test x$build = x$host; then
23206 # Single tree build which includes binutils.
23207 gcc_cv_objdump=../binutils/objdump$build_exeext
23208 elif test -x objdump$build_exeext; then
23209 gcc_cv_objdump=./objdump$build_exeext
23210 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23211 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23212 else
23213 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23214 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23216 $as_echo_n "checking for $ac_word... " >&6; }
23217 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23218 $as_echo_n "(cached) " >&6
23219 else
23220 case $gcc_cv_objdump in
23221 [\\/]* | ?:[\\/]*)
23222 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23223 ;;
23224 *)
23225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23226 for as_dir in $PATH
23227 do
23228 IFS=$as_save_IFS
23229 test -z "$as_dir" && as_dir=.
23230 for ac_exec_ext in '' $ac_executable_extensions; do
23231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23232 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23234 break 2
23235 fi
23236 done
23237 done
23238 IFS=$as_save_IFS
23239
23240 ;;
23241 esac
23242 fi
23243 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23244 if test -n "$gcc_cv_objdump"; then
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23246 $as_echo "$gcc_cv_objdump" >&6; }
23247 else
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23249 $as_echo "no" >&6; }
23250 fi
23251
23252
23253 fi
23254 fi
23255
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23257 $as_echo_n "checking what objdump to use... " >&6; }
23258 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23259 # Single tree build which includes binutils.
23260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23261 $as_echo "newly built objdump" >&6; }
23262 elif test x$gcc_cv_objdump = x; then
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23264 $as_echo "not found" >&6; }
23265 else
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23267 $as_echo "$gcc_cv_objdump" >&6; }
23268 fi
23269
23270 # Figure out what readelf we will be using.
23271 if ${gcc_cv_readelf+:} false; then :
23272
23273 else
23274
23275 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23276 && test -f ../binutils/Makefile \
23277 && test x$build = x$host; then
23278 # Single tree build which includes binutils.
23279 gcc_cv_readelf=../binutils/readelf$build_exeext
23280 elif test -x readelf$build_exeext; then
23281 gcc_cv_readelf=./readelf$build_exeext
23282 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23283 gcc_cv_readelf="$READELF_FOR_TARGET"
23284 else
23285 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23286 set dummy $READELF_FOR_TARGET; ac_word=$2
23287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23288 $as_echo_n "checking for $ac_word... " >&6; }
23289 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23290 $as_echo_n "(cached) " >&6
23291 else
23292 case $gcc_cv_readelf in
23293 [\\/]* | ?:[\\/]*)
23294 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23295 ;;
23296 *)
23297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23298 for as_dir in $PATH
23299 do
23300 IFS=$as_save_IFS
23301 test -z "$as_dir" && as_dir=.
23302 for ac_exec_ext in '' $ac_executable_extensions; do
23303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23304 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23306 break 2
23307 fi
23308 done
23309 done
23310 IFS=$as_save_IFS
23311
23312 ;;
23313 esac
23314 fi
23315 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23316 if test -n "$gcc_cv_readelf"; then
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23318 $as_echo "$gcc_cv_readelf" >&6; }
23319 else
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23321 $as_echo "no" >&6; }
23322 fi
23323
23324
23325 fi
23326 fi
23327
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23329 $as_echo_n "checking what readelf to use... " >&6; }
23330 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23331 # Single tree build which includes binutils.
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23333 $as_echo "newly built readelf" >&6; }
23334 elif test x$gcc_cv_readelf = x; then
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23336 $as_echo "not found" >&6; }
23337 else
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23339 $as_echo "$gcc_cv_readelf" >&6; }
23340 fi
23341
23342 # Figure out what otool we will be using.
23343 if ${gcc_cv_otool+:} false; then :
23344
23345 else
23346
23347 if test -x otool$build_exeext; then
23348 gcc_cv_otool=./otool$build_exeext
23349 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23350 gcc_cv_otool="$OTOOL_FOR_TARGET"
23351 else
23352 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23353 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23355 $as_echo_n "checking for $ac_word... " >&6; }
23356 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23357 $as_echo_n "(cached) " >&6
23358 else
23359 case $gcc_cv_otool in
23360 [\\/]* | ?:[\\/]*)
23361 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23362 ;;
23363 *)
23364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23365 for as_dir in $PATH
23366 do
23367 IFS=$as_save_IFS
23368 test -z "$as_dir" && as_dir=.
23369 for ac_exec_ext in '' $ac_executable_extensions; do
23370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23371 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23373 break 2
23374 fi
23375 done
23376 done
23377 IFS=$as_save_IFS
23378
23379 ;;
23380 esac
23381 fi
23382 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23383 if test -n "$gcc_cv_otool"; then
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23385 $as_echo "$gcc_cv_otool" >&6; }
23386 else
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23388 $as_echo "no" >&6; }
23389 fi
23390
23391
23392 fi
23393 fi
23394
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23396 $as_echo_n "checking what otool to use... " >&6; }
23397 if test x$gcc_cv_otool = x; then
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23399 $as_echo "not found" >&6; }
23400 else
23401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23402 $as_echo "$gcc_cv_otool" >&6; }
23403 fi
23404
23405 # Figure out what assembler alignment features are present.
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23407 $as_echo_n "checking assembler flags... " >&6; }
23408 if ${gcc_cv_as_flags+:} false; then :
23409 $as_echo_n "(cached) " >&6
23410 else
23411 case "$target" in
23412 i[34567]86-*-linux*)
23413 gcc_cv_as_flags=--32
23414 ;;
23415 x86_64-*-linux-gnux32)
23416 gcc_cv_as_flags=--x32
23417 ;;
23418 x86_64-*-linux*)
23419 gcc_cv_as_flags=--64
23420 ;;
23421 powerpc*-*-darwin*)
23422 gcc_cv_as_flags="-arch ppc"
23423 ;;
23424 *)
23425 gcc_cv_as_flags=" "
23426 ;;
23427 esac
23428 fi
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23430 $as_echo "$gcc_cv_as_flags" >&6; }
23431
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23433 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23434 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23435 $as_echo_n "(cached) " >&6
23436 else
23437 gcc_cv_as_balign_and_p2align=no
23438 if test $in_tree_gas = yes; then
23439 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23440 then gcc_cv_as_balign_and_p2align=yes
23441 fi
23442 elif test x$gcc_cv_as != x; then
23443 $as_echo '.balign 4
23444 .p2align 2' > conftest.s
23445 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23447 (eval $ac_try) 2>&5
23448 ac_status=$?
23449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23450 test $ac_status = 0; }; }
23451 then
23452 gcc_cv_as_balign_and_p2align=yes
23453 else
23454 echo "configure: failed program was" >&5
23455 cat conftest.s >&5
23456 fi
23457 rm -f conftest.o conftest.s
23458 fi
23459 fi
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23461 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23462 if test $gcc_cv_as_balign_and_p2align = yes; then
23463
23464 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23465
23466 fi
23467
23468
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23470 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23471 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23472 $as_echo_n "(cached) " >&6
23473 else
23474 gcc_cv_as_max_skip_p2align=no
23475 if test $in_tree_gas = yes; then
23476 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23477 then gcc_cv_as_max_skip_p2align=yes
23478 fi
23479 elif test x$gcc_cv_as != x; then
23480 $as_echo '.p2align 4,,7' > conftest.s
23481 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23483 (eval $ac_try) 2>&5
23484 ac_status=$?
23485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23486 test $ac_status = 0; }; }
23487 then
23488 gcc_cv_as_max_skip_p2align=yes
23489 else
23490 echo "configure: failed program was" >&5
23491 cat conftest.s >&5
23492 fi
23493 rm -f conftest.o conftest.s
23494 fi
23495 fi
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23497 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23498 if test $gcc_cv_as_max_skip_p2align = yes; then
23499
23500 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23501
23502 fi
23503
23504
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23506 $as_echo_n "checking assembler for .literal16... " >&6; }
23507 if ${gcc_cv_as_literal16+:} false; then :
23508 $as_echo_n "(cached) " >&6
23509 else
23510 gcc_cv_as_literal16=no
23511 if test $in_tree_gas = yes; then
23512 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23513 then gcc_cv_as_literal16=yes
23514 fi
23515 elif test x$gcc_cv_as != x; then
23516 $as_echo '.literal16' > conftest.s
23517 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23519 (eval $ac_try) 2>&5
23520 ac_status=$?
23521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23522 test $ac_status = 0; }; }
23523 then
23524 gcc_cv_as_literal16=yes
23525 else
23526 echo "configure: failed program was" >&5
23527 cat conftest.s >&5
23528 fi
23529 rm -f conftest.o conftest.s
23530 fi
23531 fi
23532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23533 $as_echo "$gcc_cv_as_literal16" >&6; }
23534 if test $gcc_cv_as_literal16 = yes; then
23535
23536 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23537
23538 fi
23539
23540
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23542 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23543 if ${gcc_cv_as_subsection_m1+:} false; then :
23544 $as_echo_n "(cached) " >&6
23545 else
23546 gcc_cv_as_subsection_m1=no
23547 if test $in_tree_gas = yes; then
23548 if test $in_tree_gas_is_elf = yes \
23549 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23550 then gcc_cv_as_subsection_m1=yes
23551 fi
23552 elif test x$gcc_cv_as != x; then
23553 $as_echo 'conftest_label1: .word 0
23554 .subsection -1
23555 conftest_label2: .word 0
23556 .previous' > conftest.s
23557 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23559 (eval $ac_try) 2>&5
23560 ac_status=$?
23561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23562 test $ac_status = 0; }; }
23563 then
23564 if test x$gcc_cv_nm != x; then
23565 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23566 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23567 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23568 then :
23569 else gcc_cv_as_subsection_m1=yes
23570 fi
23571 rm -f conftest.nm1 conftest.nm2
23572 fi
23573 else
23574 echo "configure: failed program was" >&5
23575 cat conftest.s >&5
23576 fi
23577 rm -f conftest.o conftest.s
23578 fi
23579 fi
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23581 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23582 if test $gcc_cv_as_subsection_m1 = yes; then
23583
23584 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23585
23586 fi
23587
23588
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23590 $as_echo_n "checking assembler for .weak... " >&6; }
23591 if ${gcc_cv_as_weak+:} false; then :
23592 $as_echo_n "(cached) " >&6
23593 else
23594 gcc_cv_as_weak=no
23595 if test $in_tree_gas = yes; then
23596 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23597 then gcc_cv_as_weak=yes
23598 fi
23599 elif test x$gcc_cv_as != x; then
23600 $as_echo ' .weak foobar' > conftest.s
23601 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23603 (eval $ac_try) 2>&5
23604 ac_status=$?
23605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23606 test $ac_status = 0; }; }
23607 then
23608 gcc_cv_as_weak=yes
23609 else
23610 echo "configure: failed program was" >&5
23611 cat conftest.s >&5
23612 fi
23613 rm -f conftest.o conftest.s
23614 fi
23615 fi
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23617 $as_echo "$gcc_cv_as_weak" >&6; }
23618 if test $gcc_cv_as_weak = yes; then
23619
23620 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23621
23622 fi
23623
23624
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23626 $as_echo_n "checking assembler for .weakref... " >&6; }
23627 if ${gcc_cv_as_weakref+:} false; then :
23628 $as_echo_n "(cached) " >&6
23629 else
23630 gcc_cv_as_weakref=no
23631 if test $in_tree_gas = yes; then
23632 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23633 then gcc_cv_as_weakref=yes
23634 fi
23635 elif test x$gcc_cv_as != x; then
23636 $as_echo ' .weakref foobar, barfnot' > conftest.s
23637 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23639 (eval $ac_try) 2>&5
23640 ac_status=$?
23641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23642 test $ac_status = 0; }; }
23643 then
23644 gcc_cv_as_weakref=yes
23645 else
23646 echo "configure: failed program was" >&5
23647 cat conftest.s >&5
23648 fi
23649 rm -f conftest.o conftest.s
23650 fi
23651 fi
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23653 $as_echo "$gcc_cv_as_weakref" >&6; }
23654 if test $gcc_cv_as_weakref = yes; then
23655
23656 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23657
23658 fi
23659
23660
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23662 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23663 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23664 $as_echo_n "(cached) " >&6
23665 else
23666 gcc_cv_as_nsubspa_comdat=no
23667 if test $in_tree_gas = yes; then
23668 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23669 then gcc_cv_as_nsubspa_comdat=yes
23670 fi
23671 elif test x$gcc_cv_as != x; then
23672 $as_echo ' .SPACE $TEXT$
23673 .NSUBSPA $CODE$,COMDAT' > conftest.s
23674 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23676 (eval $ac_try) 2>&5
23677 ac_status=$?
23678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23679 test $ac_status = 0; }; }
23680 then
23681 gcc_cv_as_nsubspa_comdat=yes
23682 else
23683 echo "configure: failed program was" >&5
23684 cat conftest.s >&5
23685 fi
23686 rm -f conftest.o conftest.s
23687 fi
23688 fi
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23690 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23691 if test $gcc_cv_as_nsubspa_comdat = yes; then
23692
23693 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23694
23695 fi
23696
23697
23698 # .hidden needs to be supported in both the assembler and the linker,
23699 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23700 # This is irritatingly difficult to feature test for; we have to check the
23701 # date string after the version number. If we've got an in-tree
23702 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23703 # to be safe.
23704 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23705 case "${target}" in
23706 *-*-aix*)
23707 conftest_s=' .globl foobar,hidden'
23708 ;;
23709 *)
23710 conftest_s=' .hidden foobar
23711 foobar:'
23712 ;;
23713 esac
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23715 $as_echo_n "checking assembler for .hidden... " >&6; }
23716 if ${gcc_cv_as_hidden+:} false; then :
23717 $as_echo_n "(cached) " >&6
23718 else
23719 gcc_cv_as_hidden=no
23720 if test $in_tree_gas = yes; then
23721 if test $in_tree_gas_is_elf = yes \
23722 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23723 then gcc_cv_as_hidden=yes
23724 fi
23725 elif test x$gcc_cv_as != x; then
23726 $as_echo "$conftest_s" > conftest.s
23727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23729 (eval $ac_try) 2>&5
23730 ac_status=$?
23731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23732 test $ac_status = 0; }; }
23733 then
23734 gcc_cv_as_hidden=yes
23735 else
23736 echo "configure: failed program was" >&5
23737 cat conftest.s >&5
23738 fi
23739 rm -f conftest.o conftest.s
23740 fi
23741 fi
23742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23743 $as_echo "$gcc_cv_as_hidden" >&6; }
23744
23745
23746 case "${target}" in
23747 *-*-darwin*)
23748 # Darwin as has some visibility support, though with a different syntax.
23749 gcc_cv_as_hidden=yes
23750 ;;
23751 esac
23752
23753 # gnu_indirect_function type is an extension proposed at
23754 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23755 # selection of function implementation
23756 # Check whether --enable-gnu-indirect-function was given.
23757 if test "${enable_gnu_indirect_function+set}" = set; then :
23758 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23759 yes | no) ;;
23760 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23761 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23762 esac
23763 else
23764 enable_gnu_indirect_function="$default_gnu_indirect_function"
23765 fi
23766
23767
23768 case "${target}" in
23769 riscv*-*-linux*)
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
23771 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
23772 cat > conftest.s <<EOF
23773 .text
23774 .type foo_resolver, @function
23775 foo_resolver:
23776 ret
23777 .size foo_resolver, .-foo_resolver
23778
23779 .globl foo
23780 .type foo, %gnu_indirect_function
23781 .set foo, foo_resolver
23782
23783 .globl bar
23784 .type bar, @function
23785 bar:
23786 call foo
23787 ret
23788 .size bar, .-bar
23789 EOF
23790 if test x$gcc_cv_as != x \
23791 && test x$gcc_cv_ld != x \
23792 && test x$gcc_cv_readelf != x \
23793 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23794 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23795 && $gcc_cv_readelf --relocs --wide conftest \
23796 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
23797 enable_gnu_indirect_function=yes
23798 fi
23799 rm -f conftest conftest.o conftest.s
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
23801 $as_echo "$enable_gnu_indirect_function" >&6; }
23802 ;;
23803 esac
23804
23805 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23806
23807 cat >>confdefs.h <<_ACEOF
23808 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23809 _ACEOF
23810
23811
23812
23813 if test $in_tree_ld != yes ; then
23814 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23815 if echo "$ld_ver" | grep GNU > /dev/null; then
23816 if test x"$ld_is_gold" = xyes; then
23817 # GNU gold --version looks like this:
23818 #
23819 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23820 #
23821 # We extract the binutils version which is more familiar and specific
23822 # than the gold version.
23823 ld_vers=`echo $ld_ver | sed -n \
23824 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23825 else
23826 # GNU ld --version looks like this:
23827 #
23828 # GNU ld (GNU Binutils) 2.21.51.20110225
23829 ld_vers=`echo $ld_ver | sed -n \
23830 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23831 fi
23832 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'`
23833 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23834 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23835 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23836 else
23837 case "${target}" in
23838 *-*-solaris2*)
23839 # Solaris 2 ld -V output looks like this for a regular version:
23840 #
23841 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23842 #
23843 # but test versions add stuff at the end:
23844 #
23845 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23846 #
23847 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23848 # numbers can be used in ld.so.1 feature checks even if a different
23849 # linker is configured.
23850 ld_ver=`$gcc_cv_ld -V 2>&1`
23851 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23852 ld_vers=`echo $ld_ver | sed -n \
23853 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23854 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23855 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23856 fi
23857 ;;
23858 esac
23859 fi
23860 fi
23861
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23863 $as_echo_n "checking linker for .hidden support... " >&6; }
23864 if ${gcc_cv_ld_hidden+:} false; then :
23865 $as_echo_n "(cached) " >&6
23866 else
23867 if test $in_tree_ld = yes ; then
23868 gcc_cv_ld_hidden=no
23869 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 \
23870 && test $in_tree_ld_is_elf = yes; then
23871 gcc_cv_ld_hidden=yes
23872 fi
23873 else
23874 gcc_cv_ld_hidden=yes
23875 if test x"$ld_is_gold" = xyes; then
23876 :
23877 elif echo "$ld_ver" | grep GNU > /dev/null; then
23878 if test 0"$ld_date" -lt 20020404; then
23879 if test -n "$ld_date"; then
23880 # If there was date string, but was earlier than 2002-04-04, fail
23881 gcc_cv_ld_hidden=no
23882 elif test -z "$ld_vers"; then
23883 # If there was no date string nor ld version number, something is wrong
23884 gcc_cv_ld_hidden=no
23885 else
23886 test -z "$ld_vers_patch" && ld_vers_patch=0
23887 if test "$ld_vers_major" -lt 2; then
23888 gcc_cv_ld_hidden=no
23889 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23890 gcc_cv_ld_hidden="no"
23891 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23892 gcc_cv_ld_hidden=no
23893 fi
23894 fi
23895 fi
23896 else
23897 case "${target}" in
23898 *-*-aix[789]*)
23899 gcc_cv_ld_hidden=yes
23900 ;;
23901 *-*-darwin*)
23902 # Darwin ld has some visibility support.
23903 gcc_cv_ld_hidden=yes
23904 ;;
23905 hppa64*-*-hpux* | ia64*-*-hpux*)
23906 gcc_cv_ld_hidden=yes
23907 ;;
23908 *-*-solaris2*)
23909 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23910 # .symbolic was only added in Solaris 9 12/02.
23911 gcc_cv_ld_hidden=yes
23912 ;;
23913 *)
23914 gcc_cv_ld_hidden=no
23915 ;;
23916 esac
23917 fi
23918 fi
23919 fi
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23921 $as_echo "$gcc_cv_ld_hidden" >&6; }
23922 libgcc_visibility=no
23923
23924
23925 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23926 libgcc_visibility=yes
23927
23928 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23929
23930 fi
23931
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23933 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23934 gcc_cv_ld_ro_rw_mix=unknown
23935 if test $in_tree_ld = yes ; then
23936 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 \
23937 && test $in_tree_ld_is_elf = yes; then
23938 gcc_cv_ld_ro_rw_mix=read-write
23939 fi
23940 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23941 echo '.section myfoosect, "a"' > conftest1.s
23942 echo '.section myfoosect, "aw"' > conftest2.s
23943 echo '.byte 1' >> conftest2.s
23944 echo '.section myfoosect, "a"' > conftest3.s
23945 echo '.byte 0' >> conftest3.s
23946 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23947 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23948 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23949 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23950 conftest2.o conftest3.o > /dev/null 2>&1; then
23951 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23952 | sed -e '/myfoosect/!d' -e N`
23953 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23954 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23955 gcc_cv_ld_ro_rw_mix=read-only
23956 else
23957 gcc_cv_ld_ro_rw_mix=read-write
23958 fi
23959 fi
23960 fi
23961 rm -f conftest.* conftest[123].*
23962 fi
23963 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23964
23965 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23966
23967 fi
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23969 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23970
23971 # Check whether --enable-initfini-array was given.
23972 if test "${enable_initfini_array+set}" = set; then :
23973 enableval=$enable_initfini_array;
23974 else
23975
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23977 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23978 if ${gcc_cv_initfini_array+:} false; then :
23979 $as_echo_n "(cached) " >&6
23980 else
23981 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23982 case "${target}" in
23983 ia64-*)
23984 if test "$cross_compiling" = yes; then :
23985 gcc_cv_initfini_array=no
23986 else
23987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23988 /* end confdefs.h. */
23989
23990 #ifndef __ELF__
23991 #error Not an ELF OS
23992 #endif
23993 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23994 if it can be used. */
23995 static int x = -1;
23996 int main (void) { return x; }
23997 int foo (void) { x = 0; }
23998 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23999
24000 _ACEOF
24001 if ac_fn_cxx_try_run "$LINENO"; then :
24002 gcc_cv_initfini_array=yes
24003 else
24004 gcc_cv_initfini_array=no
24005 fi
24006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24007 conftest.$ac_objext conftest.beam conftest.$ac_ext
24008 fi
24009 ;;
24010 *)
24011 gcc_cv_initfini_array=no
24012 if test $in_tree_ld = yes ; then
24013 if test "$gcc_cv_gld_major_version" -eq 2 \
24014 -a "$gcc_cv_gld_minor_version" -ge 22 \
24015 -o "$gcc_cv_gld_major_version" -gt 2 \
24016 && test $in_tree_ld_is_elf = yes; then
24017 gcc_cv_initfini_array=yes
24018 fi
24019 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24020 case $target:$gas in
24021 *:yes)
24022 sh_flags='"a"'
24023 sh_type='%progbits'
24024 ;;
24025 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24026 sh_flags='"a"'
24027 sh_type='@progbits'
24028 ;;
24029 sparc*-*-solaris2*:no)
24030 sh_flags='#alloc'
24031 sh_type='#progbits'
24032 sh_quote='"'
24033 ;;
24034 esac
24035 case "$target:$gnu_ld" in
24036 *:yes)
24037 cat > conftest.s <<EOF
24038 .section .dtors,$sh_flags,$sh_type
24039 .balign 4
24040 .byte 'A', 'A', 'A', 'A'
24041 .section .ctors,$sh_flags,$sh_type
24042 .balign 4
24043 .byte 'B', 'B', 'B', 'B'
24044 .section .fini_array.65530,$sh_flags,$sh_type
24045 .balign 4
24046 .byte 'C', 'C', 'C', 'C'
24047 .section .init_array.65530,$sh_flags,$sh_type
24048 .balign 4
24049 .byte 'D', 'D', 'D', 'D'
24050 .section .dtors.64528,$sh_flags,$sh_type
24051 .balign 4
24052 .byte 'E', 'E', 'E', 'E'
24053 .section .ctors.64528,$sh_flags,$sh_type
24054 .balign 4
24055 .byte 'F', 'F', 'F', 'F'
24056 .section .fini_array.01005,$sh_flags,$sh_type
24057 .balign 4
24058 .byte 'G', 'G', 'G', 'G'
24059 .section .init_array.01005,$sh_flags,$sh_type
24060 .balign 4
24061 .byte 'H', 'H', 'H', 'H'
24062 .text
24063 .globl _start
24064 _start:
24065 EOF
24066 if $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_objdump -s -j .init_array conftest \
24069 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24070 && $gcc_cv_objdump -s -j .fini_array conftest \
24071 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24072 gcc_cv_initfini_array=yes
24073 fi
24074 ;;
24075 *-*-solaris2*:no)
24076 # When Solaris ld added constructor priority support, it was
24077 # decided to only handle .init_array.N/.fini_array.N since
24078 # there was no need for backwards compatibility with
24079 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24080 # sections with correct execution order resp. to
24081 # .init_array/.fini_array, while gld merges them into
24082 # .init_array/.fini_array.
24083 cat > conftest.s <<EOF
24084 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24085 .align 4
24086 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24087 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24088 .align 4
24089 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24090 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24091 .align 4
24092 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24093 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24094 .align 4
24095 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24096 .text
24097 .globl _start
24098 _start:
24099 EOF
24100 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24101 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24102 && $gcc_cv_objdump -s -j .init_array conftest \
24103 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24104 && $gcc_cv_objdump -s -j .fini_array conftest \
24105 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24106 gcc_cv_initfini_array=yes
24107 fi
24108 ;;
24109 esac
24110 rm -f conftest conftest.*
24111 fi
24112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24113 /* end confdefs.h. */
24114
24115 #ifndef __ELF__
24116 # error Not an ELF OS
24117 #endif
24118 #include <stdlib.h>
24119 #if defined __GLIBC_PREREQ
24120 # if __GLIBC_PREREQ (2, 4)
24121 # else
24122 # error GLIBC 2.4 required
24123 # endif
24124 #else
24125 # if defined __sun__ && defined __svr4__
24126 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24127 # else
24128 # error The C library not known to support .init_array/.fini_array
24129 # endif
24130 #endif
24131
24132 _ACEOF
24133 if ac_fn_cxx_try_cpp "$LINENO"; then :
24134
24135 else
24136 gcc_cv_initfini_array=no
24137 fi
24138 rm -f conftest.err conftest.i conftest.$ac_ext;;
24139 esac
24140 else
24141 case "${target}" in
24142 aarch64*-linux-gnu*)
24143 # AArch64 postdates glibc support for .init_array/.fini_array,
24144 # so we don't need the preprocessor test above.
24145 gcc_cv_initfini_array=yes
24146 ;;
24147
24148 *)
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24150 $as_echo_n "checking cross compile... guessing... " >&6; }
24151 gcc_cv_initfini_array=no
24152 ;;
24153 esac
24154 fi
24155 fi
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24157 $as_echo "$gcc_cv_initfini_array" >&6; }
24158 enable_initfini_array=$gcc_cv_initfini_array
24159
24160 fi
24161
24162
24163 cat >>confdefs.h <<_ACEOF
24164 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24165 _ACEOF
24166
24167
24168
24169 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24170 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24171 # these directives, even when they appear to accept them.
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24173 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24174 if ${gcc_cv_as_leb128+:} false; then :
24175 $as_echo_n "(cached) " >&6
24176 else
24177 gcc_cv_as_leb128=no
24178 if test $in_tree_gas = yes; then
24179 if test $in_tree_gas_is_elf = yes \
24180 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24181 then gcc_cv_as_leb128=yes
24182 fi
24183 elif test x$gcc_cv_as != x; then
24184 $as_echo ' .data
24185 .uleb128 L2 - L1
24186 L1:
24187 .uleb128 1280
24188 .sleb128 -1010
24189 L2:
24190 .uleb128 0x8000000000000000
24191 ' > conftest.s
24192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24194 (eval $ac_try) 2>&5
24195 ac_status=$?
24196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24197 test $ac_status = 0; }; }
24198 then
24199
24200 if test "x$gcc_cv_objdump" != x; then
24201 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24202 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24203 gcc_cv_as_leb128=yes
24204 fi
24205 elif test "x$gcc_cv_otool" != x; then
24206 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24207 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24208 gcc_cv_as_leb128=yes
24209 fi
24210 else
24211 # play safe, assume the assembler is broken.
24212 :
24213 fi
24214
24215 else
24216 echo "configure: failed program was" >&5
24217 cat conftest.s >&5
24218 fi
24219 rm -f conftest.o conftest.s
24220 fi
24221 fi
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24223 $as_echo "$gcc_cv_as_leb128" >&6; }
24224 if test $gcc_cv_as_leb128 = yes; then
24225
24226 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24227
24228 fi
24229 if test $gcc_cv_as_leb128 != yes; then
24230
24231 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24232
24233 fi
24234
24235 # Determine if an .eh_frame section is read-only.
24236 gcc_fn_eh_frame_ro () {
24237 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24238 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24239 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24240 }
24241
24242 # Check if we have assembler support for unwind directives.
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24244 $as_echo_n "checking assembler for cfi directives... " >&6; }
24245 if ${gcc_cv_as_cfi_directive+:} false; then :
24246 $as_echo_n "(cached) " >&6
24247 else
24248 gcc_cv_as_cfi_directive=no
24249 if test x$gcc_cv_as != x; then
24250 $as_echo ' .text
24251 .cfi_startproc
24252 .cfi_offset 0, 0
24253 .cfi_same_value 1
24254 .cfi_def_cfa 1, 2
24255 .cfi_escape 1, 2, 3, 4, 5
24256 .cfi_endproc' > conftest.s
24257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24259 (eval $ac_try) 2>&5
24260 ac_status=$?
24261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24262 test $ac_status = 0; }; }
24263 then
24264 case "$target" in
24265 *-*-solaris*)
24266 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24267 # read-only and read-write sections, we need to make sure that the
24268 # assembler used emits read-write .eh_frame sections.
24269 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24270 gcc_cv_as_cfi_directive=yes
24271 elif test "x$gcc_cv_objdump" = x; then
24272 # No objdump, err on the side of caution.
24273 gcc_cv_as_cfi_directive=no
24274 else
24275 if test x$gas = xyes; then
24276 as_32_opt="--32"
24277 as_64_opt="--64"
24278 else
24279 as_32_opt="-m32"
24280 as_64_opt="-m64"
24281 fi
24282 case "$target" in
24283 sparc*-*-solaris2.*)
24284 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24285 if gcc_fn_eh_frame_ro $as_32_opt \
24286 || gcc_fn_eh_frame_ro $as_64_opt; then
24287 gcc_cv_as_cfi_directive=no
24288 else
24289 gcc_cv_as_cfi_directive=yes
24290 fi
24291 ;;
24292 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24293 # On Solaris/x86, make sure that GCC and assembler agree on using
24294 # read-only .eh_frame sections for 64-bit.
24295 if gcc_fn_eh_frame_ro $as_32_opt; then
24296 gcc_cv_as_cfi_directive=no
24297 elif gcc_fn_eh_frame_ro $as_64_opt; then
24298 gcc_cv_as_cfi_directive=yes
24299 else
24300 gcc_cv_as_cfi_directive=no
24301 fi
24302 ;;
24303 esac
24304 fi
24305 ;;
24306 *-*-*)
24307 gcc_cv_as_cfi_directive=yes
24308 ;;
24309 esac
24310 else
24311 echo "configure: failed program was" >&5
24312 cat conftest.s >&5
24313 fi
24314 rm -f conftest.o conftest.s
24315 fi
24316 fi
24317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24318 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24319
24320
24321 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24323 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24324 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24325 $as_echo_n "(cached) " >&6
24326 else
24327 gcc_cv_as_cfi_advance_working=no
24328 if test x$gcc_cv_as != x; then
24329 $as_echo ' .text
24330 .cfi_startproc
24331 .cfi_adjust_cfa_offset 64
24332 .skip 75040, 0
24333 .cfi_adjust_cfa_offset 128
24334 .cfi_endproc' > conftest.s
24335 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24337 (eval $ac_try) 2>&5
24338 ac_status=$?
24339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24340 test $ac_status = 0; }; }
24341 then
24342
24343 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24344 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24345 gcc_cv_as_cfi_advance_working=yes
24346 fi
24347
24348 else
24349 echo "configure: failed program was" >&5
24350 cat conftest.s >&5
24351 fi
24352 rm -f conftest.o conftest.s
24353 fi
24354 fi
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24356 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24357
24358
24359 else
24360 # no objdump, err on the side of caution
24361 gcc_cv_as_cfi_advance_working=no
24362 fi
24363
24364
24365 cat >>confdefs.h <<_ACEOF
24366 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24367 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24368 _ACEOF
24369
24370
24371
24372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24373 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24374 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24375 $as_echo_n "(cached) " >&6
24376 else
24377 gcc_cv_as_cfi_personality_directive=no
24378 if test x$gcc_cv_as != x; then
24379 $as_echo ' .text
24380 .cfi_startproc
24381 .cfi_personality 0, symbol
24382 .cfi_endproc' > conftest.s
24383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24385 (eval $ac_try) 2>&5
24386 ac_status=$?
24387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24388 test $ac_status = 0; }; }
24389 then
24390 gcc_cv_as_cfi_personality_directive=yes
24391 else
24392 echo "configure: failed program was" >&5
24393 cat conftest.s >&5
24394 fi
24395 rm -f conftest.o conftest.s
24396 fi
24397 fi
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24399 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24400
24401
24402
24403 cat >>confdefs.h <<_ACEOF
24404 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24405 _ACEOF
24406
24407
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24409 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24410 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24411 $as_echo_n "(cached) " >&6
24412 else
24413 gcc_cv_as_cfi_sections_directive=no
24414 if test x$gcc_cv_as != x; then
24415 $as_echo ' .text
24416 .cfi_sections .debug_frame, .eh_frame
24417 .cfi_startproc
24418 .cfi_endproc' > conftest.s
24419 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24421 (eval $ac_try) 2>&5
24422 ac_status=$?
24423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24424 test $ac_status = 0; }; }
24425 then
24426 case $target_os in
24427 win32 | pe | cygwin* | mingw32*)
24428 # Need to check that we generated the correct relocation for the
24429 # .debug_frame section. This was fixed for binutils 2.21.
24430 gcc_cv_as_cfi_sections_directive=no
24431 if test "x$gcc_cv_objdump" != x; then
24432 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24433 grep secrel > /dev/null; then
24434 gcc_cv_as_cfi_sections_directive=yes
24435 fi
24436 fi
24437 ;;
24438 *)
24439 gcc_cv_as_cfi_sections_directive=yes
24440 ;;
24441 esac
24442 else
24443 echo "configure: failed program was" >&5
24444 cat conftest.s >&5
24445 fi
24446 rm -f conftest.o conftest.s
24447 fi
24448 fi
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24450 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24451
24452
24453
24454
24455 cat >>confdefs.h <<_ACEOF
24456 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24457 _ACEOF
24458
24459
24460 # GAS versions up to and including 2.11.0 may mis-optimize
24461 # .eh_frame data.
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24463 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24464 if ${gcc_cv_as_eh_frame+:} false; then :
24465 $as_echo_n "(cached) " >&6
24466 else
24467 gcc_cv_as_eh_frame=no
24468 if test $in_tree_gas = yes; then
24469 if test $in_tree_gas_is_elf = yes \
24470 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24471 then gcc_cv_as_eh_frame=yes
24472 fi
24473 elif test x$gcc_cv_as != x; then
24474 $as_echo ' .text
24475 .LFB1:
24476 .4byte 0
24477 .L1:
24478 .4byte 0
24479 .LFE1:
24480 .section .eh_frame,"aw",@progbits
24481 __FRAME_BEGIN__:
24482 .4byte .LECIE1-.LSCIE1
24483 .LSCIE1:
24484 .4byte 0x0
24485 .byte 0x1
24486 .ascii "z\0"
24487 .byte 0x1
24488 .byte 0x78
24489 .byte 0x1a
24490 .byte 0x0
24491 .byte 0x4
24492 .4byte 1
24493 .p2align 1
24494 .LECIE1:
24495 .LSFDE1:
24496 .4byte .LEFDE1-.LASFDE1
24497 .LASFDE1:
24498 .4byte .LASFDE1-__FRAME_BEGIN__
24499 .4byte .LFB1
24500 .4byte .LFE1-.LFB1
24501 .byte 0x4
24502 .4byte .LFE1-.LFB1
24503 .byte 0x4
24504 .4byte .L1-.LFB1
24505 .LEFDE1:' > conftest.s
24506 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24508 (eval $ac_try) 2>&5
24509 ac_status=$?
24510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24511 test $ac_status = 0; }; }
24512 then
24513 cat > conftest.lit <<EOF
24514 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24515 0010 01000000 12000000 18000000 00000000 ................
24516 0020 08000000 04080000 0044 .........D
24517 EOF
24518 cat > conftest.big <<EOF
24519 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24520 0010 00000001 00000012 00000018 00000000 ................
24521 0020 00000008 04000000 0844 .........D
24522 EOF
24523 # If the assembler didn't choke, and we can objdump,
24524 # and we got the correct data, then succeed.
24525 # The text in the here-document typically retains its unix-style line
24526 # endings, while the output of objdump will use host line endings.
24527 # Therefore, use diff -b for the comparisons.
24528 if test x$gcc_cv_objdump != x \
24529 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24530 | tail -3 > conftest.got \
24531 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24532 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24533 then
24534 gcc_cv_as_eh_frame=yes
24535 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24537 (eval $ac_try) 2>&5
24538 ac_status=$?
24539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24540 test $ac_status = 0; }; }; then
24541 gcc_cv_as_eh_frame=buggy
24542 else
24543 # Uh oh, what do we do now?
24544 gcc_cv_as_eh_frame=no
24545 fi
24546 else
24547 echo "configure: failed program was" >&5
24548 cat conftest.s >&5
24549 fi
24550 rm -f conftest.o conftest.s
24551 fi
24552 fi
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24554 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24555
24556
24557
24558 if test $gcc_cv_as_eh_frame = buggy; then
24559
24560 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24561
24562 fi
24563
24564 # Test if the assembler supports the section flag 'e' or #exclude for
24565 # specifying an excluded section.
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24567 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24568 if ${gcc_cv_as_section_exclude_e+:} false; then :
24569 $as_echo_n "(cached) " >&6
24570 else
24571 gcc_cv_as_section_exclude_e=no
24572 if test $in_tree_gas = yes; then
24573 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24574 then gcc_cv_as_section_exclude_e=yes
24575 fi
24576 elif test x$gcc_cv_as != x; then
24577 $as_echo '.section foo1,"e"
24578 .byte 0,0,0,0' > conftest.s
24579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24581 (eval $ac_try) 2>&5
24582 ac_status=$?
24583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24584 test $ac_status = 0; }; }
24585 then
24586 gcc_cv_as_section_exclude_e=yes
24587 else
24588 echo "configure: failed program was" >&5
24589 cat conftest.s >&5
24590 fi
24591 rm -f conftest.o conftest.s
24592 fi
24593 fi
24594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24595 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24596
24597
24598 if test $gcc_cv_as_section_exclude_e = no; then
24599 case "${target}" in
24600 # Solaris as uses #exclude instead.
24601 *-*-solaris2*)
24602 case "${target}" in
24603 sparc*-*-solaris2*)
24604 conftest_s='.section "foo1", #exclude'
24605 ;;
24606 i?86-*-solaris2* | x86_64-*-solaris2*)
24607 conftest_s='.section foo1, #exclude'
24608 ;;
24609 esac
24610 ;;
24611 esac
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24613 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24614 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24615 $as_echo_n "(cached) " >&6
24616 else
24617 gcc_cv_as_section_exclude_hash=no
24618 if test x$gcc_cv_as != x; then
24619 $as_echo "$conftest_s
24620 .byte 0,0,0,0" > conftest.s
24621 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24623 (eval $ac_try) 2>&5
24624 ac_status=$?
24625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24626 test $ac_status = 0; }; }
24627 then
24628 gcc_cv_as_section_exclude_hash=yes
24629 else
24630 echo "configure: failed program was" >&5
24631 cat conftest.s >&5
24632 fi
24633 rm -f conftest.o conftest.s
24634 fi
24635 fi
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24637 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24638
24639
24640 fi
24641
24642 cat >>confdefs.h <<_ACEOF
24643 #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`
24644 _ACEOF
24645
24646
24647 # Test if the assembler supports the section flag 'R' for specifying
24648 # section with SHF_GNU_RETAIN.
24649 case "${target}" in
24650 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24651 # assembler supports the section flag 'R', it doesn't mean that
24652 # Solairs ld supports it.
24653 *-*-solaris2*)
24654 gcc_cv_as_shf_gnu_retain=no
24655 ;;
24656 *)
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24658 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
24659 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
24660 $as_echo_n "(cached) " >&6
24661 else
24662 gcc_cv_as_shf_gnu_retain=no
24663 if test $in_tree_gas = yes; then
24664 if test $in_tree_gas_is_elf = yes \
24665 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
24666 then gcc_cv_as_shf_gnu_retain=yes
24667 fi
24668 elif test x$gcc_cv_as != x; then
24669 $as_echo '.section .foo,"awR",%progbits
24670 .byte 0' > conftest.s
24671 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24673 (eval $ac_try) 2>&5
24674 ac_status=$?
24675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24676 test $ac_status = 0; }; }
24677 then
24678 gcc_cv_as_shf_gnu_retain=yes
24679 else
24680 echo "configure: failed program was" >&5
24681 cat conftest.s >&5
24682 fi
24683 rm -f conftest.o conftest.s
24684 fi
24685 fi
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
24687 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
24688
24689
24690 ;;
24691 esac
24692
24693 cat >>confdefs.h <<_ACEOF
24694 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
24695 _ACEOF
24696
24697
24698 # Test if the assembler supports the section flag 'o' for specifying
24699 # section with link-order.
24700 case "${target}" in
24701 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24702 # assembler supports the section flag 'o', it doesn't mean that
24703 # Solairs ld supports it.
24704 *-*-solaris2*)
24705 gcc_cv_as_section_link_order=no
24706 ;;
24707 *)
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
24709 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
24710 if ${gcc_cv_as_section_link_order+:} false; then :
24711 $as_echo_n "(cached) " >&6
24712 else
24713 gcc_cv_as_section_link_order=no
24714 if test $in_tree_gas = yes; then
24715 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 35 \) \* 1000 + 0`
24716 then gcc_cv_as_section_link_order=yes
24717 fi
24718 elif test x$gcc_cv_as != x; then
24719 $as_echo '.section .foo,"a"
24720 .byte 0
24721 .section __patchable_function_entries,"awo",%progbits,.foo
24722 .byte 0' > conftest.s
24723 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24725 (eval $ac_try) 2>&5
24726 ac_status=$?
24727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24728 test $ac_status = 0; }; }
24729 then
24730 gcc_cv_as_section_link_order=yes
24731 else
24732 echo "configure: failed program was" >&5
24733 cat conftest.s >&5
24734 fi
24735 rm -f conftest.o conftest.s
24736 fi
24737 fi
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
24739 $as_echo "$gcc_cv_as_section_link_order" >&6; }
24740
24741
24742 ;;
24743 esac
24744
24745 cat >>confdefs.h <<_ACEOF
24746 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
24747 _ACEOF
24748
24749
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24751 $as_echo_n "checking assembler for section merging support... " >&6; }
24752 if ${gcc_cv_as_shf_merge+:} false; then :
24753 $as_echo_n "(cached) " >&6
24754 else
24755 gcc_cv_as_shf_merge=no
24756 if test $in_tree_gas = yes; then
24757 if test $in_tree_gas_is_elf = yes \
24758 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24759 then gcc_cv_as_shf_merge=yes
24760 fi
24761 elif test x$gcc_cv_as != x; then
24762 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24765 (eval $ac_try) 2>&5
24766 ac_status=$?
24767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24768 test $ac_status = 0; }; }
24769 then
24770 gcc_cv_as_shf_merge=yes
24771 else
24772 echo "configure: failed program was" >&5
24773 cat conftest.s >&5
24774 fi
24775 rm -f conftest.o conftest.s
24776 fi
24777 fi
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24779 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24780
24781
24782 if test $gcc_cv_as_shf_merge = no; then
24783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24784 $as_echo_n "checking assembler for section merging support... " >&6; }
24785 if ${gcc_cv_as_shf_merge+:} false; then :
24786 $as_echo_n "(cached) " >&6
24787 else
24788 gcc_cv_as_shf_merge=no
24789 if test $in_tree_gas = yes; then
24790 if test $in_tree_gas_is_elf = yes \
24791 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24792 then gcc_cv_as_shf_merge=yes
24793 fi
24794 elif test x$gcc_cv_as != x; then
24795 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24796 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24798 (eval $ac_try) 2>&5
24799 ac_status=$?
24800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24801 test $ac_status = 0; }; }
24802 then
24803 gcc_cv_as_shf_merge=yes
24804 else
24805 echo "configure: failed program was" >&5
24806 cat conftest.s >&5
24807 fi
24808 rm -f conftest.o conftest.s
24809 fi
24810 fi
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24812 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24813
24814
24815 fi
24816
24817 cat >>confdefs.h <<_ACEOF
24818 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24819 _ACEOF
24820
24821
24822 gcc_cv_ld_aligned_shf_merge=yes
24823 case "$target" in
24824 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24825 # alignment > 1.
24826 sparc*-*-solaris2.11*)
24827 if test x"$gnu_ld" = xno \
24828 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24829 gcc_cv_ld_aligned_shf_merge=no
24830 fi
24831 ;;
24832 esac
24833
24834 cat >>confdefs.h <<_ACEOF
24835 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24836 _ACEOF
24837
24838
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24840 $as_echo_n "checking assembler for stabs directive... " >&6; }
24841 if ${gcc_cv_as_stabs_directive+:} false; then :
24842 $as_echo_n "(cached) " >&6
24843 else
24844 gcc_cv_as_stabs_directive=no
24845 if test x$gcc_cv_as != x; then
24846 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24847 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24849 (eval $ac_try) 2>&5
24850 ac_status=$?
24851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24852 test $ac_status = 0; }; }
24853 then
24854 gcc_cv_as_stabs_directive=yes
24855 else
24856 echo "configure: failed program was" >&5
24857 cat conftest.s >&5
24858 fi
24859 rm -f conftest.o conftest.s
24860 fi
24861 fi
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24863 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24864 if test $gcc_cv_as_stabs_directive = yes; then
24865
24866 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24867
24868 fi
24869
24870
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24872 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24873 if ${gcc_cv_as_comdat_group+:} false; then :
24874 $as_echo_n "(cached) " >&6
24875 else
24876 gcc_cv_as_comdat_group=no
24877 if test $in_tree_gas = yes; then
24878 if test $in_tree_gas_is_elf = yes \
24879 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24880 then gcc_cv_as_comdat_group=yes
24881 fi
24882 elif test x$gcc_cv_as != x; then
24883 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24886 (eval $ac_try) 2>&5
24887 ac_status=$?
24888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24889 test $ac_status = 0; }; }
24890 then
24891 gcc_cv_as_comdat_group=yes
24892 else
24893 echo "configure: failed program was" >&5
24894 cat conftest.s >&5
24895 fi
24896 rm -f conftest.o conftest.s
24897 fi
24898 fi
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24900 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24901
24902
24903 if test $gcc_cv_as_comdat_group = yes; then
24904 gcc_cv_as_comdat_group_percent=no
24905 gcc_cv_as_comdat_group_group=no
24906 else
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24908 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24909 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24910 $as_echo_n "(cached) " >&6
24911 else
24912 gcc_cv_as_comdat_group_percent=no
24913 if test $in_tree_gas = yes; then
24914 if test $in_tree_gas_is_elf = yes \
24915 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24916 then gcc_cv_as_comdat_group_percent=yes
24917 fi
24918 elif test x$gcc_cv_as != x; then
24919 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24922 (eval $ac_try) 2>&5
24923 ac_status=$?
24924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24925 test $ac_status = 0; }; }
24926 then
24927 gcc_cv_as_comdat_group_percent=yes
24928 else
24929 echo "configure: failed program was" >&5
24930 cat conftest.s >&5
24931 fi
24932 rm -f conftest.o conftest.s
24933 fi
24934 fi
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24936 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24937
24938
24939 if test $gcc_cv_as_comdat_group_percent = yes; then
24940 gcc_cv_as_comdat_group_group=no
24941 else
24942 case "${target}" in
24943 # Sun as uses a completely different syntax.
24944 *-*-solaris2*)
24945 case "${target}" in
24946 sparc*-*-solaris2*)
24947 conftest_s='
24948 .group foo,".text%foo",#comdat
24949 .section ".text%foo", #alloc,#execinstr,#progbits
24950 .globl foo
24951 foo:
24952 '
24953 ;;
24954 i?86-*-solaris2* | x86_64-*-solaris2*)
24955 conftest_s='
24956 .group foo,.text%foo,#comdat
24957 .section .text%foo, "ax", @progbits
24958 .globl foo
24959 foo:
24960 '
24961 ;;
24962 esac
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24964 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24965 if ${gcc_cv_as_comdat_group_group+:} false; then :
24966 $as_echo_n "(cached) " >&6
24967 else
24968 gcc_cv_as_comdat_group_group=no
24969 if test x$gcc_cv_as != x; then
24970 $as_echo "$conftest_s" > conftest.s
24971 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24973 (eval $ac_try) 2>&5
24974 ac_status=$?
24975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24976 test $ac_status = 0; }; }
24977 then
24978 gcc_cv_as_comdat_group_group=yes
24979 else
24980 echo "configure: failed program was" >&5
24981 cat conftest.s >&5
24982 fi
24983 rm -f conftest.o conftest.s
24984 fi
24985 fi
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24987 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24988
24989
24990 ;;
24991 esac
24992 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24993 gcc_cv_as_comdat_group_group=no
24994 fi
24995 fi
24996 fi
24997 if test x"$ld_is_gold" = xyes; then
24998 comdat_group=yes
24999 elif test $in_tree_ld = yes ; then
25000 comdat_group=no
25001 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 \
25002 && test $in_tree_ld_is_elf = yes; then
25003 comdat_group=yes
25004 fi
25005 elif echo "$ld_ver" | grep GNU > /dev/null; then
25006 comdat_group=yes
25007 if test 0"$ld_date" -lt 20050308; then
25008 if test -n "$ld_date"; then
25009 # If there was date string, but was earlier than 2005-03-08, fail
25010 comdat_group=no
25011 elif test "$ld_vers_major" -lt 2; then
25012 comdat_group=no
25013 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25014 comdat_group=no
25015 fi
25016 fi
25017 else
25018 case "${target}" in
25019 *-*-solaris2.1[1-9]*)
25020 comdat_group=no
25021 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25022 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25023 # version 1.688.
25024 #
25025 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25026 # least ld version 1.2267.
25027 if test "$ld_vers_major" -gt 1; then
25028 comdat_group=yes
25029 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25030 comdat_group=yes
25031 elif test "$ld_vers_minor" -ge 2267; then
25032 comdat_group=yes
25033 fi
25034 ;;
25035 *)
25036 # Assume linkers other than GNU ld don't support COMDAT group.
25037 comdat_group=no
25038 ;;
25039 esac
25040 fi
25041 # Allow overriding the automatic COMDAT group tests above.
25042 # Check whether --enable-comdat was given.
25043 if test "${enable_comdat+set}" = set; then :
25044 enableval=$enable_comdat; comdat_group="$enable_comdat"
25045 fi
25046
25047 if test $comdat_group = no; then
25048 gcc_cv_as_comdat_group=no
25049 gcc_cv_as_comdat_group_percent=no
25050 gcc_cv_as_comdat_group_group=no
25051 fi
25052
25053 cat >>confdefs.h <<_ACEOF
25054 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25055 || test $gcc_cv_as_comdat_group_percent = yes \
25056 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25057 _ACEOF
25058
25059
25060 # Restrict this test to Solaris/x86: other targets define this statically.
25061 case "${target}" in
25062 i?86-*-solaris2* | x86_64-*-solaris2*)
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25064 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25065 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25066 hidden_linkonce=yes
25067 else
25068 case "${target}" in
25069 # Full support for hidden thunks in linkonce sections only appeared in
25070 # Solaris 11/OpenSolaris.
25071 *-*-solaris2.1[1-9]*)
25072 hidden_linkonce=yes
25073 ;;
25074 *)
25075 hidden_linkonce=no
25076 ;;
25077 esac
25078 fi
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25080 $as_echo "$hidden_linkonce" >&6; }
25081
25082 cat >>confdefs.h <<_ACEOF
25083 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25084 _ACEOF
25085
25086 ;;
25087 esac
25088
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25090 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25091 if ${gcc_cv_as_is_stmt+:} false; then :
25092 $as_echo_n "(cached) " >&6
25093 else
25094 gcc_cv_as_is_stmt=no
25095 if test $in_tree_gas = yes; then
25096 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
25097 then gcc_cv_as_is_stmt=yes
25098 fi
25099 elif test x$gcc_cv_as != x; then
25100 $as_echo ' .text
25101 .file 1 "conf.c"
25102 .loc 1 1 0 is_stmt 1' > conftest.s
25103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25105 (eval $ac_try) 2>&5
25106 ac_status=$?
25107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25108 test $ac_status = 0; }; }
25109 then
25110 gcc_cv_as_is_stmt=yes
25111 else
25112 echo "configure: failed program was" >&5
25113 cat conftest.s >&5
25114 fi
25115 rm -f conftest.o conftest.s
25116 fi
25117 fi
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25119 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25120 if test $gcc_cv_as_is_stmt = yes; then
25121
25122 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25123
25124 fi
25125
25126
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25128 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25129 if ${gcc_cv_as_discriminator+:} false; then :
25130 $as_echo_n "(cached) " >&6
25131 else
25132 gcc_cv_as_discriminator=no
25133 if test $in_tree_gas = yes; then
25134 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
25135 then gcc_cv_as_discriminator=yes
25136 fi
25137 elif test x$gcc_cv_as != x; then
25138 $as_echo ' .text
25139 .file 1 "conf.c"
25140 .loc 1 1 0 discriminator 1' > conftest.s
25141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25143 (eval $ac_try) 2>&5
25144 ac_status=$?
25145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25146 test $ac_status = 0; }; }
25147 then
25148 gcc_cv_as_discriminator=yes
25149 else
25150 echo "configure: failed program was" >&5
25151 cat conftest.s >&5
25152 fi
25153 rm -f conftest.o conftest.s
25154 fi
25155 fi
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25157 $as_echo "$gcc_cv_as_discriminator" >&6; }
25158 if test $gcc_cv_as_discriminator = yes; then
25159
25160 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25161
25162 fi
25163
25164
25165 # Catch the newlib flag of the same name so we can gate GCC features on it.
25166 # Check whether --enable-newlib-nano-formatted-io was given.
25167 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25168 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25169 yes|no)
25170 ;;
25171 *)
25172 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25173 ;;
25174 esac
25175 fi
25176
25177
25178 # Thread-local storage - the check is heavily parameterized.
25179 conftest_s=
25180 tls_first_major=
25181 tls_first_minor=
25182 tls_as_opt=
25183 case "$target" in
25184 alpha*-*-*)
25185 conftest_s='
25186 .section ".tdata","awT",@progbits
25187 foo: .long 25
25188 .text
25189 ldq $27,__tls_get_addr($29) !literal!1
25190 lda $16,foo($29) !tlsgd!1
25191 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25192 ldq $27,__tls_get_addr($29) !literal!2
25193 lda $16,foo($29) !tlsldm!2
25194 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25195 ldq $1,foo($29) !gotdtprel
25196 ldah $2,foo($29) !dtprelhi
25197 lda $3,foo($2) !dtprello
25198 lda $4,foo($29) !dtprel
25199 ldq $1,foo($29) !gottprel
25200 ldah $2,foo($29) !tprelhi
25201 lda $3,foo($2) !tprello
25202 lda $4,foo($29) !tprel'
25203 tls_first_major=2
25204 tls_first_minor=13
25205 tls_as_opt=--fatal-warnings
25206 ;;
25207 arc*-*-*)
25208 conftest_s='
25209 add_s r0,r0, @foo@tpoff'
25210 tls_first_major=2
25211 tls_first_minor=23
25212 ;;
25213 cris-*-*|crisv32-*-*)
25214 conftest_s='
25215 .section ".tdata","awT",@progbits
25216 x: .long 25
25217 .text
25218 move.d x:IE,$r10
25219 nop'
25220 tls_first_major=2
25221 tls_first_minor=20
25222 tls_as_opt=--fatal-warnings
25223 ;;
25224 frv*-*-*)
25225 conftest_s='
25226 .section ".tdata","awT",@progbits
25227 x: .long 25
25228 .text
25229 call #gettlsoff(x)'
25230 tls_first_major=2
25231 tls_first_minor=14
25232 ;;
25233 hppa*-*-linux*)
25234 conftest_s='
25235 t1: .reg %r20
25236 t2: .reg %r21
25237 gp: .reg %r19
25238 .section ".tdata","awT",@progbits
25239 foo: .long 25
25240 .text
25241 .align 4
25242 addil LT%foo-$tls_gdidx$,gp
25243 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25244 b __tls_get_addr
25245 nop
25246 addil LT%foo-$tls_ldidx$,gp
25247 b __tls_get_addr
25248 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25249 addil LR%foo-$tls_dtpoff$,%ret0
25250 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25251 mfctl %cr27,%t1
25252 addil LT%foo-$tls_ieoff$,gp
25253 ldw RT%foo-$tls_ieoff$(%r1),%t2
25254 add %t1,%t2,%t3
25255 mfctl %cr27,%t1
25256 addil LR%foo-$tls_leoff$,%t1
25257 ldo RR%foo-$tls_leoff$(%r1),%t2'
25258 tls_first_major=2
25259 tls_first_minor=15
25260 tls_as_opt=--fatal-warnings
25261 ;;
25262 arm*-*-*)
25263 conftest_s='
25264 .section ".tdata","awT",%progbits
25265 foo: .long 25
25266 .text
25267 .word foo(gottpoff)
25268 .word foo(tpoff)
25269 .word foo(tlsgd)
25270 .word foo(tlsldm)
25271 .word foo(tlsldo)'
25272 tls_first_major=2
25273 tls_first_minor=17
25274 ;;
25275 i[34567]86-*-* | x86_64-*-*)
25276 case "$target" in
25277 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25278 on_solaris=yes
25279 ;;
25280 *)
25281 on_solaris=no
25282 ;;
25283 esac
25284 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25285 conftest_s='
25286 .section .tdata,"awt",@progbits'
25287 tls_first_major=0
25288 tls_first_minor=0
25289 tls_section_flag=t
25290
25291 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25292
25293 else
25294 conftest_s='
25295 .section ".tdata","awT",@progbits'
25296 tls_first_major=2
25297 tls_first_minor=14
25298 tls_section_flag=T
25299 tls_as_opt="--fatal-warnings"
25300 fi
25301 case "$target" in
25302 i[34567]86-*-*)
25303 if test x$on_solaris = xyes; then
25304 case $gas_flag in
25305 yes) tls_as_opt="$tls_as_opt --32" ;;
25306 esac
25307 fi
25308 conftest_s="$conftest_s
25309 foo: .long 25
25310 .text
25311 movl %gs:0, %eax
25312 leal foo@tlsgd(,%ebx,1), %eax
25313 leal foo@tlsldm(%ebx), %eax
25314 leal foo@dtpoff(%eax), %edx
25315 movl foo@gottpoff(%ebx), %eax
25316 subl foo@gottpoff(%ebx), %eax
25317 addl foo@gotntpoff(%ebx), %eax
25318 movl foo@indntpoff, %eax
25319 movl \$foo@tpoff, %eax
25320 subl \$foo@tpoff, %eax
25321 leal foo@ntpoff(%ecx), %eax"
25322 ;;
25323 x86_64-*-*)
25324 if test x$on_solaris = xyes; then
25325 case $gas_flag in
25326 yes) tls_as_opt="$tls_as_opt --64" ;;
25327 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25328 esac
25329 fi
25330 conftest_s="$conftest_s
25331 foo: .long 25
25332 .text
25333 movq %fs:0, %rax
25334 leaq foo@tlsgd(%rip), %rdi
25335 leaq foo@tlsld(%rip), %rdi
25336 leaq foo@dtpoff(%rax), %rdx
25337 movq foo@gottpoff(%rip), %rax
25338 movq \$foo@tpoff, %rax"
25339 ;;
25340 esac
25341 ;;
25342 ia64-*-*)
25343 conftest_s='
25344 .section ".tdata","awT",@progbits
25345 foo: data8 25
25346 .text
25347 addl r16 = @ltoff(@dtpmod(foo#)), gp
25348 addl r17 = @ltoff(@dtprel(foo#)), gp
25349 addl r18 = @ltoff(@tprel(foo#)), gp
25350 addl r19 = @dtprel(foo#), gp
25351 adds r21 = @dtprel(foo#), r13
25352 movl r23 = @dtprel(foo#)
25353 addl r20 = @tprel(foo#), gp
25354 adds r22 = @tprel(foo#), r13
25355 movl r24 = @tprel(foo#)'
25356 tls_first_major=2
25357 tls_first_minor=13
25358 tls_as_opt=--fatal-warnings
25359 ;;
25360 microblaze*-*-*)
25361 conftest_s='
25362 .section .tdata,"awT",@progbits
25363 x:
25364 .word 2
25365 .text
25366 addik r5,r20,x@TLSGD
25367 addik r5,r20,x@TLSLDM'
25368 tls_first_major=2
25369 tls_first_minor=20
25370 tls_as_opt='--fatal-warnings'
25371 ;;
25372 mips*-*-*)
25373 conftest_s='
25374 .section .tdata,"awT",@progbits
25375 x:
25376 .word 2
25377 .text
25378 addiu $4, $28, %tlsgd(x)
25379 addiu $4, $28, %tlsldm(x)
25380 lui $4, %dtprel_hi(x)
25381 addiu $4, $4, %dtprel_lo(x)
25382 lw $4, %gottprel(x)($28)
25383 lui $4, %tprel_hi(x)
25384 addiu $4, $4, %tprel_lo(x)'
25385 tls_first_major=2
25386 tls_first_minor=16
25387 tls_as_opt='-32 --fatal-warnings'
25388 ;;
25389 m68k-*-*)
25390 conftest_s='
25391 .section .tdata,"awT",@progbits
25392 x:
25393 .word 2
25394 .text
25395 foo:
25396 move.l x@TLSGD(%a5),%a0
25397 move.l x@TLSLDM(%a5),%a0
25398 move.l x@TLSLDO(%a5),%a0
25399 move.l x@TLSIE(%a5),%a0
25400 move.l x@TLSLE(%a5),%a0'
25401 tls_first_major=2
25402 tls_first_minor=19
25403 tls_as_opt='--fatal-warnings'
25404 ;;
25405 nios2-*-*)
25406 conftest_s='
25407 .section ".tdata","awT",@progbits'
25408 tls_first_major=2
25409 tls_first_minor=23
25410 tls_as_opt="--fatal-warnings"
25411 ;;
25412 aarch64*-*-*)
25413 conftest_s='
25414 .section ".tdata","awT",%progbits
25415 foo: .long 25
25416 .text
25417 adrp x0, :tlsgd:x
25418 add x0, x0, #:tlsgd_lo12:x
25419 bl __tls_get_addr
25420 nop'
25421 tls_first_major=2
25422 tls_first_minor=20
25423 tls_as_opt='--fatal-warnings'
25424 ;;
25425 or1k*-*-*)
25426 conftest_s='
25427 .section ".tdata","awT",@progbits
25428 foo: .long 25
25429 .text
25430 l.movhi r3, tpoffha(foo)
25431 l.add r3, r3, r10
25432 l.lwz r4, tpofflo(foo)(r3)'
25433 tls_first_major=2
25434 tls_first_minor=30
25435 tls_as_opt=--fatal-warnings
25436 ;;
25437 powerpc-ibm-aix*)
25438 conftest_s='
25439 .extern __get_tpointer
25440 .toc
25441 LC..1:
25442 .tc a[TC],a[TL]@le
25443 .csect .text[PR]
25444 .tlstest:
25445 lwz 9,LC..1(2)
25446 bla __get_tpointer
25447 lwzx 3,9,3
25448 .globl a
25449 .csect a[TL],4
25450 a:
25451 .space 4'
25452 tls_first_major=0
25453 tls_first_minor=0
25454 ;;
25455 powerpc64*-*-*)
25456 conftest_s='
25457 .section ".tdata","awT",@progbits
25458 .align 3
25459 ld0: .space 8
25460 ld1: .space 8
25461 x1: .space 8
25462 x2: .space 8
25463 x3: .space 8
25464 .text
25465 addi 3,2,ld0@got@tlsgd
25466 bl .__tls_get_addr
25467 nop
25468 addi 3,2,ld1@toc
25469 bl .__tls_get_addr
25470 nop
25471 addi 3,2,x1@got@tlsld
25472 bl .__tls_get_addr
25473 nop
25474 addi 9,3,x1@dtprel
25475 bl .__tls_get_addr
25476 nop
25477 addis 9,3,x2@dtprel@ha
25478 addi 9,9,x2@dtprel@l
25479 bl .__tls_get_addr
25480 nop
25481 ld 9,x3@got@dtprel(2)
25482 add 9,9,3
25483 bl .__tls_get_addr
25484 nop'
25485 tls_first_major=2
25486 tls_first_minor=14
25487 tls_as_opt="-a64 --fatal-warnings"
25488 ;;
25489 powerpc*-*-*)
25490 conftest_s='
25491 .section ".tdata","awT",@progbits
25492 .align 2
25493 ld0: .space 4
25494 ld1: .space 4
25495 x1: .space 4
25496 x2: .space 4
25497 x3: .space 4
25498 .text
25499 addi 3,31,ld0@got@tlsgd
25500 bl __tls_get_addr
25501 addi 3,31,x1@got@tlsld
25502 bl __tls_get_addr
25503 addi 9,3,x1@dtprel
25504 addis 9,3,x2@dtprel@ha
25505 addi 9,9,x2@dtprel@l
25506 lwz 9,x3@got@tprel(31)
25507 add 9,9,x@tls
25508 addi 9,2,x1@tprel
25509 addis 9,2,x2@tprel@ha
25510 addi 9,9,x2@tprel@l'
25511 tls_first_major=2
25512 tls_first_minor=14
25513 tls_as_opt="-a32 --fatal-warnings"
25514 ;;
25515 riscv*-*-*)
25516 conftest_s='
25517 .section .tdata,"awT",@progbits
25518 x: .word 2
25519 .text
25520 la.tls.gd a0,x
25521 call __tls_get_addr'
25522 tls_first_major=2
25523 tls_first_minor=21
25524 tls_as_opt='--fatal-warnings'
25525 ;;
25526 s390-*-*)
25527 conftest_s='
25528 .section ".tdata","awT",@progbits
25529 foo: .long 25
25530 .text
25531 .long foo@TLSGD
25532 .long foo@TLSLDM
25533 .long foo@DTPOFF
25534 .long foo@NTPOFF
25535 .long foo@GOTNTPOFF
25536 .long foo@INDNTPOFF
25537 l %r1,foo@GOTNTPOFF(%r12)
25538 l %r1,0(%r1):tls_load:foo
25539 bas %r14,0(%r1,%r13):tls_gdcall:foo
25540 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25541 tls_first_major=2
25542 tls_first_minor=14
25543 tls_as_opt="-m31 --fatal-warnings"
25544 ;;
25545 s390x-*-*)
25546 conftest_s='
25547 .section ".tdata","awT",@progbits
25548 foo: .long 25
25549 .text
25550 .quad foo@TLSGD
25551 .quad foo@TLSLDM
25552 .quad foo@DTPOFF
25553 .quad foo@NTPOFF
25554 .quad foo@GOTNTPOFF
25555 lg %r1,foo@GOTNTPOFF(%r12)
25556 larl %r1,foo@INDNTPOFF
25557 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25558 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25559 tls_first_major=2
25560 tls_first_minor=14
25561 tls_as_opt="-m64 -Aesame --fatal-warnings"
25562 ;;
25563 sh-*-* | sh[123456789lbe]*-*-*)
25564 conftest_s='
25565 .section ".tdata","awT",@progbits
25566 foo: .long 25
25567 .text
25568 .long foo@TLSGD
25569 .long foo@TLSLDM
25570 .long foo@DTPOFF
25571 .long foo@GOTTPOFF
25572 .long foo@TPOFF'
25573 tls_first_major=2
25574 tls_first_minor=13
25575 tls_as_opt=--fatal-warnings
25576 ;;
25577 sparc*-*-*)
25578 case "$target" in
25579 sparc*-sun-solaris2.*)
25580 on_solaris=yes
25581 ;;
25582 *)
25583 on_solaris=no
25584 ;;
25585 esac
25586 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25587 conftest_s='
25588 .section ".tdata",#alloc,#write,#tls'
25589 tls_first_major=0
25590 tls_first_minor=0
25591 else
25592 conftest_s='
25593 .section ".tdata","awT",@progbits'
25594 tls_first_major=2
25595 tls_first_minor=14
25596 tls_as_opt="-32 --fatal-warnings"
25597 fi
25598 conftest_s="$conftest_s
25599 foo: .long 25
25600 .text
25601 sethi %tgd_hi22(foo), %o0
25602 add %o0, %tgd_lo10(foo), %o1
25603 add %l7, %o1, %o0, %tgd_add(foo)
25604 call __tls_get_addr, %tgd_call(foo)
25605 sethi %tldm_hi22(foo), %l1
25606 add %l1, %tldm_lo10(foo), %l2
25607 add %l7, %l2, %o0, %tldm_add(foo)
25608 call __tls_get_addr, %tldm_call(foo)
25609 sethi %tldo_hix22(foo), %l3
25610 xor %l3, %tldo_lox10(foo), %l4
25611 add %o0, %l4, %l5, %tldo_add(foo)
25612 sethi %tie_hi22(foo), %o3
25613 add %o3, %tie_lo10(foo), %o3
25614 ld [%l7 + %o3], %o2, %tie_ld(foo)
25615 add %g7, %o2, %o4, %tie_add(foo)
25616 sethi %tle_hix22(foo), %l1
25617 xor %l1, %tle_lox10(foo), %o5
25618 ld [%g7 + %o5], %o1"
25619 ;;
25620 tilepro*-*-*)
25621 conftest_s='
25622 .section ".tdata","awT",@progbits
25623 foo: .long 25
25624 .text
25625 addli r0, zero, tls_gd(foo)
25626 auli r0, zero, tls_gd_ha16(foo)
25627 addli r0, r0, tls_gd_lo16(foo)
25628 jal __tls_get_addr
25629 addli r0, zero, tls_ie(foo)
25630 auli r0, r0, tls_ie_ha16(foo)
25631 addli r0, r0, tls_ie_lo16(foo)'
25632 tls_first_major=2
25633 tls_first_minor=22
25634 tls_as_opt="--fatal-warnings"
25635 ;;
25636 tilegx*-*-*)
25637 conftest_s='
25638 .section ".tdata","awT",@progbits
25639 foo: .long 25
25640 .text
25641 shl16insli r0, zero, hw0_last_tls_gd(foo)
25642 shl16insli r0, zero, hw1_last_tls_gd(foo)
25643 shl16insli r0, r0, hw0_tls_gd(foo)
25644 jal __tls_get_addr
25645 shl16insli r0, zero, hw1_last_tls_ie(foo)
25646 shl16insli r0, r0, hw0_tls_ie(foo)'
25647 tls_first_major=2
25648 tls_first_minor=22
25649 tls_as_opt="--fatal-warnings"
25650 ;;
25651 xtensa*-*-*)
25652 conftest_s='
25653 .section ".tdata","awT",@progbits
25654 foo: .long 25
25655 .text
25656 movi a8, foo@TLSFUNC
25657 movi a10, foo@TLSARG
25658 callx8.tls a8, foo@TLSCALL'
25659 tls_first_major=2
25660 tls_first_minor=19
25661 ;;
25662 esac
25663 set_have_as_tls=no
25664 if test "x$enable_tls" = xno ; then
25665 : # TLS explicitly disabled.
25666 elif test "x$enable_tls" = xyes ; then
25667 set_have_as_tls=yes # TLS explicitly enabled.
25668 elif test -z "$tls_first_major"; then
25669 : # If we don't have a check, assume no support.
25670 else
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25672 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25673 if ${gcc_cv_as_tls+:} false; then :
25674 $as_echo_n "(cached) " >&6
25675 else
25676 gcc_cv_as_tls=no
25677 if test $in_tree_gas = yes; then
25678 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25679 then gcc_cv_as_tls=yes
25680 fi
25681 elif test x$gcc_cv_as != x; then
25682 $as_echo "$conftest_s" > conftest.s
25683 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25685 (eval $ac_try) 2>&5
25686 ac_status=$?
25687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25688 test $ac_status = 0; }; }
25689 then
25690 gcc_cv_as_tls=yes
25691 else
25692 echo "configure: failed program was" >&5
25693 cat conftest.s >&5
25694 fi
25695 rm -f conftest.o conftest.s
25696 fi
25697 fi
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25699 $as_echo "$gcc_cv_as_tls" >&6; }
25700 if test $gcc_cv_as_tls = yes; then
25701 set_have_as_tls=yes
25702 fi
25703
25704 fi
25705 if test $set_have_as_tls = yes ; then
25706
25707 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25708
25709 fi
25710
25711 # Target-specific assembler checks.
25712
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25714 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25715 gcc_cv_ld_static_dynamic=no
25716 gcc_cv_ld_static_option='-Bstatic'
25717 gcc_cv_ld_dynamic_option='-Bdynamic'
25718 if test $in_tree_ld = yes ; then
25719 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
25720 gcc_cv_ld_static_dynamic=yes
25721 fi
25722 elif test x$gcc_cv_ld != x; then
25723 # Check if linker supports -Bstatic/-Bdynamic option
25724 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25725 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25726 gcc_cv_ld_static_dynamic=yes
25727 else
25728 case "$target" in
25729 # AIX ld uses -b flags
25730 *-*-aix4.[23]* | *-*-aix[5-9]*)
25731 gcc_cv_ld_static_dynamic=yes
25732 gcc_cv_ld_static_option="-bstatic"
25733 gcc_cv_ld_dynamic_option="-bdynamic"
25734 ;;
25735 # HP-UX ld uses -a flags to select between shared and archive.
25736 *-*-hpux*)
25737 if test x"$gnu_ld" = xno; then
25738 gcc_cv_ld_static_dynamic=yes
25739 gcc_cv_ld_static_option="-aarchive_shared"
25740 gcc_cv_ld_dynamic_option="-adefault"
25741 fi
25742 ;;
25743 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25744 *-*-solaris2*)
25745 gcc_cv_ld_static_dynamic=yes
25746 ;;
25747 esac
25748 fi
25749 fi
25750 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25751
25752 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25753
25754
25755 cat >>confdefs.h <<_ACEOF
25756 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25757 _ACEOF
25758
25759
25760 cat >>confdefs.h <<_ACEOF
25761 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25762 _ACEOF
25763
25764 fi
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25766 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25767
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25769 $as_echo_n "checking linker --version-script option... " >&6; }
25770 gcc_cv_ld_version_script=no
25771 ld_version_script_option=''
25772 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25773 gcc_cv_ld_version_script=yes
25774 ld_version_script_option='--version-script'
25775 elif test x$gcc_cv_ld != x; then
25776 case "$target" in
25777 # Solaris 2 ld always supports -M. It also supports a subset of
25778 # --version-script since Solaris 11.4, but requires
25779 # -z gnu-version-script-compat to activate.
25780 *-*-solaris2*)
25781 gcc_cv_ld_version_script=yes
25782 ld_version_script_option='-M'
25783 ;;
25784 esac
25785 fi
25786 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25788 $as_echo "$gcc_cv_ld_version_script" >&6; }
25789
25790
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25792 $as_echo_n "checking linker soname option... " >&6; }
25793 gcc_cv_ld_soname=no
25794 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25795 gcc_cv_ld_soname=yes
25796 ld_soname_option='-soname'
25797 elif test x$gcc_cv_ld != x; then
25798 case "$target" in
25799 *-*-darwin*)
25800 gcc_cv_ld_soname=yes
25801 ld_soname_option='-install_name'
25802 ;;
25803 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25804 # ld compatiblity since some Solaris 10 update.
25805 *-*-solaris2*)
25806 gcc_cv_ld_soname=yes
25807 ld_soname_option='-h'
25808 ;;
25809 esac
25810 fi
25811 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25813 $as_echo "$gcc_cv_ld_soname" >&6; }
25814
25815
25816 if test x"$demangler_in_ld" = xyes; then
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25818 $as_echo_n "checking linker --demangle support... " >&6; }
25819 gcc_cv_ld_demangle=no
25820 if test $in_tree_ld = yes; then
25821 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 \
25822 gcc_cv_ld_demangle=yes
25823 fi
25824 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25825 # Check if the GNU linker supports --demangle option
25826 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25827 gcc_cv_ld_demangle=yes
25828 fi
25829 fi
25830 if test x"$gcc_cv_ld_demangle" = xyes; then
25831
25832 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25833
25834 fi
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25836 $as_echo "$gcc_cv_ld_demangle" >&6; }
25837 fi
25838
25839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25840 $as_echo_n "checking linker plugin support... " >&6; }
25841 gcc_cv_lto_plugin=0
25842 if test -f liblto_plugin.la; then
25843 save_ld_ver="$ld_ver"
25844 save_ld_vers_major="$ld_vers_major"
25845 save_ld_vers_minor="$ld_vers_minor"
25846 save_ld_is_gold="$ld_is_gold"
25847
25848 ld_is_gold=no
25849
25850 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25851 ld_ver="GNU ld"
25852 # FIXME: ld_is_gold?
25853 ld_vers_major="$gcc_cv_gld_major_version"
25854 ld_vers_minor="$gcc_cv_gld_minor_version"
25855 else
25856 # Determine plugin linker version.
25857 # FIXME: Partial duplicate from above, generalize.
25858 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25859 if echo "$ld_ver" | grep GNU > /dev/null; then
25860 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25861 ld_is_gold=yes
25862 ld_vers=`echo $ld_ver | sed -n \
25863 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25864 else
25865 ld_vers=`echo $ld_ver | sed -n \
25866 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25867 fi
25868 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25869 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25870 fi
25871 fi
25872
25873 # Determine plugin support.
25874 if echo "$ld_ver" | grep GNU > /dev/null; then
25875 # Require GNU ld or gold 2.21+ for plugin support by default.
25876 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25877 gcc_cv_lto_plugin=2
25878 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25879 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25880 gcc_cv_lto_plugin=1
25881 fi
25882 fi
25883
25884 ld_ver="$save_ld_ver"
25885 ld_vers_major="$save_ld_vers_major"
25886 ld_vers_minor="$save_ld_vers_minor"
25887 ld_is_gold="$save_ld_is_gold"
25888 fi
25889
25890 cat >>confdefs.h <<_ACEOF
25891 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25892 _ACEOF
25893
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25895 $as_echo "$gcc_cv_lto_plugin" >&6; }
25896
25897 # Target OS-specific assembler checks.
25898
25899 case "$target_os" in
25900 darwin*)
25901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25902 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25903 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25904 $as_echo_n "(cached) " >&6
25905 else
25906 gcc_cv_as_mmacosx_version_min=no
25907 if test x$gcc_cv_as != x; then
25908 $as_echo '.text' > conftest.s
25909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25911 (eval $ac_try) 2>&5
25912 ac_status=$?
25913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25914 test $ac_status = 0; }; }
25915 then
25916 gcc_cv_as_mmacosx_version_min=yes
25917 else
25918 echo "configure: failed program was" >&5
25919 cat conftest.s >&5
25920 fi
25921 rm -f conftest.o conftest.s
25922 fi
25923 fi
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25925 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25926 if test $gcc_cv_as_mmacosx_version_min = yes; then
25927
25928 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25929
25930 fi
25931
25932 ;;
25933 esac
25934
25935 # Target CPU-specific assembler checks.
25936
25937 case "$target" in
25938 aarch64*-*-*)
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25940 $as_echo_n "checking assembler for -mabi option... " >&6; }
25941 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25942 $as_echo_n "(cached) " >&6
25943 else
25944 gcc_cv_as_aarch64_mabi=no
25945 if test x$gcc_cv_as != x; then
25946 $as_echo '.text' > conftest.s
25947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25949 (eval $ac_try) 2>&5
25950 ac_status=$?
25951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25952 test $ac_status = 0; }; }
25953 then
25954 gcc_cv_as_aarch64_mabi=yes
25955 else
25956 echo "configure: failed program was" >&5
25957 cat conftest.s >&5
25958 fi
25959 rm -f conftest.o conftest.s
25960 fi
25961 fi
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25963 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25964
25965
25966 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25967
25968 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25969
25970 else
25971 if test x$with_abi = xilp32; then
25972 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25973 Upgrade the Assembler." "$LINENO" 5
25974 fi
25975 if test x"$with_multilib_list" = xdefault; then
25976 TM_MULTILIB_CONFIG=lp64
25977 else
25978 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25979 for aarch64_multilib in ${aarch64_multilibs}; do
25980 case ${aarch64_multilib} in
25981 ilp32)
25982 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25983 Upgrade the Assembler." "$LINENO" 5
25984 ;;
25985 *)
25986 ;;
25987 esac
25988 done
25989 fi
25990 fi
25991 # Check if we have binutils support for relocations types needed by -fpic
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25993 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25994 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25995 $as_echo_n "(cached) " >&6
25996 else
25997 gcc_cv_as_aarch64_picreloc=no
25998 if test x$gcc_cv_as != x; then
25999 $as_echo '
26000 .text
26001 ldr x0, [x2, #:gotpage_lo15:globalsym]
26002 ' > conftest.s
26003 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26005 (eval $ac_try) 2>&5
26006 ac_status=$?
26007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26008 test $ac_status = 0; }; }
26009 then
26010 gcc_cv_as_aarch64_picreloc=yes
26011 else
26012 echo "configure: failed program was" >&5
26013 cat conftest.s >&5
26014 fi
26015 rm -f conftest.o conftest.s
26016 fi
26017 fi
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26019 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26020 if test $gcc_cv_as_aarch64_picreloc = yes; then
26021
26022 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26023
26024 fi
26025
26026 # Enable Branch Target Identification Mechanism and Return Address
26027 # Signing by default.
26028 # Check whether --enable-standard-branch-protection was given.
26029 if test "${enable_standard_branch_protection+set}" = set; then :
26030 enableval=$enable_standard_branch_protection;
26031 case $enableval in
26032 yes)
26033 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26034 ;;
26035 no)
26036 ;;
26037 *)
26038 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26039 Valid choices are 'yes' and 'no'." "$LINENO" 5
26040 ;;
26041 esac
26042
26043 fi
26044
26045 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26046 # Check whether --enable-fix-cortex-a53-835769 was given.
26047 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26048 enableval=$enable_fix_cortex_a53_835769;
26049 case $enableval in
26050 yes)
26051 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26052 ;;
26053 no)
26054 ;;
26055 *)
26056 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26057 Valid choices are 'yes' and 'no'." "$LINENO" 5
26058 ;;
26059
26060 esac
26061
26062 fi
26063
26064 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26065 # Check whether --enable-fix-cortex-a53-843419 was given.
26066 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26067 enableval=$enable_fix_cortex_a53_843419;
26068 case $enableval in
26069 yes)
26070 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26071 ;;
26072 no)
26073 ;;
26074 *)
26075 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26076 Valid choices are 'yes' and 'no'." "$LINENO" 5
26077 ;;
26078
26079 esac
26080
26081 fi
26082
26083 ;;
26084
26085 # All TARGET_ABI_OSF targets.
26086 alpha*-*-linux* | alpha*-*-*bsd*)
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26088 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26089 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26090 $as_echo_n "(cached) " >&6
26091 else
26092 gcc_cv_as_alpha_explicit_relocs=no
26093 if test $in_tree_gas = yes; then
26094 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
26095 then gcc_cv_as_alpha_explicit_relocs=yes
26096 fi
26097 elif test x$gcc_cv_as != x; then
26098 $as_echo ' .set nomacro
26099 .text
26100 extbl $3, $2, $3 !lituse_bytoff!1
26101 ldq $2, a($29) !literal!1
26102 ldq $4, b($29) !literal!2
26103 ldq_u $3, 0($2) !lituse_base!1
26104 ldq $27, f($29) !literal!5
26105 jsr $26, ($27), f !lituse_jsr!5
26106 ldah $29, 0($26) !gpdisp!3
26107 lda $0, c($29) !gprel
26108 ldah $1, d($29) !gprelhigh
26109 lda $1, d($1) !gprellow
26110 lda $29, 0($29) !gpdisp!3' > conftest.s
26111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26113 (eval $ac_try) 2>&5
26114 ac_status=$?
26115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26116 test $ac_status = 0; }; }
26117 then
26118 gcc_cv_as_alpha_explicit_relocs=yes
26119 else
26120 echo "configure: failed program was" >&5
26121 cat conftest.s >&5
26122 fi
26123 rm -f conftest.o conftest.s
26124 fi
26125 fi
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26127 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26128 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26129
26130 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26131
26132 fi
26133
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26135 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26136 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26137 $as_echo_n "(cached) " >&6
26138 else
26139 gcc_cv_as_alpha_jsrdirect_relocs=no
26140 if test $in_tree_gas = yes; then
26141 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
26142 then gcc_cv_as_alpha_jsrdirect_relocs=yes
26143 fi
26144 elif test x$gcc_cv_as != x; then
26145 $as_echo ' .set nomacro
26146 .text
26147 ldq $27, a($29) !literal!1
26148 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26151 (eval $ac_try) 2>&5
26152 ac_status=$?
26153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26154 test $ac_status = 0; }; }
26155 then
26156 gcc_cv_as_alpha_jsrdirect_relocs=yes
26157 else
26158 echo "configure: failed program was" >&5
26159 cat conftest.s >&5
26160 fi
26161 rm -f conftest.o conftest.s
26162 fi
26163 fi
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26165 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26166 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26167
26168 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26169
26170 fi
26171
26172 ;;
26173
26174 avr-*-*)
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26176 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26177 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26178 $as_echo_n "(cached) " >&6
26179 else
26180 gcc_cv_as_avr_mlink_relax=no
26181 if test x$gcc_cv_as != x; then
26182 $as_echo '.text' > conftest.s
26183 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26185 (eval $ac_try) 2>&5
26186 ac_status=$?
26187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26188 test $ac_status = 0; }; }
26189 then
26190 gcc_cv_as_avr_mlink_relax=yes
26191 else
26192 echo "configure: failed program was" >&5
26193 cat conftest.s >&5
26194 fi
26195 rm -f conftest.o conftest.s
26196 fi
26197 fi
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26199 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26200 if test $gcc_cv_as_avr_mlink_relax = yes; then
26201
26202 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26203
26204 fi
26205
26206
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26208 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26209 if ${gcc_cv_as_avr_mrmw+:} false; then :
26210 $as_echo_n "(cached) " >&6
26211 else
26212 gcc_cv_as_avr_mrmw=no
26213 if test x$gcc_cv_as != x; then
26214 $as_echo '.text' > conftest.s
26215 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26217 (eval $ac_try) 2>&5
26218 ac_status=$?
26219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26220 test $ac_status = 0; }; }
26221 then
26222 gcc_cv_as_avr_mrmw=yes
26223 else
26224 echo "configure: failed program was" >&5
26225 cat conftest.s >&5
26226 fi
26227 rm -f conftest.o conftest.s
26228 fi
26229 fi
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26231 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26232 if test $gcc_cv_as_avr_mrmw = yes; then
26233
26234 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26235
26236 fi
26237
26238
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26240 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26241 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26242 $as_echo_n "(cached) " >&6
26243 else
26244 gcc_cv_as_avr_mgccisr=no
26245 if test x$gcc_cv_as != x; then
26246 $as_echo '.text
26247 __gcc_isr 1
26248 __gcc_isr 2
26249 __gcc_isr 0,r24
26250 ' > conftest.s
26251 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26253 (eval $ac_try) 2>&5
26254 ac_status=$?
26255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26256 test $ac_status = 0; }; }
26257 then
26258 gcc_cv_as_avr_mgccisr=yes
26259 else
26260 echo "configure: failed program was" >&5
26261 cat conftest.s >&5
26262 fi
26263 rm -f conftest.o conftest.s
26264 fi
26265 fi
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26267 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26268 if test $gcc_cv_as_avr_mgccisr = yes; then
26269
26270 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26271
26272 fi
26273
26274
26275 # Check how default linker description file implements .rodata for
26276 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26277 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26279 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26280 cat > conftest.s <<EOF
26281 .section .rodata,"a",@progbits
26282 .global xxvaryy
26283 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26284 xxvaryy:
26285 .word 1
26286 EOF
26287 rm -f conftest.nm
26288 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26290 (eval $ac_try) 2>&5
26291 ac_status=$?
26292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26293 test $ac_status = 0; }; }
26294 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26296 (eval $ac_try) 2>&5
26297 ac_status=$?
26298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26299 test $ac_status = 0; }; }
26300 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26302 (eval $ac_try) 2>&5
26303 ac_status=$?
26304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26305 test $ac_status = 0; }; }
26306 if test -s conftest.nm
26307 then
26308 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26310 $as_echo "yes" >&6; }
26311
26312 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26313
26314 else
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26316 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26317 echo "$as_me: nm output was" >&5
26318 cat conftest.nm >&5
26319 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26320 { $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
26321 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26322 fi
26323 else
26324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26325 $as_echo "test failed" >&6; }
26326 echo "$as_me: failed program was" >&5
26327 cat conftest.s >&5
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26329 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26330 fi
26331 rm -f conftest.s conftest.o conftest.elf conftest.nm
26332 ;;
26333
26334 cris-*-*)
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26336 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26337 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26338 $as_echo_n "(cached) " >&6
26339 else
26340 gcc_cv_as_cris_no_mul_bug=no
26341 if test $in_tree_gas = yes; then
26342 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26343 then gcc_cv_as_cris_no_mul_bug=yes
26344 fi
26345 elif test x$gcc_cv_as != x; then
26346 $as_echo '.text' > conftest.s
26347 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26349 (eval $ac_try) 2>&5
26350 ac_status=$?
26351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26352 test $ac_status = 0; }; }
26353 then
26354 gcc_cv_as_cris_no_mul_bug=yes
26355 else
26356 echo "configure: failed program was" >&5
26357 cat conftest.s >&5
26358 fi
26359 rm -f conftest.o conftest.s
26360 fi
26361 fi
26362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26363 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26364 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26365
26366 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26367
26368 fi
26369
26370 ;;
26371
26372 sparc*-*-*)
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26374 $as_echo_n "checking assembler for -relax option... " >&6; }
26375 if ${gcc_cv_as_sparc_relax+:} false; then :
26376 $as_echo_n "(cached) " >&6
26377 else
26378 gcc_cv_as_sparc_relax=no
26379 if test x$gcc_cv_as != x; then
26380 $as_echo '.text' > conftest.s
26381 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26383 (eval $ac_try) 2>&5
26384 ac_status=$?
26385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26386 test $ac_status = 0; }; }
26387 then
26388 gcc_cv_as_sparc_relax=yes
26389 else
26390 echo "configure: failed program was" >&5
26391 cat conftest.s >&5
26392 fi
26393 rm -f conftest.o conftest.s
26394 fi
26395 fi
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26397 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26398 if test $gcc_cv_as_sparc_relax = yes; then
26399
26400 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26401
26402 fi
26403
26404
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26406 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26407 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26408 $as_echo_n "(cached) " >&6
26409 else
26410 gcc_cv_as_sparc_gotdata_op=no
26411 if test x$gcc_cv_as != x; then
26412 $as_echo '.text
26413 .align 4
26414 foo:
26415 nop
26416 bar:
26417 sethi %gdop_hix22(foo), %g1
26418 xor %g1, %gdop_lox10(foo), %g1
26419 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26420 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26422 (eval $ac_try) 2>&5
26423 ac_status=$?
26424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26425 test $ac_status = 0; }; }
26426 then
26427 if test x$gcc_cv_ld != x \
26428 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26429 if test x$gcc_cv_objdump != x; then
26430 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26431 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26432 gcc_cv_as_sparc_gotdata_op=no
26433 else
26434 gcc_cv_as_sparc_gotdata_op=yes
26435 fi
26436 fi
26437 fi
26438 rm -f conftest
26439 else
26440 echo "configure: failed program was" >&5
26441 cat conftest.s >&5
26442 fi
26443 rm -f conftest.o conftest.s
26444 fi
26445 fi
26446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26447 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26448 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26449
26450 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26451
26452 fi
26453
26454
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26456 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26457 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26458 $as_echo_n "(cached) " >&6
26459 else
26460 gcc_cv_as_sparc_ua_pcrel=no
26461 if test x$gcc_cv_as != x; then
26462 $as_echo '.text
26463 foo:
26464 nop
26465 .data
26466 .align 4
26467 .byte 0
26468 .uaword %r_disp32(foo)' > conftest.s
26469 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26471 (eval $ac_try) 2>&5
26472 ac_status=$?
26473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26474 test $ac_status = 0; }; }
26475 then
26476 if test x$gcc_cv_ld != x \
26477 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26478 gcc_cv_as_sparc_ua_pcrel=yes
26479 fi
26480 rm -f conftest
26481 else
26482 echo "configure: failed program was" >&5
26483 cat conftest.s >&5
26484 fi
26485 rm -f conftest.o conftest.s
26486 fi
26487 fi
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26489 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26490 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26491
26492 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26493
26494
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26496 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26497 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26498 $as_echo_n "(cached) " >&6
26499 else
26500 gcc_cv_as_sparc_ua_pcrel_hidden=no
26501 if test x$gcc_cv_as != x; then
26502 $as_echo '.data
26503 .align 4
26504 .byte 0x31
26505 .uaword %r_disp32(foo)
26506 .byte 0x32, 0x33, 0x34
26507 .global foo
26508 .hidden foo
26509 foo:
26510 .skip 4' > conftest.s
26511 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26513 (eval $ac_try) 2>&5
26514 ac_status=$?
26515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26516 test $ac_status = 0; }; }
26517 then
26518 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26519 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26520 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26521 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26522 if $gcc_cv_objdump -R conftest 2> /dev/null \
26523 | grep 'DISP32' > /dev/null 2>&1; then
26524 :
26525 else
26526 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26527 fi
26528 fi
26529 rm -f conftest
26530 else
26531 echo "configure: failed program was" >&5
26532 cat conftest.s >&5
26533 fi
26534 rm -f conftest.o conftest.s
26535 fi
26536 fi
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26538 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26539 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26540
26541 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26542
26543 fi
26544
26545
26546 fi
26547 # unaligned pcrel relocs
26548
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26550 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26551 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26552 $as_echo_n "(cached) " >&6
26553 else
26554 gcc_cv_as_sparc_offsetable_lo10=no
26555 if test x$gcc_cv_as != x; then
26556 $as_echo '.text
26557 or %g1, %lo(ab) + 12, %g1
26558 or %g1, %lo(ab + 12), %g1' > conftest.s
26559 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26561 (eval $ac_try) 2>&5
26562 ac_status=$?
26563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26564 test $ac_status = 0; }; }
26565 then
26566 if test x$gcc_cv_objdump != x \
26567 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26568 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26569 gcc_cv_as_sparc_offsetable_lo10=yes
26570 fi
26571 else
26572 echo "configure: failed program was" >&5
26573 cat conftest.s >&5
26574 fi
26575 rm -f conftest.o conftest.s
26576 fi
26577 fi
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26579 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26580 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26581
26582 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26583
26584 fi
26585
26586
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26588 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26589 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26590 $as_echo_n "(cached) " >&6
26591 else
26592 gcc_cv_as_sparc_fmaf=no
26593 if test x$gcc_cv_as != x; then
26594 $as_echo '.text
26595 .register %g2, #scratch
26596 .register %g3, #scratch
26597 .align 4
26598 fmaddd %f0, %f2, %f4, %f6
26599 addxccc %g1, %g2, %g3
26600 fsrl32 %f2, %f4, %f8
26601 fnaddd %f10, %f12, %f14' > conftest.s
26602 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26604 (eval $ac_try) 2>&5
26605 ac_status=$?
26606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26607 test $ac_status = 0; }; }
26608 then
26609 gcc_cv_as_sparc_fmaf=yes
26610 else
26611 echo "configure: failed program was" >&5
26612 cat conftest.s >&5
26613 fi
26614 rm -f conftest.o conftest.s
26615 fi
26616 fi
26617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26618 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26619 if test $gcc_cv_as_sparc_fmaf = yes; then
26620
26621 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26622
26623 fi
26624
26625
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26627 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26628 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26629 $as_echo_n "(cached) " >&6
26630 else
26631 gcc_cv_as_sparc_sparc4=no
26632 if test x$gcc_cv_as != x; then
26633 $as_echo '.text
26634 .register %g2, #scratch
26635 .register %g3, #scratch
26636 .align 4
26637 cxbe %g2, %g3, 1f
26638 1: cwbneg %g2, %g3, 1f
26639 1: sha1
26640 md5
26641 aes_kexpand0 %f4, %f6, %f8
26642 des_round %f38, %f40, %f42, %f44
26643 camellia_f %f54, %f56, %f58, %f60
26644 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26645 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26647 (eval $ac_try) 2>&5
26648 ac_status=$?
26649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26650 test $ac_status = 0; }; }
26651 then
26652 gcc_cv_as_sparc_sparc4=yes
26653 else
26654 echo "configure: failed program was" >&5
26655 cat conftest.s >&5
26656 fi
26657 rm -f conftest.o conftest.s
26658 fi
26659 fi
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26661 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26662 if test $gcc_cv_as_sparc_sparc4 = yes; then
26663
26664 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26665
26666 fi
26667
26668
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26670 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26671 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26672 $as_echo_n "(cached) " >&6
26673 else
26674 gcc_cv_as_sparc_sparc5=no
26675 if test x$gcc_cv_as != x; then
26676 $as_echo '.text
26677 .register %g2, #scratch
26678 .register %g3, #scratch
26679 .align 4
26680 subxc %g1, %g2, %g3
26681 fpadd8 %f0, %f2, %f4' > conftest.s
26682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26684 (eval $ac_try) 2>&5
26685 ac_status=$?
26686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26687 test $ac_status = 0; }; }
26688 then
26689 gcc_cv_as_sparc_sparc5=yes
26690 else
26691 echo "configure: failed program was" >&5
26692 cat conftest.s >&5
26693 fi
26694 rm -f conftest.o conftest.s
26695 fi
26696 fi
26697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26698 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26699 if test $gcc_cv_as_sparc_sparc5 = yes; then
26700
26701 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26702
26703 fi
26704
26705
26706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26707 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26708 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26709 $as_echo_n "(cached) " >&6
26710 else
26711 gcc_cv_as_sparc_sparc6=no
26712 if test x$gcc_cv_as != x; then
26713 $as_echo '.text
26714 .register %g2, #scratch
26715 .register %g3, #scratch
26716 .align 4
26717 rd %entropy, %g1
26718 fpsll64x %f0, %f2, %f4' > conftest.s
26719 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26721 (eval $ac_try) 2>&5
26722 ac_status=$?
26723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26724 test $ac_status = 0; }; }
26725 then
26726 gcc_cv_as_sparc_sparc6=yes
26727 else
26728 echo "configure: failed program was" >&5
26729 cat conftest.s >&5
26730 fi
26731 rm -f conftest.o conftest.s
26732 fi
26733 fi
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26735 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26736 if test $gcc_cv_as_sparc_sparc6 = yes; then
26737
26738 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26739
26740 fi
26741
26742
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26744 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26745 if ${gcc_cv_as_sparc_leon+:} false; then :
26746 $as_echo_n "(cached) " >&6
26747 else
26748 gcc_cv_as_sparc_leon=no
26749 if test x$gcc_cv_as != x; then
26750 $as_echo '.text
26751 .register %g2, #scratch
26752 .register %g3, #scratch
26753 .align 4
26754 smac %g2, %g3, %g1
26755 umac %g2, %g3, %g1
26756 casa [%g2] 0xb, %g3, %g1' > conftest.s
26757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26759 (eval $ac_try) 2>&5
26760 ac_status=$?
26761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26762 test $ac_status = 0; }; }
26763 then
26764 gcc_cv_as_sparc_leon=yes
26765 else
26766 echo "configure: failed program was" >&5
26767 cat conftest.s >&5
26768 fi
26769 rm -f conftest.o conftest.s
26770 fi
26771 fi
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26773 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26774 if test $gcc_cv_as_sparc_leon = yes; then
26775
26776 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26777
26778 fi
26779
26780 ;;
26781
26782 i[34567]86-*-* | x86_64-*-*)
26783 case $target_os in
26784 cygwin*)
26785 # Full C++ conformance when using a shared libstdc++-v3 requires some
26786 # support from the Cygwin DLL, which in more recent versions exports
26787 # wrappers to aid in interposing and redirecting operators new, delete,
26788 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26789 # are configuring for a version of Cygwin that exports the wrappers.
26790 if test x$host = x$target && test x$host_cpu = xi686; then
26791 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26792 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26793 gcc_ac_cygwin_dll_wrappers=yes
26794 else
26795 gcc_ac_cygwin_dll_wrappers=no
26796 fi
26797
26798 else
26799 # Can't check presence of libc functions during cross-compile, so
26800 # we just have to assume we're building for an up-to-date target.
26801 gcc_ac_cygwin_dll_wrappers=yes
26802 fi
26803
26804 cat >>confdefs.h <<_ACEOF
26805 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26806 _ACEOF
26807
26808 esac
26809 case $target_os in
26810 cygwin* | pe | mingw32*)
26811 # Recent binutils allows the three-operand form of ".comm" on PE. This
26812 # definition is used unconditionally to initialise the default state of
26813 # the target option variable that governs usage of the feature.
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26815 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26816 if ${gcc_cv_as_comm_has_align+:} false; then :
26817 $as_echo_n "(cached) " >&6
26818 else
26819 gcc_cv_as_comm_has_align=no
26820 if test $in_tree_gas = yes; then
26821 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26822 then gcc_cv_as_comm_has_align=yes
26823 fi
26824 elif test x$gcc_cv_as != x; then
26825 $as_echo '.comm foo,1,32' > conftest.s
26826 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26828 (eval $ac_try) 2>&5
26829 ac_status=$?
26830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26831 test $ac_status = 0; }; }
26832 then
26833 gcc_cv_as_comm_has_align=yes
26834 else
26835 echo "configure: failed program was" >&5
26836 cat conftest.s >&5
26837 fi
26838 rm -f conftest.o conftest.s
26839 fi
26840 fi
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26842 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26843
26844
26845
26846 cat >>confdefs.h <<_ACEOF
26847 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26848 _ACEOF
26849
26850 # Used for DWARF 2 in PE
26851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26852 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26853 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26854 $as_echo_n "(cached) " >&6
26855 else
26856 gcc_cv_as_ix86_pe_secrel32=no
26857 if test $in_tree_gas = yes; then
26858 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26859 then gcc_cv_as_ix86_pe_secrel32=yes
26860 fi
26861 elif test x$gcc_cv_as != x; then
26862 $as_echo '.text
26863 foo: nop
26864 .data
26865 .secrel32 foo' > conftest.s
26866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26868 (eval $ac_try) 2>&5
26869 ac_status=$?
26870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26871 test $ac_status = 0; }; }
26872 then
26873 if test x$gcc_cv_ld != x \
26874 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26875 gcc_cv_as_ix86_pe_secrel32=yes
26876 fi
26877 rm -f conftest
26878 else
26879 echo "configure: failed program was" >&5
26880 cat conftest.s >&5
26881 fi
26882 rm -f conftest.o conftest.s
26883 fi
26884 fi
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26886 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26887 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26888
26889 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26890
26891 fi
26892
26893 # Test if the assembler supports the extended form of the .section
26894 # directive that specifies section alignment. LTO support uses this,
26895 # but normally only after installation, so we warn but don't fail the
26896 # configure if LTO is enabled but the assembler does not support it.
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26898 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26899 if ${gcc_cv_as_section_has_align+:} false; then :
26900 $as_echo_n "(cached) " >&6
26901 else
26902 gcc_cv_as_section_has_align=no
26903 if test $in_tree_gas = yes; then
26904 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26905 then gcc_cv_as_section_has_align=yes
26906 fi
26907 elif test x$gcc_cv_as != x; then
26908 $as_echo '.section lto_test,"dr0"' > conftest.s
26909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26911 (eval $ac_try) 2>&5
26912 ac_status=$?
26913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26914 test $ac_status = 0; }; }
26915 then
26916 gcc_cv_as_section_has_align=yes
26917 else
26918 echo "configure: failed program was" >&5
26919 cat conftest.s >&5
26920 fi
26921 rm -f conftest.o conftest.s
26922 fi
26923 fi
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26925 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26926
26927
26928 if test x$gcc_cv_as_section_has_align != xyes; then
26929 case ",$enable_languages," in
26930 *,lto,*)
26931 { $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
26932 $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;}
26933 ;;
26934 esac
26935 fi
26936 ;;
26937 esac
26938
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26940 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26941 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26942 $as_echo_n "(cached) " >&6
26943 else
26944 gcc_cv_as_ix86_xbrace_comment=no
26945 if test x$gcc_cv_as != x; then
26946 $as_echo '.text' > conftest.s
26947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26949 (eval $ac_try) 2>&5
26950 ac_status=$?
26951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26952 test $ac_status = 0; }; }
26953 then
26954 gcc_cv_as_ix86_xbrace_comment=yes
26955 else
26956 echo "configure: failed program was" >&5
26957 cat conftest.s >&5
26958 fi
26959 rm -f conftest.o conftest.s
26960 fi
26961 fi
26962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26963 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26964 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26965
26966 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26967
26968 fi
26969
26970
26971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26972 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26973 if ${gcc_cv_as_ix86_filds+:} false; then :
26974 $as_echo_n "(cached) " >&6
26975 else
26976 gcc_cv_as_ix86_filds=no
26977 if test x$gcc_cv_as != x; then
26978 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26979 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26981 (eval $ac_try) 2>&5
26982 ac_status=$?
26983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26984 test $ac_status = 0; }; }
26985 then
26986 gcc_cv_as_ix86_filds=yes
26987 else
26988 echo "configure: failed program was" >&5
26989 cat conftest.s >&5
26990 fi
26991 rm -f conftest.o conftest.s
26992 fi
26993 fi
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26995 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26996 if test $gcc_cv_as_ix86_filds = yes; then
26997
26998 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26999
27000 fi
27001
27002
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27004 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27005 if ${gcc_cv_as_ix86_fildq+:} false; then :
27006 $as_echo_n "(cached) " >&6
27007 else
27008 gcc_cv_as_ix86_fildq=no
27009 if test x$gcc_cv_as != x; then
27010 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27011 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27013 (eval $ac_try) 2>&5
27014 ac_status=$?
27015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27016 test $ac_status = 0; }; }
27017 then
27018 gcc_cv_as_ix86_fildq=yes
27019 else
27020 echo "configure: failed program was" >&5
27021 cat conftest.s >&5
27022 fi
27023 rm -f conftest.o conftest.s
27024 fi
27025 fi
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27027 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27028 if test $gcc_cv_as_ix86_fildq = yes; then
27029
27030 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27031
27032 fi
27033
27034
27035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27036 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27037 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27038 $as_echo_n "(cached) " >&6
27039 else
27040 gcc_cv_as_ix86_cmov_sun_syntax=no
27041 if test x$gcc_cv_as != x; then
27042 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27045 (eval $ac_try) 2>&5
27046 ac_status=$?
27047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27048 test $ac_status = 0; }; }
27049 then
27050 gcc_cv_as_ix86_cmov_sun_syntax=yes
27051 else
27052 echo "configure: failed program was" >&5
27053 cat conftest.s >&5
27054 fi
27055 rm -f conftest.o conftest.s
27056 fi
27057 fi
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27059 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27060 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27061
27062 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27063
27064 fi
27065
27066
27067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27068 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27069 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27070 $as_echo_n "(cached) " >&6
27071 else
27072 gcc_cv_as_ix86_ffreep=no
27073 if test x$gcc_cv_as != x; then
27074 $as_echo 'ffreep %st(1)' > conftest.s
27075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27077 (eval $ac_try) 2>&5
27078 ac_status=$?
27079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27080 test $ac_status = 0; }; }
27081 then
27082 gcc_cv_as_ix86_ffreep=yes
27083 else
27084 echo "configure: failed program was" >&5
27085 cat conftest.s >&5
27086 fi
27087 rm -f conftest.o conftest.s
27088 fi
27089 fi
27090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27091 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27092 if test $gcc_cv_as_ix86_ffreep = yes; then
27093
27094 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27095
27096 fi
27097
27098
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27100 $as_echo_n "checking assembler for .quad directive... " >&6; }
27101 if ${gcc_cv_as_ix86_quad+:} false; then :
27102 $as_echo_n "(cached) " >&6
27103 else
27104 gcc_cv_as_ix86_quad=no
27105 if test x$gcc_cv_as != x; then
27106 $as_echo '.quad 0' > conftest.s
27107 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27109 (eval $ac_try) 2>&5
27110 ac_status=$?
27111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27112 test $ac_status = 0; }; }
27113 then
27114 gcc_cv_as_ix86_quad=yes
27115 else
27116 echo "configure: failed program was" >&5
27117 cat conftest.s >&5
27118 fi
27119 rm -f conftest.o conftest.s
27120 fi
27121 fi
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27123 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27124 if test $gcc_cv_as_ix86_quad = yes; then
27125
27126 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27127
27128 fi
27129
27130
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27132 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27133 if ${gcc_cv_as_ix86_sahf+:} false; then :
27134 $as_echo_n "(cached) " >&6
27135 else
27136 gcc_cv_as_ix86_sahf=no
27137 if test x$gcc_cv_as != x; then
27138 $as_echo '.code64
27139 sahf' > conftest.s
27140 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27142 (eval $ac_try) 2>&5
27143 ac_status=$?
27144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27145 test $ac_status = 0; }; }
27146 then
27147 gcc_cv_as_ix86_sahf=yes
27148 else
27149 echo "configure: failed program was" >&5
27150 cat conftest.s >&5
27151 fi
27152 rm -f conftest.o conftest.s
27153 fi
27154 fi
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27156 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27157 if test $gcc_cv_as_ix86_sahf = yes; then
27158
27159 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27160
27161 fi
27162
27163
27164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27165 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27166 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27167 $as_echo_n "(cached) " >&6
27168 else
27169 gcc_cv_as_ix86_interunit_movq=no
27170 if test x$gcc_cv_as != x; then
27171 $as_echo '.code64
27172 movq %mm0, %rax
27173 movq %rax, %xmm0' > 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_interunit_movq=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_interunit_movq" >&5
27190 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27191
27192
27193
27194 cat >>confdefs.h <<_ACEOF
27195 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27196 _ACEOF
27197
27198
27199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27200 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27201 if ${gcc_cv_as_ix86_hle+:} false; then :
27202 $as_echo_n "(cached) " >&6
27203 else
27204 gcc_cv_as_ix86_hle=no
27205 if test x$gcc_cv_as != x; then
27206 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27209 (eval $ac_try) 2>&5
27210 ac_status=$?
27211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27212 test $ac_status = 0; }; }
27213 then
27214 gcc_cv_as_ix86_hle=yes
27215 else
27216 echo "configure: failed program was" >&5
27217 cat conftest.s >&5
27218 fi
27219 rm -f conftest.o conftest.s
27220 fi
27221 fi
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27223 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27224 if test $gcc_cv_as_ix86_hle = yes; then
27225
27226 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27227
27228 fi
27229
27230
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27232 $as_echo_n "checking assembler for swap suffix... " >&6; }
27233 if ${gcc_cv_as_ix86_swap+:} false; then :
27234 $as_echo_n "(cached) " >&6
27235 else
27236 gcc_cv_as_ix86_swap=no
27237 if test x$gcc_cv_as != x; then
27238 $as_echo 'movl.s %esp, %ebp' > conftest.s
27239 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27241 (eval $ac_try) 2>&5
27242 ac_status=$?
27243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27244 test $ac_status = 0; }; }
27245 then
27246 gcc_cv_as_ix86_swap=yes
27247 else
27248 echo "configure: failed program was" >&5
27249 cat conftest.s >&5
27250 fi
27251 rm -f conftest.o conftest.s
27252 fi
27253 fi
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27255 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27256 if test $gcc_cv_as_ix86_swap = yes; then
27257
27258 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27259
27260 fi
27261
27262
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27264 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27265 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27266 $as_echo_n "(cached) " >&6
27267 else
27268 gcc_cv_as_ix86_diff_sect_delta=no
27269 if test x$gcc_cv_as != x; then
27270 $as_echo '.section .rodata
27271 .L1:
27272 .long .L2-.L1
27273 .long .L3-.L1
27274 .text
27275 .L3: nop
27276 .L2: nop' > conftest.s
27277 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27279 (eval $ac_try) 2>&5
27280 ac_status=$?
27281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27282 test $ac_status = 0; }; }
27283 then
27284 gcc_cv_as_ix86_diff_sect_delta=yes
27285 else
27286 echo "configure: failed program was" >&5
27287 cat conftest.s >&5
27288 fi
27289 rm -f conftest.o conftest.s
27290 fi
27291 fi
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27293 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27294 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27295
27296 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27297
27298 fi
27299
27300
27301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27302 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27303 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27304 $as_echo_n "(cached) " >&6
27305 else
27306 gcc_cv_as_ix86_rep_lock_prefix=no
27307 if test x$gcc_cv_as != x; then
27308 $as_echo 'rep movsl
27309 rep ret
27310 rep nop
27311 rep bsf %ecx, %eax
27312 rep bsr %ecx, %eax
27313 lock addl %edi, (%eax,%esi)
27314 lock orl $0, (%esp)' > conftest.s
27315 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27317 (eval $ac_try) 2>&5
27318 ac_status=$?
27319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27320 test $ac_status = 0; }; }
27321 then
27322 gcc_cv_as_ix86_rep_lock_prefix=yes
27323 else
27324 echo "configure: failed program was" >&5
27325 cat conftest.s >&5
27326 fi
27327 rm -f conftest.o conftest.s
27328 fi
27329 fi
27330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27331 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27332 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27333
27334 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27335
27336 fi
27337
27338
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27340 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27341 if ${gcc_cv_as_ix86_ud2+:} false; then :
27342 $as_echo_n "(cached) " >&6
27343 else
27344 gcc_cv_as_ix86_ud2=no
27345 if test x$gcc_cv_as != x; then
27346 $as_echo 'ud2' > conftest.s
27347 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27349 (eval $ac_try) 2>&5
27350 ac_status=$?
27351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27352 test $ac_status = 0; }; }
27353 then
27354 gcc_cv_as_ix86_ud2=yes
27355 else
27356 echo "configure: failed program was" >&5
27357 cat conftest.s >&5
27358 fi
27359 rm -f conftest.o conftest.s
27360 fi
27361 fi
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27363 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27364 if test $gcc_cv_as_ix86_ud2 = yes; then
27365
27366 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27367
27368 fi
27369
27370
27371 # Enforce 32-bit output with gas and gld.
27372 if test x$gas = xyes; then
27373 as_ix86_gas_32_opt="--32"
27374 fi
27375 if echo "$ld_ver" | grep GNU > /dev/null; then
27376 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27377 ld_ix86_gld_32_opt="-melf_i386_sol2"
27378 else
27379 ld_ix86_gld_32_opt="-melf_i386"
27380 fi
27381 fi
27382
27383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27384 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27385 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27386 $as_echo_n "(cached) " >&6
27387 else
27388 gcc_cv_as_ix86_tlsgdplt=no
27389 if test x$gcc_cv_as != x; then
27390 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27393 (eval $ac_try) 2>&5
27394 ac_status=$?
27395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27396 test $ac_status = 0; }; }
27397 then
27398 if test x$gcc_cv_ld != x \
27399 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27400 gcc_cv_as_ix86_tlsgdplt=yes
27401 fi
27402 rm -f conftest
27403 else
27404 echo "configure: failed program was" >&5
27405 cat conftest.s >&5
27406 fi
27407 rm -f conftest.o conftest.s
27408 fi
27409 fi
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27411 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27412 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27413
27414 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27415
27416 fi
27417
27418
27419 conftest_s='
27420 .section .tdata,"aw'$tls_section_flag'",@progbits
27421 tls_ld:
27422 .section .text,"ax",@progbits
27423 call tls_ld@tlsldmplt'
27424
27425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27426 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27427 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27428 $as_echo_n "(cached) " >&6
27429 else
27430 gcc_cv_as_ix86_tlsldmplt=no
27431 if test x$gcc_cv_as != x; then
27432 $as_echo "$conftest_s" > conftest.s
27433 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27435 (eval $ac_try) 2>&5
27436 ac_status=$?
27437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27438 test $ac_status = 0; }; }
27439 then
27440 if test x$gcc_cv_ld != x \
27441 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27442 gcc_cv_as_ix86_tlsldmplt=yes
27443 fi
27444 rm -f conftest
27445 else
27446 echo "configure: failed program was" >&5
27447 cat conftest.s >&5
27448 fi
27449 rm -f conftest.o conftest.s
27450 fi
27451 fi
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27453 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27454
27455
27456
27457 cat >>confdefs.h <<_ACEOF
27458 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27459 _ACEOF
27460
27461
27462 conftest_s='
27463 .section .text,"ax",@progbits
27464 .globl _start
27465 .type _start, @function
27466 _start:
27467 leal value@tlsldm(%ebx), %eax
27468 call ___tls_get_addr@plt
27469
27470 .section .tdata,"aw'$tls_section_flag'",@progbits
27471 .type value, @object
27472 value:'
27473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27474 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27475 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27476 $as_echo_n "(cached) " >&6
27477 else
27478 gcc_cv_as_ix86_tlsldm=no
27479 if test x$gcc_cv_as != x; then
27480 $as_echo "$conftest_s" > conftest.s
27481 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27483 (eval $ac_try) 2>&5
27484 ac_status=$?
27485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27486 test $ac_status = 0; }; }
27487 then
27488 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27489 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27490 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27491 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27492 gcc_cv_as_ix86_tlsldm=yes
27493 fi
27494 fi
27495 rm -f conftest
27496 else
27497 echo "configure: failed program was" >&5
27498 cat conftest.s >&5
27499 fi
27500 rm -f conftest.o conftest.s
27501 fi
27502 fi
27503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27504 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27505
27506
27507
27508 cat >>confdefs.h <<_ACEOF
27509 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27510 _ACEOF
27511
27512
27513 conftest_s='
27514 .data
27515 bar:
27516 .byte 1
27517 .text
27518 .global _start
27519 _start:
27520 cmpl $0, bar@GOT
27521 jmp *_start@GOT'
27522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27523 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27524 if ${gcc_cv_as_ix86_got32x+:} false; then :
27525 $as_echo_n "(cached) " >&6
27526 else
27527 gcc_cv_as_ix86_got32x=no
27528 if test x$gcc_cv_as != x; then
27529 $as_echo "$conftest_s" > conftest.s
27530 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27532 (eval $ac_try) 2>&5
27533 ac_status=$?
27534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27535 test $ac_status = 0; }; }
27536 then
27537 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27538 && test x$gcc_cv_readelf != x \
27539 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27540 | grep R_386_GOT32X > /dev/null 2>&1 \
27541 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27542 if $gcc_cv_objdump -dw conftest 2>&1 \
27543 | grep 0xffffff > /dev/null 2>&1; then
27544 gcc_cv_as_ix86_got32x=no
27545 else
27546 gcc_cv_as_ix86_got32x=yes
27547 fi
27548 fi
27549 rm -f conftest
27550 else
27551 echo "configure: failed program was" >&5
27552 cat conftest.s >&5
27553 fi
27554 rm -f conftest.o conftest.s
27555 fi
27556 fi
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27558 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27559
27560
27561
27562 cat >>confdefs.h <<_ACEOF
27563 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27564 _ACEOF
27565
27566
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27568 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27569 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27570 $as_echo_n "(cached) " >&6
27571 else
27572 gcc_cv_as_ix86_gotoff_in_data=no
27573 if test $in_tree_gas = yes; then
27574 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27575 then gcc_cv_as_ix86_gotoff_in_data=yes
27576 fi
27577 elif test x$gcc_cv_as != x; then
27578 $as_echo ' .text
27579 .L0:
27580 nop
27581 .data
27582 .long .L0@GOTOFF' > conftest.s
27583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27585 (eval $ac_try) 2>&5
27586 ac_status=$?
27587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27588 test $ac_status = 0; }; }
27589 then
27590 gcc_cv_as_ix86_gotoff_in_data=yes
27591 else
27592 echo "configure: failed program was" >&5
27593 cat conftest.s >&5
27594 fi
27595 rm -f conftest.o conftest.s
27596 fi
27597 fi
27598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27599 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27600
27601
27602
27603 cat >>confdefs.h <<_ACEOF
27604 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27605 _ACEOF
27606
27607
27608 conftest_s='
27609 .section .text,"ax",@progbits
27610 .globl _start
27611 .type _start, @function
27612 _start:
27613 leal ld@tlsldm(%ecx), %eax
27614 call *___tls_get_addr@GOT(%ecx)
27615 leal gd@tlsgd(%ecx), %eax
27616 call *___tls_get_addr@GOT(%ecx)
27617
27618 .section .tdata,"aw'$tls_section_flag'",@progbits
27619 .type ld, @object
27620 ld:
27621 .byte 0
27622 .globl gd
27623 .type gd, @object
27624 gd:
27625 .byte 0'
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27627 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27628 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27629 $as_echo_n "(cached) " >&6
27630 else
27631 gcc_cv_as_ix86_tls_get_addr_via_got=no
27632 if test x$gcc_cv_as != x; then
27633 $as_echo "$conftest_s" > conftest.s
27634 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27636 (eval $ac_try) 2>&5
27637 ac_status=$?
27638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27639 test $ac_status = 0; }; }
27640 then
27641 if test x$gcc_cv_ld != x \
27642 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27643 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27644 fi
27645 rm -f conftest
27646 else
27647 echo "configure: failed program was" >&5
27648 cat conftest.s >&5
27649 fi
27650 rm -f conftest.o conftest.s
27651 fi
27652 fi
27653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27654 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27655
27656
27657
27658 cat >>confdefs.h <<_ACEOF
27659 #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`
27660 _ACEOF
27661
27662 ;;
27663
27664 ia64*-*-*)
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27666 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27667 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27668 $as_echo_n "(cached) " >&6
27669 else
27670 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27671 if test $in_tree_gas = yes; then
27672 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27673 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27674 fi
27675 elif test x$gcc_cv_as != x; then
27676 $as_echo ' .text
27677 addl r15 = @ltoffx(x#), gp
27678 ;;
27679 ld8.mov r16 = [r15], x#
27680 ' > conftest.s
27681 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27683 (eval $ac_try) 2>&5
27684 ac_status=$?
27685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27686 test $ac_status = 0; }; }
27687 then
27688 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27689 else
27690 echo "configure: failed program was" >&5
27691 cat conftest.s >&5
27692 fi
27693 rm -f conftest.o conftest.s
27694 fi
27695 fi
27696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27697 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27698 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27699
27700 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27701
27702 fi
27703
27704
27705 ;;
27706
27707 powerpc*-*-*)
27708
27709 case $target in
27710 *-*-darwin*)
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27712 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27713 if ${gcc_cv_as_machine_directive+:} false; then :
27714 $as_echo_n "(cached) " >&6
27715 else
27716 gcc_cv_as_machine_directive=no
27717 if test x$gcc_cv_as != x; then
27718 $as_echo ' .machine ppc7400' > conftest.s
27719 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27721 (eval $ac_try) 2>&5
27722 ac_status=$?
27723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27724 test $ac_status = 0; }; }
27725 then
27726 gcc_cv_as_machine_directive=yes
27727 else
27728 echo "configure: failed program was" >&5
27729 cat conftest.s >&5
27730 fi
27731 rm -f conftest.o conftest.s
27732 fi
27733 fi
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27735 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27736
27737
27738 if test x$gcc_cv_as_machine_directive != xyes; then
27739 echo "*** This target requires an assembler supporting \".machine\"" >&2
27740 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27741 test x$build = x$target && exit 1
27742 fi
27743 ;;
27744 esac
27745
27746 case $target in
27747 *-*-aix*) conftest_s=' .machine "pwr5"
27748 .csect .text[PR]
27749 mfcr 3,128';;
27750 *-*-darwin*) conftest_s=' .text
27751 mfcr r3,128';;
27752 *) conftest_s=' .machine power4
27753 .text
27754 mfcr 3,128';;
27755 esac
27756
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27758 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27759 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27760 $as_echo_n "(cached) " >&6
27761 else
27762 gcc_cv_as_powerpc_mfcrf=no
27763 if test $in_tree_gas = yes; then
27764 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27765 then gcc_cv_as_powerpc_mfcrf=yes
27766 fi
27767 elif test x$gcc_cv_as != x; then
27768 $as_echo "$conftest_s" > conftest.s
27769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27771 (eval $ac_try) 2>&5
27772 ac_status=$?
27773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27774 test $ac_status = 0; }; }
27775 then
27776 gcc_cv_as_powerpc_mfcrf=yes
27777 else
27778 echo "configure: failed program was" >&5
27779 cat conftest.s >&5
27780 fi
27781 rm -f conftest.o conftest.s
27782 fi
27783 fi
27784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27785 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27786 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27787
27788 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27789
27790 fi
27791
27792
27793 case $target in
27794 *-*-aix*) conftest_s=' .csect .text[PR]
27795 LCF..0:
27796 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27797 *-*-darwin*)
27798 conftest_s=' .text
27799 LCF0:
27800 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27801 *) conftest_s=' .text
27802 .LCF0:
27803 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27804 esac
27805
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27807 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27808 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27809 $as_echo_n "(cached) " >&6
27810 else
27811 gcc_cv_as_powerpc_rel16=no
27812 if test $in_tree_gas = yes; then
27813 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27814 then gcc_cv_as_powerpc_rel16=yes
27815 fi
27816 elif test x$gcc_cv_as != x; then
27817 $as_echo "$conftest_s" > conftest.s
27818 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27820 (eval $ac_try) 2>&5
27821 ac_status=$?
27822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27823 test $ac_status = 0; }; }
27824 then
27825 gcc_cv_as_powerpc_rel16=yes
27826 else
27827 echo "configure: failed program was" >&5
27828 cat conftest.s >&5
27829 fi
27830 rm -f conftest.o conftest.s
27831 fi
27832 fi
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27834 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27835 if test $gcc_cv_as_powerpc_rel16 = yes; then
27836
27837 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27838
27839 fi
27840
27841
27842 case $target in
27843 *-*-aix*) conftest_s=' .machine "pwr7"
27844 .csect .text[PR]
27845 lxvd2x 1,2,3';;
27846 *) conftest_s=' .machine power7
27847 .text
27848 lxvd2x 1,2,3';;
27849 esac
27850
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27852 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27853 if ${gcc_cv_as_powerpc_vsx+:} false; then :
27854 $as_echo_n "(cached) " >&6
27855 else
27856 gcc_cv_as_powerpc_vsx=no
27857 if test $in_tree_gas = yes; then
27858 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27859 then gcc_cv_as_powerpc_vsx=yes
27860 fi
27861 elif test x$gcc_cv_as != x; then
27862 $as_echo "$conftest_s" > conftest.s
27863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27865 (eval $ac_try) 2>&5
27866 ac_status=$?
27867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27868 test $ac_status = 0; }; }
27869 then
27870 gcc_cv_as_powerpc_vsx=yes
27871 else
27872 echo "configure: failed program was" >&5
27873 cat conftest.s >&5
27874 fi
27875 rm -f conftest.o conftest.s
27876 fi
27877 fi
27878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27879 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27880 if test $gcc_cv_as_powerpc_vsx = yes; then
27881
27882 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27883
27884 fi
27885
27886
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27888 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27889 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27890 $as_echo_n "(cached) " >&6
27891 else
27892 gcc_cv_as_powerpc_gnu_attribute=no
27893 if test $in_tree_gas = yes; then
27894 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27895 then gcc_cv_as_powerpc_gnu_attribute=yes
27896 fi
27897 elif test x$gcc_cv_as != x; then
27898 $as_echo '.gnu_attribute 4,1' > conftest.s
27899 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27901 (eval $ac_try) 2>&5
27902 ac_status=$?
27903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27904 test $ac_status = 0; }; }
27905 then
27906 gcc_cv_as_powerpc_gnu_attribute=yes
27907 else
27908 echo "configure: failed program was" >&5
27909 cat conftest.s >&5
27910 fi
27911 rm -f conftest.o conftest.s
27912 fi
27913 fi
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27915 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27916 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27917
27918 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27919
27920 fi
27921
27922
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27924 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27925 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27926 $as_echo_n "(cached) " >&6
27927 else
27928 gcc_cv_as_powerpc_entry_markers=no
27929 if test $in_tree_gas = yes; then
27930 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27931 then gcc_cv_as_powerpc_entry_markers=yes
27932 fi
27933 elif test x$gcc_cv_as != x; then
27934 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27937 (eval $ac_try) 2>&5
27938 ac_status=$?
27939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27940 test $ac_status = 0; }; }
27941 then
27942 gcc_cv_as_powerpc_entry_markers=yes
27943 else
27944 echo "configure: failed program was" >&5
27945 cat conftest.s >&5
27946 fi
27947 rm -f conftest.o conftest.s
27948 fi
27949 fi
27950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27951 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27952 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27953
27954 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27955
27956 fi
27957
27958
27959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27960 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27961 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27962 $as_echo_n "(cached) " >&6
27963 else
27964 gcc_cv_as_powerpc_pltseq_markers=no
27965 if test $in_tree_gas = yes; then
27966 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27967 then gcc_cv_as_powerpc_pltseq_markers=yes
27968 fi
27969 elif test x$gcc_cv_as != x; then
27970 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27971 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27973 (eval $ac_try) 2>&5
27974 ac_status=$?
27975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27976 test $ac_status = 0; }; }
27977 then
27978 gcc_cv_as_powerpc_pltseq_markers=yes
27979 else
27980 echo "configure: failed program was" >&5
27981 cat conftest.s >&5
27982 fi
27983 rm -f conftest.o conftest.s
27984 fi
27985 fi
27986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27987 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27988 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27989
27990 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27991
27992 fi
27993
27994
27995 case $target in
27996 *-*-aix*)
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27998 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27999 if ${gcc_cv_as_aix_ref+:} false; then :
28000 $as_echo_n "(cached) " >&6
28001 else
28002 gcc_cv_as_aix_ref=no
28003 if test $in_tree_gas = yes; then
28004 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
28005 then gcc_cv_as_aix_ref=yes
28006 fi
28007 elif test x$gcc_cv_as != x; then
28008 $as_echo ' .csect stuff[rw]
28009 stuff:
28010 .long 1
28011 .extern sym
28012 .ref sym
28013 ' > conftest.s
28014 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28016 (eval $ac_try) 2>&5
28017 ac_status=$?
28018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28019 test $ac_status = 0; }; }
28020 then
28021 gcc_cv_as_aix_ref=yes
28022 else
28023 echo "configure: failed program was" >&5
28024 cat conftest.s >&5
28025 fi
28026 rm -f conftest.o conftest.s
28027 fi
28028 fi
28029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28030 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28031 if test $gcc_cv_as_aix_ref = yes; then
28032
28033 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28034
28035 fi
28036
28037
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28039 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28040 if ${gcc_cv_as_aix_dwloc+:} false; then :
28041 $as_echo_n "(cached) " >&6
28042 else
28043 gcc_cv_as_aix_dwloc=no
28044 if test $in_tree_gas = yes; then
28045 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
28046 then gcc_cv_as_aix_dwloc=yes
28047 fi
28048 elif test x$gcc_cv_as != x; then
28049 $as_echo ' .dwsect 0xA0000
28050 Lframe..0:
28051 .vbyte 4,Lframe..0
28052 ' > conftest.s
28053 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28055 (eval $ac_try) 2>&5
28056 ac_status=$?
28057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28058 test $ac_status = 0; }; }
28059 then
28060 gcc_cv_as_aix_dwloc=yes
28061 else
28062 echo "configure: failed program was" >&5
28063 cat conftest.s >&5
28064 fi
28065 rm -f conftest.o conftest.s
28066 fi
28067 fi
28068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28069 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28070 if test $gcc_cv_as_aix_dwloc = yes; then
28071
28072 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28073
28074 fi
28075
28076 ;;
28077 esac
28078 ;;
28079
28080 mips*-*-*)
28081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28082 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28083 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28084 $as_echo_n "(cached) " >&6
28085 else
28086 gcc_cv_as_mips_explicit_relocs=no
28087 if test $in_tree_gas = yes; then
28088 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
28089 then gcc_cv_as_mips_explicit_relocs=yes
28090 fi
28091 elif test x$gcc_cv_as != x; then
28092 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28093 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28095 (eval $ac_try) 2>&5
28096 ac_status=$?
28097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28098 test $ac_status = 0; }; }
28099 then
28100 gcc_cv_as_mips_explicit_relocs=yes
28101 else
28102 echo "configure: failed program was" >&5
28103 cat conftest.s >&5
28104 fi
28105 rm -f conftest.o conftest.s
28106 fi
28107 fi
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28109 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28110 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28111 if test x$target_cpu_default = x
28112 then target_cpu_default=MASK_EXPLICIT_RELOCS
28113 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28114 fi
28115 fi
28116
28117
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28119 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28120 if ${gcc_cv_as_mips_no_shared+:} false; then :
28121 $as_echo_n "(cached) " >&6
28122 else
28123 gcc_cv_as_mips_no_shared=no
28124 if test $in_tree_gas = yes; then
28125 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
28126 then gcc_cv_as_mips_no_shared=yes
28127 fi
28128 elif test x$gcc_cv_as != x; then
28129 $as_echo 'nop' > conftest.s
28130 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28132 (eval $ac_try) 2>&5
28133 ac_status=$?
28134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28135 test $ac_status = 0; }; }
28136 then
28137 gcc_cv_as_mips_no_shared=yes
28138 else
28139 echo "configure: failed program was" >&5
28140 cat conftest.s >&5
28141 fi
28142 rm -f conftest.o conftest.s
28143 fi
28144 fi
28145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28146 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28147 if test $gcc_cv_as_mips_no_shared = yes; then
28148
28149 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28150
28151 fi
28152
28153
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28155 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28156 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28157 $as_echo_n "(cached) " >&6
28158 else
28159 gcc_cv_as_mips_gnu_attribute=no
28160 if test $in_tree_gas = yes; then
28161 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28162 then gcc_cv_as_mips_gnu_attribute=yes
28163 fi
28164 elif test x$gcc_cv_as != x; then
28165 $as_echo '.gnu_attribute 4,1' > conftest.s
28166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28168 (eval $ac_try) 2>&5
28169 ac_status=$?
28170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28171 test $ac_status = 0; }; }
28172 then
28173 gcc_cv_as_mips_gnu_attribute=yes
28174 else
28175 echo "configure: failed program was" >&5
28176 cat conftest.s >&5
28177 fi
28178 rm -f conftest.o conftest.s
28179 fi
28180 fi
28181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28182 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28183 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28184
28185 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28186
28187 fi
28188
28189
28190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28191 $as_echo_n "checking assembler for .module support... " >&6; }
28192 if ${gcc_cv_as_mips_dot_module+:} false; then :
28193 $as_echo_n "(cached) " >&6
28194 else
28195 gcc_cv_as_mips_dot_module=no
28196 if test x$gcc_cv_as != x; then
28197 $as_echo '.module mips2
28198 .module fp=xx' > conftest.s
28199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28201 (eval $ac_try) 2>&5
28202 ac_status=$?
28203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28204 test $ac_status = 0; }; }
28205 then
28206 gcc_cv_as_mips_dot_module=yes
28207 else
28208 echo "configure: failed program was" >&5
28209 cat conftest.s >&5
28210 fi
28211 rm -f conftest.o conftest.s
28212 fi
28213 fi
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28215 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28216 if test $gcc_cv_as_mips_dot_module = yes; then
28217
28218 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28219
28220 fi
28221
28222 if test x$gcc_cv_as_mips_dot_module = xno \
28223 && test x$with_fp_32 != x; then
28224 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28225 fi
28226
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28228 $as_echo_n "checking assembler for .micromips support... " >&6; }
28229 if ${gcc_cv_as_micromips_support+:} false; then :
28230 $as_echo_n "(cached) " >&6
28231 else
28232 gcc_cv_as_micromips_support=no
28233 if test x$gcc_cv_as != x; then
28234 $as_echo '.set micromips' > conftest.s
28235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28237 (eval $ac_try) 2>&5
28238 ac_status=$?
28239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28240 test $ac_status = 0; }; }
28241 then
28242 gcc_cv_as_micromips_support=yes
28243 else
28244 echo "configure: failed program was" >&5
28245 cat conftest.s >&5
28246 fi
28247 rm -f conftest.o conftest.s
28248 fi
28249 fi
28250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28251 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28252 if test $gcc_cv_as_micromips_support = yes; then
28253
28254 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28255
28256 fi
28257
28258
28259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28260 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28261 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28262 $as_echo_n "(cached) " >&6
28263 else
28264 gcc_cv_as_mips_dtprelword=no
28265 if test $in_tree_gas = yes; then
28266 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28267 then gcc_cv_as_mips_dtprelword=yes
28268 fi
28269 elif test x$gcc_cv_as != x; then
28270 $as_echo '.section .tdata,"awT",@progbits
28271 x:
28272 .word 2
28273 .text
28274 .dtprelword x+0x8000' > conftest.s
28275 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28277 (eval $ac_try) 2>&5
28278 ac_status=$?
28279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28280 test $ac_status = 0; }; }
28281 then
28282 gcc_cv_as_mips_dtprelword=yes
28283 else
28284 echo "configure: failed program was" >&5
28285 cat conftest.s >&5
28286 fi
28287 rm -f conftest.o conftest.s
28288 fi
28289 fi
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28291 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28292 if test $gcc_cv_as_mips_dtprelword = yes; then
28293
28294 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28295
28296 fi
28297
28298
28299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28300 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28301 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28302 $as_echo_n "(cached) " >&6
28303 else
28304 gcc_cv_as_mips_dspr1_mult=no
28305 if test x$gcc_cv_as != x; then
28306 $as_echo ' .set mips32r2
28307 .set nodspr2
28308 .set dsp
28309 madd $ac3,$4,$5
28310 maddu $ac3,$4,$5
28311 msub $ac3,$4,$5
28312 msubu $ac3,$4,$5
28313 mult $ac3,$4,$5
28314 multu $ac3,$4,$5' > conftest.s
28315 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28317 (eval $ac_try) 2>&5
28318 ac_status=$?
28319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28320 test $ac_status = 0; }; }
28321 then
28322 gcc_cv_as_mips_dspr1_mult=yes
28323 else
28324 echo "configure: failed program was" >&5
28325 cat conftest.s >&5
28326 fi
28327 rm -f conftest.o conftest.s
28328 fi
28329 fi
28330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28331 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28332 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28333
28334 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28335
28336 fi
28337
28338
28339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28340 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28341 gcc_cv_as_ld_jalr_reloc=no
28342 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28343 if test $in_tree_ld = yes ; then
28344 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 \
28345 && test $in_tree_ld_is_elf = yes; then
28346 gcc_cv_as_ld_jalr_reloc=yes
28347 fi
28348 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28349 echo ' .ent x' > conftest.s
28350 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28351 echo ' lw $25,%call16(y)($28)' >> conftest.s
28352 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28353 echo '1: jalr $25' >> conftest.s
28354 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28355 echo '1: jalr $25' >> conftest.s
28356 echo ' .end x' >> conftest.s
28357 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28358 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28359 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28360 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28361 gcc_cv_as_ld_jalr_reloc=yes
28362 fi
28363 fi
28364 rm -f conftest.*
28365 fi
28366 fi
28367 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28368 if test x$target_cpu_default = x; then
28369 target_cpu_default=MASK_RELAX_PIC_CALLS
28370 else
28371 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28372 fi
28373 fi
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28375 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28376
28377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28378 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28379 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28380 $as_echo_n "(cached) " >&6
28381 else
28382 gcc_cv_ld_mips_personality_relaxation=no
28383 if test $in_tree_ld = yes ; then
28384 if test "$gcc_cv_gld_major_version" -eq 2 \
28385 -a "$gcc_cv_gld_minor_version" -ge 21 \
28386 -o "$gcc_cv_gld_major_version" -gt 2; then
28387 gcc_cv_ld_mips_personality_relaxation=yes
28388 fi
28389 elif test x$gcc_cv_as != x \
28390 -a x$gcc_cv_ld != x \
28391 -a x$gcc_cv_readelf != x ; then
28392 cat > conftest.s <<EOF
28393 .cfi_startproc
28394 .cfi_personality 0x80,indirect_ptr
28395 .ent test
28396 test:
28397 nop
28398 .end test
28399 .cfi_endproc
28400
28401 .section .data,"aw",@progbits
28402 indirect_ptr:
28403 .dc.a personality
28404 EOF
28405 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28406 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28407 if $gcc_cv_readelf -d conftest 2>&1 \
28408 | grep TEXTREL > /dev/null 2>&1; then
28409 :
28410 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28411 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28412 :
28413 else
28414 gcc_cv_ld_mips_personality_relaxation=yes
28415 fi
28416 fi
28417 fi
28418 rm -f conftest.s conftest.o conftest
28419 fi
28420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28421 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28422 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28423
28424 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28425
28426 fi
28427
28428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28429 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28430 if ${gcc_cv_as_mips_nan+:} false; then :
28431 $as_echo_n "(cached) " >&6
28432 else
28433 gcc_cv_as_mips_nan=no
28434 if test x$gcc_cv_as != x; then
28435 $as_echo '' > conftest.s
28436 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28438 (eval $ac_try) 2>&5
28439 ac_status=$?
28440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28441 test $ac_status = 0; }; }
28442 then
28443 gcc_cv_as_mips_nan=yes
28444 else
28445 echo "configure: failed program was" >&5
28446 cat conftest.s >&5
28447 fi
28448 rm -f conftest.o conftest.s
28449 fi
28450 fi
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28452 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28453 if test $gcc_cv_as_mips_nan = yes; then
28454
28455 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28456
28457 fi
28458
28459 if test x$gcc_cv_as_mips_nan = xno \
28460 && test x$with_nan != x; then
28461 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28462 fi
28463 ;;
28464 msp430-*-*)
28465 # Earlier GAS versions generically support .gnu_attribute, but the
28466 # msp430 assembler will not do anything with it.
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28468 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28469 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28470 $as_echo_n "(cached) " >&6
28471 else
28472 gcc_cv_as_msp430_gnu_attribute=no
28473 if test $in_tree_gas = yes; then
28474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
28475 then gcc_cv_as_msp430_gnu_attribute=yes
28476 fi
28477 elif test x$gcc_cv_as != x; then
28478 $as_echo '.gnu_attribute 4,1' > conftest.s
28479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28481 (eval $ac_try) 2>&5
28482 ac_status=$?
28483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28484 test $ac_status = 0; }; }
28485 then
28486 gcc_cv_as_msp430_gnu_attribute=yes
28487 else
28488 echo "configure: failed program was" >&5
28489 cat conftest.s >&5
28490 fi
28491 rm -f conftest.o conftest.s
28492 fi
28493 fi
28494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28495 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28496 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28497
28498 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28499
28500 fi
28501
28502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28503 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28504 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28505 $as_echo_n "(cached) " >&6
28506 else
28507 gcc_cv_as_msp430_mspabi_attribute=no
28508 if test $in_tree_gas = yes; then
28509 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
28510 then gcc_cv_as_msp430_mspabi_attribute=yes
28511 fi
28512 elif test x$gcc_cv_as != x; then
28513 $as_echo '.mspabi_attribute 4,2' > conftest.s
28514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28516 (eval $ac_try) 2>&5
28517 ac_status=$?
28518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28519 test $ac_status = 0; }; }
28520 then
28521 gcc_cv_as_msp430_mspabi_attribute=yes
28522 else
28523 echo "configure: failed program was" >&5
28524 cat conftest.s >&5
28525 fi
28526 rm -f conftest.o conftest.s
28527 fi
28528 fi
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28530 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28531 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28532
28533 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28534
28535 fi
28536
28537 if test x$enable_newlib_nano_formatted_io = xyes; then
28538
28539 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28540
28541 fi
28542 ;;
28543 nios2-*-*)
28544 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28545 # syntax that is documented in the ABI specification.
28546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28547 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28548 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28549 $as_echo_n "(cached) " >&6
28550 else
28551 gcc_cv_as_nios2_gotoff_relocation=no
28552 if test x$gcc_cv_as != x; then
28553 $as_echo ' .extern foo
28554 .data
28555 .long %gotoff(foo)' > conftest.s
28556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28558 (eval $ac_try) 2>&5
28559 ac_status=$?
28560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28561 test $ac_status = 0; }; }
28562 then
28563 gcc_cv_as_nios2_gotoff_relocation=yes
28564 else
28565 echo "configure: failed program was" >&5
28566 cat conftest.s >&5
28567 fi
28568 rm -f conftest.o conftest.s
28569 fi
28570 fi
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28572 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28573 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28574
28575 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28576
28577 fi
28578
28579 ;;
28580 riscv*-*-*)
28581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28582 $as_echo_n "checking assembler for .attribute support... " >&6; }
28583 if ${gcc_cv_as_riscv_attribute+:} false; then :
28584 $as_echo_n "(cached) " >&6
28585 else
28586 gcc_cv_as_riscv_attribute=no
28587 if test $in_tree_gas = yes; then
28588 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
28589 then gcc_cv_as_riscv_attribute=yes
28590 fi
28591 elif test x$gcc_cv_as != x; then
28592 $as_echo '.attribute stack_align,4' > conftest.s
28593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28595 (eval $ac_try) 2>&5
28596 ac_status=$?
28597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28598 test $ac_status = 0; }; }
28599 then
28600 gcc_cv_as_riscv_attribute=yes
28601 else
28602 echo "configure: failed program was" >&5
28603 cat conftest.s >&5
28604 fi
28605 rm -f conftest.o conftest.s
28606 fi
28607 fi
28608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28609 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28610 if test $gcc_cv_as_riscv_attribute = yes; then
28611
28612 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28613
28614 fi
28615
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28617 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28618 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28619 $as_echo_n "(cached) " >&6
28620 else
28621 gcc_cv_as_riscv_isa_spec=no
28622 if test x$gcc_cv_as != x; then
28623 $as_echo '' > conftest.s
28624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28626 (eval $ac_try) 2>&5
28627 ac_status=$?
28628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28629 test $ac_status = 0; }; }
28630 then
28631 gcc_cv_as_riscv_isa_spec=yes
28632 else
28633 echo "configure: failed program was" >&5
28634 cat conftest.s >&5
28635 fi
28636 rm -f conftest.o conftest.s
28637 fi
28638 fi
28639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28640 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28641 if test $gcc_cv_as_riscv_isa_spec = yes; then
28642
28643 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28644
28645 fi
28646
28647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28648 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28649 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28650 $as_echo_n "(cached) " >&6
28651 else
28652 gcc_cv_as_riscv_march_zifencei=no
28653 if test x$gcc_cv_as != x; then
28654 $as_echo '' > conftest.s
28655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei -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_riscv_march_zifencei=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_riscv_march_zifencei" >&5
28671 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28672 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28673
28674 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28675
28676 fi
28677
28678 ;;
28679 s390*-*-*)
28680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28681 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28682 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28683 $as_echo_n "(cached) " >&6
28684 else
28685 gcc_cv_as_s390_gnu_attribute=no
28686 if test $in_tree_gas = yes; then
28687 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28688 then gcc_cv_as_s390_gnu_attribute=yes
28689 fi
28690 elif test x$gcc_cv_as != x; then
28691 $as_echo '.gnu_attribute 8,1' > conftest.s
28692 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28694 (eval $ac_try) 2>&5
28695 ac_status=$?
28696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28697 test $ac_status = 0; }; }
28698 then
28699 gcc_cv_as_s390_gnu_attribute=yes
28700 else
28701 echo "configure: failed program was" >&5
28702 cat conftest.s >&5
28703 fi
28704 rm -f conftest.o conftest.s
28705 fi
28706 fi
28707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28708 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28709 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28710
28711 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28712
28713 fi
28714
28715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28716 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28717 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28718 $as_echo_n "(cached) " >&6
28719 else
28720 gcc_cv_as_s390_machine_machinemode=no
28721 if test $in_tree_gas = yes; then
28722 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28723 then gcc_cv_as_s390_machine_machinemode=yes
28724 fi
28725 elif test x$gcc_cv_as != x; then
28726 $as_echo ' .machinemode push
28727 .machinemode pop
28728 .machine push
28729 .machine pop' > conftest.s
28730 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28732 (eval $ac_try) 2>&5
28733 ac_status=$?
28734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28735 test $ac_status = 0; }; }
28736 then
28737 gcc_cv_as_s390_machine_machinemode=yes
28738 else
28739 echo "configure: failed program was" >&5
28740 cat conftest.s >&5
28741 fi
28742 rm -f conftest.o conftest.s
28743 fi
28744 fi
28745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28746 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28747 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28748
28749 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28750
28751 fi
28752
28753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28754 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28755 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28756 $as_echo_n "(cached) " >&6
28757 else
28758 gcc_cv_as_s390_architecture_modifiers=no
28759 if test $in_tree_gas = yes; then
28760 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28761 then gcc_cv_as_s390_architecture_modifiers=yes
28762 fi
28763 elif test x$gcc_cv_as != x; then
28764 $as_echo ' .machine z13+vx ' > conftest.s
28765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28767 (eval $ac_try) 2>&5
28768 ac_status=$?
28769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28770 test $ac_status = 0; }; }
28771 then
28772 gcc_cv_as_s390_architecture_modifiers=yes
28773 else
28774 echo "configure: failed program was" >&5
28775 cat conftest.s >&5
28776 fi
28777 rm -f conftest.o conftest.s
28778 fi
28779 fi
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28781 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28782 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28783
28784 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28785
28786 fi
28787
28788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28789 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28790 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28791 $as_echo_n "(cached) " >&6
28792 else
28793 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28794 if test $in_tree_gas = yes; then
28795 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28796 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28797 fi
28798 elif test x$gcc_cv_as != x; then
28799 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28802 (eval $ac_try) 2>&5
28803 ac_status=$?
28804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28805 test $ac_status = 0; }; }
28806 then
28807 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28808 else
28809 echo "configure: failed program was" >&5
28810 cat conftest.s >&5
28811 fi
28812 rm -f conftest.o conftest.s
28813 fi
28814 fi
28815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28816 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28817 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28818
28819 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28820
28821 fi
28822
28823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28824 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28825 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
28826 $as_echo_n "(cached) " >&6
28827 else
28828 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
28829 if test x$gcc_cv_as != x; then
28830 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28831 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28833 (eval $ac_try) 2>&5
28834 ac_status=$?
28835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28836 test $ac_status = 0; }; }
28837 then
28838 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
28839 else
28840 echo "configure: failed program was" >&5
28841 cat conftest.s >&5
28842 fi
28843 rm -f conftest.o conftest.s
28844 fi
28845 fi
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28847 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28848 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28849
28850 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
28851
28852 fi
28853
28854
28855 ;;
28856 esac
28857
28858 # Mips and HP-UX need the GNU assembler.
28859 # Linux on IA64 might be able to use the Intel assembler.
28860
28861 case "$target" in
28862 mips*-*-* | *-*-hpux* )
28863 if test x$gas_flag = xyes \
28864 || test x"$host" != x"$build" \
28865 || test ! -x "$gcc_cv_as" \
28866 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28867 :
28868 else
28869 echo "*** This configuration requires the GNU assembler" >&2
28870 exit 1
28871 fi
28872 ;;
28873 esac
28874
28875 # ??? Not all targets support dwarf2 debug_line, even within a version
28876 # of gas. Moreover, we need to emit a valid instruction to trigger any
28877 # info to the output file. So, as supported targets are added to gas 2.11,
28878 # add some instruction here to (also) show we expect this might work.
28879 # ??? Once 2.11 is released, probably need to add first known working
28880 # version to the per-target configury.
28881 case "$cpu_type" in
28882 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28883 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28884 | tilegx | tilepro | visium | xstormy16 | xtensa)
28885 insn="nop"
28886 ;;
28887 ia64 | s390)
28888 insn="nop 0"
28889 ;;
28890 mmix)
28891 insn="swym 0"
28892 ;;
28893 esac
28894 if test x"$insn" != x; then
28895 conftest_s="\
28896 .file 1 \"conftest.s\"
28897 .loc 1 3 0
28898 $insn"
28899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28900 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28901 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
28902 $as_echo_n "(cached) " >&6
28903 else
28904 gcc_cv_as_dwarf2_debug_line=no
28905 if test $in_tree_gas = yes; then
28906 if test $in_tree_gas_is_elf = yes \
28907 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28908 then gcc_cv_as_dwarf2_debug_line=yes
28909 fi
28910 elif test x$gcc_cv_as != x; then
28911 $as_echo "$conftest_s" > conftest.s
28912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28914 (eval $ac_try) 2>&5
28915 ac_status=$?
28916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28917 test $ac_status = 0; }; }
28918 then
28919 if test x$gcc_cv_objdump != x \
28920 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
28921 | grep debug_line > /dev/null 2>&1; then
28922 gcc_cv_as_dwarf2_debug_line=yes
28923 elif test x$gcc_cv_otool != x \
28924 && $gcc_cv_otool -l conftest.o 2> /dev/null \
28925 | grep debug_line > /dev/null 2>&1; then
28926 gcc_cv_as_dwarf2_debug_line=yes
28927 fi
28928 else
28929 echo "configure: failed program was" >&5
28930 cat conftest.s >&5
28931 fi
28932 rm -f conftest.o conftest.s
28933 fi
28934 fi
28935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28936 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28937
28938
28939
28940 # The .debug_line file table must be in the exact order that
28941 # we specified the files, since these indices are also used
28942 # by DW_AT_decl_file. Approximate this test by testing if
28943 # the assembler bitches if the same index is assigned twice.
28944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28945 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28946 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
28947 $as_echo_n "(cached) " >&6
28948 else
28949 gcc_cv_as_dwarf2_file_buggy=no
28950 if test x$gcc_cv_as != x; then
28951 $as_echo ' .file 1 "foo.s"
28952 .file 1 "bar.s"' > conftest.s
28953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28955 (eval $ac_try) 2>&5
28956 ac_status=$?
28957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28958 test $ac_status = 0; }; }
28959 then
28960 gcc_cv_as_dwarf2_file_buggy=yes
28961 else
28962 echo "configure: failed program was" >&5
28963 cat conftest.s >&5
28964 fi
28965 rm -f conftest.o conftest.s
28966 fi
28967 fi
28968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28969 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28970
28971
28972
28973 if test $gcc_cv_as_dwarf2_debug_line = yes \
28974 && test $gcc_cv_as_dwarf2_file_buggy = no; then
28975
28976 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28977
28978
28979 if test $gcc_cv_as_leb128 = yes; then
28980 conftest_s="\
28981 .file 1 \"conftest.s\"
28982 .loc 1 3 0 view .LVU1
28983 $insn
28984 .data
28985 .uleb128 .LVU1
28986 .uleb128 .LVU1
28987 "
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28989 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28990 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
28991 $as_echo_n "(cached) " >&6
28992 else
28993 gcc_cv_as_dwarf2_debug_view=no
28994 if test $in_tree_gas = yes; then
28995 if test $in_tree_gas_is_elf = yes \
28996 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28997 then gcc_cv_as_dwarf2_debug_view=yes
28998 fi
28999 elif test x$gcc_cv_as != x; then
29000 $as_echo "$conftest_s" > conftest.s
29001 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29003 (eval $ac_try) 2>&5
29004 ac_status=$?
29005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29006 test $ac_status = 0; }; }
29007 then
29008 gcc_cv_as_dwarf2_debug_view=yes
29009 else
29010 echo "configure: failed program was" >&5
29011 cat conftest.s >&5
29012 fi
29013 rm -f conftest.o conftest.s
29014 fi
29015 fi
29016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29017 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29018 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29019
29020 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29021
29022 fi
29023
29024 fi
29025 fi
29026
29027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29028 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29029 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29030 $as_echo_n "(cached) " >&6
29031 else
29032 gcc_cv_as_gdwarf2_flag=no
29033 if test $in_tree_gas = yes; then
29034 if test $in_tree_gas_is_elf = yes \
29035 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
29036 then gcc_cv_as_gdwarf2_flag=yes
29037 fi
29038 elif test x$gcc_cv_as != x; then
29039 $as_echo "$insn" > conftest.s
29040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29042 (eval $ac_try) 2>&5
29043 ac_status=$?
29044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29045 test $ac_status = 0; }; }
29046 then
29047 gcc_cv_as_gdwarf2_flag=yes
29048 else
29049 echo "configure: failed program was" >&5
29050 cat conftest.s >&5
29051 fi
29052 rm -f conftest.o conftest.s
29053 fi
29054 fi
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29056 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29057 if test $gcc_cv_as_gdwarf2_flag = yes; then
29058
29059 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29060
29061 fi
29062
29063
29064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29065 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29066 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29067 $as_echo_n "(cached) " >&6
29068 else
29069 gcc_cv_as_gdwarf_5_flag=no
29070 if test $in_tree_gas = yes; then
29071 if test $in_tree_gas_is_elf = yes \
29072 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
29073 then gcc_cv_as_gdwarf_5_flag=yes
29074 fi
29075 elif test x$gcc_cv_as != x; then
29076 $as_echo "$insn" > conftest.s
29077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29079 (eval $ac_try) 2>&5
29080 ac_status=$?
29081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29082 test $ac_status = 0; }; }
29083 then
29084 if test x$gcc_cv_readelf != x \
29085 && $gcc_cv_readelf -wi conftest.o 2>&1 \
29086 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29087 gcc_cv_as_gdwarf_5_flag=yes;
29088 fi
29089 else
29090 echo "configure: failed program was" >&5
29091 cat conftest.s >&5
29092 fi
29093 rm -f conftest.o conftest.s
29094 fi
29095 fi
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29097 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29098 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29099
29100 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29101
29102 fi
29103
29104
29105 dwarf4_debug_info_size=0x46
29106 dwarf4_high_pc_form=7
29107 dwarf4_debug_aranges_size=0x2c
29108 dwarf4_line_sz=9
29109 for dwarf4_addr_size in 8 4; do
29110 conftest_s="\
29111 .file \"a.c\"
29112 .text
29113 .Ltext0:
29114 .p2align 4
29115 .globl foo
29116 .type foo, %function
29117 foo:
29118 .LFB0:
29119 .LM1:
29120 $insn
29121 .LM2:
29122 .LFE0:
29123 .size foo, .-foo
29124 .Letext0:
29125 .section .debug_info,\"\",%progbits
29126 .Ldebug_info0:
29127 .4byte $dwarf4_debug_info_size
29128 .2byte 0x4
29129 .4byte .Ldebug_abbrev0
29130 .byte 0x$dwarf4_addr_size
29131 .byte 0x1
29132 .ascii \"GNU C17\\0\"
29133 .byte 0xc
29134 .ascii \"a.c\\0\"
29135 .ascii \"/\\0\"
29136 .${dwarf4_addr_size}byte .Ltext0
29137 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29138 .4byte .Ldebug_line0
29139 .byte 0x2
29140 .ascii \"foo\\0\"
29141 .byte 0x1
29142 .byte 0x2
29143 .byte 0x1
29144 .${dwarf4_addr_size}byte .LFB0
29145 .${dwarf4_addr_size}byte .LFE0-.LFB0
29146 .byte 0x1
29147 .byte 0x9c
29148 .byte 0
29149 .section .debug_abbrev,\"\",%progbits
29150 .Ldebug_abbrev0:
29151 .byte 0x1
29152 .byte 0x11
29153 .byte 0x1
29154 .byte 0x25
29155 .byte 0x8
29156 .byte 0x13
29157 .byte 0xb
29158 .byte 0x3
29159 .byte 0x8
29160 .byte 0x1b
29161 .byte 0x8
29162 .byte 0x11
29163 .byte 0x1
29164 .byte 0x12
29165 .byte 0x$dwarf4_high_pc_form
29166 .byte 0x10
29167 .byte 0x17
29168 .byte 0
29169 .byte 0
29170 .byte 0x2
29171 .byte 0x2e
29172 .byte 0
29173 .byte 0x3f
29174 .byte 0x19
29175 .byte 0x3
29176 .byte 0x8
29177 .byte 0x3a
29178 .byte 0xb
29179 .byte 0x3b
29180 .byte 0xb
29181 .byte 0x39
29182 .byte 0xb
29183 .byte 0x11
29184 .byte 0x1
29185 .byte 0x12
29186 .byte 0x$dwarf4_high_pc_form
29187 .byte 0x40
29188 .byte 0x18
29189 .byte 0
29190 .byte 0
29191 .byte 0
29192 .section .debug_aranges,\"\",%progbits
29193 .4byte $dwarf4_debug_aranges_size
29194 .2byte 0x2
29195 .4byte .Ldebug_info0
29196 .byte 0x8
29197 .byte 0
29198 .2byte 0
29199 .2byte 0
29200 .${dwarf4_addr_size}byte .Ltext0
29201 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29202 .${dwarf4_addr_size}byte 0
29203 .${dwarf4_addr_size}byte 0
29204 .section .debug_line,\"\",%progbits
29205 .Ldebug_line0:
29206 .4byte .LELT0-.LSLT0
29207 .LSLT0:
29208 .2byte 0x4
29209 .4byte .LELTP0-.LASLTP0
29210 .LASLTP0:
29211 .byte 0x1
29212 .byte 0x1
29213 .byte 0x1
29214 .byte 0xf6
29215 .byte 0xf2
29216 .byte 0xd
29217 .byte 0
29218 .byte 0x1
29219 .byte 0x1
29220 .byte 0x1
29221 .byte 0x1
29222 .byte 0
29223 .byte 0
29224 .byte 0
29225 .byte 0x1
29226 .byte 0
29227 .byte 0
29228 .byte 0x1
29229 .byte 0
29230 .ascii \"a.c\\0\"
29231 .byte 0
29232 .byte 0
29233 .byte 0
29234 .byte 0
29235 .LELTP0:
29236 .byte 0
29237 .byte 0x$dwarf4_line_sz
29238 .byte 0x2
29239 .${dwarf4_addr_size}byte .LM1
29240 .byte 0x18
29241 .byte 0x5
29242 .byte 0x1
29243 .byte 0
29244 .byte 0x$dwarf4_line_sz
29245 .byte 0x2
29246 .${dwarf4_addr_size}byte .LM2
29247 .byte 0x1
29248 .byte 0x5
29249 .byte 0x1
29250 .byte 0
29251 .byte 0x$dwarf4_line_sz
29252 .byte 0x2
29253 .${dwarf4_addr_size}byte .Letext0
29254 .byte 0
29255 .byte 0x1
29256 .byte 0x1
29257 .LELT0:
29258 .section .debug_str,\"\",%progbits
29259 .ident \"GCC\"
29260 "
29261 dwarf4_success=no
29262 if test $dwarf4_addr_size = 4; then
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29264 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29265 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29266 $as_echo_n "(cached) " >&6
29267 else
29268 gcc_cv_as_debug_line_32_flag=no
29269 if test $in_tree_gas = yes; then
29270 if test $in_tree_gas_is_elf = yes \
29271 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
29272 then gcc_cv_as_debug_line_32_flag=yes
29273 fi
29274 elif test x$gcc_cv_as != x; then
29275 $as_echo "$conftest_s" > conftest.s
29276 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29278 (eval $ac_try) 2>&5
29279 ac_status=$?
29280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29281 test $ac_status = 0; }; }
29282 then
29283 gcc_cv_as_debug_line_32_flag=yes
29284 else
29285 echo "configure: failed program was" >&5
29286 cat conftest.s >&5
29287 fi
29288 rm -f conftest.o conftest.s
29289 fi
29290 fi
29291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29292 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29293 if test $gcc_cv_as_debug_line_32_flag = yes; then
29294 dwarf4_success=yes
29295 fi
29296
29297 else
29298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29299 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29300 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29301 $as_echo_n "(cached) " >&6
29302 else
29303 gcc_cv_as_debug_line_64_flag=no
29304 if test $in_tree_gas = yes; then
29305 if test $in_tree_gas_is_elf = yes \
29306 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
29307 then gcc_cv_as_debug_line_64_flag=yes
29308 fi
29309 elif test x$gcc_cv_as != x; then
29310 $as_echo "$conftest_s" > conftest.s
29311 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29313 (eval $ac_try) 2>&5
29314 ac_status=$?
29315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29316 test $ac_status = 0; }; }
29317 then
29318 gcc_cv_as_debug_line_64_flag=yes
29319 else
29320 echo "configure: failed program was" >&5
29321 cat conftest.s >&5
29322 fi
29323 rm -f conftest.o conftest.s
29324 fi
29325 fi
29326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29327 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29328 if test $gcc_cv_as_debug_line_64_flag = yes; then
29329 dwarf4_success=yes
29330 fi
29331
29332 fi
29333 if test $dwarf4_success = yes; then
29334 dwarf4_success=no
29335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29336 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29337 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29338 $as_echo_n "(cached) " >&6
29339 else
29340 gcc_cv_as_dwarf_4_debug_line_flag=no
29341 if test $in_tree_gas = yes; then
29342 if test $in_tree_gas_is_elf = yes \
29343 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 36 \) \* 1000 + 0`
29344 then gcc_cv_as_dwarf_4_debug_line_flag=yes
29345 fi
29346 elif test x$gcc_cv_as != x; then
29347 $as_echo "$conftest_s" > conftest.s
29348 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29350 (eval $ac_try) 2>&5
29351 ac_status=$?
29352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29353 test $ac_status = 0; }; }
29354 then
29355 gcc_cv_as_dwarf_4_debug_line_flag=yes
29356 else
29357 echo "configure: failed program was" >&5
29358 cat conftest.s >&5
29359 fi
29360 rm -f conftest.o conftest.s
29361 fi
29362 fi
29363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29364 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29365 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29366 dwarf4_success=yes
29367 fi
29368
29369 break
29370 fi
29371 dwarf4_debug_info_size=0x36
29372 dwarf4_high_pc_form=6
29373 dwarf4_debug_aranges_size=0x1c
29374 dwarf4_line_sz=5
29375 done
29376
29377 if test $dwarf4_success = yes; then
29378 conftest_s="\
29379 .file \"foo.c\"
29380 .text
29381 bar:
29382 #APP
29383 # 82 \"xxx.h\" 1
29384 $insn
29385 # 0 \"\" 2
29386 #NO_APP
29387 $insn
29388 foo:
29389 .file 1 \"foo.c\"
29390 $insn
29391 .file 2 \"foo.h\"
29392 ret
29393 "
29394 dwarf4_success=no
29395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29396 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29397 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29398 $as_echo_n "(cached) " >&6
29399 else
29400 gcc_cv_as_dwarf_4_app_flag=no
29401 if test x$gcc_cv_as != x; then
29402 $as_echo "$conftest_s" > conftest.s
29403 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29405 (eval $ac_try) 2>&5
29406 ac_status=$?
29407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29408 test $ac_status = 0; }; }
29409 then
29410 gcc_cv_as_dwarf_4_app_flag=yes
29411 else
29412 echo "configure: failed program was" >&5
29413 cat conftest.s >&5
29414 fi
29415 rm -f conftest.o conftest.s
29416 fi
29417 fi
29418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29419 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29420 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29421 dwarf4_success=yes
29422 fi
29423
29424 fi
29425
29426 if test $dwarf4_success = yes; then
29427 conftest_s="\
29428 .text
29429 .globl foo
29430 .type foo, %function
29431 foo:
29432 $insn
29433 .size foo, .-foo
29434 .file 1 \"foo.c\"
29435 "
29436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29437 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29438 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29439 $as_echo_n "(cached) " >&6
29440 else
29441 gcc_cv_as_working_gdwarf_n_flag=no
29442 if test x$gcc_cv_as != x; then
29443 $as_echo "$conftest_s" > conftest.s
29444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29446 (eval $ac_try) 2>&5
29447 ac_status=$?
29448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29449 test $ac_status = 0; }; }
29450 then
29451 if test x$gcc_cv_readelf != x \
29452 && $gcc_cv_readelf -w conftest.o 2>&1 \
29453 | grep conftest.s > /dev/null 2>&1; then
29454 gcc_cv_as_working_gdwarf_n_flag=no
29455 else
29456 gcc_cv_as_working_gdwarf_n_flag=yes
29457 fi
29458 else
29459 echo "configure: failed program was" >&5
29460 cat conftest.s >&5
29461 fi
29462 rm -f conftest.o conftest.s
29463 fi
29464 fi
29465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29466 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29467
29468
29469 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29470
29471 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29472
29473 fi
29474 fi
29475
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
29477 $as_echo_n "checking assembler for --gstabs option... " >&6; }
29478 if ${gcc_cv_as_gstabs_flag+:} false; then :
29479 $as_echo_n "(cached) " >&6
29480 else
29481 gcc_cv_as_gstabs_flag=no
29482 if test $in_tree_gas = yes; then
29483 if test $in_tree_gas_is_elf = yes \
29484 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
29485 then gcc_cv_as_gstabs_flag=yes
29486 fi
29487 elif test x$gcc_cv_as != x; then
29488 $as_echo "$insn" > conftest.s
29489 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
29490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29491 (eval $ac_try) 2>&5
29492 ac_status=$?
29493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29494 test $ac_status = 0; }; }
29495 then
29496 gcc_cv_as_gstabs_flag=yes
29497 else
29498 echo "configure: failed program was" >&5
29499 cat conftest.s >&5
29500 fi
29501 rm -f conftest.o conftest.s
29502 fi
29503 fi
29504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
29505 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
29506 if test $gcc_cv_as_gstabs_flag = yes; then
29507
29508 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
29509
29510 fi
29511
29512
29513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29514 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29515 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29516 $as_echo_n "(cached) " >&6
29517 else
29518 gcc_cv_as_debug_prefix_map_flag=no
29519 if test $in_tree_gas = yes; then
29520 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
29521 then gcc_cv_as_debug_prefix_map_flag=yes
29522 fi
29523 elif test x$gcc_cv_as != x; then
29524 $as_echo "$insn" > conftest.s
29525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29527 (eval $ac_try) 2>&5
29528 ac_status=$?
29529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29530 test $ac_status = 0; }; }
29531 then
29532 gcc_cv_as_debug_prefix_map_flag=yes
29533 else
29534 echo "configure: failed program was" >&5
29535 cat conftest.s >&5
29536 fi
29537 rm -f conftest.o conftest.s
29538 fi
29539 fi
29540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29541 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29542 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29543
29544 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29545
29546 fi
29547
29548 fi
29549
29550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29551 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29552 if ${gcc_cv_as_compress_debug+:} false; then :
29553 $as_echo_n "(cached) " >&6
29554 else
29555 gcc_cv_as_compress_debug=no
29556 if test x$gcc_cv_as != x; then
29557 $as_echo '' > conftest.s
29558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29560 (eval $ac_try) 2>&5
29561 ac_status=$?
29562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29563 test $ac_status = 0; }; }
29564 then
29565 # gas compiled without zlib cannot compress debug sections and warns
29566 # about it, but still exits successfully. So check for this, too.
29567 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29568 then
29569 gcc_cv_as_compress_debug=0
29570 # Since binutils 2.26, gas supports --compress-debug-sections=type,
29571 # defaulting to the ELF gABI format.
29572 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
29573 then
29574 gcc_cv_as_compress_debug=2
29575 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29576 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29577 # Before binutils 2.26, gas only supported --compress-debug-options and
29578 # emitted the traditional GNU format.
29579 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
29580 then
29581 gcc_cv_as_compress_debug=1
29582 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29583 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29584 else
29585 gcc_cv_as_compress_debug=0
29586 fi
29587 else
29588 echo "configure: failed program was" >&5
29589 cat conftest.s >&5
29590 fi
29591 rm -f conftest.o conftest.s
29592 fi
29593 fi
29594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29595 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29596
29597
29598
29599 cat >>confdefs.h <<_ACEOF
29600 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29601 _ACEOF
29602
29603
29604 cat >>confdefs.h <<_ACEOF
29605 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29606 _ACEOF
29607
29608
29609 cat >>confdefs.h <<_ACEOF
29610 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29611 _ACEOF
29612
29613
29614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29615 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29616 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29617 $as_echo_n "(cached) " >&6
29618 else
29619 gcc_cv_as_lcomm_with_alignment=no
29620 if test x$gcc_cv_as != x; then
29621 $as_echo '.lcomm bar,4,16' > conftest.s
29622 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29624 (eval $ac_try) 2>&5
29625 ac_status=$?
29626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29627 test $ac_status = 0; }; }
29628 then
29629 gcc_cv_as_lcomm_with_alignment=yes
29630 else
29631 echo "configure: failed program was" >&5
29632 cat conftest.s >&5
29633 fi
29634 rm -f conftest.o conftest.s
29635 fi
29636 fi
29637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29638 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29639 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29640
29641 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29642
29643 fi
29644
29645
29646 if test x$with_sysroot = x && test x$host = x$target \
29647 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29648 && test "$prefix" != "NONE"; then
29649
29650 cat >>confdefs.h <<_ACEOF
29651 #define PREFIX_INCLUDE_DIR "$prefix/include"
29652 _ACEOF
29653
29654 fi
29655
29656 # Determine the version of glibc, if any, used on the target.
29657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29658 $as_echo_n "checking for target glibc version... " >&6; }
29659
29660 # Check whether --with-glibc-version was given.
29661 if test "${with_glibc_version+set}" = set; then :
29662 withval=$with_glibc_version;
29663 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29664 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29665 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29666 else
29667 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
29668 fi
29669 else
29670
29671 glibc_version_major=0
29672 glibc_version_minor=0
29673 if test -f $target_header_dir/features.h \
29674 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29675 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29676 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29677 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29678 fi
29679 fi
29680
29681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29682 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29683
29684 cat >>confdefs.h <<_ACEOF
29685 #define TARGET_GLIBC_MAJOR $glibc_version_major
29686 _ACEOF
29687
29688
29689 cat >>confdefs.h <<_ACEOF
29690 #define TARGET_GLIBC_MINOR $glibc_version_minor
29691 _ACEOF
29692
29693
29694 # Check whether --enable-gnu-unique-object was given.
29695 if test "${enable_gnu_unique_object+set}" = set; then :
29696 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29697 yes | no) ;;
29698 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29699 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29700 esac
29701 else
29702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29703 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29704 if ${gcc_cv_as_gnu_unique_object+:} false; then :
29705 $as_echo_n "(cached) " >&6
29706 else
29707 gcc_cv_as_gnu_unique_object=no
29708 if test $in_tree_gas = yes; then
29709 if test $in_tree_gas_is_elf = yes \
29710 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
29711 then gcc_cv_as_gnu_unique_object=yes
29712 fi
29713 elif test x$gcc_cv_as != x; then
29714 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29717 (eval $ac_try) 2>&5
29718 ac_status=$?
29719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29720 test $ac_status = 0; }; }
29721 then
29722 gcc_cv_as_gnu_unique_object=yes
29723 else
29724 echo "configure: failed program was" >&5
29725 cat conftest.s >&5
29726 fi
29727 rm -f conftest.o conftest.s
29728 fi
29729 fi
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29731 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29732 if test $gcc_cv_as_gnu_unique_object = yes; then
29733 # We need to unquote above to to use the definition from config.gcc.
29734 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29735
29736 if test $glibc_version_major -gt 2 \
29737 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29738 enable_gnu_unique_object=yes
29739 fi
29740
29741 fi
29742
29743 fi
29744
29745 if test x$enable_gnu_unique_object = xyes; then
29746
29747 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29748
29749 fi
29750
29751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29752 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29753 if ${gcc_cv_as_line_zero+:} false; then :
29754 $as_echo_n "(cached) " >&6
29755 else
29756 gcc_cv_as_line_zero=no
29757 if test $in_tree_gas = yes; then
29758 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
29759 then gcc_cv_as_line_zero=yes
29760 fi
29761 elif test "x$gcc_cv_as" != x; then
29762 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29763 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29765 (eval $ac_try) 2>&5
29766 ac_status=$?
29767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29768 test $ac_status = 0; }; } &&
29769 test "x`cat conftest.out`" = x
29770 then
29771 gcc_cv_as_line_zero=yes
29772 else
29773 echo "configure: failed program was" >&5
29774 cat conftest.s >&5
29775 echo "configure: error output was" >&5
29776 cat conftest.out >&5
29777 fi
29778 rm -f conftest.o conftest.s conftest.out
29779 fi
29780 fi
29781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29782 $as_echo "$gcc_cv_as_line_zero" >&6; }
29783 if test "x$gcc_cv_as_line_zero" = xyes; then
29784
29785 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29786
29787 fi
29788
29789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29790 $as_echo_n "checking support for thin archives... " >&6; }
29791 thin_archive_support=no
29792 echo 'int main (void) { return 0; }' > conftest.c
29793 if ($AR --version | sed 1q | grep "GNU ar" \
29794 && $CC $CFLAGS -c conftest.c \
29795 && $AR rcT conftest.a conftest.o \
29796 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
29797 thin_archive_support=yes
29798 fi
29799 rm -f conftest.c conftest.o conftest.a conftest
29800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29801 $as_echo "$thin_archive_support" >&6; }
29802
29803
29804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29805 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29806 gcc_cv_ld_eh_frame_hdr=no
29807 if test $in_tree_ld = yes ; then
29808 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 \
29809 && test $in_tree_ld_is_elf = yes; then
29810 gcc_cv_ld_eh_frame_hdr=yes
29811 fi
29812 elif test x$gcc_cv_ld != x; then
29813 if echo "$ld_ver" | grep GNU > /dev/null; then
29814 # Check if linker supports --eh-frame-hdr option
29815 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
29816 gcc_cv_ld_eh_frame_hdr=yes
29817 fi
29818 else
29819 case "$target" in
29820 *-*-solaris2*)
29821 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
29822 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
29823 gcc_cv_ld_eh_frame_hdr=yes
29824 fi
29825 ;;
29826 esac
29827 fi
29828 fi
29829
29830 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
29831
29832 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
29833
29834 fi
29835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
29836 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
29837
29838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
29839 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
29840 gcc_cv_ld_eh_frame_ciev3=no
29841 if test $in_tree_ld = yes ; then
29842 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 \
29843 && test $in_tree_ld_is_elf = yes; then
29844 gcc_cv_ld_eh_frame_ciev3=yes
29845 fi
29846 elif test x$gcc_cv_ld != x; then
29847 if echo "$ld_ver" | grep GNU > /dev/null; then
29848 gcc_cv_ld_eh_frame_ciev3=yes
29849 if test 0"$ld_date" -lt 20040513; then
29850 if test -n "$ld_date"; then
29851 # If there was date string, but was earlier than 2004-05-13, fail
29852 gcc_cv_ld_eh_frame_ciev3=no
29853 elif test "$ld_vers_major" -lt 2; then
29854 gcc_cv_ld_eh_frame_ciev3=no
29855 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
29856 gcc_cv_ld_eh_frame_ciev3=no
29857 fi
29858 fi
29859 else
29860 case "$target" in
29861 *-*-solaris2*)
29862 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
29863 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
29864 gcc_cv_ld_eh_frame_ciev3=yes
29865 fi
29866 ;;
29867 esac
29868 fi
29869 fi
29870
29871 cat >>confdefs.h <<_ACEOF
29872 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
29873 _ACEOF
29874
29875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
29876 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
29877
29878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
29879 $as_echo_n "checking linker position independent executable support... " >&6; }
29880 gcc_cv_ld_pie=no
29881 if test $in_tree_ld = yes ; then
29882 case "$target" in
29883 # Full PIE support on Solaris was only introduced in gld 2.26.
29884 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
29885 *) gcc_gld_pie_min_version=15 ;;
29886 esac
29887 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 \
29888 && test $in_tree_ld_is_elf = yes; then
29889 gcc_cv_ld_pie=yes
29890 fi
29891 elif test x$gcc_cv_ld != x; then
29892 # Check if linker supports -pie option
29893 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
29894 gcc_cv_ld_pie=yes
29895 case "$target" in
29896 *-*-solaris2*)
29897 if echo "$ld_ver" | grep GNU > /dev/null \
29898 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29899 gcc_cv_ld_pie=no
29900 fi
29901 ;;
29902 esac
29903 else
29904 case "$target" in
29905 *-*-solaris2.1[1-9]*)
29906 # Solaris 11.3 added PIE support.
29907 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
29908 gcc_cv_ld_pie=yes
29909 fi
29910 ;;
29911 esac
29912 fi
29913 fi
29914 if test x"$gcc_cv_ld_pie" = xyes; then
29915
29916 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
29917
29918 fi
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
29920 $as_echo "$gcc_cv_ld_pie" >&6; }
29921
29922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
29923 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
29924 gcc_cv_ld_pie_copyreloc=no
29925 if test $gcc_cv_ld_pie = yes ; then
29926 if test $in_tree_ld = yes ; then
29927 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
29928 gcc_cv_ld_pie_copyreloc=yes
29929 fi
29930 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29931 # Check if linker supports -pie option with copy reloc
29932 case "$target" in
29933 i?86-*-linux* | x86_64-*-linux*)
29934 cat > conftest1.s <<EOF
29935 .globl a_glob
29936 .data
29937 .type a_glob, @object
29938 .size a_glob, 4
29939 a_glob:
29940 .long 2
29941 EOF
29942 cat > conftest2.s <<EOF
29943 .text
29944 .globl main
29945 .type main, @function
29946 main:
29947 movl %eax, a_glob(%rip)
29948 .size main, .-main
29949 .globl ptr
29950 .section .data.rel,"aw",@progbits
29951 .type ptr, @object
29952 ptr:
29953 .quad a_glob
29954 EOF
29955 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29956 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
29957 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29958 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
29959 gcc_cv_ld_pie_copyreloc=yes
29960 fi
29961 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
29962 ;;
29963 esac
29964 fi
29965 fi
29966
29967 cat >>confdefs.h <<_ACEOF
29968 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
29969 _ACEOF
29970
29971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
29972 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
29973
29974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
29975 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
29976 gcc_cv_ld_eh_gc_sections=no
29977 if test $in_tree_ld = yes ; then
29978 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 \
29979 && test $in_tree_ld_is_elf = yes; then
29980 gcc_cv_ld_eh_gc_sections=yes
29981 fi
29982 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
29983 cat > conftest.s <<EOF
29984 .section .text
29985 .globl _start
29986 .type _start, @function
29987 _start:
29988 .long foo
29989 .size _start, .-_start
29990 .section .text.foo,"ax",@progbits
29991 .type foo, @function
29992 foo:
29993 .long 0
29994 .size foo, .-foo
29995 .section .gcc_except_table.foo,"a",@progbits
29996 .L0:
29997 .long 0
29998 .section .eh_frame,"a",@progbits
29999 .long .L0
30000 EOF
30001 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30002 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30003 | grep "gc-sections option ignored" > /dev/null; then
30004 gcc_cv_ld_eh_gc_sections=no
30005 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30006 | grep gcc_except_table > /dev/null; then
30007 gcc_cv_ld_eh_gc_sections=yes
30008 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30009 if test x$gcc_cv_as_comdat_group != xyes; then
30010 gcc_cv_ld_eh_gc_sections=no
30011 cat > conftest.s <<EOF
30012 .section .text
30013 .globl _start
30014 .type _start, @function
30015 _start:
30016 .long foo
30017 .size _start, .-_start
30018 .section .gnu.linkonce.t.foo,"ax",@progbits
30019 .type foo, @function
30020 foo:
30021 .long 0
30022 .size foo, .-foo
30023 .section .gcc_except_table.foo,"a",@progbits
30024 .L0:
30025 .long 0
30026 .section .eh_frame,"a",@progbits
30027 .long .L0
30028 EOF
30029 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30030 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30031 | grep "gc-sections option ignored" > /dev/null; then
30032 gcc_cv_ld_eh_gc_sections=no
30033 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30034 | grep gcc_except_table > /dev/null; then
30035 gcc_cv_ld_eh_gc_sections=yes
30036 fi
30037 fi
30038 fi
30039 fi
30040 fi
30041 rm -f conftest.s conftest.o conftest
30042 fi
30043 case "$target" in
30044 hppa*-*-linux*)
30045 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30046 gcc_cv_ld_eh_gc_sections=no
30047 ;;
30048 esac
30049 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30050
30051 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30052
30053 fi
30054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30055 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30056
30057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30058 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30059 gcc_cv_ld_eh_gc_sections_bug=no
30060 if test $in_tree_ld = yes ; then
30061 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 \
30062 && test $in_tree_ld_is_elf = yes; then
30063 gcc_cv_ld_eh_gc_sections_bug=yes
30064 fi
30065 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
30066 gcc_cv_ld_eh_gc_sections_bug=yes
30067 cat > conftest.s <<EOF
30068 .section .text
30069 .globl _start
30070 .type _start, @function
30071 _start:
30072 .long foo
30073 .size _start, .-_start
30074 .section .text.startup.foo,"ax",@progbits
30075 .type foo, @function
30076 foo:
30077 .long 0
30078 .size foo, .-foo
30079 .section .gcc_except_table.foo,"a",@progbits
30080 .L0:
30081 .long 0
30082 .section .eh_frame,"a",@progbits
30083 .long .L0
30084 EOF
30085 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30086 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30087 | grep "gc-sections option ignored" > /dev/null; then
30088 :
30089 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30090 | grep gcc_except_table > /dev/null; then
30091 gcc_cv_ld_eh_gc_sections_bug=no
30092 fi
30093 fi
30094 rm -f conftest.s conftest.o conftest
30095 fi
30096 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30097
30098 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30099
30100 fi
30101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30102 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30103
30104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30105 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30106 # gold/gld support compressed debug sections since binutils 2.19/2.21
30107 # In binutils 2.26, gld gained support for the ELF gABI format.
30108 if test $in_tree_ld = yes ; then
30109 gcc_cv_ld_compress_debug=0
30110 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
30111 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
30112 gcc_cv_ld_compress_debug=2
30113 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30114 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 \
30115 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
30116 gcc_cv_ld_compress_debug=3
30117 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30118 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 \
30119 && test $in_tree_ld_is_elf = yes; then
30120 gcc_cv_ld_compress_debug=1
30121 fi
30122 elif echo "$ld_ver" | grep GNU > /dev/null; then
30123 if test "$ld_vers_major" -lt 2 \
30124 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
30125 gcc_cv_ld_compress_debug=0
30126 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30127 gcc_cv_ld_compress_debug=1
30128 else
30129 gcc_cv_ld_compress_debug=3
30130 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30131 fi
30132 if test $ld_is_gold = yes; then
30133 gcc_cv_ld_compress_debug=2
30134 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30135 fi
30136 else
30137 case "${target}" in
30138 *-*-solaris2*)
30139 # Introduced in Solaris 11.2.
30140 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30141 gcc_cv_ld_compress_debug=3
30142 gcc_cv_ld_compress_debug_option="-z compress-sections"
30143 else
30144 gcc_cv_ld_compress_debug=0
30145 fi
30146 ;;
30147 *)
30148 # Assume linkers other than GNU ld don't support compessed debug
30149 # sections.
30150 gcc_cv_ld_compress_debug=0
30151 ;;
30152 esac
30153 fi
30154
30155 cat >>confdefs.h <<_ACEOF
30156 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30157 _ACEOF
30158
30159
30160 cat >>confdefs.h <<_ACEOF
30161 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30162 _ACEOF
30163
30164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30165 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30166
30167 if test x"$ld64_flag" = x"yes"; then
30168
30169 # Set defaults for possibly untestable items.
30170 gcc_cv_ld64_export_dynamic=0
30171
30172 if test "$build" = "$host"; then
30173 darwin_try_test=1
30174 else
30175 darwin_try_test=0
30176 fi
30177
30178 # On Darwin, because of FAT library support, it is often possible to execute
30179 # exes from compatible archs even when the host differs from the build system.
30180 case "$build","$host" in
30181 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30182 darwin_try_test=1;;
30183 *) ;;
30184 esac
30185
30186 # If the configurer specified a minimum ld64 version to be supported, then use
30187 # that to determine feature support.
30188 if test x"${gcc_cv_ld64_version}" != x; then
30189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30190 $as_echo_n "checking ld64 specified version... " >&6; }
30191 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30193 $as_echo "$gcc_cv_ld64_major" >&6; }
30194 if test "$gcc_cv_ld64_major" -ge 236; then
30195 gcc_cv_ld64_export_dynamic=1
30196 fi
30197 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30198 # If the version was not specified, try to find it.
30199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30200 $as_echo_n "checking linker version... " >&6; }
30201 if test x"${gcc_cv_ld64_version}" = x; then
30202 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30203 fi
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30205 $as_echo "$gcc_cv_ld64_version" >&6; }
30206
30207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30208 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30209 gcc_cv_ld64_export_dynamic=1
30210 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30211 gcc_cv_ld64_export_dynamic=0
30212 fi
30213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30214 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30215 fi
30216
30217 if test x"${gcc_cv_ld64_version}" != x; then
30218
30219 cat >>confdefs.h <<_ACEOF
30220 #define LD64_VERSION "${gcc_cv_ld64_version}"
30221 _ACEOF
30222
30223 fi
30224
30225
30226 cat >>confdefs.h <<_ACEOF
30227 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30228 _ACEOF
30229
30230 fi
30231
30232 case $target_os in
30233 win32 | pe | cygwin* | mingw32*)
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30235 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30236 gcc_cv_ld_broken_pe_dwarf5=yes
30237 if test $in_tree_ld = yes ; then
30238 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30239 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30240 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30241 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30242 gcc_cv_ld_broken_pe_dwarf5=no
30243 fi
30244 else
30245 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30246 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30247 gcc_cv_ld_broken_pe_dwarf5=no
30248 fi
30249 fi
30250 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30251
30252 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30253
30254 fi
30255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30256 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30257 ;;
30258 esac
30259
30260 # --------
30261 # UNSORTED
30262 # --------
30263
30264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30265 $as_echo_n "checking linker --as-needed support... " >&6; }
30266 if ${gcc_cv_ld_as_needed+:} false; then :
30267 $as_echo_n "(cached) " >&6
30268 else
30269 gcc_cv_ld_as_needed=no
30270 gcc_cv_ld_as_needed_option='--as-needed'
30271 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30272 if test $in_tree_ld = yes ; then
30273 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 \
30274 && test $in_tree_ld_is_elf = yes; then
30275 gcc_cv_ld_as_needed=yes
30276 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30277 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30278 gcc_cv_ld_no_as_needed_option='--pop-state'
30279 fi
30280 fi
30281 elif test x$gcc_cv_ld != x; then
30282 # Check if linker supports --as-needed and --no-as-needed options
30283 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30284 gcc_cv_ld_as_needed=yes
30285 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30286 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30287 && echo "$ld_ver" | grep GNU > /dev/null \
30288 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30289 # Use these options only when both ld.bfd and ld.gold support
30290 # --push-state/--pop-state, which unfortunately wasn't added
30291 # at the same time.
30292 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30293 gcc_cv_ld_no_as_needed_option='--pop-state'
30294 fi
30295 fi
30296 case "$target:$gnu_ld" in
30297 *-*-solaris2*:no)
30298 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30299 # forms.
30300 gcc_cv_ld_as_needed=yes
30301 gcc_cv_ld_as_needed_option="-z ignore"
30302 gcc_cv_ld_no_as_needed_option="-z record"
30303 ;;
30304 esac
30305 fi
30306 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30307 # dl_iterate_phdr, i.e. since Solaris 11.
30308 case "$target" in
30309 *-*-solaris2.1[1-9]*)
30310 case "$target" in
30311 i?86-*-* | x86_64-*-*)
30312 if echo "$ld_ver" | grep GNU > /dev/null; then
30313 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30314 gcc_cv_ld_as_needed=no
30315 fi
30316 ;;
30317 esac
30318 ;;
30319 *-*-solaris2*)
30320 gcc_cv_ld_as_needed=no
30321 ;;
30322 esac
30323
30324 fi
30325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30326 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30327 if test x"$gcc_cv_ld_as_needed" = xyes; then
30328
30329 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30330
30331
30332 cat >>confdefs.h <<_ACEOF
30333 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30334 _ACEOF
30335
30336
30337 cat >>confdefs.h <<_ACEOF
30338 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30339 _ACEOF
30340
30341 fi
30342
30343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30344 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30345 saved_LDFLAGS="$LDFLAGS"
30346 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30347 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30349 /* end confdefs.h. */
30350 int main(void) {return 0;}
30351 _ACEOF
30352 if ac_fn_cxx_try_link "$LINENO"; then :
30353 gcc_cv_ld_clearcap=yes; break
30354 else
30355 gcc_cv_ld_clearcap=no
30356 fi
30357 rm -f core conftest.err conftest.$ac_objext \
30358 conftest$ac_exeext conftest.$ac_ext
30359 done
30360 LDFLAGS="$saved_LDFLAGS"
30361 if test "x$gcc_cv_ld_clearcap" = xyes; then
30362
30363 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30364
30365 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30366
30367 fi
30368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30369 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30370
30371 case "$target" in
30372 powerpc*-*-*)
30373 case "$target" in
30374 *le-*-linux*)
30375 emul_name="-melf32lppc"
30376 ;;
30377 *)
30378 emul_name="-melf32ppc"
30379 ;;
30380 esac
30381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30382 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30383 if ${gcc_cv_ld_ppc_attr+:} false; then :
30384 $as_echo_n "(cached) " >&6
30385 else
30386 gcc_cv_ld_ppc_attr=no
30387 if test x"$ld_is_gold" = xyes; then
30388 gcc_cv_ld_ppc_attr=yes
30389 elif test $in_tree_ld = yes ; then
30390 if test "$gcc_cv_gld_major_version" -eq 2 \
30391 -a "$gcc_cv_gld_minor_version" -ge 28 \
30392 -o "$gcc_cv_gld_major_version" -gt 2; then
30393 gcc_cv_ld_ppc_attr=yes
30394 fi
30395 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30396 # check that merging the long double .gnu_attribute doesn't warn
30397 cat > conftest1.s <<EOF
30398 .gnu_attribute 4,1
30399 EOF
30400 cat > conftest2.s <<EOF
30401 .gnu_attribute 4,9
30402 EOF
30403 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30404 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30405 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30406 && test ! -s conftest.err; then
30407 gcc_cv_ld_ppc_attr=yes
30408 fi
30409 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30410 fi
30411
30412 fi
30413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30414 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30415 if test x$gcc_cv_ld_ppc_attr = xyes; then
30416
30417 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30418
30419 fi
30420 ;;
30421 esac
30422
30423 case "$target:$tm_file" in
30424 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30425 case "$target" in
30426 *le-*-linux*)
30427 emul_name="-melf64lppc"
30428 ;;
30429 *-*-linux*)
30430 emul_name="-melf64ppc"
30431 ;;
30432 *le-*-freebsd*)
30433 emul_name="-melf64lppc_fbsd"
30434 ;;
30435 *-*-freebsd*)
30436 emul_name="-melf64ppc_fbsd"
30437 ;;
30438 esac
30439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30440 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30441 if ${gcc_cv_ld_no_dot_syms+:} false; then :
30442 $as_echo_n "(cached) " >&6
30443 else
30444 gcc_cv_ld_no_dot_syms=no
30445 if test x"$ld_is_gold" = xyes; then
30446 gcc_cv_ld_no_dot_syms=yes
30447 elif test $in_tree_ld = yes ; then
30448 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
30449 gcc_cv_ld_no_dot_syms=yes
30450 fi
30451 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30452 cat > conftest1.s <<EOF
30453 .text
30454 bl .foo
30455 EOF
30456 cat > conftest2.s <<EOF
30457 .section ".opd","aw"
30458 .align 3
30459 .globl foo
30460 .type foo,@function
30461 foo:
30462 .quad .LEfoo,.TOC.@tocbase,0
30463 .text
30464 .LEfoo:
30465 blr
30466 .size foo,.-.LEfoo
30467 EOF
30468 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30469 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30470 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30471 gcc_cv_ld_no_dot_syms=yes
30472 fi
30473 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30474 fi
30475
30476 fi
30477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30478 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30479 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30480
30481 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30482
30483 fi
30484
30485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30486 $as_echo_n "checking linker large toc support... " >&6; }
30487 if ${gcc_cv_ld_large_toc+:} false; then :
30488 $as_echo_n "(cached) " >&6
30489 else
30490 gcc_cv_ld_large_toc=no
30491 if test x"$ld_is_gold" = xyes; then
30492 gcc_cv_ld_large_toc=yes
30493 elif test $in_tree_ld = yes ; then
30494 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
30495 gcc_cv_ld_large_toc=yes
30496 fi
30497 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30498 cat > conftest.s <<EOF
30499 .section ".tbss","awT",@nobits
30500 .align 3
30501 ie0: .space 8
30502 .global _start
30503 .text
30504 _start:
30505 addis 9,13,ie0@got@tprel@ha
30506 ld 9,ie0@got@tprel@l(9)
30507 EOF
30508 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30509 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30510 gcc_cv_ld_large_toc=yes
30511 fi
30512 rm -f conftest conftest.o conftest.s
30513 fi
30514
30515 fi
30516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30517 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30518 if test x"$gcc_cv_ld_large_toc" = xyes; then
30519
30520 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30521
30522 fi
30523
30524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30525 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30526 if ${gcc_cv_ld_toc_align+:} false; then :
30527 $as_echo_n "(cached) " >&6
30528 else
30529 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30530 cat > conftest.s <<EOF
30531 .global _start
30532 .text
30533 _start:
30534 addis 9,2,x@got@ha
30535 .section .data.rel.ro,"aw",@progbits
30536 .p2align 16
30537 .space 32768
30538 x: .quad .TOC.
30539 EOF
30540 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30541 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30542 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)) }'`
30543 fi
30544 rm -f conftest conftest.o conftest.s
30545 fi
30546
30547 fi
30548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30549 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30550 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30551
30552 cat >>confdefs.h <<_ACEOF
30553 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30554 _ACEOF
30555
30556 fi
30557 ;;
30558 esac
30559
30560 case "$target" in
30561 *-*-aix*)
30562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30563 $as_echo_n "checking linker large toc support... " >&6; }
30564 if ${gcc_cv_ld_large_toc+:} false; then :
30565 $as_echo_n "(cached) " >&6
30566 else
30567 gcc_cv_ld_large_toc=no
30568 if test x$gcc_cv_as != x ; then
30569 cat > conftest.s <<EOF
30570 .toc
30571 LC..1:
30572 .tc a[TC],a[RW]
30573 .extern a[RW]
30574 .csect .text[PR]
30575 .largetoctest:
30576 addis 9,LC..1@u(2)
30577 ld 3,LC..1@l(9)
30578 EOF
30579 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
30580 gcc_cv_ld_large_toc=yes
30581 fi
30582 rm -f conftest conftest.o conftest.s
30583 fi
30584
30585 fi
30586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30587 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30588 if test x"$gcc_cv_ld_large_toc" = xyes; then
30589
30590 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30591
30592 fi
30593 ;;
30594 esac
30595
30596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30597 $as_echo_n "checking linker --build-id support... " >&6; }
30598 if ${gcc_cv_ld_buildid+:} false; then :
30599 $as_echo_n "(cached) " >&6
30600 else
30601 gcc_cv_ld_buildid=no
30602 if test $in_tree_ld = yes ; then
30603 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30604 "$gcc_cv_gld_minor_version" -ge 18 -o \
30605 "$gcc_cv_gld_major_version" -gt 2 \
30606 && test $in_tree_ld_is_elf = yes; then
30607 gcc_cv_ld_buildid=yes
30608 fi
30609 elif test x$gcc_cv_ld != x; then
30610 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
30611 gcc_cv_ld_buildid=yes
30612 fi
30613 fi
30614 fi
30615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30616 $as_echo "$gcc_cv_ld_buildid" >&6; }
30617 if test x"$gcc_cv_ld_buildid" = xyes; then
30618
30619 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30620
30621 fi
30622
30623 # Check whether --enable-linker-build-id was given.
30624 if test "${enable_linker_build_id+set}" = set; then :
30625 enableval=$enable_linker_build_id;
30626 else
30627 enable_linker_build_id=no
30628 fi
30629
30630
30631 if test x"$enable_linker_build_id" = xyes; then
30632 if test x"$gcc_cv_ld_buildid" = xyes; then
30633
30634 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30635
30636 else
30637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30638 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30639 fi
30640 fi
30641
30642 # In binutils 2.21, GNU ld gained support for new emulations fully
30643 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30645 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30646 if ${gcc_cv_ld_sol2_emulation+:} false; then :
30647 $as_echo_n "(cached) " >&6
30648 else
30649 gcc_cv_ld_sol2_emulation=no
30650 if test $in_tree_ld = yes ; then
30651 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30652 "$gcc_cv_gld_minor_version" -ge 21 -o \
30653 "$gcc_cv_gld_major_version" -gt 2 \
30654 && test $in_tree_ld_is_elf = yes; then
30655 gcc_cv_ld_sol2_emulation=yes
30656 fi
30657 elif test x$gcc_cv_ld != x; then
30658 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
30659 grep _sol2 > /dev/null; then
30660 gcc_cv_ld_sol2_emulation=yes
30661 fi
30662 fi
30663 fi
30664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30665 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30666 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
30667
30668 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30669
30670 fi
30671
30672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30673 $as_echo_n "checking linker --sysroot support... " >&6; }
30674 if ${gcc_cv_ld_sysroot+:} false; then :
30675 $as_echo_n "(cached) " >&6
30676 else
30677 gcc_cv_ld_sysroot=no
30678 if test $in_tree_ld = yes ; then
30679 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
30680 gcc_cv_ld_sysroot=yes
30681 fi
30682 elif test x$gcc_cv_ld != x; then
30683 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
30684 gcc_cv_ld_sysroot=yes
30685 fi
30686 fi
30687 fi
30688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30689 $as_echo "$gcc_cv_ld_sysroot" >&6; }
30690 if test x"$gcc_cv_ld_sysroot" = xyes; then
30691
30692 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30693
30694 fi
30695
30696 case $target in
30697 *-*-solaris2*)
30698 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30700 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30701 if ${gcc_cv_solaris_crts+:} false; then :
30702 $as_echo_n "(cached) " >&6
30703 else
30704 gcc_cv_solaris_crts=no
30705 if test x$host != x$target; then
30706 if test "x$with_sysroot" = xyes; then
30707 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
30708 else
30709 target_sysroot="${with_sysroot}"
30710 fi
30711 fi
30712 target_libdir="$target_sysroot/usr/lib"
30713 # At the time they were added, gcrt1.o became a symlink for backwards
30714 # compatibility on x86, while crt1.o was added on sparc, so check for that.
30715 case $target in
30716 i?86-*-solaris2* | x86_64-*-solaris2*)
30717 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
30718 ;;
30719 sparc*-*-solaris2*)
30720 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
30721 ;;
30722 esac
30723 fi
30724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30725 $as_echo "$gcc_cv_solaris_crts" >&6; }
30726 ;;
30727 esac
30728 if test x$gcc_cv_solaris_crts = xyes; then
30729
30730 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30731
30732 fi
30733
30734 # Check whether --enable-libssp was given.
30735 if test "${enable_libssp+set}" = set; then :
30736 enableval=$enable_libssp; case "${enableval}" in
30737 yes|no)
30738 ;;
30739 *)
30740 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
30741 ;;
30742 esac
30743 fi
30744
30745
30746 # Test for stack protector support in target C library.
30747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
30748 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
30749 if ${gcc_cv_libc_provides_ssp+:} false; then :
30750 $as_echo_n "(cached) " >&6
30751 else
30752 gcc_cv_libc_provides_ssp=no
30753 if test "x$enable_libssp" = "xno"; then
30754 gcc_cv_libc_provides_ssp=yes
30755 elif test "x$enable_libssp" = "xyes"; then
30756 gcc_cv_libc_provides_ssp=no
30757 else
30758 case "$target" in
30759 *-*-musl*)
30760 # All versions of musl provide stack protector
30761 gcc_cv_libc_provides_ssp=yes;;
30762 *-*-linux* | *-*-kfreebsd*-gnu)
30763 # glibc 2.4 and later provides __stack_chk_fail and
30764 # either __stack_chk_guard, or TLS access to stack guard canary.
30765
30766 if test $glibc_version_major -gt 2 \
30767 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30768 gcc_cv_libc_provides_ssp=yes
30769 else
30770
30771 if test -f $target_header_dir/features.h \
30772 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
30773 $target_header_dir/features.h > /dev/null; then
30774 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
30775 $target_header_dir/features.h > /dev/null && \
30776 test -f $target_header_dir/bits/uClibc_config.h && \
30777 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
30778 $target_header_dir/bits/uClibc_config.h > /dev/null; then
30779 gcc_cv_libc_provides_ssp=yes
30780 fi
30781 # all versions of Bionic support stack protector
30782 elif test -f $target_header_dir/sys/cdefs.h \
30783 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
30784 $target_header_dir/sys/cdefs.h > /dev/null; then
30785 gcc_cv_libc_provides_ssp=yes
30786 fi
30787 fi
30788 ;;
30789 *-*-gnu*)
30790 # Avoid complicated tests (see
30791 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
30792 # simply assert that glibc does provide this, which is true for all
30793 # realistically usable GNU/Hurd configurations.
30794 # All supported versions of musl provide it as well
30795 gcc_cv_libc_provides_ssp=yes;;
30796 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
30797 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
30798 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
30799 gcc_cv_libc_provides_ssp=yes
30800 else
30801 echo "no __stack_chk_fail on this target"
30802 fi
30803
30804 ;;
30805 *) gcc_cv_libc_provides_ssp=no ;;
30806 esac
30807 fi
30808 fi
30809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
30810 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
30811
30812 if test x$gcc_cv_libc_provides_ssp = xyes; then
30813
30814 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
30815
30816 fi
30817
30818 # Check whether --enable-default-ssp was given.
30819 # Check whether --enable-default-ssp was given.
30820 if test "${enable_default_ssp+set}" = set; then :
30821 enableval=$enable_default_ssp;
30822 if test x$gcc_cv_libc_provides_ssp = xyes; then
30823 case "$target" in
30824 ia64*-*-*) enable_default_ssp=no ;;
30825 *) enable_default_ssp=$enableval ;;
30826 esac
30827 else
30828 enable_default_ssp=no
30829 fi
30830 else
30831 enable_default_ssp=no
30832 fi
30833
30834 if test x$enable_default_ssp = xyes ; then
30835
30836 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
30837
30838 fi
30839
30840
30841 # Test for <sys/sdt.h> on the target.
30842
30843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
30844 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
30845 have_sys_sdt_h=no
30846 if test -f $target_header_dir/sys/sdt.h; then
30847 have_sys_sdt_h=yes
30848
30849 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
30850
30851 fi
30852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
30853 $as_echo "$have_sys_sdt_h" >&6; }
30854
30855 # Check if TFmode long double should be used by default or not.
30856 # Some glibc targets used DFmode long double, but with glibc 2.4
30857 # and later they can use TFmode.
30858 case "$target" in
30859 powerpc*-*-linux* | \
30860 sparc*-*-linux* | \
30861 s390*-*-linux* | \
30862 alpha*-*-linux*)
30863
30864 # Check whether --with-long-double-128 was given.
30865 if test "${with_long_double_128+set}" = set; then :
30866 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
30867 else
30868
30869 case "$target" in
30870 s390*-*-linux-musl*)
30871 gcc_cv_target_ldbl128=yes
30872 ;;
30873 powerpc*-*-linux-musl*)
30874 gcc_cv_target_ldbl128=no
30875 ;;
30876 *)
30877
30878 if test $glibc_version_major -gt 2 \
30879 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30880 gcc_cv_target_ldbl128=yes
30881 else
30882
30883 gcc_cv_target_ldbl128=no
30884 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
30885 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
30886 && gcc_cv_target_ldbl128=yes
30887
30888 fi
30889
30890 ;;
30891 esac
30892
30893 fi
30894
30895 ;;
30896 esac
30897 if test x$gcc_cv_target_ldbl128 = xyes; then
30898
30899 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
30900
30901 fi
30902
30903 # Check if TFmode long double target should use the IBM extended double or IEEE
30904 # 128-bit floating point formats if long doubles are 128-bits long. The long
30905 # double type can only be switched on powerpc64 bit Linux systems where VSX is
30906 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
30907 # libgcc.
30908
30909 # Check whether --with-long-double-format was given.
30910 if test "${with_long_double_format+set}" = set; then :
30911 withval=$with_long_double_format;
30912 case "$target:$with_long_double_format" in
30913 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
30914 :
30915 ;;
30916 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
30917 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
30918 case "$with_cpu" in
30919 power7 | power8 | power9 | power1*)
30920 :
30921 ;;
30922 *)
30923 as_fn_error $? "Configuration option --with-long-double-format is only \
30924 supported if the default cpu is power7 or newer" "$LINENO" 5
30925 with_long_double_format=""
30926 ;;
30927 esac
30928 ;;
30929 powerpc64*-*-linux*:*)
30930 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
30931 with_long_double_format=""
30932 ;;
30933 *)
30934 as_fn_error $? "Configure option --with-long-double-format is only supported \
30935 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
30936 with_long_double_format=""
30937 ;;
30938 esac
30939 fi
30940
30941
30942 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
30943 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
30944 gcc_cv_libc_provides_hwcap_in_tcb=no
30945 case "$target" in
30946 powerpc*-*-linux*)
30947
30948 if test $glibc_version_major -gt 2 \
30949 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
30950 gcc_cv_libc_provides_hwcap_in_tcb=yes
30951 fi
30952 ;;
30953 esac
30954 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
30955
30956 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
30957
30958 fi
30959
30960 # Check if the target LIBC handles PT_GNU_STACK.
30961 gcc_cv_libc_gnustack=unknown
30962 case "$target" in
30963 mips*-*-linux*)
30964
30965 if test $glibc_version_major -gt 2 \
30966 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
30967 gcc_cv_libc_gnustack=yes
30968 fi
30969 ;;
30970 esac
30971 if test x$gcc_cv_libc_gnustack = xyes; then
30972
30973 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
30974
30975 fi
30976
30977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
30978 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
30979 gcc_cv_target_dl_iterate_phdr=unknown
30980 case "$target" in
30981 *-*-solaris2*)
30982 # <link.h> needs both a dl_iterate_phdr declaration and support for
30983 # compilation with largefile support.
30984 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
30985 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
30986 gcc_cv_target_dl_iterate_phdr=yes
30987 else
30988 gcc_cv_target_dl_iterate_phdr=no
30989 fi
30990 ;;
30991 *-*-dragonfly* | *-*-freebsd*)
30992 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
30993 gcc_cv_target_dl_iterate_phdr=yes
30994 else
30995 gcc_cv_target_dl_iterate_phdr=no
30996 fi
30997 ;;
30998 *-linux-musl*)
30999 gcc_cv_target_dl_iterate_phdr=yes
31000 ;;
31001 esac
31002
31003 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31004
31005 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31006
31007 fi
31008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31009 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31010
31011 # We no longer support different GC mechanisms. Emit an error if
31012 # the user configures with --with-gc.
31013
31014 # Check whether --with-gc was given.
31015 if test "${with_gc+set}" = set; then :
31016 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31017 fi
31018
31019
31020 # Libraries to use on the host. This will normally be set by the top
31021 # level Makefile. Here we simply capture the value for our Makefile.
31022 if test -z "${HOST_LIBS+set}"; then
31023 HOST_LIBS=
31024 fi
31025
31026
31027 # Use the system's zlib library.
31028
31029 # Use the system's zlib library.
31030 zlibdir="-L\$(top_builddir)/../zlib"
31031 zlibinc="-I\$(top_srcdir)/../zlib"
31032
31033 # Check whether --with-system-zlib was given.
31034 if test "${with_system_zlib+set}" = set; then :
31035 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31036 zlibdir=
31037 zlibinc=
31038 fi
31039
31040 fi
31041
31042
31043
31044
31045
31046
31047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31048 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31049 # Check whether --enable-maintainer-mode was given.
31050 if test "${enable_maintainer_mode+set}" = set; then :
31051 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31052 else
31053 maintainer_mode=no
31054 fi
31055
31056
31057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31058 $as_echo "$maintainer_mode" >&6; }
31059
31060 if test "$maintainer_mode" = "yes"; then
31061 MAINT=''
31062 else
31063 MAINT='#'
31064 fi
31065
31066
31067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31068 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31069 # Check whether --enable-link-mutex was given.
31070 if test "${enable_link_mutex+set}" = set; then :
31071 enableval=$enable_link_mutex; do_link_mutex=$enableval
31072 else
31073 do_link_mutex=no
31074 fi
31075
31076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31077 $as_echo "$do_link_mutex" >&6; }
31078
31079 if test "$do_link_mutex" = "yes"; then
31080 DO_LINK_MUTEX=true
31081 else
31082 DO_LINK_MUTEX=false
31083 fi
31084
31085
31086
31087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31088 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31089 # Check whether --enable-link-serialization was given.
31090 if test "${enable_link_serialization+set}" = set; then :
31091 enableval=$enable_link_serialization; do_link_serialization=$enableval
31092 else
31093 do_link_serialization=no
31094 fi
31095
31096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31097 $as_echo "$do_link_serialization" >&6; }
31098
31099 case "$do_link_serialization" in
31100 yes)
31101 DO_LINK_SERIALIZATION=1;;
31102 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31103 DO_LINK_SERIALIZATION=$do_link_serialization;;
31104 no)
31105 DO_LINK_SERIALIZATION=;;
31106 *)
31107 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31108 esac
31109
31110
31111 # --------------
31112 # Language hooks
31113 # --------------
31114
31115 # Make empty files to contain the specs and options for each language.
31116 # Then add #include lines to for a compiler that has specs and/or options.
31117
31118 subdirs=
31119 lang_opt_files=
31120 lang_specs_files=
31121 lang_tree_files=
31122 # These (without "all_") are set in each config-lang.in.
31123 # `language' must be a single word so is spelled singularly.
31124 all_languages=
31125 all_compilers=
31126 all_outputs='Makefile'
31127 # List of language configure and makefile fragments.
31128 all_lang_configurefrags=
31129 all_lang_makefrags=
31130 # Additional files for gengtype
31131 all_gtfiles="$target_gtfiles"
31132
31133 # These are the languages that are set in --enable-languages,
31134 # and are available in the GCC tree.
31135 all_selected_languages=
31136
31137 # Add the language fragments.
31138 # Languages are added via two mechanisms. Some information must be
31139 # recorded in makefile variables, these are defined in config-lang.in.
31140 # We accumulate them and plug them into the main Makefile.
31141 # The other mechanism is a set of hooks for each of the main targets
31142 # like `clean', `install', etc.
31143
31144 language_hooks="Make-hooks"
31145
31146 for lang in ${srcdir}/*/config-lang.in
31147 do
31148 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31149
31150 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31151 if test "x$lang_alias" = x
31152 then
31153 echo "$lang doesn't set \$language." 1>&2
31154 exit 1
31155 fi
31156 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31157 subdirs="$subdirs $subdir"
31158
31159 # $gcc_subdir is where the gcc integration files are to be found
31160 # for a language, both for internal compiler purposes (compiler
31161 # sources implementing front-end to GCC tree converters), and for
31162 # build infrastructure purposes (Make-lang.in, etc.)
31163 #
31164 # This will be <subdir> (relative to $srcdir) if a line like
31165 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31166 # is found in <langdir>/config-lang.in, and will remain <langdir>
31167 # otherwise.
31168 #
31169 # Except for the language alias (fetched above), the regular
31170 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31171 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31172 # only this and the language alias.
31173
31174 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31175 if [ "$gcc_subdir" = "" ]; then
31176 gcc_subdir="$subdir"
31177 fi
31178
31179 case ",$enable_languages," in
31180 *,$lang_alias,*)
31181 all_selected_languages="$all_selected_languages $lang_alias"
31182 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31183 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31184 fi
31185 ;;
31186 esac
31187
31188 language=
31189 boot_language=
31190 compilers=
31191 outputs=
31192 gtfiles=
31193 subdir_requires=
31194 . ${srcdir}/$gcc_subdir/config-lang.in
31195 if test "x$language" = x
31196 then
31197 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31198 exit 1
31199 fi
31200
31201 ok=:
31202 case ",$enable_languages," in
31203 *,$lang_alias,*) ;;
31204 *)
31205 for i in $subdir_requires; do
31206 test -f "${srcdir}/$i/config-lang.in" && continue
31207 ok=false
31208 break
31209 done
31210 ;;
31211 esac
31212 $ok || continue
31213
31214 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31215 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31216 # Put c/Make-lang.in fragment first to match serialization languages order.
31217 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31218 else
31219 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31220 fi
31221 if test -f $srcdir/$gcc_subdir/lang.opt; then
31222 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31223 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31224 fi
31225 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31226 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31227 fi
31228 all_languages="$all_languages $language"
31229 all_compilers="$all_compilers $compilers"
31230 all_outputs="$all_outputs $outputs"
31231 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31232 case ",$enable_languages," in
31233 *,lto,*)
31234
31235 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31236
31237 enable_lto=yes
31238
31239 ;;
31240 *) ;;
31241 esac
31242 done
31243
31244 check_languages=
31245 for language in $all_selected_languages
31246 do
31247 check_languages="$check_languages check-$language"
31248 done
31249
31250 selftest_languages=
31251 for language in $all_selected_languages
31252 do
31253 selftest_languages="$selftest_languages selftest-$language"
31254 done
31255
31256 # We link each language in with a set of hooks, reached indirectly via
31257 # lang.${target}. Only do so for selected languages.
31258
31259 rm -f Make-hooks
31260 touch Make-hooks
31261 target_list="all.cross start.encap rest.encap tags \
31262 install-common install-man install-info install-pdf install-html dvi \
31263 pdf html uninstall info man srcextra srcman srcinfo \
31264 mostlyclean clean distclean maintainer-clean install-plugin"
31265
31266 for t in $target_list
31267 do
31268 x=
31269 for lang in $all_selected_languages
31270 do
31271 x="$x $lang.$t"
31272 done
31273 echo "lang.$t: $x" >> Make-hooks
31274 done
31275
31276 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31277 echo "SERIAL_LIST =" >> Make-hooks
31278 echo else >> Make-hooks
31279 lang_cnt=0
31280 lang_list=
31281 prev=c
31282 serialization_languages=c
31283 for lang in $all_selected_languages
31284 do
31285 test $lang = c && continue
31286 if test $lang = lto; then
31287 serialization_languages="$serialization_languages lto1 lto2"
31288 else
31289 serialization_languages="$serialization_languages $lang"
31290 fi
31291 done
31292 for lang in $serialization_languages
31293 do
31294 test $lang = c && continue
31295 lang_cnt=`expr $lang_cnt + 1`
31296 lang_list=" $prev$lang_list"
31297 prev=${lang}
31298 done
31299 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31300 echo endif >> Make-hooks
31301 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31302 echo "INDEX.c = 0" >> Make-hooks
31303 lang_idx=1
31304 for lang in $serialization_languages
31305 do
31306 test $lang = c && continue
31307 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31308 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31309 lang_cnt=`expr $lang_cnt - 1`
31310 lang_idx=`expr $lang_idx + 1`
31311 done
31312
31313 # --------
31314 # Option include files
31315 # --------
31316
31317 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31318 option_includes="option-includes.mk"
31319
31320
31321 # --------
31322 # UNSORTED
31323 # --------
31324
31325 # Create .gdbinit.
31326
31327 echo "dir ." > .gdbinit
31328 echo "dir ${srcdir}" >> .gdbinit
31329 if test x$gdb_needs_out_file_path = xyes
31330 then
31331 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31332 fi
31333 if test "x$subdirs" != x; then
31334 for s in $subdirs
31335 do
31336 echo "dir ${srcdir}/$s" >> .gdbinit
31337 done
31338 fi
31339 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31340 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31341
31342 # Put a breakpoint on __asan_report_error to help with debugging buffer
31343 # overflow.
31344 case "$CFLAGS" in
31345 *-fsanitize=address*)
31346 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31347 ;;
31348 esac
31349
31350 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31351
31352
31353
31354 # Find a directory in which to install a shared libgcc.
31355
31356 # Check whether --enable-version-specific-runtime-libs was given.
31357 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31358 enableval=$enable_version_specific_runtime_libs;
31359 fi
31360
31361
31362 # Substitute configuration variables
31363
31364
31365
31366
31367
31368
31369
31370
31371
31372
31373
31374
31375
31376
31377
31378
31379
31380
31381
31382
31383
31384
31385
31386
31387
31388
31389
31390
31391
31392
31393
31394
31395
31396
31397
31398
31399
31400
31401
31402
31403
31404
31405
31406
31407
31408
31409
31410
31411
31412
31413
31414
31415
31416
31417
31418
31419
31420
31421
31422
31423
31424
31425
31426
31427
31428
31429
31430
31431
31432 # Echo link setup.
31433 if test x${build} = x${host} ; then
31434 if test x${host} = x${target} ; then
31435 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31436 else
31437 echo "Links are now set up to build a cross-compiler" 1>&2
31438 echo " from ${host} to ${target}." 1>&2
31439 fi
31440 else
31441 if test x${host} = x${target} ; then
31442 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31443 echo " for ${target}." 1>&2
31444 else
31445 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31446 echo " from ${host} to ${target}." 1>&2
31447 fi
31448 fi
31449
31450
31451
31452
31453
31454
31455 if test "x${ISLLIBS}" != "x" ; then
31456
31457 $as_echo "#define HAVE_isl 1" >>confdefs.h
31458
31459 fi
31460
31461 # Check for plugin support
31462 # Check whether --enable-plugin was given.
31463 if test "${enable_plugin+set}" = set; then :
31464 enableval=$enable_plugin; enable_plugin=$enableval
31465 else
31466 enable_plugin=yes; default_plugin=yes
31467 fi
31468
31469
31470 pluginlibs=
31471 plugin_check=yes
31472
31473 case "${host}" in
31474 *-*-mingw*)
31475 # Since plugin support under MinGW is not as straightforward as on
31476 # other platforms (e.g., we have to link import library, etc), we
31477 # only enable it if explicitly requested.
31478 if test x"$default_plugin" = x"yes"; then
31479 enable_plugin=no
31480 elif test x"$enable_plugin" = x"yes"; then
31481 # Use make's target variable to derive import library name.
31482 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31483 plugin_check=no
31484 fi
31485 ;;
31486 *-*-darwin*)
31487 if test x$build = x$host; then
31488 export_sym_check="nm${exeext} -g"
31489 elif test x$host = x$target; then
31490 export_sym_check="$gcc_cv_nm -g"
31491 else
31492 export_sym_check=
31493 fi
31494 ;;
31495 *)
31496 if test x$build = x$host; then
31497 export_sym_check="objdump${exeext} -T"
31498 elif test x$host = x$target; then
31499 export_sym_check="$gcc_cv_objdump -T"
31500 else
31501 export_sym_check=
31502 fi
31503 ;;
31504 esac
31505
31506 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31507
31508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31509 $as_echo_n "checking for exported symbols... " >&6; }
31510 if test "x$export_sym_check" != x; then
31511 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31512 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31513 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31514 : # No need to use a flag
31515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31516 $as_echo "yes" >&6; }
31517 else
31518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31519 $as_echo "yes" >&6; }
31520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31521 $as_echo_n "checking for -rdynamic... " >&6; }
31522 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31523 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31524 plugin_rdynamic=yes
31525 pluginlibs="-rdynamic"
31526 else
31527 plugin_rdynamic=no
31528 enable_plugin=no
31529 fi
31530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31531 $as_echo "$plugin_rdynamic" >&6; }
31532 fi
31533 else
31534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31535 $as_echo "unable to check" >&6; }
31536 fi
31537
31538 # Check -ldl
31539 saved_LIBS="$LIBS"
31540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31541 $as_echo_n "checking for library containing dlopen... " >&6; }
31542 if ${ac_cv_search_dlopen+:} false; then :
31543 $as_echo_n "(cached) " >&6
31544 else
31545 ac_func_search_save_LIBS=$LIBS
31546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31547 /* end confdefs.h. */
31548
31549 /* Override any GCC internal prototype to avoid an error.
31550 Use char because int might match the return type of a GCC
31551 builtin and then its argument prototype would still apply. */
31552 #ifdef __cplusplus
31553 extern "C"
31554 #endif
31555 char dlopen ();
31556 int
31557 main ()
31558 {
31559 return dlopen ();
31560 ;
31561 return 0;
31562 }
31563 _ACEOF
31564 for ac_lib in '' dl; do
31565 if test -z "$ac_lib"; then
31566 ac_res="none required"
31567 else
31568 ac_res=-l$ac_lib
31569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31570 fi
31571 if ac_fn_cxx_try_link "$LINENO"; then :
31572 ac_cv_search_dlopen=$ac_res
31573 fi
31574 rm -f core conftest.err conftest.$ac_objext \
31575 conftest$ac_exeext
31576 if ${ac_cv_search_dlopen+:} false; then :
31577 break
31578 fi
31579 done
31580 if ${ac_cv_search_dlopen+:} false; then :
31581
31582 else
31583 ac_cv_search_dlopen=no
31584 fi
31585 rm conftest.$ac_ext
31586 LIBS=$ac_func_search_save_LIBS
31587 fi
31588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31589 $as_echo "$ac_cv_search_dlopen" >&6; }
31590 ac_res=$ac_cv_search_dlopen
31591 if test "$ac_res" != no; then :
31592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31593
31594 fi
31595
31596 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
31597 pluginlibs="$pluginlibs -ldl"
31598 fi
31599 LIBS="$saved_LIBS"
31600
31601 # Check that we can build shared objects with -fPIC -shared
31602 saved_LDFLAGS="$LDFLAGS"
31603 saved_CFLAGS="$CFLAGS"
31604 case "${host}" in
31605 *-*-darwin*)
31606 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31607 CFLAGS="$CFLAGS -fPIC"
31608 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
31609 ;;
31610 *)
31611 CFLAGS="$CFLAGS -fPIC"
31612 LDFLAGS="$LDFLAGS -fPIC -shared"
31613 ;;
31614 esac
31615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31616 $as_echo_n "checking for -fPIC -shared... " >&6; }
31617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31618 /* end confdefs.h. */
31619 extern int X;
31620 int
31621 main ()
31622 {
31623 return X == 0;
31624 ;
31625 return 0;
31626 }
31627 _ACEOF
31628 if ac_fn_cxx_try_link "$LINENO"; then :
31629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31630 $as_echo "yes" >&6; }; have_pic_shared=yes
31631 else
31632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31633 $as_echo "no" >&6; }; have_pic_shared=no
31634 fi
31635 rm -f core conftest.err conftest.$ac_objext \
31636 conftest$ac_exeext conftest.$ac_ext
31637 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
31638 pluginlibs=
31639 enable_plugin=no
31640 fi
31641 LDFLAGS="$saved_LDFLAGS"
31642 CFLAGS="$saved_CFLAGS"
31643
31644 # If plugin support had been requested but not available, fail.
31645 if test x"$enable_plugin" = x"no" ; then
31646 if test x"$default_plugin" != x"yes"; then
31647 as_fn_error $? "
31648 Building GCC with plugin support requires a host that supports
31649 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
31650 fi
31651 fi
31652 fi
31653
31654
31655
31656 if test x"$enable_plugin" = x"yes"; then
31657
31658 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
31659
31660 fi
31661
31662
31663 # Enable --enable-host-shared
31664 # Check whether --enable-host-shared was given.
31665 if test "${enable_host_shared+set}" = set; then :
31666 enableval=$enable_host_shared; PICFLAG=-fPIC
31667 else
31668 PICFLAG=
31669 fi
31670
31671
31672
31673
31674
31675 # Check whether --enable-libquadmath-support was given.
31676 if test "${enable_libquadmath_support+set}" = set; then :
31677 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
31678 else
31679 ENABLE_LIBQUADMATH_SUPPORT=yes
31680 fi
31681
31682 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31683
31684 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31685
31686 fi
31687
31688
31689 # Specify what hash style to use by default.
31690
31691 # Check whether --with-linker-hash-style was given.
31692 if test "${with_linker_hash_style+set}" = set; then :
31693 withval=$with_linker_hash_style; case x"$withval" in
31694 xsysv)
31695 LINKER_HASH_STYLE=sysv
31696 ;;
31697 xgnu)
31698 LINKER_HASH_STYLE=gnu
31699 ;;
31700 xboth)
31701 LINKER_HASH_STYLE=both
31702 ;;
31703 *)
31704 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
31705 ;;
31706 esac
31707 else
31708 LINKER_HASH_STYLE=''
31709 fi
31710
31711 if test x"${LINKER_HASH_STYLE}" != x; then
31712
31713 cat >>confdefs.h <<_ACEOF
31714 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
31715 _ACEOF
31716
31717 fi
31718
31719 # Specify what should be the default of -fdiagnostics-color option.
31720
31721 # Check whether --with-diagnostics-color was given.
31722 if test "${with_diagnostics_color+set}" = set; then :
31723 withval=$with_diagnostics_color; case x"$withval" in
31724 xnever)
31725 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
31726 ;;
31727 xauto)
31728 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
31729 ;;
31730 xauto-if-env)
31731 DIAGNOSTICS_COLOR_DEFAULT=-1
31732 ;;
31733 xalways)
31734 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
31735 ;;
31736 *)
31737 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
31738 ;;
31739 esac
31740 else
31741 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
31742 fi
31743
31744
31745 cat >>confdefs.h <<_ACEOF
31746 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
31747 _ACEOF
31748
31749
31750 # Specify what should be the default of -fdiagnostics-urls option.
31751
31752 # Check whether --with-diagnostics-urls was given.
31753 if test "${with_diagnostics_urls+set}" = set; then :
31754 withval=$with_diagnostics_urls; case x"$withval" in
31755 xnever)
31756 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
31757 ;;
31758 xauto)
31759 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
31760 ;;
31761 xauto-if-env)
31762 DIAGNOSTICS_URLS_DEFAULT=-1
31763 ;;
31764 xalways)
31765 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
31766 ;;
31767 *)
31768 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
31769 ;;
31770 esac
31771 else
31772 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
31773 fi
31774
31775
31776 cat >>confdefs.h <<_ACEOF
31777 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
31778 _ACEOF
31779
31780
31781 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
31782 # of jit/jit-playback.c.
31783 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
31784 echo "gcc_driver_version: ${gcc_driver_version}"
31785 cat > gcc-driver-name.h <<EOF
31786 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
31787 EOF
31788
31789 # Check whether --enable-default-pie was given.
31790 # Check whether --enable-default-pie was given.
31791 if test "${enable_default_pie+set}" = set; then :
31792 enableval=$enable_default_pie; enable_default_pie=$enableval
31793 else
31794 enable_default_pie=no
31795 fi
31796
31797 if test x$enable_default_pie = xyes ; then
31798
31799 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
31800
31801 fi
31802
31803
31804 # Check if -fno-PIE works.
31805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
31806 $as_echo_n "checking for -fno-PIE option... " >&6; }
31807 if ${gcc_cv_c_no_fpie+:} false; then :
31808 $as_echo_n "(cached) " >&6
31809 else
31810 saved_CXXFLAGS="$CXXFLAGS"
31811 CXXFLAGS="$CXXFLAGS -fno-PIE"
31812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31813 /* end confdefs.h. */
31814 int main(void) {return 0;}
31815 _ACEOF
31816 if ac_fn_cxx_try_compile "$LINENO"; then :
31817 gcc_cv_c_no_fpie=yes
31818 else
31819 gcc_cv_c_no_fpie=no
31820 fi
31821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31822 CXXFLAGS="$saved_CXXFLAGS"
31823 fi
31824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
31825 $as_echo "$gcc_cv_c_no_fpie" >&6; }
31826 if test "$gcc_cv_c_no_fpie" = "yes"; then
31827 NO_PIE_CFLAGS="-fno-PIE"
31828 fi
31829
31830
31831 # Check if -no-pie works.
31832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
31833 $as_echo_n "checking for -no-pie option... " >&6; }
31834 if ${gcc_cv_no_pie+:} false; then :
31835 $as_echo_n "(cached) " >&6
31836 else
31837 saved_LDFLAGS="$LDFLAGS"
31838 LDFLAGS="$LDFLAGS -no-pie"
31839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31840 /* end confdefs.h. */
31841 int main(void) {return 0;}
31842 _ACEOF
31843 if ac_fn_cxx_try_link "$LINENO"; then :
31844 gcc_cv_no_pie=yes
31845 else
31846 gcc_cv_no_pie=no
31847 fi
31848 rm -f core conftest.err conftest.$ac_objext \
31849 conftest$ac_exeext conftest.$ac_ext
31850 LDFLAGS="$saved_LDFLAGS"
31851 fi
31852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
31853 $as_echo "$gcc_cv_no_pie" >&6; }
31854 if test "$gcc_cv_no_pie" = "yes"; then
31855 NO_PIE_FLAG="-no-pie"
31856 fi
31857
31858
31859 # Enable Intel CET on Intel CET enabled host if jit is enabled.
31860 # Check whether --enable-cet was given.
31861 if test "${enable_cet+set}" = set; then :
31862 enableval=$enable_cet;
31863 case "$enableval" in
31864 yes|no|auto) ;;
31865 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
31866 esac
31867
31868 else
31869 enable_cet=auto
31870 fi
31871
31872
31873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
31874 $as_echo_n "checking for CET support... " >&6; }
31875
31876 case "$host" in
31877 i[34567]86-*-linux* | x86_64-*-linux*)
31878 may_have_cet=yes
31879 cet_save_CFLAGS="$CFLAGS"
31880 CFLAGS="$CFLAGS -fcf-protection"
31881 case "$enable_cet" in
31882 auto)
31883 # Check if target supports multi-byte NOPs
31884 # and if compiler and assembler support CET.
31885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31886 /* end confdefs.h. */
31887
31888 int
31889 main ()
31890 {
31891
31892 #if !defined(__SSE2__)
31893 #error target does not support multi-byte NOPs
31894 #else
31895 asm ("setssbsy");
31896 #endif
31897
31898 ;
31899 return 0;
31900 }
31901 _ACEOF
31902 if ac_fn_cxx_try_compile "$LINENO"; then :
31903 enable_cet=yes
31904 else
31905 enable_cet=no
31906 fi
31907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31908 ;;
31909 yes)
31910 # Check if compiler and assembler support CET.
31911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31912 /* end confdefs.h. */
31913
31914 int
31915 main ()
31916 {
31917 asm ("setssbsy");
31918 ;
31919 return 0;
31920 }
31921 _ACEOF
31922 if ac_fn_cxx_try_compile "$LINENO"; then :
31923 support_cet=yes
31924 else
31925 support_cet=no
31926 fi
31927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31928 if test $support_cet = "no"; then
31929 if test x$enable_bootstrap != xno \
31930 && test -z "${with_build_subdir}" \
31931 && (test ! -f ../stage_current \
31932 || test `cat ../stage_current` != "stage1"); then
31933 # Require CET support only for the final GCC build.
31934 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
31935 else
31936 # Don't enable CET without CET support for non-bootstrap
31937 # build, in stage1 nor for build support.
31938 enable_cet=no
31939 fi
31940 fi
31941 ;;
31942 esac
31943 CFLAGS="$cet_save_CFLAGS"
31944 ;;
31945 *)
31946 may_have_cet=no
31947 enable_cet=no
31948 ;;
31949 esac
31950
31951 cet_save_CFLAGS="$CFLAGS"
31952 CFLAGS="$CFLAGS -fcf-protection=none"
31953 cet_save_LDFLAGS="$LDFLAGS"
31954 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
31955 if test x$may_have_cet = xyes; then
31956 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
31957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31958 /* end confdefs.h. */
31959
31960 int
31961 main ()
31962 {
31963 return 0;
31964 ;
31965 return 0;
31966 }
31967 _ACEOF
31968 if ac_fn_cxx_try_link "$LINENO"; then :
31969 may_have_cet=yes
31970 else
31971 may_have_cet=no
31972 fi
31973 rm -f core conftest.err conftest.$ac_objext \
31974 conftest$ac_exeext conftest.$ac_ext
31975 fi
31976
31977 if test x$may_have_cet = xyes; then
31978 if test x$cross_compiling = xno; then
31979 if test "$cross_compiling" = yes; then :
31980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31982 as_fn_error $? "cannot run test program while cross compiling
31983 See \`config.log' for more details" "$LINENO" 5; }
31984 else
31985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31986 /* end confdefs.h. */
31987
31988 static void
31989 foo (void)
31990 {
31991 }
31992
31993 static void
31994 __attribute__ ((noinline, noclone))
31995 xxx (void (*f) (void))
31996 {
31997 f ();
31998 }
31999
32000 static void
32001 __attribute__ ((noinline, noclone))
32002 bar (void)
32003 {
32004 xxx (foo);
32005 }
32006
32007 int
32008 main ()
32009 {
32010 bar ();
32011 return 0;
32012 }
32013
32014 _ACEOF
32015 if ac_fn_cxx_try_run "$LINENO"; then :
32016 have_cet=no
32017 else
32018 have_cet=yes
32019 fi
32020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32021 conftest.$ac_objext conftest.beam conftest.$ac_ext
32022 fi
32023
32024 if test x$enable_cet = xno -a x$have_cet = xyes; then
32025 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32026 fi
32027 fi
32028 else
32029 # Enable CET in cross compiler if possible so that it will run on both
32030 # CET and non-CET hosts.
32031 have_cet=yes
32032 fi
32033 if test x$enable_cet = xyes; then
32034 CET_HOST_FLAGS="-fcf-protection"
32035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32036 $as_echo "yes" >&6; }
32037 else
32038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32039 $as_echo "no" >&6; }
32040 fi
32041 CFLAGS="$cet_save_CFLAGS"
32042 LDFLAGS="$cet_save_LDFLAGS"
32043
32044 case x$enable_languages in
32045 *jit*)
32046 ;;
32047 *)
32048 CET_HOST_FLAGS=
32049 ;;
32050 esac
32051
32052
32053 # Check linker supports '-z bndplt'
32054 ld_bndplt_support=no
32055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32056 $as_echo_n "checking linker -z bndplt option... " >&6; }
32057 if test x"$ld_is_gold" = xno; then
32058 if test $in_tree_ld = yes ; then
32059 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
32060 ld_bndplt_support=yes
32061 fi
32062 elif test x$gcc_cv_ld != x; then
32063 # Check if linker supports -a bndplt option
32064 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32065 ld_bndplt_support=yes
32066 fi
32067 fi
32068 fi
32069 if test x"$ld_bndplt_support" = xyes; then
32070
32071 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32072
32073 fi
32074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32075 $as_echo "$ld_bndplt_support" >&6; }
32076
32077 # Check linker supports '--push-state'/'--pop-state'
32078 ld_pushpopstate_support=no
32079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32080 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32081 if test x"$ld_is_gold" = xno; then
32082 if test $in_tree_ld = yes ; then
32083 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
32084 ld_pushpopstate_support=yes
32085 fi
32086 elif test x$gcc_cv_ld != x; then
32087 # Check if linker supports --push-state/--pop-state options
32088 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32089 ld_pushpopstate_support=yes
32090 fi
32091 fi
32092 fi
32093 if test x"$ld_pushpopstate_support" = xyes; then
32094
32095 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32096
32097 fi
32098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32099 $as_echo "$ld_pushpopstate_support" >&6; }
32100
32101 # On s390, float_t has historically been statically defined as double for no
32102 # good reason. To comply with the C standard in the light of this definition,
32103 # gcc has evaluated float expressions in double precision when in
32104 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32105 # a smooth transition towards the new model used by most architectures, where
32106 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32107 # float_t from that, this behavior can be configured with
32108 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32109 # the old model. When omitted, native builds and cross compiles that have target
32110 # libc headers will detect whether libc clamps float_t to double and in that
32111 # case maintain the old model. Otherwise, they will default to the new model.
32112 # Check whether --enable-s390-excess-float-precision was given.
32113 if test "${enable_s390_excess_float_precision+set}" = set; then :
32114 enableval=$enable_s390_excess_float_precision;
32115 else
32116 enable_s390_excess_float_precision=auto
32117 fi
32118
32119
32120 case $target in
32121 s390*-linux*)
32122 if test x"$enable_s390_excess_float_precision" = xauto; then
32123 # Can we autodetect the behavior of the target libc?
32124 if test "$target" = "$host" -a "$host" = "$build"; then
32125 enable_s390_excess_float_precision=autodetect
32126 elif test "x$with_headers" != xno; then
32127 # cross build. are target headers available?
32128 # carefully coerce the build-system compiler to use target headers
32129 saved_CXXFLAGS="$CXXFLAGS"
32130 CROSS_TEST_CXXFLAGS="-nostdinc ${XGCC_FLAGS_FOR_TARGET//-B/-idirafter/}"
32131 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32133 /* end confdefs.h. */
32134
32135 #include <math.h>
32136
32137 _ACEOF
32138 if ac_fn_cxx_try_compile "$LINENO"; then :
32139 enable_s390_excess_float_precision=autodetect
32140 fi
32141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32142 CXXFLAGS="$saved_CXXFLAGS"
32143 fi
32144
32145 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32146 saved_CXXFLAGS="$CXXFLAGS"
32147 if ! test "$target" = "$host" -a "$host" = "$build"; then
32148 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32149 unset CROSS_TEST_CXXFLAGS
32150 fi
32151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32152 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32153 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32154 $as_echo_n "(cached) " >&6
32155 else
32156
32157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32158 /* end confdefs.h. */
32159
32160 #define __FLT_EVAL_METHOD__ 0
32161 #include <math.h>
32162 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32163
32164 _ACEOF
32165 if ac_fn_cxx_try_compile "$LINENO"; then :
32166 gcc_cv_float_t_clamped_to_double=yes
32167 else
32168 gcc_cv_float_t_clamped_to_double=no
32169 fi
32170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32171 fi
32172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32173 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32174 CXXFLAGS="$saved_CXXFLAGS"
32175 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32176 else
32177 # no way to detect behavior of target libc, default to new model
32178 enable_s390_excess_float_precision=no
32179 fi
32180 fi
32181
32182
32183 if test x"$enable_s390_excess_float_precision" = xyes; then
32184
32185 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32186
32187 fi
32188 ;;
32189 esac
32190
32191 # Configure the subdirectories
32192 # AC_CONFIG_SUBDIRS($subdirs)
32193
32194 # Create the Makefile
32195 # and configure language subdirectories
32196 ac_config_files="$ac_config_files $all_outputs"
32197
32198
32199 ac_config_commands="$ac_config_commands default"
32200
32201 cat >confcache <<\_ACEOF
32202 # This file is a shell script that caches the results of configure
32203 # tests run on this system so they can be shared between configure
32204 # scripts and configure runs, see configure's option --config-cache.
32205 # It is not useful on other systems. If it contains results you don't
32206 # want to keep, you may remove or edit it.
32207 #
32208 # config.status only pays attention to the cache file if you give it
32209 # the --recheck option to rerun configure.
32210 #
32211 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32212 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32213 # following values.
32214
32215 _ACEOF
32216
32217 # The following way of writing the cache mishandles newlines in values,
32218 # but we know of no workaround that is simple, portable, and efficient.
32219 # So, we kill variables containing newlines.
32220 # Ultrix sh set writes to stderr and can't be redirected directly,
32221 # and sets the high bit in the cache file unless we assign to the vars.
32222 (
32223 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32224 eval ac_val=\$$ac_var
32225 case $ac_val in #(
32226 *${as_nl}*)
32227 case $ac_var in #(
32228 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32229 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32230 esac
32231 case $ac_var in #(
32232 _ | IFS | as_nl) ;; #(
32233 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32234 *) { eval $ac_var=; unset $ac_var;} ;;
32235 esac ;;
32236 esac
32237 done
32238
32239 (set) 2>&1 |
32240 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32241 *${as_nl}ac_space=\ *)
32242 # `set' does not quote correctly, so add quotes: double-quote
32243 # substitution turns \\\\ into \\, and sed turns \\ into \.
32244 sed -n \
32245 "s/'/'\\\\''/g;
32246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32247 ;; #(
32248 *)
32249 # `set' quotes correctly as required by POSIX, so do not add quotes.
32250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32251 ;;
32252 esac |
32253 sort
32254 ) |
32255 sed '
32256 /^ac_cv_env_/b end
32257 t clear
32258 :clear
32259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32260 t end
32261 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32262 :end' >>confcache
32263 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32264 if test -w "$cache_file"; then
32265 if test "x$cache_file" != "x/dev/null"; then
32266 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32267 $as_echo "$as_me: updating cache $cache_file" >&6;}
32268 if test ! -f "$cache_file" || test -h "$cache_file"; then
32269 cat confcache >"$cache_file"
32270 else
32271 case $cache_file in #(
32272 */* | ?:*)
32273 mv -f confcache "$cache_file"$$ &&
32274 mv -f "$cache_file"$$ "$cache_file" ;; #(
32275 *)
32276 mv -f confcache "$cache_file" ;;
32277 esac
32278 fi
32279 fi
32280 else
32281 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32282 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32283 fi
32284 fi
32285 rm -f confcache
32286
32287 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32288 # Let make expand exec_prefix.
32289 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32290
32291 DEFS=-DHAVE_CONFIG_H
32292
32293 ac_libobjs=
32294 ac_ltlibobjs=
32295 U=
32296 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32297 # 1. Remove the extension, and $U if already installed.
32298 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32299 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32300 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32301 # will be set to the directory where LIBOBJS objects are built.
32302 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32303 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32304 done
32305 LIBOBJS=$ac_libobjs
32306
32307 LTLIBOBJS=$ac_ltlibobjs
32308
32309
32310
32311
32312 : "${CONFIG_STATUS=./config.status}"
32313 ac_write_fail=0
32314 ac_clean_files_save=$ac_clean_files
32315 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32317 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32318 as_write_fail=0
32319 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32320 #! $SHELL
32321 # Generated by $as_me.
32322 # Run this file to recreate the current configuration.
32323 # Compiler output produced by configure, useful for debugging
32324 # configure, is in config.log if it exists.
32325
32326 debug=false
32327 ac_cs_recheck=false
32328 ac_cs_silent=false
32329
32330 SHELL=\${CONFIG_SHELL-$SHELL}
32331 export SHELL
32332 _ASEOF
32333 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32334 ## -------------------- ##
32335 ## M4sh Initialization. ##
32336 ## -------------------- ##
32337
32338 # Be more Bourne compatible
32339 DUALCASE=1; export DUALCASE # for MKS sh
32340 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32341 emulate sh
32342 NULLCMD=:
32343 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32344 # is contrary to our usage. Disable this feature.
32345 alias -g '${1+"$@"}'='"$@"'
32346 setopt NO_GLOB_SUBST
32347 else
32348 case `(set -o) 2>/dev/null` in #(
32349 *posix*) :
32350 set -o posix ;; #(
32351 *) :
32352 ;;
32353 esac
32354 fi
32355
32356
32357 as_nl='
32358 '
32359 export as_nl
32360 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32361 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32362 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32363 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32364 # Prefer a ksh shell builtin over an external printf program on Solaris,
32365 # but without wasting forks for bash or zsh.
32366 if test -z "$BASH_VERSION$ZSH_VERSION" \
32367 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32368 as_echo='print -r --'
32369 as_echo_n='print -rn --'
32370 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32371 as_echo='printf %s\n'
32372 as_echo_n='printf %s'
32373 else
32374 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32375 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32376 as_echo_n='/usr/ucb/echo -n'
32377 else
32378 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32379 as_echo_n_body='eval
32380 arg=$1;
32381 case $arg in #(
32382 *"$as_nl"*)
32383 expr "X$arg" : "X\\(.*\\)$as_nl";
32384 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32385 esac;
32386 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32387 '
32388 export as_echo_n_body
32389 as_echo_n='sh -c $as_echo_n_body as_echo'
32390 fi
32391 export as_echo_body
32392 as_echo='sh -c $as_echo_body as_echo'
32393 fi
32394
32395 # The user is always right.
32396 if test "${PATH_SEPARATOR+set}" != set; then
32397 PATH_SEPARATOR=:
32398 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32399 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32400 PATH_SEPARATOR=';'
32401 }
32402 fi
32403
32404
32405 # IFS
32406 # We need space, tab and new line, in precisely that order. Quoting is
32407 # there to prevent editors from complaining about space-tab.
32408 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32409 # splitting by setting IFS to empty value.)
32410 IFS=" "" $as_nl"
32411
32412 # Find who we are. Look in the path if we contain no directory separator.
32413 as_myself=
32414 case $0 in #((
32415 *[\\/]* ) as_myself=$0 ;;
32416 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32417 for as_dir in $PATH
32418 do
32419 IFS=$as_save_IFS
32420 test -z "$as_dir" && as_dir=.
32421 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32422 done
32423 IFS=$as_save_IFS
32424
32425 ;;
32426 esac
32427 # We did not find ourselves, most probably we were run as `sh COMMAND'
32428 # in which case we are not to be found in the path.
32429 if test "x$as_myself" = x; then
32430 as_myself=$0
32431 fi
32432 if test ! -f "$as_myself"; then
32433 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32434 exit 1
32435 fi
32436
32437 # Unset variables that we do not need and which cause bugs (e.g. in
32438 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32439 # suppresses any "Segmentation fault" message there. '((' could
32440 # trigger a bug in pdksh 5.2.14.
32441 for as_var in BASH_ENV ENV MAIL MAILPATH
32442 do eval test x\${$as_var+set} = xset \
32443 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32444 done
32445 PS1='$ '
32446 PS2='> '
32447 PS4='+ '
32448
32449 # NLS nuisances.
32450 LC_ALL=C
32451 export LC_ALL
32452 LANGUAGE=C
32453 export LANGUAGE
32454
32455 # CDPATH.
32456 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32457
32458
32459 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32460 # ----------------------------------------
32461 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32462 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32463 # script with STATUS, using 1 if that was 0.
32464 as_fn_error ()
32465 {
32466 as_status=$1; test $as_status -eq 0 && as_status=1
32467 if test "$4"; then
32468 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32469 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32470 fi
32471 $as_echo "$as_me: error: $2" >&2
32472 as_fn_exit $as_status
32473 } # as_fn_error
32474
32475
32476 # as_fn_set_status STATUS
32477 # -----------------------
32478 # Set $? to STATUS, without forking.
32479 as_fn_set_status ()
32480 {
32481 return $1
32482 } # as_fn_set_status
32483
32484 # as_fn_exit STATUS
32485 # -----------------
32486 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32487 as_fn_exit ()
32488 {
32489 set +e
32490 as_fn_set_status $1
32491 exit $1
32492 } # as_fn_exit
32493
32494 # as_fn_unset VAR
32495 # ---------------
32496 # Portably unset VAR.
32497 as_fn_unset ()
32498 {
32499 { eval $1=; unset $1;}
32500 }
32501 as_unset=as_fn_unset
32502 # as_fn_append VAR VALUE
32503 # ----------------------
32504 # Append the text in VALUE to the end of the definition contained in VAR. Take
32505 # advantage of any shell optimizations that allow amortized linear growth over
32506 # repeated appends, instead of the typical quadratic growth present in naive
32507 # implementations.
32508 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32509 eval 'as_fn_append ()
32510 {
32511 eval $1+=\$2
32512 }'
32513 else
32514 as_fn_append ()
32515 {
32516 eval $1=\$$1\$2
32517 }
32518 fi # as_fn_append
32519
32520 # as_fn_arith ARG...
32521 # ------------------
32522 # Perform arithmetic evaluation on the ARGs, and store the result in the
32523 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32524 # must be portable across $(()) and expr.
32525 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32526 eval 'as_fn_arith ()
32527 {
32528 as_val=$(( $* ))
32529 }'
32530 else
32531 as_fn_arith ()
32532 {
32533 as_val=`expr "$@" || test $? -eq 1`
32534 }
32535 fi # as_fn_arith
32536
32537
32538 if expr a : '\(a\)' >/dev/null 2>&1 &&
32539 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32540 as_expr=expr
32541 else
32542 as_expr=false
32543 fi
32544
32545 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32546 as_basename=basename
32547 else
32548 as_basename=false
32549 fi
32550
32551 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32552 as_dirname=dirname
32553 else
32554 as_dirname=false
32555 fi
32556
32557 as_me=`$as_basename -- "$0" ||
32558 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32559 X"$0" : 'X\(//\)$' \| \
32560 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32561 $as_echo X/"$0" |
32562 sed '/^.*\/\([^/][^/]*\)\/*$/{
32563 s//\1/
32564 q
32565 }
32566 /^X\/\(\/\/\)$/{
32567 s//\1/
32568 q
32569 }
32570 /^X\/\(\/\).*/{
32571 s//\1/
32572 q
32573 }
32574 s/.*/./; q'`
32575
32576 # Avoid depending upon Character Ranges.
32577 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32578 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32579 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32580 as_cr_digits='0123456789'
32581 as_cr_alnum=$as_cr_Letters$as_cr_digits
32582
32583 ECHO_C= ECHO_N= ECHO_T=
32584 case `echo -n x` in #(((((
32585 -n*)
32586 case `echo 'xy\c'` in
32587 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32588 xy) ECHO_C='\c';;
32589 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32590 ECHO_T=' ';;
32591 esac;;
32592 *)
32593 ECHO_N='-n';;
32594 esac
32595
32596 rm -f conf$$ conf$$.exe conf$$.file
32597 if test -d conf$$.dir; then
32598 rm -f conf$$.dir/conf$$.file
32599 else
32600 rm -f conf$$.dir
32601 mkdir conf$$.dir 2>/dev/null
32602 fi
32603 if (echo >conf$$.file) 2>/dev/null; then
32604 if ln -s conf$$.file conf$$ 2>/dev/null; then
32605 as_ln_s='ln -s'
32606 # ... but there are two gotchas:
32607 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32608 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32609 # In both cases, we have to default to `cp -pR'.
32610 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32611 as_ln_s='cp -pR'
32612 elif ln conf$$.file conf$$ 2>/dev/null; then
32613 as_ln_s=ln
32614 else
32615 as_ln_s='cp -pR'
32616 fi
32617 else
32618 as_ln_s='cp -pR'
32619 fi
32620 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32621 rmdir conf$$.dir 2>/dev/null
32622
32623
32624 # as_fn_mkdir_p
32625 # -------------
32626 # Create "$as_dir" as a directory, including parents if necessary.
32627 as_fn_mkdir_p ()
32628 {
32629
32630 case $as_dir in #(
32631 -*) as_dir=./$as_dir;;
32632 esac
32633 test -d "$as_dir" || eval $as_mkdir_p || {
32634 as_dirs=
32635 while :; do
32636 case $as_dir in #(
32637 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32638 *) as_qdir=$as_dir;;
32639 esac
32640 as_dirs="'$as_qdir' $as_dirs"
32641 as_dir=`$as_dirname -- "$as_dir" ||
32642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32643 X"$as_dir" : 'X\(//\)[^/]' \| \
32644 X"$as_dir" : 'X\(//\)$' \| \
32645 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32646 $as_echo X"$as_dir" |
32647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32648 s//\1/
32649 q
32650 }
32651 /^X\(\/\/\)[^/].*/{
32652 s//\1/
32653 q
32654 }
32655 /^X\(\/\/\)$/{
32656 s//\1/
32657 q
32658 }
32659 /^X\(\/\).*/{
32660 s//\1/
32661 q
32662 }
32663 s/.*/./; q'`
32664 test -d "$as_dir" && break
32665 done
32666 test -z "$as_dirs" || eval "mkdir $as_dirs"
32667 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32668
32669
32670 } # as_fn_mkdir_p
32671 if mkdir -p . 2>/dev/null; then
32672 as_mkdir_p='mkdir -p "$as_dir"'
32673 else
32674 test -d ./-p && rmdir ./-p
32675 as_mkdir_p=false
32676 fi
32677
32678
32679 # as_fn_executable_p FILE
32680 # -----------------------
32681 # Test if FILE is an executable regular file.
32682 as_fn_executable_p ()
32683 {
32684 test -f "$1" && test -x "$1"
32685 } # as_fn_executable_p
32686 as_test_x='test -x'
32687 as_executable_p=as_fn_executable_p
32688
32689 # Sed expression to map a string onto a valid CPP name.
32690 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32691
32692 # Sed expression to map a string onto a valid variable name.
32693 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32694
32695
32696 exec 6>&1
32697 ## ----------------------------------- ##
32698 ## Main body of $CONFIG_STATUS script. ##
32699 ## ----------------------------------- ##
32700 _ASEOF
32701 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32702
32703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32704 # Save the log message, to keep $0 and so on meaningful, and to
32705 # report actual input values of CONFIG_FILES etc. instead of their
32706 # values after options handling.
32707 ac_log="
32708 This file was extended by $as_me, which was
32709 generated by GNU Autoconf 2.69. Invocation command line was
32710
32711 CONFIG_FILES = $CONFIG_FILES
32712 CONFIG_HEADERS = $CONFIG_HEADERS
32713 CONFIG_LINKS = $CONFIG_LINKS
32714 CONFIG_COMMANDS = $CONFIG_COMMANDS
32715 $ $0 $@
32716
32717 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32718 "
32719
32720 _ACEOF
32721
32722 case $ac_config_files in *"
32723 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32724 esac
32725
32726 case $ac_config_headers in *"
32727 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32728 esac
32729
32730
32731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32732 # Files that config.status was made for.
32733 config_files="$ac_config_files"
32734 config_headers="$ac_config_headers"
32735 config_links="$ac_config_links"
32736 config_commands="$ac_config_commands"
32737
32738 _ACEOF
32739
32740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32741 ac_cs_usage="\
32742 \`$as_me' instantiates files and other configuration actions
32743 from templates according to the current configuration. Unless the files
32744 and actions are specified as TAGs, all are instantiated by default.
32745
32746 Usage: $0 [OPTION]... [TAG]...
32747
32748 -h, --help print this help, then exit
32749 -V, --version print version number and configuration settings, then exit
32750 --config print configuration, then exit
32751 -q, --quiet, --silent
32752 do not print progress messages
32753 -d, --debug don't remove temporary files
32754 --recheck update $as_me by reconfiguring in the same conditions
32755 --file=FILE[:TEMPLATE]
32756 instantiate the configuration file FILE
32757 --header=FILE[:TEMPLATE]
32758 instantiate the configuration header FILE
32759
32760 Configuration files:
32761 $config_files
32762
32763 Configuration headers:
32764 $config_headers
32765
32766 Configuration links:
32767 $config_links
32768
32769 Configuration commands:
32770 $config_commands
32771
32772 Report bugs to the package provider."
32773
32774 _ACEOF
32775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32776 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32777 ac_cs_version="\\
32778 config.status
32779 configured by $0, generated by GNU Autoconf 2.69,
32780 with options \\"\$ac_cs_config\\"
32781
32782 Copyright (C) 2012 Free Software Foundation, Inc.
32783 This config.status script is free software; the Free Software Foundation
32784 gives unlimited permission to copy, distribute and modify it."
32785
32786 ac_pwd='$ac_pwd'
32787 srcdir='$srcdir'
32788 AWK='$AWK'
32789 test -n "\$AWK" || AWK=awk
32790 _ACEOF
32791
32792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32793 # The default lists apply if the user does not specify any file.
32794 ac_need_defaults=:
32795 while test $# != 0
32796 do
32797 case $1 in
32798 --*=?*)
32799 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32800 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32801 ac_shift=:
32802 ;;
32803 --*=)
32804 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32805 ac_optarg=
32806 ac_shift=:
32807 ;;
32808 *)
32809 ac_option=$1
32810 ac_optarg=$2
32811 ac_shift=shift
32812 ;;
32813 esac
32814
32815 case $ac_option in
32816 # Handling of the options.
32817 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32818 ac_cs_recheck=: ;;
32819 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32820 $as_echo "$ac_cs_version"; exit ;;
32821 --config | --confi | --conf | --con | --co | --c )
32822 $as_echo "$ac_cs_config"; exit ;;
32823 --debug | --debu | --deb | --de | --d | -d )
32824 debug=: ;;
32825 --file | --fil | --fi | --f )
32826 $ac_shift
32827 case $ac_optarg in
32828 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32829 '') as_fn_error $? "missing file argument" ;;
32830 esac
32831 as_fn_append CONFIG_FILES " '$ac_optarg'"
32832 ac_need_defaults=false;;
32833 --header | --heade | --head | --hea )
32834 $ac_shift
32835 case $ac_optarg in
32836 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32837 esac
32838 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32839 ac_need_defaults=false;;
32840 --he | --h)
32841 # Conflict between --help and --header
32842 as_fn_error $? "ambiguous option: \`$1'
32843 Try \`$0 --help' for more information.";;
32844 --help | --hel | -h )
32845 $as_echo "$ac_cs_usage"; exit ;;
32846 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32847 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32848 ac_cs_silent=: ;;
32849
32850 # This is an error.
32851 -*) as_fn_error $? "unrecognized option: \`$1'
32852 Try \`$0 --help' for more information." ;;
32853
32854 *) as_fn_append ac_config_targets " $1"
32855 ac_need_defaults=false ;;
32856
32857 esac
32858 shift
32859 done
32860
32861 ac_configure_extra_args=
32862
32863 if $ac_cs_silent; then
32864 exec 6>/dev/null
32865 ac_configure_extra_args="$ac_configure_extra_args --silent"
32866 fi
32867
32868 _ACEOF
32869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32870 if \$ac_cs_recheck; then
32871 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32872 shift
32873 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32874 CONFIG_SHELL='$SHELL'
32875 export CONFIG_SHELL
32876 exec "\$@"
32877 fi
32878
32879 _ACEOF
32880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32881 exec 5>>config.log
32882 {
32883 echo
32884 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32885 ## Running $as_me. ##
32886 _ASBOX
32887 $as_echo "$ac_log"
32888 } >&5
32889
32890 _ACEOF
32891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32892 #
32893 # INIT-COMMANDS
32894 #
32895 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32896 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
32897 subdirs='$subdirs'
32898
32899 _ACEOF
32900
32901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32902
32903 # Handling of arguments.
32904 for ac_config_target in $ac_config_targets
32905 do
32906 case $ac_config_target in
32907 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
32908 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
32909 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
32910 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
32911 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
32912 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
32913 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
32914 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
32915 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32916
32917 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32918 esac
32919 done
32920
32921
32922 # If the user did not use the arguments to specify the items to instantiate,
32923 # then the envvar interface is used. Set only those that are not.
32924 # We use the long form for the default assignment because of an extremely
32925 # bizarre bug on SunOS 4.1.3.
32926 if $ac_need_defaults; then
32927 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32928 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32929 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
32930 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32931 fi
32932
32933 # Have a temporary directory for convenience. Make it in the build tree
32934 # simply because there is no reason against having it here, and in addition,
32935 # creating and moving files from /tmp can sometimes cause problems.
32936 # Hook for its removal unless debugging.
32937 # Note that there is a small window in which the directory will not be cleaned:
32938 # after its creation but before its name has been assigned to `$tmp'.
32939 $debug ||
32940 {
32941 tmp= ac_tmp=
32942 trap 'exit_status=$?
32943 : "${ac_tmp:=$tmp}"
32944 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32945 ' 0
32946 trap 'as_fn_exit 1' 1 2 13 15
32947 }
32948 # Create a (secure) tmp directory for tmp files.
32949
32950 {
32951 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32952 test -d "$tmp"
32953 } ||
32954 {
32955 tmp=./conf$$-$RANDOM
32956 (umask 077 && mkdir "$tmp")
32957 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32958 ac_tmp=$tmp
32959
32960 # Set up the scripts for CONFIG_FILES section.
32961 # No need to generate them if there are no CONFIG_FILES.
32962 # This happens for instance with `./config.status config.h'.
32963 if test -n "$CONFIG_FILES"; then
32964
32965 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32966 ac_cs_awk_getline=:
32967 ac_cs_awk_pipe_init=
32968 ac_cs_awk_read_file='
32969 while ((getline aline < (F[key])) > 0)
32970 print(aline)
32971 close(F[key])'
32972 ac_cs_awk_pipe_fini=
32973 else
32974 ac_cs_awk_getline=false
32975 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32976 ac_cs_awk_read_file='
32977 print "|#_!!_#|"
32978 print "cat " F[key] " &&"
32979 '$ac_cs_awk_pipe_init
32980 # The final `:' finishes the AND list.
32981 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32982 fi
32983 ac_cr=`echo X | tr X '\015'`
32984 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32985 # But we know of no other shell where ac_cr would be empty at this
32986 # point, so we can use a bashism as a fallback.
32987 if test "x$ac_cr" = x; then
32988 eval ac_cr=\$\'\\r\'
32989 fi
32990 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32991 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32992 ac_cs_awk_cr='\\r'
32993 else
32994 ac_cs_awk_cr=$ac_cr
32995 fi
32996
32997 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32998 _ACEOF
32999
33000 # Create commands to substitute file output variables.
33001 {
33002 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33003 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33004 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33005 echo "_ACAWK" &&
33006 echo "_ACEOF"
33007 } >conf$$files.sh &&
33008 . ./conf$$files.sh ||
33009 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33010 rm -f conf$$files.sh
33011
33012 {
33013 echo "cat >conf$$subs.awk <<_ACEOF" &&
33014 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33015 echo "_ACEOF"
33016 } >conf$$subs.sh ||
33017 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33018 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33019 ac_delim='%!_!# '
33020 for ac_last_try in false false false false false :; do
33021 . ./conf$$subs.sh ||
33022 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33023
33024 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33025 if test $ac_delim_n = $ac_delim_num; then
33026 break
33027 elif $ac_last_try; then
33028 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33029 else
33030 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33031 fi
33032 done
33033 rm -f conf$$subs.sh
33034
33035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33036 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33037 _ACEOF
33038 sed -n '
33039 h
33040 s/^/S["/; s/!.*/"]=/
33041 p
33042 g
33043 s/^[^!]*!//
33044 :repl
33045 t repl
33046 s/'"$ac_delim"'$//
33047 t delim
33048 :nl
33049 h
33050 s/\(.\{148\}\)..*/\1/
33051 t more1
33052 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33053 p
33054 n
33055 b repl
33056 :more1
33057 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33058 p
33059 g
33060 s/.\{148\}//
33061 t nl
33062 :delim
33063 h
33064 s/\(.\{148\}\)..*/\1/
33065 t more2
33066 s/["\\]/\\&/g; s/^/"/; s/$/"/
33067 p
33068 b
33069 :more2
33070 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33071 p
33072 g
33073 s/.\{148\}//
33074 t delim
33075 ' <conf$$subs.awk | sed '
33076 /^[^""]/{
33077 N
33078 s/\n//
33079 }
33080 ' >>$CONFIG_STATUS || ac_write_fail=1
33081 rm -f conf$$subs.awk
33082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33083 _ACAWK
33084 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33085 for (key in S) S_is_set[key] = 1
33086 FS = "\a"
33087 \$ac_cs_awk_pipe_init
33088 }
33089 {
33090 line = $ 0
33091 nfields = split(line, field, "@")
33092 substed = 0
33093 len = length(field[1])
33094 for (i = 2; i < nfields; i++) {
33095 key = field[i]
33096 keylen = length(key)
33097 if (S_is_set[key]) {
33098 value = S[key]
33099 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33100 len += length(value) + length(field[++i])
33101 substed = 1
33102 } else
33103 len += 1 + keylen
33104 }
33105 if (nfields == 3 && !substed) {
33106 key = field[2]
33107 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33108 \$ac_cs_awk_read_file
33109 next
33110 }
33111 }
33112 print line
33113 }
33114 \$ac_cs_awk_pipe_fini
33115 _ACAWK
33116 _ACEOF
33117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33118 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33119 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33120 else
33121 cat
33122 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33123 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33124 _ACEOF
33125
33126 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33127 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33128 # trailing colons and then remove the whole line if VPATH becomes empty
33129 # (actually we leave an empty line to preserve line numbers).
33130 if test "x$srcdir" = x.; then
33131 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33132 h
33133 s///
33134 s/^/:/
33135 s/[ ]*$/:/
33136 s/:\$(srcdir):/:/g
33137 s/:\${srcdir}:/:/g
33138 s/:@srcdir@:/:/g
33139 s/^:*//
33140 s/:*$//
33141 x
33142 s/\(=[ ]*\).*/\1/
33143 G
33144 s/\n//
33145 s/^[^=]*=[ ]*$//
33146 }'
33147 fi
33148
33149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33150 fi # test -n "$CONFIG_FILES"
33151
33152 # Set up the scripts for CONFIG_HEADERS section.
33153 # No need to generate them if there are no CONFIG_HEADERS.
33154 # This happens for instance with `./config.status Makefile'.
33155 if test -n "$CONFIG_HEADERS"; then
33156 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33157 BEGIN {
33158 _ACEOF
33159
33160 # Transform confdefs.h into an awk script `defines.awk', embedded as
33161 # here-document in config.status, that substitutes the proper values into
33162 # config.h.in to produce config.h.
33163
33164 # Create a delimiter string that does not exist in confdefs.h, to ease
33165 # handling of long lines.
33166 ac_delim='%!_!# '
33167 for ac_last_try in false false :; do
33168 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33169 if test -z "$ac_tt"; then
33170 break
33171 elif $ac_last_try; then
33172 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33173 else
33174 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33175 fi
33176 done
33177
33178 # For the awk script, D is an array of macro values keyed by name,
33179 # likewise P contains macro parameters if any. Preserve backslash
33180 # newline sequences.
33181
33182 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33183 sed -n '
33184 s/.\{148\}/&'"$ac_delim"'/g
33185 t rset
33186 :rset
33187 s/^[ ]*#[ ]*define[ ][ ]*/ /
33188 t def
33189 d
33190 :def
33191 s/\\$//
33192 t bsnl
33193 s/["\\]/\\&/g
33194 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33195 D["\1"]=" \3"/p
33196 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33197 d
33198 :bsnl
33199 s/["\\]/\\&/g
33200 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33201 D["\1"]=" \3\\\\\\n"\\/p
33202 t cont
33203 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33204 t cont
33205 d
33206 :cont
33207 n
33208 s/.\{148\}/&'"$ac_delim"'/g
33209 t clear
33210 :clear
33211 s/\\$//
33212 t bsnlc
33213 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33214 d
33215 :bsnlc
33216 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33217 b cont
33218 ' <confdefs.h | sed '
33219 s/'"$ac_delim"'/"\\\
33220 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33221
33222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33223 for (key in D) D_is_set[key] = 1
33224 FS = "\a"
33225 }
33226 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33227 line = \$ 0
33228 split(line, arg, " ")
33229 if (arg[1] == "#") {
33230 defundef = arg[2]
33231 mac1 = arg[3]
33232 } else {
33233 defundef = substr(arg[1], 2)
33234 mac1 = arg[2]
33235 }
33236 split(mac1, mac2, "(") #)
33237 macro = mac2[1]
33238 prefix = substr(line, 1, index(line, defundef) - 1)
33239 if (D_is_set[macro]) {
33240 # Preserve the white space surrounding the "#".
33241 print prefix "define", macro P[macro] D[macro]
33242 next
33243 } else {
33244 # Replace #undef with comments. This is necessary, for example,
33245 # in the case of _POSIX_SOURCE, which is predefined and required
33246 # on some systems where configure will not decide to define it.
33247 if (defundef == "undef") {
33248 print "/*", prefix defundef, macro, "*/"
33249 next
33250 }
33251 }
33252 }
33253 { print }
33254 _ACAWK
33255 _ACEOF
33256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33257 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33258 fi # test -n "$CONFIG_HEADERS"
33259
33260
33261 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33262 shift
33263 for ac_tag
33264 do
33265 case $ac_tag in
33266 :[FHLC]) ac_mode=$ac_tag; continue;;
33267 esac
33268 case $ac_mode$ac_tag in
33269 :[FHL]*:*);;
33270 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33271 :[FH]-) ac_tag=-:-;;
33272 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33273 esac
33274 ac_save_IFS=$IFS
33275 IFS=:
33276 set x $ac_tag
33277 IFS=$ac_save_IFS
33278 shift
33279 ac_file=$1
33280 shift
33281
33282 case $ac_mode in
33283 :L) ac_source=$1;;
33284 :[FH])
33285 ac_file_inputs=
33286 for ac_f
33287 do
33288 case $ac_f in
33289 -) ac_f="$ac_tmp/stdin";;
33290 *) # Look for the file first in the build tree, then in the source tree
33291 # (if the path is not absolute). The absolute path cannot be DOS-style,
33292 # because $ac_f cannot contain `:'.
33293 test -f "$ac_f" ||
33294 case $ac_f in
33295 [\\/$]*) false;;
33296 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33297 esac ||
33298 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33299 esac
33300 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33301 as_fn_append ac_file_inputs " '$ac_f'"
33302 done
33303
33304 # Let's still pretend it is `configure' which instantiates (i.e., don't
33305 # use $as_me), people would be surprised to read:
33306 # /* config.h. Generated by config.status. */
33307 configure_input='Generated from '`
33308 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33309 `' by configure.'
33310 if test x"$ac_file" != x-; then
33311 configure_input="$ac_file. $configure_input"
33312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33313 $as_echo "$as_me: creating $ac_file" >&6;}
33314 fi
33315 # Neutralize special characters interpreted by sed in replacement strings.
33316 case $configure_input in #(
33317 *\&* | *\|* | *\\* )
33318 ac_sed_conf_input=`$as_echo "$configure_input" |
33319 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33320 *) ac_sed_conf_input=$configure_input;;
33321 esac
33322
33323 case $ac_tag in
33324 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33325 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33326 esac
33327 ;;
33328 esac
33329
33330 ac_dir=`$as_dirname -- "$ac_file" ||
33331 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33332 X"$ac_file" : 'X\(//\)[^/]' \| \
33333 X"$ac_file" : 'X\(//\)$' \| \
33334 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33335 $as_echo X"$ac_file" |
33336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33337 s//\1/
33338 q
33339 }
33340 /^X\(\/\/\)[^/].*/{
33341 s//\1/
33342 q
33343 }
33344 /^X\(\/\/\)$/{
33345 s//\1/
33346 q
33347 }
33348 /^X\(\/\).*/{
33349 s//\1/
33350 q
33351 }
33352 s/.*/./; q'`
33353 as_dir="$ac_dir"; as_fn_mkdir_p
33354 ac_builddir=.
33355
33356 case "$ac_dir" in
33357 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33358 *)
33359 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33360 # A ".." for each directory in $ac_dir_suffix.
33361 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33362 case $ac_top_builddir_sub in
33363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33365 esac ;;
33366 esac
33367 ac_abs_top_builddir=$ac_pwd
33368 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33369 # for backward compatibility:
33370 ac_top_builddir=$ac_top_build_prefix
33371
33372 case $srcdir in
33373 .) # We are building in place.
33374 ac_srcdir=.
33375 ac_top_srcdir=$ac_top_builddir_sub
33376 ac_abs_top_srcdir=$ac_pwd ;;
33377 [\\/]* | ?:[\\/]* ) # Absolute name.
33378 ac_srcdir=$srcdir$ac_dir_suffix;
33379 ac_top_srcdir=$srcdir
33380 ac_abs_top_srcdir=$srcdir ;;
33381 *) # Relative name.
33382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33383 ac_top_srcdir=$ac_top_build_prefix$srcdir
33384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33385 esac
33386 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33387
33388
33389 case $ac_mode in
33390 :F)
33391 #
33392 # CONFIG_FILE
33393 #
33394
33395 _ACEOF
33396
33397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33398 # If the template does not know about datarootdir, expand it.
33399 # FIXME: This hack should be removed a few years after 2.60.
33400 ac_datarootdir_hack=; ac_datarootdir_seen=
33401 ac_sed_dataroot='
33402 /datarootdir/ {
33403 p
33404 q
33405 }
33406 /@datadir@/p
33407 /@docdir@/p
33408 /@infodir@/p
33409 /@localedir@/p
33410 /@mandir@/p'
33411 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33412 *datarootdir*) ac_datarootdir_seen=yes;;
33413 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33415 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33416 _ACEOF
33417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33418 ac_datarootdir_hack='
33419 s&@datadir@&$datadir&g
33420 s&@docdir@&$docdir&g
33421 s&@infodir@&$infodir&g
33422 s&@localedir@&$localedir&g
33423 s&@mandir@&$mandir&g
33424 s&\\\${datarootdir}&$datarootdir&g' ;;
33425 esac
33426 _ACEOF
33427
33428 # Neutralize VPATH when `$srcdir' = `.'.
33429 # Shell code in configure.ac might set extrasub.
33430 # FIXME: do we really want to maintain this feature?
33431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33432 ac_sed_extra="$ac_vpsub
33433 $extrasub
33434 _ACEOF
33435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33436 :t
33437 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33438 s|@configure_input@|$ac_sed_conf_input|;t t
33439 s&@top_builddir@&$ac_top_builddir_sub&;t t
33440 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33441 s&@srcdir@&$ac_srcdir&;t t
33442 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33443 s&@top_srcdir@&$ac_top_srcdir&;t t
33444 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33445 s&@builddir@&$ac_builddir&;t t
33446 s&@abs_builddir@&$ac_abs_builddir&;t t
33447 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33448 $ac_datarootdir_hack
33449 "
33450 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33451 if $ac_cs_awk_getline; then
33452 $AWK -f "$ac_tmp/subs.awk"
33453 else
33454 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33455 fi \
33456 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33457
33458 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33459 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33460 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33461 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33463 which seems to be undefined. Please make sure it is defined" >&5
33464 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33465 which seems to be undefined. Please make sure it is defined" >&2;}
33466
33467 rm -f "$ac_tmp/stdin"
33468 case $ac_file in
33469 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33470 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33471 esac \
33472 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33473 ;;
33474 :H)
33475 #
33476 # CONFIG_HEADER
33477 #
33478 if test x"$ac_file" != x-; then
33479 {
33480 $as_echo "/* $configure_input */" \
33481 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33482 } >"$ac_tmp/config.h" \
33483 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33484 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33485 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33486 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33487 else
33488 rm -f "$ac_file"
33489 mv "$ac_tmp/config.h" "$ac_file" \
33490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33491 fi
33492 else
33493 $as_echo "/* $configure_input */" \
33494 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33495 || as_fn_error $? "could not create -" "$LINENO" 5
33496 fi
33497 ;;
33498 :L)
33499 #
33500 # CONFIG_LINK
33501 #
33502
33503 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33504 :
33505 else
33506 # Prefer the file from the source tree if names are identical.
33507 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33508 ac_source=$srcdir/$ac_source
33509 fi
33510
33511 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33512 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33513
33514 if test ! -r "$ac_source"; then
33515 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33516 fi
33517 rm -f "$ac_file"
33518
33519 # Try a relative symlink, then a hard link, then a copy.
33520 case $ac_source in
33521 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33522 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33523 esac
33524 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33525 ln "$ac_source" "$ac_file" 2>/dev/null ||
33526 cp -p "$ac_source" "$ac_file" ||
33527 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33528 fi
33529 ;;
33530 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33531 $as_echo "$as_me: executing $ac_file commands" >&6;}
33532 ;;
33533 esac
33534
33535
33536 case $ac_file$ac_mode in
33537 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33538 "gccdepdir":C)
33539 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33540 for lang in $subdirs c-family common analyzer rtl-ssa
33541 do
33542 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33543 done ;;
33544 "as":F) chmod +x as ;;
33545 "collect-ld":F) chmod +x collect-ld ;;
33546 "nm":F) chmod +x nm ;;
33547 "default":C)
33548 case ${CONFIG_HEADERS} in
33549 *auto-host.h:config.in*)
33550 echo > cstamp-h ;;
33551 esac
33552 # Make sure all the subdirs exist.
33553 for d in $subdirs doc build common c-family
33554 do
33555 test -d $d || mkdir $d
33556 done
33557 ;;
33558
33559 esac
33560 done # for ac_tag
33561
33562
33563 as_fn_exit 0
33564 _ACEOF
33565 ac_clean_files=$ac_clean_files_save
33566
33567 test $ac_write_fail = 0 ||
33568 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33569
33570
33571 # configure is writing to config.log, and then calls config.status.
33572 # config.status does its own redirection, appending to config.log.
33573 # Unfortunately, on DOS this fails, as config.log is still kept open
33574 # by configure, so config.status won't be able to write to it; its
33575 # output is simply discarded. So we exec the FD to /dev/null,
33576 # effectively closing config.log, so it can be properly (re)opened and
33577 # appended to by config.status. When coming back to configure, we
33578 # need to make the FD available again.
33579 if test "$no_create" != yes; then
33580 ac_cs_success=:
33581 ac_config_status_args=
33582 test "$silent" = yes &&
33583 ac_config_status_args="$ac_config_status_args --quiet"
33584 exec 5>/dev/null
33585 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33586 exec 5>>config.log
33587 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33588 # would make configure fail if this is the last instruction.
33589 $ac_cs_success || as_fn_exit 1
33590 fi
33591 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33593 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33594 fi
33595
33596