Daily bump.
[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 NO_PIE_FLAG
635 NO_PIE_CFLAGS
636 enable_default_pie
637 PICFLAG
638 enable_host_shared
639 enable_plugin
640 pluginlibs
641 ISLINC
642 ISLLIBS
643 GMPINC
644 GMPLIBS
645 target_cpu_default
646 d_target_objs
647 fortran_target_objs
648 cxx_target_objs
649 c_target_objs
650 use_gcc_stdint
651 xm_defines
652 xm_include_list
653 xm_file_list
654 tm_d_include_list
655 tm_d_file_list
656 tm_p_include_list
657 tm_p_file_list
658 tm_defines
659 tm_include_list
660 tm_file_list
661 common_out_object_file
662 common_out_file
663 out_object_file
664 out_file
665 objc_boehm_gc
666 md_file
667 local_prefix
668 lang_tree_files
669 lang_specs_files
670 lang_opt_files
671 install
672 out_host_hook_obj
673 host_xm_defines
674 host_xm_include_list
675 host_xm_file_list
676 host_exeext
677 gcc_gxx_include_dir_add_sysroot
678 gcc_gxx_include_dir
679 gcc_config_arguments
680 float_h_file
681 extra_programs
682 extra_objs
683 extra_headers_list
684 user_headers_inc_next_post
685 user_headers_inc_next_pre
686 extra_gcc_objs
687 TM_MULTILIB_EXCEPTIONS_CONFIG
688 TM_MULTILIB_CONFIG
689 TM_ENDIAN_CONFIG
690 tmake_file
691 xmake_file
692 cpp_install_dir
693 selftest_languages
694 check_languages
695 build_file_translate
696 build_xm_defines
697 build_xm_include_list
698 build_xm_file_list
699 build_install_headers_dir
700 build_exeext
701 all_selected_languages
702 all_languages
703 all_lang_makefrags
704 all_lang_configurefrags
705 all_gtfiles
706 all_compilers
707 srcdir
708 subdirs
709 dollar
710 gcc_tooldir
711 enable_lto
712 DO_LINK_MUTEX
713 MAINT
714 zlibinc
715 zlibdir
716 HOST_LIBS
717 enable_default_ssp
718 thin_archive_support
719 ld_soname_option
720 ld_version_script_option
721 libgcc_visibility
722 gcc_cv_otool
723 gcc_cv_readelf
724 gcc_cv_objdump
725 ORIGINAL_NM_FOR_TARGET
726 gcc_cv_nm
727 ORIGINAL_LD_GOLD_FOR_TARGET
728 ORIGINAL_LD_BFD_FOR_TARGET
729 ORIGINAL_LD_FOR_TARGET
730 ORIGINAL_PLUGIN_LD_FOR_TARGET
731 gcc_cv_ld
732 ORIGINAL_AS_FOR_TARGET
733 gcc_cv_as
734 enable_fast_install
735 objdir
736 OTOOL64
737 OTOOL
738 LIPO
739 NMEDIT
740 DSYMUTIL
741 STRIP
742 OBJDUMP
743 ac_ct_DUMPBIN
744 DUMPBIN
745 LD
746 FGREP
747 SED
748 LIBTOOL
749 collect2
750 NO_PIE_FLAG_FOR_BUILD
751 NO_PIE_CFLAGS_FOR_BUILD
752 BUILD_NO_PIE_FLAG
753 BUILD_NO_PIE_CFLAGS
754 STMP_FIXINC
755 BUILD_LDFLAGS
756 BUILD_CXXFLAGS
757 BUILD_CFLAGS
758 CXX_FOR_BUILD
759 CC_FOR_BUILD
760 inhibit_libc
761 BUILD_SYSTEM_HEADER_DIR
762 SYSTEM_HEADER_DIR
763 ALL
764 CROSS
765 CATOBJEXT
766 GENCAT
767 INSTOBJEXT
768 DATADIRNAME
769 CATALOGS
770 POSUB
771 GMSGFMT
772 XGETTEXT
773 INCINTL
774 LIBINTL_DEP
775 LIBINTL
776 USE_NLS
777 get_gcc_base_ver
778 HAVE_AUTO_BUILD
779 extra_opt_files
780 extra_modes_file
781 NATIVE_SYSTEM_HEADER_DIR
782 objext
783 manext
784 LIBICONV_DEP
785 LTLIBICONV
786 LIBICONV
787 ZSTD_LIB
788 ZSTD_INCLUDE
789 DL_LIB
790 LDEXP_LIB
791 EXTRA_GCC_LIBS
792 GNAT_LIBEXC
793 COLLECT2_LIBS
794 CXXDEPMODE
795 DEPDIR
796 am__leading_dot
797 doc_build_sys
798 AR
799 NM
800 BISON
801 FLEX
802 GENERATED_MANPAGES
803 BUILD_INFO
804 MAKEINFO
805 have_mktemp_command
806 make_compare_target
807 INSTALL_DATA
808 INSTALL_PROGRAM
809 INSTALL
810 ranlib_flags
811 RANLIB
812 LN
813 LN_S
814 AWK
815 SET_MAKE
816 omp_device_property_deps
817 omp_device_properties
818 accel_dir_suffix
819 real_target_noncanonical
820 enable_as_accelerator
821 gnat_install_lib
822 DOCUMENTATION_ROOT_URL
823 REPORT_BUGS_TEXI
824 REPORT_BUGS_TO
825 PKGVERSION
826 CONFIGURE_SPECS
827 enable_gcov
828 enable_shared
829 enable_fixed_point
830 enable_decimal_float
831 with_float
832 with_cpu
833 enable_multiarch
834 enable_multilib
835 coverage_flags
836 valgrind_command
837 valgrind_path_defines
838 valgrind_path
839 TREECHECKING
840 nocommon_flag
841 noexception_flags
842 warn_cxxflags
843 warn_cflags
844 c_strict_warn
845 strict_warn
846 c_loose_warn
847 loose_warn
848 aliasing_flags
849 CPP
850 EGREP
851 GREP
852 CXXCPP
853 PICFLAG_FOR_TARGET
854 GNATMAKE
855 GNATBIND
856 ac_ct_CXX
857 CXXFLAGS
858 CXX
859 OBJEXT
860 EXEEXT
861 ac_ct_CC
862 CPPFLAGS
863 LDFLAGS
864 CFLAGS
865 CC
866 GENINSRC
867 CROSS_SYSTEM_HEADER_DIR
868 TARGET_SYSTEM_ROOT_DEFINE
869 TARGET_SYSTEM_ROOT
870 SYSROOT_CFLAGS_FOR_TARGET
871 target_subdir
872 host_subdir
873 build_subdir
874 build_libsubdir
875 target_noncanonical
876 host_noncanonical
877 target_os
878 target_vendor
879 target_cpu
880 target
881 host_os
882 host_vendor
883 host_cpu
884 host
885 build_os
886 build_vendor
887 build_cpu
888 build
889 target_alias
890 host_alias
891 build_alias
892 LIBS
893 ECHO_T
894 ECHO_N
895 ECHO_C
896 DEFS
897 mandir
898 localedir
899 libdir
900 psdir
901 pdfdir
902 dvidir
903 htmldir
904 infodir
905 docdir
906 oldincludedir
907 includedir
908 localstatedir
909 sharedstatedir
910 sysconfdir
911 datadir
912 datarootdir
913 libexecdir
914 sbindir
915 bindir
916 program_transform_name
917 prefix
918 exec_prefix
919 PACKAGE_URL
920 PACKAGE_BUGREPORT
921 PACKAGE_STRING
922 PACKAGE_VERSION
923 PACKAGE_TARNAME
924 PACKAGE_NAME
925 PATH_SEPARATOR
926 SHELL'
927 ac_subst_files='option_includes
928 language_hooks'
929 ac_user_opts='
930 enable_option_checking
931 with_build_libsubdir
932 with_local_prefix
933 with_native_system_header_dir
934 with_build_sysroot
935 with_sysroot
936 with_gxx_include_dir
937 with_cpp_install_dir
938 enable_generated_files_in_srcdir
939 with_gnu_ld
940 with_ld
941 with_demangler_in_ld
942 with_gnu_as
943 with_as
944 enable_largefile
945 enable_build_format_warnings
946 enable_werror_always
947 enable_checking
948 enable_coverage
949 enable_gather_detailed_mem_stats
950 enable_valgrind_annotations
951 with_stabs
952 enable_multilib
953 enable_multiarch
954 with_stack_clash_protection_guard_size
955 enable___cxa_atexit
956 enable_decimal_float
957 enable_fixed_point
958 enable_threads
959 enable_tls
960 enable_vtable_verify
961 enable_analyzer
962 enable_objc_gc
963 with_dwarf2
964 enable_shared
965 enable_gcov
966 with_specs
967 with_pkgversion
968 with_bugurl
969 with_documentation_root_url
970 enable_languages
971 with_multilib_list
972 with_zstd
973 with_zstd_include
974 with_zstd_lib
975 enable_rpath
976 with_libiconv_prefix
977 with_libiconv_type
978 enable_sjlj_exceptions
979 with_gcc_major_version_only
980 enable_secureplt
981 enable_mingw_wildcard
982 enable_large_address_aware
983 enable_leading_mingw64_underscores
984 enable_cld
985 enable_frame_pointer
986 enable_win32_registry
987 enable_static
988 with_pic
989 enable_fast_install
990 enable_libtool_lock
991 enable_ld
992 enable_gold
993 with_plugin_ld
994 enable_gnu_indirect_function
995 enable_initfini_array
996 enable_comdat
997 enable_newlib_nano_formatted_io
998 enable_standard_branch_protection
999 enable_fix_cortex_a53_835769
1000 enable_fix_cortex_a53_843419
1001 with_glibc_version
1002 enable_gnu_unique_object
1003 enable_linker_build_id
1004 enable_libssp
1005 enable_default_ssp
1006 with_long_double_128
1007 with_long_double_format
1008 with_gc
1009 with_system_zlib
1010 enable_maintainer_mode
1011 enable_link_mutex
1012 enable_version_specific_runtime_libs
1013 enable_plugin
1014 enable_host_shared
1015 enable_libquadmath_support
1016 with_linker_hash_style
1017 with_diagnostics_color
1018 with_diagnostics_urls
1019 enable_default_pie
1020 '
1021 ac_precious_vars='build_alias
1022 host_alias
1023 target_alias
1024 CC
1025 CFLAGS
1026 LDFLAGS
1027 LIBS
1028 CPPFLAGS
1029 CXX
1030 CXXFLAGS
1031 CCC
1032 CXXCPP
1033 CPP
1034 GMPLIBS
1035 GMPINC
1036 ISLLIBS
1037 ISLINC'
1038
1039
1040 # Initialize some variables set by options.
1041 ac_init_help=
1042 ac_init_version=false
1043 ac_unrecognized_opts=
1044 ac_unrecognized_sep=
1045 # The variables have the same names as the options, with
1046 # dashes changed to underlines.
1047 cache_file=/dev/null
1048 exec_prefix=NONE
1049 no_create=
1050 no_recursion=
1051 prefix=NONE
1052 program_prefix=NONE
1053 program_suffix=NONE
1054 program_transform_name=s,x,x,
1055 silent=
1056 site=
1057 srcdir=
1058 verbose=
1059 x_includes=NONE
1060 x_libraries=NONE
1061
1062 # Installation directory options.
1063 # These are left unexpanded so users can "make install exec_prefix=/foo"
1064 # and all the variables that are supposed to be based on exec_prefix
1065 # by default will actually change.
1066 # Use braces instead of parens because sh, perl, etc. also accept them.
1067 # (The list follows the same order as the GNU Coding Standards.)
1068 bindir='${exec_prefix}/bin'
1069 sbindir='${exec_prefix}/sbin'
1070 libexecdir='${exec_prefix}/libexec'
1071 datarootdir='${prefix}/share'
1072 datadir='${datarootdir}'
1073 sysconfdir='${prefix}/etc'
1074 sharedstatedir='${prefix}/com'
1075 localstatedir='${prefix}/var'
1076 includedir='${prefix}/include'
1077 oldincludedir='/usr/include'
1078 docdir='${datarootdir}/doc/${PACKAGE}'
1079 infodir='${datarootdir}/info'
1080 htmldir='${docdir}'
1081 dvidir='${docdir}'
1082 pdfdir='${docdir}'
1083 psdir='${docdir}'
1084 libdir='${exec_prefix}/lib'
1085 localedir='${datarootdir}/locale'
1086 mandir='${datarootdir}/man'
1087
1088 ac_prev=
1089 ac_dashdash=
1090 for ac_option
1091 do
1092 # If the previous option needs an argument, assign it.
1093 if test -n "$ac_prev"; then
1094 eval $ac_prev=\$ac_option
1095 ac_prev=
1096 continue
1097 fi
1098
1099 case $ac_option in
1100 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1101 *=) ac_optarg= ;;
1102 *) ac_optarg=yes ;;
1103 esac
1104
1105 # Accept the important Cygnus configure options, so we can diagnose typos.
1106
1107 case $ac_dashdash$ac_option in
1108 --)
1109 ac_dashdash=yes ;;
1110
1111 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1112 ac_prev=bindir ;;
1113 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1114 bindir=$ac_optarg ;;
1115
1116 -build | --build | --buil | --bui | --bu)
1117 ac_prev=build_alias ;;
1118 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1119 build_alias=$ac_optarg ;;
1120
1121 -cache-file | --cache-file | --cache-fil | --cache-fi \
1122 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1123 ac_prev=cache_file ;;
1124 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1125 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1126 cache_file=$ac_optarg ;;
1127
1128 --config-cache | -C)
1129 cache_file=config.cache ;;
1130
1131 -datadir | --datadir | --datadi | --datad)
1132 ac_prev=datadir ;;
1133 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1134 datadir=$ac_optarg ;;
1135
1136 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1137 | --dataroo | --dataro | --datar)
1138 ac_prev=datarootdir ;;
1139 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1140 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1141 datarootdir=$ac_optarg ;;
1142
1143 -disable-* | --disable-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid feature name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152 "enable_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval enable_$ac_useropt=no ;;
1158
1159 -docdir | --docdir | --docdi | --doc | --do)
1160 ac_prev=docdir ;;
1161 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1162 docdir=$ac_optarg ;;
1163
1164 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1165 ac_prev=dvidir ;;
1166 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1167 dvidir=$ac_optarg ;;
1168
1169 -enable-* | --enable-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid feature name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178 "enable_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval enable_$ac_useropt=\$ac_optarg ;;
1184
1185 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1186 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1187 | --exec | --exe | --ex)
1188 ac_prev=exec_prefix ;;
1189 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1190 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1191 | --exec=* | --exe=* | --ex=*)
1192 exec_prefix=$ac_optarg ;;
1193
1194 -gas | --gas | --ga | --g)
1195 # Obsolete; use --with-gas.
1196 with_gas=yes ;;
1197
1198 -help | --help | --hel | --he | -h)
1199 ac_init_help=long ;;
1200 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1201 ac_init_help=recursive ;;
1202 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1203 ac_init_help=short ;;
1204
1205 -host | --host | --hos | --ho)
1206 ac_prev=host_alias ;;
1207 -host=* | --host=* | --hos=* | --ho=*)
1208 host_alias=$ac_optarg ;;
1209
1210 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1211 ac_prev=htmldir ;;
1212 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1213 | --ht=*)
1214 htmldir=$ac_optarg ;;
1215
1216 -includedir | --includedir | --includedi | --included | --include \
1217 | --includ | --inclu | --incl | --inc)
1218 ac_prev=includedir ;;
1219 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1220 | --includ=* | --inclu=* | --incl=* | --inc=*)
1221 includedir=$ac_optarg ;;
1222
1223 -infodir | --infodir | --infodi | --infod | --info | --inf)
1224 ac_prev=infodir ;;
1225 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1226 infodir=$ac_optarg ;;
1227
1228 -libdir | --libdir | --libdi | --libd)
1229 ac_prev=libdir ;;
1230 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1231 libdir=$ac_optarg ;;
1232
1233 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1234 | --libexe | --libex | --libe)
1235 ac_prev=libexecdir ;;
1236 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1237 | --libexe=* | --libex=* | --libe=*)
1238 libexecdir=$ac_optarg ;;
1239
1240 -localedir | --localedir | --localedi | --localed | --locale)
1241 ac_prev=localedir ;;
1242 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1243 localedir=$ac_optarg ;;
1244
1245 -localstatedir | --localstatedir | --localstatedi | --localstated \
1246 | --localstate | --localstat | --localsta | --localst | --locals)
1247 ac_prev=localstatedir ;;
1248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1249 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1250 localstatedir=$ac_optarg ;;
1251
1252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1253 ac_prev=mandir ;;
1254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1255 mandir=$ac_optarg ;;
1256
1257 -nfp | --nfp | --nf)
1258 # Obsolete; use --without-fp.
1259 with_fp=no ;;
1260
1261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1262 | --no-cr | --no-c | -n)
1263 no_create=yes ;;
1264
1265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1267 no_recursion=yes ;;
1268
1269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1271 | --oldin | --oldi | --old | --ol | --o)
1272 ac_prev=oldincludedir ;;
1273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1276 oldincludedir=$ac_optarg ;;
1277
1278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1279 ac_prev=prefix ;;
1280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1281 prefix=$ac_optarg ;;
1282
1283 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1284 | --program-pre | --program-pr | --program-p)
1285 ac_prev=program_prefix ;;
1286 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1288 program_prefix=$ac_optarg ;;
1289
1290 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1291 | --program-suf | --program-su | --program-s)
1292 ac_prev=program_suffix ;;
1293 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1295 program_suffix=$ac_optarg ;;
1296
1297 -program-transform-name | --program-transform-name \
1298 | --program-transform-nam | --program-transform-na \
1299 | --program-transform-n | --program-transform- \
1300 | --program-transform | --program-transfor \
1301 | --program-transfo | --program-transf \
1302 | --program-trans | --program-tran \
1303 | --progr-tra | --program-tr | --program-t)
1304 ac_prev=program_transform_name ;;
1305 -program-transform-name=* | --program-transform-name=* \
1306 | --program-transform-nam=* | --program-transform-na=* \
1307 | --program-transform-n=* | --program-transform-=* \
1308 | --program-transform=* | --program-transfor=* \
1309 | --program-transfo=* | --program-transf=* \
1310 | --program-trans=* | --program-tran=* \
1311 | --progr-tra=* | --program-tr=* | --program-t=*)
1312 program_transform_name=$ac_optarg ;;
1313
1314 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1315 ac_prev=pdfdir ;;
1316 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1317 pdfdir=$ac_optarg ;;
1318
1319 -psdir | --psdir | --psdi | --psd | --ps)
1320 ac_prev=psdir ;;
1321 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1322 psdir=$ac_optarg ;;
1323
1324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1325 | -silent | --silent | --silen | --sile | --sil)
1326 silent=yes ;;
1327
1328 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1329 ac_prev=sbindir ;;
1330 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1331 | --sbi=* | --sb=*)
1332 sbindir=$ac_optarg ;;
1333
1334 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1335 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1336 | --sharedst | --shareds | --shared | --share | --shar \
1337 | --sha | --sh)
1338 ac_prev=sharedstatedir ;;
1339 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1340 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1341 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1342 | --sha=* | --sh=*)
1343 sharedstatedir=$ac_optarg ;;
1344
1345 -site | --site | --sit)
1346 ac_prev=site ;;
1347 -site=* | --site=* | --sit=*)
1348 site=$ac_optarg ;;
1349
1350 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1351 ac_prev=srcdir ;;
1352 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1353 srcdir=$ac_optarg ;;
1354
1355 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1356 | --syscon | --sysco | --sysc | --sys | --sy)
1357 ac_prev=sysconfdir ;;
1358 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1359 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1360 sysconfdir=$ac_optarg ;;
1361
1362 -target | --target | --targe | --targ | --tar | --ta | --t)
1363 ac_prev=target_alias ;;
1364 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1365 target_alias=$ac_optarg ;;
1366
1367 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1368 verbose=yes ;;
1369
1370 -version | --version | --versio | --versi | --vers | -V)
1371 ac_init_version=: ;;
1372
1373 -with-* | --with-*)
1374 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1375 # Reject names that are not valid shell variable names.
1376 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1377 as_fn_error $? "invalid package name: $ac_useropt"
1378 ac_useropt_orig=$ac_useropt
1379 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380 case $ac_user_opts in
1381 *"
1382 "with_$ac_useropt"
1383 "*) ;;
1384 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1385 ac_unrecognized_sep=', ';;
1386 esac
1387 eval with_$ac_useropt=\$ac_optarg ;;
1388
1389 -without-* | --without-*)
1390 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391 # Reject names that are not valid shell variable names.
1392 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1393 as_fn_error $? "invalid package name: $ac_useropt"
1394 ac_useropt_orig=$ac_useropt
1395 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1396 case $ac_user_opts in
1397 *"
1398 "with_$ac_useropt"
1399 "*) ;;
1400 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1401 ac_unrecognized_sep=', ';;
1402 esac
1403 eval with_$ac_useropt=no ;;
1404
1405 --x)
1406 # Obsolete; use --with-x.
1407 with_x=yes ;;
1408
1409 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1410 | --x-incl | --x-inc | --x-in | --x-i)
1411 ac_prev=x_includes ;;
1412 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1413 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1414 x_includes=$ac_optarg ;;
1415
1416 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1417 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1418 ac_prev=x_libraries ;;
1419 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1420 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1421 x_libraries=$ac_optarg ;;
1422
1423 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1424 Try \`$0 --help' for more information"
1425 ;;
1426
1427 *=*)
1428 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1429 # Reject names that are not valid shell variable names.
1430 case $ac_envvar in #(
1431 '' | [0-9]* | *[!_$as_cr_alnum]* )
1432 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1433 esac
1434 eval $ac_envvar=\$ac_optarg
1435 export $ac_envvar ;;
1436
1437 *)
1438 # FIXME: should be removed in autoconf 3.0.
1439 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1440 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1441 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1442 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1443 ;;
1444
1445 esac
1446 done
1447
1448 if test -n "$ac_prev"; then
1449 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1450 as_fn_error $? "missing argument to $ac_option"
1451 fi
1452
1453 if test -n "$ac_unrecognized_opts"; then
1454 case $enable_option_checking in
1455 no) ;;
1456 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1457 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1458 esac
1459 fi
1460
1461 # Check all directory arguments for consistency.
1462 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1463 datadir sysconfdir sharedstatedir localstatedir includedir \
1464 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1465 libdir localedir mandir
1466 do
1467 eval ac_val=\$$ac_var
1468 # Remove trailing slashes.
1469 case $ac_val in
1470 */ )
1471 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1472 eval $ac_var=\$ac_val;;
1473 esac
1474 # Be sure to have absolute directory names.
1475 case $ac_val in
1476 [\\/$]* | ?:[\\/]* ) continue;;
1477 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1478 esac
1479 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1480 done
1481
1482 # There might be people who depend on the old broken behavior: `$host'
1483 # used to hold the argument of --host etc.
1484 # FIXME: To remove some day.
1485 build=$build_alias
1486 host=$host_alias
1487 target=$target_alias
1488
1489 # FIXME: To remove some day.
1490 if test "x$host_alias" != x; then
1491 if test "x$build_alias" = x; then
1492 cross_compiling=maybe
1493 elif test "x$build_alias" != "x$host_alias"; then
1494 cross_compiling=yes
1495 fi
1496 fi
1497
1498 ac_tool_prefix=
1499 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1500
1501 test "$silent" = yes && exec 6>/dev/null
1502
1503
1504 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1505 ac_ls_di=`ls -di .` &&
1506 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1507 as_fn_error $? "working directory cannot be determined"
1508 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1509 as_fn_error $? "pwd does not report name of working directory"
1510
1511
1512 # Find the source files, if location was not specified.
1513 if test -z "$srcdir"; then
1514 ac_srcdir_defaulted=yes
1515 # Try the directory containing this script, then the parent directory.
1516 ac_confdir=`$as_dirname -- "$as_myself" ||
1517 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1518 X"$as_myself" : 'X\(//\)[^/]' \| \
1519 X"$as_myself" : 'X\(//\)$' \| \
1520 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1521 $as_echo X"$as_myself" |
1522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1523 s//\1/
1524 q
1525 }
1526 /^X\(\/\/\)[^/].*/{
1527 s//\1/
1528 q
1529 }
1530 /^X\(\/\/\)$/{
1531 s//\1/
1532 q
1533 }
1534 /^X\(\/\).*/{
1535 s//\1/
1536 q
1537 }
1538 s/.*/./; q'`
1539 srcdir=$ac_confdir
1540 if test ! -r "$srcdir/$ac_unique_file"; then
1541 srcdir=..
1542 fi
1543 else
1544 ac_srcdir_defaulted=no
1545 fi
1546 if test ! -r "$srcdir/$ac_unique_file"; then
1547 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1548 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1549 fi
1550 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1551 ac_abs_confdir=`(
1552 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1553 pwd)`
1554 # When building in place, set srcdir=.
1555 if test "$ac_abs_confdir" = "$ac_pwd"; then
1556 srcdir=.
1557 fi
1558 # Remove unnecessary trailing slashes from srcdir.
1559 # Double slashes in file names in object file debugging info
1560 # mess up M-x gdb in Emacs.
1561 case $srcdir in
1562 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1563 esac
1564 for ac_var in $ac_precious_vars; do
1565 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1566 eval ac_env_${ac_var}_value=\$${ac_var}
1567 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1568 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1569 done
1570
1571 #
1572 # Report the --help message.
1573 #
1574 if test "$ac_init_help" = "long"; then
1575 # Omit some internal or obsolete options to make the list less imposing.
1576 # This message is too long to be a string in the A/UX 3.1 sh.
1577 cat <<_ACEOF
1578 \`configure' configures this package to adapt to many kinds of systems.
1579
1580 Usage: $0 [OPTION]... [VAR=VALUE]...
1581
1582 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1583 VAR=VALUE. See below for descriptions of some of the useful variables.
1584
1585 Defaults for the options are specified in brackets.
1586
1587 Configuration:
1588 -h, --help display this help and exit
1589 --help=short display options specific to this package
1590 --help=recursive display the short help of all the included packages
1591 -V, --version display version information and exit
1592 -q, --quiet, --silent do not print \`checking ...' messages
1593 --cache-file=FILE cache test results in FILE [disabled]
1594 -C, --config-cache alias for \`--cache-file=config.cache'
1595 -n, --no-create do not create output files
1596 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1597
1598 Installation directories:
1599 --prefix=PREFIX install architecture-independent files in PREFIX
1600 [$ac_default_prefix]
1601 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1602 [PREFIX]
1603
1604 By default, \`make install' will install all the files in
1605 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1606 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1607 for instance \`--prefix=\$HOME'.
1608
1609 For better control, use the options below.
1610
1611 Fine tuning of the installation directories:
1612 --bindir=DIR user executables [EPREFIX/bin]
1613 --sbindir=DIR system admin executables [EPREFIX/sbin]
1614 --libexecdir=DIR program executables [EPREFIX/libexec]
1615 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1616 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1617 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1618 --libdir=DIR object code libraries [EPREFIX/lib]
1619 --includedir=DIR C header files [PREFIX/include]
1620 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1621 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1622 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1623 --infodir=DIR info documentation [DATAROOTDIR/info]
1624 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1625 --mandir=DIR man documentation [DATAROOTDIR/man]
1626 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1627 --htmldir=DIR html documentation [DOCDIR]
1628 --dvidir=DIR dvi documentation [DOCDIR]
1629 --pdfdir=DIR pdf documentation [DOCDIR]
1630 --psdir=DIR ps documentation [DOCDIR]
1631 _ACEOF
1632
1633 cat <<\_ACEOF
1634
1635 Program names:
1636 --program-prefix=PREFIX prepend PREFIX to installed program names
1637 --program-suffix=SUFFIX append SUFFIX to installed program names
1638 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1639
1640 System types:
1641 --build=BUILD configure for building on BUILD [guessed]
1642 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1643 --target=TARGET configure for building compilers for TARGET [HOST]
1644 _ACEOF
1645 fi
1646
1647 if test -n "$ac_init_help"; then
1648
1649 cat <<\_ACEOF
1650
1651 Optional Features:
1652 --disable-option-checking ignore unrecognized --enable/--with options
1653 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1654 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1655 --enable-generated-files-in-srcdir
1656 put copies of generated files in source dir intended
1657 for creating source tarballs for users without
1658 texinfo bison or flex
1659 --disable-largefile omit support for large files
1660 --disable-build-format-warnings
1661 don't use -Wformat while building GCC
1662 --enable-werror-always enable -Werror despite compiler version
1663 --enable-checking[=LIST]
1664 enable expensive run-time checks. With LIST, enable
1665 only specific categories of checks. Categories are:
1666 yes,no,all,none,release. Flags are:
1667 assert,df,extra,fold,gc,gcac,gimple,misc,
1668 rtlflag,rtl,runtime,tree,valgrind,types
1669 --enable-coverage[=LEVEL]
1670 enable compiler's code coverage collection. Use to
1671 measure compiler performance and locate unused parts
1672 of the compiler. With LEVEL, specify optimization.
1673 Values are opt, noopt, default is noopt
1674 --enable-gather-detailed-mem-stats
1675 enable detailed memory allocation stats gathering
1676 --enable-valgrind-annotations
1677 enable valgrind runtime interaction
1678 --enable-multilib enable library support for multiple ABIs
1679 --enable-multiarch enable support for multiarch paths
1680 --enable-__cxa_atexit enable __cxa_atexit for C++
1681 --enable-decimal-float={no,yes,bid,dpd}
1682 enable decimal float extension to C. Selecting 'bid'
1683 or 'dpd' choses which decimal floating point format
1684 to use
1685 --enable-fixed-point enable fixed-point arithmetic extension to C
1686 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1687 package
1688 --enable-tls enable or disable generation of tls code overriding
1689 the assembler check for tls support
1690 --enable-vtable-verify enable vtable verification feature
1691 --disable-analyzer disable -fanalyzer static analyzer
1692 --enable-objc-gc enable the use of Boehm's garbage collector with the
1693 GNU Objective-C runtime
1694 --disable-shared don't provide a shared libgcc
1695 --disable-gcov don't provide libgcov and related host tools
1696 --enable-languages=LIST specify which front-ends to build
1697 --disable-rpath do not hardcode runtime library paths
1698 --enable-sjlj-exceptions
1699 arrange to use setjmp/longjmp exception handling
1700 --enable-secureplt enable -msecure-plt by default for PowerPC
1701 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1702 Default to platform configuration
1703 --enable-large-address-aware
1704 Link mingw executables with --large-address-aware
1705 --enable-leading-mingw64-underscores
1706 enable leading underscores on 64 bit mingw targets
1707 --enable-cld enable -mcld by default for 32bit x86
1708 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1709 --disable-win32-registry
1710 disable lookup of installation paths in the Registry
1711 on Windows hosts
1712 --enable-win32-registry enable registry lookup (default)
1713 --enable-win32-registry=KEY
1714 use KEY instead of GCC version as the last portion
1715 of the registry key
1716 --enable-shared[=PKGS] build shared libraries [default=yes]
1717 --enable-static[=PKGS] build static libraries [default=yes]
1718 --enable-fast-install[=PKGS]
1719 optimize for fast installation [default=yes]
1720 --disable-libtool-lock avoid locking (might break parallel builds)
1721 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1722 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1723 --enable-gnu-indirect-function
1724 enable the use of the @gnu_indirect_function to
1725 glibc systems
1726 --enable-initfini-array use .init_array/.fini_array sections
1727 --enable-comdat enable COMDAT group support
1728 --enable-newlib-nano-formatted-io
1729 Use nano version formatted IO
1730
1731 --enable-standard-branch-protection
1732 enable Branch Target Identification Mechanism and
1733 Return Address Signing by default for AArch64
1734 --disable-standard-branch-protection
1735 disable Branch Target Identification Mechanism and
1736 Return Address Signing by default for AArch64
1737
1738
1739 --enable-fix-cortex-a53-835769
1740 enable workaround for AArch64 Cortex-A53 erratum
1741 835769 by default
1742 --disable-fix-cortex-a53-835769
1743 disable workaround for AArch64 Cortex-A53 erratum
1744 835769 by default
1745
1746
1747 --enable-fix-cortex-a53-843419
1748 enable workaround for AArch64 Cortex-A53 erratum
1749 843419 by default
1750 --disable-fix-cortex-a53-843419
1751 disable workaround for AArch64 Cortex-A53 erratum
1752 843419 by default
1753
1754 --enable-gnu-unique-object
1755 enable the use of the @gnu_unique_object ELF
1756 extension on glibc systems
1757 --enable-linker-build-id
1758 compiler will always pass --build-id to linker
1759 --enable-libssp enable linking against libssp
1760 --enable-default-ssp enable Stack Smashing Protection as default
1761 --enable-maintainer-mode
1762 enable make rules and dependencies not useful (and
1763 sometimes confusing) to the casual installer
1764 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1765 thrashing on the build machine
1766 --enable-version-specific-runtime-libs
1767 specify that runtime libraries should be installed
1768 in a compiler-specific directory
1769 --enable-plugin enable plugin support
1770 --enable-host-shared build host code as shared libraries
1771 --disable-libquadmath-support
1772 disable libquadmath support for Fortran
1773 --enable-default-pie enable Position Independent Executable as default
1774
1775 Optional Packages:
1776 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1777 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1778 --with-build-libsubdir=DIR Directory where to find libraries for build system
1779 --with-local-prefix=DIR specifies directory to put local include
1780 --with-native-system-header-dir=dir
1781 use dir as the directory to look for standard
1782 system header files in. Defaults to /usr/include.
1783 --with-build-sysroot=sysroot
1784 use sysroot as the system root during the build
1785 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1786 --with-gxx-include-dir=DIR
1787 specifies directory to put g++ header files
1788 --with-cpp-install-dir=DIR
1789 install the user visible C preprocessor in DIR
1790 (relative to PREFIX) as well as PREFIX/bin
1791 --with-gnu-ld arrange to work with GNU ld
1792 --with-ld arrange to use the specified ld (full pathname)
1793 --with-demangler-in-ld try to use demangler in GNU ld
1794 --with-gnu-as arrange to work with GNU as
1795 --with-as arrange to use the specified as (full pathname)
1796 --with-stabs arrange to use stabs instead of host debug format
1797 --with-stack-clash-protection-guard-size=size
1798 Set the default stack clash protection guard size
1799 for specific targets as a power of two in bytes.
1800 --with-dwarf2 force the default debug format to be DWARF 2
1801 --with-specs=SPECS add SPECS to driver command-line processing
1802 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1803 --with-bugurl=URL Direct users to URL to report a bug
1804 --with-documentation-root-url=URL
1805 Root for documentation URLs
1806 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1807 --with-zstd=PATH specify prefix directory for installed zstd library.
1808 Equivalent to --with-zstd-include=PATH/include plus
1809 --with-zstd-lib=PATH/lib
1810 --with-zstd-include=PATH
1811 specify directory for installed zstd include files
1812 --with-zstd-lib=PATH specify directory for the installed zstd library
1813 --with-gnu-ld assume the C compiler uses GNU ld default=no
1814 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1815 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1816 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1817 --with-gcc-major-version-only
1818 use only GCC major number in filesystem paths
1819 --with-pic try to use only PIC/non-PIC objects [default=use
1820 both]
1821 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1822 --with-plugin-ld=[ARG] specify the plugin linker
1823 --with-glibc-version=M.N
1824 assume GCC used with glibc version M.N or later
1825 --with-long-double-128 use 128-bit long double by default
1826 --with-long-double-format={ieee,ibm}
1827 Specify whether PowerPC long double uses IEEE or IBM format
1828
1829 --with-gc={page,zone} this option is not supported anymore. It used to
1830 choose the garbage collection mechanism to use with
1831 the compiler
1832 --with-system-zlib use installed libz
1833 --with-linker-hash-style={sysv,gnu,both}
1834 specify the linker hash style
1835 --with-diagnostics-color={never,auto,auto-if-env,always}
1836 specify the default of -fdiagnostics-color option
1837 auto-if-env stands for -fdiagnostics-color=auto if
1838 GCC_COLOR environment variable is present and
1839 -fdiagnostics-color=never otherwise
1840 --with-diagnostics-urls={never,auto,auto-if-env,always}
1841 specify the default of -fdiagnostics-urls option
1842 auto-if-env stands for -fdiagnostics-urls=auto if
1843 GCC_URLS or TERM_URLS environment variable is
1844 present and -fdiagnostics-urls=never otherwise
1845
1846 Some influential environment variables:
1847 CC C compiler command
1848 CFLAGS C compiler flags
1849 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1850 nonstandard directory <lib dir>
1851 LIBS libraries to pass to the linker, e.g. -l<library>
1852 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1853 you have headers in a nonstandard directory <include dir>
1854 CXX C++ compiler command
1855 CXXFLAGS C++ compiler flags
1856 CXXCPP C++ preprocessor
1857 CPP C preprocessor
1858 GMPLIBS How to link GMP
1859 GMPINC How to find GMP include files
1860 ISLLIBS How to link isl
1861 ISLINC How to find isl include files
1862
1863 Use these variables to override the choices made by `configure' or to help
1864 it to find libraries and programs with nonstandard names/locations.
1865
1866 Report bugs to the package provider.
1867 _ACEOF
1868 ac_status=$?
1869 fi
1870
1871 if test "$ac_init_help" = "recursive"; then
1872 # If there are subdirs, report their specific --help.
1873 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1874 test -d "$ac_dir" ||
1875 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1876 continue
1877 ac_builddir=.
1878
1879 case "$ac_dir" in
1880 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1881 *)
1882 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1883 # A ".." for each directory in $ac_dir_suffix.
1884 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1885 case $ac_top_builddir_sub in
1886 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1887 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1888 esac ;;
1889 esac
1890 ac_abs_top_builddir=$ac_pwd
1891 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1892 # for backward compatibility:
1893 ac_top_builddir=$ac_top_build_prefix
1894
1895 case $srcdir in
1896 .) # We are building in place.
1897 ac_srcdir=.
1898 ac_top_srcdir=$ac_top_builddir_sub
1899 ac_abs_top_srcdir=$ac_pwd ;;
1900 [\\/]* | ?:[\\/]* ) # Absolute name.
1901 ac_srcdir=$srcdir$ac_dir_suffix;
1902 ac_top_srcdir=$srcdir
1903 ac_abs_top_srcdir=$srcdir ;;
1904 *) # Relative name.
1905 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1906 ac_top_srcdir=$ac_top_build_prefix$srcdir
1907 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1908 esac
1909 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1910
1911 cd "$ac_dir" || { ac_status=$?; continue; }
1912 # Check for guested configure.
1913 if test -f "$ac_srcdir/configure.gnu"; then
1914 echo &&
1915 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1916 elif test -f "$ac_srcdir/configure"; then
1917 echo &&
1918 $SHELL "$ac_srcdir/configure" --help=recursive
1919 else
1920 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1921 fi || ac_status=$?
1922 cd "$ac_pwd" || { ac_status=$?; break; }
1923 done
1924 fi
1925
1926 test -n "$ac_init_help" && exit $ac_status
1927 if $ac_init_version; then
1928 cat <<\_ACEOF
1929 configure
1930 generated by GNU Autoconf 2.69
1931
1932 Copyright (C) 2012 Free Software Foundation, Inc.
1933 This configure script is free software; the Free Software Foundation
1934 gives unlimited permission to copy, distribute and modify it.
1935 _ACEOF
1936 exit
1937 fi
1938
1939 ## ------------------------ ##
1940 ## Autoconf initialization. ##
1941 ## ------------------------ ##
1942
1943 # ac_fn_c_try_compile LINENO
1944 # --------------------------
1945 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1946 ac_fn_c_try_compile ()
1947 {
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 rm -f conftest.$ac_objext
1950 if { { ac_try="$ac_compile"
1951 case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_compile") 2>conftest.err
1958 ac_status=$?
1959 if test -s conftest.err; then
1960 grep -v '^ *+' conftest.err >conftest.er1
1961 cat conftest.er1 >&5
1962 mv -f conftest.er1 conftest.err
1963 fi
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } && {
1966 test -z "$ac_c_werror_flag" ||
1967 test ! -s conftest.err
1968 } && test -s conftest.$ac_objext; then :
1969 ac_retval=0
1970 else
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1973
1974 ac_retval=1
1975 fi
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
1978
1979 } # ac_fn_c_try_compile
1980
1981 # ac_fn_cxx_try_compile LINENO
1982 # ----------------------------
1983 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1984 ac_fn_cxx_try_compile ()
1985 {
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 rm -f conftest.$ac_objext
1988 if { { ac_try="$ac_compile"
1989 case "(($ac_try" in
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1992 esac
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_compile") 2>conftest.err
1996 ac_status=$?
1997 if test -s conftest.err; then
1998 grep -v '^ *+' conftest.err >conftest.er1
1999 cat conftest.er1 >&5
2000 mv -f conftest.er1 conftest.err
2001 fi
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; } && {
2004 test -z "$ac_cxx_werror_flag" ||
2005 test ! -s conftest.err
2006 } && test -s conftest.$ac_objext; then :
2007 ac_retval=0
2008 else
2009 $as_echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2011
2012 ac_retval=1
2013 fi
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 as_fn_set_status $ac_retval
2016
2017 } # ac_fn_cxx_try_compile
2018
2019 # ac_fn_cxx_try_cpp LINENO
2020 # ------------------------
2021 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2022 ac_fn_cxx_try_cpp ()
2023 {
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 if { { ac_try="$ac_cpp conftest.$ac_ext"
2026 case "(($ac_try" in
2027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028 *) ac_try_echo=$ac_try;;
2029 esac
2030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031 $as_echo "$ac_try_echo"; } >&5
2032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2033 ac_status=$?
2034 if test -s conftest.err; then
2035 grep -v '^ *+' conftest.err >conftest.er1
2036 cat conftest.er1 >&5
2037 mv -f conftest.er1 conftest.err
2038 fi
2039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2040 test $ac_status = 0; } > conftest.i && {
2041 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2042 test ! -s conftest.err
2043 }; then :
2044 ac_retval=0
2045 else
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2048
2049 ac_retval=1
2050 fi
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 as_fn_set_status $ac_retval
2053
2054 } # ac_fn_cxx_try_cpp
2055
2056 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2057 # ---------------------------------------------------------
2058 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2059 # the include files in INCLUDES and setting the cache variable VAR
2060 # accordingly.
2061 ac_fn_cxx_check_header_mongrel ()
2062 {
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 if eval \${$3+:} false; then :
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066 $as_echo_n "checking for $2... " >&6; }
2067 if eval \${$3+:} false; then :
2068 $as_echo_n "(cached) " >&6
2069 fi
2070 eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 else
2074 # Is the header compilable?
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2076 $as_echo_n "checking $2 usability... " >&6; }
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2079 $4
2080 #include <$2>
2081 _ACEOF
2082 if ac_fn_cxx_try_compile "$LINENO"; then :
2083 ac_header_compiler=yes
2084 else
2085 ac_header_compiler=no
2086 fi
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2089 $as_echo "$ac_header_compiler" >&6; }
2090
2091 # Is the header present?
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2093 $as_echo_n "checking $2 presence... " >&6; }
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2096 #include <$2>
2097 _ACEOF
2098 if ac_fn_cxx_try_cpp "$LINENO"; then :
2099 ac_header_preproc=yes
2100 else
2101 ac_header_preproc=no
2102 fi
2103 rm -f conftest.err conftest.i conftest.$ac_ext
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2105 $as_echo "$ac_header_preproc" >&6; }
2106
2107 # So? What about this header?
2108 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2109 yes:no: )
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2111 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2113 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2114 ;;
2115 no:yes:* )
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2117 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2119 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2121 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2123 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2125 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2126 ;;
2127 esac
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if eval \${$3+:} false; then :
2131 $as_echo_n "(cached) " >&6
2132 else
2133 eval "$3=\$ac_header_compiler"
2134 fi
2135 eval ac_res=\$$3
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138 fi
2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140
2141 } # ac_fn_cxx_check_header_mongrel
2142
2143 # ac_fn_cxx_try_run LINENO
2144 # ------------------------
2145 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2146 # that executables *can* be run.
2147 ac_fn_cxx_try_run ()
2148 {
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 if { { ac_try="$ac_link"
2151 case "(($ac_try" in
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2154 esac
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157 (eval "$ac_link") 2>&5
2158 ac_status=$?
2159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2160 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2161 { { case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164 esac
2165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166 $as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_try") 2>&5
2168 ac_status=$?
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; }; }; then :
2171 ac_retval=0
2172 else
2173 $as_echo "$as_me: program exited with status $ac_status" >&5
2174 $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2176
2177 ac_retval=$ac_status
2178 fi
2179 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181 as_fn_set_status $ac_retval
2182
2183 } # ac_fn_cxx_try_run
2184
2185 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2186 # ---------------------------------------------------------
2187 # Tests whether HEADER exists and can be compiled using the include files in
2188 # INCLUDES, setting the cache variable VAR accordingly.
2189 ac_fn_cxx_check_header_compile ()
2190 {
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2193 $as_echo_n "checking for $2... " >&6; }
2194 if eval \${$3+:} false; then :
2195 $as_echo_n "(cached) " >&6
2196 else
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2199 $4
2200 #include <$2>
2201 _ACEOF
2202 if ac_fn_cxx_try_compile "$LINENO"; then :
2203 eval "$3=yes"
2204 else
2205 eval "$3=no"
2206 fi
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 fi
2209 eval ac_res=\$$3
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211 $as_echo "$ac_res" >&6; }
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213
2214 } # ac_fn_cxx_check_header_compile
2215
2216 # ac_fn_c_try_cpp LINENO
2217 # ----------------------
2218 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2219 ac_fn_c_try_cpp ()
2220 {
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 if { { ac_try="$ac_cpp conftest.$ac_ext"
2223 case "(($ac_try" in
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2226 esac
2227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2228 $as_echo "$ac_try_echo"; } >&5
2229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2230 ac_status=$?
2231 if test -s conftest.err; then
2232 grep -v '^ *+' conftest.err >conftest.er1
2233 cat conftest.er1 >&5
2234 mv -f conftest.er1 conftest.err
2235 fi
2236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2237 test $ac_status = 0; } > conftest.i && {
2238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2239 test ! -s conftest.err
2240 }; then :
2241 ac_retval=0
2242 else
2243 $as_echo "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.$ac_ext >&5
2245
2246 ac_retval=1
2247 fi
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249 as_fn_set_status $ac_retval
2250
2251 } # ac_fn_c_try_cpp
2252
2253 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2254 # ----------------------------------------------
2255 # Tries to find the compile-time value of EXPR in a program that includes
2256 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2257 # computed
2258 ac_fn_cxx_compute_int ()
2259 {
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 if test "$cross_compiling" = yes; then
2262 # Depending upon the size, compute the lo and hi bounds.
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2265 $4
2266 int
2267 main ()
2268 {
2269 static int test_array [1 - 2 * !(($2) >= 0)];
2270 test_array [0] = 0;
2271 return test_array [0];
2272
2273 ;
2274 return 0;
2275 }
2276 _ACEOF
2277 if ac_fn_cxx_try_compile "$LINENO"; then :
2278 ac_lo=0 ac_mid=0
2279 while :; do
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2282 $4
2283 int
2284 main ()
2285 {
2286 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2287 test_array [0] = 0;
2288 return test_array [0];
2289
2290 ;
2291 return 0;
2292 }
2293 _ACEOF
2294 if ac_fn_cxx_try_compile "$LINENO"; then :
2295 ac_hi=$ac_mid; break
2296 else
2297 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2298 if test $ac_lo -le $ac_mid; then
2299 ac_lo= ac_hi=
2300 break
2301 fi
2302 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2303 fi
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 done
2306 else
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $4
2310 int
2311 main ()
2312 {
2313 static int test_array [1 - 2 * !(($2) < 0)];
2314 test_array [0] = 0;
2315 return test_array [0];
2316
2317 ;
2318 return 0;
2319 }
2320 _ACEOF
2321 if ac_fn_cxx_try_compile "$LINENO"; then :
2322 ac_hi=-1 ac_mid=-1
2323 while :; do
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2326 $4
2327 int
2328 main ()
2329 {
2330 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2331 test_array [0] = 0;
2332 return test_array [0];
2333
2334 ;
2335 return 0;
2336 }
2337 _ACEOF
2338 if ac_fn_cxx_try_compile "$LINENO"; then :
2339 ac_lo=$ac_mid; break
2340 else
2341 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2342 if test $ac_mid -le $ac_hi; then
2343 ac_lo= ac_hi=
2344 break
2345 fi
2346 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2347 fi
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 done
2350 else
2351 ac_lo= ac_hi=
2352 fi
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 fi
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 # Binary search between lo and hi bounds.
2357 while test "x$ac_lo" != "x$ac_hi"; do
2358 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2361 $4
2362 int
2363 main ()
2364 {
2365 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2366 test_array [0] = 0;
2367 return test_array [0];
2368
2369 ;
2370 return 0;
2371 }
2372 _ACEOF
2373 if ac_fn_cxx_try_compile "$LINENO"; then :
2374 ac_hi=$ac_mid
2375 else
2376 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2377 fi
2378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379 done
2380 case $ac_lo in #((
2381 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2382 '') ac_retval=1 ;;
2383 esac
2384 else
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2387 $4
2388 static long int longval () { return $2; }
2389 static unsigned long int ulongval () { return $2; }
2390 #include <stdio.h>
2391 #include <stdlib.h>
2392 int
2393 main ()
2394 {
2395
2396 FILE *f = fopen ("conftest.val", "w");
2397 if (! f)
2398 return 1;
2399 if (($2) < 0)
2400 {
2401 long int i = longval ();
2402 if (i != ($2))
2403 return 1;
2404 fprintf (f, "%ld", i);
2405 }
2406 else
2407 {
2408 unsigned long int i = ulongval ();
2409 if (i != ($2))
2410 return 1;
2411 fprintf (f, "%lu", i);
2412 }
2413 /* Do not output a trailing newline, as this causes \r\n confusion
2414 on some platforms. */
2415 return ferror (f) || fclose (f) != 0;
2416
2417 ;
2418 return 0;
2419 }
2420 _ACEOF
2421 if ac_fn_cxx_try_run "$LINENO"; then :
2422 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2423 else
2424 ac_retval=1
2425 fi
2426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2427 conftest.$ac_objext conftest.beam conftest.$ac_ext
2428 rm -f conftest.val
2429
2430 fi
2431 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2432 as_fn_set_status $ac_retval
2433
2434 } # ac_fn_cxx_compute_int
2435
2436 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2437 # ---------------------------------------------
2438 # Tests whether TYPE exists after having included INCLUDES, setting cache
2439 # variable VAR accordingly.
2440 ac_fn_cxx_check_type ()
2441 {
2442 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2444 $as_echo_n "checking for $2... " >&6; }
2445 if eval \${$3+:} false; then :
2446 $as_echo_n "(cached) " >&6
2447 else
2448 eval "$3=no"
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h. */
2451 $4
2452 int
2453 main ()
2454 {
2455 if (sizeof ($2))
2456 return 0;
2457 ;
2458 return 0;
2459 }
2460 _ACEOF
2461 if ac_fn_cxx_try_compile "$LINENO"; then :
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h. */
2464 $4
2465 int
2466 main ()
2467 {
2468 if (sizeof (($2)))
2469 return 0;
2470 ;
2471 return 0;
2472 }
2473 _ACEOF
2474 if ac_fn_cxx_try_compile "$LINENO"; then :
2475
2476 else
2477 eval "$3=yes"
2478 fi
2479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480 fi
2481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482 fi
2483 eval ac_res=\$$3
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2485 $as_echo "$ac_res" >&6; }
2486 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2487
2488 } # ac_fn_cxx_check_type
2489
2490 # ac_fn_c_find_intX_t LINENO BITS VAR
2491 # -----------------------------------
2492 # Finds a signed integer type with width BITS, setting cache variable VAR
2493 # accordingly.
2494 ac_fn_c_find_intX_t ()
2495 {
2496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2498 $as_echo_n "checking for int$2_t... " >&6; }
2499 if eval \${$3+:} false; then :
2500 $as_echo_n "(cached) " >&6
2501 else
2502 eval "$3=no"
2503 # Order is important - never check a type that is potentially smaller
2504 # than half of the expected target width.
2505 for ac_type in int$2_t 'int' 'long int' \
2506 'long long int' 'short int' 'signed char'; do
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2509 $ac_includes_default
2510 enum { N = $2 / 2 - 1 };
2511 int
2512 main ()
2513 {
2514 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2515 test_array [0] = 0;
2516 return test_array [0];
2517
2518 ;
2519 return 0;
2520 }
2521 _ACEOF
2522 if ac_fn_cxx_try_compile "$LINENO"; then :
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2525 $ac_includes_default
2526 enum { N = $2 / 2 - 1 };
2527 int
2528 main ()
2529 {
2530 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2531 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2532 test_array [0] = 0;
2533 return test_array [0];
2534
2535 ;
2536 return 0;
2537 }
2538 _ACEOF
2539 if ac_fn_cxx_try_compile "$LINENO"; then :
2540
2541 else
2542 case $ac_type in #(
2543 int$2_t) :
2544 eval "$3=yes" ;; #(
2545 *) :
2546 eval "$3=\$ac_type" ;;
2547 esac
2548 fi
2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550 fi
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552 if eval test \"x\$"$3"\" = x"no"; then :
2553
2554 else
2555 break
2556 fi
2557 done
2558 fi
2559 eval ac_res=\$$3
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2561 $as_echo "$ac_res" >&6; }
2562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2563
2564 } # ac_fn_c_find_intX_t
2565
2566 # ac_fn_cxx_try_link LINENO
2567 # -------------------------
2568 # Try to link conftest.$ac_ext, and return whether this succeeded.
2569 ac_fn_cxx_try_link ()
2570 {
2571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572 rm -f conftest.$ac_objext conftest$ac_exeext
2573 if { { ac_try="$ac_link"
2574 case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577 esac
2578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2579 $as_echo "$ac_try_echo"; } >&5
2580 (eval "$ac_link") 2>conftest.err
2581 ac_status=$?
2582 if test -s conftest.err; then
2583 grep -v '^ *+' conftest.err >conftest.er1
2584 cat conftest.er1 >&5
2585 mv -f conftest.er1 conftest.err
2586 fi
2587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2588 test $ac_status = 0; } && {
2589 test -z "$ac_cxx_werror_flag" ||
2590 test ! -s conftest.err
2591 } && test -s conftest$ac_exeext && {
2592 test "$cross_compiling" = yes ||
2593 test -x conftest$ac_exeext
2594 }; then :
2595 ac_retval=0
2596 else
2597 $as_echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2599
2600 ac_retval=1
2601 fi
2602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2604 # interfere with the next link command; also delete a directory that is
2605 # left behind by Apple's compiler. We do this before executing the actions.
2606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2608 as_fn_set_status $ac_retval
2609
2610 } # ac_fn_cxx_try_link
2611
2612 # ac_fn_c_find_uintX_t LINENO BITS VAR
2613 # ------------------------------------
2614 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2615 # accordingly.
2616 ac_fn_c_find_uintX_t ()
2617 {
2618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2620 $as_echo_n "checking for uint$2_t... " >&6; }
2621 if eval \${$3+:} false; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 eval "$3=no"
2625 # Order is important - never check a type that is potentially smaller
2626 # than half of the expected target width.
2627 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2628 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h. */
2631 $ac_includes_default
2632 int
2633 main ()
2634 {
2635 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2636 test_array [0] = 0;
2637 return test_array [0];
2638
2639 ;
2640 return 0;
2641 }
2642 _ACEOF
2643 if ac_fn_cxx_try_compile "$LINENO"; then :
2644 case $ac_type in #(
2645 uint$2_t) :
2646 eval "$3=yes" ;; #(
2647 *) :
2648 eval "$3=\$ac_type" ;;
2649 esac
2650 fi
2651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2652 if eval test \"x\$"$3"\" = x"no"; then :
2653
2654 else
2655 break
2656 fi
2657 done
2658 fi
2659 eval ac_res=\$$3
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2661 $as_echo "$ac_res" >&6; }
2662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2663
2664 } # ac_fn_c_find_uintX_t
2665
2666 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2667 # ------------------------------------------------
2668 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2669 ac_fn_cxx_check_header_preproc ()
2670 {
2671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2673 $as_echo_n "checking for $2... " >&6; }
2674 if eval \${$3+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h. */
2679 #include <$2>
2680 _ACEOF
2681 if ac_fn_cxx_try_cpp "$LINENO"; then :
2682 eval "$3=yes"
2683 else
2684 eval "$3=no"
2685 fi
2686 rm -f conftest.err conftest.i conftest.$ac_ext
2687 fi
2688 eval ac_res=\$$3
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2690 $as_echo "$ac_res" >&6; }
2691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2692
2693 } # ac_fn_cxx_check_header_preproc
2694
2695 # ac_fn_cxx_check_func LINENO FUNC VAR
2696 # ------------------------------------
2697 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2698 ac_fn_cxx_check_func ()
2699 {
2700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2702 $as_echo_n "checking for $2... " >&6; }
2703 if eval \${$3+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h. */
2708 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2710 #define $2 innocuous_$2
2711
2712 /* System header to define __stub macros and hopefully few prototypes,
2713 which can conflict with char $2 (); below.
2714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2715 <limits.h> exists even on freestanding compilers. */
2716
2717 #ifdef __STDC__
2718 # include <limits.h>
2719 #else
2720 # include <assert.h>
2721 #endif
2722
2723 #undef $2
2724
2725 /* Override any GCC internal prototype to avoid an error.
2726 Use char because int might match the return type of a GCC
2727 builtin and then its argument prototype would still apply. */
2728 #ifdef __cplusplus
2729 extern "C"
2730 #endif
2731 char $2 ();
2732 /* The GNU C library defines this for functions which it implements
2733 to always fail with ENOSYS. Some functions are actually named
2734 something starting with __ and the normal name is an alias. */
2735 #if defined __stub_$2 || defined __stub___$2
2736 choke me
2737 #endif
2738
2739 int
2740 main ()
2741 {
2742 return $2 ();
2743 ;
2744 return 0;
2745 }
2746 _ACEOF
2747 if ac_fn_cxx_try_link "$LINENO"; then :
2748 eval "$3=yes"
2749 else
2750 eval "$3=no"
2751 fi
2752 rm -f core conftest.err conftest.$ac_objext \
2753 conftest$ac_exeext conftest.$ac_ext
2754 fi
2755 eval ac_res=\$$3
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2757 $as_echo "$ac_res" >&6; }
2758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2759
2760 } # ac_fn_cxx_check_func
2761
2762 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2763 # -----------------------------------------------
2764 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2765 # accordingly.
2766 ac_fn_cxx_check_decl ()
2767 {
2768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2769 as_decl_name=`echo $2|sed 's/ *(.*//'`
2770 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2772 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2773 if eval \${$3+:} false; then :
2774 $as_echo_n "(cached) " >&6
2775 else
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2778 $4
2779 int
2780 main ()
2781 {
2782 #ifndef $as_decl_name
2783 #ifdef __cplusplus
2784 (void) $as_decl_use;
2785 #else
2786 (void) $as_decl_name;
2787 #endif
2788 #endif
2789
2790 ;
2791 return 0;
2792 }
2793 _ACEOF
2794 if ac_fn_cxx_try_compile "$LINENO"; then :
2795 eval "$3=yes"
2796 else
2797 eval "$3=no"
2798 fi
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800 fi
2801 eval ac_res=\$$3
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2803 $as_echo "$ac_res" >&6; }
2804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2805
2806 } # ac_fn_cxx_check_decl
2807
2808 # ac_fn_c_try_link LINENO
2809 # -----------------------
2810 # Try to link conftest.$ac_ext, and return whether this succeeded.
2811 ac_fn_c_try_link ()
2812 {
2813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2814 rm -f conftest.$ac_objext conftest$ac_exeext
2815 if { { ac_try="$ac_link"
2816 case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2819 esac
2820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2821 $as_echo "$ac_try_echo"; } >&5
2822 (eval "$ac_link") 2>conftest.err
2823 ac_status=$?
2824 if test -s conftest.err; then
2825 grep -v '^ *+' conftest.err >conftest.er1
2826 cat conftest.er1 >&5
2827 mv -f conftest.er1 conftest.err
2828 fi
2829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2830 test $ac_status = 0; } && {
2831 test -z "$ac_c_werror_flag" ||
2832 test ! -s conftest.err
2833 } && test -s conftest$ac_exeext && {
2834 test "$cross_compiling" = yes ||
2835 test -x conftest$ac_exeext
2836 }; then :
2837 ac_retval=0
2838 else
2839 $as_echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2841
2842 ac_retval=1
2843 fi
2844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2846 # interfere with the next link command; also delete a directory that is
2847 # left behind by Apple's compiler. We do this before executing the actions.
2848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2850 as_fn_set_status $ac_retval
2851
2852 } # ac_fn_c_try_link
2853
2854 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2855 # ----------------------------------------------
2856 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2857 ac_fn_c_check_header_preproc ()
2858 {
2859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2861 $as_echo_n "checking for $2... " >&6; }
2862 if eval \${$3+:} false; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2867 #include <$2>
2868 _ACEOF
2869 if ac_fn_c_try_cpp "$LINENO"; then :
2870 eval "$3=yes"
2871 else
2872 eval "$3=no"
2873 fi
2874 rm -f conftest.err conftest.i conftest.$ac_ext
2875 fi
2876 eval ac_res=\$$3
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2878 $as_echo "$ac_res" >&6; }
2879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2880
2881 } # ac_fn_c_check_header_preproc
2882
2883 # ac_fn_c_check_func LINENO FUNC VAR
2884 # ----------------------------------
2885 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2886 ac_fn_c_check_func ()
2887 {
2888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2890 $as_echo_n "checking for $2... " >&6; }
2891 if eval \${$3+:} false; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895 /* end confdefs.h. */
2896 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2898 #define $2 innocuous_$2
2899
2900 /* System header to define __stub macros and hopefully few prototypes,
2901 which can conflict with char $2 (); below.
2902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2903 <limits.h> exists even on freestanding compilers. */
2904
2905 #ifdef __STDC__
2906 # include <limits.h>
2907 #else
2908 # include <assert.h>
2909 #endif
2910
2911 #undef $2
2912
2913 /* Override any GCC internal prototype to avoid an error.
2914 Use char because int might match the return type of a GCC
2915 builtin and then its argument prototype would still apply. */
2916 #ifdef __cplusplus
2917 extern "C"
2918 #endif
2919 char $2 ();
2920 /* The GNU C library defines this for functions which it implements
2921 to always fail with ENOSYS. Some functions are actually named
2922 something starting with __ and the normal name is an alias. */
2923 #if defined __stub_$2 || defined __stub___$2
2924 choke me
2925 #endif
2926
2927 int
2928 main ()
2929 {
2930 return $2 ();
2931 ;
2932 return 0;
2933 }
2934 _ACEOF
2935 if ac_fn_c_try_link "$LINENO"; then :
2936 eval "$3=yes"
2937 else
2938 eval "$3=no"
2939 fi
2940 rm -f core conftest.err conftest.$ac_objext \
2941 conftest$ac_exeext conftest.$ac_ext
2942 fi
2943 eval ac_res=\$$3
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2945 $as_echo "$ac_res" >&6; }
2946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2947
2948 } # ac_fn_c_check_func
2949 cat >config.log <<_ACEOF
2950 This file contains any messages produced by compilers while
2951 running configure, to aid debugging if configure makes a mistake.
2952
2953 It was created by $as_me, which was
2954 generated by GNU Autoconf 2.69. Invocation command line was
2955
2956 $ $0 $@
2957
2958 _ACEOF
2959 exec 5>>config.log
2960 {
2961 cat <<_ASUNAME
2962 ## --------- ##
2963 ## Platform. ##
2964 ## --------- ##
2965
2966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2971
2972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2973 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2974
2975 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2976 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2978 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2979 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2980 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2981 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2982
2983 _ASUNAME
2984
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 $as_echo "PATH: $as_dir"
2991 done
2992 IFS=$as_save_IFS
2993
2994 } >&5
2995
2996 cat >&5 <<_ACEOF
2997
2998
2999 ## ----------- ##
3000 ## Core tests. ##
3001 ## ----------- ##
3002
3003 _ACEOF
3004
3005
3006 # Keep a trace of the command line.
3007 # Strip out --no-create and --no-recursion so they do not pile up.
3008 # Strip out --silent because we don't want to record it for future runs.
3009 # Also quote any args containing shell meta-characters.
3010 # Make two passes to allow for proper duplicate-argument suppression.
3011 ac_configure_args=
3012 ac_configure_args0=
3013 ac_configure_args1=
3014 ac_must_keep_next=false
3015 for ac_pass in 1 2
3016 do
3017 for ac_arg
3018 do
3019 case $ac_arg in
3020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3022 | -silent | --silent | --silen | --sile | --sil)
3023 continue ;;
3024 *\'*)
3025 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3026 esac
3027 case $ac_pass in
3028 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3029 2)
3030 as_fn_append ac_configure_args1 " '$ac_arg'"
3031 if test $ac_must_keep_next = true; then
3032 ac_must_keep_next=false # Got value, back to normal.
3033 else
3034 case $ac_arg in
3035 *=* | --config-cache | -C | -disable-* | --disable-* \
3036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3038 | -with-* | --with-* | -without-* | --without-* | --x)
3039 case "$ac_configure_args0 " in
3040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3041 esac
3042 ;;
3043 -* ) ac_must_keep_next=true ;;
3044 esac
3045 fi
3046 as_fn_append ac_configure_args " '$ac_arg'"
3047 ;;
3048 esac
3049 done
3050 done
3051 { ac_configure_args0=; unset ac_configure_args0;}
3052 { ac_configure_args1=; unset ac_configure_args1;}
3053
3054 # When interrupted or exit'd, cleanup temporary files, and complete
3055 # config.log. We remove comments because anyway the quotes in there
3056 # would cause problems or look ugly.
3057 # WARNING: Use '\'' to represent an apostrophe within the trap.
3058 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3059 trap 'exit_status=$?
3060 # Save into config.log some information that might help in debugging.
3061 {
3062 echo
3063
3064 $as_echo "## ---------------- ##
3065 ## Cache variables. ##
3066 ## ---------------- ##"
3067 echo
3068 # The following way of writing the cache mishandles newlines in values,
3069 (
3070 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3071 eval ac_val=\$$ac_var
3072 case $ac_val in #(
3073 *${as_nl}*)
3074 case $ac_var in #(
3075 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3076 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3077 esac
3078 case $ac_var in #(
3079 _ | IFS | as_nl) ;; #(
3080 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3081 *) { eval $ac_var=; unset $ac_var;} ;;
3082 esac ;;
3083 esac
3084 done
3085 (set) 2>&1 |
3086 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3087 *${as_nl}ac_space=\ *)
3088 sed -n \
3089 "s/'\''/'\''\\\\'\'''\''/g;
3090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3091 ;; #(
3092 *)
3093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3094 ;;
3095 esac |
3096 sort
3097 )
3098 echo
3099
3100 $as_echo "## ----------------- ##
3101 ## Output variables. ##
3102 ## ----------------- ##"
3103 echo
3104 for ac_var in $ac_subst_vars
3105 do
3106 eval ac_val=\$$ac_var
3107 case $ac_val in
3108 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3109 esac
3110 $as_echo "$ac_var='\''$ac_val'\''"
3111 done | sort
3112 echo
3113
3114 if test -n "$ac_subst_files"; then
3115 $as_echo "## ------------------- ##
3116 ## File substitutions. ##
3117 ## ------------------- ##"
3118 echo
3119 for ac_var in $ac_subst_files
3120 do
3121 eval ac_val=\$$ac_var
3122 case $ac_val in
3123 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3124 esac
3125 $as_echo "$ac_var='\''$ac_val'\''"
3126 done | sort
3127 echo
3128 fi
3129
3130 if test -s confdefs.h; then
3131 $as_echo "## ----------- ##
3132 ## confdefs.h. ##
3133 ## ----------- ##"
3134 echo
3135 cat confdefs.h
3136 echo
3137 fi
3138 test "$ac_signal" != 0 &&
3139 $as_echo "$as_me: caught signal $ac_signal"
3140 $as_echo "$as_me: exit $exit_status"
3141 } >&5
3142 rm -f core *.core core.conftest.* &&
3143 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3144 exit $exit_status
3145 ' 0
3146 for ac_signal in 1 2 13 15; do
3147 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3148 done
3149 ac_signal=0
3150
3151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3152 rm -f -r conftest* confdefs.h
3153
3154 $as_echo "/* confdefs.h */" > confdefs.h
3155
3156 # Predefined preprocessor variables.
3157
3158 cat >>confdefs.h <<_ACEOF
3159 #define PACKAGE_NAME "$PACKAGE_NAME"
3160 _ACEOF
3161
3162 cat >>confdefs.h <<_ACEOF
3163 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3164 _ACEOF
3165
3166 cat >>confdefs.h <<_ACEOF
3167 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3168 _ACEOF
3169
3170 cat >>confdefs.h <<_ACEOF
3171 #define PACKAGE_STRING "$PACKAGE_STRING"
3172 _ACEOF
3173
3174 cat >>confdefs.h <<_ACEOF
3175 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3176 _ACEOF
3177
3178 cat >>confdefs.h <<_ACEOF
3179 #define PACKAGE_URL "$PACKAGE_URL"
3180 _ACEOF
3181
3182
3183 # Let the site file select an alternate cache file if it wants to.
3184 # Prefer an explicitly selected file to automatically selected ones.
3185 ac_site_file1=NONE
3186 ac_site_file2=NONE
3187 if test -n "$CONFIG_SITE"; then
3188 # We do not want a PATH search for config.site.
3189 case $CONFIG_SITE in #((
3190 -*) ac_site_file1=./$CONFIG_SITE;;
3191 */*) ac_site_file1=$CONFIG_SITE;;
3192 *) ac_site_file1=./$CONFIG_SITE;;
3193 esac
3194 elif test "x$prefix" != xNONE; then
3195 ac_site_file1=$prefix/share/config.site
3196 ac_site_file2=$prefix/etc/config.site
3197 else
3198 ac_site_file1=$ac_default_prefix/share/config.site
3199 ac_site_file2=$ac_default_prefix/etc/config.site
3200 fi
3201 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3202 do
3203 test "x$ac_site_file" = xNONE && continue
3204 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3206 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3207 sed 's/^/| /' "$ac_site_file" >&5
3208 . "$ac_site_file" \
3209 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211 as_fn_error $? "failed to load site script $ac_site_file
3212 See \`config.log' for more details" "$LINENO" 5; }
3213 fi
3214 done
3215
3216 if test -r "$cache_file"; then
3217 # Some versions of bash will fail to source /dev/null (special files
3218 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3219 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3221 $as_echo "$as_me: loading cache $cache_file" >&6;}
3222 case $cache_file in
3223 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3224 *) . "./$cache_file";;
3225 esac
3226 fi
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3229 $as_echo "$as_me: creating cache $cache_file" >&6;}
3230 >$cache_file
3231 fi
3232
3233 # Check that the precious variables saved in the cache have kept the same
3234 # value.
3235 ac_cache_corrupted=false
3236 for ac_var in $ac_precious_vars; do
3237 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3238 eval ac_new_set=\$ac_env_${ac_var}_set
3239 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3240 eval ac_new_val=\$ac_env_${ac_var}_value
3241 case $ac_old_set,$ac_new_set in
3242 set,)
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3244 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3245 ac_cache_corrupted=: ;;
3246 ,set)
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3248 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3249 ac_cache_corrupted=: ;;
3250 ,);;
3251 *)
3252 if test "x$ac_old_val" != "x$ac_new_val"; then
3253 # differences in whitespace do not lead to failure.
3254 ac_old_val_w=`echo x $ac_old_val`
3255 ac_new_val_w=`echo x $ac_new_val`
3256 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3258 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3259 ac_cache_corrupted=:
3260 else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3262 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3263 eval $ac_var=\$ac_old_val
3264 fi
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3266 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3268 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3269 fi;;
3270 esac
3271 # Pass precious variables to config.status.
3272 if test "$ac_new_set" = set; then
3273 case $ac_new_val in
3274 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3275 *) ac_arg=$ac_var=$ac_new_val ;;
3276 esac
3277 case " $ac_configure_args " in
3278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3279 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3280 esac
3281 fi
3282 done
3283 if $ac_cache_corrupted; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3287 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3288 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3289 fi
3290 ## -------------------- ##
3291 ## Main body of script. ##
3292 ## -------------------- ##
3293
3294 ac_ext=c
3295 ac_cpp='$CPP $CPPFLAGS'
3296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3299
3300
3301
3302
3303
3304
3305 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3306
3307
3308 gcc_version=`cat $srcdir/BASE-VER`
3309
3310 # Determine the host, build, and target systems
3311 ac_aux_dir=
3312 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3313 if test -f "$ac_dir/install-sh"; then
3314 ac_aux_dir=$ac_dir
3315 ac_install_sh="$ac_aux_dir/install-sh -c"
3316 break
3317 elif test -f "$ac_dir/install.sh"; then
3318 ac_aux_dir=$ac_dir
3319 ac_install_sh="$ac_aux_dir/install.sh -c"
3320 break
3321 elif test -f "$ac_dir/shtool"; then
3322 ac_aux_dir=$ac_dir
3323 ac_install_sh="$ac_aux_dir/shtool install -c"
3324 break
3325 fi
3326 done
3327 if test -z "$ac_aux_dir"; then
3328 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3329 fi
3330
3331 # These three variables are undocumented and unsupported,
3332 # and are intended to be withdrawn in a future Autoconf release.
3333 # They can cause serious problems if a builder's source tree is in a directory
3334 # whose full name contains unusual characters.
3335 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3336 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3337 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3338
3339
3340 # Make sure we can run config.sub.
3341 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3342 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3343
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3345 $as_echo_n "checking build system type... " >&6; }
3346 if ${ac_cv_build+:} false; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 ac_build_alias=$build_alias
3350 test "x$ac_build_alias" = x &&
3351 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3352 test "x$ac_build_alias" = x &&
3353 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3354 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3355 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3356
3357 fi
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3359 $as_echo "$ac_cv_build" >&6; }
3360 case $ac_cv_build in
3361 *-*-*) ;;
3362 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3363 esac
3364 build=$ac_cv_build
3365 ac_save_IFS=$IFS; IFS='-'
3366 set x $ac_cv_build
3367 shift
3368 build_cpu=$1
3369 build_vendor=$2
3370 shift; shift
3371 # Remember, the first character of IFS is used to create $*,
3372 # except with old shells:
3373 build_os=$*
3374 IFS=$ac_save_IFS
3375 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3376
3377
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3379 $as_echo_n "checking host system type... " >&6; }
3380 if ${ac_cv_host+:} false; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 if test "x$host_alias" = x; then
3384 ac_cv_host=$ac_cv_build
3385 else
3386 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3388 fi
3389
3390 fi
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3392 $as_echo "$ac_cv_host" >&6; }
3393 case $ac_cv_host in
3394 *-*-*) ;;
3395 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3396 esac
3397 host=$ac_cv_host
3398 ac_save_IFS=$IFS; IFS='-'
3399 set x $ac_cv_host
3400 shift
3401 host_cpu=$1
3402 host_vendor=$2
3403 shift; shift
3404 # Remember, the first character of IFS is used to create $*,
3405 # except with old shells:
3406 host_os=$*
3407 IFS=$ac_save_IFS
3408 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3409
3410
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3412 $as_echo_n "checking target system type... " >&6; }
3413 if ${ac_cv_target+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 if test "x$target_alias" = x; then
3417 ac_cv_target=$ac_cv_host
3418 else
3419 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3420 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3421 fi
3422
3423 fi
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3425 $as_echo "$ac_cv_target" >&6; }
3426 case $ac_cv_target in
3427 *-*-*) ;;
3428 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3429 esac
3430 target=$ac_cv_target
3431 ac_save_IFS=$IFS; IFS='-'
3432 set x $ac_cv_target
3433 shift
3434 target_cpu=$1
3435 target_vendor=$2
3436 shift; shift
3437 # Remember, the first character of IFS is used to create $*,
3438 # except with old shells:
3439 target_os=$*
3440 IFS=$ac_save_IFS
3441 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3442
3443
3444 # The aliases save the names the user supplied, while $host etc.
3445 # will get canonicalized.
3446 test -n "$target_alias" &&
3447 test "$program_prefix$program_suffix$program_transform_name" = \
3448 NONENONEs,x,x, &&
3449 program_prefix=${target_alias}-
3450
3451 # Determine the noncanonical host name, for Ada.
3452 case ${build_alias} in
3453 "") build_noncanonical=${build} ;;
3454 *) build_noncanonical=${build_alias} ;;
3455 esac
3456
3457 case ${host_alias} in
3458 "") host_noncanonical=${build_noncanonical} ;;
3459 *) host_noncanonical=${host_alias} ;;
3460 esac
3461
3462
3463
3464
3465 # Determine the noncanonical target name, for directory use.
3466 case ${target_alias} in
3467 "") target_noncanonical=${host_noncanonical} ;;
3468 *) target_noncanonical=${target_alias} ;;
3469 esac
3470
3471
3472
3473
3474 # Used for constructing correct paths for offload compilers.
3475 real_target_noncanonical=${target_noncanonical}
3476 accel_dir_suffix=
3477
3478 # Determine the target- and build-specific subdirectories
3479
3480 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3481 # have matching libraries, they should use host libraries: Makefile.tpl
3482 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3483 # However, they still use the build modules, because the corresponding
3484 # host modules (e.g. bison) are only built for the host when bootstrap
3485 # finishes. So:
3486 # - build_subdir is where we find build modules, and never changes.
3487 # - build_libsubdir is where we find build libraries, and can be overridden.
3488
3489 # Prefix 'build-' so this never conflicts with target_subdir.
3490 build_subdir="build-${build_noncanonical}"
3491
3492 # Check whether --with-build-libsubdir was given.
3493 if test "${with_build_libsubdir+set}" = set; then :
3494 withval=$with_build_libsubdir; build_libsubdir="$withval"
3495 else
3496 build_libsubdir="$build_subdir"
3497 fi
3498
3499 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3500 if ( test $srcdir = . && test -d gcc ) \
3501 || test -d $srcdir/../host-${host_noncanonical}; then
3502 host_subdir="host-${host_noncanonical}"
3503 else
3504 host_subdir=.
3505 fi
3506 # No prefix.
3507 target_subdir=${target_noncanonical}
3508
3509
3510 # Set program_transform_name
3511 test "$program_prefix" != NONE &&
3512 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3513 # Use a double $ so make ignores it.
3514 test "$program_suffix" != NONE &&
3515 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3516 # Double any \ or $.
3517 # By default was `s,x,x', remove it if useless.
3518 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3519 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3520
3521
3522 # Check for bogus environment variables.
3523 # Test if LIBRARY_PATH contains the notation for the current directory
3524 # since this would lead to problems installing/building glibc.
3525 # LIBRARY_PATH contains the current directory if one of the following
3526 # is true:
3527 # - one of the terminals (":" and ";") is the first or last sign
3528 # - two terminals occur directly after each other
3529 # - the path contains an element with a dot in it
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3531 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3532 case ${LIBRARY_PATH} in
3533 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3534 library_path_setting="contains current directory"
3535 ;;
3536 *)
3537 library_path_setting="ok"
3538 ;;
3539 esac
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3541 $as_echo "$library_path_setting" >&6; }
3542 if test "$library_path_setting" != "ok"; then
3543 as_fn_error $? "
3544 *** LIBRARY_PATH shouldn't contain the current directory when
3545 *** building gcc. Please change the environment variable
3546 *** and run configure again." "$LINENO" 5
3547 fi
3548
3549 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3550 # since this would lead to problems installing/building glibc.
3551 # GCC_EXEC_PREFIX 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 GCC_EXEC_PREFIX variable" >&5
3557 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3558 case ${GCC_EXEC_PREFIX} in
3559 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3560 gcc_exec_prefix_setting="contains current directory"
3561 ;;
3562 *)
3563 gcc_exec_prefix_setting="ok"
3564 ;;
3565 esac
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3567 $as_echo "$gcc_exec_prefix_setting" >&6; }
3568 if test "$gcc_exec_prefix_setting" != "ok"; then
3569 as_fn_error $? "
3570 *** GCC_EXEC_PREFIX 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 # -----------
3576 # Directories
3577 # -----------
3578
3579 # Specify the local prefix
3580 local_prefix=
3581
3582 # Check whether --with-local-prefix was given.
3583 if test "${with_local_prefix+set}" = set; then :
3584 withval=$with_local_prefix; case "${withval}" in
3585 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3586 no) ;;
3587 *) local_prefix=$with_local_prefix ;;
3588 esac
3589 fi
3590
3591
3592 # Default local prefix if it is empty
3593 if test x$local_prefix = x; then
3594 local_prefix=/usr/local
3595 fi
3596
3597
3598 # Check whether --with-native-system-header-dir was given.
3599 if test "${with_native_system_header_dir+set}" = set; then :
3600 withval=$with_native_system_header_dir;
3601 case ${with_native_system_header_dir} in
3602 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3603 /* | [A-Za-z]:[\\/]*) ;;
3604 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3605 esac
3606 configured_native_system_header_dir="${withval}"
3607
3608 else
3609 configured_native_system_header_dir=
3610 fi
3611
3612
3613
3614 # Check whether --with-build-sysroot was given.
3615 if test "${with_build_sysroot+set}" = set; then :
3616 withval=$with_build_sysroot; if test x"$withval" != x ; then
3617 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3618 fi
3619 else
3620 SYSROOT_CFLAGS_FOR_TARGET=
3621 fi
3622
3623
3624
3625 if test "x$prefix" = xNONE; then
3626 test_prefix=/usr/local
3627 else
3628 test_prefix=$prefix
3629 fi
3630 if test "x$exec_prefix" = xNONE; then
3631 test_exec_prefix=$test_prefix
3632 else
3633 test_exec_prefix=$exec_prefix
3634 fi
3635
3636
3637 # Check whether --with-sysroot was given.
3638 if test "${with_sysroot+set}" = set; then :
3639 withval=$with_sysroot;
3640 case ${with_sysroot} in
3641 /) ;;
3642 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3643 esac
3644 case ${with_sysroot} in
3645 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3646 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3647 esac
3648
3649 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3650 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3651
3652 case ${TARGET_SYSTEM_ROOT} in
3653 "${test_prefix}"|"${test_prefix}/"*|\
3654 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3655 '${prefix}'|'${prefix}/'*|\
3656 '${exec_prefix}'|'${exec_prefix}/'*)
3657 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3658 TARGET_SYSTEM_ROOT_DEFINE="$t"
3659 ;;
3660 esac
3661
3662 else
3663
3664 TARGET_SYSTEM_ROOT=
3665 TARGET_SYSTEM_ROOT_DEFINE=
3666 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3667
3668 fi
3669
3670
3671
3672
3673
3674 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3675 # passed in by the toplevel make and thus we'd get different behavior
3676 # depending on where we built the sources.
3677 gcc_gxx_include_dir=
3678 # Specify the g++ header file directory
3679
3680 # Check whether --with-gxx-include-dir was given.
3681 if test "${with_gxx_include_dir+set}" = set; then :
3682 withval=$with_gxx_include_dir; case "${withval}" in
3683 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3684 no) ;;
3685 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3686 esac
3687 fi
3688
3689
3690 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3691 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3692 # relative to the sysroot.
3693 gcc_gxx_include_dir_add_sysroot=0
3694
3695 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3696 if test x${gcc_gxx_include_dir} = x; then
3697 if test x${enable_version_specific_runtime_libs} = xyes; then
3698 gcc_gxx_include_dir='${libsubdir}/include/c++'
3699 else
3700 libstdcxx_incdir='include/c++/$(version)'
3701 if test x$host != x$target; then
3702 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3703 fi
3704 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3705 fi
3706 elif test "${with_sysroot+set}" = set; then
3707 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3708 if test "${gcc_gxx_without_sysroot}"; then
3709 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3710 gcc_gxx_include_dir_add_sysroot=1
3711 fi
3712 fi
3713
3714
3715 # Check whether --with-cpp_install_dir was given.
3716 if test "${with_cpp_install_dir+set}" = set; then :
3717 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3718 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3719 elif test x$withval != xno; then
3720 cpp_install_dir=$withval
3721 fi
3722 fi
3723
3724
3725 # We would like to our source tree to be readonly. However when releases or
3726 # pre-releases are generated, the flex/bison generated files as well as the
3727 # various formats of manuals need to be included along with the rest of the
3728 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3729 # just that.
3730
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3732 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3733 # Check whether --enable-generated-files-in-srcdir was given.
3734 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3735 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3736 else
3737 generated_files_in_srcdir=no
3738 fi
3739
3740
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3742 $as_echo "$generated_files_in_srcdir" >&6; }
3743
3744 if test "$generated_files_in_srcdir" = "yes"; then
3745 GENINSRC=''
3746 else
3747 GENINSRC='#'
3748 fi
3749
3750
3751 # -------------------
3752 # Find default linker
3753 # -------------------
3754
3755 # With GNU ld
3756
3757 # Check whether --with-gnu-ld was given.
3758 if test "${with_gnu_ld+set}" = set; then :
3759 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3760 else
3761 gnu_ld_flag=no
3762 fi
3763
3764
3765 case $target in
3766 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3767 *) ld64_flag=no;;
3768 esac
3769
3770 # With pre-defined ld
3771
3772 # Check whether --with-ld was given.
3773 if test "${with_ld+set}" = set; then :
3774 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3775 fi
3776
3777 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3778 if test ! -x "$DEFAULT_LINKER"; then
3779 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3780 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3781 gnu_ld_flag=yes
3782 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3783 ld64_flag=yes
3784 fi
3785
3786 cat >>confdefs.h <<_ACEOF
3787 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3788 _ACEOF
3789
3790 fi
3791
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3793 $as_echo_n "checking whether a default linker was specified... " >&6; }
3794 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3795 if test x"$gnu_ld_flag" = x"no"; then
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3797 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3798 else
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3800 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3801 fi
3802 else
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 $as_echo "no" >&6; }
3805 fi
3806
3807 # With demangler in GNU ld
3808
3809 # Check whether --with-demangler-in-ld was given.
3810 if test "${with_demangler_in_ld+set}" = set; then :
3811 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3812 else
3813 demangler_in_ld=yes
3814 fi
3815
3816
3817 # ----------------------
3818 # Find default assembler
3819 # ----------------------
3820
3821 # With GNU as
3822
3823 # Check whether --with-gnu-as was given.
3824 if test "${with_gnu_as+set}" = set; then :
3825 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3826 else
3827 gas_flag=no
3828 fi
3829
3830
3831
3832 # Check whether --with-as was given.
3833 if test "${with_as+set}" = set; then :
3834 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3835 fi
3836
3837 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3838 if test ! -x "$DEFAULT_ASSEMBLER"; then
3839 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3840 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3841 gas_flag=yes
3842 fi
3843
3844 cat >>confdefs.h <<_ACEOF
3845 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3846 _ACEOF
3847
3848 fi
3849
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3851 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3852 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3853 if test x"$gas_flag" = x"no"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3855 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3856 else
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3858 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3859 fi
3860 else
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 fi
3864
3865 # ---------------
3866 # Find C compiler
3867 # ---------------
3868
3869 # If a non-executable a.out is present (e.g. created by GNU as above even if
3870 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3871 # file, even when creating an executable, so an execution test fails.
3872 # Remove possible default executable files to avoid this.
3873 #
3874 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3875 # Autoconf includes it.
3876 rm -f a.out a.exe b.out
3877
3878 # Find the native compiler
3879 ac_ext=c
3880 ac_cpp='$CPP $CPPFLAGS'
3881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3884 if test -n "$ac_tool_prefix"; then
3885 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3886 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3888 $as_echo_n "checking for $ac_word... " >&6; }
3889 if ${ac_cv_prog_CC+:} false; then :
3890 $as_echo_n "(cached) " >&6
3891 else
3892 if test -n "$CC"; then
3893 ac_cv_prog_CC="$CC" # Let the user override the test.
3894 else
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906 done
3907 done
3908 IFS=$as_save_IFS
3909
3910 fi
3911 fi
3912 CC=$ac_cv_prog_CC
3913 if test -n "$CC"; then
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3915 $as_echo "$CC" >&6; }
3916 else
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3919 fi
3920
3921
3922 fi
3923 if test -z "$ac_cv_prog_CC"; then
3924 ac_ct_CC=$CC
3925 # Extract the first word of "gcc", so it can be a program name with args.
3926 set dummy gcc; ac_word=$2
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928 $as_echo_n "checking for $ac_word... " >&6; }
3929 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 if test -n "$ac_ct_CC"; then
3933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3934 else
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3937 do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942 ac_cv_prog_ac_ct_CC="gcc"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3945 fi
3946 done
3947 done
3948 IFS=$as_save_IFS
3949
3950 fi
3951 fi
3952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3953 if test -n "$ac_ct_CC"; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3955 $as_echo "$ac_ct_CC" >&6; }
3956 else
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3959 fi
3960
3961 if test "x$ac_ct_CC" = x; then
3962 CC=""
3963 else
3964 case $cross_compiling:$ac_tool_warned in
3965 yes:)
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3968 ac_tool_warned=yes ;;
3969 esac
3970 CC=$ac_ct_CC
3971 fi
3972 else
3973 CC="$ac_cv_prog_CC"
3974 fi
3975
3976 if test -z "$CC"; then
3977 if test -n "$ac_tool_prefix"; then
3978 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3979 set dummy ${ac_tool_prefix}cc; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if ${ac_cv_prog_CC+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 if test -n "$CC"; then
3986 ac_cv_prog_CC="$CC" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_prog_CC="${ac_tool_prefix}cc"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3998 fi
3999 done
4000 done
4001 IFS=$as_save_IFS
4002
4003 fi
4004 fi
4005 CC=$ac_cv_prog_CC
4006 if test -n "$CC"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4008 $as_echo "$CC" >&6; }
4009 else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4012 fi
4013
4014
4015 fi
4016 fi
4017 if test -z "$CC"; then
4018 # Extract the first word of "cc", so it can be a program name with args.
4019 set dummy cc; ac_word=$2
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 $as_echo_n "checking for $ac_word... " >&6; }
4022 if ${ac_cv_prog_CC+:} false; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 if test -n "$CC"; then
4026 ac_cv_prog_CC="$CC" # Let the user override the test.
4027 else
4028 ac_prog_rejected=no
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032 IFS=$as_save_IFS
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4036 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4037 ac_prog_rejected=yes
4038 continue
4039 fi
4040 ac_cv_prog_CC="cc"
4041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4043 fi
4044 done
4045 done
4046 IFS=$as_save_IFS
4047
4048 if test $ac_prog_rejected = yes; then
4049 # We found a bogon in the path, so make sure we never use it.
4050 set dummy $ac_cv_prog_CC
4051 shift
4052 if test $# != 0; then
4053 # We chose a different compiler from the bogus one.
4054 # However, it has the same basename, so the bogon will be chosen
4055 # first if we set CC to just the basename; use the full file name.
4056 shift
4057 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4058 fi
4059 fi
4060 fi
4061 fi
4062 CC=$ac_cv_prog_CC
4063 if test -n "$CC"; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4065 $as_echo "$CC" >&6; }
4066 else
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068 $as_echo "no" >&6; }
4069 fi
4070
4071
4072 fi
4073 if test -z "$CC"; then
4074 if test -n "$ac_tool_prefix"; then
4075 for ac_prog in cl.exe
4076 do
4077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4078 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4080 $as_echo_n "checking for $ac_word... " >&6; }
4081 if ${ac_cv_prog_CC+:} false; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 if test -n "$CC"; then
4085 ac_cv_prog_CC="$CC" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4089 do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 break 2
4097 fi
4098 done
4099 done
4100 IFS=$as_save_IFS
4101
4102 fi
4103 fi
4104 CC=$ac_cv_prog_CC
4105 if test -n "$CC"; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4107 $as_echo "$CC" >&6; }
4108 else
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110 $as_echo "no" >&6; }
4111 fi
4112
4113
4114 test -n "$CC" && break
4115 done
4116 fi
4117 if test -z "$CC"; then
4118 ac_ct_CC=$CC
4119 for ac_prog in cl.exe
4120 do
4121 # Extract the first word of "$ac_prog", so it can be a program name with args.
4122 set dummy $ac_prog; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 if test -n "$ac_ct_CC"; then
4129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138 ac_cv_prog_ac_ct_CC="$ac_prog"
4139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 break 2
4141 fi
4142 done
4143 done
4144 IFS=$as_save_IFS
4145
4146 fi
4147 fi
4148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4149 if test -n "$ac_ct_CC"; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4151 $as_echo "$ac_ct_CC" >&6; }
4152 else
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4155 fi
4156
4157
4158 test -n "$ac_ct_CC" && break
4159 done
4160
4161 if test "x$ac_ct_CC" = x; then
4162 CC=""
4163 else
4164 case $cross_compiling:$ac_tool_warned in
4165 yes:)
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4168 ac_tool_warned=yes ;;
4169 esac
4170 CC=$ac_ct_CC
4171 fi
4172 fi
4173
4174 fi
4175
4176
4177 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4179 as_fn_error $? "no acceptable C compiler found in \$PATH
4180 See \`config.log' for more details" "$LINENO" 5; }
4181
4182 # Provide some information about the compiler.
4183 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4184 set X $ac_compile
4185 ac_compiler=$2
4186 for ac_option in --version -v -V -qversion; do
4187 { { ac_try="$ac_compiler $ac_option >&5"
4188 case "(($ac_try" in
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4191 esac
4192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4193 $as_echo "$ac_try_echo"; } >&5
4194 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4195 ac_status=$?
4196 if test -s conftest.err; then
4197 sed '10a\
4198 ... rest of stderr output deleted ...
4199 10q' conftest.err >conftest.er1
4200 cat conftest.er1 >&5
4201 fi
4202 rm -f conftest.er1 conftest.err
4203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4204 test $ac_status = 0; }
4205 done
4206
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209
4210 int
4211 main ()
4212 {
4213
4214 ;
4215 return 0;
4216 }
4217 _ACEOF
4218 ac_clean_files_save=$ac_clean_files
4219 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4220 # Try to create an executable without -o first, disregard a.out.
4221 # It will help us diagnose broken compilers, and finding out an intuition
4222 # of exeext.
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4224 $as_echo_n "checking whether the C compiler works... " >&6; }
4225 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4226
4227 # The possible output files:
4228 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4229
4230 ac_rmfiles=
4231 for ac_file in $ac_files
4232 do
4233 case $ac_file in
4234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4235 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4236 esac
4237 done
4238 rm -f $ac_rmfiles
4239
4240 if { { ac_try="$ac_link_default"
4241 case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244 esac
4245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 $as_echo "$ac_try_echo"; } >&5
4247 (eval "$ac_link_default") 2>&5
4248 ac_status=$?
4249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250 test $ac_status = 0; }; then :
4251 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4252 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4253 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4254 # so that the user can short-circuit this test for compilers unknown to
4255 # Autoconf.
4256 for ac_file in $ac_files ''
4257 do
4258 test -f "$ac_file" || continue
4259 case $ac_file in
4260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4261 ;;
4262 [ab].out )
4263 # We found the default executable, but exeext='' is most
4264 # certainly right.
4265 break;;
4266 *.* )
4267 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4268 then :; else
4269 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4270 fi
4271 # We set ac_cv_exeext here because the later test for it is not
4272 # safe: cross compilers may not add the suffix if given an `-o'
4273 # argument, so we may need to know it at that point already.
4274 # Even if this section looks crufty: it has the advantage of
4275 # actually working.
4276 break;;
4277 * )
4278 break;;
4279 esac
4280 done
4281 test "$ac_cv_exeext" = no && ac_cv_exeext=
4282
4283 else
4284 ac_file=''
4285 fi
4286 if test -z "$ac_file"; then :
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4289 $as_echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4291
4292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4294 as_fn_error 77 "C compiler cannot create executables
4295 See \`config.log' for more details" "$LINENO" 5; }
4296 else
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4298 $as_echo "yes" >&6; }
4299 fi
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4301 $as_echo_n "checking for C compiler default output file name... " >&6; }
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4303 $as_echo "$ac_file" >&6; }
4304 ac_exeext=$ac_cv_exeext
4305
4306 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4307 ac_clean_files=$ac_clean_files_save
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4309 $as_echo_n "checking for suffix of executables... " >&6; }
4310 if { { ac_try="$ac_link"
4311 case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314 esac
4315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316 $as_echo "$ac_try_echo"; } >&5
4317 (eval "$ac_link") 2>&5
4318 ac_status=$?
4319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320 test $ac_status = 0; }; then :
4321 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4322 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4323 # work properly (i.e., refer to `conftest.exe'), while it won't with
4324 # `rm'.
4325 for ac_file in conftest.exe conftest conftest.*; do
4326 test -f "$ac_file" || continue
4327 case $ac_file in
4328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4329 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4330 break;;
4331 * ) break;;
4332 esac
4333 done
4334 else
4335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4337 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4338 See \`config.log' for more details" "$LINENO" 5; }
4339 fi
4340 rm -f conftest conftest$ac_cv_exeext
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4342 $as_echo "$ac_cv_exeext" >&6; }
4343
4344 rm -f conftest.$ac_ext
4345 EXEEXT=$ac_cv_exeext
4346 ac_exeext=$EXEEXT
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4349 #include <stdio.h>
4350 int
4351 main ()
4352 {
4353 FILE *f = fopen ("conftest.out", "w");
4354 return ferror (f) || fclose (f) != 0;
4355
4356 ;
4357 return 0;
4358 }
4359 _ACEOF
4360 ac_clean_files="$ac_clean_files conftest.out"
4361 # Check that the compiler produces executables we can run. If not, either
4362 # the compiler is broken, or we cross compile.
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4364 $as_echo_n "checking whether we are cross compiling... " >&6; }
4365 if test "$cross_compiling" != yes; then
4366 { { ac_try="$ac_link"
4367 case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370 esac
4371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4372 $as_echo "$ac_try_echo"; } >&5
4373 (eval "$ac_link") 2>&5
4374 ac_status=$?
4375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376 test $ac_status = 0; }
4377 if { ac_try='./conftest$ac_cv_exeext'
4378 { { case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381 esac
4382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383 $as_echo "$ac_try_echo"; } >&5
4384 (eval "$ac_try") 2>&5
4385 ac_status=$?
4386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387 test $ac_status = 0; }; }; then
4388 cross_compiling=no
4389 else
4390 if test "$cross_compiling" = maybe; then
4391 cross_compiling=yes
4392 else
4393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4395 as_fn_error $? "cannot run C compiled programs.
4396 If you meant to cross compile, use \`--host'.
4397 See \`config.log' for more details" "$LINENO" 5; }
4398 fi
4399 fi
4400 fi
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4402 $as_echo "$cross_compiling" >&6; }
4403
4404 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4405 ac_clean_files=$ac_clean_files_save
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4407 $as_echo_n "checking for suffix of object files... " >&6; }
4408 if ${ac_cv_objext+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4413
4414 int
4415 main ()
4416 {
4417
4418 ;
4419 return 0;
4420 }
4421 _ACEOF
4422 rm -f conftest.o conftest.obj
4423 if { { ac_try="$ac_compile"
4424 case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4427 esac
4428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4429 $as_echo "$ac_try_echo"; } >&5
4430 (eval "$ac_compile") 2>&5
4431 ac_status=$?
4432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4433 test $ac_status = 0; }; then :
4434 for ac_file in conftest.o conftest.obj conftest.*; do
4435 test -f "$ac_file" || continue;
4436 case $ac_file in
4437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4438 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4439 break;;
4440 esac
4441 done
4442 else
4443 $as_echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4448 as_fn_error $? "cannot compute suffix of object files: cannot compile
4449 See \`config.log' for more details" "$LINENO" 5; }
4450 fi
4451 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4454 $as_echo "$ac_cv_objext" >&6; }
4455 OBJEXT=$ac_cv_objext
4456 ac_objext=$OBJEXT
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4458 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4459 if ${ac_cv_c_compiler_gnu+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4464
4465 int
4466 main ()
4467 {
4468 #ifndef __GNUC__
4469 choke me
4470 #endif
4471
4472 ;
4473 return 0;
4474 }
4475 _ACEOF
4476 if ac_fn_c_try_compile "$LINENO"; then :
4477 ac_compiler_gnu=yes
4478 else
4479 ac_compiler_gnu=no
4480 fi
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4483
4484 fi
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4486 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4487 if test $ac_compiler_gnu = yes; then
4488 GCC=yes
4489 else
4490 GCC=
4491 fi
4492 ac_test_CFLAGS=${CFLAGS+set}
4493 ac_save_CFLAGS=$CFLAGS
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4495 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4496 if ${ac_cv_prog_cc_g+:} false; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 ac_save_c_werror_flag=$ac_c_werror_flag
4500 ac_c_werror_flag=yes
4501 ac_cv_prog_cc_g=no
4502 CFLAGS="-g"
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4505
4506 int
4507 main ()
4508 {
4509
4510 ;
4511 return 0;
4512 }
4513 _ACEOF
4514 if ac_fn_c_try_compile "$LINENO"; then :
4515 ac_cv_prog_cc_g=yes
4516 else
4517 CFLAGS=""
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520
4521 int
4522 main ()
4523 {
4524
4525 ;
4526 return 0;
4527 }
4528 _ACEOF
4529 if ac_fn_c_try_compile "$LINENO"; then :
4530
4531 else
4532 ac_c_werror_flag=$ac_save_c_werror_flag
4533 CFLAGS="-g"
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4536
4537 int
4538 main ()
4539 {
4540
4541 ;
4542 return 0;
4543 }
4544 _ACEOF
4545 if ac_fn_c_try_compile "$LINENO"; then :
4546 ac_cv_prog_cc_g=yes
4547 fi
4548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 fi
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 fi
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 ac_c_werror_flag=$ac_save_c_werror_flag
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4556 $as_echo "$ac_cv_prog_cc_g" >&6; }
4557 if test "$ac_test_CFLAGS" = set; then
4558 CFLAGS=$ac_save_CFLAGS
4559 elif test $ac_cv_prog_cc_g = yes; then
4560 if test "$GCC" = yes; then
4561 CFLAGS="-g -O2"
4562 else
4563 CFLAGS="-g"
4564 fi
4565 else
4566 if test "$GCC" = yes; then
4567 CFLAGS="-O2"
4568 else
4569 CFLAGS=
4570 fi
4571 fi
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4573 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4574 if ${ac_cv_prog_cc_c89+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 ac_cv_prog_cc_c89=no
4578 ac_save_CC=$CC
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4581 #include <stdarg.h>
4582 #include <stdio.h>
4583 struct stat;
4584 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4585 struct buf { int x; };
4586 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4587 static char *e (p, i)
4588 char **p;
4589 int i;
4590 {
4591 return p[i];
4592 }
4593 static char *f (char * (*g) (char **, int), char **p, ...)
4594 {
4595 char *s;
4596 va_list v;
4597 va_start (v,p);
4598 s = g (p, va_arg (v,int));
4599 va_end (v);
4600 return s;
4601 }
4602
4603 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4604 function prototypes and stuff, but not '\xHH' hex character constants.
4605 These don't provoke an error unfortunately, instead are silently treated
4606 as 'x'. The following induces an error, until -std is added to get
4607 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4608 array size at least. It's necessary to write '\x00'==0 to get something
4609 that's true only with -std. */
4610 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4611
4612 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4613 inside strings and character constants. */
4614 #define FOO(x) 'x'
4615 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4616
4617 int test (int i, double x);
4618 struct s1 {int (*f) (int a);};
4619 struct s2 {int (*f) (double a);};
4620 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4621 int argc;
4622 char **argv;
4623 int
4624 main ()
4625 {
4626 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4627 ;
4628 return 0;
4629 }
4630 _ACEOF
4631 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4632 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4633 do
4634 CC="$ac_save_CC $ac_arg"
4635 if ac_fn_c_try_compile "$LINENO"; then :
4636 ac_cv_prog_cc_c89=$ac_arg
4637 fi
4638 rm -f core conftest.err conftest.$ac_objext
4639 test "x$ac_cv_prog_cc_c89" != "xno" && break
4640 done
4641 rm -f conftest.$ac_ext
4642 CC=$ac_save_CC
4643
4644 fi
4645 # AC_CACHE_VAL
4646 case "x$ac_cv_prog_cc_c89" in
4647 x)
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4649 $as_echo "none needed" >&6; } ;;
4650 xno)
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4652 $as_echo "unsupported" >&6; } ;;
4653 *)
4654 CC="$CC $ac_cv_prog_cc_c89"
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4656 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4657 esac
4658 if test "x$ac_cv_prog_cc_c89" != xno; then :
4659
4660 fi
4661
4662 ac_ext=c
4663 ac_cpp='$CPP $CPPFLAGS'
4664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4667
4668 ac_ext=cpp
4669 ac_cpp='$CXXCPP $CPPFLAGS'
4670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4673 if test -z "$CXX"; then
4674 if test -n "$CCC"; then
4675 CXX=$CCC
4676 else
4677 if test -n "$ac_tool_prefix"; then
4678 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4679 do
4680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if ${ac_cv_prog_CXX+:} false; then :
4685 $as_echo_n "(cached) " >&6
4686 else
4687 if test -n "$CXX"; then
4688 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4689 else
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4697 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4700 fi
4701 done
4702 done
4703 IFS=$as_save_IFS
4704
4705 fi
4706 fi
4707 CXX=$ac_cv_prog_CXX
4708 if test -n "$CXX"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4710 $as_echo "$CXX" >&6; }
4711 else
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4714 fi
4715
4716
4717 test -n "$CXX" && break
4718 done
4719 fi
4720 if test -z "$CXX"; then
4721 ac_ct_CXX=$CXX
4722 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4723 do
4724 # Extract the first word of "$ac_prog", so it can be a program name with args.
4725 set dummy $ac_prog; ac_word=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 if test -n "$ac_ct_CXX"; then
4732 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4741 ac_cv_prog_ac_ct_CXX="$ac_prog"
4742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 break 2
4744 fi
4745 done
4746 done
4747 IFS=$as_save_IFS
4748
4749 fi
4750 fi
4751 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4752 if test -n "$ac_ct_CXX"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4754 $as_echo "$ac_ct_CXX" >&6; }
4755 else
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4758 fi
4759
4760
4761 test -n "$ac_ct_CXX" && break
4762 done
4763
4764 if test "x$ac_ct_CXX" = x; then
4765 CXX="g++"
4766 else
4767 case $cross_compiling:$ac_tool_warned in
4768 yes:)
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4771 ac_tool_warned=yes ;;
4772 esac
4773 CXX=$ac_ct_CXX
4774 fi
4775 fi
4776
4777 fi
4778 fi
4779 # Provide some information about the compiler.
4780 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4781 set X $ac_compile
4782 ac_compiler=$2
4783 for ac_option in --version -v -V -qversion; do
4784 { { ac_try="$ac_compiler $ac_option >&5"
4785 case "(($ac_try" in
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4788 esac
4789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4790 $as_echo "$ac_try_echo"; } >&5
4791 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4792 ac_status=$?
4793 if test -s conftest.err; then
4794 sed '10a\
4795 ... rest of stderr output deleted ...
4796 10q' conftest.err >conftest.er1
4797 cat conftest.er1 >&5
4798 fi
4799 rm -f conftest.er1 conftest.err
4800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4801 test $ac_status = 0; }
4802 done
4803
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4805 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4806 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4811
4812 int
4813 main ()
4814 {
4815 #ifndef __GNUC__
4816 choke me
4817 #endif
4818
4819 ;
4820 return 0;
4821 }
4822 _ACEOF
4823 if ac_fn_cxx_try_compile "$LINENO"; then :
4824 ac_compiler_gnu=yes
4825 else
4826 ac_compiler_gnu=no
4827 fi
4828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4830
4831 fi
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4833 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4834 if test $ac_compiler_gnu = yes; then
4835 GXX=yes
4836 else
4837 GXX=
4838 fi
4839 ac_test_CXXFLAGS=${CXXFLAGS+set}
4840 ac_save_CXXFLAGS=$CXXFLAGS
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4842 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4843 if ${ac_cv_prog_cxx_g+:} false; then :
4844 $as_echo_n "(cached) " >&6
4845 else
4846 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4847 ac_cxx_werror_flag=yes
4848 ac_cv_prog_cxx_g=no
4849 CXXFLAGS="-g"
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4852
4853 int
4854 main ()
4855 {
4856
4857 ;
4858 return 0;
4859 }
4860 _ACEOF
4861 if ac_fn_cxx_try_compile "$LINENO"; then :
4862 ac_cv_prog_cxx_g=yes
4863 else
4864 CXXFLAGS=""
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4867
4868 int
4869 main ()
4870 {
4871
4872 ;
4873 return 0;
4874 }
4875 _ACEOF
4876 if ac_fn_cxx_try_compile "$LINENO"; then :
4877
4878 else
4879 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4880 CXXFLAGS="-g"
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883
4884 int
4885 main ()
4886 {
4887
4888 ;
4889 return 0;
4890 }
4891 _ACEOF
4892 if ac_fn_cxx_try_compile "$LINENO"; then :
4893 ac_cv_prog_cxx_g=yes
4894 fi
4895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896 fi
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 fi
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4901 fi
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4903 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4904 if test "$ac_test_CXXFLAGS" = set; then
4905 CXXFLAGS=$ac_save_CXXFLAGS
4906 elif test $ac_cv_prog_cxx_g = yes; then
4907 if test "$GXX" = yes; then
4908 CXXFLAGS="-g -O2"
4909 else
4910 CXXFLAGS="-g"
4911 fi
4912 else
4913 if test "$GXX" = yes; then
4914 CXXFLAGS="-O2"
4915 else
4916 CXXFLAGS=
4917 fi
4918 fi
4919 ac_ext=c
4920 ac_cpp='$CPP $CPPFLAGS'
4921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924
4925
4926
4927
4928 if test -n "$ac_tool_prefix"; then
4929 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4930 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if ${ac_cv_prog_GNATBIND+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 if test -n "$GNATBIND"; then
4937 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4946 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4949 fi
4950 done
4951 done
4952 IFS=$as_save_IFS
4953
4954 fi
4955 fi
4956 GNATBIND=$ac_cv_prog_GNATBIND
4957 if test -n "$GNATBIND"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4959 $as_echo "$GNATBIND" >&6; }
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4963 fi
4964
4965
4966 fi
4967 if test -z "$ac_cv_prog_GNATBIND"; then
4968 ac_ct_GNATBIND=$GNATBIND
4969 # Extract the first word of "gnatbind", so it can be a program name with args.
4970 set dummy gnatbind; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 if test -n "$ac_ct_GNATBIND"; then
4977 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4981 do
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4989 fi
4990 done
4991 done
4992 IFS=$as_save_IFS
4993
4994 fi
4995 fi
4996 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4997 if test -n "$ac_ct_GNATBIND"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4999 $as_echo "$ac_ct_GNATBIND" >&6; }
5000 else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5003 fi
5004
5005 if test "x$ac_ct_GNATBIND" = x; then
5006 GNATBIND="no"
5007 else
5008 case $cross_compiling:$ac_tool_warned in
5009 yes:)
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5012 ac_tool_warned=yes ;;
5013 esac
5014 GNATBIND=$ac_ct_GNATBIND
5015 fi
5016 else
5017 GNATBIND="$ac_cv_prog_GNATBIND"
5018 fi
5019
5020 if test -n "$ac_tool_prefix"; then
5021 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5022 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if ${ac_cv_prog_GNATMAKE+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 if test -n "$GNATMAKE"; then
5029 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5041 fi
5042 done
5043 done
5044 IFS=$as_save_IFS
5045
5046 fi
5047 fi
5048 GNATMAKE=$ac_cv_prog_GNATMAKE
5049 if test -n "$GNATMAKE"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5051 $as_echo "$GNATMAKE" >&6; }
5052 else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5055 fi
5056
5057
5058 fi
5059 if test -z "$ac_cv_prog_GNATMAKE"; then
5060 ac_ct_GNATMAKE=$GNATMAKE
5061 # Extract the first word of "gnatmake", so it can be a program name with args.
5062 set dummy gnatmake; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 if test -n "$ac_ct_GNATMAKE"; then
5069 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082 done
5083 done
5084 IFS=$as_save_IFS
5085
5086 fi
5087 fi
5088 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5089 if test -n "$ac_ct_GNATMAKE"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5091 $as_echo "$ac_ct_GNATMAKE" >&6; }
5092 else
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096
5097 if test "x$ac_ct_GNATMAKE" = x; then
5098 GNATMAKE="no"
5099 else
5100 case $cross_compiling:$ac_tool_warned in
5101 yes:)
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104 ac_tool_warned=yes ;;
5105 esac
5106 GNATMAKE=$ac_ct_GNATMAKE
5107 fi
5108 else
5109 GNATMAKE="$ac_cv_prog_GNATMAKE"
5110 fi
5111
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5113 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5114 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 cat >conftest.adb <<EOF
5118 procedure conftest is begin null; end conftest;
5119 EOF
5120 acx_cv_cc_gcc_supports_ada=no
5121 # There is a bug in old released versions of GCC which causes the
5122 # driver to exit successfully when the appropriate language module
5123 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5124 # Therefore we must check for the error message as well as an
5125 # unsuccessful exit.
5126 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5127 # given a .adb file, but produce no object file. So we must check
5128 # if an object file was really produced to guard against this.
5129 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5130 if test x"$errors" = x && test -f conftest.$ac_objext; then
5131 acx_cv_cc_gcc_supports_ada=yes
5132 fi
5133 rm -f conftest.*
5134 fi
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5136 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5137
5138 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5139 have_gnat=yes
5140 else
5141 have_gnat=no
5142 fi
5143
5144
5145 # Do configure tests with the C++ compiler, since that's what we build with.
5146 ac_ext=cpp
5147 ac_cpp='$CXXCPP $CPPFLAGS'
5148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5151
5152
5153 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5154 # optimizations to be activated explicitly by the toplevel.
5155 case "$CC" in
5156 */prev-gcc/xgcc*) ;;
5157 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5158 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5159 esac
5160
5161
5162
5163 # Determine PICFLAG for target gnatlib.
5164
5165
5166
5167
5168 case "${target}" in
5169 # PIC is the default on some targets or must not be used.
5170 *-*-darwin*)
5171 # For darwin, common symbols are not allowed in MH_DYLIB files
5172 case "${CFLAGS}" in
5173 # If we are using a compiler supporting mdynamic-no-pic
5174 # and the option has been tested as safe to add, then cancel
5175 # it here, since the code generated is incompatible with shared
5176 # libs.
5177 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5178 *) PICFLAG_FOR_TARGET=-fno-common ;;
5179 esac
5180 ;;
5181 alpha*-dec-osf5*)
5182 # PIC is the default.
5183 ;;
5184 hppa*64*-*-hpux*)
5185 # PIC is the default for 64-bit PA HP-UX.
5186 ;;
5187 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5188 ;;
5189 i[34567]86-*-mingw* | x86_64-*-mingw*)
5190 ;;
5191 i[34567]86-*-interix[3-9]*)
5192 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5193 # Instead, we relocate shared libraries at runtime.
5194 ;;
5195 i[34567]86-*-nto-qnx*)
5196 # QNX uses GNU C++, but need to define -shared option too, otherwise
5197 # it will coredump.
5198 PICFLAG_FOR_TARGET='-fPIC -shared'
5199 ;;
5200 i[34567]86-pc-msdosdjgpp*)
5201 # DJGPP does not support shared libraries at all.
5202 ;;
5203 ia64*-*-hpux*)
5204 # On IA64 HP-UX, PIC is the default but the pic flag
5205 # sets the default TLS model and affects inlining.
5206 PICFLAG_FOR_TARGET=-fPIC
5207 ;;
5208 mips-sgi-irix6*)
5209 # PIC is the default.
5210 ;;
5211 rs6000-ibm-aix* | powerpc-ibm-aix*)
5212 # All AIX code is PIC.
5213 ;;
5214
5215 # Some targets support both -fPIC and -fpic, but prefer the latter.
5216 # FIXME: Why?
5217 i[34567]86-*-* | x86_64-*-*)
5218 PICFLAG_FOR_TARGET=-fpic
5219 ;;
5220 # FIXME: Override -fPIC default in libgcc only?
5221 sh-*-linux* | sh[2346lbe]*-*-linux*)
5222 PICFLAG_FOR_TARGET=-fpic
5223 ;;
5224 # FIXME: Simplify to sh*-*-netbsd*?
5225 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5226 sh64-*-netbsd* | sh64l*-*-netbsd*)
5227 PICFLAG_FOR_TARGET=-fpic
5228 ;;
5229 # Default to -fPIC unless specified otherwise.
5230 *)
5231 PICFLAG_FOR_TARGET=-fPIC
5232 ;;
5233 esac
5234
5235 # If the user explicitly uses -fpic/-fPIC, keep that.
5236 case "${CFLAGS_FOR_TARGET}" in
5237 *-fpic*)
5238 PICFLAG_FOR_TARGET=-fpic
5239 ;;
5240 *-fPIC*)
5241 PICFLAG_FOR_TARGET=-fPIC
5242 ;;
5243 esac
5244
5245
5246
5247 # -------------------------
5248 # Check C compiler features
5249 # -------------------------
5250
5251
5252 ac_ext=cpp
5253 ac_cpp='$CXXCPP $CPPFLAGS'
5254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5258 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5259 if test -z "$CXXCPP"; then
5260 if ${ac_cv_prog_CXXCPP+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 # Double quotes because CXXCPP needs to be expanded
5264 for CXXCPP in "$CXX -E" "/lib/cpp"
5265 do
5266 ac_preproc_ok=false
5267 for ac_cxx_preproc_warn_flag in '' yes
5268 do
5269 # Use a header file that comes with gcc, so configuring glibc
5270 # with a fresh cross-compiler works.
5271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5272 # <limits.h> exists even on freestanding compilers.
5273 # On the NeXT, cc -E runs the code through the compiler's parser,
5274 # not just through cpp. "Syntax error" is here to catch this case.
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 #ifdef __STDC__
5278 # include <limits.h>
5279 #else
5280 # include <assert.h>
5281 #endif
5282 Syntax error
5283 _ACEOF
5284 if ac_fn_cxx_try_cpp "$LINENO"; then :
5285
5286 else
5287 # Broken: fails on valid input.
5288 continue
5289 fi
5290 rm -f conftest.err conftest.i conftest.$ac_ext
5291
5292 # OK, works on sane cases. Now check whether nonexistent headers
5293 # can be detected and how.
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296 #include <ac_nonexistent.h>
5297 _ACEOF
5298 if ac_fn_cxx_try_cpp "$LINENO"; then :
5299 # Broken: success on invalid input.
5300 continue
5301 else
5302 # Passes both tests.
5303 ac_preproc_ok=:
5304 break
5305 fi
5306 rm -f conftest.err conftest.i conftest.$ac_ext
5307
5308 done
5309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5310 rm -f conftest.i conftest.err conftest.$ac_ext
5311 if $ac_preproc_ok; then :
5312 break
5313 fi
5314
5315 done
5316 ac_cv_prog_CXXCPP=$CXXCPP
5317
5318 fi
5319 CXXCPP=$ac_cv_prog_CXXCPP
5320 else
5321 ac_cv_prog_CXXCPP=$CXXCPP
5322 fi
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5324 $as_echo "$CXXCPP" >&6; }
5325 ac_preproc_ok=false
5326 for ac_cxx_preproc_warn_flag in '' yes
5327 do
5328 # Use a header file that comes with gcc, so configuring glibc
5329 # with a fresh cross-compiler works.
5330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5331 # <limits.h> exists even on freestanding compilers.
5332 # On the NeXT, cc -E runs the code through the compiler's parser,
5333 # not just through cpp. "Syntax error" is here to catch this case.
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5336 #ifdef __STDC__
5337 # include <limits.h>
5338 #else
5339 # include <assert.h>
5340 #endif
5341 Syntax error
5342 _ACEOF
5343 if ac_fn_cxx_try_cpp "$LINENO"; then :
5344
5345 else
5346 # Broken: fails on valid input.
5347 continue
5348 fi
5349 rm -f conftest.err conftest.i conftest.$ac_ext
5350
5351 # OK, works on sane cases. Now check whether nonexistent headers
5352 # can be detected and how.
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5355 #include <ac_nonexistent.h>
5356 _ACEOF
5357 if ac_fn_cxx_try_cpp "$LINENO"; then :
5358 # Broken: success on invalid input.
5359 continue
5360 else
5361 # Passes both tests.
5362 ac_preproc_ok=:
5363 break
5364 fi
5365 rm -f conftest.err conftest.i conftest.$ac_ext
5366
5367 done
5368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5369 rm -f conftest.i conftest.err conftest.$ac_ext
5370 if $ac_preproc_ok; then :
5371
5372 else
5373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5375 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5376 See \`config.log' for more details" "$LINENO" 5; }
5377 fi
5378
5379 ac_ext=cpp
5380 ac_cpp='$CXXCPP $CPPFLAGS'
5381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5384
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5387 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5388 if ${ac_cv_path_GREP+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 if test -z "$GREP"; then
5392 ac_path_GREP_found=false
5393 # Loop through the user's path and test for each of PROGNAME-LIST
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5396 do
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for ac_prog in grep ggrep; do
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5402 as_fn_executable_p "$ac_path_GREP" || continue
5403 # Check for GNU ac_path_GREP and select it if it is found.
5404 # Check for GNU $ac_path_GREP
5405 case `"$ac_path_GREP" --version 2>&1` in
5406 *GNU*)
5407 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5408 *)
5409 ac_count=0
5410 $as_echo_n 0123456789 >"conftest.in"
5411 while :
5412 do
5413 cat "conftest.in" "conftest.in" >"conftest.tmp"
5414 mv "conftest.tmp" "conftest.in"
5415 cp "conftest.in" "conftest.nl"
5416 $as_echo 'GREP' >> "conftest.nl"
5417 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5419 as_fn_arith $ac_count + 1 && ac_count=$as_val
5420 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5421 # Best one so far, save it but keep looking for a better one
5422 ac_cv_path_GREP="$ac_path_GREP"
5423 ac_path_GREP_max=$ac_count
5424 fi
5425 # 10*(2^10) chars as input seems more than enough
5426 test $ac_count -gt 10 && break
5427 done
5428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5429 esac
5430
5431 $ac_path_GREP_found && break 3
5432 done
5433 done
5434 done
5435 IFS=$as_save_IFS
5436 if test -z "$ac_cv_path_GREP"; then
5437 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5438 fi
5439 else
5440 ac_cv_path_GREP=$GREP
5441 fi
5442
5443 fi
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5445 $as_echo "$ac_cv_path_GREP" >&6; }
5446 GREP="$ac_cv_path_GREP"
5447
5448
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5450 $as_echo_n "checking for egrep... " >&6; }
5451 if ${ac_cv_path_EGREP+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5455 then ac_cv_path_EGREP="$GREP -E"
5456 else
5457 if test -z "$EGREP"; then
5458 ac_path_EGREP_found=false
5459 # Loop through the user's path and test for each of PROGNAME-LIST
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5462 do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_prog in egrep; do
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5468 as_fn_executable_p "$ac_path_EGREP" || continue
5469 # Check for GNU ac_path_EGREP and select it if it is found.
5470 # Check for GNU $ac_path_EGREP
5471 case `"$ac_path_EGREP" --version 2>&1` in
5472 *GNU*)
5473 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5474 *)
5475 ac_count=0
5476 $as_echo_n 0123456789 >"conftest.in"
5477 while :
5478 do
5479 cat "conftest.in" "conftest.in" >"conftest.tmp"
5480 mv "conftest.tmp" "conftest.in"
5481 cp "conftest.in" "conftest.nl"
5482 $as_echo 'EGREP' >> "conftest.nl"
5483 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5485 as_fn_arith $ac_count + 1 && ac_count=$as_val
5486 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5487 # Best one so far, save it but keep looking for a better one
5488 ac_cv_path_EGREP="$ac_path_EGREP"
5489 ac_path_EGREP_max=$ac_count
5490 fi
5491 # 10*(2^10) chars as input seems more than enough
5492 test $ac_count -gt 10 && break
5493 done
5494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5495 esac
5496
5497 $ac_path_EGREP_found && break 3
5498 done
5499 done
5500 done
5501 IFS=$as_save_IFS
5502 if test -z "$ac_cv_path_EGREP"; then
5503 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5504 fi
5505 else
5506 ac_cv_path_EGREP=$EGREP
5507 fi
5508
5509 fi
5510 fi
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5512 $as_echo "$ac_cv_path_EGREP" >&6; }
5513 EGREP="$ac_cv_path_EGREP"
5514
5515
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5517 $as_echo_n "checking for ANSI C header files... " >&6; }
5518 if ${ac_cv_header_stdc+:} false; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523 #include <stdlib.h>
5524 #include <stdarg.h>
5525 #include <string.h>
5526 #include <float.h>
5527
5528 int
5529 main ()
5530 {
5531
5532 ;
5533 return 0;
5534 }
5535 _ACEOF
5536 if ac_fn_cxx_try_compile "$LINENO"; then :
5537 ac_cv_header_stdc=yes
5538 else
5539 ac_cv_header_stdc=no
5540 fi
5541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542
5543 if test $ac_cv_header_stdc = yes; then
5544 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5547 #include <string.h>
5548
5549 _ACEOF
5550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5551 $EGREP "memchr" >/dev/null 2>&1; then :
5552
5553 else
5554 ac_cv_header_stdc=no
5555 fi
5556 rm -f conftest*
5557
5558 fi
5559
5560 if test $ac_cv_header_stdc = yes; then
5561 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5564 #include <stdlib.h>
5565
5566 _ACEOF
5567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5568 $EGREP "free" >/dev/null 2>&1; then :
5569
5570 else
5571 ac_cv_header_stdc=no
5572 fi
5573 rm -f conftest*
5574
5575 fi
5576
5577 if test $ac_cv_header_stdc = yes; then
5578 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5579 if test "$cross_compiling" = yes; then :
5580 :
5581 else
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #include <ctype.h>
5585 #include <stdlib.h>
5586 #if ((' ' & 0x0FF) == 0x020)
5587 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5588 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5589 #else
5590 # define ISLOWER(c) \
5591 (('a' <= (c) && (c) <= 'i') \
5592 || ('j' <= (c) && (c) <= 'r') \
5593 || ('s' <= (c) && (c) <= 'z'))
5594 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5595 #endif
5596
5597 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5598 int
5599 main ()
5600 {
5601 int i;
5602 for (i = 0; i < 256; i++)
5603 if (XOR (islower (i), ISLOWER (i))
5604 || toupper (i) != TOUPPER (i))
5605 return 2;
5606 return 0;
5607 }
5608 _ACEOF
5609 if ac_fn_cxx_try_run "$LINENO"; then :
5610
5611 else
5612 ac_cv_header_stdc=no
5613 fi
5614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5615 conftest.$ac_objext conftest.beam conftest.$ac_ext
5616 fi
5617
5618 fi
5619 fi
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5621 $as_echo "$ac_cv_header_stdc" >&6; }
5622 if test $ac_cv_header_stdc = yes; then
5623
5624 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5625
5626 fi
5627
5628 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5629 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5630 inttypes.h stdint.h unistd.h
5631 do :
5632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5633 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5634 "
5635 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5636 cat >>confdefs.h <<_ACEOF
5637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5638 _ACEOF
5639
5640 fi
5641
5642 done
5643
5644
5645
5646 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5647 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5648 MINIX=yes
5649 else
5650 MINIX=
5651 fi
5652
5653
5654 if test "$MINIX" = yes; then
5655
5656 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5657
5658
5659 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5660
5661
5662 $as_echo "#define _MINIX 1" >>confdefs.h
5663
5664 fi
5665
5666
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5668 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5669 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674
5675 # define __EXTENSIONS__ 1
5676 $ac_includes_default
5677 int
5678 main ()
5679 {
5680
5681 ;
5682 return 0;
5683 }
5684 _ACEOF
5685 if ac_fn_cxx_try_compile "$LINENO"; then :
5686 ac_cv_safe_to_define___extensions__=yes
5687 else
5688 ac_cv_safe_to_define___extensions__=no
5689 fi
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5693 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5694 test $ac_cv_safe_to_define___extensions__ = yes &&
5695 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5696
5697 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5698
5699 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5700
5701 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5702
5703 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5704
5705
5706 ac_ext=c
5707 ac_cpp='$CPP $CPPFLAGS'
5708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5712 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5713 # On Suns, sometimes $CPP names a directory.
5714 if test -n "$CPP" && test -d "$CPP"; then
5715 CPP=
5716 fi
5717 if test -z "$CPP"; then
5718 if ${ac_cv_prog_CPP+:} false; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 # Double quotes because CPP needs to be expanded
5722 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5723 do
5724 ac_preproc_ok=false
5725 for ac_c_preproc_warn_flag in '' yes
5726 do
5727 # Use a header file that comes with gcc, so configuring glibc
5728 # with a fresh cross-compiler works.
5729 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5730 # <limits.h> exists even on freestanding compilers.
5731 # On the NeXT, cc -E runs the code through the compiler's parser,
5732 # not just through cpp. "Syntax error" is here to catch this case.
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735 #ifdef __STDC__
5736 # include <limits.h>
5737 #else
5738 # include <assert.h>
5739 #endif
5740 Syntax error
5741 _ACEOF
5742 if ac_fn_c_try_cpp "$LINENO"; then :
5743
5744 else
5745 # Broken: fails on valid input.
5746 continue
5747 fi
5748 rm -f conftest.err conftest.i conftest.$ac_ext
5749
5750 # OK, works on sane cases. Now check whether nonexistent headers
5751 # can be detected and how.
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5754 #include <ac_nonexistent.h>
5755 _ACEOF
5756 if ac_fn_c_try_cpp "$LINENO"; then :
5757 # Broken: success on invalid input.
5758 continue
5759 else
5760 # Passes both tests.
5761 ac_preproc_ok=:
5762 break
5763 fi
5764 rm -f conftest.err conftest.i conftest.$ac_ext
5765
5766 done
5767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5768 rm -f conftest.i conftest.err conftest.$ac_ext
5769 if $ac_preproc_ok; then :
5770 break
5771 fi
5772
5773 done
5774 ac_cv_prog_CPP=$CPP
5775
5776 fi
5777 CPP=$ac_cv_prog_CPP
5778 else
5779 ac_cv_prog_CPP=$CPP
5780 fi
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5782 $as_echo "$CPP" >&6; }
5783 ac_preproc_ok=false
5784 for ac_c_preproc_warn_flag in '' yes
5785 do
5786 # Use a header file that comes with gcc, so configuring glibc
5787 # with a fresh cross-compiler works.
5788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5789 # <limits.h> exists even on freestanding compilers.
5790 # On the NeXT, cc -E runs the code through the compiler's parser,
5791 # not just through cpp. "Syntax error" is here to catch this case.
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5794 #ifdef __STDC__
5795 # include <limits.h>
5796 #else
5797 # include <assert.h>
5798 #endif
5799 Syntax error
5800 _ACEOF
5801 if ac_fn_c_try_cpp "$LINENO"; then :
5802
5803 else
5804 # Broken: fails on valid input.
5805 continue
5806 fi
5807 rm -f conftest.err conftest.i conftest.$ac_ext
5808
5809 # OK, works on sane cases. Now check whether nonexistent headers
5810 # can be detected and how.
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 #include <ac_nonexistent.h>
5814 _ACEOF
5815 if ac_fn_c_try_cpp "$LINENO"; then :
5816 # Broken: success on invalid input.
5817 continue
5818 else
5819 # Passes both tests.
5820 ac_preproc_ok=:
5821 break
5822 fi
5823 rm -f conftest.err conftest.i conftest.$ac_ext
5824
5825 done
5826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5827 rm -f conftest.i conftest.err conftest.$ac_ext
5828 if $ac_preproc_ok; then :
5829
5830 else
5831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5833 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5834 See \`config.log' for more details" "$LINENO" 5; }
5835 fi
5836
5837 ac_ext=cpp
5838 ac_cpp='$CXXCPP $CPPFLAGS'
5839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5842
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5844 $as_echo_n "checking for inline... " >&6; }
5845 if ${ac_cv_c_inline+:} false; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 ac_cv_c_inline=no
5849 for ac_kw in inline __inline__ __inline; do
5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5852 #ifndef __cplusplus
5853 typedef int foo_t;
5854 static $ac_kw foo_t static_foo () {return 0; }
5855 $ac_kw foo_t foo () {return 0; }
5856 #endif
5857
5858 _ACEOF
5859 if ac_fn_cxx_try_compile "$LINENO"; then :
5860 ac_cv_c_inline=$ac_kw
5861 fi
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 test "$ac_cv_c_inline" != no && break
5864 done
5865
5866 fi
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5868 $as_echo "$ac_cv_c_inline" >&6; }
5869
5870 case $ac_cv_c_inline in
5871 inline | yes) ;;
5872 *)
5873 case $ac_cv_c_inline in
5874 no) ac_val=;;
5875 *) ac_val=$ac_cv_c_inline;;
5876 esac
5877 cat >>confdefs.h <<_ACEOF
5878 #ifndef __cplusplus
5879 #define inline $ac_val
5880 #endif
5881 _ACEOF
5882 ;;
5883 esac
5884
5885
5886 # Check whether --enable-largefile was given.
5887 if test "${enable_largefile+set}" = set; then :
5888 enableval=$enable_largefile;
5889 fi
5890
5891 if test "$enable_largefile" != no; then
5892
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5894 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5895 if ${ac_cv_sys_largefile_CC+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 ac_cv_sys_largefile_CC=no
5899 if test "$GCC" != yes; then
5900 ac_save_CC=$CC
5901 while :; do
5902 # IRIX 6.2 and later do not support large files by default,
5903 # so use the C compiler's -n32 option if that helps.
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5906 #include <sys/types.h>
5907 /* Check that off_t can represent 2**63 - 1 correctly.
5908 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5909 since some C++ compilers masquerading as C compilers
5910 incorrectly reject 9223372036854775807. */
5911 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5913 && LARGE_OFF_T % 2147483647 == 1)
5914 ? 1 : -1];
5915 int
5916 main ()
5917 {
5918
5919 ;
5920 return 0;
5921 }
5922 _ACEOF
5923 if ac_fn_cxx_try_compile "$LINENO"; then :
5924 break
5925 fi
5926 rm -f core conftest.err conftest.$ac_objext
5927 CC="$CC -n32"
5928 if ac_fn_cxx_try_compile "$LINENO"; then :
5929 ac_cv_sys_largefile_CC=' -n32'; break
5930 fi
5931 rm -f core conftest.err conftest.$ac_objext
5932 break
5933 done
5934 CC=$ac_save_CC
5935 rm -f conftest.$ac_ext
5936 fi
5937 fi
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5939 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5940 if test "$ac_cv_sys_largefile_CC" != no; then
5941 CC=$CC$ac_cv_sys_largefile_CC
5942 fi
5943
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5945 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5946 if ${ac_cv_sys_file_offset_bits+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 while :; do
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 #include <sys/types.h>
5953 /* Check that off_t can represent 2**63 - 1 correctly.
5954 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5955 since some C++ compilers masquerading as C compilers
5956 incorrectly reject 9223372036854775807. */
5957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5958 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5959 && LARGE_OFF_T % 2147483647 == 1)
5960 ? 1 : -1];
5961 int
5962 main ()
5963 {
5964
5965 ;
5966 return 0;
5967 }
5968 _ACEOF
5969 if ac_fn_cxx_try_compile "$LINENO"; then :
5970 ac_cv_sys_file_offset_bits=no; break
5971 fi
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5975 #define _FILE_OFFSET_BITS 64
5976 #include <sys/types.h>
5977 /* Check that off_t can represent 2**63 - 1 correctly.
5978 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5979 since some C++ compilers masquerading as C compilers
5980 incorrectly reject 9223372036854775807. */
5981 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5982 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5983 && LARGE_OFF_T % 2147483647 == 1)
5984 ? 1 : -1];
5985 int
5986 main ()
5987 {
5988
5989 ;
5990 return 0;
5991 }
5992 _ACEOF
5993 if ac_fn_cxx_try_compile "$LINENO"; then :
5994 ac_cv_sys_file_offset_bits=64; break
5995 fi
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 ac_cv_sys_file_offset_bits=unknown
5998 break
5999 done
6000 fi
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6002 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6003 case $ac_cv_sys_file_offset_bits in #(
6004 no | unknown) ;;
6005 *)
6006 cat >>confdefs.h <<_ACEOF
6007 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6008 _ACEOF
6009 ;;
6010 esac
6011 rm -rf conftest*
6012 if test $ac_cv_sys_file_offset_bits = unknown; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6014 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6015 if ${ac_cv_sys_large_files+:} false; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 while :; do
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6021 #include <sys/types.h>
6022 /* Check that off_t can represent 2**63 - 1 correctly.
6023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6024 since some C++ compilers masquerading as C compilers
6025 incorrectly reject 9223372036854775807. */
6026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6028 && LARGE_OFF_T % 2147483647 == 1)
6029 ? 1 : -1];
6030 int
6031 main ()
6032 {
6033
6034 ;
6035 return 0;
6036 }
6037 _ACEOF
6038 if ac_fn_cxx_try_compile "$LINENO"; then :
6039 ac_cv_sys_large_files=no; break
6040 fi
6041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 #define _LARGE_FILES 1
6045 #include <sys/types.h>
6046 /* Check that off_t can represent 2**63 - 1 correctly.
6047 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6048 since some C++ compilers masquerading as C compilers
6049 incorrectly reject 9223372036854775807. */
6050 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6051 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6052 && LARGE_OFF_T % 2147483647 == 1)
6053 ? 1 : -1];
6054 int
6055 main ()
6056 {
6057
6058 ;
6059 return 0;
6060 }
6061 _ACEOF
6062 if ac_fn_cxx_try_compile "$LINENO"; then :
6063 ac_cv_sys_large_files=1; break
6064 fi
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 ac_cv_sys_large_files=unknown
6067 break
6068 done
6069 fi
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6071 $as_echo "$ac_cv_sys_large_files" >&6; }
6072 case $ac_cv_sys_large_files in #(
6073 no | unknown) ;;
6074 *)
6075 cat >>confdefs.h <<_ACEOF
6076 #define _LARGE_FILES $ac_cv_sys_large_files
6077 _ACEOF
6078 ;;
6079 esac
6080 rm -rf conftest*
6081 fi
6082
6083
6084 fi
6085
6086
6087 # sizeof(char) is 1 by definition.
6088 # The cast to long int works around a bug in the HP C Compiler
6089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6091 # This bug is HP SR number 8606223364.
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6093 $as_echo_n "checking size of void *... " >&6; }
6094 if ${ac_cv_sizeof_void_p+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6098
6099 else
6100 if test "$ac_cv_type_void_p" = yes; then
6101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6103 as_fn_error 77 "cannot compute sizeof (void *)
6104 See \`config.log' for more details" "$LINENO" 5; }
6105 else
6106 ac_cv_sizeof_void_p=0
6107 fi
6108 fi
6109
6110 fi
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6112 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6113
6114
6115
6116 cat >>confdefs.h <<_ACEOF
6117 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6118 _ACEOF
6119
6120
6121 # The cast to long int works around a bug in the HP C Compiler
6122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6124 # This bug is HP SR number 8606223364.
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6126 $as_echo_n "checking size of short... " >&6; }
6127 if ${ac_cv_sizeof_short+:} false; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6131
6132 else
6133 if test "$ac_cv_type_short" = yes; then
6134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6136 as_fn_error 77 "cannot compute sizeof (short)
6137 See \`config.log' for more details" "$LINENO" 5; }
6138 else
6139 ac_cv_sizeof_short=0
6140 fi
6141 fi
6142
6143 fi
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6145 $as_echo "$ac_cv_sizeof_short" >&6; }
6146
6147
6148
6149 cat >>confdefs.h <<_ACEOF
6150 #define SIZEOF_SHORT $ac_cv_sizeof_short
6151 _ACEOF
6152
6153
6154 # The cast to long int works around a bug in the HP C Compiler
6155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6157 # This bug is HP SR number 8606223364.
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6159 $as_echo_n "checking size of int... " >&6; }
6160 if ${ac_cv_sizeof_int+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6164
6165 else
6166 if test "$ac_cv_type_int" = yes; then
6167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6169 as_fn_error 77 "cannot compute sizeof (int)
6170 See \`config.log' for more details" "$LINENO" 5; }
6171 else
6172 ac_cv_sizeof_int=0
6173 fi
6174 fi
6175
6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6178 $as_echo "$ac_cv_sizeof_int" >&6; }
6179
6180
6181
6182 cat >>confdefs.h <<_ACEOF
6183 #define SIZEOF_INT $ac_cv_sizeof_int
6184 _ACEOF
6185
6186
6187 # The cast to long int works around a bug in the HP C Compiler
6188 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6189 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6190 # This bug is HP SR number 8606223364.
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6192 $as_echo_n "checking size of long... " >&6; }
6193 if ${ac_cv_sizeof_long+:} false; then :
6194 $as_echo_n "(cached) " >&6
6195 else
6196 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6197
6198 else
6199 if test "$ac_cv_type_long" = yes; then
6200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6202 as_fn_error 77 "cannot compute sizeof (long)
6203 See \`config.log' for more details" "$LINENO" 5; }
6204 else
6205 ac_cv_sizeof_long=0
6206 fi
6207 fi
6208
6209 fi
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6211 $as_echo "$ac_cv_sizeof_long" >&6; }
6212
6213
6214
6215 cat >>confdefs.h <<_ACEOF
6216 #define SIZEOF_LONG $ac_cv_sizeof_long
6217 _ACEOF
6218
6219
6220 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6221 if test "x$ac_cv_type_long_long" = xyes; then :
6222
6223 cat >>confdefs.h <<_ACEOF
6224 #define HAVE_LONG_LONG 1
6225 _ACEOF
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 long long" >&5
6232 $as_echo_n "checking size of long long... " >&6; }
6233 if ${ac_cv_sizeof_long_long+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6237
6238 else
6239 if test "$ac_cv_type_long_long" = 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 (long long)
6243 See \`config.log' for more details" "$LINENO" 5; }
6244 else
6245 ac_cv_sizeof_long_long=0
6246 fi
6247 fi
6248
6249 fi
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6251 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6252
6253
6254
6255 cat >>confdefs.h <<_ACEOF
6256 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6257 _ACEOF
6258
6259
6260 fi
6261
6262 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6263 case $ac_cv_c_int8_t in #(
6264 no|yes) ;; #(
6265 *)
6266
6267 cat >>confdefs.h <<_ACEOF
6268 #define int8_t $ac_cv_c_int8_t
6269 _ACEOF
6270 ;;
6271 esac
6272
6273 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6274 case $ac_cv_c_int16_t in #(
6275 no|yes) ;; #(
6276 *)
6277
6278 cat >>confdefs.h <<_ACEOF
6279 #define int16_t $ac_cv_c_int16_t
6280 _ACEOF
6281 ;;
6282 esac
6283
6284 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6285 case $ac_cv_c_int32_t in #(
6286 no|yes) ;; #(
6287 *)
6288
6289 cat >>confdefs.h <<_ACEOF
6290 #define int32_t $ac_cv_c_int32_t
6291 _ACEOF
6292 ;;
6293 esac
6294
6295 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6296 case $ac_cv_c_int64_t in #(
6297 no|yes) ;; #(
6298 *)
6299
6300 cat >>confdefs.h <<_ACEOF
6301 #define int64_t $ac_cv_c_int64_t
6302 _ACEOF
6303 ;;
6304 esac
6305
6306
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6308 $as_echo_n "checking for unsigned long long int... " >&6; }
6309 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 ac_cv_type_unsigned_long_long_int=yes
6313 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6316
6317 /* For now, do not test the preprocessor; as of 2007 there are too many
6318 implementations with broken preprocessors. Perhaps this can
6319 be revisited in 2012. In the meantime, code should not expect
6320 #if to work with literals wider than 32 bits. */
6321 /* Test literals. */
6322 long long int ll = 9223372036854775807ll;
6323 long long int nll = -9223372036854775807LL;
6324 unsigned long long int ull = 18446744073709551615ULL;
6325 /* Test constant expressions. */
6326 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6327 ? 1 : -1)];
6328 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6329 ? 1 : -1)];
6330 int i = 63;
6331 int
6332 main ()
6333 {
6334 /* Test availability of runtime routines for shift and division. */
6335 long long int llmax = 9223372036854775807ll;
6336 unsigned long long int ullmax = 18446744073709551615ull;
6337 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6338 | (llmax / ll) | (llmax % ll)
6339 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6340 | (ullmax / ull) | (ullmax % ull));
6341 ;
6342 return 0;
6343 }
6344
6345 _ACEOF
6346 if ac_fn_cxx_try_link "$LINENO"; then :
6347
6348 else
6349 ac_cv_type_unsigned_long_long_int=no
6350 fi
6351 rm -f core conftest.err conftest.$ac_objext \
6352 conftest$ac_exeext conftest.$ac_ext
6353 fi
6354 fi
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6356 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6357 if test $ac_cv_type_unsigned_long_long_int = yes; then
6358
6359 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6360
6361 fi
6362
6363
6364
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6366 $as_echo_n "checking for long long int... " >&6; }
6367 if ${ac_cv_type_long_long_int+:} false; then :
6368 $as_echo_n "(cached) " >&6
6369 else
6370 ac_cv_type_long_long_int=yes
6371 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6372 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6373 if test $ac_cv_type_long_long_int = yes; then
6374 if test "$cross_compiling" = yes; then :
6375 :
6376 else
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6379 #include <limits.h>
6380 #ifndef LLONG_MAX
6381 # define HALF \
6382 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6383 # define LLONG_MAX (HALF - 1 + HALF)
6384 #endif
6385 int
6386 main ()
6387 {
6388 long long int n = 1;
6389 int i;
6390 for (i = 0; ; i++)
6391 {
6392 long long int m = n << i;
6393 if (m >> i != n)
6394 return 1;
6395 if (LLONG_MAX / 2 < m)
6396 break;
6397 }
6398 return 0;
6399 ;
6400 return 0;
6401 }
6402 _ACEOF
6403 if ac_fn_cxx_try_run "$LINENO"; then :
6404
6405 else
6406 ac_cv_type_long_long_int=no
6407 fi
6408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6409 conftest.$ac_objext conftest.beam conftest.$ac_ext
6410 fi
6411
6412 fi
6413 fi
6414 fi
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6416 $as_echo "$ac_cv_type_long_long_int" >&6; }
6417 if test $ac_cv_type_long_long_int = yes; then
6418
6419 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6420
6421 fi
6422
6423
6424
6425 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6426 if test "x$ac_cv_type_intmax_t" = xyes; then :
6427
6428 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6429
6430 else
6431 test $ac_cv_type_long_long_int = yes \
6432 && ac_type='long long int' \
6433 || ac_type='long int'
6434
6435 cat >>confdefs.h <<_ACEOF
6436 #define intmax_t $ac_type
6437 _ACEOF
6438
6439 fi
6440
6441
6442
6443 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6444 if test "x$ac_cv_type_intptr_t" = xyes; then :
6445
6446 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6447
6448 else
6449 for ac_type in 'int' 'long int' 'long long int'; do
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452 $ac_includes_default
6453 int
6454 main ()
6455 {
6456 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6457 test_array [0] = 0;
6458 return test_array [0];
6459
6460 ;
6461 return 0;
6462 }
6463 _ACEOF
6464 if ac_fn_cxx_try_compile "$LINENO"; then :
6465
6466 cat >>confdefs.h <<_ACEOF
6467 #define intptr_t $ac_type
6468 _ACEOF
6469
6470 ac_type=
6471 fi
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473 test -z "$ac_type" && break
6474 done
6475 fi
6476
6477
6478 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6479 case $ac_cv_c_uint8_t in #(
6480 no|yes) ;; #(
6481 *)
6482
6483 $as_echo "#define _UINT8_T 1" >>confdefs.h
6484
6485
6486 cat >>confdefs.h <<_ACEOF
6487 #define uint8_t $ac_cv_c_uint8_t
6488 _ACEOF
6489 ;;
6490 esac
6491
6492 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6493 case $ac_cv_c_uint16_t in #(
6494 no|yes) ;; #(
6495 *)
6496
6497
6498 cat >>confdefs.h <<_ACEOF
6499 #define uint16_t $ac_cv_c_uint16_t
6500 _ACEOF
6501 ;;
6502 esac
6503
6504 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6505 case $ac_cv_c_uint32_t in #(
6506 no|yes) ;; #(
6507 *)
6508
6509 $as_echo "#define _UINT32_T 1" >>confdefs.h
6510
6511
6512 cat >>confdefs.h <<_ACEOF
6513 #define uint32_t $ac_cv_c_uint32_t
6514 _ACEOF
6515 ;;
6516 esac
6517
6518 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6519 case $ac_cv_c_uint64_t in #(
6520 no|yes) ;; #(
6521 *)
6522
6523 $as_echo "#define _UINT64_T 1" >>confdefs.h
6524
6525
6526 cat >>confdefs.h <<_ACEOF
6527 #define uint64_t $ac_cv_c_uint64_t
6528 _ACEOF
6529 ;;
6530 esac
6531
6532
6533
6534 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6535 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6536
6537 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6538
6539 else
6540 test $ac_cv_type_unsigned_long_long_int = yes \
6541 && ac_type='unsigned long long int' \
6542 || ac_type='unsigned long int'
6543
6544 cat >>confdefs.h <<_ACEOF
6545 #define uintmax_t $ac_type
6546 _ACEOF
6547
6548 fi
6549
6550
6551
6552 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6553 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6554
6555 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6556
6557 else
6558 for ac_type in 'unsigned int' 'unsigned long int' \
6559 'unsigned long long int'; do
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6562 $ac_includes_default
6563 int
6564 main ()
6565 {
6566 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6567 test_array [0] = 0;
6568 return test_array [0];
6569
6570 ;
6571 return 0;
6572 }
6573 _ACEOF
6574 if ac_fn_cxx_try_compile "$LINENO"; then :
6575
6576 cat >>confdefs.h <<_ACEOF
6577 #define uintptr_t $ac_type
6578 _ACEOF
6579
6580 ac_type=
6581 fi
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 test -z "$ac_type" && break
6584 done
6585 fi
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6601 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6602 fi
6603
6604 # check what underlying integer type int64_t uses
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6606 $as_echo_n "checking for int64_t underlying type... " >&6; }
6607 if ${ac_cv_int64_t_type+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6613
6614 #ifdef HAVE_STDINT_H
6615 #include <stdint.h>
6616 #endif
6617 template <typename T> struct X { };
6618 template <>
6619 struct X<long> { typedef long t; };
6620
6621 int
6622 main ()
6623 {
6624 X<int64_t>::t x;
6625 ;
6626 return 0;
6627 }
6628 _ACEOF
6629 if ac_fn_cxx_try_compile "$LINENO"; then :
6630 ac_cv_int64_t_type=long
6631 else
6632 ac_cv_int64_t_type="long long"
6633 fi
6634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 fi
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6637 $as_echo "$ac_cv_int64_t_type" >&6; }
6638 if test "$ac_cv_int64_t_type" = "long"; then
6639
6640 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6641
6642 else
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6645
6646 #ifdef HAVE_STDINT_H
6647 #include <stdint.h>
6648 #endif
6649 template <typename T> struct X { };
6650 template <>
6651 struct X<long long> { typedef long long t; };
6652
6653 int
6654 main ()
6655 {
6656 X<int64_t>::t x;
6657 ;
6658 return 0;
6659 }
6660 _ACEOF
6661 if ac_fn_cxx_try_compile "$LINENO"; then :
6662
6663 else
6664 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6665 fi
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 fi
6668
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6670 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6671 if ${ac_cv_std_swap_in_utility+:} false; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6677
6678 #include <utility>
6679
6680 int
6681 main ()
6682 {
6683 int a, b; std::swap(a,b);
6684 ;
6685 return 0;
6686 }
6687 _ACEOF
6688 if ac_fn_cxx_try_compile "$LINENO"; then :
6689 ac_cv_std_swap_in_utility=yes
6690 else
6691 ac_cv_std_swap_in_utility=no
6692 fi
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 fi
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6696 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6697 if test $ac_cv_std_swap_in_utility = yes; then
6698
6699 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6700
6701 fi
6702
6703 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6704 # If the host compiler is affected by the bug, and we build with optimization
6705 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6706 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6707 # Since there is no reliable feature check for the presence of this bug,
6708 # we simply use a GCC version number check. (This should never trigger for
6709 # stages 2 or 3 of a native bootstrap.)
6710 aliasing_flags=
6711 if test "$GCC" = yes; then
6712 saved_CXXFLAGS="$CXXFLAGS"
6713
6714 # The following test compilation will succeed if and only if $CXX accepts
6715 # -fno-strict-aliasing *and* is older than GCC 4.3.
6716 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6718 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721
6722 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6723 #error compiler not affected by placement new aliasing bug
6724 #endif
6725
6726 _ACEOF
6727 if ac_fn_cxx_try_compile "$LINENO"; then :
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6729 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6730 else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6733 fi
6734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735
6736 CXXFLAGS="$saved_CXXFLAGS"
6737 fi
6738
6739
6740
6741
6742 # ---------------------
6743 # Warnings and checking
6744 # ---------------------
6745
6746 # Check $CC warning features (if it's GCC).
6747 # We want to use -pedantic, but we don't want warnings about
6748 # * 'long long'
6749 # * variadic macros
6750 # * overlong strings
6751 # * C++11 narrowing conversions in { }
6752 # So, we only use -pedantic if we can disable those warnings.
6753
6754 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6755 # Check whether --enable-build-format-warnings was given.
6756 if test "${enable_build_format_warnings+set}" = set; then :
6757 enableval=$enable_build_format_warnings;
6758 else
6759 enable_build_format_warnings=yes
6760 fi
6761
6762 if test $enable_build_format_warnings = no; then :
6763 wf_opt=-Wno-format
6764 else
6765 wf_opt=
6766 fi
6767 ac_ext=cpp
6768 ac_cpp='$CXXCPP $CPPFLAGS'
6769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6772
6773 loose_warn=
6774 save_CXXFLAGS="$CXXFLAGS"
6775 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6776 # Do the check with the no- prefix removed since gcc silently
6777 # accepts any -Wno-* option on purpose
6778 case $real_option in
6779 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6780 *) option=$real_option ;;
6781 esac
6782 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6783
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6785 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6786 if eval \${$as_acx_Woption+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 CXXFLAGS="$option"
6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h. */
6792
6793 int
6794 main ()
6795 {
6796
6797 ;
6798 return 0;
6799 }
6800 _ACEOF
6801 if ac_fn_cxx_try_compile "$LINENO"; then :
6802 eval "$as_acx_Woption=yes"
6803 else
6804 eval "$as_acx_Woption=no"
6805 fi
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807
6808 fi
6809 eval ac_res=\$$as_acx_Woption
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6811 $as_echo "$ac_res" >&6; }
6812 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6813 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6814 fi
6815 done
6816 CXXFLAGS="$save_CXXFLAGS"
6817 ac_ext=cpp
6818 ac_cpp='$CXXCPP $CPPFLAGS'
6819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6822
6823
6824
6825 ac_ext=c
6826 ac_cpp='$CPP $CPPFLAGS'
6827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6830
6831 c_loose_warn=
6832 save_CFLAGS="$CFLAGS"
6833 for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6834 # Do the check with the no- prefix removed since gcc silently
6835 # accepts any -Wno-* option on purpose
6836 case $real_option in
6837 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6838 *) option=$real_option ;;
6839 esac
6840 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6841
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6843 $as_echo_n "checking whether $CC supports $option... " >&6; }
6844 if eval \${$as_acx_Woption+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 CFLAGS="$option"
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850
6851 int
6852 main ()
6853 {
6854
6855 ;
6856 return 0;
6857 }
6858 _ACEOF
6859 if ac_fn_c_try_compile "$LINENO"; then :
6860 eval "$as_acx_Woption=yes"
6861 else
6862 eval "$as_acx_Woption=no"
6863 fi
6864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865
6866 fi
6867 eval ac_res=\$$as_acx_Woption
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6869 $as_echo "$ac_res" >&6; }
6870 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6871 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6872 fi
6873 done
6874 CFLAGS="$save_CFLAGS"
6875 ac_ext=cpp
6876 ac_cpp='$CXXCPP $CPPFLAGS'
6877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6880
6881
6882 ac_ext=cpp
6883 ac_cpp='$CXXCPP $CPPFLAGS'
6884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6887
6888 strict_warn=
6889 save_CXXFLAGS="$CXXFLAGS"
6890 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6891 # Do the check with the no- prefix removed since gcc silently
6892 # accepts any -Wno-* option on purpose
6893 case $real_option in
6894 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6895 *) option=$real_option ;;
6896 esac
6897 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6898
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6900 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6901 if eval \${$as_acx_Woption+:} false; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 CXXFLAGS="$option"
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6907
6908 int
6909 main ()
6910 {
6911
6912 ;
6913 return 0;
6914 }
6915 _ACEOF
6916 if ac_fn_cxx_try_compile "$LINENO"; then :
6917 eval "$as_acx_Woption=yes"
6918 else
6919 eval "$as_acx_Woption=no"
6920 fi
6921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922
6923 fi
6924 eval ac_res=\$$as_acx_Woption
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6926 $as_echo "$ac_res" >&6; }
6927 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6928 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6929 fi
6930 done
6931 CXXFLAGS="$save_CXXFLAGS"
6932 ac_ext=cpp
6933 ac_cpp='$CXXCPP $CPPFLAGS'
6934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6937
6938
6939 ac_ext=c
6940 ac_cpp='$CPP $CPPFLAGS'
6941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6944
6945 c_strict_warn=
6946 save_CFLAGS="$CFLAGS"
6947 for real_option in -Wold-style-definition -Wc++-compat; do
6948 # Do the check with the no- prefix removed since gcc silently
6949 # accepts any -Wno-* option on purpose
6950 case $real_option in
6951 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6952 *) option=$real_option ;;
6953 esac
6954 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6955
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6957 $as_echo_n "checking whether $CC supports $option... " >&6; }
6958 if eval \${$as_acx_Woption+:} false; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 CFLAGS="$option"
6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6964
6965 int
6966 main ()
6967 {
6968
6969 ;
6970 return 0;
6971 }
6972 _ACEOF
6973 if ac_fn_c_try_compile "$LINENO"; then :
6974 eval "$as_acx_Woption=yes"
6975 else
6976 eval "$as_acx_Woption=no"
6977 fi
6978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6979
6980 fi
6981 eval ac_res=\$$as_acx_Woption
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6983 $as_echo "$ac_res" >&6; }
6984 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6985 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6986 fi
6987 done
6988 CFLAGS="$save_CFLAGS"
6989 ac_ext=cpp
6990 ac_cpp='$CXXCPP $CPPFLAGS'
6991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6994
6995
6996 ac_ext=cpp
6997 ac_cpp='$CXXCPP $CPPFLAGS'
6998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7001
7002 # Do the check with the no- prefix removed from the warning options
7003 # since gcc silently accepts any -Wno-* option on purpose
7004 if test "$GXX" = yes; then :
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7006 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7007 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7010 save_CXXFLAGS="$CXXFLAGS"
7011 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7014
7015 int
7016 main ()
7017 {
7018
7019 ;
7020 return 0;
7021 }
7022 _ACEOF
7023 if ac_fn_cxx_try_compile "$LINENO"; then :
7024 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7025 else
7026 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7027 fi
7028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7029 CXXFLAGS="$save_CXXFLAGS"
7030 fi
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7032 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7033 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7034 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7035 fi
7036
7037 fi
7038 ac_ext=cpp
7039 ac_cpp='$CXXCPP $CPPFLAGS'
7040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7043
7044
7045 ac_ext=cpp
7046 ac_cpp='$CXXCPP $CPPFLAGS'
7047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7050
7051 # Check whether --enable-werror-always was given.
7052 if test "${enable_werror_always+set}" = set; then :
7053 enableval=$enable_werror_always;
7054 else
7055 enable_werror_always=no
7056 fi
7057
7058 if test $enable_werror_always = yes; then :
7059 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7060 fi
7061
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
7070 # The above macros do nothing if the compiler is not GCC. However, the
7071 # Makefile has more goo to add other flags, so these variables are used
7072 # to enable warnings only for GCC.
7073 warn_cflags=
7074 warn_cxxflags=
7075 if test "x$GCC" = "xyes"; then
7076 warn_cflags='$(GCC_WARN_CFLAGS)'
7077 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7078 fi
7079
7080
7081
7082 # Disable exceptions and RTTI if building with g++
7083 ac_ext=c
7084 ac_cpp='$CPP $CPPFLAGS'
7085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7088
7089 noexception_flags=
7090 save_CFLAGS="$CFLAGS"
7091 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7092 # Do the check with the no- prefix removed since gcc silently
7093 # accepts any -Wno-* option on purpose
7094 case $real_option in
7095 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7096 *) option=$real_option ;;
7097 esac
7098 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7099
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7101 $as_echo_n "checking whether $CC supports $option... " >&6; }
7102 if eval \${$as_acx_Woption+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 CFLAGS="$option"
7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7108
7109 int
7110 main ()
7111 {
7112
7113 ;
7114 return 0;
7115 }
7116 _ACEOF
7117 if ac_fn_c_try_compile "$LINENO"; then :
7118 eval "$as_acx_Woption=yes"
7119 else
7120 eval "$as_acx_Woption=no"
7121 fi
7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123
7124 fi
7125 eval ac_res=\$$as_acx_Woption
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7127 $as_echo "$ac_res" >&6; }
7128 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7129 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7130 fi
7131 done
7132 CFLAGS="$save_CFLAGS"
7133 ac_ext=cpp
7134 ac_cpp='$CXXCPP $CPPFLAGS'
7135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7138
7139
7140
7141 # Enable expensive internal checks
7142 is_release=
7143 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7144 is_release=yes
7145 fi
7146
7147 # Check whether --enable-checking was given.
7148 if test "${enable_checking+set}" = set; then :
7149 enableval=$enable_checking; ac_checking_flags="${enableval}"
7150 else
7151
7152 # Determine the default checks.
7153 if test x$is_release = x ; then
7154 ac_checking_flags=yes,extra
7155 else
7156 ac_checking_flags=release
7157 fi
7158 fi
7159
7160 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7161 for check in release $ac_checking_flags
7162 do
7163 case $check in
7164 # these set all the flags to specific states
7165 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7166 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7167 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7168 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7169 ac_tree_checking=1 ; ac_valgrind_checking= ;
7170 ac_types_checking=1 ;;
7171 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7172 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7173 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7174 ac_rtlflag_checking= ; ac_runtime_checking= ;
7175 ac_tree_checking= ; ac_valgrind_checking= ;
7176 ac_types_checking= ;;
7177 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7178 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7179 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7180 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7181 ac_tree_checking=1 ; ac_valgrind_checking= ;
7182 ac_types_checking=1 ;;
7183 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7184 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7185 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7186 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7187 ac_tree_checking= ; ac_valgrind_checking= ;
7188 ac_types_checking= ;;
7189 # these enable particular checks
7190 assert) ac_assert_checking=1 ;;
7191 df) ac_df_checking=1 ;;
7192 extra) ac_extra_checking=1 ;;
7193 fold) ac_fold_checking=1 ;;
7194 gc) ac_gc_checking=1 ;;
7195 gcac) ac_gc_always_collect=1 ;;
7196 gimple) ac_gimple_checking=1 ;;
7197 misc) ac_checking=1 ;;
7198 rtl) ac_rtl_checking=1 ;;
7199 rtlflag) ac_rtlflag_checking=1 ;;
7200 runtime) ac_runtime_checking=1 ;;
7201 tree) ac_tree_checking=1 ;;
7202 types) ac_types_checking=1 ;;
7203 valgrind) ac_valgrind_checking=1 ;;
7204 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7205 esac
7206 done
7207 IFS="$ac_save_IFS"
7208
7209 nocommon_flag=""
7210 if test x$ac_checking != x ; then
7211
7212 $as_echo "#define CHECKING_P 1" >>confdefs.h
7213
7214 nocommon_flag=-fno-common
7215 else
7216 $as_echo "#define CHECKING_P 0" >>confdefs.h
7217
7218 fi
7219
7220 if test x$ac_extra_checking != x ; then
7221
7222 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7223
7224 else
7225 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7226
7227 fi
7228 if test x$ac_df_checking != x ; then
7229
7230 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7231
7232 fi
7233 if test x$ac_assert_checking != x ; then
7234
7235 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7236
7237 fi
7238 if test x$ac_gimple_checking != x ; then
7239
7240 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7241
7242 fi
7243
7244 if test x$ac_runtime_checking != x ; then
7245
7246 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7247
7248 fi
7249 if test x$ac_tree_checking != x ; then
7250
7251 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7252
7253 TREECHECKING=yes
7254 fi
7255 if test x$ac_types_checking != x ; then
7256
7257 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7258
7259 fi
7260
7261 if test x$ac_rtl_checking != x ; then
7262
7263 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7264
7265 fi
7266 if test x$ac_rtlflag_checking != x ; then
7267
7268 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7269
7270 fi
7271 if test x$ac_gc_checking != x ; then
7272
7273 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7274
7275 fi
7276 if test x$ac_gc_always_collect != x ; then
7277
7278 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7279
7280 fi
7281 if test x$ac_fold_checking != x ; then
7282
7283 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7284
7285 fi
7286 valgrind_path_defines=
7287 valgrind_command=
7288
7289 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7290 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7291 have_valgrind_h=yes
7292 else
7293 have_valgrind_h=no
7294 fi
7295
7296
7297
7298 # It is certainly possible that there's valgrind but no valgrind.h.
7299 # GCC relies on making annotations so we must have both.
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7301 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7304 #include <valgrind/memcheck.h>
7305 #ifndef VALGRIND_DISCARD
7306 #error VALGRIND_DISCARD not defined
7307 #endif
7308 _ACEOF
7309 if ac_fn_cxx_try_cpp "$LINENO"; then :
7310 gcc_cv_header_valgrind_memcheck_h=yes
7311 else
7312 gcc_cv_header_valgrind_memcheck_h=no
7313 fi
7314 rm -f conftest.err conftest.i conftest.$ac_ext
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7316 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7318 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7321 #include <memcheck.h>
7322 #ifndef VALGRIND_DISCARD
7323 #error VALGRIND_DISCARD not defined
7324 #endif
7325 _ACEOF
7326 if ac_fn_cxx_try_cpp "$LINENO"; then :
7327 gcc_cv_header_memcheck_h=yes
7328 else
7329 gcc_cv_header_memcheck_h=no
7330 fi
7331 rm -f conftest.err conftest.i conftest.$ac_ext
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7333 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7334 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7335
7336 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7337
7338 fi
7339 if test $gcc_cv_header_memcheck_h = yes; then
7340
7341 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7342
7343 fi
7344
7345 if test x$ac_valgrind_checking != x ; then
7346
7347 # Prepare PATH_SEPARATOR.
7348 # The user is always right.
7349 if test "${PATH_SEPARATOR+set}" != set; then
7350 echo "#! /bin/sh" >conf$$.sh
7351 echo "exit 0" >>conf$$.sh
7352 chmod +x conf$$.sh
7353 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7354 PATH_SEPARATOR=';'
7355 else
7356 PATH_SEPARATOR=:
7357 fi
7358 rm -f conf$$.sh
7359 fi
7360
7361 # Find out how to test for executable files. Don't use a zero-byte file,
7362 # as systems may use methods other than mode bits to determine executability.
7363 cat >conf$$.file <<_ASEOF
7364 #! /bin/sh
7365 exit 0
7366 _ASEOF
7367 chmod +x conf$$.file
7368 if test -x conf$$.file >/dev/null 2>&1; then
7369 ac_executable_p="test -x"
7370 else
7371 ac_executable_p="test -f"
7372 fi
7373 rm -f conf$$.file
7374
7375 # Extract the first word of "valgrind", so it can be a program name with args.
7376 set dummy valgrind; ac_word=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if ${ac_cv_path_valgrind_path+:} false; then :
7380 $as_echo_n "(cached) " >&6
7381 else
7382 case "$valgrind_path" in
7383 [\\/]* | ?:[\\/]*)
7384 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7385 ;;
7386 *)
7387 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7388 for ac_dir in $PATH; do
7389 IFS="$ac_save_IFS"
7390 test -z "$ac_dir" && ac_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7393 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7394 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7395 break 2
7396 fi
7397 fi
7398 done
7399 done
7400 IFS="$ac_save_IFS"
7401 ;;
7402 esac
7403 fi
7404 valgrind_path="$ac_cv_path_valgrind_path"
7405 if test -n "$valgrind_path"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7407 $as_echo "$valgrind_path" >&6; }
7408 else
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7411 fi
7412
7413 if test "x$valgrind_path" = "x" \
7414 || (test $have_valgrind_h = no \
7415 && test $gcc_cv_header_memcheck_h = no \
7416 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7417 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7418 fi
7419 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7420 valgrind_command="$valgrind_path -q"
7421
7422 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7423
7424 fi
7425
7426
7427
7428 # Enable code coverage collection
7429 # Check whether --enable-coverage was given.
7430 if test "${enable_coverage+set}" = set; then :
7431 enableval=$enable_coverage; case "${enableval}" in
7432 yes|noopt)
7433 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7434 ;;
7435 opt)
7436 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7437 ;;
7438 no)
7439 # a.k.a. --disable-coverage
7440 coverage_flags=""
7441 ;;
7442 *)
7443 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7444 ;;
7445 esac
7446 else
7447 coverage_flags=""
7448 fi
7449
7450
7451
7452 # Check whether --enable-gather-detailed-mem-stats was given.
7453 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7454 enableval=$enable_gather_detailed_mem_stats;
7455 else
7456 enable_gather_detailed_mem_stats=no
7457 fi
7458
7459 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7460
7461 cat >>confdefs.h <<_ACEOF
7462 #define GATHER_STATISTICS $gather_stats
7463 _ACEOF
7464
7465
7466 # Check whether --enable-valgrind-annotations was given.
7467 if test "${enable_valgrind_annotations+set}" = set; then :
7468 enableval=$enable_valgrind_annotations;
7469 else
7470 enable_valgrind_annotations=no
7471 fi
7472
7473 if test x$enable_valgrind_annotations != xno \
7474 || test x$ac_valgrind_checking != x; then
7475 if (test $have_valgrind_h = no \
7476 && test $gcc_cv_header_memcheck_h = no \
7477 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7478 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7479 fi
7480
7481 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7482
7483 fi
7484
7485 # -------------------------------
7486 # Miscenalleous configure options
7487 # -------------------------------
7488
7489 # With stabs
7490
7491 # Check whether --with-stabs was given.
7492 if test "${with_stabs+set}" = set; then :
7493 withval=$with_stabs; stabs="$with_stabs"
7494 else
7495 stabs=no
7496 fi
7497
7498
7499 # Determine whether or not multilibs are enabled.
7500 # Check whether --enable-multilib was given.
7501 if test "${enable_multilib+set}" = set; then :
7502 enableval=$enable_multilib;
7503 else
7504 enable_multilib=yes
7505 fi
7506
7507
7508
7509 # Determine whether or not multiarch is enabled.
7510 # Check whether --enable-multiarch was given.
7511 if test "${enable_multiarch+set}" = set; then :
7512 enableval=$enable_multiarch; case "${enableval}" in
7513 yes|no|auto) enable_multiarch=$enableval;;
7514 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7515 esac
7516 else
7517 enable_multiarch=auto
7518 fi
7519
7520 if test x${enable_multiarch} = xauto; then
7521 if test x${with_native_system_header_dir} != x; then
7522 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7523 enable_multiarch=no
7524 fi
7525 if test x$host != x$target && test "x$with_sysroot" = x; then
7526 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7527 enable_multiarch=no
7528 fi
7529 fi
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7531 $as_echo_n "checking for multiarch configuration... " >&6; }
7532
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7534 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7535
7536 # needed for setting the multiarch name for soft-float/hard-float ABIs
7537
7538
7539
7540 # default stack clash protection guard size as power of twos in bytes.
7541 # Please keep these in sync with params.def.
7542 stk_clash_min=12
7543 stk_clash_max=30
7544
7545 # Keep the default value when the option is not used to 0, this allows us to
7546 # distinguish between the cases where the user specifially set a value via
7547 # configure and when the normal default value is used.
7548
7549 # Check whether --with-stack-clash-protection-guard-size was given.
7550 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7551 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7552 else
7553 DEFAULT_STK_CLASH_GUARD_SIZE=0
7554 fi
7555
7556 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7557 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7558 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7559 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
7560 fi
7561
7562
7563 cat >>confdefs.h <<_ACEOF
7564 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7565 _ACEOF
7566
7567
7568 # Enable __cxa_atexit for C++.
7569 # Check whether --enable-__cxa_atexit was given.
7570 if test "${enable___cxa_atexit+set}" = set; then :
7571 enableval=$enable___cxa_atexit;
7572 fi
7573
7574
7575 # Enable C extension for decimal float if target supports it.
7576
7577 # Check whether --enable-decimal-float was given.
7578 if test "${enable_decimal_float+set}" = set; then :
7579 enableval=$enable_decimal_float;
7580 case $enable_decimal_float in
7581 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7582 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7583 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7584 esac
7585
7586 else
7587
7588 case $target in
7589 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7590 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7591 i?86*-*-mingw* | x86_64*-*-mingw* | \
7592 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7593 enable_decimal_float=yes
7594 ;;
7595 *)
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7597 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7598 enable_decimal_float=no
7599 ;;
7600 esac
7601
7602 fi
7603
7604
7605 # x86's use BID format instead of DPD
7606 case x$enable_decimal_float in
7607 xyes)
7608 case $target in
7609 i?86*-*-* | x86_64*-*-*)
7610 enable_decimal_float=bid
7611 ;;
7612 *)
7613 enable_decimal_float=dpd
7614 ;;
7615 esac
7616 default_decimal_float=$enable_decimal_float
7617 ;;
7618 xno)
7619 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7620 # dependency on libdecnumber.
7621 default_decimal_float=dpd
7622 ;;
7623 esac
7624
7625
7626
7627
7628 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7629
7630 cat >>confdefs.h <<_ACEOF
7631 #define ENABLE_DECIMAL_FLOAT $dfp
7632 _ACEOF
7633
7634
7635 # Use default_decimal_float for dependency.
7636 enable_decimal_float=$default_decimal_float
7637
7638 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7639
7640 cat >>confdefs.h <<_ACEOF
7641 #define ENABLE_DECIMAL_BID_FORMAT $bid
7642 _ACEOF
7643
7644
7645 # Enable C extension for fixed-point arithmetic.
7646 # Check whether --enable-fixed-point was given.
7647 if test "${enable_fixed_point+set}" = set; then :
7648 enableval=$enable_fixed_point;
7649 else
7650
7651 case $target in
7652 arm*)
7653 enable_fixed_point=yes
7654 ;;
7655
7656 mips*-*-*)
7657 enable_fixed_point=yes
7658 ;;
7659 *)
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7661 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7662 enable_fixed_point=no
7663 ;;
7664 esac
7665
7666 fi
7667
7668
7669
7670 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7671
7672 cat >>confdefs.h <<_ACEOF
7673 #define ENABLE_FIXED_POINT $fixedpoint
7674 _ACEOF
7675
7676
7677 # Enable threads
7678 # Pass with no value to take the default
7679 # Pass with a value to specify a thread package
7680 # Check whether --enable-threads was given.
7681 if test "${enable_threads+set}" = set; then :
7682 enableval=$enable_threads;
7683 else
7684 enable_threads=''
7685 fi
7686
7687
7688 # Check whether --enable-tls was given.
7689 if test "${enable_tls+set}" = set; then :
7690 enableval=$enable_tls;
7691 case $enable_tls in
7692 yes | no) ;;
7693 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7694 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7695 esac
7696
7697 else
7698 enable_tls=''
7699 fi
7700
7701
7702 # Check whether --enable-vtable-verify was given.
7703 if test "${enable_vtable_verify+set}" = set; then :
7704 enableval=$enable_vtable_verify;
7705 else
7706 enable_vtable_verify=no
7707 fi
7708
7709 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7710
7711 cat >>confdefs.h <<_ACEOF
7712 #define ENABLE_VTABLE_VERIFY $vtable_verify
7713 _ACEOF
7714
7715
7716 # Check whether --enable-analyzer was given.
7717 if test "${enable_analyzer+set}" = set; then :
7718 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
7719 analyzer=0
7720 else
7721 analyzer=1
7722 fi
7723 else
7724 analyzer=1
7725 fi
7726
7727
7728 cat >>confdefs.h <<_ACEOF
7729 #define ENABLE_ANALYZER $analyzer
7730 _ACEOF
7731
7732
7733 # Check whether --enable-objc-gc was given.
7734 if test "${enable_objc_gc+set}" = set; then :
7735 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7736 objc_boehm_gc=''
7737 else
7738 objc_boehm_gc=1
7739 fi
7740 else
7741 objc_boehm_gc=''
7742 fi
7743
7744
7745
7746 # Check whether --with-dwarf2 was given.
7747 if test "${with_dwarf2+set}" = set; then :
7748 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7749 else
7750 dwarf2=no
7751 fi
7752
7753
7754 # Check whether --enable-shared was given.
7755 if test "${enable_shared+set}" = set; then :
7756 enableval=$enable_shared;
7757 case $enable_shared in
7758 yes | no) ;;
7759 *)
7760 enable_shared=no
7761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7762 for pkg in $enableval; do
7763 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7764 enable_shared=yes
7765 fi
7766 done
7767 IFS="$ac_save_ifs"
7768 ;;
7769 esac
7770
7771 else
7772 enable_shared=yes
7773 fi
7774
7775
7776
7777 # Check whether --enable-gcov was given.
7778 if test "${enable_gcov+set}" = set; then :
7779 enableval=$enable_gcov;
7780 else
7781 enable_gcov=yes
7782 fi
7783
7784
7785
7786
7787 # Check whether --with-specs was given.
7788 if test "${with_specs+set}" = set; then :
7789 withval=$with_specs; CONFIGURE_SPECS=$withval
7790 else
7791 CONFIGURE_SPECS=
7792
7793 fi
7794
7795
7796
7797
7798
7799 # Check whether --with-pkgversion was given.
7800 if test "${with_pkgversion+set}" = set; then :
7801 withval=$with_pkgversion; case "$withval" in
7802 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7803 no) PKGVERSION= ;;
7804 *) PKGVERSION="($withval) " ;;
7805 esac
7806 else
7807 PKGVERSION="(GCC) "
7808
7809 fi
7810
7811
7812
7813
7814
7815 # Check whether --with-bugurl was given.
7816 if test "${with_bugurl+set}" = set; then :
7817 withval=$with_bugurl; case "$withval" in
7818 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7819 no) BUGURL=
7820 ;;
7821 *) BUGURL="$withval"
7822 ;;
7823 esac
7824 else
7825 BUGURL="https://gcc.gnu.org/bugs/"
7826
7827 fi
7828
7829 case ${BUGURL} in
7830 "")
7831 REPORT_BUGS_TO=
7832 REPORT_BUGS_TEXI=
7833 ;;
7834 *)
7835 REPORT_BUGS_TO="<$BUGURL>"
7836 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7837 ;;
7838 esac;
7839
7840
7841
7842
7843 # Allow overriding the default URL for documentation
7844
7845 # Check whether --with-documentation-root-url was given.
7846 if test "${with_documentation_root_url+set}" = set; then :
7847 withval=$with_documentation_root_url; case "$withval" in
7848 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7849 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7850 *) DOCUMENTATION_ROOT_URL="$withval"
7851 ;;
7852 esac
7853 else
7854 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/gcc/"
7855
7856 fi
7857
7858
7859
7860 # Sanity check enable_languages in case someone does not run the toplevel
7861 # configure # script.
7862 # Check whether --enable-languages was given.
7863 if test "${enable_languages+set}" = set; then :
7864 enableval=$enable_languages; case ,${enable_languages}, in
7865 ,,|,yes,)
7866 # go safe -- we cannot be much sure without the toplevel
7867 # configure's
7868 # analysis of which target libs are present and usable
7869 enable_languages=c
7870 ;;
7871 *,all,*)
7872 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7873 ;;
7874 *,c,*)
7875 ;;
7876 *)
7877 enable_languages=c,${enable_languages}
7878 ;;
7879 esac
7880 else
7881 enable_languages=c
7882 fi
7883
7884
7885 # If top-level libada has been disabled, then wire in install-gnatlib
7886 # invocation with `make install', so that one can build and install
7887 # the library manually with `make -C gcc all gnatlib gnattools install'.
7888 if test x"$enable_libada" = xno; then
7889 gnat_install_lib=gnat-install-lib
7890 else
7891 gnat_install_lib=
7892 fi
7893
7894
7895 if test x"$enable_as_accelerator_for" != x; then
7896
7897 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7898
7899 enable_as_accelerator=yes
7900 case "${target}" in
7901 *-intelmicemul-*)
7902 # In this case we expect offload compiler to be built as native, so we
7903 # need to rename the driver to avoid clashes with host's drivers.
7904 program_transform_name="s&^&${target}-&" ;;
7905 esac
7906 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7907 program_transform_name=`echo $program_transform_name | sed $sedscript`
7908 accel_dir_suffix=/accel/${target_noncanonical}
7909 real_target_noncanonical=${enable_as_accelerator_for}
7910 fi
7911
7912
7913
7914
7915 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7916 tgt=`echo $tgt | sed 's/=.*//'`
7917
7918 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7919 enable_hsa=1
7920 else
7921 enable_offloading=1
7922 case "$tgt" in
7923 *-intelmicemul-*)
7924 omp_device_property=omp-device-properties-i386
7925 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7926 ;;
7927 gcn*-*)
7928 omp_device_property=omp-device-properties-gcn
7929 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7930 ;;
7931 nvptx*-*)
7932 omp_device_property=omp-device-properties-nvptx
7933 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7934 ;;
7935 esac
7936 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
7937 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
7938 fi
7939
7940 if test x"$offload_targets" = x; then
7941 offload_targets=$tgt
7942 else
7943 offload_targets="$offload_targets,$tgt"
7944 fi
7945 done
7946
7947
7948
7949
7950 cat >>confdefs.h <<_ACEOF
7951 #define OFFLOAD_TARGETS "$offload_targets"
7952 _ACEOF
7953
7954 if test x"$enable_offloading" != x; then
7955
7956 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7957
7958 else
7959
7960 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7961
7962 fi
7963
7964 if test x"$enable_hsa" = x1 ; then
7965
7966 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7967
7968 fi
7969
7970
7971 # Check whether --with-multilib-list was given.
7972 if test "${with_multilib_list+set}" = set; then :
7973 withval=$with_multilib_list; :
7974 else
7975 with_multilib_list=default
7976 fi
7977
7978
7979 # -------------------------
7980 # Checks for other programs
7981 # -------------------------
7982
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7984 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7985 set x ${MAKE-make}
7986 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7987 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990 cat >conftest.make <<\_ACEOF
7991 SHELL = /bin/sh
7992 all:
7993 @echo '@@@%%%=$(MAKE)=@@@%%%'
7994 _ACEOF
7995 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7996 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7997 *@@@%%%=?*=@@@%%%*)
7998 eval ac_cv_prog_make_${ac_make}_set=yes;;
7999 *)
8000 eval ac_cv_prog_make_${ac_make}_set=no;;
8001 esac
8002 rm -f conftest.make
8003 fi
8004 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8006 $as_echo "yes" >&6; }
8007 SET_MAKE=
8008 else
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8011 SET_MAKE="MAKE=${MAKE-make}"
8012 fi
8013
8014
8015 # Find some useful tools
8016 for ac_prog in gawk mawk nawk awk
8017 do
8018 # Extract the first word of "$ac_prog", so it can be a program name with args.
8019 set dummy $ac_prog; ac_word=$2
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021 $as_echo_n "checking for $ac_word... " >&6; }
8022 if ${ac_cv_prog_AWK+:} false; then :
8023 $as_echo_n "(cached) " >&6
8024 else
8025 if test -n "$AWK"; then
8026 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8027 else
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8030 do
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8035 ac_cv_prog_AWK="$ac_prog"
8036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 break 2
8038 fi
8039 done
8040 done
8041 IFS=$as_save_IFS
8042
8043 fi
8044 fi
8045 AWK=$ac_cv_prog_AWK
8046 if test -n "$AWK"; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8048 $as_echo "$AWK" >&6; }
8049 else
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8052 fi
8053
8054
8055 test -n "$AWK" && break
8056 done
8057
8058 # We need awk to create options.c and options.h.
8059 # Bail out if it's missing.
8060 case ${AWK} in
8061 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8062 esac
8063
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8065 $as_echo_n "checking whether ln -s works... " >&6; }
8066 if ${gcc_cv_prog_LN_S+:} false; then :
8067 $as_echo_n "(cached) " >&6
8068 else
8069 rm -f conftestdata_t
8070 echo >conftestdata_f
8071 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8072 then
8073 gcc_cv_prog_LN_S="ln -s"
8074 else
8075 if ln conftestdata_f conftestdata_t 2>/dev/null
8076 then
8077 gcc_cv_prog_LN_S=ln
8078 else
8079 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8080 then
8081 gcc_cv_prog_LN_S="cp -p"
8082 else
8083 gcc_cv_prog_LN_S=cp
8084 fi
8085 fi
8086 fi
8087 rm -f conftestdata_f conftestdata_t
8088
8089 fi
8090 LN_S="$gcc_cv_prog_LN_S"
8091 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8093 $as_echo "yes" >&6; }
8094 else
8095 if test "$gcc_cv_prog_LN_S" = "ln"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8097 $as_echo "no, using ln" >&6; }
8098 else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8100 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8101 fi
8102 fi
8103
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8105 $as_echo_n "checking whether ln works... " >&6; }
8106 if ${acx_cv_prog_LN+:} false; then :
8107 $as_echo_n "(cached) " >&6
8108 else
8109 rm -f conftestdata_t
8110 echo >conftestdata_f
8111 if ln conftestdata_f conftestdata_t 2>/dev/null
8112 then
8113 acx_cv_prog_LN=ln
8114 else
8115 acx_cv_prog_LN=no
8116 fi
8117 rm -f conftestdata_f conftestdata_t
8118
8119 fi
8120 if test $acx_cv_prog_LN = no; then
8121 LN="$LN_S"
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8123 $as_echo "no, using $LN" >&6; }
8124 else
8125 LN="$acx_cv_prog_LN"
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8127 $as_echo "yes" >&6; }
8128 fi
8129
8130 if test -n "$ac_tool_prefix"; then
8131 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8132 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if ${ac_cv_prog_RANLIB+:} false; then :
8136 $as_echo_n "(cached) " >&6
8137 else
8138 if test -n "$RANLIB"; then
8139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8140 else
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8143 do
8144 IFS=$as_save_IFS
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8148 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 break 2
8151 fi
8152 done
8153 done
8154 IFS=$as_save_IFS
8155
8156 fi
8157 fi
8158 RANLIB=$ac_cv_prog_RANLIB
8159 if test -n "$RANLIB"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8161 $as_echo "$RANLIB" >&6; }
8162 else
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8165 fi
8166
8167
8168 fi
8169 if test -z "$ac_cv_prog_RANLIB"; then
8170 ac_ct_RANLIB=$RANLIB
8171 # Extract the first word of "ranlib", so it can be a program name with args.
8172 set dummy ranlib; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 if test -n "$ac_ct_RANLIB"; then
8179 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8183 do
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188 ac_cv_prog_ac_ct_RANLIB="ranlib"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 break 2
8191 fi
8192 done
8193 done
8194 IFS=$as_save_IFS
8195
8196 fi
8197 fi
8198 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8199 if test -n "$ac_ct_RANLIB"; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8201 $as_echo "$ac_ct_RANLIB" >&6; }
8202 else
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8205 fi
8206
8207 if test "x$ac_ct_RANLIB" = x; then
8208 RANLIB=":"
8209 else
8210 case $cross_compiling:$ac_tool_warned in
8211 yes:)
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8214 ac_tool_warned=yes ;;
8215 esac
8216 RANLIB=$ac_ct_RANLIB
8217 fi
8218 else
8219 RANLIB="$ac_cv_prog_RANLIB"
8220 fi
8221
8222 ranlib_flags=""
8223
8224
8225 # Find a good install program. We prefer a C program (faster),
8226 # so one script is as good as another. But avoid the broken or
8227 # incompatible versions:
8228 # SysV /etc/install, /usr/sbin/install
8229 # SunOS /usr/etc/install
8230 # IRIX /sbin/install
8231 # AIX /bin/install
8232 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8233 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8234 # ./install, which can be erroneously created by make from ./install.sh.
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8236 $as_echo_n "checking for a BSD compatible install... " >&6; }
8237 if test -z "$INSTALL"; then
8238 if ${ac_cv_path_install+:} false; then :
8239 $as_echo_n "(cached) " >&6
8240 else
8241 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8242 for ac_dir in $PATH; do
8243 # Account for people who put trailing slashes in PATH elements.
8244 case "$ac_dir/" in
8245 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8246 *)
8247 # OSF1 and SCO ODT 3.0 have their own names for install.
8248 for ac_prog in ginstall scoinst install; do
8249 if test -f $ac_dir/$ac_prog; then
8250 if test $ac_prog = install &&
8251 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8252 # AIX install. It has an incompatible calling convention.
8253 # OSF/1 installbsd also uses dspmsg, but is usable.
8254 :
8255 else
8256 ac_cv_path_install="$ac_dir/$ac_prog -c"
8257 break 2
8258 fi
8259 fi
8260 done
8261 ;;
8262 esac
8263 done
8264 IFS="$ac_save_IFS"
8265
8266 fi
8267 if test "${ac_cv_path_install+set}" = set; then
8268 INSTALL="$ac_cv_path_install"
8269 else
8270 # As a last resort, use the slow shell script. We don't cache a
8271 # path for INSTALL within a source directory, because that will
8272 # break other packages using the cache if that directory is
8273 # removed, or if the path is relative.
8274 INSTALL="$ac_install_sh"
8275 fi
8276 fi
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8278 $as_echo "$INSTALL" >&6; }
8279
8280 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8281 # It thinks the first close brace ends the variable substitution.
8282 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8283
8284 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8285
8286
8287 # See if cmp has --ignore-initial.
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8289 $as_echo_n "checking for cmp's capabilities... " >&6; }
8290 if ${gcc_cv_prog_cmp_skip+:} false; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 echo abfoo >t1
8294 echo cdfoo >t2
8295 gcc_cv_prog_cmp_skip=slowcompare
8296 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8297 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8298 :
8299 else
8300 gcc_cv_prog_cmp_skip=gnucompare
8301 fi
8302 fi
8303 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8304 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8305 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8306 :
8307 else
8308 gcc_cv_prog_cmp_skip=fastcompare
8309 fi
8310 fi
8311 fi
8312 rm t1 t2
8313
8314 fi
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8316 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8317 make_compare_target=$gcc_cv_prog_cmp_skip
8318
8319
8320
8321 # See if we have the mktemp command.
8322 # Extract the first word of "mktemp", so it can be a program name with args.
8323 set dummy mktemp; ac_word=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8327 $as_echo_n "(cached) " >&6
8328 else
8329 if test -n "$have_mktemp_command"; then
8330 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8334 do
8335 IFS=$as_save_IFS
8336 test -z "$as_dir" && as_dir=.
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8339 ac_cv_prog_have_mktemp_command="yes"
8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8341 break 2
8342 fi
8343 done
8344 done
8345 IFS=$as_save_IFS
8346
8347 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8348 fi
8349 fi
8350 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8351 if test -n "$have_mktemp_command"; then
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8353 $as_echo "$have_mktemp_command" >&6; }
8354 else
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356 $as_echo "no" >&6; }
8357 fi
8358
8359
8360
8361 # See if makeinfo has been installed and is modern enough
8362 # that we can use it.
8363
8364 # Extract the first word of "makeinfo", so it can be a program name with args.
8365 set dummy makeinfo; ac_word=$2
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367 $as_echo_n "checking for $ac_word... " >&6; }
8368 if ${ac_cv_prog_MAKEINFO+:} false; then :
8369 $as_echo_n "(cached) " >&6
8370 else
8371 if test -n "$MAKEINFO"; then
8372 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8373 else
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 for as_dir in $PATH
8376 do
8377 IFS=$as_save_IFS
8378 test -z "$as_dir" && as_dir=.
8379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8381 ac_cv_prog_MAKEINFO="makeinfo"
8382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8383 break 2
8384 fi
8385 done
8386 done
8387 IFS=$as_save_IFS
8388
8389 fi
8390 fi
8391 MAKEINFO=$ac_cv_prog_MAKEINFO
8392 if test -n "$MAKEINFO"; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8394 $as_echo "$MAKEINFO" >&6; }
8395 else
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8398 fi
8399
8400
8401 if test -n "$MAKEINFO"; then
8402 # Found it, now check the version.
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8404 $as_echo_n "checking for modern makeinfo... " >&6; }
8405 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8406 $as_echo_n "(cached) " >&6
8407 else
8408 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8409 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8410
8411 case $ac_prog_version in
8412 '') gcc_cv_prog_makeinfo_modern=no;;
8413 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8414 *) gcc_cv_prog_makeinfo_modern=no;;
8415 esac
8416
8417 fi
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8419 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8420 else
8421 gcc_cv_prog_makeinfo_modern=no
8422 fi
8423 if test $gcc_cv_prog_makeinfo_modern = no; then
8424 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8425 fi
8426
8427 if test $gcc_cv_prog_makeinfo_modern = no; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8429 *** Makeinfo is missing or too old.
8430 *** Info documentation will not be built." >&5
8431 $as_echo "$as_me: WARNING:
8432 *** Makeinfo is missing or too old.
8433 *** Info documentation will not be built." >&2;}
8434 BUILD_INFO=
8435 else
8436 BUILD_INFO=info
8437 fi
8438
8439
8440 # Is pod2man recent enough to regenerate manpages?
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8442 $as_echo_n "checking for recent Pod::Man... " >&6; }
8443 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8445 $as_echo "yes" >&6; }
8446 GENERATED_MANPAGES=generated-manpages
8447 else
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8450 GENERATED_MANPAGES=
8451 fi
8452
8453
8454 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8455
8456 # How about lex?
8457 for ac_prog in flex
8458 do
8459 # Extract the first word of "$ac_prog", so it can be a program name with args.
8460 set dummy $ac_prog; ac_word=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if ${ac_cv_prog_FLEX+:} false; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 if test -n "$FLEX"; then
8467 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8468 else
8469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470 for as_dir in $PATH
8471 do
8472 IFS=$as_save_IFS
8473 test -z "$as_dir" && as_dir=.
8474 for ac_exec_ext in '' $ac_executable_extensions; do
8475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8476 ac_cv_prog_FLEX="$ac_prog"
8477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8478 break 2
8479 fi
8480 done
8481 done
8482 IFS=$as_save_IFS
8483
8484 fi
8485 fi
8486 FLEX=$ac_cv_prog_FLEX
8487 if test -n "$FLEX"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8489 $as_echo "$FLEX" >&6; }
8490 else
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492 $as_echo "no" >&6; }
8493 fi
8494
8495
8496 test -n "$FLEX" && break
8497 done
8498 test -n "$FLEX" || FLEX="$MISSING flex"
8499
8500
8501 # Bison?
8502 for ac_prog in bison
8503 do
8504 # Extract the first word of "$ac_prog", so it can be a program name with args.
8505 set dummy $ac_prog; ac_word=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if ${ac_cv_prog_BISON+:} false; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 if test -n "$BISON"; then
8512 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8513 else
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in $PATH
8516 do
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8521 ac_cv_prog_BISON="$ac_prog"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 break 2
8524 fi
8525 done
8526 done
8527 IFS=$as_save_IFS
8528
8529 fi
8530 fi
8531 BISON=$ac_cv_prog_BISON
8532 if test -n "$BISON"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8534 $as_echo "$BISON" >&6; }
8535 else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8538 fi
8539
8540
8541 test -n "$BISON" && break
8542 done
8543 test -n "$BISON" || BISON="$MISSING bison"
8544
8545
8546 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8547 # check for build == host before using them.
8548
8549 # NM
8550 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8551 && test -d ../binutils ; then
8552 NM='${objdir}/../binutils/nm-new'
8553 else
8554 # Extract the first word of "nm", so it can be a program name with args.
8555 set dummy nm; ac_word=$2
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8557 $as_echo_n "checking for $ac_word... " >&6; }
8558 if ${ac_cv_prog_NM+:} false; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 if test -n "$NM"; then
8562 ac_cv_prog_NM="$NM" # Let the user override the test.
8563 else
8564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565 for as_dir in $PATH
8566 do
8567 IFS=$as_save_IFS
8568 test -z "$as_dir" && as_dir=.
8569 for ac_exec_ext in '' $ac_executable_extensions; do
8570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8571 ac_cv_prog_NM="nm"
8572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 break 2
8574 fi
8575 done
8576 done
8577 IFS=$as_save_IFS
8578
8579 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8580 fi
8581 fi
8582 NM=$ac_cv_prog_NM
8583 if test -n "$NM"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8585 $as_echo "$NM" >&6; }
8586 else
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8589 fi
8590
8591
8592 fi
8593
8594 # AR
8595 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8596 && test -d ../binutils ; then
8597 AR='${objdir}/../binutils/ar'
8598 else
8599 # Extract the first word of "ar", so it can be a program name with args.
8600 set dummy ar; ac_word=$2
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602 $as_echo_n "checking for $ac_word... " >&6; }
8603 if ${ac_cv_prog_AR+:} false; then :
8604 $as_echo_n "(cached) " >&6
8605 else
8606 if test -n "$AR"; then
8607 ac_cv_prog_AR="$AR" # Let the user override the test.
8608 else
8609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 for as_dir in $PATH
8611 do
8612 IFS=$as_save_IFS
8613 test -z "$as_dir" && as_dir=.
8614 for ac_exec_ext in '' $ac_executable_extensions; do
8615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8616 ac_cv_prog_AR="ar"
8617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8618 break 2
8619 fi
8620 done
8621 done
8622 IFS=$as_save_IFS
8623
8624 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8625 fi
8626 fi
8627 AR=$ac_cv_prog_AR
8628 if test -n "$AR"; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8630 $as_echo "$AR" >&6; }
8631 else
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8634 fi
8635
8636
8637 fi
8638
8639 # The jit documentation looks better if built with sphinx, but can be
8640 # built with texinfo if sphinx is not available.
8641 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8642 # Extract the first word of "sphinx-build", so it can be a program name with args.
8643 set dummy sphinx-build; ac_word=$2
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645 $as_echo_n "checking for $ac_word... " >&6; }
8646 if ${ac_cv_prog_doc_build_sys+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 if test -n "$doc_build_sys"; then
8650 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8651 else
8652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653 for as_dir in $PATH
8654 do
8655 IFS=$as_save_IFS
8656 test -z "$as_dir" && as_dir=.
8657 for ac_exec_ext in '' $ac_executable_extensions; do
8658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8659 ac_cv_prog_doc_build_sys="sphinx"
8660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8661 break 2
8662 fi
8663 done
8664 done
8665 IFS=$as_save_IFS
8666
8667 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8668 fi
8669 fi
8670 doc_build_sys=$ac_cv_prog_doc_build_sys
8671 if test -n "$doc_build_sys"; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8673 $as_echo "$doc_build_sys" >&6; }
8674 else
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676 $as_echo "no" >&6; }
8677 fi
8678
8679
8680
8681 # --------------------
8682 # Checks for C headers
8683 # --------------------
8684
8685 # Need to reject headers which give warnings, so that the -Werror bootstrap
8686 # works later. *sigh* This needs to come before all header checks.
8687
8688 ac_c_preproc_warn_flag=yes
8689
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8691 $as_echo_n "checking for ANSI C header files... " >&6; }
8692 if ${ac_cv_header_stdc+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8697 #include <stdlib.h>
8698 #include <stdarg.h>
8699 #include <string.h>
8700 #include <float.h>
8701
8702 int
8703 main ()
8704 {
8705
8706 ;
8707 return 0;
8708 }
8709 _ACEOF
8710 if ac_fn_cxx_try_compile "$LINENO"; then :
8711 ac_cv_header_stdc=yes
8712 else
8713 ac_cv_header_stdc=no
8714 fi
8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716
8717 if test $ac_cv_header_stdc = yes; then
8718 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h. */
8721 #include <string.h>
8722
8723 _ACEOF
8724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8725 $EGREP "memchr" >/dev/null 2>&1; then :
8726
8727 else
8728 ac_cv_header_stdc=no
8729 fi
8730 rm -f conftest*
8731
8732 fi
8733
8734 if test $ac_cv_header_stdc = yes; then
8735 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8737 /* end confdefs.h. */
8738 #include <stdlib.h>
8739
8740 _ACEOF
8741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8742 $EGREP "free" >/dev/null 2>&1; then :
8743
8744 else
8745 ac_cv_header_stdc=no
8746 fi
8747 rm -f conftest*
8748
8749 fi
8750
8751 if test $ac_cv_header_stdc = yes; then
8752 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8753 if test "$cross_compiling" = yes; then :
8754 :
8755 else
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8758 #include <ctype.h>
8759 #include <stdlib.h>
8760 #if ((' ' & 0x0FF) == 0x020)
8761 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8762 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8763 #else
8764 # define ISLOWER(c) \
8765 (('a' <= (c) && (c) <= 'i') \
8766 || ('j' <= (c) && (c) <= 'r') \
8767 || ('s' <= (c) && (c) <= 'z'))
8768 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8769 #endif
8770
8771 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8772 int
8773 main ()
8774 {
8775 int i;
8776 for (i = 0; i < 256; i++)
8777 if (XOR (islower (i), ISLOWER (i))
8778 || toupper (i) != TOUPPER (i))
8779 return 2;
8780 return 0;
8781 }
8782 _ACEOF
8783 if ac_fn_cxx_try_run "$LINENO"; then :
8784
8785 else
8786 ac_cv_header_stdc=no
8787 fi
8788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8789 conftest.$ac_objext conftest.beam conftest.$ac_ext
8790 fi
8791
8792 fi
8793 fi
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8795 $as_echo "$ac_cv_header_stdc" >&6; }
8796 if test $ac_cv_header_stdc = yes; then
8797
8798 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8799
8800 fi
8801
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8803 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8804 if ${ac_cv_header_time+:} false; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8809 #include <sys/types.h>
8810 #include <sys/time.h>
8811 #include <time.h>
8812
8813 int
8814 main ()
8815 {
8816 if ((struct tm *) 0)
8817 return 0;
8818 ;
8819 return 0;
8820 }
8821 _ACEOF
8822 if ac_fn_cxx_try_compile "$LINENO"; then :
8823 ac_cv_header_time=yes
8824 else
8825 ac_cv_header_time=no
8826 fi
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 fi
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8830 $as_echo "$ac_cv_header_time" >&6; }
8831 if test $ac_cv_header_time = yes; then
8832
8833 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8834
8835 fi
8836
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8838 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8839 if ${gcc_cv_header_string+:} false; then :
8840 $as_echo_n "(cached) " >&6
8841 else
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h. */
8844 #include <string.h>
8845 #include <strings.h>
8846 int
8847 main ()
8848 {
8849
8850 ;
8851 return 0;
8852 }
8853 _ACEOF
8854 if ac_fn_cxx_try_compile "$LINENO"; then :
8855 gcc_cv_header_string=yes
8856 else
8857 gcc_cv_header_string=no
8858 fi
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860 fi
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8862 $as_echo "$gcc_cv_header_string" >&6; }
8863 if test $gcc_cv_header_string = yes; then
8864
8865 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8866
8867 fi
8868
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8870 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8871 if ${ac_cv_header_sys_wait_h+:} false; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8876 #include <sys/types.h>
8877 #include <sys/wait.h>
8878 #ifndef WEXITSTATUS
8879 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8880 #endif
8881 #ifndef WIFEXITED
8882 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8883 #endif
8884
8885 int
8886 main ()
8887 {
8888 int s;
8889 wait (&s);
8890 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8891 ;
8892 return 0;
8893 }
8894 _ACEOF
8895 if ac_fn_cxx_try_compile "$LINENO"; then :
8896 ac_cv_header_sys_wait_h=yes
8897 else
8898 ac_cv_header_sys_wait_h=no
8899 fi
8900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8901 fi
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8903 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8904 if test $ac_cv_header_sys_wait_h = yes; then
8905
8906 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8907
8908 fi
8909
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8911 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8912 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8913 $as_echo_n "(cached) " >&6
8914 else
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8917 #include <sys/types.h>
8918 #include <termios.h>
8919 #ifdef TIOCGWINSZ
8920 yes
8921 #endif
8922
8923 _ACEOF
8924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8925 $EGREP "yes" >/dev/null 2>&1; then :
8926 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8927 else
8928 ac_cv_sys_tiocgwinsz_in_termios_h=no
8929 fi
8930 rm -f conftest*
8931
8932 fi
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8934 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8935
8936 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8938 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8939 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943 /* end confdefs.h. */
8944 #include <sys/types.h>
8945 #include <sys/ioctl.h>
8946 #ifdef TIOCGWINSZ
8947 yes
8948 #endif
8949
8950 _ACEOF
8951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8952 $EGREP "yes" >/dev/null 2>&1; then :
8953 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8954 else
8955 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8956 fi
8957 rm -f conftest*
8958
8959 fi
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8961 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8962
8963 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8964
8965 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8966
8967 fi
8968 fi
8969
8970 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8971 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8972 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8973 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8974 do :
8975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8976 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8977 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8978 cat >>confdefs.h <<_ACEOF
8979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8980 _ACEOF
8981
8982 fi
8983 done
8984
8985
8986 # Check for thread headers.
8987 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8988 if test "x$ac_cv_header_thread_h" = xyes; then :
8989 have_thread_h=yes
8990 else
8991 have_thread_h=
8992 fi
8993
8994 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8995 if test "x$ac_cv_header_pthread_h" = xyes; then :
8996 have_pthread_h=yes
8997 else
8998 have_pthread_h=
8999 fi
9000
9001
9002 # These tests can't be done till we know if we have limits.h.
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9004 $as_echo_n "checking for CHAR_BIT... " >&6; }
9005 if ${gcc_cv_decl_char_bit+:} false; then :
9006 $as_echo_n "(cached) " >&6
9007 else
9008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9010 #ifdef HAVE_LIMITS_H
9011 #include <limits.h>
9012 #endif
9013 #ifdef CHAR_BIT
9014 found
9015 #endif
9016 _ACEOF
9017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9018 $EGREP "found" >/dev/null 2>&1; then :
9019 gcc_cv_decl_char_bit=yes
9020 else
9021 gcc_cv_decl_char_bit=no
9022 fi
9023 rm -f conftest*
9024
9025
9026 fi
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9028 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9029 if test $gcc_cv_decl_char_bit = no; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9031 $as_echo_n "checking number of bits in a byte... " >&6; }
9032 if ${gcc_cv_c_nbby+:} false; then :
9033 $as_echo_n "(cached) " >&6
9034 else
9035 i=8
9036 gcc_cv_c_nbby=
9037 while test $i -lt 65; do
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040
9041 int
9042 main ()
9043 {
9044 switch(0) {
9045 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9046 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9047 ; }
9048 ;
9049 return 0;
9050 }
9051 _ACEOF
9052 if ac_fn_cxx_try_compile "$LINENO"; then :
9053 gcc_cv_c_nbby=$i; break
9054 fi
9055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056 i=`expr $i + 1`
9057 done
9058 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9059
9060 fi
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9062 $as_echo "$gcc_cv_c_nbby" >&6; }
9063 if test $gcc_cv_c_nbby = failed; then
9064 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9065 else
9066
9067 cat >>confdefs.h <<_ACEOF
9068 #define CHAR_BIT $gcc_cv_c_nbby
9069 _ACEOF
9070
9071 fi
9072 fi
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9074 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9075 if ${ac_cv_c_bigendian+:} false; then :
9076 $as_echo_n "(cached) " >&6
9077 else
9078 ac_cv_c_bigendian=unknown
9079 # See if we're dealing with a universal compiler.
9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h. */
9082 #ifndef __APPLE_CC__
9083 not a universal capable compiler
9084 #endif
9085 typedef int dummy;
9086
9087 _ACEOF
9088 if ac_fn_cxx_try_compile "$LINENO"; then :
9089
9090 # Check for potential -arch flags. It is not universal unless
9091 # there are at least two -arch flags with different values.
9092 ac_arch=
9093 ac_prev=
9094 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9095 if test -n "$ac_prev"; then
9096 case $ac_word in
9097 i?86 | x86_64 | ppc | ppc64)
9098 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9099 ac_arch=$ac_word
9100 else
9101 ac_cv_c_bigendian=universal
9102 break
9103 fi
9104 ;;
9105 esac
9106 ac_prev=
9107 elif test "x$ac_word" = "x-arch"; then
9108 ac_prev=arch
9109 fi
9110 done
9111 fi
9112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9113 if test $ac_cv_c_bigendian = unknown; then
9114 # See if sys/param.h defines the BYTE_ORDER macro.
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9117 #include <sys/types.h>
9118 #include <sys/param.h>
9119
9120 int
9121 main ()
9122 {
9123 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9124 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9125 && LITTLE_ENDIAN)
9126 bogus endian macros
9127 #endif
9128
9129 ;
9130 return 0;
9131 }
9132 _ACEOF
9133 if ac_fn_cxx_try_compile "$LINENO"; then :
9134 # It does; now see whether it defined to BIG_ENDIAN or not.
9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h. */
9137 #include <sys/types.h>
9138 #include <sys/param.h>
9139
9140 int
9141 main ()
9142 {
9143 #if BYTE_ORDER != BIG_ENDIAN
9144 not big endian
9145 #endif
9146
9147 ;
9148 return 0;
9149 }
9150 _ACEOF
9151 if ac_fn_cxx_try_compile "$LINENO"; then :
9152 ac_cv_c_bigendian=yes
9153 else
9154 ac_cv_c_bigendian=no
9155 fi
9156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9157 fi
9158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9159 fi
9160 if test $ac_cv_c_bigendian = unknown; then
9161 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 #include <limits.h>
9165
9166 int
9167 main ()
9168 {
9169 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9170 bogus endian macros
9171 #endif
9172
9173 ;
9174 return 0;
9175 }
9176 _ACEOF
9177 if ac_fn_cxx_try_compile "$LINENO"; then :
9178 # It does; now see whether it defined to _BIG_ENDIAN or not.
9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9181 #include <limits.h>
9182
9183 int
9184 main ()
9185 {
9186 #ifndef _BIG_ENDIAN
9187 not big endian
9188 #endif
9189
9190 ;
9191 return 0;
9192 }
9193 _ACEOF
9194 if ac_fn_cxx_try_compile "$LINENO"; then :
9195 ac_cv_c_bigendian=yes
9196 else
9197 ac_cv_c_bigendian=no
9198 fi
9199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9200 fi
9201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9202 fi
9203 if test $ac_cv_c_bigendian = unknown; then
9204 # Compile a test program.
9205 if test "$cross_compiling" = yes; then :
9206 # Try to guess by grepping values from an object file.
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9209 short int ascii_mm[] =
9210 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9211 short int ascii_ii[] =
9212 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9213 int use_ascii (int i) {
9214 return ascii_mm[i] + ascii_ii[i];
9215 }
9216 short int ebcdic_ii[] =
9217 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9218 short int ebcdic_mm[] =
9219 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9220 int use_ebcdic (int i) {
9221 return ebcdic_mm[i] + ebcdic_ii[i];
9222 }
9223 extern int foo;
9224
9225 int
9226 main ()
9227 {
9228 return use_ascii (foo) == use_ebcdic (foo);
9229 ;
9230 return 0;
9231 }
9232 _ACEOF
9233 if ac_fn_cxx_try_compile "$LINENO"; then :
9234 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9235 ac_cv_c_bigendian=yes
9236 fi
9237 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9238 if test "$ac_cv_c_bigendian" = unknown; then
9239 ac_cv_c_bigendian=no
9240 else
9241 # finding both strings is unlikely to happen, but who knows?
9242 ac_cv_c_bigendian=unknown
9243 fi
9244 fi
9245 fi
9246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247 else
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250 $ac_includes_default
9251 int
9252 main ()
9253 {
9254
9255 /* Are we little or big endian? From Harbison&Steele. */
9256 union
9257 {
9258 long int l;
9259 char c[sizeof (long int)];
9260 } u;
9261 u.l = 1;
9262 return u.c[sizeof (long int) - 1] == 1;
9263
9264 ;
9265 return 0;
9266 }
9267 _ACEOF
9268 if ac_fn_cxx_try_run "$LINENO"; then :
9269 ac_cv_c_bigendian=no
9270 else
9271 ac_cv_c_bigendian=yes
9272 fi
9273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9274 conftest.$ac_objext conftest.beam conftest.$ac_ext
9275 fi
9276
9277 fi
9278 fi
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9280 $as_echo "$ac_cv_c_bigendian" >&6; }
9281 case $ac_cv_c_bigendian in #(
9282 yes)
9283 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9284 ;; #(
9285 no)
9286 ;; #(
9287 universal)
9288
9289 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9290
9291 ;; #(
9292 *)
9293 as_fn_error $? "unknown endianness
9294 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9295 esac
9296
9297
9298 # ----------------------
9299 # Checks for C++ headers
9300 # ----------------------
9301
9302 ac_ext=cpp
9303 ac_cpp='$CXXCPP $CPPFLAGS'
9304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9308 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9309 if test -z "$CXXCPP"; then
9310 if ${ac_cv_prog_CXXCPP+:} false; then :
9311 $as_echo_n "(cached) " >&6
9312 else
9313 # Double quotes because CXXCPP needs to be expanded
9314 for CXXCPP in "$CXX -E" "/lib/cpp"
9315 do
9316 ac_preproc_ok=false
9317 for ac_cxx_preproc_warn_flag in '' yes
9318 do
9319 # Use a header file that comes with gcc, so configuring glibc
9320 # with a fresh cross-compiler works.
9321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9322 # <limits.h> exists even on freestanding compilers.
9323 # On the NeXT, cc -E runs the code through the compiler's parser,
9324 # not just through cpp. "Syntax error" is here to catch this case.
9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9327 #ifdef __STDC__
9328 # include <limits.h>
9329 #else
9330 # include <assert.h>
9331 #endif
9332 Syntax error
9333 _ACEOF
9334 if ac_fn_cxx_try_cpp "$LINENO"; then :
9335
9336 else
9337 # Broken: fails on valid input.
9338 continue
9339 fi
9340 rm -f conftest.err conftest.i conftest.$ac_ext
9341
9342 # OK, works on sane cases. Now check whether nonexistent headers
9343 # can be detected and how.
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9346 #include <ac_nonexistent.h>
9347 _ACEOF
9348 if ac_fn_cxx_try_cpp "$LINENO"; then :
9349 # Broken: success on invalid input.
9350 continue
9351 else
9352 # Passes both tests.
9353 ac_preproc_ok=:
9354 break
9355 fi
9356 rm -f conftest.err conftest.i conftest.$ac_ext
9357
9358 done
9359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9360 rm -f conftest.i conftest.err conftest.$ac_ext
9361 if $ac_preproc_ok; then :
9362 break
9363 fi
9364
9365 done
9366 ac_cv_prog_CXXCPP=$CXXCPP
9367
9368 fi
9369 CXXCPP=$ac_cv_prog_CXXCPP
9370 else
9371 ac_cv_prog_CXXCPP=$CXXCPP
9372 fi
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9374 $as_echo "$CXXCPP" >&6; }
9375 ac_preproc_ok=false
9376 for ac_cxx_preproc_warn_flag in '' yes
9377 do
9378 # Use a header file that comes with gcc, so configuring glibc
9379 # with a fresh cross-compiler works.
9380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9381 # <limits.h> exists even on freestanding compilers.
9382 # On the NeXT, cc -E runs the code through the compiler's parser,
9383 # not just through cpp. "Syntax error" is here to catch this case.
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9386 #ifdef __STDC__
9387 # include <limits.h>
9388 #else
9389 # include <assert.h>
9390 #endif
9391 Syntax error
9392 _ACEOF
9393 if ac_fn_cxx_try_cpp "$LINENO"; then :
9394
9395 else
9396 # Broken: fails on valid input.
9397 continue
9398 fi
9399 rm -f conftest.err conftest.i conftest.$ac_ext
9400
9401 # OK, works on sane cases. Now check whether nonexistent headers
9402 # can be detected and how.
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404 /* end confdefs.h. */
9405 #include <ac_nonexistent.h>
9406 _ACEOF
9407 if ac_fn_cxx_try_cpp "$LINENO"; then :
9408 # Broken: success on invalid input.
9409 continue
9410 else
9411 # Passes both tests.
9412 ac_preproc_ok=:
9413 break
9414 fi
9415 rm -f conftest.err conftest.i conftest.$ac_ext
9416
9417 done
9418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9419 rm -f conftest.i conftest.err conftest.$ac_ext
9420 if $ac_preproc_ok; then :
9421
9422 else
9423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9426 See \`config.log' for more details" >&5
9427 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9428 See \`config.log' for more details" >&2;}; }
9429 fi
9430
9431 ac_ext=cpp
9432 ac_cpp='$CXXCPP $CPPFLAGS'
9433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9436
9437
9438 for ac_header in unordered_map
9439 do :
9440 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9441 if test "x$ac_cv_header_unordered_map" = xyes; then :
9442 cat >>confdefs.h <<_ACEOF
9443 #define HAVE_UNORDERED_MAP 1
9444 _ACEOF
9445
9446 fi
9447 done
9448
9449 for ac_header in tr1/unordered_map
9450 do :
9451 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9452 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9453 cat >>confdefs.h <<_ACEOF
9454 #define HAVE_TR1_UNORDERED_MAP 1
9455 _ACEOF
9456
9457 fi
9458 done
9459
9460 for ac_header in ext/hash_map
9461 do :
9462 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9463 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9464 cat >>confdefs.h <<_ACEOF
9465 #define HAVE_EXT_HASH_MAP 1
9466 _ACEOF
9467
9468 fi
9469 done
9470
9471
9472 # --------
9473 # Dependency checking.
9474 # --------
9475
9476 rm -rf .tst 2>/dev/null
9477 mkdir .tst 2>/dev/null
9478 if test -d .tst; then
9479 am__leading_dot=.
9480 else
9481 am__leading_dot=_
9482 fi
9483 rmdir .tst 2>/dev/null
9484
9485 DEPDIR="${am__leading_dot}deps"
9486
9487 ac_config_commands="$ac_config_commands depdir"
9488
9489
9490 ac_config_commands="$ac_config_commands gccdepdir"
9491
9492
9493 depcc="$CXX" am_compiler_list=
9494
9495 am_depcomp=$ac_aux_dir/depcomp
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9497 $as_echo_n "checking dependency style of $depcc... " >&6; }
9498 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9499 $as_echo_n "(cached) " >&6
9500 else
9501 if test -f "$am_depcomp"; then
9502 # We make a subdir and do the tests there. Otherwise we can end up
9503 # making bogus files that we don't know about and never remove. For
9504 # instance it was reported that on HP-UX the gcc test will end up
9505 # making a dummy file named `D' -- because `-MD' means `put the output
9506 # in D'.
9507 mkdir conftest.dir
9508 # Copy depcomp to subdir because otherwise we won't find it if we're
9509 # using a relative directory.
9510 cp "$am_depcomp" conftest.dir
9511 cd conftest.dir
9512 # We will build objects and dependencies in a subdirectory because
9513 # it helps to detect inapplicable dependency modes. For instance
9514 # both Tru64's cc and ICC support -MD to output dependencies as a
9515 # side effect of compilation, but ICC will put the dependencies in
9516 # the current directory while Tru64 will put them in the object
9517 # directory.
9518 mkdir sub
9519
9520 am_cv_CXX_dependencies_compiler_type=none
9521 if test "$am_compiler_list" = ""; then
9522 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9523 fi
9524 for depmode in $am_compiler_list; do
9525 if test $depmode = none; then break; fi
9526
9527 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9528 # Setup a source with many dependencies, because some compilers
9529 # like to wrap large dependency lists on column 80 (with \), and
9530 # we should not choose a depcomp mode which is confused by this.
9531 #
9532 # We need to recreate these files for each test, as the compiler may
9533 # overwrite some of them when testing with obscure command lines.
9534 # This happens at least with the AIX C compiler.
9535 : > sub/conftest.c
9536 for i in 1 2 3 4 5 6; do
9537 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9538 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9539 # Solaris 8's {/usr,}/bin/sh.
9540 touch sub/conftst$i.h
9541 done
9542 echo "include sub/conftest.Po" > confmf
9543
9544 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9545 # mode. It turns out that the SunPro C++ compiler does not properly
9546 # handle `-M -o', and we need to detect this.
9547 depcmd="depmode=$depmode \
9548 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9549 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9550 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9551 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9552 if env $depcmd > conftest.err 2>&1 &&
9553 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9554 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9555 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9556 # icc doesn't choke on unknown options, it will just issue warnings
9557 # or remarks (even with -Werror). So we grep stderr for any message
9558 # that says an option was ignored or not supported.
9559 # When given -MP, icc 7.0 and 7.1 complain thusly:
9560 # icc: Command line warning: ignoring option '-M'; no argument required
9561 # The diagnosis changed in icc 8.0:
9562 # icc: Command line remark: option '-MP' not supported
9563 if (grep 'ignoring option' conftest.err ||
9564 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9565 am_cv_CXX_dependencies_compiler_type=$depmode
9566 $as_echo "$as_me:$LINENO: success" >&5
9567 break
9568 fi
9569 fi
9570 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9571 sed -e 's/^/| /' < conftest.err >&5
9572 done
9573
9574 cd ..
9575 rm -rf conftest.dir
9576 else
9577 am_cv_CXX_dependencies_compiler_type=none
9578 fi
9579
9580 fi
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9582 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9583 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9584 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9585 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9586
9587 fi
9588
9589
9590 # --------
9591 # UNSORTED
9592 # --------
9593
9594
9595 # These libraries may be used by collect2.
9596 # We may need a special search path to get them linked.
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9598 $as_echo_n "checking for collect2 libraries... " >&6; }
9599 if ${gcc_cv_collect2_libs+:} false; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 save_LIBS="$LIBS"
9603 for libs in '' -lld -lmld \
9604 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9605 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9606 do
9607 LIBS="$libs"
9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h. */
9610
9611 /* Override any GCC internal prototype to avoid an error.
9612 Use char because int might match the return type of a GCC
9613 builtin and then its argument prototype would still apply. */
9614 #ifdef __cplusplus
9615 extern "C"
9616 #endif
9617 char ldopen ();
9618 int
9619 main ()
9620 {
9621 return ldopen ();
9622 ;
9623 return 0;
9624 }
9625 _ACEOF
9626 if ac_fn_cxx_try_link "$LINENO"; then :
9627 gcc_cv_collect2_libs="$libs"; break
9628 fi
9629 rm -f core conftest.err conftest.$ac_objext \
9630 conftest$ac_exeext conftest.$ac_ext
9631 done
9632 LIBS="$save_LIBS"
9633 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9634 fi
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9636 $as_echo "$gcc_cv_collect2_libs" >&6; }
9637 case $gcc_cv_collect2_libs in
9638 "none required") ;;
9639 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9640 esac
9641
9642
9643 # When building Ada code on Alpha, we need exc_resume which is usually in
9644 # -lexc. So test for it.
9645 save_LIBS="$LIBS"
9646 LIBS=
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9648 $as_echo_n "checking for library containing exc_resume... " >&6; }
9649 if ${ac_cv_search_exc_resume+:} false; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 ac_func_search_save_LIBS=$LIBS
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9655
9656 /* Override any GCC internal prototype to avoid an error.
9657 Use char because int might match the return type of a GCC
9658 builtin and then its argument prototype would still apply. */
9659 #ifdef __cplusplus
9660 extern "C"
9661 #endif
9662 char exc_resume ();
9663 int
9664 main ()
9665 {
9666 return exc_resume ();
9667 ;
9668 return 0;
9669 }
9670 _ACEOF
9671 for ac_lib in '' exc; do
9672 if test -z "$ac_lib"; then
9673 ac_res="none required"
9674 else
9675 ac_res=-l$ac_lib
9676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9677 fi
9678 if ac_fn_cxx_try_link "$LINENO"; then :
9679 ac_cv_search_exc_resume=$ac_res
9680 fi
9681 rm -f core conftest.err conftest.$ac_objext \
9682 conftest$ac_exeext
9683 if ${ac_cv_search_exc_resume+:} false; then :
9684 break
9685 fi
9686 done
9687 if ${ac_cv_search_exc_resume+:} false; then :
9688
9689 else
9690 ac_cv_search_exc_resume=no
9691 fi
9692 rm conftest.$ac_ext
9693 LIBS=$ac_func_search_save_LIBS
9694 fi
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9696 $as_echo "$ac_cv_search_exc_resume" >&6; }
9697 ac_res=$ac_cv_search_exc_resume
9698 if test "$ac_res" != no; then :
9699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9700
9701 fi
9702
9703 GNAT_LIBEXC="$LIBS"
9704 LIBS="$save_LIBS"
9705
9706
9707 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9708 save_LIBS="$LIBS"
9709 LIBS=
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9711 $as_echo_n "checking for library containing kstat_open... " >&6; }
9712 if ${ac_cv_search_kstat_open+:} false; then :
9713 $as_echo_n "(cached) " >&6
9714 else
9715 ac_func_search_save_LIBS=$LIBS
9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9718
9719 /* Override any GCC internal prototype to avoid an error.
9720 Use char because int might match the return type of a GCC
9721 builtin and then its argument prototype would still apply. */
9722 #ifdef __cplusplus
9723 extern "C"
9724 #endif
9725 char kstat_open ();
9726 int
9727 main ()
9728 {
9729 return kstat_open ();
9730 ;
9731 return 0;
9732 }
9733 _ACEOF
9734 for ac_lib in '' kstat; do
9735 if test -z "$ac_lib"; then
9736 ac_res="none required"
9737 else
9738 ac_res=-l$ac_lib
9739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9740 fi
9741 if ac_fn_cxx_try_link "$LINENO"; then :
9742 ac_cv_search_kstat_open=$ac_res
9743 fi
9744 rm -f core conftest.err conftest.$ac_objext \
9745 conftest$ac_exeext
9746 if ${ac_cv_search_kstat_open+:} false; then :
9747 break
9748 fi
9749 done
9750 if ${ac_cv_search_kstat_open+:} false; then :
9751
9752 else
9753 ac_cv_search_kstat_open=no
9754 fi
9755 rm conftest.$ac_ext
9756 LIBS=$ac_func_search_save_LIBS
9757 fi
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9759 $as_echo "$ac_cv_search_kstat_open" >&6; }
9760 ac_res=$ac_cv_search_kstat_open
9761 if test "$ac_res" != no; then :
9762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9763
9764 fi
9765
9766 EXTRA_GCC_LIBS="$LIBS"
9767 LIBS="$save_LIBS"
9768
9769
9770 # Some systems put ldexp and frexp in libm instead of libc; assume
9771 # they're both in the same place. jcf-dump needs them.
9772 save_LIBS="$LIBS"
9773 LIBS=
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9775 $as_echo_n "checking for library containing ldexp... " >&6; }
9776 if ${ac_cv_search_ldexp+:} false; then :
9777 $as_echo_n "(cached) " >&6
9778 else
9779 ac_func_search_save_LIBS=$LIBS
9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h. */
9782
9783 /* Override any GCC internal prototype to avoid an error.
9784 Use char because int might match the return type of a GCC
9785 builtin and then its argument prototype would still apply. */
9786 #ifdef __cplusplus
9787 extern "C"
9788 #endif
9789 char ldexp ();
9790 int
9791 main ()
9792 {
9793 return ldexp ();
9794 ;
9795 return 0;
9796 }
9797 _ACEOF
9798 for ac_lib in '' m; do
9799 if test -z "$ac_lib"; then
9800 ac_res="none required"
9801 else
9802 ac_res=-l$ac_lib
9803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9804 fi
9805 if ac_fn_cxx_try_link "$LINENO"; then :
9806 ac_cv_search_ldexp=$ac_res
9807 fi
9808 rm -f core conftest.err conftest.$ac_objext \
9809 conftest$ac_exeext
9810 if ${ac_cv_search_ldexp+:} false; then :
9811 break
9812 fi
9813 done
9814 if ${ac_cv_search_ldexp+:} false; then :
9815
9816 else
9817 ac_cv_search_ldexp=no
9818 fi
9819 rm conftest.$ac_ext
9820 LIBS=$ac_func_search_save_LIBS
9821 fi
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9823 $as_echo "$ac_cv_search_ldexp" >&6; }
9824 ac_res=$ac_cv_search_ldexp
9825 if test "$ac_res" != no; then :
9826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9827
9828 fi
9829
9830 LDEXP_LIB="$LIBS"
9831 LIBS="$save_LIBS"
9832
9833
9834 # Some systems need dlopen
9835 save_LIBS="$LIBS"
9836 LIBS=
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9838 $as_echo_n "checking for library containing dlopen... " >&6; }
9839 if ${ac_cv_search_dlopen+:} false; then :
9840 $as_echo_n "(cached) " >&6
9841 else
9842 ac_func_search_save_LIBS=$LIBS
9843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h. */
9845
9846 /* Override any GCC internal prototype to avoid an error.
9847 Use char because int might match the return type of a GCC
9848 builtin and then its argument prototype would still apply. */
9849 #ifdef __cplusplus
9850 extern "C"
9851 #endif
9852 char dlopen ();
9853 int
9854 main ()
9855 {
9856 return dlopen ();
9857 ;
9858 return 0;
9859 }
9860 _ACEOF
9861 for ac_lib in '' dl; do
9862 if test -z "$ac_lib"; then
9863 ac_res="none required"
9864 else
9865 ac_res=-l$ac_lib
9866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9867 fi
9868 if ac_fn_cxx_try_link "$LINENO"; then :
9869 ac_cv_search_dlopen=$ac_res
9870 fi
9871 rm -f core conftest.err conftest.$ac_objext \
9872 conftest$ac_exeext
9873 if ${ac_cv_search_dlopen+:} false; then :
9874 break
9875 fi
9876 done
9877 if ${ac_cv_search_dlopen+:} false; then :
9878
9879 else
9880 ac_cv_search_dlopen=no
9881 fi
9882 rm conftest.$ac_ext
9883 LIBS=$ac_func_search_save_LIBS
9884 fi
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9886 $as_echo "$ac_cv_search_dlopen" >&6; }
9887 ac_res=$ac_cv_search_dlopen
9888 if test "$ac_res" != no; then :
9889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9890
9891 fi
9892
9893 DL_LIB="$LIBS"
9894 LIBS="$save_LIBS"
9895
9896
9897 # Use <inttypes.h> only if it exists,
9898 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9899 # PRId64
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9901 $as_echo_n "checking for inttypes.h... " >&6; }
9902 if ${gcc_cv_header_inttypes_h+:} false; then :
9903 $as_echo_n "(cached) " >&6
9904 else
9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906 /* end confdefs.h. */
9907 #define __STDC_FORMAT_MACROS
9908 #include <sys/types.h>
9909 #include <inttypes.h>
9910 int
9911 main ()
9912 {
9913 intmax_t i = -1;
9914 #ifndef PRId64
9915 choke me
9916 #endif
9917 ;
9918 return 0;
9919 }
9920 _ACEOF
9921 if ac_fn_cxx_try_compile "$LINENO"; then :
9922 gcc_cv_header_inttypes_h=yes
9923 else
9924 gcc_cv_header_inttypes_h=no
9925 fi
9926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9927 fi
9928
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9930 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9931 if test $gcc_cv_header_inttypes_h = yes; then
9932
9933 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9934
9935 fi
9936
9937 # Look for the ZSTD package.
9938 ZSTD_INCLUDE=
9939 ZSTD_LIB=
9940
9941
9942 ZSTD_CPPFLAGS=
9943 ZSTD_LDFLAGS=
9944
9945 # Check whether --with-zstd was given.
9946 if test "${with_zstd+set}" = set; then :
9947 withval=$with_zstd;
9948 fi
9949
9950
9951 # Check whether --with-zstd-include was given.
9952 if test "${with_zstd_include+set}" = set; then :
9953 withval=$with_zstd_include;
9954 fi
9955
9956
9957 # Check whether --with-zstd-lib was given.
9958 if test "${with_zstd_lib+set}" = set; then :
9959 withval=$with_zstd_lib;
9960 fi
9961
9962 case "x$with_zstd" in
9963 x) ;;
9964 xno)
9965 ZSTD_INCLUDE=no
9966 ZSTD_LIB=no
9967 ;;
9968 *) ZSTD_INCLUDE=$with_zstd/include
9969 ZSTD_LIB=$with_zstd/lib
9970 ;;
9971 esac
9972 if test "x$with_zstd_include" != x; then
9973 ZSTD_INCLUDE=$with_zstd_include
9974 fi
9975 if test "x$with_zstd_lib" != x; then
9976 ZSTD_LIB=$with_zstd_lib
9977 fi
9978 if test "x$ZSTD_INCLUDE" != x \
9979 && test "x$ZSTD_INCLUDE" != xno; then
9980 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
9981 fi
9982 if test "x$ZSTD_LIB" != x \
9983 && test "x$ZSTD_LIB" != xno; then
9984 ZSTD_LDFLAGS=-L$ZSTD_LIB
9985 fi
9986
9987 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
9988 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
9989
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
9991 $as_echo_n "checking for zstd.h... " >&6; }
9992 if ${gcc_cv_header_zstd_h+:} false; then :
9993 $as_echo_n "(cached) " >&6
9994 else
9995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996 /* end confdefs.h. */
9997 #include <zstd.h>
9998 int
9999 main ()
10000 {
10001
10002 ;
10003 return 0;
10004 }
10005 _ACEOF
10006 if ac_fn_cxx_try_compile "$LINENO"; then :
10007 gcc_cv_header_zstd_h=yes
10008 else
10009 gcc_cv_header_zstd_h=no
10010 fi
10011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10012 fi
10013
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10015 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10016 if test $gcc_cv_header_zstd_h = yes; then
10017
10018 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10019
10020 fi
10021
10022 # LTO can use zstd compression algorithm
10023 save_LIBS="$LIBS"
10024 LIBS=
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10026 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10027 if ${ac_cv_search_ZSTD_compress+:} false; then :
10028 $as_echo_n "(cached) " >&6
10029 else
10030 ac_func_search_save_LIBS=$LIBS
10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10033
10034 /* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
10037 #ifdef __cplusplus
10038 extern "C"
10039 #endif
10040 char ZSTD_compress ();
10041 int
10042 main ()
10043 {
10044 return ZSTD_compress ();
10045 ;
10046 return 0;
10047 }
10048 _ACEOF
10049 for ac_lib in '' zstd; do
10050 if test -z "$ac_lib"; then
10051 ac_res="none required"
10052 else
10053 ac_res=-l$ac_lib
10054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10055 fi
10056 if ac_fn_cxx_try_link "$LINENO"; then :
10057 ac_cv_search_ZSTD_compress=$ac_res
10058 fi
10059 rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext
10061 if ${ac_cv_search_ZSTD_compress+:} false; then :
10062 break
10063 fi
10064 done
10065 if ${ac_cv_search_ZSTD_compress+:} false; then :
10066
10067 else
10068 ac_cv_search_ZSTD_compress=no
10069 fi
10070 rm conftest.$ac_ext
10071 LIBS=$ac_func_search_save_LIBS
10072 fi
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10074 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10075 ac_res=$ac_cv_search_ZSTD_compress
10076 if test "$ac_res" != no; then :
10077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10078
10079 fi
10080
10081 ZSTD_LIB="$LIBS"
10082 LIBS="$save_LIBS"
10083
10084
10085
10086
10087 for ac_func in times clock kill getrlimit setrlimit atoq \
10088 popen sysconf strsignal getrusage nl_langinfo \
10089 gettimeofday mbstowcs wcswidth mmap setlocale \
10090 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
10091 do :
10092 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10093 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10094 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10095 cat >>confdefs.h <<_ACEOF
10096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10097 _ACEOF
10098
10099 fi
10100 done
10101
10102
10103 if test x$ac_cv_func_mbstowcs = xyes; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10105 $as_echo_n "checking whether mbstowcs works... " >&6; }
10106 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10107 $as_echo_n "(cached) " >&6
10108 else
10109 if test "$cross_compiling" = yes; then :
10110 gcc_cv_func_mbstowcs_works=yes
10111 else
10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h. */
10114 #include <stdlib.h>
10115 int main()
10116 {
10117 mbstowcs(0, "", 0);
10118 return 0;
10119 }
10120 _ACEOF
10121 if ac_fn_cxx_try_run "$LINENO"; then :
10122 gcc_cv_func_mbstowcs_works=yes
10123 else
10124 gcc_cv_func_mbstowcs_works=no
10125 fi
10126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10127 conftest.$ac_objext conftest.beam conftest.$ac_ext
10128 fi
10129
10130 fi
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10132 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10133 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10134
10135 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10136
10137 fi
10138 fi
10139
10140 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10141 if test "x$ac_cv_type_ssize_t" = xyes; then :
10142
10143 else
10144
10145 cat >>confdefs.h <<_ACEOF
10146 #define ssize_t int
10147 _ACEOF
10148
10149 fi
10150
10151 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10152 if test "x$ac_cv_type_caddr_t" = xyes; then :
10153
10154 else
10155
10156 cat >>confdefs.h <<_ACEOF
10157 #define caddr_t char *
10158 _ACEOF
10159
10160 fi
10161
10162
10163
10164 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10165 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10166 gcc_header_sys_mman_h=yes
10167 else
10168 gcc_header_sys_mman_h=no
10169 fi
10170
10171 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10172 if test "x$ac_cv_func_mmap" = xyes; then :
10173 gcc_func_mmap=yes
10174 else
10175 gcc_func_mmap=no
10176 fi
10177
10178 if test "$gcc_header_sys_mman_h" != yes \
10179 || test "$gcc_func_mmap" != yes; then
10180 gcc_cv_func_mmap_file=no
10181 gcc_cv_func_mmap_dev_zero=no
10182 gcc_cv_func_mmap_anon=no
10183 else
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10185 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10186 if ${gcc_cv_func_mmap_file+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188 else
10189 # Add a system to this blacklist if
10190 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10191 # memory area containing the same data that you'd get if you applied
10192 # read() to the same fd. The only system known to have a problem here
10193 # is VMS, where text files have record structure.
10194 case "$host_os" in
10195 *vms* | ultrix*)
10196 gcc_cv_func_mmap_file=no ;;
10197 *)
10198 gcc_cv_func_mmap_file=yes;;
10199 esac
10200 fi
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10202 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10204 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10205 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10206 $as_echo_n "(cached) " >&6
10207 else
10208 # Add a system to this blacklist if it has mmap() but /dev/zero
10209 # does not exist, or if mmapping /dev/zero does not give anonymous
10210 # zeroed pages with both the following properties:
10211 # 1. If you map N consecutive pages in with one call, and then
10212 # unmap any subset of those pages, the pages that were not
10213 # explicitly unmapped remain accessible.
10214 # 2. If you map two adjacent blocks of memory and then unmap them
10215 # both at once, they must both go away.
10216 # Systems known to be in this category are Windows (all variants),
10217 # VMS, and Darwin.
10218 case "$host_os" in
10219 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10220 gcc_cv_func_mmap_dev_zero=no ;;
10221 *)
10222 gcc_cv_func_mmap_dev_zero=yes;;
10223 esac
10224 fi
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10226 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10227
10228 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10230 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10231 if ${gcc_cv_decl_map_anon+:} false; then :
10232 $as_echo_n "(cached) " >&6
10233 else
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10236 #include <sys/types.h>
10237 #include <sys/mman.h>
10238 #include <unistd.h>
10239
10240 #ifndef MAP_ANONYMOUS
10241 #define MAP_ANONYMOUS MAP_ANON
10242 #endif
10243
10244 int
10245 main ()
10246 {
10247 int n = MAP_ANONYMOUS;
10248 ;
10249 return 0;
10250 }
10251 _ACEOF
10252 if ac_fn_cxx_try_compile "$LINENO"; then :
10253 gcc_cv_decl_map_anon=yes
10254 else
10255 gcc_cv_decl_map_anon=no
10256 fi
10257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10258 fi
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10260 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10261
10262 if test $gcc_cv_decl_map_anon = no; then
10263 gcc_cv_func_mmap_anon=no
10264 else
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10266 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10267 if ${gcc_cv_func_mmap_anon+:} false; then :
10268 $as_echo_n "(cached) " >&6
10269 else
10270 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10271 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10272 # doesn't give anonymous zeroed pages with the same properties listed
10273 # above for use of /dev/zero.
10274 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10275 case "$host_os" in
10276 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10277 gcc_cv_func_mmap_anon=no ;;
10278 *)
10279 gcc_cv_func_mmap_anon=yes;;
10280 esac
10281 fi
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10283 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10284 fi
10285 fi
10286
10287 if test $gcc_cv_func_mmap_file = yes; then
10288
10289 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10290
10291 fi
10292 if test $gcc_cv_func_mmap_dev_zero = yes; then
10293
10294 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10295
10296 fi
10297 if test $gcc_cv_func_mmap_anon = yes; then
10298
10299 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10300
10301 fi
10302
10303
10304 case "${host}" in
10305 *-*-*vms*)
10306 # Under VMS, vfork works very differently than on Unix. The standard test
10307 # won't work, and it isn't easily adaptable. It makes more sense to
10308 # just force it.
10309 ac_cv_func_vfork_works=yes
10310 ;;
10311 esac
10312 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10313 if test "x$ac_cv_type_pid_t" = xyes; then :
10314
10315 else
10316
10317 cat >>confdefs.h <<_ACEOF
10318 #define pid_t int
10319 _ACEOF
10320
10321 fi
10322
10323 for ac_header in vfork.h
10324 do :
10325 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10326 if test "x$ac_cv_header_vfork_h" = xyes; then :
10327 cat >>confdefs.h <<_ACEOF
10328 #define HAVE_VFORK_H 1
10329 _ACEOF
10330
10331 fi
10332 done
10333
10334 for ac_func in fork vfork
10335 do :
10336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10337 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10338 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10339 cat >>confdefs.h <<_ACEOF
10340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10341 _ACEOF
10342
10343 fi
10344 done
10345
10346 if test "x$ac_cv_func_fork" = xyes; then
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10348 $as_echo_n "checking for working fork... " >&6; }
10349 if ${ac_cv_func_fork_works+:} false; then :
10350 $as_echo_n "(cached) " >&6
10351 else
10352 if test "$cross_compiling" = yes; then :
10353 ac_cv_func_fork_works=cross
10354 else
10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10357 $ac_includes_default
10358 int
10359 main ()
10360 {
10361
10362 /* By Ruediger Kuhlmann. */
10363 return fork () < 0;
10364
10365 ;
10366 return 0;
10367 }
10368 _ACEOF
10369 if ac_fn_cxx_try_run "$LINENO"; then :
10370 ac_cv_func_fork_works=yes
10371 else
10372 ac_cv_func_fork_works=no
10373 fi
10374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10375 conftest.$ac_objext conftest.beam conftest.$ac_ext
10376 fi
10377
10378 fi
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10380 $as_echo "$ac_cv_func_fork_works" >&6; }
10381
10382 else
10383 ac_cv_func_fork_works=$ac_cv_func_fork
10384 fi
10385 if test "x$ac_cv_func_fork_works" = xcross; then
10386 case $host in
10387 *-*-amigaos* | *-*-msdosdjgpp*)
10388 # Override, as these systems have only a dummy fork() stub
10389 ac_cv_func_fork_works=no
10390 ;;
10391 *)
10392 ac_cv_func_fork_works=yes
10393 ;;
10394 esac
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10396 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10397 fi
10398 ac_cv_func_vfork_works=$ac_cv_func_vfork
10399 if test "x$ac_cv_func_vfork" = xyes; then
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10401 $as_echo_n "checking for working vfork... " >&6; }
10402 if ${ac_cv_func_vfork_works+:} false; then :
10403 $as_echo_n "(cached) " >&6
10404 else
10405 if test "$cross_compiling" = yes; then :
10406 ac_cv_func_vfork_works=cross
10407 else
10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10410 /* Thanks to Paul Eggert for this test. */
10411 $ac_includes_default
10412 #include <sys/wait.h>
10413 #ifdef HAVE_VFORK_H
10414 # include <vfork.h>
10415 #endif
10416 /* On some sparc systems, changes by the child to local and incoming
10417 argument registers are propagated back to the parent. The compiler
10418 is told about this with #include <vfork.h>, but some compilers
10419 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10420 static variable whose address is put into a register that is
10421 clobbered by the vfork. */
10422 static void
10423 #ifdef __cplusplus
10424 sparc_address_test (int arg)
10425 # else
10426 sparc_address_test (arg) int arg;
10427 #endif
10428 {
10429 static pid_t child;
10430 if (!child) {
10431 child = vfork ();
10432 if (child < 0) {
10433 perror ("vfork");
10434 _exit(2);
10435 }
10436 if (!child) {
10437 arg = getpid();
10438 write(-1, "", 0);
10439 _exit (arg);
10440 }
10441 }
10442 }
10443
10444 int
10445 main ()
10446 {
10447 pid_t parent = getpid ();
10448 pid_t child;
10449
10450 sparc_address_test (0);
10451
10452 child = vfork ();
10453
10454 if (child == 0) {
10455 /* Here is another test for sparc vfork register problems. This
10456 test uses lots of local variables, at least as many local
10457 variables as main has allocated so far including compiler
10458 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10459 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10460 reuse the register of parent for one of the local variables,
10461 since it will think that parent can't possibly be used any more
10462 in this routine. Assigning to the local variable will thus
10463 munge parent in the parent process. */
10464 pid_t
10465 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10466 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10467 /* Convince the compiler that p..p7 are live; otherwise, it might
10468 use the same hardware register for all 8 local variables. */
10469 if (p != p1 || p != p2 || p != p3 || p != p4
10470 || p != p5 || p != p6 || p != p7)
10471 _exit(1);
10472
10473 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10474 from child file descriptors. If the child closes a descriptor
10475 before it execs or exits, this munges the parent's descriptor
10476 as well. Test for this by closing stdout in the child. */
10477 _exit(close(fileno(stdout)) != 0);
10478 } else {
10479 int status;
10480 struct stat st;
10481
10482 while (wait(&status) != child)
10483 ;
10484 return (
10485 /* Was there some problem with vforking? */
10486 child < 0
10487
10488 /* Did the child fail? (This shouldn't happen.) */
10489 || status
10490
10491 /* Did the vfork/compiler bug occur? */
10492 || parent != getpid()
10493
10494 /* Did the file descriptor bug occur? */
10495 || fstat(fileno(stdout), &st) != 0
10496 );
10497 }
10498 }
10499 _ACEOF
10500 if ac_fn_cxx_try_run "$LINENO"; then :
10501 ac_cv_func_vfork_works=yes
10502 else
10503 ac_cv_func_vfork_works=no
10504 fi
10505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10506 conftest.$ac_objext conftest.beam conftest.$ac_ext
10507 fi
10508
10509 fi
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10511 $as_echo "$ac_cv_func_vfork_works" >&6; }
10512
10513 fi;
10514 if test "x$ac_cv_func_fork_works" = xcross; then
10515 ac_cv_func_vfork_works=$ac_cv_func_vfork
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10517 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10518 fi
10519
10520 if test "x$ac_cv_func_vfork_works" = xyes; then
10521
10522 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10523
10524 else
10525
10526 $as_echo "#define vfork fork" >>confdefs.h
10527
10528 fi
10529 if test "x$ac_cv_func_fork_works" = xyes; then
10530
10531 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10532
10533 fi
10534
10535
10536
10537 if test "X$prefix" = "XNONE"; then
10538 acl_final_prefix="$ac_default_prefix"
10539 else
10540 acl_final_prefix="$prefix"
10541 fi
10542 if test "X$exec_prefix" = "XNONE"; then
10543 acl_final_exec_prefix='${prefix}'
10544 else
10545 acl_final_exec_prefix="$exec_prefix"
10546 fi
10547 acl_save_prefix="$prefix"
10548 prefix="$acl_final_prefix"
10549 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10550 prefix="$acl_save_prefix"
10551
10552
10553 # Check whether --with-gnu-ld was given.
10554 if test "${with_gnu_ld+set}" = set; then :
10555 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10556 else
10557 with_gnu_ld=no
10558 fi
10559
10560 # Prepare PATH_SEPARATOR.
10561 # The user is always right.
10562 if test "${PATH_SEPARATOR+set}" != set; then
10563 echo "#! /bin/sh" >conf$$.sh
10564 echo "exit 0" >>conf$$.sh
10565 chmod +x conf$$.sh
10566 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10567 PATH_SEPARATOR=';'
10568 else
10569 PATH_SEPARATOR=:
10570 fi
10571 rm -f conf$$.sh
10572 fi
10573 ac_prog=ld
10574 if test "$GCC" = yes; then
10575 # Check if gcc -print-prog-name=ld gives a path.
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10577 $as_echo_n "checking for ld used by GCC... " >&6; }
10578 case $host in
10579 *-*-mingw*)
10580 # gcc leaves a trailing carriage return which upsets mingw
10581 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10582 *)
10583 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10584 esac
10585 case $ac_prog in
10586 # Accept absolute paths.
10587 [\\/]* | [A-Za-z]:[\\/]*)
10588 re_direlt='/[^/][^/]*/\.\./'
10589 # Canonicalize the path of ld
10590 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10591 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10592 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10593 done
10594 test -z "$LD" && LD="$ac_prog"
10595 ;;
10596 "")
10597 # If it fails, then pretend we aren't using GCC.
10598 ac_prog=ld
10599 ;;
10600 *)
10601 # If it is relative, then search for the first ld in PATH.
10602 with_gnu_ld=unknown
10603 ;;
10604 esac
10605 elif test "$with_gnu_ld" = yes; then
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10607 $as_echo_n "checking for GNU ld... " >&6; }
10608 else
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10610 $as_echo_n "checking for non-GNU ld... " >&6; }
10611 fi
10612 if ${acl_cv_path_LD+:} false; then :
10613 $as_echo_n "(cached) " >&6
10614 else
10615 if test -z "$LD"; then
10616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10617 for ac_dir in $PATH; do
10618 test -z "$ac_dir" && ac_dir=.
10619 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10620 acl_cv_path_LD="$ac_dir/$ac_prog"
10621 # Check to see if the program is GNU ld. I'd rather use --version,
10622 # but apparently some GNU ld's only accept -v.
10623 # Break only if it was the GNU/non-GNU ld that we prefer.
10624 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10625 test "$with_gnu_ld" != no && break
10626 else
10627 test "$with_gnu_ld" != yes && break
10628 fi
10629 fi
10630 done
10631 IFS="$ac_save_ifs"
10632 else
10633 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10634 fi
10635 fi
10636
10637 LD="$acl_cv_path_LD"
10638 if test -n "$LD"; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10640 $as_echo "$LD" >&6; }
10641 else
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10643 $as_echo "no" >&6; }
10644 fi
10645 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10647 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10648 if ${acl_cv_prog_gnu_ld+:} false; then :
10649 $as_echo_n "(cached) " >&6
10650 else
10651 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10652 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10653 acl_cv_prog_gnu_ld=yes
10654 else
10655 acl_cv_prog_gnu_ld=no
10656 fi
10657 fi
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10659 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10660 with_gnu_ld=$acl_cv_prog_gnu_ld
10661
10662
10663
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10665 $as_echo_n "checking for shared library run path origin... " >&6; }
10666 if ${acl_cv_rpath+:} false; then :
10667 $as_echo_n "(cached) " >&6
10668 else
10669
10670 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10671 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10672 . ./conftest.sh
10673 rm -f ./conftest.sh
10674 acl_cv_rpath=done
10675
10676 fi
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10678 $as_echo "$acl_cv_rpath" >&6; }
10679 wl="$acl_cv_wl"
10680 libext="$acl_cv_libext"
10681 shlibext="$acl_cv_shlibext"
10682 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10683 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10684 hardcode_direct="$acl_cv_hardcode_direct"
10685 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10686 # Check whether --enable-rpath was given.
10687 if test "${enable_rpath+set}" = set; then :
10688 enableval=$enable_rpath; :
10689 else
10690 enable_rpath=yes
10691 fi
10692
10693
10694
10695
10696
10697
10698
10699
10700 use_additional=yes
10701
10702 acl_save_prefix="$prefix"
10703 prefix="$acl_final_prefix"
10704 acl_save_exec_prefix="$exec_prefix"
10705 exec_prefix="$acl_final_exec_prefix"
10706
10707 eval additional_includedir=\"$includedir\"
10708 eval additional_libdir=\"$libdir\"
10709
10710 exec_prefix="$acl_save_exec_prefix"
10711 prefix="$acl_save_prefix"
10712
10713
10714 # Check whether --with-libiconv-prefix was given.
10715 if test "${with_libiconv_prefix+set}" = set; then :
10716 withval=$with_libiconv_prefix;
10717 if test "X$withval" = "Xno"; then
10718 use_additional=no
10719 else
10720 if test "X$withval" = "X"; then
10721
10722 acl_save_prefix="$prefix"
10723 prefix="$acl_final_prefix"
10724 acl_save_exec_prefix="$exec_prefix"
10725 exec_prefix="$acl_final_exec_prefix"
10726
10727 eval additional_includedir=\"$includedir\"
10728 eval additional_libdir=\"$libdir\"
10729
10730 exec_prefix="$acl_save_exec_prefix"
10731 prefix="$acl_save_prefix"
10732
10733 else
10734 additional_includedir="$withval/include"
10735 additional_libdir="$withval/lib"
10736 fi
10737 fi
10738
10739 fi
10740
10741
10742 # Check whether --with-libiconv-type was given.
10743 if test "${with_libiconv_type+set}" = set; then :
10744 withval=$with_libiconv_type; with_libiconv_type=$withval
10745 else
10746 with_libiconv_type=auto
10747 fi
10748
10749 lib_type=`eval echo \$with_libiconv_type`
10750
10751 LIBICONV=
10752 LTLIBICONV=
10753 INCICONV=
10754 rpathdirs=
10755 ltrpathdirs=
10756 names_already_handled=
10757 names_next_round='iconv '
10758 while test -n "$names_next_round"; do
10759 names_this_round="$names_next_round"
10760 names_next_round=
10761 for name in $names_this_round; do
10762 already_handled=
10763 for n in $names_already_handled; do
10764 if test "$n" = "$name"; then
10765 already_handled=yes
10766 break
10767 fi
10768 done
10769 if test -z "$already_handled"; then
10770 names_already_handled="$names_already_handled $name"
10771 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10772 eval value=\"\$HAVE_LIB$uppername\"
10773 if test -n "$value"; then
10774 if test "$value" = yes; then
10775 eval value=\"\$LIB$uppername\"
10776 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10777 eval value=\"\$LTLIB$uppername\"
10778 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10779 else
10780 :
10781 fi
10782 else
10783 found_dir=
10784 found_la=
10785 found_so=
10786 found_a=
10787 if test $use_additional = yes; then
10788 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10789 found_dir="$additional_libdir"
10790 found_so="$additional_libdir/lib$name.$shlibext"
10791 if test -f "$additional_libdir/lib$name.la"; then
10792 found_la="$additional_libdir/lib$name.la"
10793 fi
10794 elif test x$lib_type != xshared; then
10795 if test -f "$additional_libdir/lib$name.$libext"; then
10796 found_dir="$additional_libdir"
10797 found_a="$additional_libdir/lib$name.$libext"
10798 if test -f "$additional_libdir/lib$name.la"; then
10799 found_la="$additional_libdir/lib$name.la"
10800 fi
10801 fi
10802 fi
10803 fi
10804 if test "X$found_dir" = "X"; then
10805 for x in $LDFLAGS $LTLIBICONV; do
10806
10807 acl_save_prefix="$prefix"
10808 prefix="$acl_final_prefix"
10809 acl_save_exec_prefix="$exec_prefix"
10810 exec_prefix="$acl_final_exec_prefix"
10811 eval x=\"$x\"
10812 exec_prefix="$acl_save_exec_prefix"
10813 prefix="$acl_save_prefix"
10814
10815 case "$x" in
10816 -L*)
10817 dir=`echo "X$x" | sed -e 's/^X-L//'`
10818 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10819 found_dir="$dir"
10820 found_so="$dir/lib$name.$shlibext"
10821 if test -f "$dir/lib$name.la"; then
10822 found_la="$dir/lib$name.la"
10823 fi
10824 elif test x$lib_type != xshared; then
10825 if test -f "$dir/lib$name.$libext"; then
10826 found_dir="$dir"
10827 found_a="$dir/lib$name.$libext"
10828 if test -f "$dir/lib$name.la"; then
10829 found_la="$dir/lib$name.la"
10830 fi
10831 fi
10832 fi
10833 ;;
10834 esac
10835 if test "X$found_dir" != "X"; then
10836 break
10837 fi
10838 done
10839 fi
10840 if test "X$found_dir" != "X"; then
10841 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10842 if test "X$found_so" != "X"; then
10843 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10844 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10845 else
10846 haveit=
10847 for x in $ltrpathdirs; do
10848 if test "X$x" = "X$found_dir"; then
10849 haveit=yes
10850 break
10851 fi
10852 done
10853 if test -z "$haveit"; then
10854 ltrpathdirs="$ltrpathdirs $found_dir"
10855 fi
10856 if test "$hardcode_direct" = yes; then
10857 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10858 else
10859 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10860 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10861 haveit=
10862 for x in $rpathdirs; do
10863 if test "X$x" = "X$found_dir"; then
10864 haveit=yes
10865 break
10866 fi
10867 done
10868 if test -z "$haveit"; then
10869 rpathdirs="$rpathdirs $found_dir"
10870 fi
10871 else
10872 haveit=
10873 for x in $LDFLAGS $LIBICONV; do
10874
10875 acl_save_prefix="$prefix"
10876 prefix="$acl_final_prefix"
10877 acl_save_exec_prefix="$exec_prefix"
10878 exec_prefix="$acl_final_exec_prefix"
10879 eval x=\"$x\"
10880 exec_prefix="$acl_save_exec_prefix"
10881 prefix="$acl_save_prefix"
10882
10883 if test "X$x" = "X-L$found_dir"; then
10884 haveit=yes
10885 break
10886 fi
10887 done
10888 if test -z "$haveit"; then
10889 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10890 fi
10891 if test "$hardcode_minus_L" != no; then
10892 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10893 else
10894 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10895 fi
10896 fi
10897 fi
10898 fi
10899 else
10900 if test "X$found_a" != "X"; then
10901 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10902 else
10903 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10904 fi
10905 fi
10906 additional_includedir=
10907 case "$found_dir" in
10908 */lib | */lib/)
10909 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10910 additional_includedir="$basedir/include"
10911 ;;
10912 esac
10913 if test "X$additional_includedir" != "X"; then
10914 if test "X$additional_includedir" != "X/usr/include"; then
10915 haveit=
10916 if test "X$additional_includedir" = "X/usr/local/include"; then
10917 if test -n "$GCC"; then
10918 case $host_os in
10919 linux*) haveit=yes;;
10920 esac
10921 fi
10922 fi
10923 if test -z "$haveit"; then
10924 for x in $CPPFLAGS $INCICONV; do
10925
10926 acl_save_prefix="$prefix"
10927 prefix="$acl_final_prefix"
10928 acl_save_exec_prefix="$exec_prefix"
10929 exec_prefix="$acl_final_exec_prefix"
10930 eval x=\"$x\"
10931 exec_prefix="$acl_save_exec_prefix"
10932 prefix="$acl_save_prefix"
10933
10934 if test "X$x" = "X-I$additional_includedir"; then
10935 haveit=yes
10936 break
10937 fi
10938 done
10939 if test -z "$haveit"; then
10940 if test -d "$additional_includedir"; then
10941 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10942 fi
10943 fi
10944 fi
10945 fi
10946 fi
10947 if test -n "$found_la"; then
10948 save_libdir="$libdir"
10949 case "$found_la" in
10950 */* | *\\*) . "$found_la" ;;
10951 *) . "./$found_la" ;;
10952 esac
10953 libdir="$save_libdir"
10954 for dep in $dependency_libs; do
10955 case "$dep" in
10956 -L*)
10957 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10958 if test "X$additional_libdir" != "X/usr/lib"; then
10959 haveit=
10960 if test "X$additional_libdir" = "X/usr/local/lib"; then
10961 if test -n "$GCC"; then
10962 case $host_os in
10963 linux*) haveit=yes;;
10964 esac
10965 fi
10966 fi
10967 if test -z "$haveit"; then
10968 haveit=
10969 for x in $LDFLAGS $LIBICONV; do
10970
10971 acl_save_prefix="$prefix"
10972 prefix="$acl_final_prefix"
10973 acl_save_exec_prefix="$exec_prefix"
10974 exec_prefix="$acl_final_exec_prefix"
10975 eval x=\"$x\"
10976 exec_prefix="$acl_save_exec_prefix"
10977 prefix="$acl_save_prefix"
10978
10979 if test "X$x" = "X-L$additional_libdir"; then
10980 haveit=yes
10981 break
10982 fi
10983 done
10984 if test -z "$haveit"; then
10985 if test -d "$additional_libdir"; then
10986 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10987 fi
10988 fi
10989 haveit=
10990 for x in $LDFLAGS $LTLIBICONV; do
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 eval x=\"$x\"
10997 exec_prefix="$acl_save_exec_prefix"
10998 prefix="$acl_save_prefix"
10999
11000 if test "X$x" = "X-L$additional_libdir"; then
11001 haveit=yes
11002 break
11003 fi
11004 done
11005 if test -z "$haveit"; then
11006 if test -d "$additional_libdir"; then
11007 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11008 fi
11009 fi
11010 fi
11011 fi
11012 ;;
11013 -R*)
11014 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11015 if test "$enable_rpath" != no; then
11016 haveit=
11017 for x in $rpathdirs; do
11018 if test "X$x" = "X$dir"; then
11019 haveit=yes
11020 break
11021 fi
11022 done
11023 if test -z "$haveit"; then
11024 rpathdirs="$rpathdirs $dir"
11025 fi
11026 haveit=
11027 for x in $ltrpathdirs; do
11028 if test "X$x" = "X$dir"; then
11029 haveit=yes
11030 break
11031 fi
11032 done
11033 if test -z "$haveit"; then
11034 ltrpathdirs="$ltrpathdirs $dir"
11035 fi
11036 fi
11037 ;;
11038 -l*)
11039 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11040 ;;
11041 *.la)
11042 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11043 ;;
11044 *)
11045 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11046 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11047 ;;
11048 esac
11049 done
11050 fi
11051 else
11052 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11053 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11054 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11055 else
11056 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11057 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11058 fi
11059 fi
11060 fi
11061 fi
11062 done
11063 done
11064 if test "X$rpathdirs" != "X"; then
11065 if test -n "$hardcode_libdir_separator"; then
11066 alldirs=
11067 for found_dir in $rpathdirs; do
11068 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11069 done
11070 acl_save_libdir="$libdir"
11071 libdir="$alldirs"
11072 eval flag=\"$hardcode_libdir_flag_spec\"
11073 libdir="$acl_save_libdir"
11074 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11075 else
11076 for found_dir in $rpathdirs; do
11077 acl_save_libdir="$libdir"
11078 libdir="$found_dir"
11079 eval flag=\"$hardcode_libdir_flag_spec\"
11080 libdir="$acl_save_libdir"
11081 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11082 done
11083 fi
11084 fi
11085 if test "X$ltrpathdirs" != "X"; then
11086 for found_dir in $ltrpathdirs; do
11087 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11088 done
11089 fi
11090
11091
11092
11093
11094
11095
11096
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11098 $as_echo_n "checking for iconv... " >&6; }
11099 if ${am_cv_func_iconv+:} false; then :
11100 $as_echo_n "(cached) " >&6
11101 else
11102
11103 am_cv_func_iconv="no, consider installing GNU libiconv"
11104 am_cv_lib_iconv=no
11105 am_save_CPPFLAGS="$CPPFLAGS"
11106 CPPFLAGS="$CPPFLAGS $INCICONV"
11107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11109 #include <stdlib.h>
11110 #include <iconv.h>
11111 int
11112 main ()
11113 {
11114 iconv_t cd = iconv_open("","");
11115 iconv(cd,NULL,NULL,NULL,NULL);
11116 iconv_close(cd);
11117 ;
11118 return 0;
11119 }
11120 _ACEOF
11121 if ac_fn_cxx_try_link "$LINENO"; then :
11122 am_cv_func_iconv=yes
11123 fi
11124 rm -f core conftest.err conftest.$ac_objext \
11125 conftest$ac_exeext conftest.$ac_ext
11126 CPPFLAGS="$am_save_CPPFLAGS"
11127
11128 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11129 for _libs in .libs _libs; do
11130 am_save_CPPFLAGS="$CPPFLAGS"
11131 am_save_LIBS="$LIBS"
11132 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11133 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135 /* end confdefs.h. */
11136 #include <stdlib.h>
11137 #include <iconv.h>
11138 int
11139 main ()
11140 {
11141 iconv_t cd = iconv_open("","");
11142 iconv(cd,NULL,NULL,NULL,NULL);
11143 iconv_close(cd);
11144 ;
11145 return 0;
11146 }
11147 _ACEOF
11148 if ac_fn_cxx_try_link "$LINENO"; then :
11149 INCICONV="-I../libiconv/include"
11150 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11151 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11152 am_cv_lib_iconv=yes
11153 am_cv_func_iconv=yes
11154 fi
11155 rm -f core conftest.err conftest.$ac_objext \
11156 conftest$ac_exeext conftest.$ac_ext
11157 CPPFLAGS="$am_save_CPPFLAGS"
11158 LIBS="$am_save_LIBS"
11159 if test "$am_cv_func_iconv" = "yes"; then
11160 break
11161 fi
11162 done
11163 fi
11164
11165 if test "$am_cv_func_iconv" != yes; then
11166 am_save_CPPFLAGS="$CPPFLAGS"
11167 am_save_LIBS="$LIBS"
11168 CPPFLAGS="$CPPFLAGS $INCICONV"
11169 LIBS="$LIBS $LIBICONV"
11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11172 #include <stdlib.h>
11173 #include <iconv.h>
11174 int
11175 main ()
11176 {
11177 iconv_t cd = iconv_open("","");
11178 iconv(cd,NULL,NULL,NULL,NULL);
11179 iconv_close(cd);
11180 ;
11181 return 0;
11182 }
11183 _ACEOF
11184 if ac_fn_cxx_try_link "$LINENO"; then :
11185 am_cv_lib_iconv=yes
11186 am_cv_func_iconv=yes
11187 fi
11188 rm -f core conftest.err conftest.$ac_objext \
11189 conftest$ac_exeext conftest.$ac_ext
11190 CPPFLAGS="$am_save_CPPFLAGS"
11191 LIBS="$am_save_LIBS"
11192 fi
11193
11194 fi
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11196 $as_echo "$am_cv_func_iconv" >&6; }
11197 if test "$am_cv_func_iconv" = yes; then
11198
11199 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11200
11201 fi
11202 if test "$am_cv_lib_iconv" = yes; then
11203
11204 for element in $INCICONV; do
11205 haveit=
11206 for x in $CPPFLAGS; do
11207
11208 acl_save_prefix="$prefix"
11209 prefix="$acl_final_prefix"
11210 acl_save_exec_prefix="$exec_prefix"
11211 exec_prefix="$acl_final_exec_prefix"
11212 eval x=\"$x\"
11213 exec_prefix="$acl_save_exec_prefix"
11214 prefix="$acl_save_prefix"
11215
11216 if test "X$x" = "X$element"; then
11217 haveit=yes
11218 break
11219 fi
11220 done
11221 if test -z "$haveit"; then
11222 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11223 fi
11224 done
11225
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11227 $as_echo_n "checking how to link with libiconv... " >&6; }
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11229 $as_echo "$LIBICONV" >&6; }
11230 else
11231 LIBICONV=
11232 LTLIBICONV=
11233 fi
11234
11235
11236
11237 if test "$am_cv_func_iconv" = yes; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11239 $as_echo_n "checking for iconv declaration... " >&6; }
11240 if ${am_cv_proto_iconv+:} false; then :
11241 $as_echo_n "(cached) " >&6
11242 else
11243
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11246
11247 #include <stdlib.h>
11248 #include <iconv.h>
11249 extern
11250 #ifdef __cplusplus
11251 "C"
11252 #endif
11253 #if defined(__STDC__) || defined(__cplusplus)
11254 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11255 #else
11256 size_t iconv();
11257 #endif
11258
11259 int
11260 main ()
11261 {
11262
11263 ;
11264 return 0;
11265 }
11266 _ACEOF
11267 if ac_fn_cxx_try_compile "$LINENO"; then :
11268 am_cv_proto_iconv_arg1=""
11269 else
11270 am_cv_proto_iconv_arg1="const"
11271 fi
11272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 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);"
11274 fi
11275
11276 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11278 }$am_cv_proto_iconv" >&5
11279 $as_echo "${ac_t:-
11280 }$am_cv_proto_iconv" >&6; }
11281
11282 cat >>confdefs.h <<_ACEOF
11283 #define ICONV_CONST $am_cv_proto_iconv_arg1
11284 _ACEOF
11285
11286 fi
11287
11288
11289 # Until we have in-tree GNU iconv:
11290 LIBICONV_DEP=
11291 if test -f "$LTLIBICONV"; then
11292 LIBICONV_DEP=$LTLIBICONV
11293 fi
11294
11295
11296
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11298 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11299 if ${am_cv_val_LC_MESSAGES+:} false; then :
11300 $as_echo_n "(cached) " >&6
11301 else
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11304 #include <locale.h>
11305 int
11306 main ()
11307 {
11308 return LC_MESSAGES
11309 ;
11310 return 0;
11311 }
11312 _ACEOF
11313 if ac_fn_cxx_try_link "$LINENO"; then :
11314 am_cv_val_LC_MESSAGES=yes
11315 else
11316 am_cv_val_LC_MESSAGES=no
11317 fi
11318 rm -f core conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11320 fi
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11322 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11323 if test $am_cv_val_LC_MESSAGES = yes; then
11324
11325 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11326
11327 fi
11328
11329
11330
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11332 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11333 if ${am_cv_langinfo_codeset+:} false; then :
11334 $as_echo_n "(cached) " >&6
11335 else
11336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h. */
11338 #include <langinfo.h>
11339 int
11340 main ()
11341 {
11342 char* cs = nl_langinfo(CODESET);
11343 ;
11344 return 0;
11345 }
11346 _ACEOF
11347 if ac_fn_cxx_try_link "$LINENO"; then :
11348 am_cv_langinfo_codeset=yes
11349 else
11350 am_cv_langinfo_codeset=no
11351 fi
11352 rm -f core conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
11354
11355 fi
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11357 $as_echo "$am_cv_langinfo_codeset" >&6; }
11358 if test $am_cv_langinfo_codeset = yes; then
11359
11360 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11361
11362 fi
11363
11364
11365 # We will need to find libiberty.h and ansidecl.h
11366 saved_CFLAGS="$CFLAGS"
11367 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11368 saved_CXXFLAGS="$CXXFLAGS"
11369 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11370
11371 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11372 # normal autoconf function for these. But force definition of
11373 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11374 # basename handling in libiberty.h.
11375 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11376 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11377 #undef HAVE_DECL_BASENAME
11378 #define HAVE_DECL_BASENAME 1
11379 #include \"ansidecl.h\"
11380 #include \"system.h\"
11381 "
11382 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11383 ac_have_decl=1
11384 else
11385 ac_have_decl=0
11386 fi
11387
11388 cat >>confdefs.h <<_ACEOF
11389 #define HAVE_DECL_BASENAME $ac_have_decl
11390 _ACEOF
11391 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11392 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11393 #undef HAVE_DECL_BASENAME
11394 #define HAVE_DECL_BASENAME 1
11395 #include \"ansidecl.h\"
11396 #include \"system.h\"
11397 "
11398 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11399 ac_have_decl=1
11400 else
11401 ac_have_decl=0
11402 fi
11403
11404 cat >>confdefs.h <<_ACEOF
11405 #define HAVE_DECL_STRSTR $ac_have_decl
11406 _ACEOF
11407
11408
11409 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11410 madvise stpcpy strnlen strsignal strverscmp \
11411 strtol strtoul strtoll strtoull setenv unsetenv \
11412 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11413 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
11414 do
11415 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11417 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11418 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11419 $as_echo_n "(cached) " >&6
11420 else
11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11423 #undef $ac_tr_decl
11424 #define $ac_tr_decl 1
11425
11426 #include "ansidecl.h"
11427 #include "system.h"
11428
11429 int
11430 main ()
11431 {
11432 #ifndef $ac_func
11433 char *(*pfn) = (char *(*)) $ac_func ;
11434 #endif
11435 ;
11436 return 0;
11437 }
11438 _ACEOF
11439 if ac_fn_cxx_try_compile "$LINENO"; then :
11440 eval "gcc_cv_have_decl_$ac_func=yes"
11441 else
11442 eval "gcc_cv_have_decl_$ac_func=no"
11443 fi
11444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11445 fi
11446
11447 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11449 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11450 #define $ac_tr_decl 1
11451 _ACEOF
11452
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11456 #define $ac_tr_decl 0
11457 _ACEOF
11458
11459 fi
11460
11461 done
11462
11463
11464 for ac_func in getrlimit setrlimit getrusage
11465 do
11466 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11468 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11469 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11470 $as_echo_n "(cached) " >&6
11471 else
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11474 #undef $ac_tr_decl
11475 #define $ac_tr_decl 1
11476
11477 #include "ansidecl.h"
11478 #include "system.h"
11479 #ifdef HAVE_SYS_RESOURCE_H
11480 #include <sys/resource.h>
11481 #endif
11482
11483
11484 int
11485 main ()
11486 {
11487 #ifndef $ac_func
11488 char *(*pfn) = (char *(*)) $ac_func ;
11489 #endif
11490 ;
11491 return 0;
11492 }
11493 _ACEOF
11494 if ac_fn_cxx_try_compile "$LINENO"; then :
11495 eval "gcc_cv_have_decl_$ac_func=yes"
11496 else
11497 eval "gcc_cv_have_decl_$ac_func=no"
11498 fi
11499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11500 fi
11501
11502 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11504 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11505 #define $ac_tr_decl 1
11506 _ACEOF
11507
11508 else
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11511 #define $ac_tr_decl 0
11512 _ACEOF
11513
11514 fi
11515
11516 done
11517
11518
11519 for ac_func in mallinfo
11520 do
11521 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11523 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11524 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11525 $as_echo_n "(cached) " >&6
11526 else
11527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h. */
11529 #undef $ac_tr_decl
11530 #define $ac_tr_decl 1
11531
11532 #include "ansidecl.h"
11533 #include "system.h"
11534 #ifdef HAVE_MALLOC_H
11535 #include <malloc.h>
11536 #endif
11537
11538
11539 int
11540 main ()
11541 {
11542 #ifndef $ac_func
11543 char *(*pfn) = (char *(*)) $ac_func ;
11544 #endif
11545 ;
11546 return 0;
11547 }
11548 _ACEOF
11549 if ac_fn_cxx_try_compile "$LINENO"; then :
11550 eval "gcc_cv_have_decl_$ac_func=yes"
11551 else
11552 eval "gcc_cv_have_decl_$ac_func=no"
11553 fi
11554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11555 fi
11556
11557 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11559 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11560 #define $ac_tr_decl 1
11561 _ACEOF
11562
11563 else
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11566 #define $ac_tr_decl 0
11567 _ACEOF
11568
11569 fi
11570
11571 done
11572
11573
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11576
11577 #include "ansidecl.h"
11578 #include "system.h"
11579 #ifdef HAVE_SYS_RESOURCE_H
11580 #include <sys/resource.h>
11581 #endif
11582
11583 int
11584 main ()
11585 {
11586 rlim_t l = 0;
11587 ;
11588 return 0;
11589 }
11590 _ACEOF
11591 if ac_fn_cxx_try_compile "$LINENO"; then :
11592
11593 else
11594
11595 $as_echo "#define rlim_t long" >>confdefs.h
11596
11597 fi
11598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11599
11600 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11601 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11602 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11603 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11604 for ac_func in ldgetname
11605 do
11606 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11608 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11609 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11610 $as_echo_n "(cached) " >&6
11611 else
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11614 #undef $ac_tr_decl
11615 #define $ac_tr_decl 1
11616
11617 #include "ansidecl.h"
11618 #include "system.h"
11619 #ifdef HAVE_LDFCN_H
11620 #undef FREAD
11621 #undef FWRITE
11622 #include <ldfcn.h>
11623 #endif
11624
11625
11626 int
11627 main ()
11628 {
11629 #ifndef $ac_func
11630 char *(*pfn) = (char *(*)) $ac_func ;
11631 #endif
11632 ;
11633 return 0;
11634 }
11635 _ACEOF
11636 if ac_fn_cxx_try_compile "$LINENO"; then :
11637 eval "gcc_cv_have_decl_$ac_func=yes"
11638 else
11639 eval "gcc_cv_have_decl_$ac_func=no"
11640 fi
11641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11642 fi
11643
11644 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11646 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11647 #define $ac_tr_decl 1
11648 _ACEOF
11649
11650 else
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11652 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11653 #define $ac_tr_decl 0
11654 _ACEOF
11655
11656 fi
11657
11658 done
11659
11660
11661 for ac_func in times
11662 do
11663 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11665 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11666 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11667 $as_echo_n "(cached) " >&6
11668 else
11669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11671 #undef $ac_tr_decl
11672 #define $ac_tr_decl 1
11673
11674 #include "ansidecl.h"
11675 #include "system.h"
11676 #ifdef HAVE_SYS_TIMES_H
11677 #include <sys/times.h>
11678 #endif
11679
11680
11681 int
11682 main ()
11683 {
11684 #ifndef $ac_func
11685 char *(*pfn) = (char *(*)) $ac_func ;
11686 #endif
11687 ;
11688 return 0;
11689 }
11690 _ACEOF
11691 if ac_fn_cxx_try_compile "$LINENO"; then :
11692 eval "gcc_cv_have_decl_$ac_func=yes"
11693 else
11694 eval "gcc_cv_have_decl_$ac_func=no"
11695 fi
11696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11697 fi
11698
11699 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11701 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11702 #define $ac_tr_decl 1
11703 _ACEOF
11704
11705 else
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11708 #define $ac_tr_decl 0
11709 _ACEOF
11710
11711 fi
11712
11713 done
11714
11715
11716 for ac_func in sigaltstack
11717 do
11718 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11720 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11721 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11722 $as_echo_n "(cached) " >&6
11723 else
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11726 #undef $ac_tr_decl
11727 #define $ac_tr_decl 1
11728
11729 #include "ansidecl.h"
11730 #include "system.h"
11731 #include <signal.h>
11732
11733
11734 int
11735 main ()
11736 {
11737 #ifndef $ac_func
11738 char *(*pfn) = (char *(*)) $ac_func ;
11739 #endif
11740 ;
11741 return 0;
11742 }
11743 _ACEOF
11744 if ac_fn_cxx_try_compile "$LINENO"; then :
11745 eval "gcc_cv_have_decl_$ac_func=yes"
11746 else
11747 eval "gcc_cv_have_decl_$ac_func=no"
11748 fi
11749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11750 fi
11751
11752 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11754 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11755 #define $ac_tr_decl 1
11756 _ACEOF
11757
11758 else
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11761 #define $ac_tr_decl 0
11762 _ACEOF
11763
11764 fi
11765
11766 done
11767
11768
11769 # More time-related stuff.
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11771 $as_echo_n "checking for struct tms... " >&6; }
11772 if ${ac_cv_struct_tms+:} false; then :
11773 $as_echo_n "(cached) " >&6
11774 else
11775
11776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h. */
11778
11779 #include "ansidecl.h"
11780 #include "system.h"
11781 #ifdef HAVE_SYS_TIMES_H
11782 #include <sys/times.h>
11783 #endif
11784
11785 int
11786 main ()
11787 {
11788 struct tms tms;
11789 ;
11790 return 0;
11791 }
11792 _ACEOF
11793 if ac_fn_cxx_try_compile "$LINENO"; then :
11794 ac_cv_struct_tms=yes
11795 else
11796 ac_cv_struct_tms=no
11797 fi
11798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11799 fi
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11801 $as_echo "$ac_cv_struct_tms" >&6; }
11802 if test $ac_cv_struct_tms = yes; then
11803
11804 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11805
11806 fi
11807
11808 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11809 # revisit after autoconf 2.50.
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11811 $as_echo_n "checking for clock_t... " >&6; }
11812 if ${gcc_cv_type_clock_t+:} false; then :
11813 $as_echo_n "(cached) " >&6
11814 else
11815
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11818
11819 #include "ansidecl.h"
11820 #include "system.h"
11821
11822 int
11823 main ()
11824 {
11825 clock_t x;
11826 ;
11827 return 0;
11828 }
11829 _ACEOF
11830 if ac_fn_cxx_try_compile "$LINENO"; then :
11831 gcc_cv_type_clock_t=yes
11832 else
11833 gcc_cv_type_clock_t=no
11834 fi
11835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836 fi
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11838 $as_echo "$gcc_cv_type_clock_t" >&6; }
11839 if test $gcc_cv_type_clock_t = yes; then
11840
11841 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11842
11843 fi
11844
11845 # Check if F_SETLKW is supported by fcntl.
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11847 $as_echo_n "checking for F_SETLKW... " >&6; }
11848 if ${ac_cv_f_setlkw+:} false; then :
11849 $as_echo_n "(cached) " >&6
11850 else
11851
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11854
11855 #include <fcntl.h>
11856 int
11857 main ()
11858 {
11859
11860 struct flock fl;
11861 fl.l_whence = 0;
11862 fl.l_start = 0;
11863 fl.l_len = 0;
11864 fl.l_pid = 0;
11865 return fcntl (1, F_SETLKW, &fl);
11866 ;
11867 return 0;
11868 }
11869 _ACEOF
11870 if ac_fn_cxx_try_compile "$LINENO"; then :
11871 ac_cv_f_setlkw=yes
11872 else
11873 ac_cv_f_setlkw=no
11874 fi
11875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11876 fi
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11878 $as_echo "$ac_cv_f_setlkw" >&6; }
11879 if test $ac_cv_f_setlkw = yes; then
11880
11881 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11882
11883 fi
11884
11885 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11886 CFLAGS="$saved_CFLAGS"
11887 CXXFLAGS="$saved_CXXFLAGS"
11888
11889 # mkdir takes a single argument on some systems.
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11891 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11892 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11893 $as_echo_n "(cached) " >&6
11894 else
11895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h. */
11897
11898 #include <sys/types.h>
11899 #ifdef HAVE_SYS_STAT_H
11900 # include <sys/stat.h>
11901 #endif
11902 #ifdef HAVE_UNISTD_H
11903 # include <unistd.h>
11904 #endif
11905 #ifdef HAVE_DIRECT_H
11906 # include <direct.h>
11907 #endif
11908 int
11909 main ()
11910 {
11911 mkdir ("foo", 0);
11912 ;
11913 return 0;
11914 }
11915 _ACEOF
11916 if ac_fn_cxx_try_compile "$LINENO"; then :
11917 gcc_cv_mkdir_takes_one_arg=no
11918 else
11919 gcc_cv_mkdir_takes_one_arg=yes
11920 fi
11921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11922 fi
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11924 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11925 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11926
11927 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11928
11929 fi
11930
11931
11932 # File extensions
11933 manext='.1'
11934 objext='.o'
11935
11936
11937
11938 # With Setjmp/Longjmp based exception handling.
11939 # Check whether --enable-sjlj-exceptions was given.
11940 if test "${enable_sjlj_exceptions+set}" = set; then :
11941 enableval=$enable_sjlj_exceptions; case $target in
11942 *-*-hpux10*)
11943 if test $enableval != yes; then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11945 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11946 enableval=yes
11947 fi
11948 ;;
11949 esac
11950 force_sjlj_exceptions=yes
11951 else
11952 case $target in
11953 *-*-hpux10*)
11954 force_sjlj_exceptions=yes
11955 enableval=yes
11956 ;;
11957 lm32*-*-*)
11958 force_sjlj_exceptions=yes
11959 enableval=yes
11960 ;;
11961 *)
11962 force_sjlj_exceptions=no
11963 ;;
11964 esac
11965 fi
11966
11967 if test $force_sjlj_exceptions = yes; then
11968 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11969
11970 cat >>confdefs.h <<_ACEOF
11971 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11972 _ACEOF
11973
11974 fi
11975
11976 # --------------------------------------------------------
11977 # Build, host, and target specific configuration fragments
11978 # --------------------------------------------------------
11979
11980 # Collect build-machine-specific information.
11981 . ${srcdir}/config.build || exit 1
11982
11983 # Collect host-machine-specific information.
11984 . ${srcdir}/config.host || exit 1
11985
11986 target_gtfiles=
11987
11988 # Collect target-machine-specific information.
11989 . ${srcdir}/config.gcc || exit 1
11990
11991 extra_objs="${host_extra_objs} ${extra_objs}"
11992 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11993
11994 # Default the target-machine variables that were not explicitly set.
11995 if test x"$tm_file" = x
11996 then tm_file=$cpu_type/$cpu_type.h; fi
11997
11998 if test x"$extra_headers" = x
11999 then extra_headers=; fi
12000
12001 if test x$md_file = x
12002 then md_file=$cpu_type/$cpu_type.md; fi
12003
12004 if test x$out_file = x
12005 then out_file=$cpu_type/$cpu_type.c; fi
12006
12007 if test x"$tmake_file" = x
12008 then tmake_file=$cpu_type/t-$cpu_type
12009 fi
12010
12011 # Support --enable-initfini-array.
12012 if test x$enable_initfini_array != xno; then
12013 tm_file="${tm_file} initfini-array.h"
12014 fi
12015
12016 if test x"$dwarf2" = xyes
12017 then tm_file="$tm_file tm-dwarf2.h"
12018 fi
12019
12020 # Say what files are being used for the output code and MD file.
12021 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12022 echo "Using \`$srcdir/config/$md_file' as machine description file."
12023
12024 # If any of the xm_file variables contain nonexistent files, warn
12025 # about them and drop them.
12026
12027 bx=
12028 for x in $build_xm_file; do
12029 if test -f $srcdir/config/$x
12030 then bx="$bx $x"
12031 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12032 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12033 fi
12034 done
12035 build_xm_file="$bx"
12036
12037 hx=
12038 for x in $host_xm_file; do
12039 if test -f $srcdir/config/$x
12040 then hx="$hx $x"
12041 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12042 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12043 fi
12044 done
12045 host_xm_file="$hx"
12046
12047 tx=
12048 for x in $xm_file; do
12049 if test -f $srcdir/config/$x
12050 then tx="$tx $x"
12051 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12052 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12053 fi
12054 done
12055 xm_file="$tx"
12056
12057 count=a
12058 for f in $tm_file; do
12059 count=${count}x
12060 done
12061 if test $count = ax; then
12062 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12063 else
12064 echo "Using the following target machine macro files:"
12065 for f in $tm_file; do
12066 echo " $srcdir/config/$f"
12067 done
12068 fi
12069
12070 if test x$use_long_long_for_widest_fast_int = xyes; then
12071
12072 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12073
12074 fi
12075
12076 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12077
12078 cat >>confdefs.h <<_ACEOF
12079 #define HAVE_GNU_LD $gnu_ld_bool
12080 _ACEOF
12081
12082
12083 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12084
12085 cat >>confdefs.h <<_ACEOF
12086 #define HAVE_GNU_AS $gnu_as_bool
12087 _ACEOF
12088
12089
12090 count=a
12091 for f in $host_xm_file; do
12092 count=${count}x
12093 done
12094 if test $count = a; then
12095 :
12096 elif test $count = ax; then
12097 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12098 else
12099 echo "Using the following host machine macro files:"
12100 for f in $host_xm_file; do
12101 echo " $srcdir/config/$f"
12102 done
12103 fi
12104 echo "Using ${out_host_hook_obj} for host machine hooks."
12105
12106 if test "$host_xm_file" != "$build_xm_file"; then
12107 count=a
12108 for f in $build_xm_file; do
12109 count=${count}x
12110 done
12111 if test $count = a; then
12112 :
12113 elif test $count = ax; then
12114 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12115 else
12116 echo "Using the following build machine macro files:"
12117 for f in $build_xm_file; do
12118 echo " $srcdir/config/$f"
12119 done
12120 fi
12121 fi
12122
12123 if test -n "$configured_native_system_header_dir"; then
12124 native_system_header_dir=$configured_native_system_header_dir
12125 fi
12126 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12127
12128
12129 case ${host} in
12130 powerpc*-*-darwin*)
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12132 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12133 if ${gcc_cv_mcontext_underscores+:} false; then :
12134 $as_echo_n "(cached) " >&6
12135 else
12136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137 /* end confdefs.h. */
12138
12139 #include <sys/cdefs.h>
12140 #include <sys/signal.h>
12141 #include <ucontext.h>
12142 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12143
12144 _ACEOF
12145 if ac_fn_cxx_try_compile "$LINENO"; then :
12146 gcc_cv_mcontext_underscores=no
12147 else
12148 gcc_cv_mcontext_underscores=yes
12149 fi
12150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12151 fi
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12153 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12154 if test $gcc_cv_mcontext_underscores = yes; then
12155
12156 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12157
12158 fi
12159 ;;
12160 esac
12161
12162 # ---------
12163 # Threading
12164 # ---------
12165
12166 # Check if a valid thread package
12167 case ${enable_threads} in
12168 "" | no)
12169 # No threads
12170 target_thread_file='single'
12171 ;;
12172 yes)
12173 # default
12174 target_thread_file='single'
12175 ;;
12176 aix | dce | lynx | mipssde | posix | rtems | \
12177 single | tpf | vxworks | win32)
12178 target_thread_file=${enable_threads}
12179 ;;
12180 *)
12181 echo "${enable_threads} is an unknown thread package" 1>&2
12182 exit 1
12183 ;;
12184 esac
12185
12186 if test x${thread_file} = x; then
12187 # No thread file set by target-specific clauses in config.gcc,
12188 # so use file chosen by default logic above
12189 thread_file=${target_thread_file}
12190 fi
12191
12192 # --------
12193 # UNSORTED
12194 # --------
12195
12196 use_cxa_atexit=no
12197 if test x$enable___cxa_atexit = xyes || \
12198 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12199 if test x$host = x$target; then
12200 case $host in
12201 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12202 # keyed to flag_use_cxa_atexit
12203 *-*-mingw32*)
12204 use_cxa_atexit=yes
12205 ;;
12206 powerpc-ibm-aix*)
12207 use_cxa_atexit=yes
12208 ;;
12209 *)
12210 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12211 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12212 use_cxa_atexit=yes
12213 else
12214 echo "__cxa_atexit can't be enabled on this target"
12215 fi
12216
12217 ;;
12218 esac
12219 else
12220 # We can't check for __cxa_atexit when building a cross, so assume
12221 # it is available
12222 use_cxa_atexit=yes
12223 fi
12224 if test x$use_cxa_atexit = xyes; then
12225
12226 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12227
12228 fi
12229 fi
12230
12231 # Look for a file containing extra machine modes.
12232 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12233 extra_modes_file='$(srcdir)'/config/${extra_modes}
12234
12235
12236 cat >>confdefs.h <<_ACEOF
12237 #define EXTRA_MODES_FILE "config/$extra_modes"
12238 _ACEOF
12239
12240 fi
12241
12242 # Convert extra_options into a form suitable for Makefile use.
12243 extra_opt_files=
12244 all_opt_files=
12245 for f in $extra_options; do
12246 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12247 all_opt_files="$all_opt_files $srcdir/config/$f"
12248 done
12249
12250
12251 # auto-host.h is the file containing items generated by autoconf and is
12252 # the first file included by config.h.
12253 # If host=build, it is correct to have bconfig include auto-host.h
12254 # as well. If host!=build, we are in error and need to do more
12255 # work to find out the build config parameters.
12256 if test x$host = x$build
12257 then
12258 build_auto=auto-host.h
12259 HAVE_AUTO_BUILD='# '
12260 else
12261 # We create a subdir, then run autoconf in the subdir.
12262 # To prevent recursion we set host and build for the new
12263 # invocation of configure to the build for this invocation
12264 # of configure.
12265 tempdir=build.$$
12266 rm -rf $tempdir
12267 mkdir $tempdir
12268 cd $tempdir
12269 case ${srcdir} in
12270 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12271 *) realsrcdir=../${srcdir};;
12272 esac
12273 # Clearing GMPINC is necessary to prevent host headers being
12274 # used by the build compiler. Defining GENERATOR_FILE stops
12275 # system.h from including gmp.h.
12276 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12277 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12278 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12279 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
12280 ${realsrcdir}/configure \
12281 --enable-languages=${enable_languages-all} \
12282 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12283 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12284 --target=$target_alias --host=$build_alias \
12285 --build=$build_alias || exit # retaining $tempdir
12286
12287 # We just finished tests for the build machine, so rename
12288 # the file auto-build.h in the gcc directory.
12289 mv auto-host.h ../auto-build.h
12290 cd ..
12291 rm -rf $tempdir
12292 build_auto=auto-build.h
12293 HAVE_AUTO_BUILD=
12294 fi
12295
12296
12297
12298 tm_file="${tm_file} defaults.h"
12299 tm_p_file="${tm_p_file} tm-preds.h"
12300 tm_d_file="${tm_d_file} defaults.h"
12301 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12302 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12303 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12304 # put this back in temporarily.
12305 xm_file="auto-host.h ansidecl.h ${xm_file}"
12306
12307 # --------
12308 # UNSORTED
12309 # --------
12310
12311 # Compile in configure arguments.
12312 if test -f configargs.h ; then
12313 # Being re-configured.
12314 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12315 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12316 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12317 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12318 fi
12319 else
12320 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12321 fi
12322
12323 # Double all backslashes and backslash all quotes to turn
12324 # gcc_config_arguments into a C string.
12325 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12326 $gcc_config_arguments
12327 EOF
12328 gcc_config_arguments_str=`cat conftest.out`
12329 rm -f conftest.out
12330
12331 cat > configargs.h <<EOF
12332 /* Generated automatically. */
12333 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12334 static const char thread_model[] = "$thread_file";
12335
12336 static const struct {
12337 const char *name, *value;
12338 } configure_default_options[] = $configure_default_options;
12339 EOF
12340
12341 gcc_BASEVER=`cat $srcdir/BASE-VER`
12342 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12343 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12344 if test -f $srcdir/REVISION ; then
12345 gcc_REVISION=`cat $srcdir/REVISION`
12346 else
12347 gcc_REVISION=""
12348 fi
12349 cat > plugin-version.h <<EOF
12350 #include "configargs.h"
12351
12352 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12353 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12354 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12355 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12356
12357 static char basever[] = "$gcc_BASEVER";
12358 static char datestamp[] = "$gcc_DATESTAMP";
12359 static char devphase[] = "$gcc_DEVPHASE";
12360 static char revision[] = "$gcc_REVISION";
12361
12362 /* FIXME plugins: We should make the version information more precise.
12363 One way to do is to add a checksum. */
12364
12365 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12366 devphase, revision,
12367 configuration_arguments};
12368 EOF
12369
12370 # Determine what GCC version number to use in filesystem paths.
12371
12372 get_gcc_base_ver="cat"
12373
12374 # Check whether --with-gcc-major-version-only was given.
12375 if test "${with_gcc_major_version_only+set}" = set; then :
12376 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12377 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12378 fi
12379
12380 fi
12381
12382
12383
12384
12385 # Internationalization
12386 # If we haven't got the data from the intl directory,
12387 # assume NLS is disabled.
12388 USE_NLS=no
12389 LIBINTL=
12390 LIBINTL_DEP=
12391 INCINTL=
12392 XGETTEXT=
12393 GMSGFMT=
12394 POSUB=
12395
12396 if test -f ../intl/config.intl; then
12397 . ../intl/config.intl
12398 fi
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12400 $as_echo_n "checking whether NLS is requested... " >&6; }
12401 if test x"$USE_NLS" != xyes; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12404 else
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12406 $as_echo "yes" >&6; }
12407
12408 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12409
12410
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12412 $as_echo_n "checking for catalogs to be installed... " >&6; }
12413 # Look for .po and .gmo files in the source directory.
12414 CATALOGS=
12415 XLINGUAS=
12416 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12417 # If there aren't any .gmo files the shell will give us the
12418 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12419 # weeded out.
12420 case "$cat" in *\**)
12421 continue;;
12422 esac
12423 # The quadruple backslash is collapsed to a double backslash
12424 # by the backticks, then collapsed again by the double quotes,
12425 # leaving us with one backslash in the sed expression (right
12426 # before the dot that mustn't act as a wildcard).
12427 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12428 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12429 # The user is allowed to set LINGUAS to a list of languages to
12430 # install catalogs for. If it's empty that means "all of them."
12431 if test "x$LINGUAS" = x; then
12432 CATALOGS="$CATALOGS $cat"
12433 XLINGUAS="$XLINGUAS $lang"
12434 else
12435 case "$LINGUAS" in *$lang*)
12436 CATALOGS="$CATALOGS $cat"
12437 XLINGUAS="$XLINGUAS $lang"
12438 ;;
12439 esac
12440 fi
12441 done
12442 LINGUAS="$XLINGUAS"
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12444 $as_echo "$LINGUAS" >&6; }
12445
12446
12447 DATADIRNAME=share
12448
12449 INSTOBJEXT=.mo
12450
12451 GENCAT=gencat
12452
12453 CATOBJEXT=.gmo
12454
12455 fi
12456
12457 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12458 # -liconv on the link line twice.
12459 case "$LIBINTL" in *$LIBICONV*)
12460 LIBICONV= ;;
12461 esac
12462
12463 # Check whether --enable-secureplt was given.
12464 if test "${enable_secureplt+set}" = set; then :
12465 enableval=$enable_secureplt;
12466 fi
12467
12468
12469 # Check whether --enable-mingw-wildcard was given.
12470 if test "${enable_mingw_wildcard+set}" = set; then :
12471 enableval=$enable_mingw_wildcard;
12472 else
12473 enable_mingw_wildcard=platform
12474 fi
12475
12476 if test x"$enable_mingw_wildcard" != xplatform ; then :
12477
12478 cat >>confdefs.h <<_ACEOF
12479 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12480 _ACEOF
12481
12482 fi
12483
12484 # Check whether --enable-large-address-aware was given.
12485 if test "${enable_large_address_aware+set}" = set; then :
12486 enableval=$enable_large_address_aware;
12487 fi
12488
12489 if test x"$enable_large_address_aware" = xyes; then :
12490
12491 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12492
12493 fi
12494
12495 # Check whether --enable-leading-mingw64-underscores was given.
12496 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12497 enableval=$enable_leading_mingw64_underscores;
12498 fi
12499
12500 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12501
12502 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12503
12504 fi
12505
12506 # Check whether --enable-cld was given.
12507 if test "${enable_cld+set}" = set; then :
12508 enableval=$enable_cld;
12509 else
12510 enable_cld=no
12511 fi
12512
12513
12514 # Check whether --enable-frame-pointer was given.
12515 if test "${enable_frame_pointer+set}" = set; then :
12516 enableval=$enable_frame_pointer;
12517 else
12518
12519 case $target_os in
12520 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12521 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12522 enable_frame_pointer=no
12523 ;;
12524 *)
12525 enable_frame_pointer=yes
12526 ;;
12527 esac
12528
12529 fi
12530
12531
12532 case $target in
12533 i[34567]86-*-* | x86_64-*-*)
12534 if test "x$enable_cld" = xyes; then
12535 tm_defines="${tm_defines} USE_IX86_CLD=1"
12536 fi
12537 if test "x$enable_frame_pointer" = xyes; then
12538 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12539 fi
12540 ;;
12541 esac
12542
12543 # Windows32 Registry support for specifying GCC installation paths.
12544 # Check whether --enable-win32-registry was given.
12545 if test "${enable_win32_registry+set}" = set; then :
12546 enableval=$enable_win32_registry;
12547 fi
12548
12549
12550 case $host_os in
12551 win32 | pe | cygwin* | mingw32*)
12552 if test "x$enable_win32_registry" != xno; then
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12554 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12555 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12556 $as_echo_n "(cached) " >&6
12557 else
12558 ac_func_search_save_LIBS=$LIBS
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12561
12562 /* Override any GCC internal prototype to avoid an error.
12563 Use char because int might match the return type of a GCC
12564 builtin and then its argument prototype would still apply. */
12565 #ifdef __cplusplus
12566 extern "C"
12567 #endif
12568 char RegOpenKeyExA ();
12569 int
12570 main ()
12571 {
12572 return RegOpenKeyExA ();
12573 ;
12574 return 0;
12575 }
12576 _ACEOF
12577 for ac_lib in '' advapi32; do
12578 if test -z "$ac_lib"; then
12579 ac_res="none required"
12580 else
12581 ac_res=-l$ac_lib
12582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12583 fi
12584 if ac_fn_cxx_try_link "$LINENO"; then :
12585 ac_cv_search_RegOpenKeyExA=$ac_res
12586 fi
12587 rm -f core conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext
12589 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12590 break
12591 fi
12592 done
12593 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12594
12595 else
12596 ac_cv_search_RegOpenKeyExA=no
12597 fi
12598 rm conftest.$ac_ext
12599 LIBS=$ac_func_search_save_LIBS
12600 fi
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12602 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12603 ac_res=$ac_cv_search_RegOpenKeyExA
12604 if test "$ac_res" != no; then :
12605 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12606
12607 else
12608 enable_win32_registry=no
12609 fi
12610
12611 fi
12612
12613 if test "x$enable_win32_registry" != xno; then
12614
12615 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12616
12617
12618 if test "x$enable_win32_registry" != xyes \
12619 && test "x$enable_win32_registry" != x; then
12620
12621 cat >>confdefs.h <<_ACEOF
12622 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12623 _ACEOF
12624
12625 fi
12626 fi
12627 ;;
12628 esac
12629
12630 # Get an absolute path to the GCC top-level source directory
12631 holddir=`${PWDCMD-pwd}`
12632 cd $srcdir
12633 topdir=`${PWDCMD-pwd}`
12634 cd $holddir
12635
12636 # Conditionalize the makefile for this host machine.
12637 xmake_file=
12638 for f in ${host_xmake_file}
12639 do
12640 if test -f ${srcdir}/config/$f
12641 then
12642 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12643 fi
12644 done
12645
12646 # Conditionalize the makefile for this target machine.
12647 tmake_file_=
12648 for f in ${tmake_file}
12649 do
12650 if test -f ${srcdir}/config/$f
12651 then
12652 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12653 fi
12654 done
12655 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
12656
12657 out_object_file=`basename $out_file .c`.o
12658 common_out_object_file=`basename $common_out_file .c`.o
12659
12660 tm_file_list="options.h"
12661 tm_include_list="options.h insn-constants.h"
12662 for f in $tm_file; do
12663 case $f in
12664 ./* )
12665 f=`echo $f | sed 's/^..//'`
12666 tm_file_list="${tm_file_list} $f"
12667 tm_include_list="${tm_include_list} $f"
12668 ;;
12669 defaults.h )
12670 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12671 tm_include_list="${tm_include_list} $f"
12672 ;;
12673 * )
12674 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12675 tm_include_list="${tm_include_list} config/$f"
12676 ;;
12677 esac
12678 done
12679
12680 tm_p_file_list=
12681 tm_p_include_list=
12682 for f in $tm_p_file; do
12683 case $f in
12684 tm-preds.h )
12685 tm_p_file_list="${tm_p_file_list} $f"
12686 tm_p_include_list="${tm_p_include_list} $f"
12687 ;;
12688 * )
12689 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12690 tm_p_include_list="${tm_p_include_list} config/$f"
12691 esac
12692 done
12693
12694 tm_d_file_list=
12695 tm_d_include_list="options.h insn-constants.h"
12696 for f in $tm_d_file; do
12697 case $f in
12698 defaults.h )
12699 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12700 tm_d_include_list="${tm_d_include_list} $f"
12701 ;;
12702 * )
12703 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12704 tm_d_include_list="${tm_d_include_list} config/$f"
12705 ;;
12706 esac
12707 done
12708
12709 xm_file_list=
12710 xm_include_list=
12711 for f in $xm_file; do
12712 case $f in
12713 ansidecl.h )
12714 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12715 xm_include_list="${xm_include_list} $f"
12716 ;;
12717 auto-host.h )
12718 xm_file_list="${xm_file_list} $f"
12719 xm_include_list="${xm_include_list} $f"
12720 ;;
12721 * )
12722 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12723 xm_include_list="${xm_include_list} config/$f"
12724 ;;
12725 esac
12726 done
12727
12728 host_xm_file_list=
12729 host_xm_include_list=
12730 for f in $host_xm_file; do
12731 case $f in
12732 ansidecl.h )
12733 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12734 host_xm_include_list="${host_xm_include_list} $f"
12735 ;;
12736 auto-host.h )
12737 host_xm_file_list="${host_xm_file_list} $f"
12738 host_xm_include_list="${host_xm_include_list} $f"
12739 ;;
12740 * )
12741 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12742 host_xm_include_list="${host_xm_include_list} config/$f"
12743 ;;
12744 esac
12745 done
12746
12747 build_xm_file_list=
12748 for f in $build_xm_file; do
12749 case $f in
12750 ansidecl.h )
12751 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12752 build_xm_include_list="${build_xm_include_list} $f"
12753 ;;
12754 auto-build.h | auto-host.h )
12755 build_xm_file_list="${build_xm_file_list} $f"
12756 build_xm_include_list="${build_xm_include_list} $f"
12757 ;;
12758 * )
12759 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12760 build_xm_include_list="${build_xm_include_list} config/$f"
12761 ;;
12762 esac
12763 done
12764
12765 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12766 # cross-compiler which does not use the native headers and libraries.
12767 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12768 CROSS=
12769 ALL=all.internal
12770 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12771 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12772
12773 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12774 test x$build != x$host || test "x$with_build_sysroot" != x; then
12775 if test "x$with_build_sysroot" != x; then
12776 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12777 else
12778 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12779 fi
12780
12781 if test x$host != x$target
12782 then
12783 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12784 ALL=all.cross
12785 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12786 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12787 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12788 fi
12789
12790 if test "x$with_build_sysroot" != "x"; then
12791 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12792 elif test "x$with_sysroot" = x; then
12793 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12794 elif test "x$with_sysroot" = xyes; then
12795 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12796 else
12797 target_header_dir="${with_sysroot}${native_system_header_dir}"
12798 fi
12799 else
12800 target_header_dir=${native_system_header_dir}
12801 fi
12802
12803 # If this is a cross-compiler that does not
12804 # have its own set of headers then define
12805 # inhibit_libc
12806
12807 # If this is using newlib, without having the headers available now,
12808 # then define inhibit_libc in LIBGCC2_CFLAGS.
12809 # This prevents libgcc2 from containing any code which requires libc
12810 # support.
12811 : ${inhibit_libc=false}
12812 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12813 test x$with_newlib = xyes ; } &&
12814 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12815 inhibit_libc=true
12816 fi
12817
12818
12819 # When building gcc with a cross-compiler, we need to adjust things so
12820 # that the generator programs are still built with the native compiler.
12821 # Also, we cannot run fixincludes.
12822
12823 # These are the normal (build=host) settings:
12824 CC_FOR_BUILD='$(CC)'
12825 CXX_FOR_BUILD='$(CXX)'
12826 BUILD_CFLAGS='$(ALL_CFLAGS)'
12827 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12828 BUILD_LDFLAGS='$(LDFLAGS)'
12829 STMP_FIXINC=stmp-fixinc
12830
12831 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12832 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12833
12834 # And these apply if build != host, or we are generating coverage data
12835 if test x$build != x$host || test "x$coverage_flags" != x
12836 then
12837 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12838 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12839 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12840
12841 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12842 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12843 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12844 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12845 fi
12846
12847
12848
12849 # Expand extra_headers to include complete path.
12850 # This substitutes for lots of t-* files.
12851 extra_headers_list=
12852 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12853 for file in ${extra_headers} ; do
12854 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12855 done
12856
12857 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12858 if test x"$use_gcc_tgmath" = xyes
12859 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12860 fi
12861
12862 # Define collect2 in Makefile.
12863 case $host_can_use_collect2 in
12864 no) collect2= ;;
12865 *) collect2='collect2$(exeext)' ;;
12866 esac
12867
12868
12869 # Add a definition of USE_COLLECT2 if system wants one.
12870 case $use_collect2 in
12871 no) use_collect2= ;;
12872 "") ;;
12873 *)
12874 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12875 xm_defines="${xm_defines} USE_COLLECT2"
12876 case $host_can_use_collect2 in
12877 no)
12878 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12879 ;;
12880 esac
12881 ;;
12882 esac
12883
12884
12885 cat >>confdefs.h <<_ACEOF
12886 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12887 _ACEOF
12888
12889
12890 # ---------------------------
12891 # Assembler & linker features
12892 # ---------------------------
12893
12894 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12895 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12896 # However when ld-new is first executed from the build tree, libtool will
12897 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12898 # to the build tree. While doing this we need to use the previous-stage
12899 # linker, or we have an infinite loop. The presence of a shell script as
12900 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12901 # the gcc/collect-ld script. So we need to know how libtool works, or
12902 # exec-tool will fail.
12903
12904
12905 case `pwd` in
12906 *\ * | *\ *)
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12908 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12909 esac
12910
12911
12912
12913 macro_version='2.2.7a'
12914 macro_revision='1.3134'
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928 ltmain="$ac_aux_dir/ltmain.sh"
12929
12930 # Backslashify metacharacters that are still active within
12931 # double-quoted strings.
12932 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12933
12934 # Same as above, but do not quote variable references.
12935 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12936
12937 # Sed substitution to delay expansion of an escaped shell variable in a
12938 # double_quote_subst'ed string.
12939 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12940
12941 # Sed substitution to delay expansion of an escaped single quote.
12942 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12943
12944 # Sed substitution to avoid accidental globbing in evaled expressions
12945 no_glob_subst='s/\*/\\\*/g'
12946
12947 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12948 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12949 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12950
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12952 $as_echo_n "checking how to print strings... " >&6; }
12953 # Test print first, because it will be a builtin if present.
12954 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12955 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12956 ECHO='print -r --'
12957 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12958 ECHO='printf %s\n'
12959 else
12960 # Use this function as a fallback that always works.
12961 func_fallback_echo ()
12962 {
12963 eval 'cat <<_LTECHO_EOF
12964 $1
12965 _LTECHO_EOF'
12966 }
12967 ECHO='func_fallback_echo'
12968 fi
12969
12970 # func_echo_all arg...
12971 # Invoke $ECHO with all args, space-separated.
12972 func_echo_all ()
12973 {
12974 $ECHO ""
12975 }
12976
12977 case "$ECHO" in
12978 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12979 $as_echo "printf" >&6; } ;;
12980 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12981 $as_echo "print -r" >&6; } ;;
12982 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12983 $as_echo "cat" >&6; } ;;
12984 esac
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13000 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13001 if ${ac_cv_path_SED+:} false; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13005 for ac_i in 1 2 3 4 5 6 7; do
13006 ac_script="$ac_script$as_nl$ac_script"
13007 done
13008 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13009 { ac_script=; unset ac_script;}
13010 if test -z "$SED"; then
13011 ac_path_SED_found=false
13012 # Loop through the user's path and test for each of PROGNAME-LIST
13013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13014 for as_dir in $PATH
13015 do
13016 IFS=$as_save_IFS
13017 test -z "$as_dir" && as_dir=.
13018 for ac_prog in sed gsed; do
13019 for ac_exec_ext in '' $ac_executable_extensions; do
13020 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13021 as_fn_executable_p "$ac_path_SED" || continue
13022 # Check for GNU ac_path_SED and select it if it is found.
13023 # Check for GNU $ac_path_SED
13024 case `"$ac_path_SED" --version 2>&1` in
13025 *GNU*)
13026 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13027 *)
13028 ac_count=0
13029 $as_echo_n 0123456789 >"conftest.in"
13030 while :
13031 do
13032 cat "conftest.in" "conftest.in" >"conftest.tmp"
13033 mv "conftest.tmp" "conftest.in"
13034 cp "conftest.in" "conftest.nl"
13035 $as_echo '' >> "conftest.nl"
13036 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13038 as_fn_arith $ac_count + 1 && ac_count=$as_val
13039 if test $ac_count -gt ${ac_path_SED_max-0}; then
13040 # Best one so far, save it but keep looking for a better one
13041 ac_cv_path_SED="$ac_path_SED"
13042 ac_path_SED_max=$ac_count
13043 fi
13044 # 10*(2^10) chars as input seems more than enough
13045 test $ac_count -gt 10 && break
13046 done
13047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13048 esac
13049
13050 $ac_path_SED_found && break 3
13051 done
13052 done
13053 done
13054 IFS=$as_save_IFS
13055 if test -z "$ac_cv_path_SED"; then
13056 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13057 fi
13058 else
13059 ac_cv_path_SED=$SED
13060 fi
13061
13062 fi
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13064 $as_echo "$ac_cv_path_SED" >&6; }
13065 SED="$ac_cv_path_SED"
13066 rm -f conftest.sed
13067
13068 test -z "$SED" && SED=sed
13069 Xsed="$SED -e 1s/^X//"
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13082 $as_echo_n "checking for fgrep... " >&6; }
13083 if ${ac_cv_path_FGREP+:} false; then :
13084 $as_echo_n "(cached) " >&6
13085 else
13086 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13087 then ac_cv_path_FGREP="$GREP -F"
13088 else
13089 if test -z "$FGREP"; then
13090 ac_path_FGREP_found=false
13091 # Loop through the user's path and test for each of PROGNAME-LIST
13092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13094 do
13095 IFS=$as_save_IFS
13096 test -z "$as_dir" && as_dir=.
13097 for ac_prog in fgrep; do
13098 for ac_exec_ext in '' $ac_executable_extensions; do
13099 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13100 as_fn_executable_p "$ac_path_FGREP" || continue
13101 # Check for GNU ac_path_FGREP and select it if it is found.
13102 # Check for GNU $ac_path_FGREP
13103 case `"$ac_path_FGREP" --version 2>&1` in
13104 *GNU*)
13105 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13106 *)
13107 ac_count=0
13108 $as_echo_n 0123456789 >"conftest.in"
13109 while :
13110 do
13111 cat "conftest.in" "conftest.in" >"conftest.tmp"
13112 mv "conftest.tmp" "conftest.in"
13113 cp "conftest.in" "conftest.nl"
13114 $as_echo 'FGREP' >> "conftest.nl"
13115 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13117 as_fn_arith $ac_count + 1 && ac_count=$as_val
13118 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13119 # Best one so far, save it but keep looking for a better one
13120 ac_cv_path_FGREP="$ac_path_FGREP"
13121 ac_path_FGREP_max=$ac_count
13122 fi
13123 # 10*(2^10) chars as input seems more than enough
13124 test $ac_count -gt 10 && break
13125 done
13126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13127 esac
13128
13129 $ac_path_FGREP_found && break 3
13130 done
13131 done
13132 done
13133 IFS=$as_save_IFS
13134 if test -z "$ac_cv_path_FGREP"; then
13135 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13136 fi
13137 else
13138 ac_cv_path_FGREP=$FGREP
13139 fi
13140
13141 fi
13142 fi
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13144 $as_echo "$ac_cv_path_FGREP" >&6; }
13145 FGREP="$ac_cv_path_FGREP"
13146
13147
13148 test -z "$GREP" && GREP=grep
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168 # Check whether --with-gnu-ld was given.
13169 if test "${with_gnu_ld+set}" = set; then :
13170 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13171 else
13172 with_gnu_ld=no
13173 fi
13174
13175 ac_prog=ld
13176 if test "$GCC" = yes; then
13177 # Check if gcc -print-prog-name=ld gives a path.
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13179 $as_echo_n "checking for ld used by $CC... " >&6; }
13180 case $host in
13181 *-*-mingw*)
13182 # gcc leaves a trailing carriage return which upsets mingw
13183 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13184 *)
13185 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13186 esac
13187 case $ac_prog in
13188 # Accept absolute paths.
13189 [\\/]* | ?:[\\/]*)
13190 re_direlt='/[^/][^/]*/\.\./'
13191 # Canonicalize the pathname of ld
13192 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13193 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13194 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13195 done
13196 test -z "$LD" && LD="$ac_prog"
13197 ;;
13198 "")
13199 # If it fails, then pretend we aren't using GCC.
13200 ac_prog=ld
13201 ;;
13202 *)
13203 # If it is relative, then search for the first ld in PATH.
13204 with_gnu_ld=unknown
13205 ;;
13206 esac
13207 elif test "$with_gnu_ld" = yes; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13209 $as_echo_n "checking for GNU ld... " >&6; }
13210 else
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13212 $as_echo_n "checking for non-GNU ld... " >&6; }
13213 fi
13214 if ${lt_cv_path_LD+:} false; then :
13215 $as_echo_n "(cached) " >&6
13216 else
13217 if test -z "$LD"; then
13218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13219 for ac_dir in $PATH; do
13220 IFS="$lt_save_ifs"
13221 test -z "$ac_dir" && ac_dir=.
13222 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13223 lt_cv_path_LD="$ac_dir/$ac_prog"
13224 # Check to see if the program is GNU ld. I'd rather use --version,
13225 # but apparently some variants of GNU ld only accept -v.
13226 # Break only if it was the GNU/non-GNU ld that we prefer.
13227 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13228 *GNU* | *'with BFD'*)
13229 test "$with_gnu_ld" != no && break
13230 ;;
13231 *)
13232 test "$with_gnu_ld" != yes && break
13233 ;;
13234 esac
13235 fi
13236 done
13237 IFS="$lt_save_ifs"
13238 else
13239 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13240 fi
13241 fi
13242
13243 LD="$lt_cv_path_LD"
13244 if test -n "$LD"; then
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13246 $as_echo "$LD" >&6; }
13247 else
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 $as_echo "no" >&6; }
13250 fi
13251 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13253 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13254 if ${lt_cv_prog_gnu_ld+:} false; then :
13255 $as_echo_n "(cached) " >&6
13256 else
13257 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13258 case `$LD -v 2>&1 </dev/null` in
13259 *GNU* | *'with BFD'*)
13260 lt_cv_prog_gnu_ld=yes
13261 ;;
13262 *)
13263 lt_cv_prog_gnu_ld=no
13264 ;;
13265 esac
13266 fi
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13268 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13269 with_gnu_ld=$lt_cv_prog_gnu_ld
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13280 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13281 if ${lt_cv_path_NM+:} false; then :
13282 $as_echo_n "(cached) " >&6
13283 else
13284 if test -n "$NM"; then
13285 # Let the user override the test.
13286 lt_cv_path_NM="$NM"
13287 else
13288 lt_nm_to_check="${ac_tool_prefix}nm"
13289 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13290 lt_nm_to_check="$lt_nm_to_check nm"
13291 fi
13292 for lt_tmp_nm in $lt_nm_to_check; do
13293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13294 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13295 IFS="$lt_save_ifs"
13296 test -z "$ac_dir" && ac_dir=.
13297 tmp_nm="$ac_dir/$lt_tmp_nm"
13298 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13299 # Check to see if the nm accepts a BSD-compat flag.
13300 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13301 # nm: unknown option "B" ignored
13302 # Tru64's nm complains that /dev/null is an invalid object file
13303 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13304 */dev/null* | *'Invalid file or object type'*)
13305 lt_cv_path_NM="$tmp_nm -B"
13306 break
13307 ;;
13308 *)
13309 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13310 */dev/null*)
13311 lt_cv_path_NM="$tmp_nm -p"
13312 break
13313 ;;
13314 *)
13315 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13316 continue # so that we can try to find one that supports BSD flags
13317 ;;
13318 esac
13319 ;;
13320 esac
13321 fi
13322 done
13323 IFS="$lt_save_ifs"
13324 done
13325 : ${lt_cv_path_NM=no}
13326 fi
13327 fi
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13329 $as_echo "$lt_cv_path_NM" >&6; }
13330 if test "$lt_cv_path_NM" != "no"; then
13331 NM="$lt_cv_path_NM"
13332 else
13333 # Didn't find any BSD compatible name lister, look for dumpbin.
13334 if test -n "$DUMPBIN"; then :
13335 # Let the user override the test.
13336 else
13337 if test -n "$ac_tool_prefix"; then
13338 for ac_prog in dumpbin "link -dump"
13339 do
13340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13343 $as_echo_n "checking for $ac_word... " >&6; }
13344 if ${ac_cv_prog_DUMPBIN+:} false; then :
13345 $as_echo_n "(cached) " >&6
13346 else
13347 if test -n "$DUMPBIN"; then
13348 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13349 else
13350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13351 for as_dir in $PATH
13352 do
13353 IFS=$as_save_IFS
13354 test -z "$as_dir" && as_dir=.
13355 for ac_exec_ext in '' $ac_executable_extensions; do
13356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13357 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13359 break 2
13360 fi
13361 done
13362 done
13363 IFS=$as_save_IFS
13364
13365 fi
13366 fi
13367 DUMPBIN=$ac_cv_prog_DUMPBIN
13368 if test -n "$DUMPBIN"; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13370 $as_echo "$DUMPBIN" >&6; }
13371 else
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373 $as_echo "no" >&6; }
13374 fi
13375
13376
13377 test -n "$DUMPBIN" && break
13378 done
13379 fi
13380 if test -z "$DUMPBIN"; then
13381 ac_ct_DUMPBIN=$DUMPBIN
13382 for ac_prog in dumpbin "link -dump"
13383 do
13384 # Extract the first word of "$ac_prog", so it can be a program name with args.
13385 set dummy $ac_prog; ac_word=$2
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13387 $as_echo_n "checking for $ac_word... " >&6; }
13388 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13389 $as_echo_n "(cached) " >&6
13390 else
13391 if test -n "$ac_ct_DUMPBIN"; then
13392 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13393 else
13394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13395 for as_dir in $PATH
13396 do
13397 IFS=$as_save_IFS
13398 test -z "$as_dir" && as_dir=.
13399 for ac_exec_ext in '' $ac_executable_extensions; do
13400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13401 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13403 break 2
13404 fi
13405 done
13406 done
13407 IFS=$as_save_IFS
13408
13409 fi
13410 fi
13411 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13412 if test -n "$ac_ct_DUMPBIN"; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13414 $as_echo "$ac_ct_DUMPBIN" >&6; }
13415 else
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13417 $as_echo "no" >&6; }
13418 fi
13419
13420
13421 test -n "$ac_ct_DUMPBIN" && break
13422 done
13423
13424 if test "x$ac_ct_DUMPBIN" = x; then
13425 DUMPBIN=":"
13426 else
13427 case $cross_compiling:$ac_tool_warned in
13428 yes:)
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13431 ac_tool_warned=yes ;;
13432 esac
13433 DUMPBIN=$ac_ct_DUMPBIN
13434 fi
13435 fi
13436
13437 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13438 *COFF*)
13439 DUMPBIN="$DUMPBIN -symbols"
13440 ;;
13441 *)
13442 DUMPBIN=:
13443 ;;
13444 esac
13445 fi
13446
13447 if test "$DUMPBIN" != ":"; then
13448 NM="$DUMPBIN"
13449 fi
13450 fi
13451 test -z "$NM" && NM=nm
13452
13453
13454
13455
13456
13457
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13459 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13460 if ${lt_cv_nm_interface+:} false; then :
13461 $as_echo_n "(cached) " >&6
13462 else
13463 lt_cv_nm_interface="BSD nm"
13464 echo "int some_variable = 0;" > conftest.$ac_ext
13465 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13466 (eval "$ac_compile" 2>conftest.err)
13467 cat conftest.err >&5
13468 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13469 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13470 cat conftest.err >&5
13471 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13472 cat conftest.out >&5
13473 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13474 lt_cv_nm_interface="MS dumpbin"
13475 fi
13476 rm -f conftest*
13477 fi
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13479 $as_echo "$lt_cv_nm_interface" >&6; }
13480
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13482 $as_echo_n "checking whether ln -s works... " >&6; }
13483 LN_S=$as_ln_s
13484 if test "$LN_S" = "ln -s"; then
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13486 $as_echo "yes" >&6; }
13487 else
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13489 $as_echo "no, using $LN_S" >&6; }
13490 fi
13491
13492 # find the maximum length of command line arguments
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13494 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13495 if ${lt_cv_sys_max_cmd_len+:} false; then :
13496 $as_echo_n "(cached) " >&6
13497 else
13498 i=0
13499 teststring="ABCD"
13500
13501 case $build_os in
13502 msdosdjgpp*)
13503 # On DJGPP, this test can blow up pretty badly due to problems in libc
13504 # (any single argument exceeding 2000 bytes causes a buffer overrun
13505 # during glob expansion). Even if it were fixed, the result of this
13506 # check would be larger than it should be.
13507 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13508 ;;
13509
13510 gnu*)
13511 # Under GNU Hurd, this test is not required because there is
13512 # no limit to the length of command line arguments.
13513 # Libtool will interpret -1 as no limit whatsoever
13514 lt_cv_sys_max_cmd_len=-1;
13515 ;;
13516
13517 cygwin* | mingw* | cegcc*)
13518 # On Win9x/ME, this test blows up -- it succeeds, but takes
13519 # about 5 minutes as the teststring grows exponentially.
13520 # Worse, since 9x/ME are not pre-emptively multitasking,
13521 # you end up with a "frozen" computer, even though with patience
13522 # the test eventually succeeds (with a max line length of 256k).
13523 # Instead, let's just punt: use the minimum linelength reported by
13524 # all of the supported platforms: 8192 (on NT/2K/XP).
13525 lt_cv_sys_max_cmd_len=8192;
13526 ;;
13527
13528 mint*)
13529 # On MiNT this can take a long time and run out of memory.
13530 lt_cv_sys_max_cmd_len=8192;
13531 ;;
13532
13533 amigaos*)
13534 # On AmigaOS with pdksh, this test takes hours, literally.
13535 # So we just punt and use a minimum line length of 8192.
13536 lt_cv_sys_max_cmd_len=8192;
13537 ;;
13538
13539 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13540 # This has been around since 386BSD, at least. Likely further.
13541 if test -x /sbin/sysctl; then
13542 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13543 elif test -x /usr/sbin/sysctl; then
13544 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13545 else
13546 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13547 fi
13548 # And add a safety zone
13549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13551 ;;
13552
13553 interix*)
13554 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13555 lt_cv_sys_max_cmd_len=196608
13556 ;;
13557
13558 osf*)
13559 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13560 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13561 # nice to cause kernel panics so lets avoid the loop below.
13562 # First set a reasonable default.
13563 lt_cv_sys_max_cmd_len=16384
13564 #
13565 if test -x /sbin/sysconfig; then
13566 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13567 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13568 esac
13569 fi
13570 ;;
13571 sco3.2v5*)
13572 lt_cv_sys_max_cmd_len=102400
13573 ;;
13574 sysv5* | sco5v6* | sysv4.2uw2*)
13575 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13576 if test -n "$kargmax"; then
13577 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13578 else
13579 lt_cv_sys_max_cmd_len=32768
13580 fi
13581 ;;
13582 *)
13583 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13584 if test -n "$lt_cv_sys_max_cmd_len"; then
13585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13587 else
13588 # Make teststring a little bigger before we do anything with it.
13589 # a 1K string should be a reasonable start.
13590 for i in 1 2 3 4 5 6 7 8 ; do
13591 teststring=$teststring$teststring
13592 done
13593 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13594 # If test is not a shell built-in, we'll probably end up computing a
13595 # maximum length that is only half of the actual maximum length, but
13596 # we can't tell.
13597 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13598 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13599 test $i != 17 # 1/2 MB should be enough
13600 do
13601 i=`expr $i + 1`
13602 teststring=$teststring$teststring
13603 done
13604 # Only check the string length outside the loop.
13605 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13606 teststring=
13607 # Add a significant safety factor because C++ compilers can tack on
13608 # massive amounts of additional arguments before passing them to the
13609 # linker. It appears as though 1/2 is a usable value.
13610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13611 fi
13612 ;;
13613 esac
13614
13615 fi
13616
13617 if test -n $lt_cv_sys_max_cmd_len ; then
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13619 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13620 else
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13622 $as_echo "none" >&6; }
13623 fi
13624 max_cmd_len=$lt_cv_sys_max_cmd_len
13625
13626
13627
13628
13629
13630
13631 : ${CP="cp -f"}
13632 : ${MV="mv -f"}
13633 : ${RM="rm -f"}
13634
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13636 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13637 # Try some XSI features
13638 xsi_shell=no
13639 ( _lt_dummy="a/b/c"
13640 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13641 = c,a/b,, \
13642 && eval 'test $(( 1 + 1 )) -eq 2 \
13643 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13644 && xsi_shell=yes
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13646 $as_echo "$xsi_shell" >&6; }
13647
13648
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13650 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13651 lt_shell_append=no
13652 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13653 >/dev/null 2>&1 \
13654 && lt_shell_append=yes
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13656 $as_echo "$lt_shell_append" >&6; }
13657
13658
13659 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13660 lt_unset=unset
13661 else
13662 lt_unset=false
13663 fi
13664
13665
13666
13667
13668
13669 # test EBCDIC or ASCII
13670 case `echo X|tr X '\101'` in
13671 A) # ASCII based system
13672 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13673 lt_SP2NL='tr \040 \012'
13674 lt_NL2SP='tr \015\012 \040\040'
13675 ;;
13676 *) # EBCDIC based system
13677 lt_SP2NL='tr \100 \n'
13678 lt_NL2SP='tr \r\n \100\100'
13679 ;;
13680 esac
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13691 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13692 if ${lt_cv_ld_reload_flag+:} false; then :
13693 $as_echo_n "(cached) " >&6
13694 else
13695 lt_cv_ld_reload_flag='-r'
13696 fi
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13698 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13699 reload_flag=$lt_cv_ld_reload_flag
13700 case $reload_flag in
13701 "" | " "*) ;;
13702 *) reload_flag=" $reload_flag" ;;
13703 esac
13704 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13705 case $host_os in
13706 darwin*)
13707 if test "$GCC" = yes; then
13708 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13709 else
13710 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13711 fi
13712 ;;
13713 esac
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723 if test -n "$ac_tool_prefix"; then
13724 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13725 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13727 $as_echo_n "checking for $ac_word... " >&6; }
13728 if ${ac_cv_prog_OBJDUMP+:} false; then :
13729 $as_echo_n "(cached) " >&6
13730 else
13731 if test -n "$OBJDUMP"; then
13732 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13733 else
13734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13735 for as_dir in $PATH
13736 do
13737 IFS=$as_save_IFS
13738 test -z "$as_dir" && as_dir=.
13739 for ac_exec_ext in '' $ac_executable_extensions; do
13740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13741 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13743 break 2
13744 fi
13745 done
13746 done
13747 IFS=$as_save_IFS
13748
13749 fi
13750 fi
13751 OBJDUMP=$ac_cv_prog_OBJDUMP
13752 if test -n "$OBJDUMP"; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13754 $as_echo "$OBJDUMP" >&6; }
13755 else
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757 $as_echo "no" >&6; }
13758 fi
13759
13760
13761 fi
13762 if test -z "$ac_cv_prog_OBJDUMP"; then
13763 ac_ct_OBJDUMP=$OBJDUMP
13764 # Extract the first word of "objdump", so it can be a program name with args.
13765 set dummy objdump; ac_word=$2
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13767 $as_echo_n "checking for $ac_word... " >&6; }
13768 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 if test -n "$ac_ct_OBJDUMP"; then
13772 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13773 else
13774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775 for as_dir in $PATH
13776 do
13777 IFS=$as_save_IFS
13778 test -z "$as_dir" && as_dir=.
13779 for ac_exec_ext in '' $ac_executable_extensions; do
13780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13781 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13783 break 2
13784 fi
13785 done
13786 done
13787 IFS=$as_save_IFS
13788
13789 fi
13790 fi
13791 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13792 if test -n "$ac_ct_OBJDUMP"; then
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13794 $as_echo "$ac_ct_OBJDUMP" >&6; }
13795 else
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13797 $as_echo "no" >&6; }
13798 fi
13799
13800 if test "x$ac_ct_OBJDUMP" = x; then
13801 OBJDUMP="false"
13802 else
13803 case $cross_compiling:$ac_tool_warned in
13804 yes:)
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13807 ac_tool_warned=yes ;;
13808 esac
13809 OBJDUMP=$ac_ct_OBJDUMP
13810 fi
13811 else
13812 OBJDUMP="$ac_cv_prog_OBJDUMP"
13813 fi
13814
13815 test -z "$OBJDUMP" && OBJDUMP=objdump
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13826 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13827 if ${lt_cv_deplibs_check_method+:} false; then :
13828 $as_echo_n "(cached) " >&6
13829 else
13830 lt_cv_file_magic_cmd='$MAGIC_CMD'
13831 lt_cv_file_magic_test_file=
13832 lt_cv_deplibs_check_method='unknown'
13833 # Need to set the preceding variable on all platforms that support
13834 # interlibrary dependencies.
13835 # 'none' -- dependencies not supported.
13836 # `unknown' -- same as none, but documents that we really don't know.
13837 # 'pass_all' -- all dependencies passed with no checks.
13838 # 'test_compile' -- check by making test program.
13839 # 'file_magic [[regex]]' -- check by looking for files in library path
13840 # which responds to the $file_magic_cmd with a given extended regex.
13841 # If you have `file' or equivalent on your system and you're not sure
13842 # whether `pass_all' will *always* work, you probably want this one.
13843
13844 case $host_os in
13845 aix[4-9]*)
13846 lt_cv_deplibs_check_method=pass_all
13847 ;;
13848
13849 beos*)
13850 lt_cv_deplibs_check_method=pass_all
13851 ;;
13852
13853 bsdi[45]*)
13854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13855 lt_cv_file_magic_cmd='/usr/bin/file -L'
13856 lt_cv_file_magic_test_file=/shlib/libc.so
13857 ;;
13858
13859 cygwin*)
13860 # func_win32_libid is a shell function defined in ltmain.sh
13861 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13862 lt_cv_file_magic_cmd='func_win32_libid'
13863 ;;
13864
13865 mingw* | pw32*)
13866 # Base MSYS/MinGW do not provide the 'file' command needed by
13867 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13868 # unless we find 'file', for example because we are cross-compiling.
13869 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13870 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13871 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13872 lt_cv_file_magic_cmd='func_win32_libid'
13873 else
13874 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13875 lt_cv_file_magic_cmd='$OBJDUMP -f'
13876 fi
13877 ;;
13878
13879 cegcc*)
13880 # use the weaker test based on 'objdump'. See mingw*.
13881 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13882 lt_cv_file_magic_cmd='$OBJDUMP -f'
13883 ;;
13884
13885 darwin* | rhapsody*)
13886 lt_cv_deplibs_check_method=pass_all
13887 ;;
13888
13889 freebsd* | dragonfly*)
13890 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13891 case $host_cpu in
13892 i*86 )
13893 # Not sure whether the presence of OpenBSD here was a mistake.
13894 # Let's accept both of them until this is cleared up.
13895 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13896 lt_cv_file_magic_cmd=/usr/bin/file
13897 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13898 ;;
13899 esac
13900 else
13901 lt_cv_deplibs_check_method=pass_all
13902 fi
13903 ;;
13904
13905 gnu*)
13906 lt_cv_deplibs_check_method=pass_all
13907 ;;
13908
13909 haiku*)
13910 lt_cv_deplibs_check_method=pass_all
13911 ;;
13912
13913 hpux10.20* | hpux11*)
13914 lt_cv_file_magic_cmd=/usr/bin/file
13915 case $host_cpu in
13916 ia64*)
13917 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13918 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13919 ;;
13920 hppa*64*)
13921 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]'
13922 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13923 ;;
13924 *)
13925 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13926 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13927 ;;
13928 esac
13929 ;;
13930
13931 interix[3-9]*)
13932 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13934 ;;
13935
13936 irix5* | irix6* | nonstopux*)
13937 case $LD in
13938 *-32|*"-32 ") libmagic=32-bit;;
13939 *-n32|*"-n32 ") libmagic=N32;;
13940 *-64|*"-64 ") libmagic=64-bit;;
13941 *) libmagic=never-match;;
13942 esac
13943 lt_cv_deplibs_check_method=pass_all
13944 ;;
13945
13946 # This must be Linux ELF.
13947 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13948 lt_cv_deplibs_check_method=pass_all
13949 ;;
13950
13951 netbsd*)
13952 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13954 else
13955 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13956 fi
13957 ;;
13958
13959 newos6*)
13960 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13961 lt_cv_file_magic_cmd=/usr/bin/file
13962 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13963 ;;
13964
13965 *nto* | *qnx*)
13966 lt_cv_deplibs_check_method=pass_all
13967 ;;
13968
13969 openbsd*)
13970 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13972 else
13973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13974 fi
13975 ;;
13976
13977 osf3* | osf4* | osf5*)
13978 lt_cv_deplibs_check_method=pass_all
13979 ;;
13980
13981 rdos*)
13982 lt_cv_deplibs_check_method=pass_all
13983 ;;
13984
13985 solaris*)
13986 lt_cv_deplibs_check_method=pass_all
13987 ;;
13988
13989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13990 lt_cv_deplibs_check_method=pass_all
13991 ;;
13992
13993 sysv4 | sysv4.3*)
13994 case $host_vendor in
13995 motorola)
13996 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]'
13997 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13998 ;;
13999 ncr)
14000 lt_cv_deplibs_check_method=pass_all
14001 ;;
14002 sequent)
14003 lt_cv_file_magic_cmd='/bin/file'
14004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14005 ;;
14006 sni)
14007 lt_cv_file_magic_cmd='/bin/file'
14008 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14009 lt_cv_file_magic_test_file=/lib/libc.so
14010 ;;
14011 siemens)
14012 lt_cv_deplibs_check_method=pass_all
14013 ;;
14014 pc)
14015 lt_cv_deplibs_check_method=pass_all
14016 ;;
14017 esac
14018 ;;
14019
14020 tpf*)
14021 lt_cv_deplibs_check_method=pass_all
14022 ;;
14023 esac
14024
14025 fi
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14027 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14028 file_magic_cmd=$lt_cv_file_magic_cmd
14029 deplibs_check_method=$lt_cv_deplibs_check_method
14030 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043 if test -n "$ac_tool_prefix"; then
14044 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14045 set dummy ${ac_tool_prefix}ar; ac_word=$2
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14047 $as_echo_n "checking for $ac_word... " >&6; }
14048 if ${ac_cv_prog_AR+:} false; then :
14049 $as_echo_n "(cached) " >&6
14050 else
14051 if test -n "$AR"; then
14052 ac_cv_prog_AR="$AR" # Let the user override the test.
14053 else
14054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14055 for as_dir in $PATH
14056 do
14057 IFS=$as_save_IFS
14058 test -z "$as_dir" && as_dir=.
14059 for ac_exec_ext in '' $ac_executable_extensions; do
14060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14061 ac_cv_prog_AR="${ac_tool_prefix}ar"
14062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14063 break 2
14064 fi
14065 done
14066 done
14067 IFS=$as_save_IFS
14068
14069 fi
14070 fi
14071 AR=$ac_cv_prog_AR
14072 if test -n "$AR"; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14074 $as_echo "$AR" >&6; }
14075 else
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14077 $as_echo "no" >&6; }
14078 fi
14079
14080
14081 fi
14082 if test -z "$ac_cv_prog_AR"; then
14083 ac_ct_AR=$AR
14084 # Extract the first word of "ar", so it can be a program name with args.
14085 set dummy ar; ac_word=$2
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14087 $as_echo_n "checking for $ac_word... " >&6; }
14088 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14089 $as_echo_n "(cached) " >&6
14090 else
14091 if test -n "$ac_ct_AR"; then
14092 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14093 else
14094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095 for as_dir in $PATH
14096 do
14097 IFS=$as_save_IFS
14098 test -z "$as_dir" && as_dir=.
14099 for ac_exec_ext in '' $ac_executable_extensions; do
14100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14101 ac_cv_prog_ac_ct_AR="ar"
14102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14103 break 2
14104 fi
14105 done
14106 done
14107 IFS=$as_save_IFS
14108
14109 fi
14110 fi
14111 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14112 if test -n "$ac_ct_AR"; then
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14114 $as_echo "$ac_ct_AR" >&6; }
14115 else
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14117 $as_echo "no" >&6; }
14118 fi
14119
14120 if test "x$ac_ct_AR" = x; then
14121 AR="false"
14122 else
14123 case $cross_compiling:$ac_tool_warned in
14124 yes:)
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14127 ac_tool_warned=yes ;;
14128 esac
14129 AR=$ac_ct_AR
14130 fi
14131 else
14132 AR="$ac_cv_prog_AR"
14133 fi
14134
14135 test -z "$AR" && AR=ar
14136 test -z "$AR_FLAGS" && AR_FLAGS=cru
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148 if test -n "$ac_tool_prefix"; then
14149 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14150 set dummy ${ac_tool_prefix}strip; ac_word=$2
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14152 $as_echo_n "checking for $ac_word... " >&6; }
14153 if ${ac_cv_prog_STRIP+:} false; then :
14154 $as_echo_n "(cached) " >&6
14155 else
14156 if test -n "$STRIP"; then
14157 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14158 else
14159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14160 for as_dir in $PATH
14161 do
14162 IFS=$as_save_IFS
14163 test -z "$as_dir" && as_dir=.
14164 for ac_exec_ext in '' $ac_executable_extensions; do
14165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14166 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14168 break 2
14169 fi
14170 done
14171 done
14172 IFS=$as_save_IFS
14173
14174 fi
14175 fi
14176 STRIP=$ac_cv_prog_STRIP
14177 if test -n "$STRIP"; then
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14179 $as_echo "$STRIP" >&6; }
14180 else
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14182 $as_echo "no" >&6; }
14183 fi
14184
14185
14186 fi
14187 if test -z "$ac_cv_prog_STRIP"; then
14188 ac_ct_STRIP=$STRIP
14189 # Extract the first word of "strip", so it can be a program name with args.
14190 set dummy strip; ac_word=$2
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14192 $as_echo_n "checking for $ac_word... " >&6; }
14193 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14194 $as_echo_n "(cached) " >&6
14195 else
14196 if test -n "$ac_ct_STRIP"; then
14197 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14198 else
14199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14200 for as_dir in $PATH
14201 do
14202 IFS=$as_save_IFS
14203 test -z "$as_dir" && as_dir=.
14204 for ac_exec_ext in '' $ac_executable_extensions; do
14205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14206 ac_cv_prog_ac_ct_STRIP="strip"
14207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14208 break 2
14209 fi
14210 done
14211 done
14212 IFS=$as_save_IFS
14213
14214 fi
14215 fi
14216 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14217 if test -n "$ac_ct_STRIP"; then
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14219 $as_echo "$ac_ct_STRIP" >&6; }
14220 else
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14222 $as_echo "no" >&6; }
14223 fi
14224
14225 if test "x$ac_ct_STRIP" = x; then
14226 STRIP=":"
14227 else
14228 case $cross_compiling:$ac_tool_warned in
14229 yes:)
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14232 ac_tool_warned=yes ;;
14233 esac
14234 STRIP=$ac_ct_STRIP
14235 fi
14236 else
14237 STRIP="$ac_cv_prog_STRIP"
14238 fi
14239
14240 test -z "$STRIP" && STRIP=:
14241
14242
14243
14244
14245
14246
14247 if test -n "$ac_tool_prefix"; then
14248 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14249 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14251 $as_echo_n "checking for $ac_word... " >&6; }
14252 if ${ac_cv_prog_RANLIB+:} false; then :
14253 $as_echo_n "(cached) " >&6
14254 else
14255 if test -n "$RANLIB"; then
14256 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14257 else
14258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14259 for as_dir in $PATH
14260 do
14261 IFS=$as_save_IFS
14262 test -z "$as_dir" && as_dir=.
14263 for ac_exec_ext in '' $ac_executable_extensions; do
14264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14265 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14267 break 2
14268 fi
14269 done
14270 done
14271 IFS=$as_save_IFS
14272
14273 fi
14274 fi
14275 RANLIB=$ac_cv_prog_RANLIB
14276 if test -n "$RANLIB"; then
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14278 $as_echo "$RANLIB" >&6; }
14279 else
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14281 $as_echo "no" >&6; }
14282 fi
14283
14284
14285 fi
14286 if test -z "$ac_cv_prog_RANLIB"; then
14287 ac_ct_RANLIB=$RANLIB
14288 # Extract the first word of "ranlib", so it can be a program name with args.
14289 set dummy ranlib; ac_word=$2
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14291 $as_echo_n "checking for $ac_word... " >&6; }
14292 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14293 $as_echo_n "(cached) " >&6
14294 else
14295 if test -n "$ac_ct_RANLIB"; then
14296 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14297 else
14298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14299 for as_dir in $PATH
14300 do
14301 IFS=$as_save_IFS
14302 test -z "$as_dir" && as_dir=.
14303 for ac_exec_ext in '' $ac_executable_extensions; do
14304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14305 ac_cv_prog_ac_ct_RANLIB="ranlib"
14306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14307 break 2
14308 fi
14309 done
14310 done
14311 IFS=$as_save_IFS
14312
14313 fi
14314 fi
14315 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14316 if test -n "$ac_ct_RANLIB"; then
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14318 $as_echo "$ac_ct_RANLIB" >&6; }
14319 else
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14321 $as_echo "no" >&6; }
14322 fi
14323
14324 if test "x$ac_ct_RANLIB" = x; then
14325 RANLIB=":"
14326 else
14327 case $cross_compiling:$ac_tool_warned in
14328 yes:)
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14331 ac_tool_warned=yes ;;
14332 esac
14333 RANLIB=$ac_ct_RANLIB
14334 fi
14335 else
14336 RANLIB="$ac_cv_prog_RANLIB"
14337 fi
14338
14339 test -z "$RANLIB" && RANLIB=:
14340
14341
14342
14343
14344
14345
14346 # Determine commands to create old-style static archives.
14347 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14348 old_postinstall_cmds='chmod 644 $oldlib'
14349 old_postuninstall_cmds=
14350
14351 if test -n "$RANLIB"; then
14352 case $host_os in
14353 openbsd*)
14354 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14355 ;;
14356 *)
14357 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14358 ;;
14359 esac
14360 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14361 fi
14362
14363 case $host_os in
14364 darwin*)
14365 lock_old_archive_extraction=yes ;;
14366 *)
14367 lock_old_archive_extraction=no ;;
14368 esac
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408 # If no C compiler was specified, use CC.
14409 LTCC=${LTCC-"$CC"}
14410
14411 # If no C compiler flags were specified, use CFLAGS.
14412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14413
14414 # Allow CC to be a program name with arguments.
14415 compiler=$CC
14416
14417
14418 # Check for command to grab the raw symbol name followed by C symbol from nm.
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14420 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14421 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14422 $as_echo_n "(cached) " >&6
14423 else
14424
14425 # These are sane defaults that work on at least a few old systems.
14426 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14427
14428 # Character class describing NM global symbol codes.
14429 symcode='[BCDEGRST]'
14430
14431 # Regexp to match symbols that can be accessed directly from C.
14432 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14433
14434 # Define system-specific variables.
14435 case $host_os in
14436 aix*)
14437 symcode='[BCDT]'
14438 ;;
14439 cygwin* | mingw* | pw32* | cegcc*)
14440 symcode='[ABCDGISTW]'
14441 ;;
14442 hpux*)
14443 if test "$host_cpu" = ia64; then
14444 symcode='[ABCDEGRST]'
14445 fi
14446 ;;
14447 irix* | nonstopux*)
14448 symcode='[BCDEGRST]'
14449 ;;
14450 osf*)
14451 symcode='[BCDEGQRST]'
14452 ;;
14453 solaris*)
14454 symcode='[BDRT]'
14455 ;;
14456 sco3.2v5*)
14457 symcode='[DT]'
14458 ;;
14459 sysv4.2uw2*)
14460 symcode='[DT]'
14461 ;;
14462 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14463 symcode='[ABDT]'
14464 ;;
14465 sysv4)
14466 symcode='[DFNSTU]'
14467 ;;
14468 esac
14469
14470 # If we're using GNU nm, then use its standard symbol codes.
14471 case `$NM -V 2>&1` in
14472 *GNU* | *'with BFD'*)
14473 symcode='[ABCDGIRSTW]' ;;
14474 esac
14475
14476 # Transform an extracted symbol line into a proper C declaration.
14477 # Some systems (esp. on ia64) link data and code symbols differently,
14478 # so use this general approach.
14479 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14480
14481 # Transform an extracted symbol line into symbol name and symbol address
14482 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14483 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'"
14484
14485 # Handle CRLF in mingw tool chain
14486 opt_cr=
14487 case $build_os in
14488 mingw*)
14489 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14490 ;;
14491 esac
14492
14493 # Try without a prefix underscore, then with it.
14494 for ac_symprfx in "" "_"; do
14495
14496 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14497 symxfrm="\\1 $ac_symprfx\\2 \\2"
14498
14499 # Write the raw and C identifiers.
14500 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14501 # Fake it for dumpbin and say T for any non-static function
14502 # and D for any global variable.
14503 # Also find C++ and __fastcall symbols from MSVC++,
14504 # which start with @ or ?.
14505 lt_cv_sys_global_symbol_pipe="$AWK '"\
14506 " {last_section=section; section=\$ 3};"\
14507 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14508 " \$ 0!~/External *\|/{next};"\
14509 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14510 " {if(hide[section]) next};"\
14511 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14512 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14513 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14514 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14515 " ' prfx=^$ac_symprfx"
14516 else
14517 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14518 fi
14519
14520 # Check to see that the pipe works correctly.
14521 pipe_works=no
14522
14523 rm -f conftest*
14524 cat > conftest.$ac_ext <<_LT_EOF
14525 #ifdef __cplusplus
14526 extern "C" {
14527 #endif
14528 char nm_test_var;
14529 void nm_test_func(void);
14530 void nm_test_func(void){}
14531 #ifdef __cplusplus
14532 }
14533 #endif
14534 int main(){nm_test_var='a';nm_test_func();return(0);}
14535 _LT_EOF
14536
14537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14538 (eval $ac_compile) 2>&5
14539 ac_status=$?
14540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14541 test $ac_status = 0; }; then
14542 # Now try to grab the symbols.
14543 nlist=conftest.nm
14544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14545 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14546 ac_status=$?
14547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14548 test $ac_status = 0; } && test -s "$nlist"; then
14549 # Try sorting and uniquifying the output.
14550 if sort "$nlist" | uniq > "$nlist"T; then
14551 mv -f "$nlist"T "$nlist"
14552 else
14553 rm -f "$nlist"T
14554 fi
14555
14556 # Make sure that we snagged all the symbols we need.
14557 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14558 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14559 cat <<_LT_EOF > conftest.$ac_ext
14560 #ifdef __cplusplus
14561 extern "C" {
14562 #endif
14563
14564 _LT_EOF
14565 # Now generate the symbol file.
14566 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14567
14568 cat <<_LT_EOF >> conftest.$ac_ext
14569
14570 /* The mapping between symbol names and symbols. */
14571 const struct {
14572 const char *name;
14573 void *address;
14574 }
14575 lt__PROGRAM__LTX_preloaded_symbols[] =
14576 {
14577 { "@PROGRAM@", (void *) 0 },
14578 _LT_EOF
14579 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14580 cat <<\_LT_EOF >> conftest.$ac_ext
14581 {0, (void *) 0}
14582 };
14583
14584 /* This works around a problem in FreeBSD linker */
14585 #ifdef FREEBSD_WORKAROUND
14586 static const void *lt_preloaded_setup() {
14587 return lt__PROGRAM__LTX_preloaded_symbols;
14588 }
14589 #endif
14590
14591 #ifdef __cplusplus
14592 }
14593 #endif
14594 _LT_EOF
14595 # Now try linking the two files.
14596 mv conftest.$ac_objext conftstm.$ac_objext
14597 lt_save_LIBS="$LIBS"
14598 lt_save_CFLAGS="$CFLAGS"
14599 LIBS="conftstm.$ac_objext"
14600 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14602 (eval $ac_link) 2>&5
14603 ac_status=$?
14604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14605 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14606 pipe_works=yes
14607 fi
14608 LIBS="$lt_save_LIBS"
14609 CFLAGS="$lt_save_CFLAGS"
14610 else
14611 echo "cannot find nm_test_func in $nlist" >&5
14612 fi
14613 else
14614 echo "cannot find nm_test_var in $nlist" >&5
14615 fi
14616 else
14617 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14618 fi
14619 else
14620 echo "$progname: failed program was:" >&5
14621 cat conftest.$ac_ext >&5
14622 fi
14623 rm -rf conftest* conftst*
14624
14625 # Do not use the global_symbol_pipe unless it works.
14626 if test "$pipe_works" = yes; then
14627 break
14628 else
14629 lt_cv_sys_global_symbol_pipe=
14630 fi
14631 done
14632
14633 fi
14634
14635 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14636 lt_cv_sys_global_symbol_to_cdecl=
14637 fi
14638 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14640 $as_echo "failed" >&6; }
14641 else
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14643 $as_echo "ok" >&6; }
14644 fi
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667 # Check whether --enable-libtool-lock was given.
14668 if test "${enable_libtool_lock+set}" = set; then :
14669 enableval=$enable_libtool_lock;
14670 fi
14671
14672 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14673
14674 # Some flags need to be propagated to the compiler or linker for good
14675 # libtool support.
14676 case $host in
14677 ia64-*-hpux*)
14678 # Find out which ABI we are using.
14679 echo 'int i;' > conftest.$ac_ext
14680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14681 (eval $ac_compile) 2>&5
14682 ac_status=$?
14683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14684 test $ac_status = 0; }; then
14685 case `/usr/bin/file conftest.$ac_objext` in
14686 *ELF-32*)
14687 HPUX_IA64_MODE="32"
14688 ;;
14689 *ELF-64*)
14690 HPUX_IA64_MODE="64"
14691 ;;
14692 esac
14693 fi
14694 rm -rf conftest*
14695 ;;
14696 *-*-irix6*)
14697 # Find out which ABI we are using.
14698 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14700 (eval $ac_compile) 2>&5
14701 ac_status=$?
14702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14703 test $ac_status = 0; }; then
14704 if test "$lt_cv_prog_gnu_ld" = yes; then
14705 case `/usr/bin/file conftest.$ac_objext` in
14706 *32-bit*)
14707 LD="${LD-ld} -melf32bsmip"
14708 ;;
14709 *N32*)
14710 LD="${LD-ld} -melf32bmipn32"
14711 ;;
14712 *64-bit*)
14713 LD="${LD-ld} -melf64bmip"
14714 ;;
14715 esac
14716 else
14717 case `/usr/bin/file conftest.$ac_objext` in
14718 *32-bit*)
14719 LD="${LD-ld} -32"
14720 ;;
14721 *N32*)
14722 LD="${LD-ld} -n32"
14723 ;;
14724 *64-bit*)
14725 LD="${LD-ld} -64"
14726 ;;
14727 esac
14728 fi
14729 fi
14730 rm -rf conftest*
14731 ;;
14732
14733 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14734 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14735 # Find out which ABI we are using.
14736 echo 'int i;' > conftest.$ac_ext
14737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14738 (eval $ac_compile) 2>&5
14739 ac_status=$?
14740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14741 test $ac_status = 0; }; then
14742 case `/usr/bin/file conftest.o` in
14743 *32-bit*)
14744 case $host in
14745 x86_64-*kfreebsd*-gnu)
14746 LD="${LD-ld} -m elf_i386_fbsd"
14747 ;;
14748 x86_64-*linux*)
14749 case `/usr/bin/file conftest.o` in
14750 *x86-64*)
14751 LD="${LD-ld} -m elf32_x86_64"
14752 ;;
14753 *)
14754 LD="${LD-ld} -m elf_i386"
14755 ;;
14756 esac
14757 ;;
14758 powerpc64le-*linux*)
14759 LD="${LD-ld} -m elf32lppclinux"
14760 ;;
14761 powerpc64-*linux*)
14762 LD="${LD-ld} -m elf32ppclinux"
14763 ;;
14764 s390x-*linux*)
14765 LD="${LD-ld} -m elf_s390"
14766 ;;
14767 sparc64-*linux*)
14768 LD="${LD-ld} -m elf32_sparc"
14769 ;;
14770 esac
14771 ;;
14772 *64-bit*)
14773 case $host in
14774 x86_64-*kfreebsd*-gnu)
14775 LD="${LD-ld} -m elf_x86_64_fbsd"
14776 ;;
14777 x86_64-*linux*)
14778 LD="${LD-ld} -m elf_x86_64"
14779 ;;
14780 powerpcle-*linux*)
14781 LD="${LD-ld} -m elf64lppc"
14782 ;;
14783 powerpc-*linux*)
14784 LD="${LD-ld} -m elf64ppc"
14785 ;;
14786 s390*-*linux*|s390*-*tpf*)
14787 LD="${LD-ld} -m elf64_s390"
14788 ;;
14789 sparc*-*linux*)
14790 LD="${LD-ld} -m elf64_sparc"
14791 ;;
14792 esac
14793 ;;
14794 esac
14795 fi
14796 rm -rf conftest*
14797 ;;
14798
14799 *-*-sco3.2v5*)
14800 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14801 SAVE_CFLAGS="$CFLAGS"
14802 CFLAGS="$CFLAGS -belf"
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14804 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14805 if ${lt_cv_cc_needs_belf+:} false; then :
14806 $as_echo_n "(cached) " >&6
14807 else
14808 ac_ext=c
14809 ac_cpp='$CPP $CPPFLAGS'
14810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14813
14814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14815 /* end confdefs.h. */
14816
14817 int
14818 main ()
14819 {
14820
14821 ;
14822 return 0;
14823 }
14824 _ACEOF
14825 if ac_fn_c_try_link "$LINENO"; then :
14826 lt_cv_cc_needs_belf=yes
14827 else
14828 lt_cv_cc_needs_belf=no
14829 fi
14830 rm -f core conftest.err conftest.$ac_objext \
14831 conftest$ac_exeext conftest.$ac_ext
14832 ac_ext=c
14833 ac_cpp='$CPP $CPPFLAGS'
14834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14837
14838 fi
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14840 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14841 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14842 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14843 CFLAGS="$SAVE_CFLAGS"
14844 fi
14845 ;;
14846 sparc*-*solaris*)
14847 # Find out which ABI we are using.
14848 echo 'int i;' > conftest.$ac_ext
14849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14850 (eval $ac_compile) 2>&5
14851 ac_status=$?
14852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14853 test $ac_status = 0; }; then
14854 case `/usr/bin/file conftest.o` in
14855 *64-bit*)
14856 case $lt_cv_prog_gnu_ld in
14857 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14858 *)
14859 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14860 LD="${LD-ld} -64"
14861 fi
14862 ;;
14863 esac
14864 ;;
14865 esac
14866 fi
14867 rm -rf conftest*
14868 ;;
14869 esac
14870
14871 need_locks="$enable_libtool_lock"
14872
14873
14874 case $host_os in
14875 rhapsody* | darwin*)
14876 if test -n "$ac_tool_prefix"; then
14877 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14878 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14880 $as_echo_n "checking for $ac_word... " >&6; }
14881 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 if test -n "$DSYMUTIL"; then
14885 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14886 else
14887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14888 for as_dir in $PATH
14889 do
14890 IFS=$as_save_IFS
14891 test -z "$as_dir" && as_dir=.
14892 for ac_exec_ext in '' $ac_executable_extensions; do
14893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14894 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14896 break 2
14897 fi
14898 done
14899 done
14900 IFS=$as_save_IFS
14901
14902 fi
14903 fi
14904 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14905 if test -n "$DSYMUTIL"; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14907 $as_echo "$DSYMUTIL" >&6; }
14908 else
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14910 $as_echo "no" >&6; }
14911 fi
14912
14913
14914 fi
14915 if test -z "$ac_cv_prog_DSYMUTIL"; then
14916 ac_ct_DSYMUTIL=$DSYMUTIL
14917 # Extract the first word of "dsymutil", so it can be a program name with args.
14918 set dummy dsymutil; ac_word=$2
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14920 $as_echo_n "checking for $ac_word... " >&6; }
14921 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14922 $as_echo_n "(cached) " >&6
14923 else
14924 if test -n "$ac_ct_DSYMUTIL"; then
14925 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14926 else
14927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14928 for as_dir in $PATH
14929 do
14930 IFS=$as_save_IFS
14931 test -z "$as_dir" && as_dir=.
14932 for ac_exec_ext in '' $ac_executable_extensions; do
14933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14934 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14936 break 2
14937 fi
14938 done
14939 done
14940 IFS=$as_save_IFS
14941
14942 fi
14943 fi
14944 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14945 if test -n "$ac_ct_DSYMUTIL"; then
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14947 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14948 else
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14950 $as_echo "no" >&6; }
14951 fi
14952
14953 if test "x$ac_ct_DSYMUTIL" = x; then
14954 DSYMUTIL=":"
14955 else
14956 case $cross_compiling:$ac_tool_warned in
14957 yes:)
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14960 ac_tool_warned=yes ;;
14961 esac
14962 DSYMUTIL=$ac_ct_DSYMUTIL
14963 fi
14964 else
14965 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14966 fi
14967
14968 if test -n "$ac_tool_prefix"; then
14969 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14970 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14972 $as_echo_n "checking for $ac_word... " >&6; }
14973 if ${ac_cv_prog_NMEDIT+:} false; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14976 if test -n "$NMEDIT"; then
14977 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14978 else
14979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980 for as_dir in $PATH
14981 do
14982 IFS=$as_save_IFS
14983 test -z "$as_dir" && as_dir=.
14984 for ac_exec_ext in '' $ac_executable_extensions; do
14985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14986 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14988 break 2
14989 fi
14990 done
14991 done
14992 IFS=$as_save_IFS
14993
14994 fi
14995 fi
14996 NMEDIT=$ac_cv_prog_NMEDIT
14997 if test -n "$NMEDIT"; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14999 $as_echo "$NMEDIT" >&6; }
15000 else
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15002 $as_echo "no" >&6; }
15003 fi
15004
15005
15006 fi
15007 if test -z "$ac_cv_prog_NMEDIT"; then
15008 ac_ct_NMEDIT=$NMEDIT
15009 # Extract the first word of "nmedit", so it can be a program name with args.
15010 set dummy nmedit; ac_word=$2
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15012 $as_echo_n "checking for $ac_word... " >&6; }
15013 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15014 $as_echo_n "(cached) " >&6
15015 else
15016 if test -n "$ac_ct_NMEDIT"; then
15017 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15018 else
15019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15020 for as_dir in $PATH
15021 do
15022 IFS=$as_save_IFS
15023 test -z "$as_dir" && as_dir=.
15024 for ac_exec_ext in '' $ac_executable_extensions; do
15025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15026 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15028 break 2
15029 fi
15030 done
15031 done
15032 IFS=$as_save_IFS
15033
15034 fi
15035 fi
15036 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15037 if test -n "$ac_ct_NMEDIT"; then
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15039 $as_echo "$ac_ct_NMEDIT" >&6; }
15040 else
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15042 $as_echo "no" >&6; }
15043 fi
15044
15045 if test "x$ac_ct_NMEDIT" = x; then
15046 NMEDIT=":"
15047 else
15048 case $cross_compiling:$ac_tool_warned in
15049 yes:)
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15052 ac_tool_warned=yes ;;
15053 esac
15054 NMEDIT=$ac_ct_NMEDIT
15055 fi
15056 else
15057 NMEDIT="$ac_cv_prog_NMEDIT"
15058 fi
15059
15060 if test -n "$ac_tool_prefix"; then
15061 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15062 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15064 $as_echo_n "checking for $ac_word... " >&6; }
15065 if ${ac_cv_prog_LIPO+:} false; then :
15066 $as_echo_n "(cached) " >&6
15067 else
15068 if test -n "$LIPO"; then
15069 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15070 else
15071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15072 for as_dir in $PATH
15073 do
15074 IFS=$as_save_IFS
15075 test -z "$as_dir" && as_dir=.
15076 for ac_exec_ext in '' $ac_executable_extensions; do
15077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15078 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15080 break 2
15081 fi
15082 done
15083 done
15084 IFS=$as_save_IFS
15085
15086 fi
15087 fi
15088 LIPO=$ac_cv_prog_LIPO
15089 if test -n "$LIPO"; then
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15091 $as_echo "$LIPO" >&6; }
15092 else
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15094 $as_echo "no" >&6; }
15095 fi
15096
15097
15098 fi
15099 if test -z "$ac_cv_prog_LIPO"; then
15100 ac_ct_LIPO=$LIPO
15101 # Extract the first word of "lipo", so it can be a program name with args.
15102 set dummy lipo; ac_word=$2
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15104 $as_echo_n "checking for $ac_word... " >&6; }
15105 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15106 $as_echo_n "(cached) " >&6
15107 else
15108 if test -n "$ac_ct_LIPO"; then
15109 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15110 else
15111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15112 for as_dir in $PATH
15113 do
15114 IFS=$as_save_IFS
15115 test -z "$as_dir" && as_dir=.
15116 for ac_exec_ext in '' $ac_executable_extensions; do
15117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15118 ac_cv_prog_ac_ct_LIPO="lipo"
15119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15120 break 2
15121 fi
15122 done
15123 done
15124 IFS=$as_save_IFS
15125
15126 fi
15127 fi
15128 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15129 if test -n "$ac_ct_LIPO"; then
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15131 $as_echo "$ac_ct_LIPO" >&6; }
15132 else
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15134 $as_echo "no" >&6; }
15135 fi
15136
15137 if test "x$ac_ct_LIPO" = x; then
15138 LIPO=":"
15139 else
15140 case $cross_compiling:$ac_tool_warned in
15141 yes:)
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15144 ac_tool_warned=yes ;;
15145 esac
15146 LIPO=$ac_ct_LIPO
15147 fi
15148 else
15149 LIPO="$ac_cv_prog_LIPO"
15150 fi
15151
15152 if test -n "$ac_tool_prefix"; then
15153 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15154 set dummy ${ac_tool_prefix}otool; ac_word=$2
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15156 $as_echo_n "checking for $ac_word... " >&6; }
15157 if ${ac_cv_prog_OTOOL+:} false; then :
15158 $as_echo_n "(cached) " >&6
15159 else
15160 if test -n "$OTOOL"; then
15161 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15162 else
15163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15164 for as_dir in $PATH
15165 do
15166 IFS=$as_save_IFS
15167 test -z "$as_dir" && as_dir=.
15168 for ac_exec_ext in '' $ac_executable_extensions; do
15169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15170 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15172 break 2
15173 fi
15174 done
15175 done
15176 IFS=$as_save_IFS
15177
15178 fi
15179 fi
15180 OTOOL=$ac_cv_prog_OTOOL
15181 if test -n "$OTOOL"; then
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15183 $as_echo "$OTOOL" >&6; }
15184 else
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15186 $as_echo "no" >&6; }
15187 fi
15188
15189
15190 fi
15191 if test -z "$ac_cv_prog_OTOOL"; then
15192 ac_ct_OTOOL=$OTOOL
15193 # Extract the first word of "otool", so it can be a program name with args.
15194 set dummy otool; ac_word=$2
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15196 $as_echo_n "checking for $ac_word... " >&6; }
15197 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15198 $as_echo_n "(cached) " >&6
15199 else
15200 if test -n "$ac_ct_OTOOL"; then
15201 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15202 else
15203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15204 for as_dir in $PATH
15205 do
15206 IFS=$as_save_IFS
15207 test -z "$as_dir" && as_dir=.
15208 for ac_exec_ext in '' $ac_executable_extensions; do
15209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15210 ac_cv_prog_ac_ct_OTOOL="otool"
15211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15212 break 2
15213 fi
15214 done
15215 done
15216 IFS=$as_save_IFS
15217
15218 fi
15219 fi
15220 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15221 if test -n "$ac_ct_OTOOL"; then
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15223 $as_echo "$ac_ct_OTOOL" >&6; }
15224 else
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15226 $as_echo "no" >&6; }
15227 fi
15228
15229 if test "x$ac_ct_OTOOL" = x; then
15230 OTOOL=":"
15231 else
15232 case $cross_compiling:$ac_tool_warned in
15233 yes:)
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15236 ac_tool_warned=yes ;;
15237 esac
15238 OTOOL=$ac_ct_OTOOL
15239 fi
15240 else
15241 OTOOL="$ac_cv_prog_OTOOL"
15242 fi
15243
15244 if test -n "$ac_tool_prefix"; then
15245 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15246 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15248 $as_echo_n "checking for $ac_word... " >&6; }
15249 if ${ac_cv_prog_OTOOL64+:} false; then :
15250 $as_echo_n "(cached) " >&6
15251 else
15252 if test -n "$OTOOL64"; then
15253 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15254 else
15255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15256 for as_dir in $PATH
15257 do
15258 IFS=$as_save_IFS
15259 test -z "$as_dir" && as_dir=.
15260 for ac_exec_ext in '' $ac_executable_extensions; do
15261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15262 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15264 break 2
15265 fi
15266 done
15267 done
15268 IFS=$as_save_IFS
15269
15270 fi
15271 fi
15272 OTOOL64=$ac_cv_prog_OTOOL64
15273 if test -n "$OTOOL64"; then
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15275 $as_echo "$OTOOL64" >&6; }
15276 else
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15278 $as_echo "no" >&6; }
15279 fi
15280
15281
15282 fi
15283 if test -z "$ac_cv_prog_OTOOL64"; then
15284 ac_ct_OTOOL64=$OTOOL64
15285 # Extract the first word of "otool64", so it can be a program name with args.
15286 set dummy otool64; ac_word=$2
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15288 $as_echo_n "checking for $ac_word... " >&6; }
15289 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15290 $as_echo_n "(cached) " >&6
15291 else
15292 if test -n "$ac_ct_OTOOL64"; then
15293 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15294 else
15295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15296 for as_dir in $PATH
15297 do
15298 IFS=$as_save_IFS
15299 test -z "$as_dir" && as_dir=.
15300 for ac_exec_ext in '' $ac_executable_extensions; do
15301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15302 ac_cv_prog_ac_ct_OTOOL64="otool64"
15303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15304 break 2
15305 fi
15306 done
15307 done
15308 IFS=$as_save_IFS
15309
15310 fi
15311 fi
15312 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15313 if test -n "$ac_ct_OTOOL64"; then
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15315 $as_echo "$ac_ct_OTOOL64" >&6; }
15316 else
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15318 $as_echo "no" >&6; }
15319 fi
15320
15321 if test "x$ac_ct_OTOOL64" = x; then
15322 OTOOL64=":"
15323 else
15324 case $cross_compiling:$ac_tool_warned in
15325 yes:)
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15328 ac_tool_warned=yes ;;
15329 esac
15330 OTOOL64=$ac_ct_OTOOL64
15331 fi
15332 else
15333 OTOOL64="$ac_cv_prog_OTOOL64"
15334 fi
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15363 $as_echo_n "checking for -single_module linker flag... " >&6; }
15364 if ${lt_cv_apple_cc_single_mod+:} false; then :
15365 $as_echo_n "(cached) " >&6
15366 else
15367 lt_cv_apple_cc_single_mod=no
15368 if test -z "${LT_MULTI_MODULE}"; then
15369 # By default we will add the -single_module flag. You can override
15370 # by either setting the environment variable LT_MULTI_MODULE
15371 # non-empty at configure time, or by adding -multi_module to the
15372 # link flags.
15373 rm -rf libconftest.dylib*
15374 echo "int foo(void){return 1;}" > conftest.c
15375 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15376 -dynamiclib -Wl,-single_module conftest.c" >&5
15377 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15378 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15379 _lt_result=$?
15380 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15381 lt_cv_apple_cc_single_mod=yes
15382 else
15383 cat conftest.err >&5
15384 fi
15385 rm -rf libconftest.dylib*
15386 rm -f conftest.*
15387 fi
15388 fi
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15390 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15392 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15393 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15394 $as_echo_n "(cached) " >&6
15395 else
15396 lt_cv_ld_exported_symbols_list=no
15397 save_LDFLAGS=$LDFLAGS
15398 echo "_main" > conftest.sym
15399 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h. */
15402
15403 int
15404 main ()
15405 {
15406
15407 ;
15408 return 0;
15409 }
15410 _ACEOF
15411 if ac_fn_c_try_link "$LINENO"; then :
15412 lt_cv_ld_exported_symbols_list=yes
15413 else
15414 lt_cv_ld_exported_symbols_list=no
15415 fi
15416 rm -f core conftest.err conftest.$ac_objext \
15417 conftest$ac_exeext conftest.$ac_ext
15418 LDFLAGS="$save_LDFLAGS"
15419
15420 fi
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15422 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15424 $as_echo_n "checking for -force_load linker flag... " >&6; }
15425 if ${lt_cv_ld_force_load+:} false; then :
15426 $as_echo_n "(cached) " >&6
15427 else
15428 lt_cv_ld_force_load=no
15429 cat > conftest.c << _LT_EOF
15430 int forced_loaded() { return 2;}
15431 _LT_EOF
15432 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15433 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15434 echo "$AR cru libconftest.a conftest.o" >&5
15435 $AR cru libconftest.a conftest.o 2>&5
15436 cat > conftest.c << _LT_EOF
15437 int main() { return 0;}
15438 _LT_EOF
15439 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15440 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15441 _lt_result=$?
15442 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15443 lt_cv_ld_force_load=yes
15444 else
15445 cat conftest.err >&5
15446 fi
15447 rm -f conftest.err libconftest.a conftest conftest.c
15448 rm -rf conftest.dSYM
15449
15450 fi
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15452 $as_echo "$lt_cv_ld_force_load" >&6; }
15453 case $host_os in
15454 rhapsody* | darwin1.[012])
15455 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15456 darwin1.*)
15457 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15458 darwin*) # darwin 5.x on
15459 # if running on 10.5 or later, the deployment target defaults
15460 # to the OS version, if on x86, and 10.4, the deployment
15461 # target defaults to 10.4. Don't you love it?
15462 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15463 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15464 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15465 10.[012][,.]*)
15466 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15467 10.*)
15468 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15469 esac
15470 ;;
15471 esac
15472 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15473 _lt_dar_single_mod='$single_module'
15474 fi
15475 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15476 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15477 else
15478 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15479 fi
15480 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15481 _lt_dsymutil='~$DSYMUTIL $lib || :'
15482 else
15483 _lt_dsymutil=
15484 fi
15485 ;;
15486 esac
15487
15488
15489 for ac_header in dlfcn.h
15490 do :
15491 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15492 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15493 cat >>confdefs.h <<_ACEOF
15494 #define HAVE_DLFCN_H 1
15495 _ACEOF
15496
15497 fi
15498 done
15499
15500
15501
15502
15503
15504 # Set options
15505
15506
15507
15508 enable_dlopen=no
15509
15510
15511 enable_win32_dll=no
15512
15513
15514 # Check whether --enable-shared was given.
15515 if test "${enable_shared+set}" = set; then :
15516 enableval=$enable_shared; p=${PACKAGE-default}
15517 case $enableval in
15518 yes) enable_shared=yes ;;
15519 no) enable_shared=no ;;
15520 *)
15521 enable_shared=no
15522 # Look at the argument we got. We use all the common list separators.
15523 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15524 for pkg in $enableval; do
15525 IFS="$lt_save_ifs"
15526 if test "X$pkg" = "X$p"; then
15527 enable_shared=yes
15528 fi
15529 done
15530 IFS="$lt_save_ifs"
15531 ;;
15532 esac
15533 else
15534 enable_shared=yes
15535 fi
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545 # Check whether --enable-static was given.
15546 if test "${enable_static+set}" = set; then :
15547 enableval=$enable_static; p=${PACKAGE-default}
15548 case $enableval in
15549 yes) enable_static=yes ;;
15550 no) enable_static=no ;;
15551 *)
15552 enable_static=no
15553 # Look at the argument we got. We use all the common list separators.
15554 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15555 for pkg in $enableval; do
15556 IFS="$lt_save_ifs"
15557 if test "X$pkg" = "X$p"; then
15558 enable_static=yes
15559 fi
15560 done
15561 IFS="$lt_save_ifs"
15562 ;;
15563 esac
15564 else
15565 enable_static=yes
15566 fi
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577 # Check whether --with-pic was given.
15578 if test "${with_pic+set}" = set; then :
15579 withval=$with_pic; pic_mode="$withval"
15580 else
15581 pic_mode=default
15582 fi
15583
15584
15585 test -z "$pic_mode" && pic_mode=default
15586
15587
15588
15589
15590
15591
15592
15593 # Check whether --enable-fast-install was given.
15594 if test "${enable_fast_install+set}" = set; then :
15595 enableval=$enable_fast_install; p=${PACKAGE-default}
15596 case $enableval in
15597 yes) enable_fast_install=yes ;;
15598 no) enable_fast_install=no ;;
15599 *)
15600 enable_fast_install=no
15601 # Look at the argument we got. We use all the common list separators.
15602 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15603 for pkg in $enableval; do
15604 IFS="$lt_save_ifs"
15605 if test "X$pkg" = "X$p"; then
15606 enable_fast_install=yes
15607 fi
15608 done
15609 IFS="$lt_save_ifs"
15610 ;;
15611 esac
15612 else
15613 enable_fast_install=yes
15614 fi
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626 # This can be used to rebuild libtool when needed
15627 LIBTOOL_DEPS="$ltmain"
15628
15629 # Always use our own libtool.
15630 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657 test -z "$LN_S" && LN_S="ln -s"
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672 if test -n "${ZSH_VERSION+set}" ; then
15673 setopt NO_GLOB_SUBST
15674 fi
15675
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15677 $as_echo_n "checking for objdir... " >&6; }
15678 if ${lt_cv_objdir+:} false; then :
15679 $as_echo_n "(cached) " >&6
15680 else
15681 rm -f .libs 2>/dev/null
15682 mkdir .libs 2>/dev/null
15683 if test -d .libs; then
15684 lt_cv_objdir=.libs
15685 else
15686 # MS-DOS does not allow filenames that begin with a dot.
15687 lt_cv_objdir=_libs
15688 fi
15689 rmdir .libs 2>/dev/null
15690 fi
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15692 $as_echo "$lt_cv_objdir" >&6; }
15693 objdir=$lt_cv_objdir
15694
15695
15696
15697
15698
15699 cat >>confdefs.h <<_ACEOF
15700 #define LT_OBJDIR "$lt_cv_objdir/"
15701 _ACEOF
15702
15703
15704
15705
15706 case $host_os in
15707 aix3*)
15708 # AIX sometimes has problems with the GCC collect2 program. For some
15709 # reason, if we set the COLLECT_NAMES environment variable, the problems
15710 # vanish in a puff of smoke.
15711 if test "X${COLLECT_NAMES+set}" != Xset; then
15712 COLLECT_NAMES=
15713 export COLLECT_NAMES
15714 fi
15715 ;;
15716 esac
15717
15718 # Global variables:
15719 ofile=libtool
15720 can_build_shared=yes
15721
15722 # All known linkers require a `.a' archive for static linking (except MSVC,
15723 # which needs '.lib').
15724 libext=a
15725
15726 with_gnu_ld="$lt_cv_prog_gnu_ld"
15727
15728 old_CC="$CC"
15729 old_CFLAGS="$CFLAGS"
15730
15731 # Set sane defaults for various variables
15732 test -z "$CC" && CC=cc
15733 test -z "$LTCC" && LTCC=$CC
15734 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15735 test -z "$LD" && LD=ld
15736 test -z "$ac_objext" && ac_objext=o
15737
15738 for cc_temp in $compiler""; do
15739 case $cc_temp in
15740 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15741 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15742 \-*) ;;
15743 *) break;;
15744 esac
15745 done
15746 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15747
15748
15749 # Only perform the check for file, if the check method requires it
15750 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15751 case $deplibs_check_method in
15752 file_magic*)
15753 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15755 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15756 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15757 $as_echo_n "(cached) " >&6
15758 else
15759 case $MAGIC_CMD in
15760 [\\/*] | ?:[\\/]*)
15761 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15762 ;;
15763 *)
15764 lt_save_MAGIC_CMD="$MAGIC_CMD"
15765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15766 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15767 for ac_dir in $ac_dummy; do
15768 IFS="$lt_save_ifs"
15769 test -z "$ac_dir" && ac_dir=.
15770 if test -f $ac_dir/${ac_tool_prefix}file; then
15771 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15772 if test -n "$file_magic_test_file"; then
15773 case $deplibs_check_method in
15774 "file_magic "*)
15775 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15776 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15777 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15778 $EGREP "$file_magic_regex" > /dev/null; then
15779 :
15780 else
15781 cat <<_LT_EOF 1>&2
15782
15783 *** Warning: the command libtool uses to detect shared libraries,
15784 *** $file_magic_cmd, produces output that libtool cannot recognize.
15785 *** The result is that libtool may fail to recognize shared libraries
15786 *** as such. This will affect the creation of libtool libraries that
15787 *** depend on shared libraries, but programs linked with such libtool
15788 *** libraries will work regardless of this problem. Nevertheless, you
15789 *** may want to report the problem to your system manager and/or to
15790 *** bug-libtool@gnu.org
15791
15792 _LT_EOF
15793 fi ;;
15794 esac
15795 fi
15796 break
15797 fi
15798 done
15799 IFS="$lt_save_ifs"
15800 MAGIC_CMD="$lt_save_MAGIC_CMD"
15801 ;;
15802 esac
15803 fi
15804
15805 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15806 if test -n "$MAGIC_CMD"; then
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15808 $as_echo "$MAGIC_CMD" >&6; }
15809 else
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15811 $as_echo "no" >&6; }
15812 fi
15813
15814
15815
15816
15817
15818 if test -z "$lt_cv_path_MAGIC_CMD"; then
15819 if test -n "$ac_tool_prefix"; then
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15821 $as_echo_n "checking for file... " >&6; }
15822 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15823 $as_echo_n "(cached) " >&6
15824 else
15825 case $MAGIC_CMD in
15826 [\\/*] | ?:[\\/]*)
15827 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15828 ;;
15829 *)
15830 lt_save_MAGIC_CMD="$MAGIC_CMD"
15831 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15832 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15833 for ac_dir in $ac_dummy; do
15834 IFS="$lt_save_ifs"
15835 test -z "$ac_dir" && ac_dir=.
15836 if test -f $ac_dir/file; then
15837 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15838 if test -n "$file_magic_test_file"; then
15839 case $deplibs_check_method in
15840 "file_magic "*)
15841 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15842 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15843 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15844 $EGREP "$file_magic_regex" > /dev/null; then
15845 :
15846 else
15847 cat <<_LT_EOF 1>&2
15848
15849 *** Warning: the command libtool uses to detect shared libraries,
15850 *** $file_magic_cmd, produces output that libtool cannot recognize.
15851 *** The result is that libtool may fail to recognize shared libraries
15852 *** as such. This will affect the creation of libtool libraries that
15853 *** depend on shared libraries, but programs linked with such libtool
15854 *** libraries will work regardless of this problem. Nevertheless, you
15855 *** may want to report the problem to your system manager and/or to
15856 *** bug-libtool@gnu.org
15857
15858 _LT_EOF
15859 fi ;;
15860 esac
15861 fi
15862 break
15863 fi
15864 done
15865 IFS="$lt_save_ifs"
15866 MAGIC_CMD="$lt_save_MAGIC_CMD"
15867 ;;
15868 esac
15869 fi
15870
15871 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15872 if test -n "$MAGIC_CMD"; then
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15874 $as_echo "$MAGIC_CMD" >&6; }
15875 else
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15877 $as_echo "no" >&6; }
15878 fi
15879
15880
15881 else
15882 MAGIC_CMD=:
15883 fi
15884 fi
15885
15886 fi
15887 ;;
15888 esac
15889
15890 # Use C for the default configuration in the libtool script
15891
15892 lt_save_CC="$CC"
15893 ac_ext=c
15894 ac_cpp='$CPP $CPPFLAGS'
15895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15898
15899
15900 # Source file extension for C test sources.
15901 ac_ext=c
15902
15903 # Object file extension for compiled C test sources.
15904 objext=o
15905 objext=$objext
15906
15907 # Code to be used in simple compile tests
15908 lt_simple_compile_test_code="int some_variable = 0;"
15909
15910 # Code to be used in simple link tests
15911 lt_simple_link_test_code='int main(){return(0);}'
15912
15913
15914
15915
15916
15917
15918
15919 # If no C compiler was specified, use CC.
15920 LTCC=${LTCC-"$CC"}
15921
15922 # If no C compiler flags were specified, use CFLAGS.
15923 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15924
15925 # Allow CC to be a program name with arguments.
15926 compiler=$CC
15927
15928 # Save the default compiler, since it gets overwritten when the other
15929 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15930 compiler_DEFAULT=$CC
15931
15932 # save warnings/boilerplate of simple test code
15933 ac_outfile=conftest.$ac_objext
15934 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15935 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15936 _lt_compiler_boilerplate=`cat conftest.err`
15937 $RM conftest*
15938
15939 ac_outfile=conftest.$ac_objext
15940 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15941 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15942 _lt_linker_boilerplate=`cat conftest.err`
15943 $RM -r conftest*
15944
15945
15946 ## CAVEAT EMPTOR:
15947 ## There is no encapsulation within the following macros, do not change
15948 ## the running order or otherwise move them around unless you know exactly
15949 ## what you are doing...
15950 if test -n "$compiler"; then
15951
15952 lt_prog_compiler_no_builtin_flag=
15953
15954 if test "$GCC" = yes; then
15955 case $cc_basename in
15956 nvcc*)
15957 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15958 *)
15959 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15960 esac
15961
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15963 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15964 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15965 $as_echo_n "(cached) " >&6
15966 else
15967 lt_cv_prog_compiler_rtti_exceptions=no
15968 ac_outfile=conftest.$ac_objext
15969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15970 lt_compiler_flag="-fno-rtti -fno-exceptions"
15971 # Insert the option either (1) after the last *FLAGS variable, or
15972 # (2) before a word containing "conftest.", or (3) at the end.
15973 # Note that $ac_compile itself does not contain backslashes and begins
15974 # with a dollar sign (not a hyphen), so the echo should work correctly.
15975 # The option is referenced via a variable to avoid confusing sed.
15976 lt_compile=`echo "$ac_compile" | $SED \
15977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15979 -e 's:$: $lt_compiler_flag:'`
15980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15981 (eval "$lt_compile" 2>conftest.err)
15982 ac_status=$?
15983 cat conftest.err >&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 if (exit $ac_status) && test -s "$ac_outfile"; then
15986 # The compiler can only warn and ignore the option if not recognized
15987 # So say no if there are warnings other than the usual output.
15988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15990 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15991 lt_cv_prog_compiler_rtti_exceptions=yes
15992 fi
15993 fi
15994 $RM conftest*
15995
15996 fi
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15998 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15999
16000 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16001 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16002 else
16003 :
16004 fi
16005
16006 fi
16007
16008
16009
16010
16011
16012
16013 lt_prog_compiler_wl=
16014 lt_prog_compiler_pic=
16015 lt_prog_compiler_static=
16016
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16018 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16019
16020 if test "$GCC" = yes; then
16021 lt_prog_compiler_wl='-Wl,'
16022 lt_prog_compiler_static='-static'
16023
16024 case $host_os in
16025 aix*)
16026 # All AIX code is PIC.
16027 if test "$host_cpu" = ia64; then
16028 # AIX 5 now supports IA64 processor
16029 lt_prog_compiler_static='-Bstatic'
16030 fi
16031 lt_prog_compiler_pic='-fPIC'
16032 ;;
16033
16034 amigaos*)
16035 case $host_cpu in
16036 powerpc)
16037 # see comment about AmigaOS4 .so support
16038 lt_prog_compiler_pic='-fPIC'
16039 ;;
16040 m68k)
16041 # FIXME: we need at least 68020 code to build shared libraries, but
16042 # adding the `-m68020' flag to GCC prevents building anything better,
16043 # like `-m68040'.
16044 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16045 ;;
16046 esac
16047 ;;
16048
16049 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16050 # PIC is the default for these OSes.
16051 ;;
16052
16053 mingw* | cygwin* | pw32* | os2* | cegcc*)
16054 # This hack is so that the source file can tell whether it is being
16055 # built for inclusion in a dll (and should export symbols for example).
16056 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16057 # (--disable-auto-import) libraries
16058 lt_prog_compiler_pic='-DDLL_EXPORT'
16059 ;;
16060
16061 darwin* | rhapsody*)
16062 # PIC is the default on this platform
16063 # Common symbols not allowed in MH_DYLIB files
16064 lt_prog_compiler_pic='-fno-common'
16065 ;;
16066
16067 haiku*)
16068 # PIC is the default for Haiku.
16069 # The "-static" flag exists, but is broken.
16070 lt_prog_compiler_static=
16071 ;;
16072
16073 hpux*)
16074 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16075 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16076 # sets the default TLS model and affects inlining.
16077 case $host_cpu in
16078 hppa*64*)
16079 # +Z the default
16080 ;;
16081 *)
16082 lt_prog_compiler_pic='-fPIC'
16083 ;;
16084 esac
16085 ;;
16086
16087 interix[3-9]*)
16088 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16089 # Instead, we relocate shared libraries at runtime.
16090 ;;
16091
16092 msdosdjgpp*)
16093 # Just because we use GCC doesn't mean we suddenly get shared libraries
16094 # on systems that don't support them.
16095 lt_prog_compiler_can_build_shared=no
16096 enable_shared=no
16097 ;;
16098
16099 *nto* | *qnx*)
16100 # QNX uses GNU C++, but need to define -shared option too, otherwise
16101 # it will coredump.
16102 lt_prog_compiler_pic='-fPIC -shared'
16103 ;;
16104
16105 sysv4*MP*)
16106 if test -d /usr/nec; then
16107 lt_prog_compiler_pic=-Kconform_pic
16108 fi
16109 ;;
16110
16111 *)
16112 lt_prog_compiler_pic='-fPIC'
16113 ;;
16114 esac
16115
16116 case $cc_basename in
16117 nvcc*) # Cuda Compiler Driver 2.2
16118 lt_prog_compiler_wl='-Xlinker '
16119 lt_prog_compiler_pic='-Xcompiler -fPIC'
16120 ;;
16121 esac
16122 else
16123 # PORTME Check for flag to pass linker flags through the system compiler.
16124 case $host_os in
16125 aix*)
16126 lt_prog_compiler_wl='-Wl,'
16127 if test "$host_cpu" = ia64; then
16128 # AIX 5 now supports IA64 processor
16129 lt_prog_compiler_static='-Bstatic'
16130 else
16131 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16132 fi
16133 ;;
16134
16135 mingw* | cygwin* | pw32* | os2* | cegcc*)
16136 # This hack is so that the source file can tell whether it is being
16137 # built for inclusion in a dll (and should export symbols for example).
16138 lt_prog_compiler_pic='-DDLL_EXPORT'
16139 ;;
16140
16141 hpux9* | hpux10* | hpux11*)
16142 lt_prog_compiler_wl='-Wl,'
16143 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16144 # not for PA HP-UX.
16145 case $host_cpu in
16146 hppa*64*|ia64*)
16147 # +Z the default
16148 ;;
16149 *)
16150 lt_prog_compiler_pic='+Z'
16151 ;;
16152 esac
16153 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16154 lt_prog_compiler_static='${wl}-a ${wl}archive'
16155 ;;
16156
16157 irix5* | irix6* | nonstopux*)
16158 lt_prog_compiler_wl='-Wl,'
16159 # PIC (with -KPIC) is the default.
16160 lt_prog_compiler_static='-non_shared'
16161 ;;
16162
16163 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16164 case $cc_basename in
16165 # old Intel for x86_64 which still supported -KPIC.
16166 ecc*)
16167 lt_prog_compiler_wl='-Wl,'
16168 lt_prog_compiler_pic='-KPIC'
16169 lt_prog_compiler_static='-static'
16170 ;;
16171 # icc used to be incompatible with GCC.
16172 # ICC 10 doesn't accept -KPIC any more.
16173 icc* | ifort*)
16174 lt_prog_compiler_wl='-Wl,'
16175 lt_prog_compiler_pic='-fPIC'
16176 lt_prog_compiler_static='-static'
16177 ;;
16178 # Lahey Fortran 8.1.
16179 lf95*)
16180 lt_prog_compiler_wl='-Wl,'
16181 lt_prog_compiler_pic='--shared'
16182 lt_prog_compiler_static='--static'
16183 ;;
16184 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16185 # Portland Group compilers (*not* the Pentium gcc compiler,
16186 # which looks to be a dead project)
16187 lt_prog_compiler_wl='-Wl,'
16188 lt_prog_compiler_pic='-fpic'
16189 lt_prog_compiler_static='-Bstatic'
16190 ;;
16191 ccc*)
16192 lt_prog_compiler_wl='-Wl,'
16193 # All Alpha code is PIC.
16194 lt_prog_compiler_static='-non_shared'
16195 ;;
16196 xl* | bgxl* | bgf* | mpixl*)
16197 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16198 lt_prog_compiler_wl='-Wl,'
16199 lt_prog_compiler_pic='-qpic'
16200 lt_prog_compiler_static='-qstaticlink'
16201 ;;
16202 *)
16203 case `$CC -V 2>&1 | sed 5q` in
16204 *Sun\ F* | *Sun*Fortran*)
16205 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16206 lt_prog_compiler_pic='-KPIC'
16207 lt_prog_compiler_static='-Bstatic'
16208 lt_prog_compiler_wl=''
16209 ;;
16210 *Sun\ C*)
16211 # Sun C 5.9
16212 lt_prog_compiler_pic='-KPIC'
16213 lt_prog_compiler_static='-Bstatic'
16214 lt_prog_compiler_wl='-Wl,'
16215 ;;
16216 esac
16217 ;;
16218 esac
16219 ;;
16220
16221 newsos6)
16222 lt_prog_compiler_pic='-KPIC'
16223 lt_prog_compiler_static='-Bstatic'
16224 ;;
16225
16226 *nto* | *qnx*)
16227 # QNX uses GNU C++, but need to define -shared option too, otherwise
16228 # it will coredump.
16229 lt_prog_compiler_pic='-fPIC -shared'
16230 ;;
16231
16232 osf3* | osf4* | osf5*)
16233 lt_prog_compiler_wl='-Wl,'
16234 # All OSF/1 code is PIC.
16235 lt_prog_compiler_static='-non_shared'
16236 ;;
16237
16238 rdos*)
16239 lt_prog_compiler_static='-non_shared'
16240 ;;
16241
16242 solaris*)
16243 lt_prog_compiler_pic='-KPIC'
16244 lt_prog_compiler_static='-Bstatic'
16245 case $cc_basename in
16246 f77* | f90* | f95*)
16247 lt_prog_compiler_wl='-Qoption ld ';;
16248 *)
16249 lt_prog_compiler_wl='-Wl,';;
16250 esac
16251 ;;
16252
16253 sunos4*)
16254 lt_prog_compiler_wl='-Qoption ld '
16255 lt_prog_compiler_pic='-PIC'
16256 lt_prog_compiler_static='-Bstatic'
16257 ;;
16258
16259 sysv4 | sysv4.2uw2* | sysv4.3*)
16260 lt_prog_compiler_wl='-Wl,'
16261 lt_prog_compiler_pic='-KPIC'
16262 lt_prog_compiler_static='-Bstatic'
16263 ;;
16264
16265 sysv4*MP*)
16266 if test -d /usr/nec ;then
16267 lt_prog_compiler_pic='-Kconform_pic'
16268 lt_prog_compiler_static='-Bstatic'
16269 fi
16270 ;;
16271
16272 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16273 lt_prog_compiler_wl='-Wl,'
16274 lt_prog_compiler_pic='-KPIC'
16275 lt_prog_compiler_static='-Bstatic'
16276 ;;
16277
16278 unicos*)
16279 lt_prog_compiler_wl='-Wl,'
16280 lt_prog_compiler_can_build_shared=no
16281 ;;
16282
16283 uts4*)
16284 lt_prog_compiler_pic='-pic'
16285 lt_prog_compiler_static='-Bstatic'
16286 ;;
16287
16288 *)
16289 lt_prog_compiler_can_build_shared=no
16290 ;;
16291 esac
16292 fi
16293
16294 case $host_os in
16295 # For platforms which do not support PIC, -DPIC is meaningless:
16296 *djgpp*)
16297 lt_prog_compiler_pic=
16298 ;;
16299 *)
16300 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16301 ;;
16302 esac
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16304 $as_echo "$lt_prog_compiler_pic" >&6; }
16305
16306
16307
16308
16309
16310
16311 #
16312 # Check to make sure the PIC flag actually works.
16313 #
16314 if test -n "$lt_prog_compiler_pic"; then
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16316 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16317 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16318 $as_echo_n "(cached) " >&6
16319 else
16320 lt_cv_prog_compiler_pic_works=no
16321 ac_outfile=conftest.$ac_objext
16322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16323 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16324 # Insert the option either (1) after the last *FLAGS variable, or
16325 # (2) before a word containing "conftest.", or (3) at the end.
16326 # Note that $ac_compile itself does not contain backslashes and begins
16327 # with a dollar sign (not a hyphen), so the echo should work correctly.
16328 # The option is referenced via a variable to avoid confusing sed.
16329 lt_compile=`echo "$ac_compile" | $SED \
16330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16332 -e 's:$: $lt_compiler_flag:'`
16333 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16334 (eval "$lt_compile" 2>conftest.err)
16335 ac_status=$?
16336 cat conftest.err >&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 if (exit $ac_status) && test -s "$ac_outfile"; then
16339 # The compiler can only warn and ignore the option if not recognized
16340 # So say no if there are warnings other than the usual output.
16341 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16343 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16344 lt_cv_prog_compiler_pic_works=yes
16345 fi
16346 fi
16347 $RM conftest*
16348
16349 fi
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16351 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16352
16353 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16354 case $lt_prog_compiler_pic in
16355 "" | " "*) ;;
16356 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16357 esac
16358 else
16359 lt_prog_compiler_pic=
16360 lt_prog_compiler_can_build_shared=no
16361 fi
16362
16363 fi
16364
16365
16366
16367
16368
16369
16370 #
16371 # Check to make sure the static flag actually works.
16372 #
16373 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16375 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16376 if ${lt_cv_prog_compiler_static_works+:} false; then :
16377 $as_echo_n "(cached) " >&6
16378 else
16379 lt_cv_prog_compiler_static_works=no
16380 save_LDFLAGS="$LDFLAGS"
16381 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16382 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16383 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16384 # The linker can only warn and ignore the option if not recognized
16385 # So say no if there are warnings
16386 if test -s conftest.err; then
16387 # Append any errors to the config.log.
16388 cat conftest.err 1>&5
16389 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16391 if diff conftest.exp conftest.er2 >/dev/null; then
16392 lt_cv_prog_compiler_static_works=yes
16393 fi
16394 else
16395 lt_cv_prog_compiler_static_works=yes
16396 fi
16397 fi
16398 $RM -r conftest*
16399 LDFLAGS="$save_LDFLAGS"
16400
16401 fi
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16403 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16404
16405 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16406 :
16407 else
16408 lt_prog_compiler_static=
16409 fi
16410
16411
16412
16413
16414
16415
16416
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16418 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16419 if ${lt_cv_prog_compiler_c_o+:} false; then :
16420 $as_echo_n "(cached) " >&6
16421 else
16422 lt_cv_prog_compiler_c_o=no
16423 $RM -r conftest 2>/dev/null
16424 mkdir conftest
16425 cd conftest
16426 mkdir out
16427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16428
16429 lt_compiler_flag="-o out/conftest2.$ac_objext"
16430 # Insert the option either (1) after the last *FLAGS variable, or
16431 # (2) before a word containing "conftest.", or (3) at the end.
16432 # Note that $ac_compile itself does not contain backslashes and begins
16433 # with a dollar sign (not a hyphen), so the echo should work correctly.
16434 lt_compile=`echo "$ac_compile" | $SED \
16435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16437 -e 's:$: $lt_compiler_flag:'`
16438 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16439 (eval "$lt_compile" 2>out/conftest.err)
16440 ac_status=$?
16441 cat out/conftest.err >&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16444 then
16445 # The compiler can only warn and ignore the option if not recognized
16446 # So say no if there are warnings
16447 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16448 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16449 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16450 lt_cv_prog_compiler_c_o=yes
16451 fi
16452 fi
16453 chmod u+w . 2>&5
16454 $RM conftest*
16455 # SGI C++ compiler will create directory out/ii_files/ for
16456 # template instantiation
16457 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16458 $RM out/* && rmdir out
16459 cd ..
16460 $RM -r conftest
16461 $RM conftest*
16462
16463 fi
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16465 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16466
16467
16468
16469
16470
16471
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16473 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16474 if ${lt_cv_prog_compiler_c_o+:} false; then :
16475 $as_echo_n "(cached) " >&6
16476 else
16477 lt_cv_prog_compiler_c_o=no
16478 $RM -r conftest 2>/dev/null
16479 mkdir conftest
16480 cd conftest
16481 mkdir out
16482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16483
16484 lt_compiler_flag="-o out/conftest2.$ac_objext"
16485 # Insert the option either (1) after the last *FLAGS variable, or
16486 # (2) before a word containing "conftest.", or (3) at the end.
16487 # Note that $ac_compile itself does not contain backslashes and begins
16488 # with a dollar sign (not a hyphen), so the echo should work correctly.
16489 lt_compile=`echo "$ac_compile" | $SED \
16490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16492 -e 's:$: $lt_compiler_flag:'`
16493 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16494 (eval "$lt_compile" 2>out/conftest.err)
16495 ac_status=$?
16496 cat out/conftest.err >&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16499 then
16500 # The compiler can only warn and ignore the option if not recognized
16501 # So say no if there are warnings
16502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16503 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16504 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16505 lt_cv_prog_compiler_c_o=yes
16506 fi
16507 fi
16508 chmod u+w . 2>&5
16509 $RM conftest*
16510 # SGI C++ compiler will create directory out/ii_files/ for
16511 # template instantiation
16512 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16513 $RM out/* && rmdir out
16514 cd ..
16515 $RM -r conftest
16516 $RM conftest*
16517
16518 fi
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16520 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16521
16522
16523
16524
16525 hard_links="nottested"
16526 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16527 # do not overwrite the value of need_locks provided by the user
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16529 $as_echo_n "checking if we can lock with hard links... " >&6; }
16530 hard_links=yes
16531 $RM conftest*
16532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16533 touch conftest.a
16534 ln conftest.a conftest.b 2>&5 || hard_links=no
16535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16537 $as_echo "$hard_links" >&6; }
16538 if test "$hard_links" = no; then
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16540 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16541 need_locks=warn
16542 fi
16543 else
16544 need_locks=no
16545 fi
16546
16547
16548
16549
16550
16551
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16553 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16554
16555 runpath_var=
16556 allow_undefined_flag=
16557 always_export_symbols=no
16558 archive_cmds=
16559 archive_expsym_cmds=
16560 compiler_needs_object=no
16561 enable_shared_with_static_runtimes=no
16562 export_dynamic_flag_spec=
16563 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16564 hardcode_automatic=no
16565 hardcode_direct=no
16566 hardcode_direct_absolute=no
16567 hardcode_libdir_flag_spec=
16568 hardcode_libdir_flag_spec_ld=
16569 hardcode_libdir_separator=
16570 hardcode_minus_L=no
16571 hardcode_shlibpath_var=unsupported
16572 inherit_rpath=no
16573 link_all_deplibs=unknown
16574 module_cmds=
16575 module_expsym_cmds=
16576 old_archive_from_new_cmds=
16577 old_archive_from_expsyms_cmds=
16578 thread_safe_flag_spec=
16579 whole_archive_flag_spec=
16580 # include_expsyms should be a list of space-separated symbols to be *always*
16581 # included in the symbol list
16582 include_expsyms=
16583 # exclude_expsyms can be an extended regexp of symbols to exclude
16584 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16585 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16586 # as well as any symbol that contains `d'.
16587 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16588 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16589 # platforms (ab)use it in PIC code, but their linkers get confused if
16590 # the symbol is explicitly referenced. Since portable code cannot
16591 # rely on this symbol name, it's probably fine to never include it in
16592 # preloaded symbol tables.
16593 # Exclude shared library initialization/finalization symbols.
16594 extract_expsyms_cmds=
16595
16596 case $host_os in
16597 cygwin* | mingw* | pw32* | cegcc*)
16598 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16599 # When not using gcc, we currently assume that we are using
16600 # Microsoft Visual C++.
16601 if test "$GCC" != yes; then
16602 with_gnu_ld=no
16603 fi
16604 ;;
16605 interix*)
16606 # we just hope/assume this is gcc and not c89 (= MSVC++)
16607 with_gnu_ld=yes
16608 ;;
16609 openbsd*)
16610 with_gnu_ld=no
16611 ;;
16612 esac
16613
16614 ld_shlibs=yes
16615
16616 # On some targets, GNU ld is compatible enough with the native linker
16617 # that we're better off using the native interface for both.
16618 lt_use_gnu_ld_interface=no
16619 if test "$with_gnu_ld" = yes; then
16620 case $host_os in
16621 aix*)
16622 # The AIX port of GNU ld has always aspired to compatibility
16623 # with the native linker. However, as the warning in the GNU ld
16624 # block says, versions before 2.19.5* couldn't really create working
16625 # shared libraries, regardless of the interface used.
16626 case `$LD -v 2>&1` in
16627 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16628 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16629 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16630 *)
16631 lt_use_gnu_ld_interface=yes
16632 ;;
16633 esac
16634 ;;
16635 *)
16636 lt_use_gnu_ld_interface=yes
16637 ;;
16638 esac
16639 fi
16640
16641 if test "$lt_use_gnu_ld_interface" = yes; then
16642 # If archive_cmds runs LD, not CC, wlarc should be empty
16643 wlarc='${wl}'
16644
16645 # Set some defaults for GNU ld with shared library support. These
16646 # are reset later if shared libraries are not supported. Putting them
16647 # here allows them to be overridden if necessary.
16648 runpath_var=LD_RUN_PATH
16649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16650 export_dynamic_flag_spec='${wl}--export-dynamic'
16651 # ancient GNU ld didn't support --whole-archive et. al.
16652 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16653 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16654 else
16655 whole_archive_flag_spec=
16656 fi
16657 supports_anon_versioning=no
16658 case `$LD -v 2>&1` in
16659 *GNU\ gold*) supports_anon_versioning=yes ;;
16660 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16661 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16662 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16663 *\ 2.11.*) ;; # other 2.11 versions
16664 *) supports_anon_versioning=yes ;;
16665 esac
16666
16667 # See if GNU ld supports shared libraries.
16668 case $host_os in
16669 aix[3-9]*)
16670 # On AIX/PPC, the GNU linker is very broken
16671 if test "$host_cpu" != ia64; then
16672 ld_shlibs=no
16673 cat <<_LT_EOF 1>&2
16674
16675 *** Warning: the GNU linker, at least up to release 2.19, is reported
16676 *** to be unable to reliably create shared libraries on AIX.
16677 *** Therefore, libtool is disabling shared libraries support. If you
16678 *** really care for shared libraries, you may want to install binutils
16679 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16680 *** You will then need to restart the configuration process.
16681
16682 _LT_EOF
16683 fi
16684 ;;
16685
16686 amigaos*)
16687 case $host_cpu in
16688 powerpc)
16689 # see comment about AmigaOS4 .so support
16690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16691 archive_expsym_cmds=''
16692 ;;
16693 m68k)
16694 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)'
16695 hardcode_libdir_flag_spec='-L$libdir'
16696 hardcode_minus_L=yes
16697 ;;
16698 esac
16699 ;;
16700
16701 beos*)
16702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16703 allow_undefined_flag=unsupported
16704 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16705 # support --undefined. This deserves some investigation. FIXME
16706 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16707 else
16708 ld_shlibs=no
16709 fi
16710 ;;
16711
16712 cygwin* | mingw* | pw32* | cegcc*)
16713 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16714 # as there is no search path for DLLs.
16715 hardcode_libdir_flag_spec='-L$libdir'
16716 export_dynamic_flag_spec='${wl}--export-all-symbols'
16717 allow_undefined_flag=unsupported
16718 always_export_symbols=no
16719 enable_shared_with_static_runtimes=yes
16720 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16721
16722 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16724 # If the export-symbols file already is a .def file (1st line
16725 # is EXPORTS), use it as is; otherwise, prepend...
16726 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16727 cp $export_symbols $output_objdir/$soname.def;
16728 else
16729 echo EXPORTS > $output_objdir/$soname.def;
16730 cat $export_symbols >> $output_objdir/$soname.def;
16731 fi~
16732 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16733 else
16734 ld_shlibs=no
16735 fi
16736 ;;
16737
16738 haiku*)
16739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16740 link_all_deplibs=yes
16741 ;;
16742
16743 interix[3-9]*)
16744 hardcode_direct=no
16745 hardcode_shlibpath_var=no
16746 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16747 export_dynamic_flag_spec='${wl}-E'
16748 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16749 # Instead, shared libraries are loaded at an image base (0x10000000 by
16750 # default) and relocated if they conflict, which is a slow very memory
16751 # consuming and fragmenting process. To avoid this, we pick a random,
16752 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16753 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16754 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16755 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'
16756 ;;
16757
16758 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16759 tmp_diet=no
16760 if test "$host_os" = linux-dietlibc; then
16761 case $cc_basename in
16762 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16763 esac
16764 fi
16765 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16766 && test "$tmp_diet" = no
16767 then
16768 tmp_addflag=' $pic_flag'
16769 tmp_sharedflag='-shared'
16770 case $cc_basename,$host_cpu in
16771 pgcc*) # Portland Group C compiler
16772 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'
16773 tmp_addflag=' $pic_flag'
16774 ;;
16775 pgf77* | pgf90* | pgf95* | pgfortran*)
16776 # Portland Group f77 and f90 compilers
16777 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'
16778 tmp_addflag=' $pic_flag -Mnomain' ;;
16779 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16780 tmp_addflag=' -i_dynamic' ;;
16781 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16782 tmp_addflag=' -i_dynamic -nofor_main' ;;
16783 ifc* | ifort*) # Intel Fortran compiler
16784 tmp_addflag=' -nofor_main' ;;
16785 lf95*) # Lahey Fortran 8.1
16786 whole_archive_flag_spec=
16787 tmp_sharedflag='--shared' ;;
16788 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16789 tmp_sharedflag='-qmkshrobj'
16790 tmp_addflag= ;;
16791 nvcc*) # Cuda Compiler Driver 2.2
16792 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'
16793 compiler_needs_object=yes
16794 ;;
16795 esac
16796 case `$CC -V 2>&1 | sed 5q` in
16797 *Sun\ C*) # Sun C 5.9
16798 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'
16799 compiler_needs_object=yes
16800 tmp_sharedflag='-G' ;;
16801 *Sun\ F*) # Sun Fortran 8.3
16802 tmp_sharedflag='-G' ;;
16803 esac
16804 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16805
16806 if test "x$supports_anon_versioning" = xyes; then
16807 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16808 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16809 echo "local: *; };" >> $output_objdir/$libname.ver~
16810 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16811 fi
16812
16813 case $cc_basename in
16814 xlf* | bgf* | bgxlf* | mpixlf*)
16815 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16816 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16817 hardcode_libdir_flag_spec=
16818 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16819 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16820 if test "x$supports_anon_versioning" = xyes; then
16821 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16822 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16823 echo "local: *; };" >> $output_objdir/$libname.ver~
16824 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16825 fi
16826 ;;
16827 esac
16828 else
16829 ld_shlibs=no
16830 fi
16831 ;;
16832
16833 netbsd*)
16834 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16835 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16836 wlarc=
16837 else
16838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16839 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16840 fi
16841 ;;
16842
16843 solaris*)
16844 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16845 ld_shlibs=no
16846 cat <<_LT_EOF 1>&2
16847
16848 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16849 *** create shared libraries on Solaris systems. Therefore, libtool
16850 *** is disabling shared libraries support. We urge you to upgrade GNU
16851 *** binutils to release 2.9.1 or newer. Another option is to modify
16852 *** your PATH or compiler configuration so that the native linker is
16853 *** used, and then restart.
16854
16855 _LT_EOF
16856 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16857 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16858 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16859 else
16860 ld_shlibs=no
16861 fi
16862 ;;
16863
16864 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16865 case `$LD -v 2>&1` in
16866 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16867 ld_shlibs=no
16868 cat <<_LT_EOF 1>&2
16869
16870 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16871 *** reliably create shared libraries on SCO systems. Therefore, libtool
16872 *** is disabling shared libraries support. We urge you to upgrade GNU
16873 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16874 *** your PATH or compiler configuration so that the native linker is
16875 *** used, and then restart.
16876
16877 _LT_EOF
16878 ;;
16879 *)
16880 # For security reasons, it is highly recommended that you always
16881 # use absolute paths for naming shared libraries, and exclude the
16882 # DT_RUNPATH tag from executables and libraries. But doing so
16883 # requires that you compile everything twice, which is a pain.
16884 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16885 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16887 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16888 else
16889 ld_shlibs=no
16890 fi
16891 ;;
16892 esac
16893 ;;
16894
16895 sunos4*)
16896 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16897 wlarc=
16898 hardcode_direct=yes
16899 hardcode_shlibpath_var=no
16900 ;;
16901
16902 *)
16903 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16905 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16906 else
16907 ld_shlibs=no
16908 fi
16909 ;;
16910 esac
16911
16912 if test "$ld_shlibs" = no; then
16913 runpath_var=
16914 hardcode_libdir_flag_spec=
16915 export_dynamic_flag_spec=
16916 whole_archive_flag_spec=
16917 fi
16918 else
16919 # PORTME fill in a description of your system's linker (not GNU ld)
16920 case $host_os in
16921 aix3*)
16922 allow_undefined_flag=unsupported
16923 always_export_symbols=yes
16924 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'
16925 # Note: this linker hardcodes the directories in LIBPATH if there
16926 # are no directories specified by -L.
16927 hardcode_minus_L=yes
16928 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16929 # Neither direct hardcoding nor static linking is supported with a
16930 # broken collect2.
16931 hardcode_direct=unsupported
16932 fi
16933 ;;
16934
16935 aix[4-9]*)
16936 if test "$host_cpu" = ia64; then
16937 # On IA64, the linker does run time linking by default, so we don't
16938 # have to do anything special.
16939 aix_use_runtimelinking=no
16940 exp_sym_flag='-Bexport'
16941 no_entry_flag=""
16942 else
16943 # If we're using GNU nm, then we don't want the "-C" option.
16944 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16945 # Also, AIX nm treats weak defined symbols like other global
16946 # defined symbols, whereas GNU nm marks them as "W".
16947 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16948 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'
16949 else
16950 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'
16951 fi
16952 aix_use_runtimelinking=no
16953
16954 # Test if we are trying to use run time linking or normal
16955 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16956 # need to do runtime linking.
16957 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16958 for ld_flag in $LDFLAGS; do
16959 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16960 aix_use_runtimelinking=yes
16961 break
16962 fi
16963 done
16964 ;;
16965 esac
16966
16967 exp_sym_flag='-bexport'
16968 no_entry_flag='-bnoentry'
16969 fi
16970
16971 # When large executables or shared objects are built, AIX ld can
16972 # have problems creating the table of contents. If linking a library
16973 # or program results in "error TOC overflow" add -mminimal-toc to
16974 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16975 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16976
16977 archive_cmds=''
16978 hardcode_direct=yes
16979 hardcode_direct_absolute=yes
16980 hardcode_libdir_separator=':'
16981 link_all_deplibs=yes
16982 file_list_spec='${wl}-f,'
16983
16984 if test "$GCC" = yes; then
16985 case $host_os in aix4.[012]|aix4.[012].*)
16986 # We only want to do this on AIX 4.2 and lower, the check
16987 # below for broken collect2 doesn't work under 4.3+
16988 collect2name=`${CC} -print-prog-name=collect2`
16989 if test -f "$collect2name" &&
16990 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16991 then
16992 # We have reworked collect2
16993 :
16994 else
16995 # We have old collect2
16996 hardcode_direct=unsupported
16997 # It fails to find uninstalled libraries when the uninstalled
16998 # path is not listed in the libpath. Setting hardcode_minus_L
16999 # to unsupported forces relinking
17000 hardcode_minus_L=yes
17001 hardcode_libdir_flag_spec='-L$libdir'
17002 hardcode_libdir_separator=
17003 fi
17004 ;;
17005 esac
17006 shared_flag='-shared'
17007 if test "$aix_use_runtimelinking" = yes; then
17008 shared_flag="$shared_flag "'${wl}-G'
17009 fi
17010 else
17011 # not using gcc
17012 if test "$host_cpu" = ia64; then
17013 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17014 # chokes on -Wl,-G. The following line is correct:
17015 shared_flag='-G'
17016 else
17017 if test "$aix_use_runtimelinking" = yes; then
17018 shared_flag='${wl}-G'
17019 else
17020 shared_flag='${wl}-bM:SRE'
17021 fi
17022 fi
17023 fi
17024
17025 export_dynamic_flag_spec='${wl}-bexpall'
17026 # It seems that -bexpall does not export symbols beginning with
17027 # underscore (_), so it is better to generate a list of symbols to export.
17028 always_export_symbols=yes
17029 if test "$aix_use_runtimelinking" = yes; then
17030 # Warning - without using the other runtime loading flags (-brtl),
17031 # -berok will link without error, but may produce a broken library.
17032 allow_undefined_flag='-berok'
17033 # Determine the default libpath from the value encoded in an
17034 # empty executable.
17035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17037
17038 int
17039 main ()
17040 {
17041
17042 ;
17043 return 0;
17044 }
17045 _ACEOF
17046 if ac_fn_c_try_link "$LINENO"; then :
17047
17048 lt_aix_libpath_sed='
17049 /Import File Strings/,/^$/ {
17050 /^0/ {
17051 s/^0 *\(.*\)$/\1/
17052 p
17053 }
17054 }'
17055 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17056 # Check for a 64-bit object if we didn't find anything.
17057 if test -z "$aix_libpath"; then
17058 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17059 fi
17060 fi
17061 rm -f core conftest.err conftest.$ac_objext \
17062 conftest$ac_exeext conftest.$ac_ext
17063 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17064
17065 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17066 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"
17067 else
17068 if test "$host_cpu" = ia64; then
17069 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17070 allow_undefined_flag="-z nodefs"
17071 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"
17072 else
17073 # Determine the default libpath from the value encoded in an
17074 # empty executable.
17075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17076 /* end confdefs.h. */
17077
17078 int
17079 main ()
17080 {
17081
17082 ;
17083 return 0;
17084 }
17085 _ACEOF
17086 if ac_fn_c_try_link "$LINENO"; then :
17087
17088 lt_aix_libpath_sed='
17089 /Import File Strings/,/^$/ {
17090 /^0/ {
17091 s/^0 *\(.*\)$/\1/
17092 p
17093 }
17094 }'
17095 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17096 # Check for a 64-bit object if we didn't find anything.
17097 if test -z "$aix_libpath"; then
17098 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17099 fi
17100 fi
17101 rm -f core conftest.err conftest.$ac_objext \
17102 conftest$ac_exeext conftest.$ac_ext
17103 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17104
17105 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17106 # Warning - without using the other run time loading flags,
17107 # -berok will link without error, but may produce a broken library.
17108 no_undefined_flag=' ${wl}-bernotok'
17109 allow_undefined_flag=' ${wl}-berok'
17110 if test "$with_gnu_ld" = yes; then
17111 # We only use this code for GNU lds that support --whole-archive.
17112 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17113 else
17114 # Exported symbols can be pulled into shared objects from archives
17115 whole_archive_flag_spec='$convenience'
17116 fi
17117 archive_cmds_need_lc=yes
17118 # This is similar to how AIX traditionally builds its shared libraries.
17119 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'
17120 fi
17121 fi
17122 ;;
17123
17124 amigaos*)
17125 case $host_cpu in
17126 powerpc)
17127 # see comment about AmigaOS4 .so support
17128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17129 archive_expsym_cmds=''
17130 ;;
17131 m68k)
17132 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)'
17133 hardcode_libdir_flag_spec='-L$libdir'
17134 hardcode_minus_L=yes
17135 ;;
17136 esac
17137 ;;
17138
17139 bsdi[45]*)
17140 export_dynamic_flag_spec=-rdynamic
17141 ;;
17142
17143 cygwin* | mingw* | pw32* | cegcc*)
17144 # When not using gcc, we currently assume that we are using
17145 # Microsoft Visual C++.
17146 # hardcode_libdir_flag_spec is actually meaningless, as there is
17147 # no search path for DLLs.
17148 hardcode_libdir_flag_spec=' '
17149 allow_undefined_flag=unsupported
17150 # Tell ltmain to make .lib files, not .a files.
17151 libext=lib
17152 # Tell ltmain to make .dll files, not .so files.
17153 shrext_cmds=".dll"
17154 # FIXME: Setting linknames here is a bad hack.
17155 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17156 # The linker will automatically build a .lib file if we build a DLL.
17157 old_archive_from_new_cmds='true'
17158 # FIXME: Should let the user specify the lib program.
17159 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17160 fix_srcfile_path='`cygpath -w "$srcfile"`'
17161 enable_shared_with_static_runtimes=yes
17162 ;;
17163
17164 darwin* | rhapsody*)
17165
17166
17167 archive_cmds_need_lc=no
17168 hardcode_direct=no
17169 hardcode_automatic=yes
17170 hardcode_shlibpath_var=unsupported
17171 if test "$lt_cv_ld_force_load" = "yes"; then
17172 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\"`'
17173 else
17174 whole_archive_flag_spec=''
17175 fi
17176 link_all_deplibs=yes
17177 allow_undefined_flag="$_lt_dar_allow_undefined"
17178 case $cc_basename in
17179 ifort*) _lt_dar_can_shared=yes ;;
17180 *) _lt_dar_can_shared=$GCC ;;
17181 esac
17182 if test "$_lt_dar_can_shared" = "yes"; then
17183 output_verbose_link_cmd=func_echo_all
17184 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17185 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17186 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}"
17187 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}"
17188
17189 else
17190 ld_shlibs=no
17191 fi
17192
17193 ;;
17194
17195 dgux*)
17196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17197 hardcode_libdir_flag_spec='-L$libdir'
17198 hardcode_shlibpath_var=no
17199 ;;
17200
17201 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17202 # support. Future versions do this automatically, but an explicit c++rt0.o
17203 # does not break anything, and helps significantly (at the cost of a little
17204 # extra space).
17205 freebsd2.2*)
17206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17207 hardcode_libdir_flag_spec='-R$libdir'
17208 hardcode_direct=yes
17209 hardcode_shlibpath_var=no
17210 ;;
17211
17212 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17213 freebsd2.*)
17214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17215 hardcode_direct=yes
17216 hardcode_minus_L=yes
17217 hardcode_shlibpath_var=no
17218 ;;
17219
17220 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17221 freebsd* | dragonfly*)
17222 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17223 hardcode_libdir_flag_spec='-R$libdir'
17224 hardcode_direct=yes
17225 hardcode_shlibpath_var=no
17226 ;;
17227
17228 hpux9*)
17229 if test "$GCC" = yes; then
17230 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'
17231 else
17232 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'
17233 fi
17234 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17235 hardcode_libdir_separator=:
17236 hardcode_direct=yes
17237
17238 # hardcode_minus_L: Not really in the search PATH,
17239 # but as the default location of the library.
17240 hardcode_minus_L=yes
17241 export_dynamic_flag_spec='${wl}-E'
17242 ;;
17243
17244 hpux10*)
17245 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17246 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17247 else
17248 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17249 fi
17250 if test "$with_gnu_ld" = no; then
17251 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17252 hardcode_libdir_flag_spec_ld='+b $libdir'
17253 hardcode_libdir_separator=:
17254 hardcode_direct=yes
17255 hardcode_direct_absolute=yes
17256 export_dynamic_flag_spec='${wl}-E'
17257 # hardcode_minus_L: Not really in the search PATH,
17258 # but as the default location of the library.
17259 hardcode_minus_L=yes
17260 fi
17261 ;;
17262
17263 hpux11*)
17264 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17265 case $host_cpu in
17266 hppa*64*)
17267 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17268 ;;
17269 ia64*)
17270 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17271 ;;
17272 *)
17273 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17274 ;;
17275 esac
17276 else
17277 case $host_cpu in
17278 hppa*64*)
17279 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17280 ;;
17281 ia64*)
17282 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17283 ;;
17284 *)
17285
17286 # Older versions of the 11.00 compiler do not understand -b yet
17287 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17289 $as_echo_n "checking if $CC understands -b... " >&6; }
17290 if ${lt_cv_prog_compiler__b+:} false; then :
17291 $as_echo_n "(cached) " >&6
17292 else
17293 lt_cv_prog_compiler__b=no
17294 save_LDFLAGS="$LDFLAGS"
17295 LDFLAGS="$LDFLAGS -b"
17296 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17298 # The linker can only warn and ignore the option if not recognized
17299 # So say no if there are warnings
17300 if test -s conftest.err; then
17301 # Append any errors to the config.log.
17302 cat conftest.err 1>&5
17303 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17305 if diff conftest.exp conftest.er2 >/dev/null; then
17306 lt_cv_prog_compiler__b=yes
17307 fi
17308 else
17309 lt_cv_prog_compiler__b=yes
17310 fi
17311 fi
17312 $RM -r conftest*
17313 LDFLAGS="$save_LDFLAGS"
17314
17315 fi
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17317 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17318
17319 if test x"$lt_cv_prog_compiler__b" = xyes; then
17320 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17321 else
17322 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17323 fi
17324
17325 ;;
17326 esac
17327 fi
17328 if test "$with_gnu_ld" = no; then
17329 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17330 hardcode_libdir_separator=:
17331
17332 case $host_cpu in
17333 hppa*64*|ia64*)
17334 hardcode_direct=no
17335 hardcode_shlibpath_var=no
17336 ;;
17337 *)
17338 hardcode_direct=yes
17339 hardcode_direct_absolute=yes
17340 export_dynamic_flag_spec='${wl}-E'
17341
17342 # hardcode_minus_L: Not really in the search PATH,
17343 # but as the default location of the library.
17344 hardcode_minus_L=yes
17345 ;;
17346 esac
17347 fi
17348 ;;
17349
17350 irix5* | irix6* | nonstopux*)
17351 if test "$GCC" = yes; then
17352 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'
17353 # Try to use the -exported_symbol ld option, if it does not
17354 # work, assume that -exports_file does not work either and
17355 # implicitly export all symbols.
17356 save_LDFLAGS="$LDFLAGS"
17357 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17359 /* end confdefs.h. */
17360 int foo(void) {}
17361 _ACEOF
17362 if ac_fn_c_try_link "$LINENO"; then :
17363 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'
17364
17365 fi
17366 rm -f core conftest.err conftest.$ac_objext \
17367 conftest$ac_exeext conftest.$ac_ext
17368 LDFLAGS="$save_LDFLAGS"
17369 else
17370 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'
17371 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'
17372 fi
17373 archive_cmds_need_lc='no'
17374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17375 hardcode_libdir_separator=:
17376 inherit_rpath=yes
17377 link_all_deplibs=yes
17378 ;;
17379
17380 netbsd*)
17381 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17382 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17383 else
17384 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17385 fi
17386 hardcode_libdir_flag_spec='-R$libdir'
17387 hardcode_direct=yes
17388 hardcode_shlibpath_var=no
17389 ;;
17390
17391 newsos6)
17392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17393 hardcode_direct=yes
17394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17395 hardcode_libdir_separator=:
17396 hardcode_shlibpath_var=no
17397 ;;
17398
17399 *nto* | *qnx*)
17400 ;;
17401
17402 openbsd*)
17403 if test -f /usr/libexec/ld.so; then
17404 hardcode_direct=yes
17405 hardcode_shlibpath_var=no
17406 hardcode_direct_absolute=yes
17407 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17408 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17409 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17410 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17411 export_dynamic_flag_spec='${wl}-E'
17412 else
17413 case $host_os in
17414 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17415 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17416 hardcode_libdir_flag_spec='-R$libdir'
17417 ;;
17418 *)
17419 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17420 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17421 ;;
17422 esac
17423 fi
17424 else
17425 ld_shlibs=no
17426 fi
17427 ;;
17428
17429 os2*)
17430 hardcode_libdir_flag_spec='-L$libdir'
17431 hardcode_minus_L=yes
17432 allow_undefined_flag=unsupported
17433 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'
17434 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17435 ;;
17436
17437 osf3*)
17438 if test "$GCC" = yes; then
17439 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17440 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'
17441 else
17442 allow_undefined_flag=' -expect_unresolved \*'
17443 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'
17444 fi
17445 archive_cmds_need_lc='no'
17446 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17447 hardcode_libdir_separator=:
17448 ;;
17449
17450 osf4* | osf5*) # as osf3* with the addition of -msym flag
17451 if test "$GCC" = yes; then
17452 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17453 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'
17454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17455 else
17456 allow_undefined_flag=' -expect_unresolved \*'
17457 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'
17458 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~
17459 $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'
17460
17461 # Both c and cxx compiler support -rpath directly
17462 hardcode_libdir_flag_spec='-rpath $libdir'
17463 fi
17464 archive_cmds_need_lc='no'
17465 hardcode_libdir_separator=:
17466 ;;
17467
17468 solaris*)
17469 no_undefined_flag=' -z defs'
17470 if test "$GCC" = yes; then
17471 wlarc='${wl}'
17472 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17473 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17474 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17475 else
17476 case `$CC -V 2>&1` in
17477 *"Compilers 5.0"*)
17478 wlarc=''
17479 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17480 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17481 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17482 ;;
17483 *)
17484 wlarc='${wl}'
17485 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17486 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17487 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17488 ;;
17489 esac
17490 fi
17491 hardcode_libdir_flag_spec='-R$libdir'
17492 hardcode_shlibpath_var=no
17493 case $host_os in
17494 solaris2.[0-5] | solaris2.[0-5].*) ;;
17495 *)
17496 # The compiler driver will combine and reorder linker options,
17497 # but understands `-z linker_flag'. GCC discards it without `$wl',
17498 # but is careful enough not to reorder.
17499 # Supported since Solaris 2.6 (maybe 2.5.1?)
17500 if test "$GCC" = yes; then
17501 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17502 else
17503 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17504 fi
17505 ;;
17506 esac
17507 link_all_deplibs=yes
17508 ;;
17509
17510 sunos4*)
17511 if test "x$host_vendor" = xsequent; then
17512 # Use $CC to link under sequent, because it throws in some extra .o
17513 # files that make .init and .fini sections work.
17514 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17515 else
17516 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17517 fi
17518 hardcode_libdir_flag_spec='-L$libdir'
17519 hardcode_direct=yes
17520 hardcode_minus_L=yes
17521 hardcode_shlibpath_var=no
17522 ;;
17523
17524 sysv4)
17525 case $host_vendor in
17526 sni)
17527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17528 hardcode_direct=yes # is this really true???
17529 ;;
17530 siemens)
17531 ## LD is ld it makes a PLAMLIB
17532 ## CC just makes a GrossModule.
17533 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17534 reload_cmds='$CC -r -o $output$reload_objs'
17535 hardcode_direct=no
17536 ;;
17537 motorola)
17538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17539 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17540 ;;
17541 esac
17542 runpath_var='LD_RUN_PATH'
17543 hardcode_shlibpath_var=no
17544 ;;
17545
17546 sysv4.3*)
17547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17548 hardcode_shlibpath_var=no
17549 export_dynamic_flag_spec='-Bexport'
17550 ;;
17551
17552 sysv4*MP*)
17553 if test -d /usr/nec; then
17554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17555 hardcode_shlibpath_var=no
17556 runpath_var=LD_RUN_PATH
17557 hardcode_runpath_var=yes
17558 ld_shlibs=yes
17559 fi
17560 ;;
17561
17562 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17563 no_undefined_flag='${wl}-z,text'
17564 archive_cmds_need_lc=no
17565 hardcode_shlibpath_var=no
17566 runpath_var='LD_RUN_PATH'
17567
17568 if test "$GCC" = yes; then
17569 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17570 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17571 else
17572 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17573 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17574 fi
17575 ;;
17576
17577 sysv5* | sco3.2v5* | sco5v6*)
17578 # Note: We can NOT use -z defs as we might desire, because we do not
17579 # link with -lc, and that would cause any symbols used from libc to
17580 # always be unresolved, which means just about no library would
17581 # ever link correctly. If we're not using GNU ld we use -z text
17582 # though, which does catch some bad symbols but isn't as heavy-handed
17583 # as -z defs.
17584 no_undefined_flag='${wl}-z,text'
17585 allow_undefined_flag='${wl}-z,nodefs'
17586 archive_cmds_need_lc=no
17587 hardcode_shlibpath_var=no
17588 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17589 hardcode_libdir_separator=':'
17590 link_all_deplibs=yes
17591 export_dynamic_flag_spec='${wl}-Bexport'
17592 runpath_var='LD_RUN_PATH'
17593
17594 if test "$GCC" = yes; then
17595 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17596 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17597 else
17598 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17599 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17600 fi
17601 ;;
17602
17603 uts4*)
17604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17605 hardcode_libdir_flag_spec='-L$libdir'
17606 hardcode_shlibpath_var=no
17607 ;;
17608
17609 *)
17610 ld_shlibs=no
17611 ;;
17612 esac
17613
17614 if test x$host_vendor = xsni; then
17615 case $host in
17616 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17617 export_dynamic_flag_spec='${wl}-Blargedynsym'
17618 ;;
17619 esac
17620 fi
17621 fi
17622
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17624 $as_echo "$ld_shlibs" >&6; }
17625 test "$ld_shlibs" = no && can_build_shared=no
17626
17627 with_gnu_ld=$with_gnu_ld
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643 #
17644 # Do we need to explicitly link libc?
17645 #
17646 case "x$archive_cmds_need_lc" in
17647 x|xyes)
17648 # Assume -lc should be added
17649 archive_cmds_need_lc=yes
17650
17651 if test "$enable_shared" = yes && test "$GCC" = yes; then
17652 case $archive_cmds in
17653 *'~'*)
17654 # FIXME: we may have to deal with multi-command sequences.
17655 ;;
17656 '$CC '*)
17657 # Test whether the compiler implicitly links with -lc since on some
17658 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17659 # to ld, don't add -lc before -lgcc.
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17661 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17662 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17663 $as_echo_n "(cached) " >&6
17664 else
17665 $RM conftest*
17666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17667
17668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17669 (eval $ac_compile) 2>&5
17670 ac_status=$?
17671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17672 test $ac_status = 0; } 2>conftest.err; then
17673 soname=conftest
17674 lib=conftest
17675 libobjs=conftest.$ac_objext
17676 deplibs=
17677 wl=$lt_prog_compiler_wl
17678 pic_flag=$lt_prog_compiler_pic
17679 compiler_flags=-v
17680 linker_flags=-v
17681 verstring=
17682 output_objdir=.
17683 libname=conftest
17684 lt_save_allow_undefined_flag=$allow_undefined_flag
17685 allow_undefined_flag=
17686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17687 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17688 ac_status=$?
17689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17690 test $ac_status = 0; }
17691 then
17692 lt_cv_archive_cmds_need_lc=no
17693 else
17694 lt_cv_archive_cmds_need_lc=yes
17695 fi
17696 allow_undefined_flag=$lt_save_allow_undefined_flag
17697 else
17698 cat conftest.err 1>&5
17699 fi
17700 $RM conftest*
17701
17702 fi
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17704 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17705 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17706 ;;
17707 esac
17708 fi
17709 ;;
17710 esac
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17869 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17870
17871 if test "$GCC" = yes; then
17872 case $host_os in
17873 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17874 *) lt_awk_arg="/^libraries:/" ;;
17875 esac
17876 case $host_os in
17877 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17878 *) lt_sed_strip_eq="s,=/,/,g" ;;
17879 esac
17880 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17881 case $lt_search_path_spec in
17882 *\;*)
17883 # if the path contains ";" then we assume it to be the separator
17884 # otherwise default to the standard path separator (i.e. ":") - it is
17885 # assumed that no part of a normal pathname contains ";" but that should
17886 # okay in the real world where ";" in dirpaths is itself problematic.
17887 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17888 ;;
17889 *)
17890 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17891 ;;
17892 esac
17893 # Ok, now we have the path, separated by spaces, we can step through it
17894 # and add multilib dir if necessary.
17895 lt_tmp_lt_search_path_spec=
17896 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17897 for lt_sys_path in $lt_search_path_spec; do
17898 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17899 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17900 else
17901 test -d "$lt_sys_path" && \
17902 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17903 fi
17904 done
17905 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17906 BEGIN {RS=" "; FS="/|\n";} {
17907 lt_foo="";
17908 lt_count=0;
17909 for (lt_i = NF; lt_i > 0; lt_i--) {
17910 if ($lt_i != "" && $lt_i != ".") {
17911 if ($lt_i == "..") {
17912 lt_count++;
17913 } else {
17914 if (lt_count == 0) {
17915 lt_foo="/" $lt_i lt_foo;
17916 } else {
17917 lt_count--;
17918 }
17919 }
17920 }
17921 }
17922 if (lt_foo != "") { lt_freq[lt_foo]++; }
17923 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17924 }'`
17925 # AWK program above erroneously prepends '/' to C:/dos/paths
17926 # for these hosts.
17927 case $host_os in
17928 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17929 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17930 esac
17931 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17932 else
17933 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17934 fi
17935 library_names_spec=
17936 libname_spec='lib$name'
17937 soname_spec=
17938 shrext_cmds=".so"
17939 postinstall_cmds=
17940 postuninstall_cmds=
17941 finish_cmds=
17942 finish_eval=
17943 shlibpath_var=
17944 shlibpath_overrides_runpath=unknown
17945 version_type=none
17946 dynamic_linker="$host_os ld.so"
17947 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17948 need_lib_prefix=unknown
17949 hardcode_into_libs=no
17950
17951 # when you set need_version to no, make sure it does not cause -set_version
17952 # flags to be left without arguments
17953 need_version=unknown
17954
17955 case $host_os in
17956 aix3*)
17957 version_type=linux
17958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17959 shlibpath_var=LIBPATH
17960
17961 # AIX 3 has no versioning support, so we append a major version to the name.
17962 soname_spec='${libname}${release}${shared_ext}$major'
17963 ;;
17964
17965 aix[4-9]*)
17966 version_type=linux
17967 need_lib_prefix=no
17968 need_version=no
17969 hardcode_into_libs=yes
17970 if test "$host_cpu" = ia64; then
17971 # AIX 5 supports IA64
17972 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17973 shlibpath_var=LD_LIBRARY_PATH
17974 else
17975 # With GCC up to 2.95.x, collect2 would create an import file
17976 # for dependence libraries. The import file would start with
17977 # the line `#! .'. This would cause the generated library to
17978 # depend on `.', always an invalid library. This was fixed in
17979 # development snapshots of GCC prior to 3.0.
17980 case $host_os in
17981 aix4 | aix4.[01] | aix4.[01].*)
17982 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17983 echo ' yes '
17984 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17985 :
17986 else
17987 can_build_shared=no
17988 fi
17989 ;;
17990 esac
17991 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17992 # soname into executable. Probably we can add versioning support to
17993 # collect2, so additional links can be useful in future.
17994 if test "$aix_use_runtimelinking" = yes; then
17995 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17996 # instead of lib<name>.a to let people know that these are not
17997 # typical AIX shared libraries.
17998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17999 else
18000 # We preserve .a as extension for shared libraries through AIX4.2
18001 # and later when we are not doing run time linking.
18002 library_names_spec='${libname}${release}.a $libname.a'
18003 soname_spec='${libname}${release}${shared_ext}$major'
18004 fi
18005 shlibpath_var=LIBPATH
18006 fi
18007 ;;
18008
18009 amigaos*)
18010 case $host_cpu in
18011 powerpc)
18012 # Since July 2007 AmigaOS4 officially supports .so libraries.
18013 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18015 ;;
18016 m68k)
18017 library_names_spec='$libname.ixlibrary $libname.a'
18018 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18019 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'
18020 ;;
18021 esac
18022 ;;
18023
18024 beos*)
18025 library_names_spec='${libname}${shared_ext}'
18026 dynamic_linker="$host_os ld.so"
18027 shlibpath_var=LIBRARY_PATH
18028 ;;
18029
18030 bsdi[45]*)
18031 version_type=linux
18032 need_version=no
18033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18034 soname_spec='${libname}${release}${shared_ext}$major'
18035 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18036 shlibpath_var=LD_LIBRARY_PATH
18037 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18038 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18039 # the default ld.so.conf also contains /usr/contrib/lib and
18040 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18041 # libtool to hard-code these into programs
18042 ;;
18043
18044 cygwin* | mingw* | pw32* | cegcc*)
18045 version_type=windows
18046 shrext_cmds=".dll"
18047 need_version=no
18048 need_lib_prefix=no
18049
18050 case $GCC,$host_os in
18051 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18052 library_names_spec='$libname.dll.a'
18053 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18054 postinstall_cmds='base_file=`basename \${file}`~
18055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18056 dldir=$destdir/`dirname \$dlpath`~
18057 test -d \$dldir || mkdir -p \$dldir~
18058 $install_prog $dir/$dlname \$dldir/$dlname~
18059 chmod a+x \$dldir/$dlname~
18060 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18061 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18062 fi'
18063 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18064 dlpath=$dir/\$dldll~
18065 $RM \$dlpath'
18066 shlibpath_overrides_runpath=yes
18067
18068 case $host_os in
18069 cygwin*)
18070 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18071 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18072
18073 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18074 ;;
18075 mingw* | cegcc*)
18076 # MinGW DLLs use traditional 'lib' prefix
18077 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18078 ;;
18079 pw32*)
18080 # pw32 DLLs use 'pw' prefix rather than 'lib'
18081 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18082 ;;
18083 esac
18084 ;;
18085
18086 *)
18087 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18088 ;;
18089 esac
18090 dynamic_linker='Win32 ld.exe'
18091 # FIXME: first we should search . and the directory the executable is in
18092 shlibpath_var=PATH
18093 ;;
18094
18095 darwin* | rhapsody*)
18096 dynamic_linker="$host_os dyld"
18097 version_type=darwin
18098 need_lib_prefix=no
18099 need_version=no
18100 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18101 soname_spec='${libname}${release}${major}$shared_ext'
18102 shlibpath_overrides_runpath=yes
18103 shlibpath_var=DYLD_LIBRARY_PATH
18104 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18105
18106 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18107 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18108 ;;
18109
18110 dgux*)
18111 version_type=linux
18112 need_lib_prefix=no
18113 need_version=no
18114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18115 soname_spec='${libname}${release}${shared_ext}$major'
18116 shlibpath_var=LD_LIBRARY_PATH
18117 ;;
18118
18119 freebsd* | dragonfly*)
18120 # DragonFly does not have aout. When/if they implement a new
18121 # versioning mechanism, adjust this.
18122 if test -x /usr/bin/objformat; then
18123 objformat=`/usr/bin/objformat`
18124 else
18125 case $host_os in
18126 freebsd[23].*) objformat=aout ;;
18127 *) objformat=elf ;;
18128 esac
18129 fi
18130 version_type=freebsd-$objformat
18131 case $version_type in
18132 freebsd-elf*)
18133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18134 need_version=no
18135 need_lib_prefix=no
18136 ;;
18137 freebsd-*)
18138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18139 need_version=yes
18140 ;;
18141 esac
18142 shlibpath_var=LD_LIBRARY_PATH
18143 case $host_os in
18144 freebsd2.*)
18145 shlibpath_overrides_runpath=yes
18146 ;;
18147 freebsd3.[01]* | freebsdelf3.[01]*)
18148 shlibpath_overrides_runpath=yes
18149 hardcode_into_libs=yes
18150 ;;
18151 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18152 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18153 shlibpath_overrides_runpath=no
18154 hardcode_into_libs=yes
18155 ;;
18156 *) # from 4.6 on, and DragonFly
18157 shlibpath_overrides_runpath=yes
18158 hardcode_into_libs=yes
18159 ;;
18160 esac
18161 ;;
18162
18163 gnu*)
18164 version_type=linux
18165 need_lib_prefix=no
18166 need_version=no
18167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18168 soname_spec='${libname}${release}${shared_ext}$major'
18169 shlibpath_var=LD_LIBRARY_PATH
18170 hardcode_into_libs=yes
18171 ;;
18172
18173 haiku*)
18174 version_type=linux
18175 need_lib_prefix=no
18176 need_version=no
18177 dynamic_linker="$host_os runtime_loader"
18178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18179 soname_spec='${libname}${release}${shared_ext}$major'
18180 shlibpath_var=LIBRARY_PATH
18181 shlibpath_overrides_runpath=yes
18182 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18183 hardcode_into_libs=yes
18184 ;;
18185
18186 hpux9* | hpux10* | hpux11*)
18187 # Give a soname corresponding to the major version so that dld.sl refuses to
18188 # link against other versions.
18189 version_type=sunos
18190 need_lib_prefix=no
18191 need_version=no
18192 case $host_cpu in
18193 ia64*)
18194 shrext_cmds='.so'
18195 hardcode_into_libs=yes
18196 dynamic_linker="$host_os dld.so"
18197 shlibpath_var=LD_LIBRARY_PATH
18198 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18200 soname_spec='${libname}${release}${shared_ext}$major'
18201 if test "X$HPUX_IA64_MODE" = X32; then
18202 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18203 else
18204 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18205 fi
18206 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18207 ;;
18208 hppa*64*)
18209 shrext_cmds='.sl'
18210 hardcode_into_libs=yes
18211 dynamic_linker="$host_os dld.sl"
18212 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18213 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18215 soname_spec='${libname}${release}${shared_ext}$major'
18216 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18217 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18218 ;;
18219 *)
18220 shrext_cmds='.sl'
18221 dynamic_linker="$host_os dld.sl"
18222 shlibpath_var=SHLIB_PATH
18223 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18225 soname_spec='${libname}${release}${shared_ext}$major'
18226 ;;
18227 esac
18228 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18229 postinstall_cmds='chmod 555 $lib'
18230 # or fails outright, so override atomically:
18231 install_override_mode=555
18232 ;;
18233
18234 interix[3-9]*)
18235 version_type=linux
18236 need_lib_prefix=no
18237 need_version=no
18238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18239 soname_spec='${libname}${release}${shared_ext}$major'
18240 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18241 shlibpath_var=LD_LIBRARY_PATH
18242 shlibpath_overrides_runpath=no
18243 hardcode_into_libs=yes
18244 ;;
18245
18246 irix5* | irix6* | nonstopux*)
18247 case $host_os in
18248 nonstopux*) version_type=nonstopux ;;
18249 *)
18250 if test "$lt_cv_prog_gnu_ld" = yes; then
18251 version_type=linux
18252 else
18253 version_type=irix
18254 fi ;;
18255 esac
18256 need_lib_prefix=no
18257 need_version=no
18258 soname_spec='${libname}${release}${shared_ext}$major'
18259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18260 case $host_os in
18261 irix5* | nonstopux*)
18262 libsuff= shlibsuff=
18263 ;;
18264 *)
18265 case $LD in # libtool.m4 will add one of these switches to LD
18266 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18267 libsuff= shlibsuff= libmagic=32-bit;;
18268 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18269 libsuff=32 shlibsuff=N32 libmagic=N32;;
18270 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18271 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18272 *) libsuff= shlibsuff= libmagic=never-match;;
18273 esac
18274 ;;
18275 esac
18276 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18277 shlibpath_overrides_runpath=no
18278 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18279 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18280 hardcode_into_libs=yes
18281 ;;
18282
18283 # No shared lib support for Linux oldld, aout, or coff.
18284 linux*oldld* | linux*aout* | linux*coff*)
18285 dynamic_linker=no
18286 ;;
18287
18288 # This must be Linux ELF.
18289
18290 # uclinux* changes (here and below) have been submitted to the libtool
18291 # project, but have not yet been accepted: they are GCC-local changes
18292 # for the time being. (See
18293 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18294 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
18295 version_type=linux
18296 need_lib_prefix=no
18297 need_version=no
18298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18299 soname_spec='${libname}${release}${shared_ext}$major'
18300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18301 shlibpath_var=LD_LIBRARY_PATH
18302 shlibpath_overrides_runpath=no
18303
18304 # Some binutils ld are patched to set DT_RUNPATH
18305 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18306 $as_echo_n "(cached) " >&6
18307 else
18308 lt_cv_shlibpath_overrides_runpath=no
18309 save_LDFLAGS=$LDFLAGS
18310 save_libdir=$libdir
18311 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18312 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18314 /* end confdefs.h. */
18315
18316 int
18317 main ()
18318 {
18319
18320 ;
18321 return 0;
18322 }
18323 _ACEOF
18324 if ac_fn_c_try_link "$LINENO"; then :
18325 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18326 lt_cv_shlibpath_overrides_runpath=yes
18327 fi
18328 fi
18329 rm -f core conftest.err conftest.$ac_objext \
18330 conftest$ac_exeext conftest.$ac_ext
18331 LDFLAGS=$save_LDFLAGS
18332 libdir=$save_libdir
18333
18334 fi
18335
18336 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18337
18338 # This implies no fast_install, which is unacceptable.
18339 # Some rework will be needed to allow for fast_install
18340 # before this can be enabled.
18341 hardcode_into_libs=yes
18342
18343 # Append ld.so.conf contents to the search path
18344 if test -f /etc/ld.so.conf; then
18345 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' ' '`
18346 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18347 fi
18348
18349 # We used to test for /lib/ld.so.1 and disable shared libraries on
18350 # powerpc, because MkLinux only supported shared libraries with the
18351 # GNU dynamic linker. Since this was broken with cross compilers,
18352 # most powerpc-linux boxes support dynamic linking these days and
18353 # people can always --disable-shared, the test was removed, and we
18354 # assume the GNU/Linux dynamic linker is in use.
18355 dynamic_linker='GNU/Linux ld.so'
18356 ;;
18357
18358 netbsd*)
18359 version_type=sunos
18360 need_lib_prefix=no
18361 need_version=no
18362 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18365 dynamic_linker='NetBSD (a.out) ld.so'
18366 else
18367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18368 soname_spec='${libname}${release}${shared_ext}$major'
18369 dynamic_linker='NetBSD ld.elf_so'
18370 fi
18371 shlibpath_var=LD_LIBRARY_PATH
18372 shlibpath_overrides_runpath=yes
18373 hardcode_into_libs=yes
18374 ;;
18375
18376 newsos6)
18377 version_type=linux
18378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18379 shlibpath_var=LD_LIBRARY_PATH
18380 shlibpath_overrides_runpath=yes
18381 ;;
18382
18383 *nto* | *qnx*)
18384 version_type=qnx
18385 need_lib_prefix=no
18386 need_version=no
18387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18388 soname_spec='${libname}${release}${shared_ext}$major'
18389 shlibpath_var=LD_LIBRARY_PATH
18390 shlibpath_overrides_runpath=no
18391 hardcode_into_libs=yes
18392 dynamic_linker='ldqnx.so'
18393 ;;
18394
18395 openbsd*)
18396 version_type=sunos
18397 sys_lib_dlsearch_path_spec="/usr/lib"
18398 need_lib_prefix=no
18399 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18400 case $host_os in
18401 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18402 *) need_version=no ;;
18403 esac
18404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18406 shlibpath_var=LD_LIBRARY_PATH
18407 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18408 case $host_os in
18409 openbsd2.[89] | openbsd2.[89].*)
18410 shlibpath_overrides_runpath=no
18411 ;;
18412 *)
18413 shlibpath_overrides_runpath=yes
18414 ;;
18415 esac
18416 else
18417 shlibpath_overrides_runpath=yes
18418 fi
18419 ;;
18420
18421 os2*)
18422 libname_spec='$name'
18423 shrext_cmds=".dll"
18424 need_lib_prefix=no
18425 library_names_spec='$libname${shared_ext} $libname.a'
18426 dynamic_linker='OS/2 ld.exe'
18427 shlibpath_var=LIBPATH
18428 ;;
18429
18430 osf3* | osf4* | osf5*)
18431 version_type=osf
18432 need_lib_prefix=no
18433 need_version=no
18434 soname_spec='${libname}${release}${shared_ext}$major'
18435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18436 shlibpath_var=LD_LIBRARY_PATH
18437 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18438 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18439 ;;
18440
18441 rdos*)
18442 dynamic_linker=no
18443 ;;
18444
18445 solaris*)
18446 version_type=linux
18447 need_lib_prefix=no
18448 need_version=no
18449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18450 soname_spec='${libname}${release}${shared_ext}$major'
18451 shlibpath_var=LD_LIBRARY_PATH
18452 shlibpath_overrides_runpath=yes
18453 hardcode_into_libs=yes
18454 # ldd complains unless libraries are executable
18455 postinstall_cmds='chmod +x $lib'
18456 ;;
18457
18458 sunos4*)
18459 version_type=sunos
18460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18461 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18462 shlibpath_var=LD_LIBRARY_PATH
18463 shlibpath_overrides_runpath=yes
18464 if test "$with_gnu_ld" = yes; then
18465 need_lib_prefix=no
18466 fi
18467 need_version=yes
18468 ;;
18469
18470 sysv4 | sysv4.3*)
18471 version_type=linux
18472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18473 soname_spec='${libname}${release}${shared_ext}$major'
18474 shlibpath_var=LD_LIBRARY_PATH
18475 case $host_vendor in
18476 sni)
18477 shlibpath_overrides_runpath=no
18478 need_lib_prefix=no
18479 runpath_var=LD_RUN_PATH
18480 ;;
18481 siemens)
18482 need_lib_prefix=no
18483 ;;
18484 motorola)
18485 need_lib_prefix=no
18486 need_version=no
18487 shlibpath_overrides_runpath=no
18488 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18489 ;;
18490 esac
18491 ;;
18492
18493 sysv4*MP*)
18494 if test -d /usr/nec ;then
18495 version_type=linux
18496 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18497 soname_spec='$libname${shared_ext}.$major'
18498 shlibpath_var=LD_LIBRARY_PATH
18499 fi
18500 ;;
18501
18502 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18503 version_type=freebsd-elf
18504 need_lib_prefix=no
18505 need_version=no
18506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18507 soname_spec='${libname}${release}${shared_ext}$major'
18508 shlibpath_var=LD_LIBRARY_PATH
18509 shlibpath_overrides_runpath=yes
18510 hardcode_into_libs=yes
18511 if test "$with_gnu_ld" = yes; then
18512 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18513 else
18514 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18515 case $host_os in
18516 sco3.2v5*)
18517 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18518 ;;
18519 esac
18520 fi
18521 sys_lib_dlsearch_path_spec='/usr/lib'
18522 ;;
18523
18524 tpf*)
18525 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18526 version_type=linux
18527 need_lib_prefix=no
18528 need_version=no
18529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18530 shlibpath_var=LD_LIBRARY_PATH
18531 shlibpath_overrides_runpath=no
18532 hardcode_into_libs=yes
18533 ;;
18534
18535 uts4*)
18536 version_type=linux
18537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18538 soname_spec='${libname}${release}${shared_ext}$major'
18539 shlibpath_var=LD_LIBRARY_PATH
18540 ;;
18541
18542 *)
18543 dynamic_linker=no
18544 ;;
18545 esac
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18547 $as_echo "$dynamic_linker" >&6; }
18548 test "$dynamic_linker" = no && can_build_shared=no
18549
18550 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18551 if test "$GCC" = yes; then
18552 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18553 fi
18554
18555 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18556 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18557 fi
18558 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18559 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18560 fi
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18654 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18655 hardcode_action=
18656 if test -n "$hardcode_libdir_flag_spec" ||
18657 test -n "$runpath_var" ||
18658 test "X$hardcode_automatic" = "Xyes" ; then
18659
18660 # We can hardcode non-existent directories.
18661 if test "$hardcode_direct" != no &&
18662 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18663 # have to relink, otherwise we might link with an installed library
18664 # when we should be linking with a yet-to-be-installed one
18665 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18666 test "$hardcode_minus_L" != no; then
18667 # Linking always hardcodes the temporary library directory.
18668 hardcode_action=relink
18669 else
18670 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18671 hardcode_action=immediate
18672 fi
18673 else
18674 # We cannot hardcode anything, or else we can only hardcode existing
18675 # directories.
18676 hardcode_action=unsupported
18677 fi
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18679 $as_echo "$hardcode_action" >&6; }
18680
18681 if test "$hardcode_action" = relink ||
18682 test "$inherit_rpath" = yes; then
18683 # Fast installation is not supported
18684 enable_fast_install=no
18685 elif test "$shlibpath_overrides_runpath" = yes ||
18686 test "$enable_shared" = no; then
18687 # Fast installation is not necessary
18688 enable_fast_install=needless
18689 fi
18690
18691
18692
18693
18694
18695
18696 if test "x$enable_dlopen" != xyes; then
18697 enable_dlopen=unknown
18698 enable_dlopen_self=unknown
18699 enable_dlopen_self_static=unknown
18700 else
18701 lt_cv_dlopen=no
18702 lt_cv_dlopen_libs=
18703
18704 case $host_os in
18705 beos*)
18706 lt_cv_dlopen="load_add_on"
18707 lt_cv_dlopen_libs=
18708 lt_cv_dlopen_self=yes
18709 ;;
18710
18711 mingw* | pw32* | cegcc*)
18712 lt_cv_dlopen="LoadLibrary"
18713 lt_cv_dlopen_libs=
18714 ;;
18715
18716 cygwin*)
18717 lt_cv_dlopen="dlopen"
18718 lt_cv_dlopen_libs=
18719 ;;
18720
18721 darwin*)
18722 # if libdl is installed we need to link against it
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18724 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18725 if ${ac_cv_lib_dl_dlopen+:} false; then :
18726 $as_echo_n "(cached) " >&6
18727 else
18728 ac_check_lib_save_LIBS=$LIBS
18729 LIBS="-ldl $LIBS"
18730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18731 /* end confdefs.h. */
18732
18733 /* Override any GCC internal prototype to avoid an error.
18734 Use char because int might match the return type of a GCC
18735 builtin and then its argument prototype would still apply. */
18736 #ifdef __cplusplus
18737 extern "C"
18738 #endif
18739 char dlopen ();
18740 int
18741 main ()
18742 {
18743 return dlopen ();
18744 ;
18745 return 0;
18746 }
18747 _ACEOF
18748 if ac_fn_c_try_link "$LINENO"; then :
18749 ac_cv_lib_dl_dlopen=yes
18750 else
18751 ac_cv_lib_dl_dlopen=no
18752 fi
18753 rm -f core conftest.err conftest.$ac_objext \
18754 conftest$ac_exeext conftest.$ac_ext
18755 LIBS=$ac_check_lib_save_LIBS
18756 fi
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18758 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18759 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18760 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18761 else
18762
18763 lt_cv_dlopen="dyld"
18764 lt_cv_dlopen_libs=
18765 lt_cv_dlopen_self=yes
18766
18767 fi
18768
18769 ;;
18770
18771 *)
18772 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18773 if test "x$ac_cv_func_shl_load" = xyes; then :
18774 lt_cv_dlopen="shl_load"
18775 else
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18777 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18778 if ${ac_cv_lib_dld_shl_load+:} false; then :
18779 $as_echo_n "(cached) " >&6
18780 else
18781 ac_check_lib_save_LIBS=$LIBS
18782 LIBS="-ldld $LIBS"
18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h. */
18785
18786 /* Override any GCC internal prototype to avoid an error.
18787 Use char because int might match the return type of a GCC
18788 builtin and then its argument prototype would still apply. */
18789 #ifdef __cplusplus
18790 extern "C"
18791 #endif
18792 char shl_load ();
18793 int
18794 main ()
18795 {
18796 return shl_load ();
18797 ;
18798 return 0;
18799 }
18800 _ACEOF
18801 if ac_fn_c_try_link "$LINENO"; then :
18802 ac_cv_lib_dld_shl_load=yes
18803 else
18804 ac_cv_lib_dld_shl_load=no
18805 fi
18806 rm -f core conftest.err conftest.$ac_objext \
18807 conftest$ac_exeext conftest.$ac_ext
18808 LIBS=$ac_check_lib_save_LIBS
18809 fi
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18811 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18812 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18813 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18814 else
18815 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18816 if test "x$ac_cv_func_dlopen" = xyes; then :
18817 lt_cv_dlopen="dlopen"
18818 else
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18820 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18821 if ${ac_cv_lib_dl_dlopen+:} false; then :
18822 $as_echo_n "(cached) " >&6
18823 else
18824 ac_check_lib_save_LIBS=$LIBS
18825 LIBS="-ldl $LIBS"
18826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18827 /* end confdefs.h. */
18828
18829 /* Override any GCC internal prototype to avoid an error.
18830 Use char because int might match the return type of a GCC
18831 builtin and then its argument prototype would still apply. */
18832 #ifdef __cplusplus
18833 extern "C"
18834 #endif
18835 char dlopen ();
18836 int
18837 main ()
18838 {
18839 return dlopen ();
18840 ;
18841 return 0;
18842 }
18843 _ACEOF
18844 if ac_fn_c_try_link "$LINENO"; then :
18845 ac_cv_lib_dl_dlopen=yes
18846 else
18847 ac_cv_lib_dl_dlopen=no
18848 fi
18849 rm -f core conftest.err conftest.$ac_objext \
18850 conftest$ac_exeext conftest.$ac_ext
18851 LIBS=$ac_check_lib_save_LIBS
18852 fi
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18854 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18855 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18857 else
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18859 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18860 if ${ac_cv_lib_svld_dlopen+:} false; then :
18861 $as_echo_n "(cached) " >&6
18862 else
18863 ac_check_lib_save_LIBS=$LIBS
18864 LIBS="-lsvld $LIBS"
18865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18866 /* end confdefs.h. */
18867
18868 /* Override any GCC internal prototype to avoid an error.
18869 Use char because int might match the return type of a GCC
18870 builtin and then its argument prototype would still apply. */
18871 #ifdef __cplusplus
18872 extern "C"
18873 #endif
18874 char dlopen ();
18875 int
18876 main ()
18877 {
18878 return dlopen ();
18879 ;
18880 return 0;
18881 }
18882 _ACEOF
18883 if ac_fn_c_try_link "$LINENO"; then :
18884 ac_cv_lib_svld_dlopen=yes
18885 else
18886 ac_cv_lib_svld_dlopen=no
18887 fi
18888 rm -f core conftest.err conftest.$ac_objext \
18889 conftest$ac_exeext conftest.$ac_ext
18890 LIBS=$ac_check_lib_save_LIBS
18891 fi
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18893 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18894 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18896 else
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18898 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18899 if ${ac_cv_lib_dld_dld_link+:} false; then :
18900 $as_echo_n "(cached) " >&6
18901 else
18902 ac_check_lib_save_LIBS=$LIBS
18903 LIBS="-ldld $LIBS"
18904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18905 /* end confdefs.h. */
18906
18907 /* Override any GCC internal prototype to avoid an error.
18908 Use char because int might match the return type of a GCC
18909 builtin and then its argument prototype would still apply. */
18910 #ifdef __cplusplus
18911 extern "C"
18912 #endif
18913 char dld_link ();
18914 int
18915 main ()
18916 {
18917 return dld_link ();
18918 ;
18919 return 0;
18920 }
18921 _ACEOF
18922 if ac_fn_c_try_link "$LINENO"; then :
18923 ac_cv_lib_dld_dld_link=yes
18924 else
18925 ac_cv_lib_dld_dld_link=no
18926 fi
18927 rm -f core conftest.err conftest.$ac_objext \
18928 conftest$ac_exeext conftest.$ac_ext
18929 LIBS=$ac_check_lib_save_LIBS
18930 fi
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18932 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18933 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18934 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18935 fi
18936
18937
18938 fi
18939
18940
18941 fi
18942
18943
18944 fi
18945
18946
18947 fi
18948
18949
18950 fi
18951
18952 ;;
18953 esac
18954
18955 if test "x$lt_cv_dlopen" != xno; then
18956 enable_dlopen=yes
18957 else
18958 enable_dlopen=no
18959 fi
18960
18961 case $lt_cv_dlopen in
18962 dlopen)
18963 save_CPPFLAGS="$CPPFLAGS"
18964 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18965
18966 save_LDFLAGS="$LDFLAGS"
18967 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18968
18969 save_LIBS="$LIBS"
18970 LIBS="$lt_cv_dlopen_libs $LIBS"
18971
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18973 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18974 if ${lt_cv_dlopen_self+:} false; then :
18975 $as_echo_n "(cached) " >&6
18976 else
18977 if test "$cross_compiling" = yes; then :
18978 lt_cv_dlopen_self=cross
18979 else
18980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18981 lt_status=$lt_dlunknown
18982 cat > conftest.$ac_ext <<_LT_EOF
18983 #line 18983 "configure"
18984 #include "confdefs.h"
18985
18986 #if HAVE_DLFCN_H
18987 #include <dlfcn.h>
18988 #endif
18989
18990 #include <stdio.h>
18991
18992 #ifdef RTLD_GLOBAL
18993 # define LT_DLGLOBAL RTLD_GLOBAL
18994 #else
18995 # ifdef DL_GLOBAL
18996 # define LT_DLGLOBAL DL_GLOBAL
18997 # else
18998 # define LT_DLGLOBAL 0
18999 # endif
19000 #endif
19001
19002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19003 find out it does not work in some platform. */
19004 #ifndef LT_DLLAZY_OR_NOW
19005 # ifdef RTLD_LAZY
19006 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19007 # else
19008 # ifdef DL_LAZY
19009 # define LT_DLLAZY_OR_NOW DL_LAZY
19010 # else
19011 # ifdef RTLD_NOW
19012 # define LT_DLLAZY_OR_NOW RTLD_NOW
19013 # else
19014 # ifdef DL_NOW
19015 # define LT_DLLAZY_OR_NOW DL_NOW
19016 # else
19017 # define LT_DLLAZY_OR_NOW 0
19018 # endif
19019 # endif
19020 # endif
19021 # endif
19022 #endif
19023
19024 /* When -fvisbility=hidden is used, assume the code has been annotated
19025 correspondingly for the symbols needed. */
19026 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19027 void fnord () __attribute__((visibility("default")));
19028 #endif
19029
19030 void fnord () { int i=42; }
19031 int main ()
19032 {
19033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19034 int status = $lt_dlunknown;
19035
19036 if (self)
19037 {
19038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19039 else
19040 {
19041 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19042 else puts (dlerror ());
19043 }
19044 /* dlclose (self); */
19045 }
19046 else
19047 puts (dlerror ());
19048
19049 return status;
19050 }
19051 _LT_EOF
19052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19053 (eval $ac_link) 2>&5
19054 ac_status=$?
19055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19056 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19057 (./conftest; exit; ) >&5 2>/dev/null
19058 lt_status=$?
19059 case x$lt_status in
19060 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19061 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19062 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19063 esac
19064 else :
19065 # compilation failed
19066 lt_cv_dlopen_self=no
19067 fi
19068 fi
19069 rm -fr conftest*
19070
19071
19072 fi
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19074 $as_echo "$lt_cv_dlopen_self" >&6; }
19075
19076 if test "x$lt_cv_dlopen_self" = xyes; then
19077 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19079 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19080 if ${lt_cv_dlopen_self_static+:} false; then :
19081 $as_echo_n "(cached) " >&6
19082 else
19083 if test "$cross_compiling" = yes; then :
19084 lt_cv_dlopen_self_static=cross
19085 else
19086 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19087 lt_status=$lt_dlunknown
19088 cat > conftest.$ac_ext <<_LT_EOF
19089 #line 19089 "configure"
19090 #include "confdefs.h"
19091
19092 #if HAVE_DLFCN_H
19093 #include <dlfcn.h>
19094 #endif
19095
19096 #include <stdio.h>
19097
19098 #ifdef RTLD_GLOBAL
19099 # define LT_DLGLOBAL RTLD_GLOBAL
19100 #else
19101 # ifdef DL_GLOBAL
19102 # define LT_DLGLOBAL DL_GLOBAL
19103 # else
19104 # define LT_DLGLOBAL 0
19105 # endif
19106 #endif
19107
19108 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19109 find out it does not work in some platform. */
19110 #ifndef LT_DLLAZY_OR_NOW
19111 # ifdef RTLD_LAZY
19112 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19113 # else
19114 # ifdef DL_LAZY
19115 # define LT_DLLAZY_OR_NOW DL_LAZY
19116 # else
19117 # ifdef RTLD_NOW
19118 # define LT_DLLAZY_OR_NOW RTLD_NOW
19119 # else
19120 # ifdef DL_NOW
19121 # define LT_DLLAZY_OR_NOW DL_NOW
19122 # else
19123 # define LT_DLLAZY_OR_NOW 0
19124 # endif
19125 # endif
19126 # endif
19127 # endif
19128 #endif
19129
19130 /* When -fvisbility=hidden is used, assume the code has been annotated
19131 correspondingly for the symbols needed. */
19132 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19133 void fnord () __attribute__((visibility("default")));
19134 #endif
19135
19136 void fnord () { int i=42; }
19137 int main ()
19138 {
19139 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19140 int status = $lt_dlunknown;
19141
19142 if (self)
19143 {
19144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19145 else
19146 {
19147 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19148 else puts (dlerror ());
19149 }
19150 /* dlclose (self); */
19151 }
19152 else
19153 puts (dlerror ());
19154
19155 return status;
19156 }
19157 _LT_EOF
19158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19159 (eval $ac_link) 2>&5
19160 ac_status=$?
19161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19162 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19163 (./conftest; exit; ) >&5 2>/dev/null
19164 lt_status=$?
19165 case x$lt_status in
19166 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19167 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19168 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19169 esac
19170 else :
19171 # compilation failed
19172 lt_cv_dlopen_self_static=no
19173 fi
19174 fi
19175 rm -fr conftest*
19176
19177
19178 fi
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19180 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19181 fi
19182
19183 CPPFLAGS="$save_CPPFLAGS"
19184 LDFLAGS="$save_LDFLAGS"
19185 LIBS="$save_LIBS"
19186 ;;
19187 esac
19188
19189 case $lt_cv_dlopen_self in
19190 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19191 *) enable_dlopen_self=unknown ;;
19192 esac
19193
19194 case $lt_cv_dlopen_self_static in
19195 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19196 *) enable_dlopen_self_static=unknown ;;
19197 esac
19198 fi
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216 striplib=
19217 old_striplib=
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19219 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19220 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19221 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19222 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19224 $as_echo "yes" >&6; }
19225 else
19226 # FIXME - insert some real tests, host_os isn't really good enough
19227 case $host_os in
19228 darwin*)
19229 if test -n "$STRIP" ; then
19230 striplib="$STRIP -x"
19231 old_striplib="$STRIP -S"
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19233 $as_echo "yes" >&6; }
19234 else
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19236 $as_echo "no" >&6; }
19237 fi
19238 ;;
19239 *)
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19241 $as_echo "no" >&6; }
19242 ;;
19243 esac
19244 fi
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257 # Report which library types will actually be built
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19259 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19261 $as_echo "$can_build_shared" >&6; }
19262
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19264 $as_echo_n "checking whether to build shared libraries... " >&6; }
19265 test "$can_build_shared" = "no" && enable_shared=no
19266
19267 # On AIX, shared libraries and static libraries use the same namespace, and
19268 # are all built from PIC.
19269 case $host_os in
19270 aix3*)
19271 test "$enable_shared" = yes && enable_static=no
19272 if test -n "$RANLIB"; then
19273 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19274 postinstall_cmds='$RANLIB $lib'
19275 fi
19276 ;;
19277
19278 aix[4-9]*)
19279 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19280 test "$enable_shared" = yes && enable_static=no
19281 fi
19282 ;;
19283 esac
19284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19285 $as_echo "$enable_shared" >&6; }
19286
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19288 $as_echo_n "checking whether to build static libraries... " >&6; }
19289 # Make sure either enable_shared or enable_static is yes.
19290 test "$enable_shared" = yes || enable_static=yes
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19292 $as_echo "$enable_static" >&6; }
19293
19294
19295
19296
19297 fi
19298 ac_ext=cpp
19299 ac_cpp='$CXXCPP $CPPFLAGS'
19300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19303
19304 CC="$lt_save_CC"
19305
19306 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19307 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19308 (test "X$CXX" != "Xg++"))) ; then
19309 ac_ext=cpp
19310 ac_cpp='$CXXCPP $CPPFLAGS'
19311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19315 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19316 if test -z "$CXXCPP"; then
19317 if ${ac_cv_prog_CXXCPP+:} false; then :
19318 $as_echo_n "(cached) " >&6
19319 else
19320 # Double quotes because CXXCPP needs to be expanded
19321 for CXXCPP in "$CXX -E" "/lib/cpp"
19322 do
19323 ac_preproc_ok=false
19324 for ac_cxx_preproc_warn_flag in '' yes
19325 do
19326 # Use a header file that comes with gcc, so configuring glibc
19327 # with a fresh cross-compiler works.
19328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19329 # <limits.h> exists even on freestanding compilers.
19330 # On the NeXT, cc -E runs the code through the compiler's parser,
19331 # not just through cpp. "Syntax error" is here to catch this case.
19332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19333 /* end confdefs.h. */
19334 #ifdef __STDC__
19335 # include <limits.h>
19336 #else
19337 # include <assert.h>
19338 #endif
19339 Syntax error
19340 _ACEOF
19341 if ac_fn_cxx_try_cpp "$LINENO"; then :
19342
19343 else
19344 # Broken: fails on valid input.
19345 continue
19346 fi
19347 rm -f conftest.err conftest.i conftest.$ac_ext
19348
19349 # OK, works on sane cases. Now check whether nonexistent headers
19350 # can be detected and how.
19351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19352 /* end confdefs.h. */
19353 #include <ac_nonexistent.h>
19354 _ACEOF
19355 if ac_fn_cxx_try_cpp "$LINENO"; then :
19356 # Broken: success on invalid input.
19357 continue
19358 else
19359 # Passes both tests.
19360 ac_preproc_ok=:
19361 break
19362 fi
19363 rm -f conftest.err conftest.i conftest.$ac_ext
19364
19365 done
19366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19367 rm -f conftest.i conftest.err conftest.$ac_ext
19368 if $ac_preproc_ok; then :
19369 break
19370 fi
19371
19372 done
19373 ac_cv_prog_CXXCPP=$CXXCPP
19374
19375 fi
19376 CXXCPP=$ac_cv_prog_CXXCPP
19377 else
19378 ac_cv_prog_CXXCPP=$CXXCPP
19379 fi
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19381 $as_echo "$CXXCPP" >&6; }
19382 ac_preproc_ok=false
19383 for ac_cxx_preproc_warn_flag in '' yes
19384 do
19385 # Use a header file that comes with gcc, so configuring glibc
19386 # with a fresh cross-compiler works.
19387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19388 # <limits.h> exists even on freestanding compilers.
19389 # On the NeXT, cc -E runs the code through the compiler's parser,
19390 # not just through cpp. "Syntax error" is here to catch this case.
19391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19392 /* end confdefs.h. */
19393 #ifdef __STDC__
19394 # include <limits.h>
19395 #else
19396 # include <assert.h>
19397 #endif
19398 Syntax error
19399 _ACEOF
19400 if ac_fn_cxx_try_cpp "$LINENO"; then :
19401
19402 else
19403 # Broken: fails on valid input.
19404 continue
19405 fi
19406 rm -f conftest.err conftest.i conftest.$ac_ext
19407
19408 # OK, works on sane cases. Now check whether nonexistent headers
19409 # can be detected and how.
19410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19411 /* end confdefs.h. */
19412 #include <ac_nonexistent.h>
19413 _ACEOF
19414 if ac_fn_cxx_try_cpp "$LINENO"; then :
19415 # Broken: success on invalid input.
19416 continue
19417 else
19418 # Passes both tests.
19419 ac_preproc_ok=:
19420 break
19421 fi
19422 rm -f conftest.err conftest.i conftest.$ac_ext
19423
19424 done
19425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19426 rm -f conftest.i conftest.err conftest.$ac_ext
19427 if $ac_preproc_ok; then :
19428
19429 else
19430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19432 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19433 See \`config.log' for more details" "$LINENO" 5; }
19434 fi
19435
19436 ac_ext=cpp
19437 ac_cpp='$CXXCPP $CPPFLAGS'
19438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19441
19442 else
19443 _lt_caught_CXX_error=yes
19444 fi
19445
19446 ac_ext=cpp
19447 ac_cpp='$CXXCPP $CPPFLAGS'
19448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19451
19452 archive_cmds_need_lc_CXX=no
19453 allow_undefined_flag_CXX=
19454 always_export_symbols_CXX=no
19455 archive_expsym_cmds_CXX=
19456 compiler_needs_object_CXX=no
19457 export_dynamic_flag_spec_CXX=
19458 hardcode_direct_CXX=no
19459 hardcode_direct_absolute_CXX=no
19460 hardcode_libdir_flag_spec_CXX=
19461 hardcode_libdir_flag_spec_ld_CXX=
19462 hardcode_libdir_separator_CXX=
19463 hardcode_minus_L_CXX=no
19464 hardcode_shlibpath_var_CXX=unsupported
19465 hardcode_automatic_CXX=no
19466 inherit_rpath_CXX=no
19467 module_cmds_CXX=
19468 module_expsym_cmds_CXX=
19469 link_all_deplibs_CXX=unknown
19470 old_archive_cmds_CXX=$old_archive_cmds
19471 reload_flag_CXX=$reload_flag
19472 reload_cmds_CXX=$reload_cmds
19473 no_undefined_flag_CXX=
19474 whole_archive_flag_spec_CXX=
19475 enable_shared_with_static_runtimes_CXX=no
19476
19477 # Source file extension for C++ test sources.
19478 ac_ext=cpp
19479
19480 # Object file extension for compiled C++ test sources.
19481 objext=o
19482 objext_CXX=$objext
19483
19484 # No sense in running all these tests if we already determined that
19485 # the CXX compiler isn't working. Some variables (like enable_shared)
19486 # are currently assumed to apply to all compilers on this platform,
19487 # and will be corrupted by setting them based on a non-working compiler.
19488 if test "$_lt_caught_CXX_error" != yes; then
19489 # Code to be used in simple compile tests
19490 lt_simple_compile_test_code="int some_variable = 0;"
19491
19492 # Code to be used in simple link tests
19493 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19494
19495 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19496
19497
19498
19499
19500
19501
19502 # If no C compiler was specified, use CC.
19503 LTCC=${LTCC-"$CC"}
19504
19505 # If no C compiler flags were specified, use CFLAGS.
19506 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19507
19508 # Allow CC to be a program name with arguments.
19509 compiler=$CC
19510
19511
19512 # save warnings/boilerplate of simple test code
19513 ac_outfile=conftest.$ac_objext
19514 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19515 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19516 _lt_compiler_boilerplate=`cat conftest.err`
19517 $RM conftest*
19518
19519 ac_outfile=conftest.$ac_objext
19520 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19521 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19522 _lt_linker_boilerplate=`cat conftest.err`
19523 $RM -r conftest*
19524
19525
19526 # Allow CC to be a program name with arguments.
19527 lt_save_CC=$CC
19528 lt_save_LD=$LD
19529 lt_save_GCC=$GCC
19530 GCC=$GXX
19531 lt_save_with_gnu_ld=$with_gnu_ld
19532 lt_save_path_LD=$lt_cv_path_LD
19533 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19534 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19535 else
19536 $as_unset lt_cv_prog_gnu_ld
19537 fi
19538 if test -n "${lt_cv_path_LDCXX+set}"; then
19539 lt_cv_path_LD=$lt_cv_path_LDCXX
19540 else
19541 $as_unset lt_cv_path_LD
19542 fi
19543 test -z "${LDCXX+set}" || LD=$LDCXX
19544 CC=${CXX-"c++"}
19545 compiler=$CC
19546 compiler_CXX=$CC
19547 for cc_temp in $compiler""; do
19548 case $cc_temp in
19549 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19550 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19551 \-*) ;;
19552 *) break;;
19553 esac
19554 done
19555 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19556
19557
19558 if test -n "$compiler"; then
19559 # We don't want -fno-exception when compiling C++ code, so set the
19560 # no_builtin_flag separately
19561 if test "$GXX" = yes; then
19562 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19563 else
19564 lt_prog_compiler_no_builtin_flag_CXX=
19565 fi
19566
19567 if test "$GXX" = yes; then
19568 # Set up default GNU C++ configuration
19569
19570
19571
19572 # Check whether --with-gnu-ld was given.
19573 if test "${with_gnu_ld+set}" = set; then :
19574 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19575 else
19576 with_gnu_ld=no
19577 fi
19578
19579 ac_prog=ld
19580 if test "$GCC" = yes; then
19581 # Check if gcc -print-prog-name=ld gives a path.
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19583 $as_echo_n "checking for ld used by $CC... " >&6; }
19584 case $host in
19585 *-*-mingw*)
19586 # gcc leaves a trailing carriage return which upsets mingw
19587 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19588 *)
19589 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19590 esac
19591 case $ac_prog in
19592 # Accept absolute paths.
19593 [\\/]* | ?:[\\/]*)
19594 re_direlt='/[^/][^/]*/\.\./'
19595 # Canonicalize the pathname of ld
19596 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19597 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19598 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19599 done
19600 test -z "$LD" && LD="$ac_prog"
19601 ;;
19602 "")
19603 # If it fails, then pretend we aren't using GCC.
19604 ac_prog=ld
19605 ;;
19606 *)
19607 # If it is relative, then search for the first ld in PATH.
19608 with_gnu_ld=unknown
19609 ;;
19610 esac
19611 elif test "$with_gnu_ld" = yes; then
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19613 $as_echo_n "checking for GNU ld... " >&6; }
19614 else
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19616 $as_echo_n "checking for non-GNU ld... " >&6; }
19617 fi
19618 if ${lt_cv_path_LD+:} false; then :
19619 $as_echo_n "(cached) " >&6
19620 else
19621 if test -z "$LD"; then
19622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19623 for ac_dir in $PATH; do
19624 IFS="$lt_save_ifs"
19625 test -z "$ac_dir" && ac_dir=.
19626 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19627 lt_cv_path_LD="$ac_dir/$ac_prog"
19628 # Check to see if the program is GNU ld. I'd rather use --version,
19629 # but apparently some variants of GNU ld only accept -v.
19630 # Break only if it was the GNU/non-GNU ld that we prefer.
19631 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19632 *GNU* | *'with BFD'*)
19633 test "$with_gnu_ld" != no && break
19634 ;;
19635 *)
19636 test "$with_gnu_ld" != yes && break
19637 ;;
19638 esac
19639 fi
19640 done
19641 IFS="$lt_save_ifs"
19642 else
19643 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19644 fi
19645 fi
19646
19647 LD="$lt_cv_path_LD"
19648 if test -n "$LD"; then
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19650 $as_echo "$LD" >&6; }
19651 else
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19653 $as_echo "no" >&6; }
19654 fi
19655 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19657 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19658 if ${lt_cv_prog_gnu_ld+:} false; then :
19659 $as_echo_n "(cached) " >&6
19660 else
19661 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19662 case `$LD -v 2>&1 </dev/null` in
19663 *GNU* | *'with BFD'*)
19664 lt_cv_prog_gnu_ld=yes
19665 ;;
19666 *)
19667 lt_cv_prog_gnu_ld=no
19668 ;;
19669 esac
19670 fi
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19672 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19673 with_gnu_ld=$lt_cv_prog_gnu_ld
19674
19675
19676
19677
19678
19679
19680
19681 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19682 # archiving commands below assume that GNU ld is being used.
19683 if test "$with_gnu_ld" = yes; then
19684 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19685 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'
19686
19687 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19688 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19689
19690 # If archive_cmds runs LD, not CC, wlarc should be empty
19691 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19692 # investigate it a little bit more. (MM)
19693 wlarc='${wl}'
19694
19695 # ancient GNU ld didn't support --whole-archive et. al.
19696 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19697 $GREP 'no-whole-archive' > /dev/null; then
19698 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19699 else
19700 whole_archive_flag_spec_CXX=
19701 fi
19702 else
19703 with_gnu_ld=no
19704 wlarc=
19705
19706 # A generic and very simple default shared library creation
19707 # command for GNU C++ for the case where it uses the native
19708 # linker, instead of GNU ld. If possible, this setting should
19709 # overridden to take advantage of the native linker features on
19710 # the platform it is being used on.
19711 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19712 fi
19713
19714 # Commands to make compiler produce verbose output that lists
19715 # what "hidden" libraries, object files and flags are used when
19716 # linking a shared library.
19717 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19718
19719 else
19720 GXX=no
19721 with_gnu_ld=no
19722 wlarc=
19723 fi
19724
19725 # PORTME: fill in a description of your system's C++ link characteristics
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19727 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19728 ld_shlibs_CXX=yes
19729 case $host_os in
19730 aix3*)
19731 # FIXME: insert proper C++ library support
19732 ld_shlibs_CXX=no
19733 ;;
19734 aix[4-9]*)
19735 if test "$host_cpu" = ia64; then
19736 # On IA64, the linker does run time linking by default, so we don't
19737 # have to do anything special.
19738 aix_use_runtimelinking=no
19739 exp_sym_flag='-Bexport'
19740 no_entry_flag=""
19741 else
19742 aix_use_runtimelinking=no
19743
19744 # Test if we are trying to use run time linking or normal
19745 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19746 # need to do runtime linking.
19747 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19748 for ld_flag in $LDFLAGS; do
19749 case $ld_flag in
19750 *-brtl*)
19751 aix_use_runtimelinking=yes
19752 break
19753 ;;
19754 esac
19755 done
19756 ;;
19757 esac
19758
19759 exp_sym_flag='-bexport'
19760 no_entry_flag='-bnoentry'
19761 fi
19762
19763 # When large executables or shared objects are built, AIX ld can
19764 # have problems creating the table of contents. If linking a library
19765 # or program results in "error TOC overflow" add -mminimal-toc to
19766 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19767 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19768
19769 archive_cmds_CXX=''
19770 hardcode_direct_CXX=yes
19771 hardcode_direct_absolute_CXX=yes
19772 hardcode_libdir_separator_CXX=':'
19773 link_all_deplibs_CXX=yes
19774 file_list_spec_CXX='${wl}-f,'
19775
19776 if test "$GXX" = yes; then
19777 case $host_os in aix4.[012]|aix4.[012].*)
19778 # We only want to do this on AIX 4.2 and lower, the check
19779 # below for broken collect2 doesn't work under 4.3+
19780 collect2name=`${CC} -print-prog-name=collect2`
19781 if test -f "$collect2name" &&
19782 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19783 then
19784 # We have reworked collect2
19785 :
19786 else
19787 # We have old collect2
19788 hardcode_direct_CXX=unsupported
19789 # It fails to find uninstalled libraries when the uninstalled
19790 # path is not listed in the libpath. Setting hardcode_minus_L
19791 # to unsupported forces relinking
19792 hardcode_minus_L_CXX=yes
19793 hardcode_libdir_flag_spec_CXX='-L$libdir'
19794 hardcode_libdir_separator_CXX=
19795 fi
19796 esac
19797 shared_flag='-shared'
19798 if test "$aix_use_runtimelinking" = yes; then
19799 shared_flag="$shared_flag "'${wl}-G'
19800 fi
19801 else
19802 # not using gcc
19803 if test "$host_cpu" = ia64; then
19804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19805 # chokes on -Wl,-G. The following line is correct:
19806 shared_flag='-G'
19807 else
19808 if test "$aix_use_runtimelinking" = yes; then
19809 shared_flag='${wl}-G'
19810 else
19811 shared_flag='${wl}-bM:SRE'
19812 fi
19813 fi
19814 fi
19815
19816 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19817 # It seems that -bexpall does not export symbols beginning with
19818 # underscore (_), so it is better to generate a list of symbols to
19819 # export.
19820 always_export_symbols_CXX=yes
19821 if test "$aix_use_runtimelinking" = yes; then
19822 # Warning - without using the other runtime loading flags (-brtl),
19823 # -berok will link without error, but may produce a broken library.
19824 allow_undefined_flag_CXX='-berok'
19825 # Determine the default libpath from the value encoded in an empty
19826 # executable.
19827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19828 /* end confdefs.h. */
19829
19830 int
19831 main ()
19832 {
19833
19834 ;
19835 return 0;
19836 }
19837 _ACEOF
19838 if ac_fn_cxx_try_link "$LINENO"; then :
19839
19840 lt_aix_libpath_sed='
19841 /Import File Strings/,/^$/ {
19842 /^0/ {
19843 s/^0 *\(.*\)$/\1/
19844 p
19845 }
19846 }'
19847 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19848 # Check for a 64-bit object if we didn't find anything.
19849 if test -z "$aix_libpath"; then
19850 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19851 fi
19852 fi
19853 rm -f core conftest.err conftest.$ac_objext \
19854 conftest$ac_exeext conftest.$ac_ext
19855 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19856
19857 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19858
19859 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"
19860 else
19861 if test "$host_cpu" = ia64; then
19862 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19863 allow_undefined_flag_CXX="-z nodefs"
19864 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"
19865 else
19866 # Determine the default libpath from the value encoded in an
19867 # empty executable.
19868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19869 /* end confdefs.h. */
19870
19871 int
19872 main ()
19873 {
19874
19875 ;
19876 return 0;
19877 }
19878 _ACEOF
19879 if ac_fn_cxx_try_link "$LINENO"; then :
19880
19881 lt_aix_libpath_sed='
19882 /Import File Strings/,/^$/ {
19883 /^0/ {
19884 s/^0 *\(.*\)$/\1/
19885 p
19886 }
19887 }'
19888 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19889 # Check for a 64-bit object if we didn't find anything.
19890 if test -z "$aix_libpath"; then
19891 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19892 fi
19893 fi
19894 rm -f core conftest.err conftest.$ac_objext \
19895 conftest$ac_exeext conftest.$ac_ext
19896 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19897
19898 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19899 # Warning - without using the other run time loading flags,
19900 # -berok will link without error, but may produce a broken library.
19901 no_undefined_flag_CXX=' ${wl}-bernotok'
19902 allow_undefined_flag_CXX=' ${wl}-berok'
19903 if test "$with_gnu_ld" = yes; then
19904 # We only use this code for GNU lds that support --whole-archive.
19905 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19906 else
19907 # Exported symbols can be pulled into shared objects from archives
19908 whole_archive_flag_spec_CXX='$convenience'
19909 fi
19910 archive_cmds_need_lc_CXX=yes
19911 # This is similar to how AIX traditionally builds its shared
19912 # libraries.
19913 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'
19914 fi
19915 fi
19916 ;;
19917
19918 beos*)
19919 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19920 allow_undefined_flag_CXX=unsupported
19921 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19922 # support --undefined. This deserves some investigation. FIXME
19923 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19924 else
19925 ld_shlibs_CXX=no
19926 fi
19927 ;;
19928
19929 chorus*)
19930 case $cc_basename in
19931 *)
19932 # FIXME: insert proper C++ library support
19933 ld_shlibs_CXX=no
19934 ;;
19935 esac
19936 ;;
19937
19938 cygwin* | mingw* | pw32* | cegcc*)
19939 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19940 # as there is no search path for DLLs.
19941 hardcode_libdir_flag_spec_CXX='-L$libdir'
19942 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19943 allow_undefined_flag_CXX=unsupported
19944 always_export_symbols_CXX=no
19945 enable_shared_with_static_runtimes_CXX=yes
19946
19947 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19948 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'
19949 # If the export-symbols file already is a .def file (1st line
19950 # is EXPORTS), use it as is; otherwise, prepend...
19951 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19952 cp $export_symbols $output_objdir/$soname.def;
19953 else
19954 echo EXPORTS > $output_objdir/$soname.def;
19955 cat $export_symbols >> $output_objdir/$soname.def;
19956 fi~
19957 $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'
19958 else
19959 ld_shlibs_CXX=no
19960 fi
19961 ;;
19962 darwin* | rhapsody*)
19963
19964
19965 archive_cmds_need_lc_CXX=no
19966 hardcode_direct_CXX=no
19967 hardcode_automatic_CXX=yes
19968 hardcode_shlibpath_var_CXX=unsupported
19969 if test "$lt_cv_ld_force_load" = "yes"; then
19970 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\"`'
19971 else
19972 whole_archive_flag_spec_CXX=''
19973 fi
19974 link_all_deplibs_CXX=yes
19975 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19976 case $cc_basename in
19977 ifort*) _lt_dar_can_shared=yes ;;
19978 *) _lt_dar_can_shared=$GCC ;;
19979 esac
19980 if test "$_lt_dar_can_shared" = "yes"; then
19981 output_verbose_link_cmd=func_echo_all
19982 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}"
19983 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19984 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}"
19985 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}"
19986 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19987 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}"
19988 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}"
19989 fi
19990
19991 else
19992 ld_shlibs_CXX=no
19993 fi
19994
19995 ;;
19996
19997 dgux*)
19998 case $cc_basename in
19999 ec++*)
20000 # FIXME: insert proper C++ library support
20001 ld_shlibs_CXX=no
20002 ;;
20003 ghcx*)
20004 # Green Hills C++ Compiler
20005 # FIXME: insert proper C++ library support
20006 ld_shlibs_CXX=no
20007 ;;
20008 *)
20009 # FIXME: insert proper C++ library support
20010 ld_shlibs_CXX=no
20011 ;;
20012 esac
20013 ;;
20014
20015 freebsd2.*)
20016 # C++ shared libraries reported to be fairly broken before
20017 # switch to ELF
20018 ld_shlibs_CXX=no
20019 ;;
20020
20021 freebsd-elf*)
20022 archive_cmds_need_lc_CXX=no
20023 ;;
20024
20025 freebsd* | dragonfly*)
20026 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20027 # conventions
20028 ld_shlibs_CXX=yes
20029 ;;
20030
20031 gnu*)
20032 ;;
20033
20034 haiku*)
20035 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20036 link_all_deplibs_CXX=yes
20037 ;;
20038
20039 hpux9*)
20040 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20041 hardcode_libdir_separator_CXX=:
20042 export_dynamic_flag_spec_CXX='${wl}-E'
20043 hardcode_direct_CXX=yes
20044 hardcode_minus_L_CXX=yes # Not in the search PATH,
20045 # but as the default
20046 # location of the library.
20047
20048 case $cc_basename in
20049 CC*)
20050 # FIXME: insert proper C++ library support
20051 ld_shlibs_CXX=no
20052 ;;
20053 aCC*)
20054 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'
20055 # Commands to make compiler produce verbose output that lists
20056 # what "hidden" libraries, object files and flags are used when
20057 # linking a shared library.
20058 #
20059 # There doesn't appear to be a way to prevent this compiler from
20060 # explicitly linking system object files so we need to strip them
20061 # from the output so that they don't get included in the library
20062 # dependencies.
20063 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"'
20064 ;;
20065 *)
20066 if test "$GXX" = yes; then
20067 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'
20068 else
20069 # FIXME: insert proper C++ library support
20070 ld_shlibs_CXX=no
20071 fi
20072 ;;
20073 esac
20074 ;;
20075
20076 hpux10*|hpux11*)
20077 if test $with_gnu_ld = no; then
20078 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20079 hardcode_libdir_separator_CXX=:
20080
20081 case $host_cpu in
20082 hppa*64*|ia64*)
20083 ;;
20084 *)
20085 export_dynamic_flag_spec_CXX='${wl}-E'
20086 ;;
20087 esac
20088 fi
20089 case $host_cpu in
20090 hppa*64*|ia64*)
20091 hardcode_direct_CXX=no
20092 hardcode_shlibpath_var_CXX=no
20093 ;;
20094 *)
20095 hardcode_direct_CXX=yes
20096 hardcode_direct_absolute_CXX=yes
20097 hardcode_minus_L_CXX=yes # Not in the search PATH,
20098 # but as the default
20099 # location of the library.
20100 ;;
20101 esac
20102
20103 case $cc_basename in
20104 CC*)
20105 # FIXME: insert proper C++ library support
20106 ld_shlibs_CXX=no
20107 ;;
20108 aCC*)
20109 case $host_cpu in
20110 hppa*64*)
20111 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20112 ;;
20113 ia64*)
20114 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20115 ;;
20116 *)
20117 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20118 ;;
20119 esac
20120 # Commands to make compiler produce verbose output that lists
20121 # what "hidden" libraries, object files and flags are used when
20122 # linking a shared library.
20123 #
20124 # There doesn't appear to be a way to prevent this compiler from
20125 # explicitly linking system object files so we need to strip them
20126 # from the output so that they don't get included in the library
20127 # dependencies.
20128 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"'
20129 ;;
20130 *)
20131 if test "$GXX" = yes; then
20132 if test $with_gnu_ld = no; then
20133 case $host_cpu in
20134 hppa*64*)
20135 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20136 ;;
20137 ia64*)
20138 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20139 ;;
20140 *)
20141 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'
20142 ;;
20143 esac
20144 fi
20145 else
20146 # FIXME: insert proper C++ library support
20147 ld_shlibs_CXX=no
20148 fi
20149 ;;
20150 esac
20151 ;;
20152
20153 interix[3-9]*)
20154 hardcode_direct_CXX=no
20155 hardcode_shlibpath_var_CXX=no
20156 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20157 export_dynamic_flag_spec_CXX='${wl}-E'
20158 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20159 # Instead, shared libraries are loaded at an image base (0x10000000 by
20160 # default) and relocated if they conflict, which is a slow very memory
20161 # consuming and fragmenting process. To avoid this, we pick a random,
20162 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20163 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20164 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'
20165 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'
20166 ;;
20167 irix5* | irix6*)
20168 case $cc_basename in
20169 CC*)
20170 # SGI C++
20171 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'
20172
20173 # Archives containing C++ object files must be created using
20174 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20175 # necessary to make sure instantiated templates are included
20176 # in the archive.
20177 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20178 ;;
20179 *)
20180 if test "$GXX" = yes; then
20181 if test "$with_gnu_ld" = no; then
20182 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'
20183 else
20184 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'
20185 fi
20186 fi
20187 link_all_deplibs_CXX=yes
20188 ;;
20189 esac
20190 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20191 hardcode_libdir_separator_CXX=:
20192 inherit_rpath_CXX=yes
20193 ;;
20194
20195 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20196 case $cc_basename in
20197 KCC*)
20198 # Kuck and Associates, Inc. (KAI) C++ Compiler
20199
20200 # KCC will only create a shared library if the output file
20201 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20202 # to its proper name (with version) after linking.
20203 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'
20204 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'
20205 # Commands to make compiler produce verbose output that lists
20206 # what "hidden" libraries, object files and flags are used when
20207 # linking a shared library.
20208 #
20209 # There doesn't appear to be a way to prevent this compiler from
20210 # explicitly linking system object files so we need to strip them
20211 # from the output so that they don't get included in the library
20212 # dependencies.
20213 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"'
20214
20215 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20216 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20217
20218 # Archives containing C++ object files must be created using
20219 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20220 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20221 ;;
20222 icpc* | ecpc* )
20223 # Intel C++
20224 with_gnu_ld=yes
20225 # version 8.0 and above of icpc choke on multiply defined symbols
20226 # if we add $predep_objects and $postdep_objects, however 7.1 and
20227 # earlier do not add the objects themselves.
20228 case `$CC -V 2>&1` in
20229 *"Version 7."*)
20230 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20231 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'
20232 ;;
20233 *) # Version 8.0 or newer
20234 tmp_idyn=
20235 case $host_cpu in
20236 ia64*) tmp_idyn=' -i_dynamic';;
20237 esac
20238 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20239 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'
20240 ;;
20241 esac
20242 archive_cmds_need_lc_CXX=no
20243 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20244 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20245 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20246 ;;
20247 pgCC* | pgcpp*)
20248 # Portland Group C++ compiler
20249 case `$CC -V` in
20250 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20251 prelink_cmds_CXX='tpldir=Template.dir~
20252 rm -rf $tpldir~
20253 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20254 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20255 old_archive_cmds_CXX='tpldir=Template.dir~
20256 rm -rf $tpldir~
20257 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20258 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20259 $RANLIB $oldlib'
20260 archive_cmds_CXX='tpldir=Template.dir~
20261 rm -rf $tpldir~
20262 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20263 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20264 archive_expsym_cmds_CXX='tpldir=Template.dir~
20265 rm -rf $tpldir~
20266 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20267 $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'
20268 ;;
20269 *) # Version 6 and above use weak symbols
20270 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20271 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'
20272 ;;
20273 esac
20274
20275 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20276 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20277 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'
20278 ;;
20279 cxx*)
20280 # Compaq C++
20281 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20282 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'
20283
20284 runpath_var=LD_RUN_PATH
20285 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20286 hardcode_libdir_separator_CXX=:
20287
20288 # Commands to make compiler produce verbose output that lists
20289 # what "hidden" libraries, object files and flags are used when
20290 # linking a shared library.
20291 #
20292 # There doesn't appear to be a way to prevent this compiler from
20293 # explicitly linking system object files so we need to strip them
20294 # from the output so that they don't get included in the library
20295 # dependencies.
20296 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'
20297 ;;
20298 xl* | mpixl* | bgxl*)
20299 # IBM XL 8.0 on PPC, with GNU ld
20300 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20301 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20302 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20303 if test "x$supports_anon_versioning" = xyes; then
20304 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20305 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20306 echo "local: *; };" >> $output_objdir/$libname.ver~
20307 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20308 fi
20309 ;;
20310 *)
20311 case `$CC -V 2>&1 | sed 5q` in
20312 *Sun\ C*)
20313 # Sun C++ 5.9
20314 no_undefined_flag_CXX=' -zdefs'
20315 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20316 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'
20317 hardcode_libdir_flag_spec_CXX='-R$libdir'
20318 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'
20319 compiler_needs_object_CXX=yes
20320
20321 # Not sure whether something based on
20322 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20323 # would be better.
20324 output_verbose_link_cmd='func_echo_all'
20325
20326 # Archives containing C++ object files must be created using
20327 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20328 # necessary to make sure instantiated templates are included
20329 # in the archive.
20330 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20331 ;;
20332 esac
20333 ;;
20334 esac
20335 ;;
20336
20337 lynxos*)
20338 # FIXME: insert proper C++ library support
20339 ld_shlibs_CXX=no
20340 ;;
20341
20342 m88k*)
20343 # FIXME: insert proper C++ library support
20344 ld_shlibs_CXX=no
20345 ;;
20346
20347 mvs*)
20348 case $cc_basename in
20349 cxx*)
20350 # FIXME: insert proper C++ library support
20351 ld_shlibs_CXX=no
20352 ;;
20353 *)
20354 # FIXME: insert proper C++ library support
20355 ld_shlibs_CXX=no
20356 ;;
20357 esac
20358 ;;
20359
20360 netbsd*)
20361 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20362 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20363 wlarc=
20364 hardcode_libdir_flag_spec_CXX='-R$libdir'
20365 hardcode_direct_CXX=yes
20366 hardcode_shlibpath_var_CXX=no
20367 fi
20368 # Workaround some broken pre-1.5 toolchains
20369 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20370 ;;
20371
20372 *nto* | *qnx*)
20373 ld_shlibs_CXX=yes
20374 ;;
20375
20376 openbsd2*)
20377 # C++ shared libraries are fairly broken
20378 ld_shlibs_CXX=no
20379 ;;
20380
20381 openbsd*)
20382 if test -f /usr/libexec/ld.so; then
20383 hardcode_direct_CXX=yes
20384 hardcode_shlibpath_var_CXX=no
20385 hardcode_direct_absolute_CXX=yes
20386 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20387 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20388 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20389 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20390 export_dynamic_flag_spec_CXX='${wl}-E'
20391 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20392 fi
20393 output_verbose_link_cmd=func_echo_all
20394 else
20395 ld_shlibs_CXX=no
20396 fi
20397 ;;
20398
20399 osf3* | osf4* | osf5*)
20400 case $cc_basename in
20401 KCC*)
20402 # Kuck and Associates, Inc. (KAI) C++ Compiler
20403
20404 # KCC will only create a shared library if the output file
20405 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20406 # to its proper name (with version) after linking.
20407 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'
20408
20409 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20410 hardcode_libdir_separator_CXX=:
20411
20412 # Archives containing C++ object files must be created using
20413 # the KAI C++ compiler.
20414 case $host in
20415 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20416 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20417 esac
20418 ;;
20419 RCC*)
20420 # Rational C++ 2.4.1
20421 # FIXME: insert proper C++ library support
20422 ld_shlibs_CXX=no
20423 ;;
20424 cxx*)
20425 case $host in
20426 osf3*)
20427 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20428 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'
20429 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20430 ;;
20431 *)
20432 allow_undefined_flag_CXX=' -expect_unresolved \*'
20433 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'
20434 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20435 echo "-hidden">> $lib.exp~
20436 $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~
20437 $RM $lib.exp'
20438 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20439 ;;
20440 esac
20441
20442 hardcode_libdir_separator_CXX=:
20443
20444 # Commands to make compiler produce verbose output that lists
20445 # what "hidden" libraries, object files and flags are used when
20446 # linking a shared library.
20447 #
20448 # There doesn't appear to be a way to prevent this compiler from
20449 # explicitly linking system object files so we need to strip them
20450 # from the output so that they don't get included in the library
20451 # dependencies.
20452 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"'
20453 ;;
20454 *)
20455 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20456 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20457 case $host in
20458 osf3*)
20459 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'
20460 ;;
20461 *)
20462 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'
20463 ;;
20464 esac
20465
20466 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20467 hardcode_libdir_separator_CXX=:
20468
20469 # Commands to make compiler produce verbose output that lists
20470 # what "hidden" libraries, object files and flags are used when
20471 # linking a shared library.
20472 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20473
20474 else
20475 # FIXME: insert proper C++ library support
20476 ld_shlibs_CXX=no
20477 fi
20478 ;;
20479 esac
20480 ;;
20481
20482 psos*)
20483 # FIXME: insert proper C++ library support
20484 ld_shlibs_CXX=no
20485 ;;
20486
20487 sunos4*)
20488 case $cc_basename in
20489 CC*)
20490 # Sun C++ 4.x
20491 # FIXME: insert proper C++ library support
20492 ld_shlibs_CXX=no
20493 ;;
20494 lcc*)
20495 # Lucid
20496 # FIXME: insert proper C++ library support
20497 ld_shlibs_CXX=no
20498 ;;
20499 *)
20500 # FIXME: insert proper C++ library support
20501 ld_shlibs_CXX=no
20502 ;;
20503 esac
20504 ;;
20505
20506 solaris*)
20507 case $cc_basename in
20508 CC*)
20509 # Sun C++ 4.2, 5.x and Centerline C++
20510 archive_cmds_need_lc_CXX=yes
20511 no_undefined_flag_CXX=' -zdefs'
20512 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20513 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20514 $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'
20515
20516 hardcode_libdir_flag_spec_CXX='-R$libdir'
20517 hardcode_shlibpath_var_CXX=no
20518 case $host_os in
20519 solaris2.[0-5] | solaris2.[0-5].*) ;;
20520 *)
20521 # The compiler driver will combine and reorder linker options,
20522 # but understands `-z linker_flag'.
20523 # Supported since Solaris 2.6 (maybe 2.5.1?)
20524 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20525 ;;
20526 esac
20527 link_all_deplibs_CXX=yes
20528
20529 output_verbose_link_cmd='func_echo_all'
20530
20531 # Archives containing C++ object files must be created using
20532 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20533 # necessary to make sure instantiated templates are included
20534 # in the archive.
20535 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20536 ;;
20537 gcx*)
20538 # Green Hills C++ Compiler
20539 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20540
20541 # The C++ compiler must be used to create the archive.
20542 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20543 ;;
20544 *)
20545 # GNU C++ compiler with Solaris linker
20546 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20547 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20548 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20549 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20550 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20551 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20552
20553 # Commands to make compiler produce verbose output that lists
20554 # what "hidden" libraries, object files and flags are used when
20555 # linking a shared library.
20556 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20557 else
20558 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20559 # platform.
20560 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20561 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20562 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20563
20564 # Commands to make compiler produce verbose output that lists
20565 # what "hidden" libraries, object files and flags are used when
20566 # linking a shared library.
20567 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20568 fi
20569
20570 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20571 case $host_os in
20572 solaris2.[0-5] | solaris2.[0-5].*) ;;
20573 *)
20574 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20575 ;;
20576 esac
20577 fi
20578 ;;
20579 esac
20580 ;;
20581
20582 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20583 no_undefined_flag_CXX='${wl}-z,text'
20584 archive_cmds_need_lc_CXX=no
20585 hardcode_shlibpath_var_CXX=no
20586 runpath_var='LD_RUN_PATH'
20587
20588 case $cc_basename in
20589 CC*)
20590 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20591 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20592 ;;
20593 *)
20594 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20595 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20596 ;;
20597 esac
20598 ;;
20599
20600 sysv5* | sco3.2v5* | sco5v6*)
20601 # Note: We can NOT use -z defs as we might desire, because we do not
20602 # link with -lc, and that would cause any symbols used from libc to
20603 # always be unresolved, which means just about no library would
20604 # ever link correctly. If we're not using GNU ld we use -z text
20605 # though, which does catch some bad symbols but isn't as heavy-handed
20606 # as -z defs.
20607 no_undefined_flag_CXX='${wl}-z,text'
20608 allow_undefined_flag_CXX='${wl}-z,nodefs'
20609 archive_cmds_need_lc_CXX=no
20610 hardcode_shlibpath_var_CXX=no
20611 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20612 hardcode_libdir_separator_CXX=':'
20613 link_all_deplibs_CXX=yes
20614 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20615 runpath_var='LD_RUN_PATH'
20616
20617 case $cc_basename in
20618 CC*)
20619 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20620 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20621 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20622 '"$old_archive_cmds_CXX"
20623 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20624 '"$reload_cmds_CXX"
20625 ;;
20626 *)
20627 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20628 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20629 ;;
20630 esac
20631 ;;
20632
20633 tandem*)
20634 case $cc_basename in
20635 NCC*)
20636 # NonStop-UX NCC 3.20
20637 # FIXME: insert proper C++ library support
20638 ld_shlibs_CXX=no
20639 ;;
20640 *)
20641 # FIXME: insert proper C++ library support
20642 ld_shlibs_CXX=no
20643 ;;
20644 esac
20645 ;;
20646
20647 vxworks*)
20648 # FIXME: insert proper C++ library support
20649 ld_shlibs_CXX=no
20650 ;;
20651
20652 *)
20653 # FIXME: insert proper C++ library support
20654 ld_shlibs_CXX=no
20655 ;;
20656 esac
20657
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20659 $as_echo "$ld_shlibs_CXX" >&6; }
20660 test "$ld_shlibs_CXX" = no && can_build_shared=no
20661
20662 GCC_CXX="$GXX"
20663 LD_CXX="$LD"
20664
20665 ## CAVEAT EMPTOR:
20666 ## There is no encapsulation within the following macros, do not change
20667 ## the running order or otherwise move them around unless you know exactly
20668 ## what you are doing...
20669 # Dependencies to place before and after the object being linked:
20670 predep_objects_CXX=
20671 postdep_objects_CXX=
20672 predeps_CXX=
20673 postdeps_CXX=
20674 compiler_lib_search_path_CXX=
20675
20676 cat > conftest.$ac_ext <<_LT_EOF
20677 class Foo
20678 {
20679 public:
20680 Foo (void) { a = 0; }
20681 private:
20682 int a;
20683 };
20684 _LT_EOF
20685
20686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20687 (eval $ac_compile) 2>&5
20688 ac_status=$?
20689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20690 test $ac_status = 0; }; then
20691 # Parse the compiler output and extract the necessary
20692 # objects, libraries and library flags.
20693
20694 # Sentinel used to keep track of whether or not we are before
20695 # the conftest object file.
20696 pre_test_object_deps_done=no
20697
20698 for p in `eval "$output_verbose_link_cmd"`; do
20699 case $p in
20700
20701 -L* | -R* | -l*)
20702 # Some compilers place space between "-{L,R}" and the path.
20703 # Remove the space.
20704 if test $p = "-L" ||
20705 test $p = "-R"; then
20706 prev=$p
20707 continue
20708 else
20709 prev=
20710 fi
20711
20712 if test "$pre_test_object_deps_done" = no; then
20713 case $p in
20714 -L* | -R*)
20715 # Internal compiler library paths should come after those
20716 # provided the user. The postdeps already come after the
20717 # user supplied libs so there is no need to process them.
20718 if test -z "$compiler_lib_search_path_CXX"; then
20719 compiler_lib_search_path_CXX="${prev}${p}"
20720 else
20721 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20722 fi
20723 ;;
20724 # The "-l" case would never come before the object being
20725 # linked, so don't bother handling this case.
20726 esac
20727 else
20728 if test -z "$postdeps_CXX"; then
20729 postdeps_CXX="${prev}${p}"
20730 else
20731 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20732 fi
20733 fi
20734 ;;
20735
20736 *.$objext)
20737 # This assumes that the test object file only shows up
20738 # once in the compiler output.
20739 if test "$p" = "conftest.$objext"; then
20740 pre_test_object_deps_done=yes
20741 continue
20742 fi
20743
20744 if test "$pre_test_object_deps_done" = no; then
20745 if test -z "$predep_objects_CXX"; then
20746 predep_objects_CXX="$p"
20747 else
20748 predep_objects_CXX="$predep_objects_CXX $p"
20749 fi
20750 else
20751 if test -z "$postdep_objects_CXX"; then
20752 postdep_objects_CXX="$p"
20753 else
20754 postdep_objects_CXX="$postdep_objects_CXX $p"
20755 fi
20756 fi
20757 ;;
20758
20759 *) ;; # Ignore the rest.
20760
20761 esac
20762 done
20763
20764 # Clean up.
20765 rm -f a.out a.exe
20766 else
20767 echo "libtool.m4: error: problem compiling CXX test program"
20768 fi
20769
20770 $RM -f confest.$objext
20771
20772 # PORTME: override above test on systems where it is broken
20773 case $host_os in
20774 interix[3-9]*)
20775 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20776 # hack all around it, let's just trust "g++" to DTRT.
20777 predep_objects_CXX=
20778 postdep_objects_CXX=
20779 postdeps_CXX=
20780 ;;
20781
20782 linux*)
20783 case `$CC -V 2>&1 | sed 5q` in
20784 *Sun\ C*)
20785 # Sun C++ 5.9
20786
20787 # The more standards-conforming stlport4 library is
20788 # incompatible with the Cstd library. Avoid specifying
20789 # it if it's in CXXFLAGS. Ignore libCrun as
20790 # -library=stlport4 depends on it.
20791 case " $CXX $CXXFLAGS " in
20792 *" -library=stlport4 "*)
20793 solaris_use_stlport4=yes
20794 ;;
20795 esac
20796
20797 if test "$solaris_use_stlport4" != yes; then
20798 postdeps_CXX='-library=Cstd -library=Crun'
20799 fi
20800 ;;
20801 esac
20802 ;;
20803
20804 solaris*)
20805 case $cc_basename in
20806 CC*)
20807 # The more standards-conforming stlport4 library is
20808 # incompatible with the Cstd library. Avoid specifying
20809 # it if it's in CXXFLAGS. Ignore libCrun as
20810 # -library=stlport4 depends on it.
20811 case " $CXX $CXXFLAGS " in
20812 *" -library=stlport4 "*)
20813 solaris_use_stlport4=yes
20814 ;;
20815 esac
20816
20817 # Adding this requires a known-good setup of shared libraries for
20818 # Sun compiler versions before 5.6, else PIC objects from an old
20819 # archive will be linked into the output, leading to subtle bugs.
20820 if test "$solaris_use_stlport4" != yes; then
20821 postdeps_CXX='-library=Cstd -library=Crun'
20822 fi
20823 ;;
20824 esac
20825 ;;
20826 esac
20827
20828
20829 case " $postdeps_CXX " in
20830 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20831 esac
20832 compiler_lib_search_dirs_CXX=
20833 if test -n "${compiler_lib_search_path_CXX}"; then
20834 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20835 fi
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867 lt_prog_compiler_wl_CXX=
20868 lt_prog_compiler_pic_CXX=
20869 lt_prog_compiler_static_CXX=
20870
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20872 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20873
20874 # C++ specific cases for pic, static, wl, etc.
20875 if test "$GXX" = yes; then
20876 lt_prog_compiler_wl_CXX='-Wl,'
20877 lt_prog_compiler_static_CXX='-static'
20878
20879 case $host_os in
20880 aix*)
20881 # All AIX code is PIC.
20882 if test "$host_cpu" = ia64; then
20883 # AIX 5 now supports IA64 processor
20884 lt_prog_compiler_static_CXX='-Bstatic'
20885 fi
20886 lt_prog_compiler_pic_CXX='-fPIC'
20887 ;;
20888
20889 amigaos*)
20890 case $host_cpu in
20891 powerpc)
20892 # see comment about AmigaOS4 .so support
20893 lt_prog_compiler_pic_CXX='-fPIC'
20894 ;;
20895 m68k)
20896 # FIXME: we need at least 68020 code to build shared libraries, but
20897 # adding the `-m68020' flag to GCC prevents building anything better,
20898 # like `-m68040'.
20899 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20900 ;;
20901 esac
20902 ;;
20903
20904 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20905 # PIC is the default for these OSes.
20906 ;;
20907 mingw* | cygwin* | os2* | pw32* | cegcc*)
20908 # This hack is so that the source file can tell whether it is being
20909 # built for inclusion in a dll (and should export symbols for example).
20910 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20911 # (--disable-auto-import) libraries
20912 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20913 ;;
20914 darwin* | rhapsody*)
20915 # PIC is the default on this platform
20916 # Common symbols not allowed in MH_DYLIB files
20917 lt_prog_compiler_pic_CXX='-fno-common'
20918 ;;
20919 *djgpp*)
20920 # DJGPP does not support shared libraries at all
20921 lt_prog_compiler_pic_CXX=
20922 ;;
20923 haiku*)
20924 # PIC is the default for Haiku.
20925 # The "-static" flag exists, but is broken.
20926 lt_prog_compiler_static_CXX=
20927 ;;
20928 interix[3-9]*)
20929 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20930 # Instead, we relocate shared libraries at runtime.
20931 ;;
20932 sysv4*MP*)
20933 if test -d /usr/nec; then
20934 lt_prog_compiler_pic_CXX=-Kconform_pic
20935 fi
20936 ;;
20937 hpux*)
20938 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20939 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20940 # sets the default TLS model and affects inlining.
20941 case $host_cpu in
20942 hppa*64*)
20943 ;;
20944 *)
20945 lt_prog_compiler_pic_CXX='-fPIC'
20946 ;;
20947 esac
20948 ;;
20949 *qnx* | *nto*)
20950 # QNX uses GNU C++, but need to define -shared option too, otherwise
20951 # it will coredump.
20952 lt_prog_compiler_pic_CXX='-fPIC -shared'
20953 ;;
20954 *)
20955 lt_prog_compiler_pic_CXX='-fPIC'
20956 ;;
20957 esac
20958 else
20959 case $host_os in
20960 aix[4-9]*)
20961 # All AIX code is PIC.
20962 if test "$host_cpu" = ia64; then
20963 # AIX 5 now supports IA64 processor
20964 lt_prog_compiler_static_CXX='-Bstatic'
20965 else
20966 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20967 fi
20968 ;;
20969 chorus*)
20970 case $cc_basename in
20971 cxch68*)
20972 # Green Hills C++ Compiler
20973 # _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"
20974 ;;
20975 esac
20976 ;;
20977 dgux*)
20978 case $cc_basename in
20979 ec++*)
20980 lt_prog_compiler_pic_CXX='-KPIC'
20981 ;;
20982 ghcx*)
20983 # Green Hills C++ Compiler
20984 lt_prog_compiler_pic_CXX='-pic'
20985 ;;
20986 *)
20987 ;;
20988 esac
20989 ;;
20990 freebsd* | dragonfly*)
20991 # FreeBSD uses GNU C++
20992 ;;
20993 hpux9* | hpux10* | hpux11*)
20994 case $cc_basename in
20995 CC*)
20996 lt_prog_compiler_wl_CXX='-Wl,'
20997 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20998 if test "$host_cpu" != ia64; then
20999 lt_prog_compiler_pic_CXX='+Z'
21000 fi
21001 ;;
21002 aCC*)
21003 lt_prog_compiler_wl_CXX='-Wl,'
21004 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21005 case $host_cpu in
21006 hppa*64*|ia64*)
21007 # +Z the default
21008 ;;
21009 *)
21010 lt_prog_compiler_pic_CXX='+Z'
21011 ;;
21012 esac
21013 ;;
21014 *)
21015 ;;
21016 esac
21017 ;;
21018 interix*)
21019 # This is c89, which is MS Visual C++ (no shared libs)
21020 # Anyone wants to do a port?
21021 ;;
21022 irix5* | irix6* | nonstopux*)
21023 case $cc_basename in
21024 CC*)
21025 lt_prog_compiler_wl_CXX='-Wl,'
21026 lt_prog_compiler_static_CXX='-non_shared'
21027 # CC pic flag -KPIC is the default.
21028 ;;
21029 *)
21030 ;;
21031 esac
21032 ;;
21033 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21034 case $cc_basename in
21035 KCC*)
21036 # KAI C++ Compiler
21037 lt_prog_compiler_wl_CXX='--backend -Wl,'
21038 lt_prog_compiler_pic_CXX='-fPIC'
21039 ;;
21040 ecpc* )
21041 # old Intel C++ for x86_64 which still supported -KPIC.
21042 lt_prog_compiler_wl_CXX='-Wl,'
21043 lt_prog_compiler_pic_CXX='-KPIC'
21044 lt_prog_compiler_static_CXX='-static'
21045 ;;
21046 icpc* )
21047 # Intel C++, used to be incompatible with GCC.
21048 # ICC 10 doesn't accept -KPIC any more.
21049 lt_prog_compiler_wl_CXX='-Wl,'
21050 lt_prog_compiler_pic_CXX='-fPIC'
21051 lt_prog_compiler_static_CXX='-static'
21052 ;;
21053 pgCC* | pgcpp*)
21054 # Portland Group C++ compiler
21055 lt_prog_compiler_wl_CXX='-Wl,'
21056 lt_prog_compiler_pic_CXX='-fpic'
21057 lt_prog_compiler_static_CXX='-Bstatic'
21058 ;;
21059 cxx*)
21060 # Compaq C++
21061 # Make sure the PIC flag is empty. It appears that all Alpha
21062 # Linux and Compaq Tru64 Unix objects are PIC.
21063 lt_prog_compiler_pic_CXX=
21064 lt_prog_compiler_static_CXX='-non_shared'
21065 ;;
21066 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21067 # IBM XL 8.0, 9.0 on PPC and BlueGene
21068 lt_prog_compiler_wl_CXX='-Wl,'
21069 lt_prog_compiler_pic_CXX='-qpic'
21070 lt_prog_compiler_static_CXX='-qstaticlink'
21071 ;;
21072 *)
21073 case `$CC -V 2>&1 | sed 5q` in
21074 *Sun\ C*)
21075 # Sun C++ 5.9
21076 lt_prog_compiler_pic_CXX='-KPIC'
21077 lt_prog_compiler_static_CXX='-Bstatic'
21078 lt_prog_compiler_wl_CXX='-Qoption ld '
21079 ;;
21080 esac
21081 ;;
21082 esac
21083 ;;
21084 lynxos*)
21085 ;;
21086 m88k*)
21087 ;;
21088 mvs*)
21089 case $cc_basename in
21090 cxx*)
21091 lt_prog_compiler_pic_CXX='-W c,exportall'
21092 ;;
21093 *)
21094 ;;
21095 esac
21096 ;;
21097 netbsd*)
21098 ;;
21099 *qnx* | *nto*)
21100 # QNX uses GNU C++, but need to define -shared option too, otherwise
21101 # it will coredump.
21102 lt_prog_compiler_pic_CXX='-fPIC -shared'
21103 ;;
21104 osf3* | osf4* | osf5*)
21105 case $cc_basename in
21106 KCC*)
21107 lt_prog_compiler_wl_CXX='--backend -Wl,'
21108 ;;
21109 RCC*)
21110 # Rational C++ 2.4.1
21111 lt_prog_compiler_pic_CXX='-pic'
21112 ;;
21113 cxx*)
21114 # Digital/Compaq C++
21115 lt_prog_compiler_wl_CXX='-Wl,'
21116 # Make sure the PIC flag is empty. It appears that all Alpha
21117 # Linux and Compaq Tru64 Unix objects are PIC.
21118 lt_prog_compiler_pic_CXX=
21119 lt_prog_compiler_static_CXX='-non_shared'
21120 ;;
21121 *)
21122 ;;
21123 esac
21124 ;;
21125 psos*)
21126 ;;
21127 solaris*)
21128 case $cc_basename in
21129 CC*)
21130 # Sun C++ 4.2, 5.x and Centerline C++
21131 lt_prog_compiler_pic_CXX='-KPIC'
21132 lt_prog_compiler_static_CXX='-Bstatic'
21133 lt_prog_compiler_wl_CXX='-Qoption ld '
21134 ;;
21135 gcx*)
21136 # Green Hills C++ Compiler
21137 lt_prog_compiler_pic_CXX='-PIC'
21138 ;;
21139 *)
21140 ;;
21141 esac
21142 ;;
21143 sunos4*)
21144 case $cc_basename in
21145 CC*)
21146 # Sun C++ 4.x
21147 lt_prog_compiler_pic_CXX='-pic'
21148 lt_prog_compiler_static_CXX='-Bstatic'
21149 ;;
21150 lcc*)
21151 # Lucid
21152 lt_prog_compiler_pic_CXX='-pic'
21153 ;;
21154 *)
21155 ;;
21156 esac
21157 ;;
21158 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21159 case $cc_basename in
21160 CC*)
21161 lt_prog_compiler_wl_CXX='-Wl,'
21162 lt_prog_compiler_pic_CXX='-KPIC'
21163 lt_prog_compiler_static_CXX='-Bstatic'
21164 ;;
21165 esac
21166 ;;
21167 tandem*)
21168 case $cc_basename in
21169 NCC*)
21170 # NonStop-UX NCC 3.20
21171 lt_prog_compiler_pic_CXX='-KPIC'
21172 ;;
21173 *)
21174 ;;
21175 esac
21176 ;;
21177 vxworks*)
21178 ;;
21179 *)
21180 lt_prog_compiler_can_build_shared_CXX=no
21181 ;;
21182 esac
21183 fi
21184
21185 case $host_os in
21186 # For platforms which do not support PIC, -DPIC is meaningless:
21187 *djgpp*)
21188 lt_prog_compiler_pic_CXX=
21189 ;;
21190 *)
21191 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21192 ;;
21193 esac
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21195 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21196
21197
21198
21199 #
21200 # Check to make sure the PIC flag actually works.
21201 #
21202 if test -n "$lt_prog_compiler_pic_CXX"; then
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21204 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21205 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21206 $as_echo_n "(cached) " >&6
21207 else
21208 lt_cv_prog_compiler_pic_works_CXX=no
21209 ac_outfile=conftest.$ac_objext
21210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21211 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21212 # Insert the option either (1) after the last *FLAGS variable, or
21213 # (2) before a word containing "conftest.", or (3) at the end.
21214 # Note that $ac_compile itself does not contain backslashes and begins
21215 # with a dollar sign (not a hyphen), so the echo should work correctly.
21216 # The option is referenced via a variable to avoid confusing sed.
21217 lt_compile=`echo "$ac_compile" | $SED \
21218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21220 -e 's:$: $lt_compiler_flag:'`
21221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21222 (eval "$lt_compile" 2>conftest.err)
21223 ac_status=$?
21224 cat conftest.err >&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 if (exit $ac_status) && test -s "$ac_outfile"; then
21227 # The compiler can only warn and ignore the option if not recognized
21228 # So say no if there are warnings other than the usual output.
21229 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21231 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21232 lt_cv_prog_compiler_pic_works_CXX=yes
21233 fi
21234 fi
21235 $RM conftest*
21236
21237 fi
21238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21239 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21240
21241 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21242 case $lt_prog_compiler_pic_CXX in
21243 "" | " "*) ;;
21244 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21245 esac
21246 else
21247 lt_prog_compiler_pic_CXX=
21248 lt_prog_compiler_can_build_shared_CXX=no
21249 fi
21250
21251 fi
21252
21253
21254
21255 #
21256 # Check to make sure the static flag actually works.
21257 #
21258 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21260 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21261 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21262 $as_echo_n "(cached) " >&6
21263 else
21264 lt_cv_prog_compiler_static_works_CXX=no
21265 save_LDFLAGS="$LDFLAGS"
21266 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21267 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21268 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21269 # The linker can only warn and ignore the option if not recognized
21270 # So say no if there are warnings
21271 if test -s conftest.err; then
21272 # Append any errors to the config.log.
21273 cat conftest.err 1>&5
21274 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21275 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21276 if diff conftest.exp conftest.er2 >/dev/null; then
21277 lt_cv_prog_compiler_static_works_CXX=yes
21278 fi
21279 else
21280 lt_cv_prog_compiler_static_works_CXX=yes
21281 fi
21282 fi
21283 $RM -r conftest*
21284 LDFLAGS="$save_LDFLAGS"
21285
21286 fi
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21288 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21289
21290 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21291 :
21292 else
21293 lt_prog_compiler_static_CXX=
21294 fi
21295
21296
21297
21298
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21300 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21301 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21302 $as_echo_n "(cached) " >&6
21303 else
21304 lt_cv_prog_compiler_c_o_CXX=no
21305 $RM -r conftest 2>/dev/null
21306 mkdir conftest
21307 cd conftest
21308 mkdir out
21309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21310
21311 lt_compiler_flag="-o out/conftest2.$ac_objext"
21312 # Insert the option either (1) after the last *FLAGS variable, or
21313 # (2) before a word containing "conftest.", or (3) at the end.
21314 # Note that $ac_compile itself does not contain backslashes and begins
21315 # with a dollar sign (not a hyphen), so the echo should work correctly.
21316 lt_compile=`echo "$ac_compile" | $SED \
21317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21319 -e 's:$: $lt_compiler_flag:'`
21320 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21321 (eval "$lt_compile" 2>out/conftest.err)
21322 ac_status=$?
21323 cat out/conftest.err >&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21326 then
21327 # The compiler can only warn and ignore the option if not recognized
21328 # So say no if there are warnings
21329 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21330 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21331 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21332 lt_cv_prog_compiler_c_o_CXX=yes
21333 fi
21334 fi
21335 chmod u+w . 2>&5
21336 $RM conftest*
21337 # SGI C++ compiler will create directory out/ii_files/ for
21338 # template instantiation
21339 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21340 $RM out/* && rmdir out
21341 cd ..
21342 $RM -r conftest
21343 $RM conftest*
21344
21345 fi
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21347 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21348
21349
21350
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21352 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21353 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21354 $as_echo_n "(cached) " >&6
21355 else
21356 lt_cv_prog_compiler_c_o_CXX=no
21357 $RM -r conftest 2>/dev/null
21358 mkdir conftest
21359 cd conftest
21360 mkdir out
21361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21362
21363 lt_compiler_flag="-o out/conftest2.$ac_objext"
21364 # Insert the option either (1) after the last *FLAGS variable, or
21365 # (2) before a word containing "conftest.", or (3) at the end.
21366 # Note that $ac_compile itself does not contain backslashes and begins
21367 # with a dollar sign (not a hyphen), so the echo should work correctly.
21368 lt_compile=`echo "$ac_compile" | $SED \
21369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21371 -e 's:$: $lt_compiler_flag:'`
21372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21373 (eval "$lt_compile" 2>out/conftest.err)
21374 ac_status=$?
21375 cat out/conftest.err >&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21378 then
21379 # The compiler can only warn and ignore the option if not recognized
21380 # So say no if there are warnings
21381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21382 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21383 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21384 lt_cv_prog_compiler_c_o_CXX=yes
21385 fi
21386 fi
21387 chmod u+w . 2>&5
21388 $RM conftest*
21389 # SGI C++ compiler will create directory out/ii_files/ for
21390 # template instantiation
21391 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21392 $RM out/* && rmdir out
21393 cd ..
21394 $RM -r conftest
21395 $RM conftest*
21396
21397 fi
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21399 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21400
21401
21402
21403
21404 hard_links="nottested"
21405 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21406 # do not overwrite the value of need_locks provided by the user
21407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21408 $as_echo_n "checking if we can lock with hard links... " >&6; }
21409 hard_links=yes
21410 $RM conftest*
21411 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21412 touch conftest.a
21413 ln conftest.a conftest.b 2>&5 || hard_links=no
21414 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21416 $as_echo "$hard_links" >&6; }
21417 if test "$hard_links" = no; then
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21419 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21420 need_locks=warn
21421 fi
21422 else
21423 need_locks=no
21424 fi
21425
21426
21427
21428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21429 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21430
21431 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21432 case $host_os in
21433 aix[4-9]*)
21434 # If we're using GNU nm, then we don't want the "-C" option.
21435 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21436 # Also, AIX nm treats weak defined symbols like other global defined
21437 # symbols, whereas GNU nm marks them as "W".
21438 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21439 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'
21440 else
21441 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'
21442 fi
21443 ;;
21444 pw32*)
21445 export_symbols_cmds_CXX="$ltdll_cmds"
21446 ;;
21447 cygwin* | mingw* | cegcc*)
21448 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'
21449 ;;
21450 *)
21451 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21452 ;;
21453 esac
21454 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21455
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21457 $as_echo "$ld_shlibs_CXX" >&6; }
21458 test "$ld_shlibs_CXX" = no && can_build_shared=no
21459
21460 with_gnu_ld_CXX=$with_gnu_ld
21461
21462
21463
21464
21465
21466
21467 #
21468 # Do we need to explicitly link libc?
21469 #
21470 case "x$archive_cmds_need_lc_CXX" in
21471 x|xyes)
21472 # Assume -lc should be added
21473 archive_cmds_need_lc_CXX=yes
21474
21475 if test "$enable_shared" = yes && test "$GCC" = yes; then
21476 case $archive_cmds_CXX in
21477 *'~'*)
21478 # FIXME: we may have to deal with multi-command sequences.
21479 ;;
21480 '$CC '*)
21481 # Test whether the compiler implicitly links with -lc since on some
21482 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21483 # to ld, don't add -lc before -lgcc.
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21485 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21486 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21487 $as_echo_n "(cached) " >&6
21488 else
21489 $RM conftest*
21490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21491
21492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21493 (eval $ac_compile) 2>&5
21494 ac_status=$?
21495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21496 test $ac_status = 0; } 2>conftest.err; then
21497 soname=conftest
21498 lib=conftest
21499 libobjs=conftest.$ac_objext
21500 deplibs=
21501 wl=$lt_prog_compiler_wl_CXX
21502 pic_flag=$lt_prog_compiler_pic_CXX
21503 compiler_flags=-v
21504 linker_flags=-v
21505 verstring=
21506 output_objdir=.
21507 libname=conftest
21508 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21509 allow_undefined_flag_CXX=
21510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21511 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21512 ac_status=$?
21513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21514 test $ac_status = 0; }
21515 then
21516 lt_cv_archive_cmds_need_lc_CXX=no
21517 else
21518 lt_cv_archive_cmds_need_lc_CXX=yes
21519 fi
21520 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21521 else
21522 cat conftest.err 1>&5
21523 fi
21524 $RM conftest*
21525
21526 fi
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21528 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21529 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21530 ;;
21531 esac
21532 fi
21533 ;;
21534 esac
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21600 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21601
21602 library_names_spec=
21603 libname_spec='lib$name'
21604 soname_spec=
21605 shrext_cmds=".so"
21606 postinstall_cmds=
21607 postuninstall_cmds=
21608 finish_cmds=
21609 finish_eval=
21610 shlibpath_var=
21611 shlibpath_overrides_runpath=unknown
21612 version_type=none
21613 dynamic_linker="$host_os ld.so"
21614 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21615 need_lib_prefix=unknown
21616 hardcode_into_libs=no
21617
21618 # when you set need_version to no, make sure it does not cause -set_version
21619 # flags to be left without arguments
21620 need_version=unknown
21621
21622 case $host_os in
21623 aix3*)
21624 version_type=linux
21625 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21626 shlibpath_var=LIBPATH
21627
21628 # AIX 3 has no versioning support, so we append a major version to the name.
21629 soname_spec='${libname}${release}${shared_ext}$major'
21630 ;;
21631
21632 aix[4-9]*)
21633 version_type=linux
21634 need_lib_prefix=no
21635 need_version=no
21636 hardcode_into_libs=yes
21637 if test "$host_cpu" = ia64; then
21638 # AIX 5 supports IA64
21639 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21640 shlibpath_var=LD_LIBRARY_PATH
21641 else
21642 # With GCC up to 2.95.x, collect2 would create an import file
21643 # for dependence libraries. The import file would start with
21644 # the line `#! .'. This would cause the generated library to
21645 # depend on `.', always an invalid library. This was fixed in
21646 # development snapshots of GCC prior to 3.0.
21647 case $host_os in
21648 aix4 | aix4.[01] | aix4.[01].*)
21649 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21650 echo ' yes '
21651 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21652 :
21653 else
21654 can_build_shared=no
21655 fi
21656 ;;
21657 esac
21658 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21659 # soname into executable. Probably we can add versioning support to
21660 # collect2, so additional links can be useful in future.
21661 if test "$aix_use_runtimelinking" = yes; then
21662 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21663 # instead of lib<name>.a to let people know that these are not
21664 # typical AIX shared libraries.
21665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21666 else
21667 # We preserve .a as extension for shared libraries through AIX4.2
21668 # and later when we are not doing run time linking.
21669 library_names_spec='${libname}${release}.a $libname.a'
21670 soname_spec='${libname}${release}${shared_ext}$major'
21671 fi
21672 shlibpath_var=LIBPATH
21673 fi
21674 ;;
21675
21676 amigaos*)
21677 case $host_cpu in
21678 powerpc)
21679 # Since July 2007 AmigaOS4 officially supports .so libraries.
21680 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21682 ;;
21683 m68k)
21684 library_names_spec='$libname.ixlibrary $libname.a'
21685 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21686 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'
21687 ;;
21688 esac
21689 ;;
21690
21691 beos*)
21692 library_names_spec='${libname}${shared_ext}'
21693 dynamic_linker="$host_os ld.so"
21694 shlibpath_var=LIBRARY_PATH
21695 ;;
21696
21697 bsdi[45]*)
21698 version_type=linux
21699 need_version=no
21700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21701 soname_spec='${libname}${release}${shared_ext}$major'
21702 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21703 shlibpath_var=LD_LIBRARY_PATH
21704 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21705 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21706 # the default ld.so.conf also contains /usr/contrib/lib and
21707 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21708 # libtool to hard-code these into programs
21709 ;;
21710
21711 cygwin* | mingw* | pw32* | cegcc*)
21712 version_type=windows
21713 shrext_cmds=".dll"
21714 need_version=no
21715 need_lib_prefix=no
21716
21717 case $GCC,$host_os in
21718 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21719 library_names_spec='$libname.dll.a'
21720 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21721 postinstall_cmds='base_file=`basename \${file}`~
21722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21723 dldir=$destdir/`dirname \$dlpath`~
21724 test -d \$dldir || mkdir -p \$dldir~
21725 $install_prog $dir/$dlname \$dldir/$dlname~
21726 chmod a+x \$dldir/$dlname~
21727 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21728 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21729 fi'
21730 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21731 dlpath=$dir/\$dldll~
21732 $RM \$dlpath'
21733 shlibpath_overrides_runpath=yes
21734
21735 case $host_os in
21736 cygwin*)
21737 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21738 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21739
21740 ;;
21741 mingw* | cegcc*)
21742 # MinGW DLLs use traditional 'lib' prefix
21743 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21744 ;;
21745 pw32*)
21746 # pw32 DLLs use 'pw' prefix rather than 'lib'
21747 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21748 ;;
21749 esac
21750 ;;
21751
21752 *)
21753 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21754 ;;
21755 esac
21756 dynamic_linker='Win32 ld.exe'
21757 # FIXME: first we should search . and the directory the executable is in
21758 shlibpath_var=PATH
21759 ;;
21760
21761 darwin* | rhapsody*)
21762 dynamic_linker="$host_os dyld"
21763 version_type=darwin
21764 need_lib_prefix=no
21765 need_version=no
21766 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21767 soname_spec='${libname}${release}${major}$shared_ext'
21768 shlibpath_overrides_runpath=yes
21769 shlibpath_var=DYLD_LIBRARY_PATH
21770 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21771
21772 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21773 ;;
21774
21775 dgux*)
21776 version_type=linux
21777 need_lib_prefix=no
21778 need_version=no
21779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21780 soname_spec='${libname}${release}${shared_ext}$major'
21781 shlibpath_var=LD_LIBRARY_PATH
21782 ;;
21783
21784 freebsd* | dragonfly*)
21785 # DragonFly does not have aout. When/if they implement a new
21786 # versioning mechanism, adjust this.
21787 if test -x /usr/bin/objformat; then
21788 objformat=`/usr/bin/objformat`
21789 else
21790 case $host_os in
21791 freebsd[23].*) objformat=aout ;;
21792 *) objformat=elf ;;
21793 esac
21794 fi
21795 version_type=freebsd-$objformat
21796 case $version_type in
21797 freebsd-elf*)
21798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21799 need_version=no
21800 need_lib_prefix=no
21801 ;;
21802 freebsd-*)
21803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21804 need_version=yes
21805 ;;
21806 esac
21807 shlibpath_var=LD_LIBRARY_PATH
21808 case $host_os in
21809 freebsd2.*)
21810 shlibpath_overrides_runpath=yes
21811 ;;
21812 freebsd3.[01]* | freebsdelf3.[01]*)
21813 shlibpath_overrides_runpath=yes
21814 hardcode_into_libs=yes
21815 ;;
21816 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21817 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21818 shlibpath_overrides_runpath=no
21819 hardcode_into_libs=yes
21820 ;;
21821 *) # from 4.6 on, and DragonFly
21822 shlibpath_overrides_runpath=yes
21823 hardcode_into_libs=yes
21824 ;;
21825 esac
21826 ;;
21827
21828 gnu*)
21829 version_type=linux
21830 need_lib_prefix=no
21831 need_version=no
21832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21833 soname_spec='${libname}${release}${shared_ext}$major'
21834 shlibpath_var=LD_LIBRARY_PATH
21835 hardcode_into_libs=yes
21836 ;;
21837
21838 haiku*)
21839 version_type=linux
21840 need_lib_prefix=no
21841 need_version=no
21842 dynamic_linker="$host_os runtime_loader"
21843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21844 soname_spec='${libname}${release}${shared_ext}$major'
21845 shlibpath_var=LIBRARY_PATH
21846 shlibpath_overrides_runpath=yes
21847 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21848 hardcode_into_libs=yes
21849 ;;
21850
21851 hpux9* | hpux10* | hpux11*)
21852 # Give a soname corresponding to the major version so that dld.sl refuses to
21853 # link against other versions.
21854 version_type=sunos
21855 need_lib_prefix=no
21856 need_version=no
21857 case $host_cpu in
21858 ia64*)
21859 shrext_cmds='.so'
21860 hardcode_into_libs=yes
21861 dynamic_linker="$host_os dld.so"
21862 shlibpath_var=LD_LIBRARY_PATH
21863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21865 soname_spec='${libname}${release}${shared_ext}$major'
21866 if test "X$HPUX_IA64_MODE" = X32; then
21867 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21868 else
21869 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21870 fi
21871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21872 ;;
21873 hppa*64*)
21874 shrext_cmds='.sl'
21875 hardcode_into_libs=yes
21876 dynamic_linker="$host_os dld.sl"
21877 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21880 soname_spec='${libname}${release}${shared_ext}$major'
21881 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21883 ;;
21884 *)
21885 shrext_cmds='.sl'
21886 dynamic_linker="$host_os dld.sl"
21887 shlibpath_var=SHLIB_PATH
21888 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21890 soname_spec='${libname}${release}${shared_ext}$major'
21891 ;;
21892 esac
21893 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21894 postinstall_cmds='chmod 555 $lib'
21895 # or fails outright, so override atomically:
21896 install_override_mode=555
21897 ;;
21898
21899 interix[3-9]*)
21900 version_type=linux
21901 need_lib_prefix=no
21902 need_version=no
21903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21904 soname_spec='${libname}${release}${shared_ext}$major'
21905 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21906 shlibpath_var=LD_LIBRARY_PATH
21907 shlibpath_overrides_runpath=no
21908 hardcode_into_libs=yes
21909 ;;
21910
21911 irix5* | irix6* | nonstopux*)
21912 case $host_os in
21913 nonstopux*) version_type=nonstopux ;;
21914 *)
21915 if test "$lt_cv_prog_gnu_ld" = yes; then
21916 version_type=linux
21917 else
21918 version_type=irix
21919 fi ;;
21920 esac
21921 need_lib_prefix=no
21922 need_version=no
21923 soname_spec='${libname}${release}${shared_ext}$major'
21924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21925 case $host_os in
21926 irix5* | nonstopux*)
21927 libsuff= shlibsuff=
21928 ;;
21929 *)
21930 case $LD in # libtool.m4 will add one of these switches to LD
21931 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21932 libsuff= shlibsuff= libmagic=32-bit;;
21933 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21934 libsuff=32 shlibsuff=N32 libmagic=N32;;
21935 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21936 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21937 *) libsuff= shlibsuff= libmagic=never-match;;
21938 esac
21939 ;;
21940 esac
21941 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21942 shlibpath_overrides_runpath=no
21943 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21944 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21945 hardcode_into_libs=yes
21946 ;;
21947
21948 # No shared lib support for Linux oldld, aout, or coff.
21949 linux*oldld* | linux*aout* | linux*coff*)
21950 dynamic_linker=no
21951 ;;
21952
21953 # This must be Linux ELF.
21954
21955 # uclinux* changes (here and below) have been submitted to the libtool
21956 # project, but have not yet been accepted: they are GCC-local changes
21957 # for the time being. (See
21958 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
21959 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
21960 version_type=linux
21961 need_lib_prefix=no
21962 need_version=no
21963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21964 soname_spec='${libname}${release}${shared_ext}$major'
21965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21966 shlibpath_var=LD_LIBRARY_PATH
21967 shlibpath_overrides_runpath=no
21968
21969 # Some binutils ld are patched to set DT_RUNPATH
21970 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21971 $as_echo_n "(cached) " >&6
21972 else
21973 lt_cv_shlibpath_overrides_runpath=no
21974 save_LDFLAGS=$LDFLAGS
21975 save_libdir=$libdir
21976 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21977 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21979 /* end confdefs.h. */
21980
21981 int
21982 main ()
21983 {
21984
21985 ;
21986 return 0;
21987 }
21988 _ACEOF
21989 if ac_fn_cxx_try_link "$LINENO"; then :
21990 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21991 lt_cv_shlibpath_overrides_runpath=yes
21992 fi
21993 fi
21994 rm -f core conftest.err conftest.$ac_objext \
21995 conftest$ac_exeext conftest.$ac_ext
21996 LDFLAGS=$save_LDFLAGS
21997 libdir=$save_libdir
21998
21999 fi
22000
22001 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22002
22003 # This implies no fast_install, which is unacceptable.
22004 # Some rework will be needed to allow for fast_install
22005 # before this can be enabled.
22006 hardcode_into_libs=yes
22007
22008 # Append ld.so.conf contents to the search path
22009 if test -f /etc/ld.so.conf; then
22010 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' ' '`
22011 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22012 fi
22013
22014 # We used to test for /lib/ld.so.1 and disable shared libraries on
22015 # powerpc, because MkLinux only supported shared libraries with the
22016 # GNU dynamic linker. Since this was broken with cross compilers,
22017 # most powerpc-linux boxes support dynamic linking these days and
22018 # people can always --disable-shared, the test was removed, and we
22019 # assume the GNU/Linux dynamic linker is in use.
22020 dynamic_linker='GNU/Linux ld.so'
22021 ;;
22022
22023 netbsd*)
22024 version_type=sunos
22025 need_lib_prefix=no
22026 need_version=no
22027 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22030 dynamic_linker='NetBSD (a.out) ld.so'
22031 else
22032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22033 soname_spec='${libname}${release}${shared_ext}$major'
22034 dynamic_linker='NetBSD ld.elf_so'
22035 fi
22036 shlibpath_var=LD_LIBRARY_PATH
22037 shlibpath_overrides_runpath=yes
22038 hardcode_into_libs=yes
22039 ;;
22040
22041 newsos6)
22042 version_type=linux
22043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22044 shlibpath_var=LD_LIBRARY_PATH
22045 shlibpath_overrides_runpath=yes
22046 ;;
22047
22048 *nto* | *qnx*)
22049 version_type=qnx
22050 need_lib_prefix=no
22051 need_version=no
22052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22053 soname_spec='${libname}${release}${shared_ext}$major'
22054 shlibpath_var=LD_LIBRARY_PATH
22055 shlibpath_overrides_runpath=no
22056 hardcode_into_libs=yes
22057 dynamic_linker='ldqnx.so'
22058 ;;
22059
22060 openbsd*)
22061 version_type=sunos
22062 sys_lib_dlsearch_path_spec="/usr/lib"
22063 need_lib_prefix=no
22064 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22065 case $host_os in
22066 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22067 *) need_version=no ;;
22068 esac
22069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22071 shlibpath_var=LD_LIBRARY_PATH
22072 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22073 case $host_os in
22074 openbsd2.[89] | openbsd2.[89].*)
22075 shlibpath_overrides_runpath=no
22076 ;;
22077 *)
22078 shlibpath_overrides_runpath=yes
22079 ;;
22080 esac
22081 else
22082 shlibpath_overrides_runpath=yes
22083 fi
22084 ;;
22085
22086 os2*)
22087 libname_spec='$name'
22088 shrext_cmds=".dll"
22089 need_lib_prefix=no
22090 library_names_spec='$libname${shared_ext} $libname.a'
22091 dynamic_linker='OS/2 ld.exe'
22092 shlibpath_var=LIBPATH
22093 ;;
22094
22095 osf3* | osf4* | osf5*)
22096 version_type=osf
22097 need_lib_prefix=no
22098 need_version=no
22099 soname_spec='${libname}${release}${shared_ext}$major'
22100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22101 shlibpath_var=LD_LIBRARY_PATH
22102 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22103 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22104 ;;
22105
22106 rdos*)
22107 dynamic_linker=no
22108 ;;
22109
22110 solaris*)
22111 version_type=linux
22112 need_lib_prefix=no
22113 need_version=no
22114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22115 soname_spec='${libname}${release}${shared_ext}$major'
22116 shlibpath_var=LD_LIBRARY_PATH
22117 shlibpath_overrides_runpath=yes
22118 hardcode_into_libs=yes
22119 # ldd complains unless libraries are executable
22120 postinstall_cmds='chmod +x $lib'
22121 ;;
22122
22123 sunos4*)
22124 version_type=sunos
22125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22126 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22127 shlibpath_var=LD_LIBRARY_PATH
22128 shlibpath_overrides_runpath=yes
22129 if test "$with_gnu_ld" = yes; then
22130 need_lib_prefix=no
22131 fi
22132 need_version=yes
22133 ;;
22134
22135 sysv4 | sysv4.3*)
22136 version_type=linux
22137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22138 soname_spec='${libname}${release}${shared_ext}$major'
22139 shlibpath_var=LD_LIBRARY_PATH
22140 case $host_vendor in
22141 sni)
22142 shlibpath_overrides_runpath=no
22143 need_lib_prefix=no
22144 runpath_var=LD_RUN_PATH
22145 ;;
22146 siemens)
22147 need_lib_prefix=no
22148 ;;
22149 motorola)
22150 need_lib_prefix=no
22151 need_version=no
22152 shlibpath_overrides_runpath=no
22153 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22154 ;;
22155 esac
22156 ;;
22157
22158 sysv4*MP*)
22159 if test -d /usr/nec ;then
22160 version_type=linux
22161 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22162 soname_spec='$libname${shared_ext}.$major'
22163 shlibpath_var=LD_LIBRARY_PATH
22164 fi
22165 ;;
22166
22167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22168 version_type=freebsd-elf
22169 need_lib_prefix=no
22170 need_version=no
22171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22172 soname_spec='${libname}${release}${shared_ext}$major'
22173 shlibpath_var=LD_LIBRARY_PATH
22174 shlibpath_overrides_runpath=yes
22175 hardcode_into_libs=yes
22176 if test "$with_gnu_ld" = yes; then
22177 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22178 else
22179 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22180 case $host_os in
22181 sco3.2v5*)
22182 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22183 ;;
22184 esac
22185 fi
22186 sys_lib_dlsearch_path_spec='/usr/lib'
22187 ;;
22188
22189 tpf*)
22190 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22191 version_type=linux
22192 need_lib_prefix=no
22193 need_version=no
22194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22195 shlibpath_var=LD_LIBRARY_PATH
22196 shlibpath_overrides_runpath=no
22197 hardcode_into_libs=yes
22198 ;;
22199
22200 uts4*)
22201 version_type=linux
22202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22203 soname_spec='${libname}${release}${shared_ext}$major'
22204 shlibpath_var=LD_LIBRARY_PATH
22205 ;;
22206
22207 *)
22208 dynamic_linker=no
22209 ;;
22210 esac
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22212 $as_echo "$dynamic_linker" >&6; }
22213 test "$dynamic_linker" = no && can_build_shared=no
22214
22215 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22216 if test "$GCC" = yes; then
22217 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22218 fi
22219
22220 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22221 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22222 fi
22223 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22224 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22225 fi
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22265 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22266 hardcode_action_CXX=
22267 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22268 test -n "$runpath_var_CXX" ||
22269 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22270
22271 # We can hardcode non-existent directories.
22272 if test "$hardcode_direct_CXX" != no &&
22273 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22274 # have to relink, otherwise we might link with an installed library
22275 # when we should be linking with a yet-to-be-installed one
22276 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22277 test "$hardcode_minus_L_CXX" != no; then
22278 # Linking always hardcodes the temporary library directory.
22279 hardcode_action_CXX=relink
22280 else
22281 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22282 hardcode_action_CXX=immediate
22283 fi
22284 else
22285 # We cannot hardcode anything, or else we can only hardcode existing
22286 # directories.
22287 hardcode_action_CXX=unsupported
22288 fi
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22290 $as_echo "$hardcode_action_CXX" >&6; }
22291
22292 if test "$hardcode_action_CXX" = relink ||
22293 test "$inherit_rpath_CXX" = yes; then
22294 # Fast installation is not supported
22295 enable_fast_install=no
22296 elif test "$shlibpath_overrides_runpath" = yes ||
22297 test "$enable_shared" = no; then
22298 # Fast installation is not necessary
22299 enable_fast_install=needless
22300 fi
22301
22302
22303
22304
22305
22306
22307
22308 fi # test -n "$compiler"
22309
22310 CC=$lt_save_CC
22311 LDCXX=$LD
22312 LD=$lt_save_LD
22313 GCC=$lt_save_GCC
22314 with_gnu_ld=$lt_save_with_gnu_ld
22315 lt_cv_path_LDCXX=$lt_cv_path_LD
22316 lt_cv_path_LD=$lt_save_path_LD
22317 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22318 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22319 fi # test "$_lt_caught_CXX_error" != yes
22320
22321 ac_ext=cpp
22322 ac_cpp='$CXXCPP $CPPFLAGS'
22323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342 # Only expand once:
22343
22344
22345
22346
22347
22348 # Identify the assembler which will work hand-in-glove with the newly
22349 # built GCC, so that we can examine its features. This is the assembler
22350 # which will be driven by the driver program.
22351 #
22352 # If build != host, and we aren't building gas in-tree, we identify a
22353 # build->target assembler and hope that it will have the same features
22354 # as the host->target assembler we'll be using.
22355 gcc_cv_gas_major_version=
22356 gcc_cv_gas_minor_version=
22357 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22358
22359 if ${gcc_cv_as+:} false; then :
22360
22361 else
22362
22363 if test -x "$DEFAULT_ASSEMBLER"; then
22364 gcc_cv_as="$DEFAULT_ASSEMBLER"
22365 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22366 && test -f ../gas/Makefile \
22367 && test x$build = x$host; then
22368 gcc_cv_as=../gas/as-new$build_exeext
22369 elif test -x as$build_exeext; then
22370 # Build using assembler in the current directory.
22371 gcc_cv_as=./as$build_exeext
22372 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22373 gcc_cv_as="$AS_FOR_TARGET"
22374 else
22375 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22376 set dummy $AS_FOR_TARGET; ac_word=$2
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22378 $as_echo_n "checking for $ac_word... " >&6; }
22379 if ${ac_cv_path_gcc_cv_as+:} false; then :
22380 $as_echo_n "(cached) " >&6
22381 else
22382 case $gcc_cv_as in
22383 [\\/]* | ?:[\\/]*)
22384 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22385 ;;
22386 *)
22387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22388 for as_dir in $PATH
22389 do
22390 IFS=$as_save_IFS
22391 test -z "$as_dir" && as_dir=.
22392 for ac_exec_ext in '' $ac_executable_extensions; do
22393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22394 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22396 break 2
22397 fi
22398 done
22399 done
22400 IFS=$as_save_IFS
22401
22402 ;;
22403 esac
22404 fi
22405 gcc_cv_as=$ac_cv_path_gcc_cv_as
22406 if test -n "$gcc_cv_as"; then
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22408 $as_echo "$gcc_cv_as" >&6; }
22409 else
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22411 $as_echo "no" >&6; }
22412 fi
22413
22414
22415 fi
22416 fi
22417
22418 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22419
22420 case "$ORIGINAL_AS_FOR_TARGET" in
22421 ./as | ./as$build_exeext) ;;
22422 *) ac_config_files="$ac_config_files as:exec-tool.in"
22423 ;;
22424 esac
22425
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22427 $as_echo_n "checking what assembler to use... " >&6; }
22428 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22429 # Single tree build which includes gas. We want to prefer it
22430 # over whatever linker top-level may have detected, since
22431 # we'll use what we're building after installation anyway.
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22433 $as_echo "newly built gas" >&6; }
22434 in_tree_gas=yes
22435 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22436 for f in $gcc_cv_as_bfd_srcdir/configure \
22437 $gcc_cv_as_gas_srcdir/configure \
22438 $gcc_cv_as_gas_srcdir/configure.ac \
22439 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22440 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22441 if test x$gcc_cv_gas_version != x; then
22442 break
22443 fi
22444 done
22445 case $gcc_cv_gas_version in
22446 VERSION=[0-9]*) ;;
22447 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22448 esac
22449 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22450 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22451 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22452 case $gcc_cv_gas_patch_version in
22453 "") gcc_cv_gas_patch_version="0" ;;
22454 esac
22455 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22456 + $gcc_cv_gas_minor_version \) \* 1000 \
22457 + $gcc_cv_gas_patch_version`
22458
22459 in_tree_gas_is_elf=no
22460 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22461 || (grep 'obj_format = multi' ../gas/Makefile \
22462 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22463 then
22464 in_tree_gas_is_elf=yes
22465 fi
22466 else
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22468 $as_echo "$gcc_cv_as" >&6; }
22469 in_tree_gas=no
22470 fi
22471
22472 default_ld=
22473 # Check whether --enable-ld was given.
22474 if test "${enable_ld+set}" = set; then :
22475 enableval=$enable_ld; case "${enableval}" in
22476 no)
22477 default_ld=ld.gold
22478 ;;
22479 esac
22480 fi
22481
22482
22483 install_gold_as_default=no
22484 # Check whether --enable-gold was given.
22485 if test "${enable_gold+set}" = set; then :
22486 enableval=$enable_gold; case "${enableval}" in
22487 default)
22488 install_gold_as_default=yes
22489 ;;
22490 yes)
22491 if test x${default_ld} != x; then
22492 install_gold_as_default=yes
22493 fi
22494 ;;
22495 no)
22496 ;;
22497 *)
22498 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22499 ;;
22500 esac
22501 fi
22502
22503
22504 # Identify the linker which will work hand-in-glove with the newly
22505 # built GCC, so that we can examine its features. This is the linker
22506 # which will be driven by the driver program.
22507 #
22508 # If build != host, and we aren't building gas in-tree, we identify a
22509 # build->target linker and hope that it will have the same features
22510 # as the host->target linker we'll be using.
22511 gcc_cv_gld_major_version=
22512 gcc_cv_gld_minor_version=
22513 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22514 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22515 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22516
22517 if ${gcc_cv_ld+:} false; then :
22518
22519 else
22520
22521 if test -x "$DEFAULT_LINKER"; then
22522 gcc_cv_ld="$DEFAULT_LINKER"
22523 elif test $install_gold_as_default = yes \
22524 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22525 && test -f ../gold/Makefile \
22526 && test x$build = x$host; then
22527 gcc_cv_ld=../gold/ld-new$build_exeext
22528 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22529 && test -f ../ld/Makefile \
22530 && test x$build = x$host; then
22531 gcc_cv_ld=../ld/ld-new$build_exeext
22532 elif test -x collect-ld$build_exeext; then
22533 # Build using linker in the current directory.
22534 gcc_cv_ld=./collect-ld$build_exeext
22535 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22536 gcc_cv_ld="$LD_FOR_TARGET"
22537 else
22538 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22539 set dummy $LD_FOR_TARGET; ac_word=$2
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22541 $as_echo_n "checking for $ac_word... " >&6; }
22542 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22543 $as_echo_n "(cached) " >&6
22544 else
22545 case $gcc_cv_ld in
22546 [\\/]* | ?:[\\/]*)
22547 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22548 ;;
22549 *)
22550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22551 for as_dir in $PATH
22552 do
22553 IFS=$as_save_IFS
22554 test -z "$as_dir" && as_dir=.
22555 for ac_exec_ext in '' $ac_executable_extensions; do
22556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22557 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22559 break 2
22560 fi
22561 done
22562 done
22563 IFS=$as_save_IFS
22564
22565 ;;
22566 esac
22567 fi
22568 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22569 if test -n "$gcc_cv_ld"; then
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22571 $as_echo "$gcc_cv_ld" >&6; }
22572 else
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22574 $as_echo "no" >&6; }
22575 fi
22576
22577
22578 fi
22579 fi
22580
22581 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22582 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22583 # if the PLUGIN_LD is set ld-new, just have it as ld
22584 # as that is the installed named.
22585 if test x$PLUGIN_LD_SUFFIX = xld-new \
22586 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22587 PLUGIN_LD_SUFFIX=ld
22588 fi
22589
22590 # Check whether --with-plugin-ld was given.
22591 if test "${with_plugin_ld+set}" = set; then :
22592 withval=$with_plugin_ld; if test x"$withval" != x; then
22593 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22594 PLUGIN_LD_SUFFIX="$withval"
22595 fi
22596 fi
22597
22598
22599
22600 cat >>confdefs.h <<_ACEOF
22601 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22602 _ACEOF
22603
22604
22605 # Check to see if we are using gold instead of ld
22606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22607 $as_echo_n "checking whether we are using gold... " >&6; }
22608 ld_is_gold=no
22609 if test x$gcc_cv_ld != x; then
22610 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22611 | grep "GNU gold" > /dev/null; then
22612 ld_is_gold=yes
22613 fi
22614 fi
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22616 $as_echo "$ld_is_gold" >&6; }
22617
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22619 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22620 # Check to see if default ld is not gold, but gold is
22621 # available and has support for split stack. If gcc was configured
22622 # with gold then no checking is done.
22623 #
22624 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22625
22626 # For platforms other than powerpc64*, enable as appropriate.
22627
22628 gold_non_default=no
22629 ld_gold=`which ${gcc_cv_ld}.gold`
22630 # Make sure this gold has minimal split stack support
22631 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22632 ld_vers=`$ld_gold --version | sed 1q`
22633 gold_vers=`echo $ld_vers | sed -n \
22634 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22635 case $target in
22636 # check that the gold version contains the complete split stack support
22637 # on powerpc64 big and little endian
22638 powerpc64*-*-*)
22639 case "$gold_vers" in
22640 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22641 ;;
22642 *) gold_non_default=no
22643 ;;
22644 esac
22645 ;;
22646 esac
22647 fi
22648 if test $gold_non_default = yes; then
22649
22650 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22651
22652 fi
22653 fi
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22655 $as_echo "$gold_non_default" >&6; }
22656
22657 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22658
22659 case "$ORIGINAL_LD_FOR_TARGET" in
22660 ./collect-ld | ./collect-ld$build_exeext) ;;
22661 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22662 ;;
22663 esac
22664
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22666 $as_echo_n "checking what linker to use... " >&6; }
22667 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22668 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22669 # Single tree build which includes ld. We want to prefer it
22670 # over whatever linker top-level may have detected, since
22671 # we'll use what we're building after installation anyway.
22672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22673 $as_echo "newly built ld" >&6; }
22674 in_tree_ld=yes
22675 in_tree_ld_is_elf=no
22676 if (grep 'EMUL = .*elf' ../ld/Makefile \
22677 || grep 'EMUL = .*linux' ../ld/Makefile \
22678 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22679 in_tree_ld_is_elf=yes
22680 elif test "$ld_is_gold" = yes; then
22681 in_tree_ld_is_elf=yes
22682 fi
22683 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
22684 do
22685 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22686 if test x$gcc_cv_gld_version != x; then
22687 break
22688 fi
22689 done
22690 case $gcc_cv_gld_version in
22691 VERSION=[0-9]*) ;;
22692 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22693 esac
22694 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22695 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22696 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22697 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22698 else
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22700 $as_echo "$gcc_cv_ld" >&6; }
22701 in_tree_ld=no
22702 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22703 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22704 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22705 fi
22706
22707
22708
22709
22710 # Figure out what nm we will be using.
22711 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22712 if ${gcc_cv_nm+:} false; then :
22713
22714 else
22715
22716 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22717 && test -f ../binutils/Makefile \
22718 && test x$build = x$host; then
22719 gcc_cv_nm=../binutils/nm-new$build_exeext
22720 elif test -x nm$build_exeext; then
22721 gcc_cv_nm=./nm$build_exeext
22722 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22723 gcc_cv_nm="$NM_FOR_TARGET"
22724 else
22725 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22726 set dummy $NM_FOR_TARGET; ac_word=$2
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22728 $as_echo_n "checking for $ac_word... " >&6; }
22729 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22730 $as_echo_n "(cached) " >&6
22731 else
22732 case $gcc_cv_nm in
22733 [\\/]* | ?:[\\/]*)
22734 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22735 ;;
22736 *)
22737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22738 for as_dir in $PATH
22739 do
22740 IFS=$as_save_IFS
22741 test -z "$as_dir" && as_dir=.
22742 for ac_exec_ext in '' $ac_executable_extensions; do
22743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22744 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22746 break 2
22747 fi
22748 done
22749 done
22750 IFS=$as_save_IFS
22751
22752 ;;
22753 esac
22754 fi
22755 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22756 if test -n "$gcc_cv_nm"; then
22757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22758 $as_echo "$gcc_cv_nm" >&6; }
22759 else
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22761 $as_echo "no" >&6; }
22762 fi
22763
22764
22765 fi
22766 fi
22767
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22769 $as_echo_n "checking what nm to use... " >&6; }
22770 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22771 # Single tree build which includes binutils.
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22773 $as_echo "newly built nm" >&6; }
22774 in_tree_nm=yes
22775 else
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22777 $as_echo "$gcc_cv_nm" >&6; }
22778 in_tree_nm=no
22779 fi
22780
22781 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22782
22783 case "$ORIGINAL_NM_FOR_TARGET" in
22784 ./nm | ./nm$build_exeext) ;;
22785 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22786 ;;
22787 esac
22788
22789
22790 # Figure out what objdump we will be using.
22791 if ${gcc_cv_objdump+:} false; then :
22792
22793 else
22794
22795 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22796 && test -f ../binutils/Makefile \
22797 && test x$build = x$host; then
22798 # Single tree build which includes binutils.
22799 gcc_cv_objdump=../binutils/objdump$build_exeext
22800 elif test -x objdump$build_exeext; then
22801 gcc_cv_objdump=./objdump$build_exeext
22802 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22803 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22804 else
22805 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22806 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22808 $as_echo_n "checking for $ac_word... " >&6; }
22809 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22810 $as_echo_n "(cached) " >&6
22811 else
22812 case $gcc_cv_objdump in
22813 [\\/]* | ?:[\\/]*)
22814 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22815 ;;
22816 *)
22817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22818 for as_dir in $PATH
22819 do
22820 IFS=$as_save_IFS
22821 test -z "$as_dir" && as_dir=.
22822 for ac_exec_ext in '' $ac_executable_extensions; do
22823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22824 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22826 break 2
22827 fi
22828 done
22829 done
22830 IFS=$as_save_IFS
22831
22832 ;;
22833 esac
22834 fi
22835 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22836 if test -n "$gcc_cv_objdump"; then
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22838 $as_echo "$gcc_cv_objdump" >&6; }
22839 else
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22841 $as_echo "no" >&6; }
22842 fi
22843
22844
22845 fi
22846 fi
22847
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22849 $as_echo_n "checking what objdump to use... " >&6; }
22850 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22851 # Single tree build which includes binutils.
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22853 $as_echo "newly built objdump" >&6; }
22854 elif test x$gcc_cv_objdump = x; then
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22856 $as_echo "not found" >&6; }
22857 else
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22859 $as_echo "$gcc_cv_objdump" >&6; }
22860 fi
22861
22862 # Figure out what readelf we will be using.
22863 if ${gcc_cv_readelf+:} false; then :
22864
22865 else
22866
22867 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22868 && test -f ../binutils/Makefile \
22869 && test x$build = x$host; then
22870 # Single tree build which includes binutils.
22871 gcc_cv_readelf=../binutils/readelf$build_exeext
22872 elif test -x readelf$build_exeext; then
22873 gcc_cv_readelf=./readelf$build_exeext
22874 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22875 gcc_cv_readelf="$READELF_FOR_TARGET"
22876 else
22877 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22878 set dummy $READELF_FOR_TARGET; ac_word=$2
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22880 $as_echo_n "checking for $ac_word... " >&6; }
22881 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22882 $as_echo_n "(cached) " >&6
22883 else
22884 case $gcc_cv_readelf in
22885 [\\/]* | ?:[\\/]*)
22886 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22887 ;;
22888 *)
22889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22890 for as_dir in $PATH
22891 do
22892 IFS=$as_save_IFS
22893 test -z "$as_dir" && as_dir=.
22894 for ac_exec_ext in '' $ac_executable_extensions; do
22895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22896 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22898 break 2
22899 fi
22900 done
22901 done
22902 IFS=$as_save_IFS
22903
22904 ;;
22905 esac
22906 fi
22907 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22908 if test -n "$gcc_cv_readelf"; then
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22910 $as_echo "$gcc_cv_readelf" >&6; }
22911 else
22912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22913 $as_echo "no" >&6; }
22914 fi
22915
22916
22917 fi
22918 fi
22919
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22921 $as_echo_n "checking what readelf to use... " >&6; }
22922 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22923 # Single tree build which includes binutils.
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22925 $as_echo "newly built readelf" >&6; }
22926 elif test x$gcc_cv_readelf = x; then
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22928 $as_echo "not found" >&6; }
22929 else
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22931 $as_echo "$gcc_cv_readelf" >&6; }
22932 fi
22933
22934 # Figure out what otool we will be using.
22935 if ${gcc_cv_otool+:} false; then :
22936
22937 else
22938
22939 if test -x otool$build_exeext; then
22940 gcc_cv_otool=./otool$build_exeext
22941 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22942 gcc_cv_otool="$OTOOL_FOR_TARGET"
22943 else
22944 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22945 set dummy $OTOOL_FOR_TARGET; ac_word=$2
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22947 $as_echo_n "checking for $ac_word... " >&6; }
22948 if ${ac_cv_path_gcc_cv_otool+:} false; then :
22949 $as_echo_n "(cached) " >&6
22950 else
22951 case $gcc_cv_otool in
22952 [\\/]* | ?:[\\/]*)
22953 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
22954 ;;
22955 *)
22956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22957 for as_dir in $PATH
22958 do
22959 IFS=$as_save_IFS
22960 test -z "$as_dir" && as_dir=.
22961 for ac_exec_ext in '' $ac_executable_extensions; do
22962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22963 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
22964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22965 break 2
22966 fi
22967 done
22968 done
22969 IFS=$as_save_IFS
22970
22971 ;;
22972 esac
22973 fi
22974 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
22975 if test -n "$gcc_cv_otool"; then
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22977 $as_echo "$gcc_cv_otool" >&6; }
22978 else
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22980 $as_echo "no" >&6; }
22981 fi
22982
22983
22984 fi
22985 fi
22986
22987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22988 $as_echo_n "checking what otool to use... " >&6; }
22989 if test x$gcc_cv_otool = x; then
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22991 $as_echo "not found" >&6; }
22992 else
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22994 $as_echo "$gcc_cv_otool" >&6; }
22995 fi
22996
22997 # Figure out what assembler alignment features are present.
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22999 $as_echo_n "checking assembler flags... " >&6; }
23000 if ${gcc_cv_as_flags+:} false; then :
23001 $as_echo_n "(cached) " >&6
23002 else
23003 case "$target" in
23004 i[34567]86-*-linux*)
23005 gcc_cv_as_flags=--32
23006 ;;
23007 x86_64-*-linux-gnux32)
23008 gcc_cv_as_flags=--x32
23009 ;;
23010 x86_64-*-linux*)
23011 gcc_cv_as_flags=--64
23012 ;;
23013 powerpc*-*-darwin*)
23014 gcc_cv_as_flags="-arch ppc"
23015 ;;
23016 *)
23017 gcc_cv_as_flags=" "
23018 ;;
23019 esac
23020 fi
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23022 $as_echo "$gcc_cv_as_flags" >&6; }
23023
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23025 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23026 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23027 $as_echo_n "(cached) " >&6
23028 else
23029 gcc_cv_as_balign_and_p2align=no
23030 if test $in_tree_gas = yes; then
23031 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23032 then gcc_cv_as_balign_and_p2align=yes
23033 fi
23034 elif test x$gcc_cv_as != x; then
23035 $as_echo '.balign 4
23036 .p2align 2' > conftest.s
23037 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23039 (eval $ac_try) 2>&5
23040 ac_status=$?
23041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23042 test $ac_status = 0; }; }
23043 then
23044 gcc_cv_as_balign_and_p2align=yes
23045 else
23046 echo "configure: failed program was" >&5
23047 cat conftest.s >&5
23048 fi
23049 rm -f conftest.o conftest.s
23050 fi
23051 fi
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23053 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23054 if test $gcc_cv_as_balign_and_p2align = yes; then
23055
23056 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23057
23058 fi
23059
23060
23061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23062 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23063 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23064 $as_echo_n "(cached) " >&6
23065 else
23066 gcc_cv_as_max_skip_p2align=no
23067 if test $in_tree_gas = yes; then
23068 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23069 then gcc_cv_as_max_skip_p2align=yes
23070 fi
23071 elif test x$gcc_cv_as != x; then
23072 $as_echo '.p2align 4,,7' > conftest.s
23073 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23075 (eval $ac_try) 2>&5
23076 ac_status=$?
23077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23078 test $ac_status = 0; }; }
23079 then
23080 gcc_cv_as_max_skip_p2align=yes
23081 else
23082 echo "configure: failed program was" >&5
23083 cat conftest.s >&5
23084 fi
23085 rm -f conftest.o conftest.s
23086 fi
23087 fi
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23089 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23090 if test $gcc_cv_as_max_skip_p2align = yes; then
23091
23092 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23093
23094 fi
23095
23096
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23098 $as_echo_n "checking assembler for .literal16... " >&6; }
23099 if ${gcc_cv_as_literal16+:} false; then :
23100 $as_echo_n "(cached) " >&6
23101 else
23102 gcc_cv_as_literal16=no
23103 if test $in_tree_gas = yes; then
23104 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23105 then gcc_cv_as_literal16=yes
23106 fi
23107 elif test x$gcc_cv_as != x; then
23108 $as_echo '.literal16' > conftest.s
23109 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23111 (eval $ac_try) 2>&5
23112 ac_status=$?
23113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23114 test $ac_status = 0; }; }
23115 then
23116 gcc_cv_as_literal16=yes
23117 else
23118 echo "configure: failed program was" >&5
23119 cat conftest.s >&5
23120 fi
23121 rm -f conftest.o conftest.s
23122 fi
23123 fi
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23125 $as_echo "$gcc_cv_as_literal16" >&6; }
23126 if test $gcc_cv_as_literal16 = yes; then
23127
23128 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23129
23130 fi
23131
23132
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23134 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23135 if ${gcc_cv_as_subsection_m1+:} false; then :
23136 $as_echo_n "(cached) " >&6
23137 else
23138 gcc_cv_as_subsection_m1=no
23139 if test $in_tree_gas = yes; then
23140 if test $in_tree_gas_is_elf = yes \
23141 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23142 then gcc_cv_as_subsection_m1=yes
23143 fi
23144 elif test x$gcc_cv_as != x; then
23145 $as_echo 'conftest_label1: .word 0
23146 .subsection -1
23147 conftest_label2: .word 0
23148 .previous' > conftest.s
23149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23151 (eval $ac_try) 2>&5
23152 ac_status=$?
23153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23154 test $ac_status = 0; }; }
23155 then
23156 if test x$gcc_cv_nm != x; then
23157 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23158 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23159 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23160 then :
23161 else gcc_cv_as_subsection_m1=yes
23162 fi
23163 rm -f conftest.nm1 conftest.nm2
23164 fi
23165 else
23166 echo "configure: failed program was" >&5
23167 cat conftest.s >&5
23168 fi
23169 rm -f conftest.o conftest.s
23170 fi
23171 fi
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23173 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23174 if test $gcc_cv_as_subsection_m1 = yes; then
23175
23176 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23177
23178 fi
23179
23180
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23182 $as_echo_n "checking assembler for .weak... " >&6; }
23183 if ${gcc_cv_as_weak+:} false; then :
23184 $as_echo_n "(cached) " >&6
23185 else
23186 gcc_cv_as_weak=no
23187 if test $in_tree_gas = yes; then
23188 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23189 then gcc_cv_as_weak=yes
23190 fi
23191 elif test x$gcc_cv_as != x; then
23192 $as_echo ' .weak foobar' > conftest.s
23193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23195 (eval $ac_try) 2>&5
23196 ac_status=$?
23197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23198 test $ac_status = 0; }; }
23199 then
23200 gcc_cv_as_weak=yes
23201 else
23202 echo "configure: failed program was" >&5
23203 cat conftest.s >&5
23204 fi
23205 rm -f conftest.o conftest.s
23206 fi
23207 fi
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23209 $as_echo "$gcc_cv_as_weak" >&6; }
23210 if test $gcc_cv_as_weak = yes; then
23211
23212 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23213
23214 fi
23215
23216
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23218 $as_echo_n "checking assembler for .weakref... " >&6; }
23219 if ${gcc_cv_as_weakref+:} false; then :
23220 $as_echo_n "(cached) " >&6
23221 else
23222 gcc_cv_as_weakref=no
23223 if test $in_tree_gas = yes; then
23224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23225 then gcc_cv_as_weakref=yes
23226 fi
23227 elif test x$gcc_cv_as != x; then
23228 $as_echo ' .weakref foobar, barfnot' > conftest.s
23229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23231 (eval $ac_try) 2>&5
23232 ac_status=$?
23233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23234 test $ac_status = 0; }; }
23235 then
23236 gcc_cv_as_weakref=yes
23237 else
23238 echo "configure: failed program was" >&5
23239 cat conftest.s >&5
23240 fi
23241 rm -f conftest.o conftest.s
23242 fi
23243 fi
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23245 $as_echo "$gcc_cv_as_weakref" >&6; }
23246 if test $gcc_cv_as_weakref = yes; then
23247
23248 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23249
23250 fi
23251
23252
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23254 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23255 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23256 $as_echo_n "(cached) " >&6
23257 else
23258 gcc_cv_as_nsubspa_comdat=no
23259 if test $in_tree_gas = yes; then
23260 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23261 then gcc_cv_as_nsubspa_comdat=yes
23262 fi
23263 elif test x$gcc_cv_as != x; then
23264 $as_echo ' .SPACE $TEXT$
23265 .NSUBSPA $CODE$,COMDAT' > conftest.s
23266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23268 (eval $ac_try) 2>&5
23269 ac_status=$?
23270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23271 test $ac_status = 0; }; }
23272 then
23273 gcc_cv_as_nsubspa_comdat=yes
23274 else
23275 echo "configure: failed program was" >&5
23276 cat conftest.s >&5
23277 fi
23278 rm -f conftest.o conftest.s
23279 fi
23280 fi
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23282 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23283 if test $gcc_cv_as_nsubspa_comdat = yes; then
23284
23285 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23286
23287 fi
23288
23289
23290 # .hidden needs to be supported in both the assembler and the linker,
23291 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23292 # This is irritatingly difficult to feature test for; we have to check the
23293 # date string after the version number. If we've got an in-tree
23294 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23295 # to be safe.
23296 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23297 case "${target}" in
23298 *-*-aix*)
23299 conftest_s=' .globl foobar,hidden'
23300 ;;
23301 *)
23302 conftest_s=' .hidden foobar
23303 foobar:'
23304 ;;
23305 esac
23306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23307 $as_echo_n "checking assembler for .hidden... " >&6; }
23308 if ${gcc_cv_as_hidden+:} false; then :
23309 $as_echo_n "(cached) " >&6
23310 else
23311 gcc_cv_as_hidden=no
23312 if test $in_tree_gas = yes; then
23313 if test $in_tree_gas_is_elf = yes \
23314 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23315 then gcc_cv_as_hidden=yes
23316 fi
23317 elif test x$gcc_cv_as != x; then
23318 $as_echo "$conftest_s" > conftest.s
23319 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23321 (eval $ac_try) 2>&5
23322 ac_status=$?
23323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23324 test $ac_status = 0; }; }
23325 then
23326 gcc_cv_as_hidden=yes
23327 else
23328 echo "configure: failed program was" >&5
23329 cat conftest.s >&5
23330 fi
23331 rm -f conftest.o conftest.s
23332 fi
23333 fi
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23335 $as_echo "$gcc_cv_as_hidden" >&6; }
23336
23337
23338 case "${target}" in
23339 *-*-darwin*)
23340 # Darwin as has some visibility support, though with a different syntax.
23341 gcc_cv_as_hidden=yes
23342 ;;
23343 esac
23344
23345 # gnu_indirect_function type is an extension proposed at
23346 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23347 # selection of function implementation
23348 # Check whether --enable-gnu-indirect-function was given.
23349 if test "${enable_gnu_indirect_function+set}" = set; then :
23350 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23351 yes | no) ;;
23352 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23353 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23354 esac
23355 else
23356 enable_gnu_indirect_function="$default_gnu_indirect_function"
23357 fi
23358
23359
23360 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23361
23362 cat >>confdefs.h <<_ACEOF
23363 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23364 _ACEOF
23365
23366
23367
23368 if test $in_tree_ld != yes ; then
23369 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23370 if echo "$ld_ver" | grep GNU > /dev/null; then
23371 if test x"$ld_is_gold" = xyes; then
23372 # GNU gold --version looks like this:
23373 #
23374 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23375 #
23376 # We extract the binutils version which is more familiar and specific
23377 # than the gold version.
23378 ld_vers=`echo $ld_ver | sed -n \
23379 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23380 else
23381 # GNU ld --version looks like this:
23382 #
23383 # GNU ld (GNU Binutils) 2.21.51.20110225
23384 ld_vers=`echo $ld_ver | sed -n \
23385 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23386 fi
23387 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
23388 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23389 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23390 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23391 else
23392 case "${target}" in
23393 *-*-solaris2*)
23394 # Solaris 2 ld -V output looks like this for a regular version:
23395 #
23396 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23397 #
23398 # but test versions add stuff at the end:
23399 #
23400 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23401 #
23402 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23403 # numbers can be used in ld.so.1 feature checks even if a different
23404 # linker is configured.
23405 ld_ver=`$gcc_cv_ld -V 2>&1`
23406 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23407 ld_vers=`echo $ld_ver | sed -n \
23408 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23409 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23410 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23411 fi
23412 ;;
23413 esac
23414 fi
23415 fi
23416
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23418 $as_echo_n "checking linker for .hidden support... " >&6; }
23419 if ${gcc_cv_ld_hidden+:} false; then :
23420 $as_echo_n "(cached) " >&6
23421 else
23422 if test $in_tree_ld = yes ; then
23423 gcc_cv_ld_hidden=no
23424 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 \
23425 && test $in_tree_ld_is_elf = yes; then
23426 gcc_cv_ld_hidden=yes
23427 fi
23428 else
23429 gcc_cv_ld_hidden=yes
23430 if test x"$ld_is_gold" = xyes; then
23431 :
23432 elif echo "$ld_ver" | grep GNU > /dev/null; then
23433 case "${target}" in
23434 mmix-knuth-mmixware)
23435 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23436 gcc_cv_ld_hidden=no
23437 ;;
23438 esac
23439 if test 0"$ld_date" -lt 20020404; then
23440 if test -n "$ld_date"; then
23441 # If there was date string, but was earlier than 2002-04-04, fail
23442 gcc_cv_ld_hidden=no
23443 elif test -z "$ld_vers"; then
23444 # If there was no date string nor ld version number, something is wrong
23445 gcc_cv_ld_hidden=no
23446 else
23447 test -z "$ld_vers_patch" && ld_vers_patch=0
23448 if test "$ld_vers_major" -lt 2; then
23449 gcc_cv_ld_hidden=no
23450 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23451 gcc_cv_ld_hidden="no"
23452 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23453 gcc_cv_ld_hidden=no
23454 fi
23455 fi
23456 fi
23457 else
23458 case "${target}" in
23459 *-*-aix[789]*)
23460 gcc_cv_ld_hidden=yes
23461 ;;
23462 *-*-darwin*)
23463 # Darwin ld has some visibility support.
23464 gcc_cv_ld_hidden=yes
23465 ;;
23466 hppa64*-*-hpux* | ia64*-*-hpux*)
23467 gcc_cv_ld_hidden=yes
23468 ;;
23469 *-*-solaris2*)
23470 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23471 # .symbolic was only added in Solaris 9 12/02.
23472 gcc_cv_ld_hidden=yes
23473 ;;
23474 *)
23475 gcc_cv_ld_hidden=no
23476 ;;
23477 esac
23478 fi
23479 fi
23480 fi
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23482 $as_echo "$gcc_cv_ld_hidden" >&6; }
23483 libgcc_visibility=no
23484
23485
23486 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23487 libgcc_visibility=yes
23488
23489 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23490
23491 fi
23492
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23494 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23495 gcc_cv_ld_ro_rw_mix=unknown
23496 if test $in_tree_ld = yes ; then
23497 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 \
23498 && test $in_tree_ld_is_elf = yes; then
23499 gcc_cv_ld_ro_rw_mix=read-write
23500 fi
23501 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23502 echo '.section myfoosect, "a"' > conftest1.s
23503 echo '.section myfoosect, "aw"' > conftest2.s
23504 echo '.byte 1' >> conftest2.s
23505 echo '.section myfoosect, "a"' > conftest3.s
23506 echo '.byte 0' >> conftest3.s
23507 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23508 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23509 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23510 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23511 conftest2.o conftest3.o > /dev/null 2>&1; then
23512 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23513 | sed -e '/myfoosect/!d' -e N`
23514 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23515 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23516 gcc_cv_ld_ro_rw_mix=read-only
23517 else
23518 gcc_cv_ld_ro_rw_mix=read-write
23519 fi
23520 fi
23521 fi
23522 rm -f conftest.* conftest[123].*
23523 fi
23524 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23525
23526 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23527
23528 fi
23529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23530 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23531
23532 # Check whether --enable-initfini-array was given.
23533 if test "${enable_initfini_array+set}" = set; then :
23534 enableval=$enable_initfini_array;
23535 else
23536
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23538 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23539 if ${gcc_cv_initfini_array+:} false; then :
23540 $as_echo_n "(cached) " >&6
23541 else
23542 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23543 case "${target}" in
23544 ia64-*)
23545 if test "$cross_compiling" = yes; then :
23546 gcc_cv_initfini_array=no
23547 else
23548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23549 /* end confdefs.h. */
23550
23551 #ifndef __ELF__
23552 #error Not an ELF OS
23553 #endif
23554 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23555 if it can be used. */
23556 static int x = -1;
23557 int main (void) { return x; }
23558 int foo (void) { x = 0; }
23559 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23560
23561 _ACEOF
23562 if ac_fn_cxx_try_run "$LINENO"; then :
23563 gcc_cv_initfini_array=yes
23564 else
23565 gcc_cv_initfini_array=no
23566 fi
23567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23568 conftest.$ac_objext conftest.beam conftest.$ac_ext
23569 fi
23570 ;;
23571 *)
23572 gcc_cv_initfini_array=no
23573 if test $in_tree_ld = yes ; then
23574 if test "$gcc_cv_gld_major_version" -eq 2 \
23575 -a "$gcc_cv_gld_minor_version" -ge 22 \
23576 -o "$gcc_cv_gld_major_version" -gt 2 \
23577 && test $in_tree_ld_is_elf = yes; then
23578 gcc_cv_initfini_array=yes
23579 fi
23580 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23581 case $target:$gas in
23582 *:yes)
23583 sh_flags='"a"'
23584 sh_type='%progbits'
23585 ;;
23586 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23587 sh_flags='"a"'
23588 sh_type='@progbits'
23589 ;;
23590 sparc*-*-solaris2*:no)
23591 sh_flags='#alloc'
23592 sh_type='#progbits'
23593 sh_quote='"'
23594 ;;
23595 esac
23596 case "$target:$gnu_ld" in
23597 *:yes)
23598 cat > conftest.s <<EOF
23599 .section .dtors,$sh_flags,$sh_type
23600 .balign 4
23601 .byte 'A', 'A', 'A', 'A'
23602 .section .ctors,$sh_flags,$sh_type
23603 .balign 4
23604 .byte 'B', 'B', 'B', 'B'
23605 .section .fini_array.65530,$sh_flags,$sh_type
23606 .balign 4
23607 .byte 'C', 'C', 'C', 'C'
23608 .section .init_array.65530,$sh_flags,$sh_type
23609 .balign 4
23610 .byte 'D', 'D', 'D', 'D'
23611 .section .dtors.64528,$sh_flags,$sh_type
23612 .balign 4
23613 .byte 'E', 'E', 'E', 'E'
23614 .section .ctors.64528,$sh_flags,$sh_type
23615 .balign 4
23616 .byte 'F', 'F', 'F', 'F'
23617 .section .fini_array.01005,$sh_flags,$sh_type
23618 .balign 4
23619 .byte 'G', 'G', 'G', 'G'
23620 .section .init_array.01005,$sh_flags,$sh_type
23621 .balign 4
23622 .byte 'H', 'H', 'H', 'H'
23623 .text
23624 .globl _start
23625 _start:
23626 EOF
23627 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23628 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23629 && $gcc_cv_objdump -s -j .init_array conftest \
23630 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23631 && $gcc_cv_objdump -s -j .fini_array conftest \
23632 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23633 gcc_cv_initfini_array=yes
23634 fi
23635 ;;
23636 *-*-solaris2*:no)
23637 # When Solaris ld added constructor priority support, it was
23638 # decided to only handle .init_array.N/.fini_array.N since
23639 # there was no need for backwards compatibility with
23640 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23641 # sections with correct execution order resp. to
23642 # .init_array/.fini_array, while gld merges them into
23643 # .init_array/.fini_array.
23644 cat > conftest.s <<EOF
23645 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23646 .align 4
23647 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23648 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23649 .align 4
23650 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23651 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23652 .align 4
23653 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23654 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23655 .align 4
23656 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23657 .text
23658 .globl _start
23659 _start:
23660 EOF
23661 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23662 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23663 && $gcc_cv_objdump -s -j .init_array conftest \
23664 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
23665 && $gcc_cv_objdump -s -j .fini_array conftest \
23666 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
23667 gcc_cv_initfini_array=yes
23668 fi
23669 ;;
23670 esac
23671 rm -f conftest conftest.*
23672 fi
23673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23674 /* end confdefs.h. */
23675
23676 #ifndef __ELF__
23677 # error Not an ELF OS
23678 #endif
23679 #include <stdlib.h>
23680 #if defined __GLIBC_PREREQ
23681 # if __GLIBC_PREREQ (2, 4)
23682 # else
23683 # error GLIBC 2.4 required
23684 # endif
23685 #else
23686 # if defined __sun__ && defined __svr4__
23687 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23688 # else
23689 # error The C library not known to support .init_array/.fini_array
23690 # endif
23691 #endif
23692
23693 _ACEOF
23694 if ac_fn_cxx_try_cpp "$LINENO"; then :
23695
23696 else
23697 gcc_cv_initfini_array=no
23698 fi
23699 rm -f conftest.err conftest.i conftest.$ac_ext;;
23700 esac
23701 else
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23703 $as_echo_n "checking cross compile... guessing... " >&6; }
23704 gcc_cv_initfini_array=no
23705 fi
23706 fi
23707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23708 $as_echo "$gcc_cv_initfini_array" >&6; }
23709 enable_initfini_array=$gcc_cv_initfini_array
23710
23711 fi
23712
23713
23714 cat >>confdefs.h <<_ACEOF
23715 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23716 _ACEOF
23717
23718
23719
23720 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23722 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23723 if ${gcc_cv_as_leb128+:} false; then :
23724 $as_echo_n "(cached) " >&6
23725 else
23726 gcc_cv_as_leb128=no
23727 if test $in_tree_gas = yes; then
23728 if test $in_tree_gas_is_elf = yes \
23729 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23730 then gcc_cv_as_leb128=yes
23731 fi
23732 elif test x$gcc_cv_as != x; then
23733 $as_echo ' .data
23734 .uleb128 L2 - L1
23735 L1:
23736 .uleb128 1280
23737 .sleb128 -1010
23738 L2:' > conftest.s
23739 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23741 (eval $ac_try) 2>&5
23742 ac_status=$?
23743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23744 test $ac_status = 0; }; }
23745 then
23746 # GAS versions before 2.11 do not support uleb128,
23747 # despite appearing to.
23748 # ??? There exists an elf-specific test that will crash
23749 # the assembler. Perhaps it's better to figure out whether
23750 # arbitrary sections are supported and try the test.
23751 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23752 if echo "$as_ver" | grep GNU > /dev/null; then
23753 as_vers=`echo $as_ver | sed -n \
23754 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23755 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23756 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23757 if test $as_major -eq 2 && test $as_minor -lt 11
23758 then :
23759 else gcc_cv_as_leb128=yes
23760 fi
23761 fi
23762 else
23763 echo "configure: failed program was" >&5
23764 cat conftest.s >&5
23765 fi
23766 rm -f conftest.o conftest.s
23767 fi
23768 fi
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23770 $as_echo "$gcc_cv_as_leb128" >&6; }
23771 if test $gcc_cv_as_leb128 = yes; then
23772
23773 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23774
23775 fi
23776 if test $gcc_cv_as_leb128 != yes; then
23777
23778 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23779
23780 fi
23781
23782 # Determine if an .eh_frame section is read-only.
23783 gcc_fn_eh_frame_ro () {
23784 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23785 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23786 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23787 }
23788
23789 # Check if we have assembler support for unwind directives.
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23791 $as_echo_n "checking assembler for cfi directives... " >&6; }
23792 if ${gcc_cv_as_cfi_directive+:} false; then :
23793 $as_echo_n "(cached) " >&6
23794 else
23795 gcc_cv_as_cfi_directive=no
23796 if test x$gcc_cv_as != x; then
23797 $as_echo ' .text
23798 .cfi_startproc
23799 .cfi_offset 0, 0
23800 .cfi_same_value 1
23801 .cfi_def_cfa 1, 2
23802 .cfi_escape 1, 2, 3, 4, 5
23803 .cfi_endproc' > conftest.s
23804 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23806 (eval $ac_try) 2>&5
23807 ac_status=$?
23808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23809 test $ac_status = 0; }; }
23810 then
23811 case "$target" in
23812 *-*-solaris*)
23813 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23814 # read-only and read-write sections, we need to make sure that the
23815 # assembler used emits read-write .eh_frame sections.
23816 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23817 gcc_cv_as_cfi_directive=yes
23818 elif test "x$gcc_cv_objdump" = x; then
23819 # No objdump, err on the side of caution.
23820 gcc_cv_as_cfi_directive=no
23821 else
23822 if test x$gas = xyes; then
23823 as_32_opt="--32"
23824 as_64_opt="--64"
23825 else
23826 as_32_opt="-m32"
23827 as_64_opt="-m64"
23828 fi
23829 case "$target" in
23830 sparc*-*-solaris2.*)
23831 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23832 if gcc_fn_eh_frame_ro $as_32_opt \
23833 || gcc_fn_eh_frame_ro $as_64_opt; then
23834 gcc_cv_as_cfi_directive=no
23835 else
23836 gcc_cv_as_cfi_directive=yes
23837 fi
23838 ;;
23839 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23840 # On Solaris/x86, make sure that GCC and assembler agree on using
23841 # read-only .eh_frame sections for 64-bit.
23842 if gcc_fn_eh_frame_ro $as_32_opt; then
23843 gcc_cv_as_cfi_directive=no
23844 elif gcc_fn_eh_frame_ro $as_64_opt; then
23845 gcc_cv_as_cfi_directive=yes
23846 else
23847 gcc_cv_as_cfi_directive=no
23848 fi
23849 ;;
23850 esac
23851 fi
23852 ;;
23853 *-*-*)
23854 gcc_cv_as_cfi_directive=yes
23855 ;;
23856 esac
23857 else
23858 echo "configure: failed program was" >&5
23859 cat conftest.s >&5
23860 fi
23861 rm -f conftest.o conftest.s
23862 fi
23863 fi
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23865 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23866
23867
23868 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23870 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23871 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23872 $as_echo_n "(cached) " >&6
23873 else
23874 gcc_cv_as_cfi_advance_working=no
23875 if test x$gcc_cv_as != x; then
23876 $as_echo ' .text
23877 .cfi_startproc
23878 .cfi_adjust_cfa_offset 64
23879 .skip 75040, 0
23880 .cfi_adjust_cfa_offset 128
23881 .cfi_endproc' > conftest.s
23882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23884 (eval $ac_try) 2>&5
23885 ac_status=$?
23886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23887 test $ac_status = 0; }; }
23888 then
23889
23890 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23891 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23892 gcc_cv_as_cfi_advance_working=yes
23893 fi
23894
23895 else
23896 echo "configure: failed program was" >&5
23897 cat conftest.s >&5
23898 fi
23899 rm -f conftest.o conftest.s
23900 fi
23901 fi
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23903 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23904
23905
23906 else
23907 # no objdump, err on the side of caution
23908 gcc_cv_as_cfi_advance_working=no
23909 fi
23910
23911
23912 cat >>confdefs.h <<_ACEOF
23913 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23914 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23915 _ACEOF
23916
23917
23918
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23920 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23921 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23922 $as_echo_n "(cached) " >&6
23923 else
23924 gcc_cv_as_cfi_personality_directive=no
23925 if test x$gcc_cv_as != x; then
23926 $as_echo ' .text
23927 .cfi_startproc
23928 .cfi_personality 0, symbol
23929 .cfi_endproc' > conftest.s
23930 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23932 (eval $ac_try) 2>&5
23933 ac_status=$?
23934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23935 test $ac_status = 0; }; }
23936 then
23937 gcc_cv_as_cfi_personality_directive=yes
23938 else
23939 echo "configure: failed program was" >&5
23940 cat conftest.s >&5
23941 fi
23942 rm -f conftest.o conftest.s
23943 fi
23944 fi
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23946 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23947
23948
23949
23950 cat >>confdefs.h <<_ACEOF
23951 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23952 _ACEOF
23953
23954
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23956 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23957 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23958 $as_echo_n "(cached) " >&6
23959 else
23960 gcc_cv_as_cfi_sections_directive=no
23961 if test x$gcc_cv_as != x; then
23962 $as_echo ' .text
23963 .cfi_sections .debug_frame, .eh_frame
23964 .cfi_startproc
23965 .cfi_endproc' > conftest.s
23966 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23968 (eval $ac_try) 2>&5
23969 ac_status=$?
23970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23971 test $ac_status = 0; }; }
23972 then
23973 case $target_os in
23974 win32 | pe | cygwin* | mingw32*)
23975 # Need to check that we generated the correct relocation for the
23976 # .debug_frame section. This was fixed for binutils 2.21.
23977 gcc_cv_as_cfi_sections_directive=no
23978 if test "x$gcc_cv_objdump" != x; then
23979 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23980 grep secrel > /dev/null; then
23981 gcc_cv_as_cfi_sections_directive=yes
23982 fi
23983 fi
23984 ;;
23985 *)
23986 gcc_cv_as_cfi_sections_directive=yes
23987 ;;
23988 esac
23989 else
23990 echo "configure: failed program was" >&5
23991 cat conftest.s >&5
23992 fi
23993 rm -f conftest.o conftest.s
23994 fi
23995 fi
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23997 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23998
23999
24000
24001
24002 cat >>confdefs.h <<_ACEOF
24003 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24004 _ACEOF
24005
24006
24007 # GAS versions up to and including 2.11.0 may mis-optimize
24008 # .eh_frame data.
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24010 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24011 if ${gcc_cv_as_eh_frame+:} false; then :
24012 $as_echo_n "(cached) " >&6
24013 else
24014 gcc_cv_as_eh_frame=no
24015 if test $in_tree_gas = yes; then
24016 if test $in_tree_gas_is_elf = yes \
24017 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24018 then gcc_cv_as_eh_frame=yes
24019 fi
24020 elif test x$gcc_cv_as != x; then
24021 $as_echo ' .text
24022 .LFB1:
24023 .4byte 0
24024 .L1:
24025 .4byte 0
24026 .LFE1:
24027 .section .eh_frame,"aw",@progbits
24028 __FRAME_BEGIN__:
24029 .4byte .LECIE1-.LSCIE1
24030 .LSCIE1:
24031 .4byte 0x0
24032 .byte 0x1
24033 .ascii "z\0"
24034 .byte 0x1
24035 .byte 0x78
24036 .byte 0x1a
24037 .byte 0x0
24038 .byte 0x4
24039 .4byte 1
24040 .p2align 1
24041 .LECIE1:
24042 .LSFDE1:
24043 .4byte .LEFDE1-.LASFDE1
24044 .LASFDE1:
24045 .4byte .LASFDE1-__FRAME_BEGIN__
24046 .4byte .LFB1
24047 .4byte .LFE1-.LFB1
24048 .byte 0x4
24049 .4byte .LFE1-.LFB1
24050 .byte 0x4
24051 .4byte .L1-.LFB1
24052 .LEFDE1:' > conftest.s
24053 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24055 (eval $ac_try) 2>&5
24056 ac_status=$?
24057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24058 test $ac_status = 0; }; }
24059 then
24060 cat > conftest.lit <<EOF
24061 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24062 0010 01000000 12000000 18000000 00000000 ................
24063 0020 08000000 04080000 0044 .........D
24064 EOF
24065 cat > conftest.big <<EOF
24066 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24067 0010 00000001 00000012 00000018 00000000 ................
24068 0020 00000008 04000000 0844 .........D
24069 EOF
24070 # If the assembler didn't choke, and we can objdump,
24071 # and we got the correct data, then succeed.
24072 # The text in the here-document typically retains its unix-style line
24073 # endings, while the output of objdump will use host line endings.
24074 # Therefore, use diff -b for the comparisons.
24075 if test x$gcc_cv_objdump != x \
24076 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24077 | tail -3 > conftest.got \
24078 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24079 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24080 then
24081 gcc_cv_as_eh_frame=yes
24082 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24084 (eval $ac_try) 2>&5
24085 ac_status=$?
24086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24087 test $ac_status = 0; }; }; then
24088 gcc_cv_as_eh_frame=buggy
24089 else
24090 # Uh oh, what do we do now?
24091 gcc_cv_as_eh_frame=no
24092 fi
24093 else
24094 echo "configure: failed program was" >&5
24095 cat conftest.s >&5
24096 fi
24097 rm -f conftest.o conftest.s
24098 fi
24099 fi
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24101 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24102
24103
24104
24105 if test $gcc_cv_as_eh_frame = buggy; then
24106
24107 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24108
24109 fi
24110
24111 # Test if the assembler supports the section flag 'e' or #exclude for
24112 # specifying an excluded section.
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24114 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24115 if ${gcc_cv_as_section_exclude_e+:} false; then :
24116 $as_echo_n "(cached) " >&6
24117 else
24118 gcc_cv_as_section_exclude_e=no
24119 if test $in_tree_gas = yes; then
24120 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24121 then gcc_cv_as_section_exclude_e=yes
24122 fi
24123 elif test x$gcc_cv_as != x; then
24124 $as_echo '.section foo1,"e"
24125 .byte 0,0,0,0' > conftest.s
24126 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24128 (eval $ac_try) 2>&5
24129 ac_status=$?
24130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24131 test $ac_status = 0; }; }
24132 then
24133 gcc_cv_as_section_exclude_e=yes
24134 else
24135 echo "configure: failed program was" >&5
24136 cat conftest.s >&5
24137 fi
24138 rm -f conftest.o conftest.s
24139 fi
24140 fi
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24142 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24143
24144
24145 if test $gcc_cv_as_section_exclude_e = no; then
24146 case "${target}" in
24147 # Solaris as uses #exclude instead.
24148 *-*-solaris2*)
24149 case "${target}" in
24150 sparc*-*-solaris2*)
24151 conftest_s='.section "foo1", #exclude'
24152 ;;
24153 i?86-*-solaris2* | x86_64-*-solaris2*)
24154 conftest_s='.section foo1, #exclude'
24155 ;;
24156 esac
24157 ;;
24158 esac
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24160 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24161 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24162 $as_echo_n "(cached) " >&6
24163 else
24164 gcc_cv_as_section_exclude_hash=no
24165 if test x$gcc_cv_as != x; then
24166 $as_echo "$conftest_s
24167 .byte 0,0,0,0" > conftest.s
24168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24170 (eval $ac_try) 2>&5
24171 ac_status=$?
24172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24173 test $ac_status = 0; }; }
24174 then
24175 gcc_cv_as_section_exclude_hash=yes
24176 else
24177 echo "configure: failed program was" >&5
24178 cat conftest.s >&5
24179 fi
24180 rm -f conftest.o conftest.s
24181 fi
24182 fi
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24184 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24185
24186
24187 fi
24188
24189 cat >>confdefs.h <<_ACEOF
24190 #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`
24191 _ACEOF
24192
24193
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24195 $as_echo_n "checking assembler for section merging support... " >&6; }
24196 if ${gcc_cv_as_shf_merge+:} false; then :
24197 $as_echo_n "(cached) " >&6
24198 else
24199 gcc_cv_as_shf_merge=no
24200 if test $in_tree_gas = yes; then
24201 if test $in_tree_gas_is_elf = yes \
24202 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24203 then gcc_cv_as_shf_merge=yes
24204 fi
24205 elif test x$gcc_cv_as != x; then
24206 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24209 (eval $ac_try) 2>&5
24210 ac_status=$?
24211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24212 test $ac_status = 0; }; }
24213 then
24214 gcc_cv_as_shf_merge=yes
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_shf_merge" >&5
24223 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24224
24225
24226 if test $gcc_cv_as_shf_merge = no; then
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24228 $as_echo_n "checking assembler for section merging support... " >&6; }
24229 if ${gcc_cv_as_shf_merge+:} false; then :
24230 $as_echo_n "(cached) " >&6
24231 else
24232 gcc_cv_as_shf_merge=no
24233 if test $in_tree_gas = yes; then
24234 if test $in_tree_gas_is_elf = yes \
24235 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24236 then gcc_cv_as_shf_merge=yes
24237 fi
24238 elif test x$gcc_cv_as != x; then
24239 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24242 (eval $ac_try) 2>&5
24243 ac_status=$?
24244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24245 test $ac_status = 0; }; }
24246 then
24247 gcc_cv_as_shf_merge=yes
24248 else
24249 echo "configure: failed program was" >&5
24250 cat conftest.s >&5
24251 fi
24252 rm -f conftest.o conftest.s
24253 fi
24254 fi
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24256 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24257
24258
24259 fi
24260
24261 cat >>confdefs.h <<_ACEOF
24262 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24263 _ACEOF
24264
24265
24266 gcc_cv_ld_aligned_shf_merge=yes
24267 case "$target" in
24268 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24269 # alignment > 1.
24270 sparc*-*-solaris2.11*)
24271 if test x"$gnu_ld" = xno \
24272 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24273 gcc_cv_ld_aligned_shf_merge=no
24274 fi
24275 ;;
24276 esac
24277
24278 cat >>confdefs.h <<_ACEOF
24279 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24280 _ACEOF
24281
24282
24283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24284 $as_echo_n "checking assembler for stabs directive... " >&6; }
24285 if ${gcc_cv_as_stabs_directive+:} false; then :
24286 $as_echo_n "(cached) " >&6
24287 else
24288 gcc_cv_as_stabs_directive=no
24289 if test x$gcc_cv_as != x; then
24290 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24291 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24293 (eval $ac_try) 2>&5
24294 ac_status=$?
24295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24296 test $ac_status = 0; }; }
24297 then
24298 gcc_cv_as_stabs_directive=yes
24299 else
24300 echo "configure: failed program was" >&5
24301 cat conftest.s >&5
24302 fi
24303 rm -f conftest.o conftest.s
24304 fi
24305 fi
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24307 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24308 if test $gcc_cv_as_stabs_directive = yes; then
24309
24310 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24311
24312 fi
24313
24314
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24316 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24317 if ${gcc_cv_as_comdat_group+:} false; then :
24318 $as_echo_n "(cached) " >&6
24319 else
24320 gcc_cv_as_comdat_group=no
24321 if test $in_tree_gas = yes; then
24322 if test $in_tree_gas_is_elf = yes \
24323 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24324 then gcc_cv_as_comdat_group=yes
24325 fi
24326 elif test x$gcc_cv_as != x; then
24327 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24328 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24330 (eval $ac_try) 2>&5
24331 ac_status=$?
24332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24333 test $ac_status = 0; }; }
24334 then
24335 gcc_cv_as_comdat_group=yes
24336 else
24337 echo "configure: failed program was" >&5
24338 cat conftest.s >&5
24339 fi
24340 rm -f conftest.o conftest.s
24341 fi
24342 fi
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24344 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24345
24346
24347 if test $gcc_cv_as_comdat_group = yes; then
24348 gcc_cv_as_comdat_group_percent=no
24349 gcc_cv_as_comdat_group_group=no
24350 else
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24352 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24353 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24354 $as_echo_n "(cached) " >&6
24355 else
24356 gcc_cv_as_comdat_group_percent=no
24357 if test $in_tree_gas = yes; then
24358 if test $in_tree_gas_is_elf = yes \
24359 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24360 then gcc_cv_as_comdat_group_percent=yes
24361 fi
24362 elif test x$gcc_cv_as != x; then
24363 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24364 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24366 (eval $ac_try) 2>&5
24367 ac_status=$?
24368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24369 test $ac_status = 0; }; }
24370 then
24371 gcc_cv_as_comdat_group_percent=yes
24372 else
24373 echo "configure: failed program was" >&5
24374 cat conftest.s >&5
24375 fi
24376 rm -f conftest.o conftest.s
24377 fi
24378 fi
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24380 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24381
24382
24383 if test $gcc_cv_as_comdat_group_percent = yes; then
24384 gcc_cv_as_comdat_group_group=no
24385 else
24386 case "${target}" in
24387 # Sun as uses a completely different syntax.
24388 *-*-solaris2*)
24389 case "${target}" in
24390 sparc*-*-solaris2*)
24391 conftest_s='
24392 .group foo,".text%foo",#comdat
24393 .section ".text%foo", #alloc,#execinstr,#progbits
24394 .globl foo
24395 foo:
24396 '
24397 ;;
24398 i?86-*-solaris2* | x86_64-*-solaris2*)
24399 conftest_s='
24400 .group foo,.text%foo,#comdat
24401 .section .text%foo, "ax", @progbits
24402 .globl foo
24403 foo:
24404 '
24405 ;;
24406 esac
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24408 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24409 if ${gcc_cv_as_comdat_group_group+:} false; then :
24410 $as_echo_n "(cached) " >&6
24411 else
24412 gcc_cv_as_comdat_group_group=no
24413 if test x$gcc_cv_as != x; then
24414 $as_echo "$conftest_s" > conftest.s
24415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24417 (eval $ac_try) 2>&5
24418 ac_status=$?
24419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24420 test $ac_status = 0; }; }
24421 then
24422 gcc_cv_as_comdat_group_group=yes
24423 else
24424 echo "configure: failed program was" >&5
24425 cat conftest.s >&5
24426 fi
24427 rm -f conftest.o conftest.s
24428 fi
24429 fi
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24431 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24432
24433
24434 ;;
24435 esac
24436 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24437 gcc_cv_as_comdat_group_group=no
24438 fi
24439 fi
24440 fi
24441 if test x"$ld_is_gold" = xyes; then
24442 comdat_group=yes
24443 elif test $in_tree_ld = yes ; then
24444 comdat_group=no
24445 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 \
24446 && test $in_tree_ld_is_elf = yes; then
24447 comdat_group=yes
24448 fi
24449 elif echo "$ld_ver" | grep GNU > /dev/null; then
24450 comdat_group=yes
24451 if test 0"$ld_date" -lt 20050308; then
24452 if test -n "$ld_date"; then
24453 # If there was date string, but was earlier than 2005-03-08, fail
24454 comdat_group=no
24455 elif test "$ld_vers_major" -lt 2; then
24456 comdat_group=no
24457 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24458 comdat_group=no
24459 fi
24460 fi
24461 else
24462 case "${target}" in
24463 *-*-solaris2.1[1-9]*)
24464 comdat_group=no
24465 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24466 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24467 # version 1.688.
24468 #
24469 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24470 # least ld version 1.2267.
24471 if test "$ld_vers_major" -gt 1; then
24472 comdat_group=yes
24473 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24474 comdat_group=yes
24475 elif test "$ld_vers_minor" -ge 2267; then
24476 comdat_group=yes
24477 fi
24478 ;;
24479 *)
24480 # Assume linkers other than GNU ld don't support COMDAT group.
24481 comdat_group=no
24482 ;;
24483 esac
24484 fi
24485 # Allow overriding the automatic COMDAT group tests above.
24486 # Check whether --enable-comdat was given.
24487 if test "${enable_comdat+set}" = set; then :
24488 enableval=$enable_comdat; comdat_group="$enable_comdat"
24489 fi
24490
24491 if test $comdat_group = no; then
24492 gcc_cv_as_comdat_group=no
24493 gcc_cv_as_comdat_group_percent=no
24494 gcc_cv_as_comdat_group_group=no
24495 fi
24496
24497 cat >>confdefs.h <<_ACEOF
24498 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24499 || test $gcc_cv_as_comdat_group_percent = yes \
24500 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24501 _ACEOF
24502
24503
24504 # Restrict this test to Solaris/x86: other targets define this statically.
24505 case "${target}" in
24506 i?86-*-solaris2* | x86_64-*-solaris2*)
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24508 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24509 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24510 hidden_linkonce=yes
24511 else
24512 case "${target}" in
24513 # Full support for hidden thunks in linkonce sections only appeared in
24514 # Solaris 11/OpenSolaris.
24515 *-*-solaris2.1[1-9]*)
24516 hidden_linkonce=yes
24517 ;;
24518 *)
24519 hidden_linkonce=no
24520 ;;
24521 esac
24522 fi
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24524 $as_echo "$hidden_linkonce" >&6; }
24525
24526 cat >>confdefs.h <<_ACEOF
24527 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24528 _ACEOF
24529
24530 ;;
24531 esac
24532
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24534 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24535 if ${gcc_cv_as_is_stmt+:} false; then :
24536 $as_echo_n "(cached) " >&6
24537 else
24538 gcc_cv_as_is_stmt=no
24539 if test $in_tree_gas = yes; then
24540 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24541 then gcc_cv_as_is_stmt=yes
24542 fi
24543 elif test x$gcc_cv_as != x; then
24544 $as_echo ' .text
24545 .file 1 "conf.c"
24546 .loc 1 1 0 is_stmt 1' > conftest.s
24547 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24549 (eval $ac_try) 2>&5
24550 ac_status=$?
24551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24552 test $ac_status = 0; }; }
24553 then
24554 gcc_cv_as_is_stmt=yes
24555 else
24556 echo "configure: failed program was" >&5
24557 cat conftest.s >&5
24558 fi
24559 rm -f conftest.o conftest.s
24560 fi
24561 fi
24562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24563 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24564 if test $gcc_cv_as_is_stmt = yes; then
24565
24566 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24567
24568 fi
24569
24570
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24572 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24573 if ${gcc_cv_as_discriminator+:} false; then :
24574 $as_echo_n "(cached) " >&6
24575 else
24576 gcc_cv_as_discriminator=no
24577 if test $in_tree_gas = yes; then
24578 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24579 then gcc_cv_as_discriminator=yes
24580 fi
24581 elif test x$gcc_cv_as != x; then
24582 $as_echo ' .text
24583 .file 1 "conf.c"
24584 .loc 1 1 0 discriminator 1' > conftest.s
24585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24587 (eval $ac_try) 2>&5
24588 ac_status=$?
24589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24590 test $ac_status = 0; }; }
24591 then
24592 gcc_cv_as_discriminator=yes
24593 else
24594 echo "configure: failed program was" >&5
24595 cat conftest.s >&5
24596 fi
24597 rm -f conftest.o conftest.s
24598 fi
24599 fi
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24601 $as_echo "$gcc_cv_as_discriminator" >&6; }
24602 if test $gcc_cv_as_discriminator = yes; then
24603
24604 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24605
24606 fi
24607
24608
24609 # Catch the newlib flag of the same name so we can gate GCC features on it.
24610 # Check whether --enable-newlib-nano-formatted-io was given.
24611 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24612 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
24613 yes|no)
24614 ;;
24615 *)
24616 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24617 ;;
24618 esac
24619 fi
24620
24621
24622 # Thread-local storage - the check is heavily parameterized.
24623 conftest_s=
24624 tls_first_major=
24625 tls_first_minor=
24626 tls_as_opt=
24627 case "$target" in
24628 alpha*-*-*)
24629 conftest_s='
24630 .section ".tdata","awT",@progbits
24631 foo: .long 25
24632 .text
24633 ldq $27,__tls_get_addr($29) !literal!1
24634 lda $16,foo($29) !tlsgd!1
24635 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24636 ldq $27,__tls_get_addr($29) !literal!2
24637 lda $16,foo($29) !tlsldm!2
24638 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24639 ldq $1,foo($29) !gotdtprel
24640 ldah $2,foo($29) !dtprelhi
24641 lda $3,foo($2) !dtprello
24642 lda $4,foo($29) !dtprel
24643 ldq $1,foo($29) !gottprel
24644 ldah $2,foo($29) !tprelhi
24645 lda $3,foo($2) !tprello
24646 lda $4,foo($29) !tprel'
24647 tls_first_major=2
24648 tls_first_minor=13
24649 tls_as_opt=--fatal-warnings
24650 ;;
24651 arc*-*-*)
24652 conftest_s='
24653 add_s r0,r0, @foo@tpoff'
24654 tls_first_major=2
24655 tls_first_minor=23
24656 ;;
24657 cris-*-*|crisv32-*-*)
24658 conftest_s='
24659 .section ".tdata","awT",@progbits
24660 x: .long 25
24661 .text
24662 move.d x:IE,$r10
24663 nop'
24664 tls_first_major=2
24665 tls_first_minor=20
24666 tls_as_opt=--fatal-warnings
24667 ;;
24668 frv*-*-*)
24669 conftest_s='
24670 .section ".tdata","awT",@progbits
24671 x: .long 25
24672 .text
24673 call #gettlsoff(x)'
24674 tls_first_major=2
24675 tls_first_minor=14
24676 ;;
24677 hppa*-*-linux*)
24678 conftest_s='
24679 t1: .reg %r20
24680 t2: .reg %r21
24681 gp: .reg %r19
24682 .section ".tdata","awT",@progbits
24683 foo: .long 25
24684 .text
24685 .align 4
24686 addil LT%foo-$tls_gdidx$,gp
24687 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24688 b __tls_get_addr
24689 nop
24690 addil LT%foo-$tls_ldidx$,gp
24691 b __tls_get_addr
24692 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24693 addil LR%foo-$tls_dtpoff$,%ret0
24694 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24695 mfctl %cr27,%t1
24696 addil LT%foo-$tls_ieoff$,gp
24697 ldw RT%foo-$tls_ieoff$(%r1),%t2
24698 add %t1,%t2,%t3
24699 mfctl %cr27,%t1
24700 addil LR%foo-$tls_leoff$,%t1
24701 ldo RR%foo-$tls_leoff$(%r1),%t2'
24702 tls_first_major=2
24703 tls_first_minor=15
24704 tls_as_opt=--fatal-warnings
24705 ;;
24706 arm*-*-*)
24707 conftest_s='
24708 .section ".tdata","awT",%progbits
24709 foo: .long 25
24710 .text
24711 .word foo(gottpoff)
24712 .word foo(tpoff)
24713 .word foo(tlsgd)
24714 .word foo(tlsldm)
24715 .word foo(tlsldo)'
24716 tls_first_major=2
24717 tls_first_minor=17
24718 ;;
24719 i[34567]86-*-* | x86_64-*-*)
24720 case "$target" in
24721 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
24722 on_solaris=yes
24723 ;;
24724 *)
24725 on_solaris=no
24726 ;;
24727 esac
24728 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24729 conftest_s='
24730 .section .tdata,"awt",@progbits'
24731 tls_first_major=0
24732 tls_first_minor=0
24733 tls_section_flag=t
24734
24735 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24736
24737 else
24738 conftest_s='
24739 .section ".tdata","awT",@progbits'
24740 tls_first_major=2
24741 tls_first_minor=14
24742 tls_section_flag=T
24743 tls_as_opt="--fatal-warnings"
24744 fi
24745 case "$target" in
24746 i[34567]86-*-*)
24747 conftest_s="$conftest_s
24748 foo: .long 25
24749 .text
24750 movl %gs:0, %eax
24751 leal foo@tlsgd(,%ebx,1), %eax
24752 leal foo@tlsldm(%ebx), %eax
24753 leal foo@dtpoff(%eax), %edx
24754 movl foo@gottpoff(%ebx), %eax
24755 subl foo@gottpoff(%ebx), %eax
24756 addl foo@gotntpoff(%ebx), %eax
24757 movl foo@indntpoff, %eax
24758 movl \$foo@tpoff, %eax
24759 subl \$foo@tpoff, %eax
24760 leal foo@ntpoff(%ecx), %eax"
24761 ;;
24762 x86_64-*-*)
24763 if test x$on_solaris = xyes; then
24764 case $gas_flag in
24765 yes) tls_as_opt="$tls_as_opt --64" ;;
24766 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24767 esac
24768 fi
24769 conftest_s="$conftest_s
24770 foo: .long 25
24771 .text
24772 movq %fs:0, %rax
24773 leaq foo@tlsgd(%rip), %rdi
24774 leaq foo@tlsld(%rip), %rdi
24775 leaq foo@dtpoff(%rax), %rdx
24776 movq foo@gottpoff(%rip), %rax
24777 movq \$foo@tpoff, %rax"
24778 ;;
24779 esac
24780 ;;
24781 ia64-*-*)
24782 conftest_s='
24783 .section ".tdata","awT",@progbits
24784 foo: data8 25
24785 .text
24786 addl r16 = @ltoff(@dtpmod(foo#)), gp
24787 addl r17 = @ltoff(@dtprel(foo#)), gp
24788 addl r18 = @ltoff(@tprel(foo#)), gp
24789 addl r19 = @dtprel(foo#), gp
24790 adds r21 = @dtprel(foo#), r13
24791 movl r23 = @dtprel(foo#)
24792 addl r20 = @tprel(foo#), gp
24793 adds r22 = @tprel(foo#), r13
24794 movl r24 = @tprel(foo#)'
24795 tls_first_major=2
24796 tls_first_minor=13
24797 tls_as_opt=--fatal-warnings
24798 ;;
24799 microblaze*-*-*)
24800 conftest_s='
24801 .section .tdata,"awT",@progbits
24802 x:
24803 .word 2
24804 .text
24805 addik r5,r20,x@TLSGD
24806 addik r5,r20,x@TLSLDM'
24807 tls_first_major=2
24808 tls_first_minor=20
24809 tls_as_opt='--fatal-warnings'
24810 ;;
24811 mips*-*-*)
24812 conftest_s='
24813 .section .tdata,"awT",@progbits
24814 x:
24815 .word 2
24816 .text
24817 addiu $4, $28, %tlsgd(x)
24818 addiu $4, $28, %tlsldm(x)
24819 lui $4, %dtprel_hi(x)
24820 addiu $4, $4, %dtprel_lo(x)
24821 lw $4, %gottprel(x)($28)
24822 lui $4, %tprel_hi(x)
24823 addiu $4, $4, %tprel_lo(x)'
24824 tls_first_major=2
24825 tls_first_minor=16
24826 tls_as_opt='-32 --fatal-warnings'
24827 ;;
24828 m68k-*-*)
24829 conftest_s='
24830 .section .tdata,"awT",@progbits
24831 x:
24832 .word 2
24833 .text
24834 foo:
24835 move.l x@TLSGD(%a5),%a0
24836 move.l x@TLSLDM(%a5),%a0
24837 move.l x@TLSLDO(%a5),%a0
24838 move.l x@TLSIE(%a5),%a0
24839 move.l x@TLSLE(%a5),%a0'
24840 tls_first_major=2
24841 tls_first_minor=19
24842 tls_as_opt='--fatal-warnings'
24843 ;;
24844 nios2-*-*)
24845 conftest_s='
24846 .section ".tdata","awT",@progbits'
24847 tls_first_major=2
24848 tls_first_minor=23
24849 tls_as_opt="--fatal-warnings"
24850 ;;
24851 aarch64*-*-*)
24852 conftest_s='
24853 .section ".tdata","awT",%progbits
24854 foo: .long 25
24855 .text
24856 adrp x0, :tlsgd:x
24857 add x0, x0, #:tlsgd_lo12:x
24858 bl __tls_get_addr
24859 nop'
24860 tls_first_major=2
24861 tls_first_minor=20
24862 tls_as_opt='--fatal-warnings'
24863 ;;
24864 or1k*-*-*)
24865 conftest_s='
24866 .section ".tdata","awT",@progbits
24867 foo: .long 25
24868 .text
24869 l.movhi r3, tpoffha(foo)
24870 l.add r3, r3, r10
24871 l.lwz r4, tpofflo(foo)(r3)'
24872 tls_first_major=2
24873 tls_first_minor=30
24874 tls_as_opt=--fatal-warnings
24875 ;;
24876 powerpc-ibm-aix*)
24877 conftest_s='
24878 .extern __get_tpointer
24879 .toc
24880 LC..1:
24881 .tc a[TC],a[TL]@le
24882 .csect .text[PR]
24883 .tlstest:
24884 lwz 9,LC..1(2)
24885 bla __get_tpointer
24886 lwzx 3,9,3
24887 .globl a
24888 .csect a[TL],4
24889 a:
24890 .space 4'
24891 tls_first_major=0
24892 tls_first_minor=0
24893 ;;
24894 powerpc64*-*-*)
24895 conftest_s='
24896 .section ".tdata","awT",@progbits
24897 .align 3
24898 ld0: .space 8
24899 ld1: .space 8
24900 x1: .space 8
24901 x2: .space 8
24902 x3: .space 8
24903 .text
24904 addi 3,2,ld0@got@tlsgd
24905 bl .__tls_get_addr
24906 nop
24907 addi 3,2,ld1@toc
24908 bl .__tls_get_addr
24909 nop
24910 addi 3,2,x1@got@tlsld
24911 bl .__tls_get_addr
24912 nop
24913 addi 9,3,x1@dtprel
24914 bl .__tls_get_addr
24915 nop
24916 addis 9,3,x2@dtprel@ha
24917 addi 9,9,x2@dtprel@l
24918 bl .__tls_get_addr
24919 nop
24920 ld 9,x3@got@dtprel(2)
24921 add 9,9,3
24922 bl .__tls_get_addr
24923 nop'
24924 tls_first_major=2
24925 tls_first_minor=14
24926 tls_as_opt="-a64 --fatal-warnings"
24927 ;;
24928 powerpc*-*-*)
24929 conftest_s='
24930 .section ".tdata","awT",@progbits
24931 .align 2
24932 ld0: .space 4
24933 ld1: .space 4
24934 x1: .space 4
24935 x2: .space 4
24936 x3: .space 4
24937 .text
24938 addi 3,31,ld0@got@tlsgd
24939 bl __tls_get_addr
24940 addi 3,31,x1@got@tlsld
24941 bl __tls_get_addr
24942 addi 9,3,x1@dtprel
24943 addis 9,3,x2@dtprel@ha
24944 addi 9,9,x2@dtprel@l
24945 lwz 9,x3@got@tprel(31)
24946 add 9,9,x@tls
24947 addi 9,2,x1@tprel
24948 addis 9,2,x2@tprel@ha
24949 addi 9,9,x2@tprel@l'
24950 tls_first_major=2
24951 tls_first_minor=14
24952 tls_as_opt="-a32 --fatal-warnings"
24953 ;;
24954 riscv*-*-*)
24955 conftest_s='
24956 .section .tdata,"awT",@progbits
24957 x: .word 2
24958 .text
24959 la.tls.gd a0,x
24960 call __tls_get_addr'
24961 tls_first_major=2
24962 tls_first_minor=21
24963 tls_as_opt='--fatal-warnings'
24964 ;;
24965 s390-*-*)
24966 conftest_s='
24967 .section ".tdata","awT",@progbits
24968 foo: .long 25
24969 .text
24970 .long foo@TLSGD
24971 .long foo@TLSLDM
24972 .long foo@DTPOFF
24973 .long foo@NTPOFF
24974 .long foo@GOTNTPOFF
24975 .long foo@INDNTPOFF
24976 l %r1,foo@GOTNTPOFF(%r12)
24977 l %r1,0(%r1):tls_load:foo
24978 bas %r14,0(%r1,%r13):tls_gdcall:foo
24979 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24980 tls_first_major=2
24981 tls_first_minor=14
24982 tls_as_opt="-m31 --fatal-warnings"
24983 ;;
24984 s390x-*-*)
24985 conftest_s='
24986 .section ".tdata","awT",@progbits
24987 foo: .long 25
24988 .text
24989 .quad foo@TLSGD
24990 .quad foo@TLSLDM
24991 .quad foo@DTPOFF
24992 .quad foo@NTPOFF
24993 .quad foo@GOTNTPOFF
24994 lg %r1,foo@GOTNTPOFF(%r12)
24995 larl %r1,foo@INDNTPOFF
24996 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24997 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24998 tls_first_major=2
24999 tls_first_minor=14
25000 tls_as_opt="-m64 -Aesame --fatal-warnings"
25001 ;;
25002 sh-*-* | sh[123456789lbe]*-*-*)
25003 conftest_s='
25004 .section ".tdata","awT",@progbits
25005 foo: .long 25
25006 .text
25007 .long foo@TLSGD
25008 .long foo@TLSLDM
25009 .long foo@DTPOFF
25010 .long foo@GOTTPOFF
25011 .long foo@TPOFF'
25012 tls_first_major=2
25013 tls_first_minor=13
25014 tls_as_opt=--fatal-warnings
25015 ;;
25016 sparc*-*-*)
25017 case "$target" in
25018 sparc*-sun-solaris2.*)
25019 on_solaris=yes
25020 ;;
25021 *)
25022 on_solaris=no
25023 ;;
25024 esac
25025 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25026 conftest_s='
25027 .section ".tdata",#alloc,#write,#tls'
25028 tls_first_major=0
25029 tls_first_minor=0
25030 else
25031 conftest_s='
25032 .section ".tdata","awT",@progbits'
25033 tls_first_major=2
25034 tls_first_minor=14
25035 tls_as_opt="-32 --fatal-warnings"
25036 fi
25037 conftest_s="$conftest_s
25038 foo: .long 25
25039 .text
25040 sethi %tgd_hi22(foo), %o0
25041 add %o0, %tgd_lo10(foo), %o1
25042 add %l7, %o1, %o0, %tgd_add(foo)
25043 call __tls_get_addr, %tgd_call(foo)
25044 sethi %tldm_hi22(foo), %l1
25045 add %l1, %tldm_lo10(foo), %l2
25046 add %l7, %l2, %o0, %tldm_add(foo)
25047 call __tls_get_addr, %tldm_call(foo)
25048 sethi %tldo_hix22(foo), %l3
25049 xor %l3, %tldo_lox10(foo), %l4
25050 add %o0, %l4, %l5, %tldo_add(foo)
25051 sethi %tie_hi22(foo), %o3
25052 add %o3, %tie_lo10(foo), %o3
25053 ld [%l7 + %o3], %o2, %tie_ld(foo)
25054 add %g7, %o2, %o4, %tie_add(foo)
25055 sethi %tle_hix22(foo), %l1
25056 xor %l1, %tle_lox10(foo), %o5
25057 ld [%g7 + %o5], %o1"
25058 ;;
25059 tilepro*-*-*)
25060 conftest_s='
25061 .section ".tdata","awT",@progbits
25062 foo: .long 25
25063 .text
25064 addli r0, zero, tls_gd(foo)
25065 auli r0, zero, tls_gd_ha16(foo)
25066 addli r0, r0, tls_gd_lo16(foo)
25067 jal __tls_get_addr
25068 addli r0, zero, tls_ie(foo)
25069 auli r0, r0, tls_ie_ha16(foo)
25070 addli r0, r0, tls_ie_lo16(foo)'
25071 tls_first_major=2
25072 tls_first_minor=22
25073 tls_as_opt="--fatal-warnings"
25074 ;;
25075 tilegx*-*-*)
25076 conftest_s='
25077 .section ".tdata","awT",@progbits
25078 foo: .long 25
25079 .text
25080 shl16insli r0, zero, hw0_last_tls_gd(foo)
25081 shl16insli r0, zero, hw1_last_tls_gd(foo)
25082 shl16insli r0, r0, hw0_tls_gd(foo)
25083 jal __tls_get_addr
25084 shl16insli r0, zero, hw1_last_tls_ie(foo)
25085 shl16insli r0, r0, hw0_tls_ie(foo)'
25086 tls_first_major=2
25087 tls_first_minor=22
25088 tls_as_opt="--fatal-warnings"
25089 ;;
25090 xtensa*-*-*)
25091 conftest_s='
25092 .section ".tdata","awT",@progbits
25093 foo: .long 25
25094 .text
25095 movi a8, foo@TLSFUNC
25096 movi a10, foo@TLSARG
25097 callx8.tls a8, foo@TLSCALL'
25098 tls_first_major=2
25099 tls_first_minor=19
25100 ;;
25101 esac
25102 set_have_as_tls=no
25103 if test "x$enable_tls" = xno ; then
25104 : # TLS explicitly disabled.
25105 elif test "x$enable_tls" = xyes ; then
25106 set_have_as_tls=yes # TLS explicitly enabled.
25107 elif test -z "$tls_first_major"; then
25108 : # If we don't have a check, assume no support.
25109 else
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25111 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25112 if ${gcc_cv_as_tls+:} false; then :
25113 $as_echo_n "(cached) " >&6
25114 else
25115 gcc_cv_as_tls=no
25116 if test $in_tree_gas = yes; then
25117 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25118 then gcc_cv_as_tls=yes
25119 fi
25120 elif test x$gcc_cv_as != x; then
25121 $as_echo "$conftest_s" > conftest.s
25122 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25124 (eval $ac_try) 2>&5
25125 ac_status=$?
25126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25127 test $ac_status = 0; }; }
25128 then
25129 gcc_cv_as_tls=yes
25130 else
25131 echo "configure: failed program was" >&5
25132 cat conftest.s >&5
25133 fi
25134 rm -f conftest.o conftest.s
25135 fi
25136 fi
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25138 $as_echo "$gcc_cv_as_tls" >&6; }
25139 if test $gcc_cv_as_tls = yes; then
25140 set_have_as_tls=yes
25141 fi
25142
25143 fi
25144 if test $set_have_as_tls = yes ; then
25145
25146 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25147
25148 fi
25149
25150 # Target-specific assembler checks.
25151
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25153 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25154 gcc_cv_ld_static_dynamic=no
25155 gcc_cv_ld_static_option='-Bstatic'
25156 gcc_cv_ld_dynamic_option='-Bdynamic'
25157 if test $in_tree_ld = yes ; then
25158 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
25159 gcc_cv_ld_static_dynamic=yes
25160 fi
25161 elif test x$gcc_cv_ld != x; then
25162 # Check if linker supports -Bstatic/-Bdynamic option
25163 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25164 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25165 gcc_cv_ld_static_dynamic=yes
25166 else
25167 case "$target" in
25168 # AIX ld uses -b flags
25169 *-*-aix4.[23]* | *-*-aix[5-9]*)
25170 gcc_cv_ld_static_dynamic=yes
25171 gcc_cv_ld_static_option="-bstatic"
25172 gcc_cv_ld_dynamic_option="-bdynamic"
25173 ;;
25174 # HP-UX ld uses -a flags to select between shared and archive.
25175 *-*-hpux*)
25176 if test x"$gnu_ld" = xno; then
25177 gcc_cv_ld_static_dynamic=yes
25178 gcc_cv_ld_static_option="-aarchive_shared"
25179 gcc_cv_ld_dynamic_option="-adefault"
25180 fi
25181 ;;
25182 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25183 *-*-solaris2*)
25184 gcc_cv_ld_static_dynamic=yes
25185 ;;
25186 esac
25187 fi
25188 fi
25189 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25190
25191 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25192
25193
25194 cat >>confdefs.h <<_ACEOF
25195 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25196 _ACEOF
25197
25198
25199 cat >>confdefs.h <<_ACEOF
25200 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25201 _ACEOF
25202
25203 fi
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25205 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25206
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25208 $as_echo_n "checking linker --version-script option... " >&6; }
25209 gcc_cv_ld_version_script=no
25210 ld_version_script_option=''
25211 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25212 gcc_cv_ld_version_script=yes
25213 ld_version_script_option='--version-script'
25214 elif test x$gcc_cv_ld != x; then
25215 case "$target" in
25216 # Solaris 2 ld always supports -M. It also supports a subset of
25217 # --version-script since Solaris 11.4, but requires
25218 # -z gnu-version-script-compat to activate.
25219 *-*-solaris2*)
25220 gcc_cv_ld_version_script=yes
25221 ld_version_script_option='-M'
25222 ;;
25223 esac
25224 fi
25225 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25227 $as_echo "$gcc_cv_ld_version_script" >&6; }
25228
25229
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25231 $as_echo_n "checking linker soname option... " >&6; }
25232 gcc_cv_ld_soname=no
25233 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25234 gcc_cv_ld_soname=yes
25235 ld_soname_option='-soname'
25236 elif test x$gcc_cv_ld != x; then
25237 case "$target" in
25238 *-*-darwin*)
25239 gcc_cv_ld_soname=yes
25240 ld_soname_option='-install_name'
25241 ;;
25242 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25243 # ld compatiblity since some Solaris 10 update.
25244 *-*-solaris2*)
25245 gcc_cv_ld_soname=yes
25246 ld_soname_option='-h'
25247 ;;
25248 esac
25249 fi
25250 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25252 $as_echo "$gcc_cv_ld_soname" >&6; }
25253
25254
25255 if test x"$demangler_in_ld" = xyes; then
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25257 $as_echo_n "checking linker --demangle support... " >&6; }
25258 gcc_cv_ld_demangle=no
25259 if test $in_tree_ld = yes; then
25260 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 \
25261 gcc_cv_ld_demangle=yes
25262 fi
25263 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25264 # Check if the GNU linker supports --demangle option
25265 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25266 gcc_cv_ld_demangle=yes
25267 fi
25268 fi
25269 if test x"$gcc_cv_ld_demangle" = xyes; then
25270
25271 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25272
25273 fi
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25275 $as_echo "$gcc_cv_ld_demangle" >&6; }
25276 fi
25277
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25279 $as_echo_n "checking linker plugin support... " >&6; }
25280 gcc_cv_lto_plugin=0
25281 if test -f liblto_plugin.la; then
25282 save_ld_ver="$ld_ver"
25283 save_ld_vers_major="$ld_vers_major"
25284 save_ld_vers_minor="$ld_vers_minor"
25285 save_ld_is_gold="$ld_is_gold"
25286
25287 ld_is_gold=no
25288
25289 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25290 ld_ver="GNU ld"
25291 # FIXME: ld_is_gold?
25292 ld_vers_major="$gcc_cv_gld_major_version"
25293 ld_vers_minor="$gcc_cv_gld_minor_version"
25294 else
25295 # Determine plugin linker version.
25296 # FIXME: Partial duplicate from above, generalize.
25297 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25298 if echo "$ld_ver" | grep GNU > /dev/null; then
25299 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25300 ld_is_gold=yes
25301 ld_vers=`echo $ld_ver | sed -n \
25302 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25303 else
25304 ld_vers=`echo $ld_ver | sed -n \
25305 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25306 fi
25307 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25308 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25309 fi
25310 fi
25311
25312 # Determine plugin support.
25313 if echo "$ld_ver" | grep GNU > /dev/null; then
25314 # Require GNU ld or gold 2.21+ for plugin support by default.
25315 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25316 gcc_cv_lto_plugin=2
25317 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25318 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25319 gcc_cv_lto_plugin=1
25320 fi
25321 fi
25322
25323 ld_ver="$save_ld_ver"
25324 ld_vers_major="$save_ld_vers_major"
25325 ld_vers_minor="$save_ld_vers_minor"
25326 ld_is_gold="$save_ld_is_gold"
25327 fi
25328
25329 cat >>confdefs.h <<_ACEOF
25330 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25331 _ACEOF
25332
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25334 $as_echo "$gcc_cv_lto_plugin" >&6; }
25335
25336 # Target OS-specific assembler checks.
25337
25338 case "$target_os" in
25339 darwin*)
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25341 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25342 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25343 $as_echo_n "(cached) " >&6
25344 else
25345 gcc_cv_as_mmacosx_version_min=no
25346 if test x$gcc_cv_as != x; then
25347 $as_echo '.text' > conftest.s
25348 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25350 (eval $ac_try) 2>&5
25351 ac_status=$?
25352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25353 test $ac_status = 0; }; }
25354 then
25355 gcc_cv_as_mmacosx_version_min=yes
25356 else
25357 echo "configure: failed program was" >&5
25358 cat conftest.s >&5
25359 fi
25360 rm -f conftest.o conftest.s
25361 fi
25362 fi
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25364 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25365 if test $gcc_cv_as_mmacosx_version_min = yes; then
25366
25367 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25368
25369 fi
25370
25371 ;;
25372 esac
25373
25374 # Target CPU-specific assembler checks.
25375
25376 case "$target" in
25377 aarch64*-*-*)
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25379 $as_echo_n "checking assembler for -mabi option... " >&6; }
25380 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25381 $as_echo_n "(cached) " >&6
25382 else
25383 gcc_cv_as_aarch64_mabi=no
25384 if test x$gcc_cv_as != x; then
25385 $as_echo '.text' > conftest.s
25386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25388 (eval $ac_try) 2>&5
25389 ac_status=$?
25390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25391 test $ac_status = 0; }; }
25392 then
25393 gcc_cv_as_aarch64_mabi=yes
25394 else
25395 echo "configure: failed program was" >&5
25396 cat conftest.s >&5
25397 fi
25398 rm -f conftest.o conftest.s
25399 fi
25400 fi
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25402 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25403
25404
25405 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25406
25407 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25408
25409 else
25410 if test x$with_abi = xilp32; then
25411 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25412 Upgrade the Assembler." "$LINENO" 5
25413 fi
25414 if test x"$with_multilib_list" = xdefault; then
25415 TM_MULTILIB_CONFIG=lp64
25416 else
25417 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25418 for aarch64_multilib in ${aarch64_multilibs}; do
25419 case ${aarch64_multilib} in
25420 ilp32)
25421 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25422 Upgrade the Assembler." "$LINENO" 5
25423 ;;
25424 *)
25425 ;;
25426 esac
25427 done
25428 fi
25429 fi
25430 # Check if we have binutils support for relocations types needed by -fpic
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25432 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25433 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25434 $as_echo_n "(cached) " >&6
25435 else
25436 gcc_cv_as_aarch64_picreloc=no
25437 if test x$gcc_cv_as != x; then
25438 $as_echo '
25439 .text
25440 ldr x0, [x2, #:gotpage_lo15:globalsym]
25441 ' > conftest.s
25442 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25444 (eval $ac_try) 2>&5
25445 ac_status=$?
25446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25447 test $ac_status = 0; }; }
25448 then
25449 gcc_cv_as_aarch64_picreloc=yes
25450 else
25451 echo "configure: failed program was" >&5
25452 cat conftest.s >&5
25453 fi
25454 rm -f conftest.o conftest.s
25455 fi
25456 fi
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25458 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25459 if test $gcc_cv_as_aarch64_picreloc = yes; then
25460
25461 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25462
25463 fi
25464
25465 # Enable Branch Target Identification Mechanism and Return Address
25466 # Signing by default.
25467 # Check whether --enable-standard-branch-protection was given.
25468 if test "${enable_standard_branch_protection+set}" = set; then :
25469 enableval=$enable_standard_branch_protection;
25470 case $enableval in
25471 yes)
25472 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25473 ;;
25474 no)
25475 ;;
25476 *)
25477 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25478 Valid choices are 'yes' and 'no'." "$LINENO" 5
25479 ;;
25480 esac
25481
25482 fi
25483
25484 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25485 # Check whether --enable-fix-cortex-a53-835769 was given.
25486 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25487 enableval=$enable_fix_cortex_a53_835769;
25488 case $enableval in
25489 yes)
25490 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25491 ;;
25492 no)
25493 ;;
25494 *)
25495 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25496 Valid choices are 'yes' and 'no'." "$LINENO" 5
25497 ;;
25498
25499 esac
25500
25501 fi
25502
25503 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25504 # Check whether --enable-fix-cortex-a53-843419 was given.
25505 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25506 enableval=$enable_fix_cortex_a53_843419;
25507 case $enableval in
25508 yes)
25509 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25510 ;;
25511 no)
25512 ;;
25513 *)
25514 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25515 Valid choices are 'yes' and 'no'." "$LINENO" 5
25516 ;;
25517
25518 esac
25519
25520 fi
25521
25522 ;;
25523
25524 # All TARGET_ABI_OSF targets.
25525 alpha*-*-linux* | alpha*-*-*bsd*)
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25527 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25528 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25529 $as_echo_n "(cached) " >&6
25530 else
25531 gcc_cv_as_alpha_explicit_relocs=no
25532 if test $in_tree_gas = yes; then
25533 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25534 then gcc_cv_as_alpha_explicit_relocs=yes
25535 fi
25536 elif test x$gcc_cv_as != x; then
25537 $as_echo ' .set nomacro
25538 .text
25539 extbl $3, $2, $3 !lituse_bytoff!1
25540 ldq $2, a($29) !literal!1
25541 ldq $4, b($29) !literal!2
25542 ldq_u $3, 0($2) !lituse_base!1
25543 ldq $27, f($29) !literal!5
25544 jsr $26, ($27), f !lituse_jsr!5
25545 ldah $29, 0($26) !gpdisp!3
25546 lda $0, c($29) !gprel
25547 ldah $1, d($29) !gprelhigh
25548 lda $1, d($1) !gprellow
25549 lda $29, 0($29) !gpdisp!3' > conftest.s
25550 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25552 (eval $ac_try) 2>&5
25553 ac_status=$?
25554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25555 test $ac_status = 0; }; }
25556 then
25557 gcc_cv_as_alpha_explicit_relocs=yes
25558 else
25559 echo "configure: failed program was" >&5
25560 cat conftest.s >&5
25561 fi
25562 rm -f conftest.o conftest.s
25563 fi
25564 fi
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25566 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25567 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25568
25569 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25570
25571 fi
25572
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25574 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25575 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25576 $as_echo_n "(cached) " >&6
25577 else
25578 gcc_cv_as_alpha_jsrdirect_relocs=no
25579 if test $in_tree_gas = yes; then
25580 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25581 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25582 fi
25583 elif test x$gcc_cv_as != x; then
25584 $as_echo ' .set nomacro
25585 .text
25586 ldq $27, a($29) !literal!1
25587 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25588 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25590 (eval $ac_try) 2>&5
25591 ac_status=$?
25592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25593 test $ac_status = 0; }; }
25594 then
25595 gcc_cv_as_alpha_jsrdirect_relocs=yes
25596 else
25597 echo "configure: failed program was" >&5
25598 cat conftest.s >&5
25599 fi
25600 rm -f conftest.o conftest.s
25601 fi
25602 fi
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25604 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25605 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25606
25607 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25608
25609 fi
25610
25611 ;;
25612
25613 avr-*-*)
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25615 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25616 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25617 $as_echo_n "(cached) " >&6
25618 else
25619 gcc_cv_as_avr_mlink_relax=no
25620 if test x$gcc_cv_as != x; then
25621 $as_echo '.text' > conftest.s
25622 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25624 (eval $ac_try) 2>&5
25625 ac_status=$?
25626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25627 test $ac_status = 0; }; }
25628 then
25629 gcc_cv_as_avr_mlink_relax=yes
25630 else
25631 echo "configure: failed program was" >&5
25632 cat conftest.s >&5
25633 fi
25634 rm -f conftest.o conftest.s
25635 fi
25636 fi
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25638 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25639 if test $gcc_cv_as_avr_mlink_relax = yes; then
25640
25641 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25642
25643 fi
25644
25645
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25647 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25648 if ${gcc_cv_as_avr_mrmw+:} false; then :
25649 $as_echo_n "(cached) " >&6
25650 else
25651 gcc_cv_as_avr_mrmw=no
25652 if test x$gcc_cv_as != x; then
25653 $as_echo '.text' > conftest.s
25654 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25656 (eval $ac_try) 2>&5
25657 ac_status=$?
25658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25659 test $ac_status = 0; }; }
25660 then
25661 gcc_cv_as_avr_mrmw=yes
25662 else
25663 echo "configure: failed program was" >&5
25664 cat conftest.s >&5
25665 fi
25666 rm -f conftest.o conftest.s
25667 fi
25668 fi
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25670 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25671 if test $gcc_cv_as_avr_mrmw = yes; then
25672
25673 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25674
25675 fi
25676
25677
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25679 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25680 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25681 $as_echo_n "(cached) " >&6
25682 else
25683 gcc_cv_as_avr_mgccisr=no
25684 if test x$gcc_cv_as != x; then
25685 $as_echo '.text
25686 __gcc_isr 1
25687 __gcc_isr 2
25688 __gcc_isr 0,r24
25689 ' > conftest.s
25690 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25692 (eval $ac_try) 2>&5
25693 ac_status=$?
25694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25695 test $ac_status = 0; }; }
25696 then
25697 gcc_cv_as_avr_mgccisr=yes
25698 else
25699 echo "configure: failed program was" >&5
25700 cat conftest.s >&5
25701 fi
25702 rm -f conftest.o conftest.s
25703 fi
25704 fi
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25706 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25707 if test $gcc_cv_as_avr_mgccisr = yes; then
25708
25709 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25710
25711 fi
25712
25713
25714 # Check how default linker description file implements .rodata for
25715 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25716 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25718 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25719 cat > conftest.s <<EOF
25720 .section .rodata,"a",@progbits
25721 .global xxvaryy
25722 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25723 xxvaryy:
25724 .word 1
25725 EOF
25726 rm -f conftest.nm
25727 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25729 (eval $ac_try) 2>&5
25730 ac_status=$?
25731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25732 test $ac_status = 0; }; }
25733 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25735 (eval $ac_try) 2>&5
25736 ac_status=$?
25737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25738 test $ac_status = 0; }; }
25739 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25741 (eval $ac_try) 2>&5
25742 ac_status=$?
25743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25744 test $ac_status = 0; }; }
25745 if test -s conftest.nm
25746 then
25747 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25749 $as_echo "yes" >&6; }
25750
25751 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25752
25753 else
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25755 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25756 echo "$as_me: nm output was" >&5
25757 cat conftest.nm >&5
25758 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25759 { $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
25760 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25761 fi
25762 else
25763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25764 $as_echo "test failed" >&6; }
25765 echo "$as_me: failed program was" >&5
25766 cat conftest.s >&5
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25768 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25769 fi
25770 rm -f conftest.s conftest.o conftest.elf conftest.nm
25771 ;;
25772
25773 cris-*-*)
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25775 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25776 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25777 $as_echo_n "(cached) " >&6
25778 else
25779 gcc_cv_as_cris_no_mul_bug=no
25780 if test $in_tree_gas = yes; then
25781 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25782 then gcc_cv_as_cris_no_mul_bug=yes
25783 fi
25784 elif test x$gcc_cv_as != x; then
25785 $as_echo '.text' > conftest.s
25786 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25788 (eval $ac_try) 2>&5
25789 ac_status=$?
25790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25791 test $ac_status = 0; }; }
25792 then
25793 gcc_cv_as_cris_no_mul_bug=yes
25794 else
25795 echo "configure: failed program was" >&5
25796 cat conftest.s >&5
25797 fi
25798 rm -f conftest.o conftest.s
25799 fi
25800 fi
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25802 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25803 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25804
25805 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25806
25807 fi
25808
25809 ;;
25810
25811 sparc*-*-*)
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25813 $as_echo_n "checking assembler for -relax option... " >&6; }
25814 if ${gcc_cv_as_sparc_relax+:} false; then :
25815 $as_echo_n "(cached) " >&6
25816 else
25817 gcc_cv_as_sparc_relax=no
25818 if test x$gcc_cv_as != x; then
25819 $as_echo '.text' > conftest.s
25820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25822 (eval $ac_try) 2>&5
25823 ac_status=$?
25824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25825 test $ac_status = 0; }; }
25826 then
25827 gcc_cv_as_sparc_relax=yes
25828 else
25829 echo "configure: failed program was" >&5
25830 cat conftest.s >&5
25831 fi
25832 rm -f conftest.o conftest.s
25833 fi
25834 fi
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25836 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25837 if test $gcc_cv_as_sparc_relax = yes; then
25838
25839 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25840
25841 fi
25842
25843
25844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25845 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25846 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25847 $as_echo_n "(cached) " >&6
25848 else
25849 gcc_cv_as_sparc_gotdata_op=no
25850 if test x$gcc_cv_as != x; then
25851 $as_echo '.text
25852 .align 4
25853 foo:
25854 nop
25855 bar:
25856 sethi %gdop_hix22(foo), %g1
25857 xor %g1, %gdop_lox10(foo), %g1
25858 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25859 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25861 (eval $ac_try) 2>&5
25862 ac_status=$?
25863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25864 test $ac_status = 0; }; }
25865 then
25866 if test x$gcc_cv_ld != x \
25867 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25868 if test x$gcc_cv_objdump != x; then
25869 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25870 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25871 gcc_cv_as_sparc_gotdata_op=no
25872 else
25873 gcc_cv_as_sparc_gotdata_op=yes
25874 fi
25875 fi
25876 fi
25877 rm -f conftest
25878 else
25879 echo "configure: failed program was" >&5
25880 cat conftest.s >&5
25881 fi
25882 rm -f conftest.o conftest.s
25883 fi
25884 fi
25885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25886 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25887 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25888
25889 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25890
25891 fi
25892
25893
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25895 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25896 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25897 $as_echo_n "(cached) " >&6
25898 else
25899 gcc_cv_as_sparc_ua_pcrel=no
25900 if test x$gcc_cv_as != x; then
25901 $as_echo '.text
25902 foo:
25903 nop
25904 .data
25905 .align 4
25906 .byte 0
25907 .uaword %r_disp32(foo)' > conftest.s
25908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25910 (eval $ac_try) 2>&5
25911 ac_status=$?
25912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25913 test $ac_status = 0; }; }
25914 then
25915 if test x$gcc_cv_ld != x \
25916 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25917 gcc_cv_as_sparc_ua_pcrel=yes
25918 fi
25919 rm -f conftest
25920 else
25921 echo "configure: failed program was" >&5
25922 cat conftest.s >&5
25923 fi
25924 rm -f conftest.o conftest.s
25925 fi
25926 fi
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25928 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25929 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25930
25931 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25932
25933
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25935 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25936 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25937 $as_echo_n "(cached) " >&6
25938 else
25939 gcc_cv_as_sparc_ua_pcrel_hidden=no
25940 if test x$gcc_cv_as != x; then
25941 $as_echo '.data
25942 .align 4
25943 .byte 0x31
25944 .uaword %r_disp32(foo)
25945 .byte 0x32, 0x33, 0x34
25946 .global foo
25947 .hidden foo
25948 foo:
25949 .skip 4' > conftest.s
25950 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25952 (eval $ac_try) 2>&5
25953 ac_status=$?
25954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25955 test $ac_status = 0; }; }
25956 then
25957 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25958 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25959 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25960 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25961 if $gcc_cv_objdump -R conftest 2> /dev/null \
25962 | grep 'DISP32' > /dev/null 2>&1; then
25963 :
25964 else
25965 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25966 fi
25967 fi
25968 rm -f conftest
25969 else
25970 echo "configure: failed program was" >&5
25971 cat conftest.s >&5
25972 fi
25973 rm -f conftest.o conftest.s
25974 fi
25975 fi
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25977 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25978 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25979
25980 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25981
25982 fi
25983
25984
25985 fi
25986 # unaligned pcrel relocs
25987
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25989 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25990 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
25991 $as_echo_n "(cached) " >&6
25992 else
25993 gcc_cv_as_sparc_offsetable_lo10=no
25994 if test x$gcc_cv_as != x; then
25995 $as_echo '.text
25996 or %g1, %lo(ab) + 12, %g1
25997 or %g1, %lo(ab + 12), %g1' > conftest.s
25998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26000 (eval $ac_try) 2>&5
26001 ac_status=$?
26002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26003 test $ac_status = 0; }; }
26004 then
26005 if test x$gcc_cv_objdump != x \
26006 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26007 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26008 gcc_cv_as_sparc_offsetable_lo10=yes
26009 fi
26010 else
26011 echo "configure: failed program was" >&5
26012 cat conftest.s >&5
26013 fi
26014 rm -f conftest.o conftest.s
26015 fi
26016 fi
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26018 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26019 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26020
26021 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26022
26023 fi
26024
26025
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26027 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26028 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26029 $as_echo_n "(cached) " >&6
26030 else
26031 gcc_cv_as_sparc_fmaf=no
26032 if test x$gcc_cv_as != x; then
26033 $as_echo '.text
26034 .register %g2, #scratch
26035 .register %g3, #scratch
26036 .align 4
26037 fmaddd %f0, %f2, %f4, %f6
26038 addxccc %g1, %g2, %g3
26039 fsrl32 %f2, %f4, %f8
26040 fnaddd %f10, %f12, %f14' > conftest.s
26041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26043 (eval $ac_try) 2>&5
26044 ac_status=$?
26045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26046 test $ac_status = 0; }; }
26047 then
26048 gcc_cv_as_sparc_fmaf=yes
26049 else
26050 echo "configure: failed program was" >&5
26051 cat conftest.s >&5
26052 fi
26053 rm -f conftest.o conftest.s
26054 fi
26055 fi
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26057 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26058 if test $gcc_cv_as_sparc_fmaf = yes; then
26059
26060 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26061
26062 fi
26063
26064
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26066 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26067 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26068 $as_echo_n "(cached) " >&6
26069 else
26070 gcc_cv_as_sparc_sparc4=no
26071 if test x$gcc_cv_as != x; then
26072 $as_echo '.text
26073 .register %g2, #scratch
26074 .register %g3, #scratch
26075 .align 4
26076 cxbe %g2, %g3, 1f
26077 1: cwbneg %g2, %g3, 1f
26078 1: sha1
26079 md5
26080 aes_kexpand0 %f4, %f6, %f8
26081 des_round %f38, %f40, %f42, %f44
26082 camellia_f %f54, %f56, %f58, %f60
26083 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26084 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26086 (eval $ac_try) 2>&5
26087 ac_status=$?
26088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26089 test $ac_status = 0; }; }
26090 then
26091 gcc_cv_as_sparc_sparc4=yes
26092 else
26093 echo "configure: failed program was" >&5
26094 cat conftest.s >&5
26095 fi
26096 rm -f conftest.o conftest.s
26097 fi
26098 fi
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26100 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26101 if test $gcc_cv_as_sparc_sparc4 = yes; then
26102
26103 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26104
26105 fi
26106
26107
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26109 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26110 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26111 $as_echo_n "(cached) " >&6
26112 else
26113 gcc_cv_as_sparc_sparc5=no
26114 if test x$gcc_cv_as != x; then
26115 $as_echo '.text
26116 .register %g2, #scratch
26117 .register %g3, #scratch
26118 .align 4
26119 subxc %g1, %g2, %g3
26120 fpadd8 %f0, %f2, %f4' > conftest.s
26121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26123 (eval $ac_try) 2>&5
26124 ac_status=$?
26125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26126 test $ac_status = 0; }; }
26127 then
26128 gcc_cv_as_sparc_sparc5=yes
26129 else
26130 echo "configure: failed program was" >&5
26131 cat conftest.s >&5
26132 fi
26133 rm -f conftest.o conftest.s
26134 fi
26135 fi
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26137 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26138 if test $gcc_cv_as_sparc_sparc5 = yes; then
26139
26140 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26141
26142 fi
26143
26144
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26146 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26147 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26148 $as_echo_n "(cached) " >&6
26149 else
26150 gcc_cv_as_sparc_sparc6=no
26151 if test x$gcc_cv_as != x; then
26152 $as_echo '.text
26153 .register %g2, #scratch
26154 .register %g3, #scratch
26155 .align 4
26156 rd %entropy, %g1
26157 fpsll64x %f0, %f2, %f4' > conftest.s
26158 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26160 (eval $ac_try) 2>&5
26161 ac_status=$?
26162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26163 test $ac_status = 0; }; }
26164 then
26165 gcc_cv_as_sparc_sparc6=yes
26166 else
26167 echo "configure: failed program was" >&5
26168 cat conftest.s >&5
26169 fi
26170 rm -f conftest.o conftest.s
26171 fi
26172 fi
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26174 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26175 if test $gcc_cv_as_sparc_sparc6 = yes; then
26176
26177 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26178
26179 fi
26180
26181
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26183 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26184 if ${gcc_cv_as_sparc_leon+:} false; then :
26185 $as_echo_n "(cached) " >&6
26186 else
26187 gcc_cv_as_sparc_leon=no
26188 if test x$gcc_cv_as != x; then
26189 $as_echo '.text
26190 .register %g2, #scratch
26191 .register %g3, #scratch
26192 .align 4
26193 smac %g2, %g3, %g1
26194 umac %g2, %g3, %g1
26195 casa [%g2] 0xb, %g3, %g1' > conftest.s
26196 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26198 (eval $ac_try) 2>&5
26199 ac_status=$?
26200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26201 test $ac_status = 0; }; }
26202 then
26203 gcc_cv_as_sparc_leon=yes
26204 else
26205 echo "configure: failed program was" >&5
26206 cat conftest.s >&5
26207 fi
26208 rm -f conftest.o conftest.s
26209 fi
26210 fi
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26212 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26213 if test $gcc_cv_as_sparc_leon = yes; then
26214
26215 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26216
26217 fi
26218
26219 ;;
26220
26221 i[34567]86-*-* | x86_64-*-*)
26222 case $target_os in
26223 cygwin*)
26224 # Full C++ conformance when using a shared libstdc++-v3 requires some
26225 # support from the Cygwin DLL, which in more recent versions exports
26226 # wrappers to aid in interposing and redirecting operators new, delete,
26227 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26228 # are configuring for a version of Cygwin that exports the wrappers.
26229 if test x$host = x$target && test x$host_cpu = xi686; then
26230 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26231 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26232 gcc_ac_cygwin_dll_wrappers=yes
26233 else
26234 gcc_ac_cygwin_dll_wrappers=no
26235 fi
26236
26237 else
26238 # Can't check presence of libc functions during cross-compile, so
26239 # we just have to assume we're building for an up-to-date target.
26240 gcc_ac_cygwin_dll_wrappers=yes
26241 fi
26242
26243 cat >>confdefs.h <<_ACEOF
26244 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26245 _ACEOF
26246
26247 esac
26248 case $target_os in
26249 cygwin* | pe | mingw32*)
26250 # Recent binutils allows the three-operand form of ".comm" on PE. This
26251 # definition is used unconditionally to initialise the default state of
26252 # the target option variable that governs usage of the feature.
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26254 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26255 if ${gcc_cv_as_comm_has_align+:} false; then :
26256 $as_echo_n "(cached) " >&6
26257 else
26258 gcc_cv_as_comm_has_align=no
26259 if test $in_tree_gas = yes; then
26260 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26261 then gcc_cv_as_comm_has_align=yes
26262 fi
26263 elif test x$gcc_cv_as != x; then
26264 $as_echo '.comm foo,1,32' > conftest.s
26265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26267 (eval $ac_try) 2>&5
26268 ac_status=$?
26269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26270 test $ac_status = 0; }; }
26271 then
26272 gcc_cv_as_comm_has_align=yes
26273 else
26274 echo "configure: failed program was" >&5
26275 cat conftest.s >&5
26276 fi
26277 rm -f conftest.o conftest.s
26278 fi
26279 fi
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26281 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26282
26283
26284
26285 cat >>confdefs.h <<_ACEOF
26286 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26287 _ACEOF
26288
26289 # Used for DWARF 2 in PE
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26291 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26292 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26293 $as_echo_n "(cached) " >&6
26294 else
26295 gcc_cv_as_ix86_pe_secrel32=no
26296 if test $in_tree_gas = yes; then
26297 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26298 then gcc_cv_as_ix86_pe_secrel32=yes
26299 fi
26300 elif test x$gcc_cv_as != x; then
26301 $as_echo '.text
26302 foo: nop
26303 .data
26304 .secrel32 foo' > conftest.s
26305 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26307 (eval $ac_try) 2>&5
26308 ac_status=$?
26309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26310 test $ac_status = 0; }; }
26311 then
26312 if test x$gcc_cv_ld != x \
26313 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26314 gcc_cv_as_ix86_pe_secrel32=yes
26315 fi
26316 rm -f conftest
26317 else
26318 echo "configure: failed program was" >&5
26319 cat conftest.s >&5
26320 fi
26321 rm -f conftest.o conftest.s
26322 fi
26323 fi
26324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26325 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26326 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26327
26328 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26329
26330 fi
26331
26332 # Test if the assembler supports the extended form of the .section
26333 # directive that specifies section alignment. LTO support uses this,
26334 # but normally only after installation, so we warn but don't fail the
26335 # configure if LTO is enabled but the assembler does not support it.
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26337 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26338 if ${gcc_cv_as_section_has_align+:} false; then :
26339 $as_echo_n "(cached) " >&6
26340 else
26341 gcc_cv_as_section_has_align=no
26342 if test $in_tree_gas = yes; then
26343 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26344 then gcc_cv_as_section_has_align=yes
26345 fi
26346 elif test x$gcc_cv_as != x; then
26347 $as_echo '.section lto_test,"dr0"' > conftest.s
26348 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26350 (eval $ac_try) 2>&5
26351 ac_status=$?
26352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26353 test $ac_status = 0; }; }
26354 then
26355 gcc_cv_as_section_has_align=yes
26356 else
26357 echo "configure: failed program was" >&5
26358 cat conftest.s >&5
26359 fi
26360 rm -f conftest.o conftest.s
26361 fi
26362 fi
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26364 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26365
26366
26367 if test x$gcc_cv_as_section_has_align != xyes; then
26368 case ",$enable_languages," in
26369 *,lto,*)
26370 { $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
26371 $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;}
26372 ;;
26373 esac
26374 fi
26375 ;;
26376 esac
26377
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26379 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26380 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26381 $as_echo_n "(cached) " >&6
26382 else
26383 gcc_cv_as_ix86_xbrace_comment=no
26384 if test x$gcc_cv_as != x; then
26385 $as_echo '.text' > conftest.s
26386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26388 (eval $ac_try) 2>&5
26389 ac_status=$?
26390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26391 test $ac_status = 0; }; }
26392 then
26393 gcc_cv_as_ix86_xbrace_comment=yes
26394 else
26395 echo "configure: failed program was" >&5
26396 cat conftest.s >&5
26397 fi
26398 rm -f conftest.o conftest.s
26399 fi
26400 fi
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26402 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26403 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26404
26405 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26406
26407 fi
26408
26409
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26411 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26412 if ${gcc_cv_as_ix86_filds+:} false; then :
26413 $as_echo_n "(cached) " >&6
26414 else
26415 gcc_cv_as_ix86_filds=no
26416 if test x$gcc_cv_as != x; then
26417 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26418 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26420 (eval $ac_try) 2>&5
26421 ac_status=$?
26422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26423 test $ac_status = 0; }; }
26424 then
26425 gcc_cv_as_ix86_filds=yes
26426 else
26427 echo "configure: failed program was" >&5
26428 cat conftest.s >&5
26429 fi
26430 rm -f conftest.o conftest.s
26431 fi
26432 fi
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26434 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26435 if test $gcc_cv_as_ix86_filds = yes; then
26436
26437 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26438
26439 fi
26440
26441
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26443 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26444 if ${gcc_cv_as_ix86_fildq+:} false; then :
26445 $as_echo_n "(cached) " >&6
26446 else
26447 gcc_cv_as_ix86_fildq=no
26448 if test x$gcc_cv_as != x; then
26449 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26452 (eval $ac_try) 2>&5
26453 ac_status=$?
26454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26455 test $ac_status = 0; }; }
26456 then
26457 gcc_cv_as_ix86_fildq=yes
26458 else
26459 echo "configure: failed program was" >&5
26460 cat conftest.s >&5
26461 fi
26462 rm -f conftest.o conftest.s
26463 fi
26464 fi
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26466 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26467 if test $gcc_cv_as_ix86_fildq = yes; then
26468
26469 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26470
26471 fi
26472
26473
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26475 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26476 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26477 $as_echo_n "(cached) " >&6
26478 else
26479 gcc_cv_as_ix86_cmov_sun_syntax=no
26480 if test x$gcc_cv_as != x; then
26481 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26482 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26484 (eval $ac_try) 2>&5
26485 ac_status=$?
26486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26487 test $ac_status = 0; }; }
26488 then
26489 gcc_cv_as_ix86_cmov_sun_syntax=yes
26490 else
26491 echo "configure: failed program was" >&5
26492 cat conftest.s >&5
26493 fi
26494 rm -f conftest.o conftest.s
26495 fi
26496 fi
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26498 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26499 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26500
26501 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26502
26503 fi
26504
26505
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26507 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26508 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26509 $as_echo_n "(cached) " >&6
26510 else
26511 gcc_cv_as_ix86_ffreep=no
26512 if test x$gcc_cv_as != x; then
26513 $as_echo 'ffreep %st(1)' > conftest.s
26514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26516 (eval $ac_try) 2>&5
26517 ac_status=$?
26518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26519 test $ac_status = 0; }; }
26520 then
26521 gcc_cv_as_ix86_ffreep=yes
26522 else
26523 echo "configure: failed program was" >&5
26524 cat conftest.s >&5
26525 fi
26526 rm -f conftest.o conftest.s
26527 fi
26528 fi
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26530 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26531 if test $gcc_cv_as_ix86_ffreep = yes; then
26532
26533 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26534
26535 fi
26536
26537
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26539 $as_echo_n "checking assembler for .quad directive... " >&6; }
26540 if ${gcc_cv_as_ix86_quad+:} false; then :
26541 $as_echo_n "(cached) " >&6
26542 else
26543 gcc_cv_as_ix86_quad=no
26544 if test x$gcc_cv_as != x; then
26545 $as_echo '.quad 0' > conftest.s
26546 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26548 (eval $ac_try) 2>&5
26549 ac_status=$?
26550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26551 test $ac_status = 0; }; }
26552 then
26553 gcc_cv_as_ix86_quad=yes
26554 else
26555 echo "configure: failed program was" >&5
26556 cat conftest.s >&5
26557 fi
26558 rm -f conftest.o conftest.s
26559 fi
26560 fi
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26562 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26563 if test $gcc_cv_as_ix86_quad = yes; then
26564
26565 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26566
26567 fi
26568
26569
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26571 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26572 if ${gcc_cv_as_ix86_sahf+:} false; then :
26573 $as_echo_n "(cached) " >&6
26574 else
26575 gcc_cv_as_ix86_sahf=no
26576 if test x$gcc_cv_as != x; then
26577 $as_echo '.code64
26578 sahf' > conftest.s
26579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26581 (eval $ac_try) 2>&5
26582 ac_status=$?
26583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26584 test $ac_status = 0; }; }
26585 then
26586 gcc_cv_as_ix86_sahf=yes
26587 else
26588 echo "configure: failed program was" >&5
26589 cat conftest.s >&5
26590 fi
26591 rm -f conftest.o conftest.s
26592 fi
26593 fi
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26595 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26596 if test $gcc_cv_as_ix86_sahf = yes; then
26597
26598 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26599
26600 fi
26601
26602
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26604 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26605 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26606 $as_echo_n "(cached) " >&6
26607 else
26608 gcc_cv_as_ix86_interunit_movq=no
26609 if test x$gcc_cv_as != x; then
26610 $as_echo '.code64
26611 movq %mm0, %rax
26612 movq %rax, %xmm0' > conftest.s
26613 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26615 (eval $ac_try) 2>&5
26616 ac_status=$?
26617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26618 test $ac_status = 0; }; }
26619 then
26620 gcc_cv_as_ix86_interunit_movq=yes
26621 else
26622 echo "configure: failed program was" >&5
26623 cat conftest.s >&5
26624 fi
26625 rm -f conftest.o conftest.s
26626 fi
26627 fi
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26629 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26630
26631
26632
26633 cat >>confdefs.h <<_ACEOF
26634 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26635 _ACEOF
26636
26637
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26639 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26640 if ${gcc_cv_as_ix86_hle+:} false; then :
26641 $as_echo_n "(cached) " >&6
26642 else
26643 gcc_cv_as_ix86_hle=no
26644 if test x$gcc_cv_as != x; then
26645 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26646 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26648 (eval $ac_try) 2>&5
26649 ac_status=$?
26650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26651 test $ac_status = 0; }; }
26652 then
26653 gcc_cv_as_ix86_hle=yes
26654 else
26655 echo "configure: failed program was" >&5
26656 cat conftest.s >&5
26657 fi
26658 rm -f conftest.o conftest.s
26659 fi
26660 fi
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26662 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26663 if test $gcc_cv_as_ix86_hle = yes; then
26664
26665 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26666
26667 fi
26668
26669
26670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26671 $as_echo_n "checking assembler for swap suffix... " >&6; }
26672 if ${gcc_cv_as_ix86_swap+:} false; then :
26673 $as_echo_n "(cached) " >&6
26674 else
26675 gcc_cv_as_ix86_swap=no
26676 if test x$gcc_cv_as != x; then
26677 $as_echo 'movl.s %esp, %ebp' > conftest.s
26678 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26680 (eval $ac_try) 2>&5
26681 ac_status=$?
26682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26683 test $ac_status = 0; }; }
26684 then
26685 gcc_cv_as_ix86_swap=yes
26686 else
26687 echo "configure: failed program was" >&5
26688 cat conftest.s >&5
26689 fi
26690 rm -f conftest.o conftest.s
26691 fi
26692 fi
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26694 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26695 if test $gcc_cv_as_ix86_swap = yes; then
26696
26697 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26698
26699 fi
26700
26701
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26703 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26704 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26705 $as_echo_n "(cached) " >&6
26706 else
26707 gcc_cv_as_ix86_diff_sect_delta=no
26708 if test x$gcc_cv_as != x; then
26709 $as_echo '.section .rodata
26710 .L1:
26711 .long .L2-.L1
26712 .long .L3-.L1
26713 .text
26714 .L3: nop
26715 .L2: nop' > conftest.s
26716 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26718 (eval $ac_try) 2>&5
26719 ac_status=$?
26720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26721 test $ac_status = 0; }; }
26722 then
26723 gcc_cv_as_ix86_diff_sect_delta=yes
26724 else
26725 echo "configure: failed program was" >&5
26726 cat conftest.s >&5
26727 fi
26728 rm -f conftest.o conftest.s
26729 fi
26730 fi
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26732 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26733 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26734
26735 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26736
26737 fi
26738
26739
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26741 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26742 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26743 $as_echo_n "(cached) " >&6
26744 else
26745 gcc_cv_as_ix86_rep_lock_prefix=no
26746 if test x$gcc_cv_as != x; then
26747 $as_echo 'rep movsl
26748 rep ret
26749 rep nop
26750 rep bsf %ecx, %eax
26751 rep bsr %ecx, %eax
26752 lock addl %edi, (%eax,%esi)
26753 lock orl $0, (%esp)' > conftest.s
26754 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26756 (eval $ac_try) 2>&5
26757 ac_status=$?
26758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26759 test $ac_status = 0; }; }
26760 then
26761 gcc_cv_as_ix86_rep_lock_prefix=yes
26762 else
26763 echo "configure: failed program was" >&5
26764 cat conftest.s >&5
26765 fi
26766 rm -f conftest.o conftest.s
26767 fi
26768 fi
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26770 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26771 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26772
26773 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26774
26775 fi
26776
26777
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26779 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26780 if ${gcc_cv_as_ix86_ud2+:} false; then :
26781 $as_echo_n "(cached) " >&6
26782 else
26783 gcc_cv_as_ix86_ud2=no
26784 if test x$gcc_cv_as != x; then
26785 $as_echo 'ud2' > conftest.s
26786 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26788 (eval $ac_try) 2>&5
26789 ac_status=$?
26790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26791 test $ac_status = 0; }; }
26792 then
26793 gcc_cv_as_ix86_ud2=yes
26794 else
26795 echo "configure: failed program was" >&5
26796 cat conftest.s >&5
26797 fi
26798 rm -f conftest.o conftest.s
26799 fi
26800 fi
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26802 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26803 if test $gcc_cv_as_ix86_ud2 = yes; then
26804
26805 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26806
26807 fi
26808
26809
26810 # Enforce 32-bit output with gas and gld.
26811 if test x$gas = xyes; then
26812 as_ix86_gas_32_opt="--32"
26813 fi
26814 if echo "$ld_ver" | grep GNU > /dev/null; then
26815 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26816 ld_ix86_gld_32_opt="-melf_i386_sol2"
26817 else
26818 ld_ix86_gld_32_opt="-melf_i386"
26819 fi
26820 fi
26821
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26823 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26824 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26825 $as_echo_n "(cached) " >&6
26826 else
26827 gcc_cv_as_ix86_tlsgdplt=no
26828 if test x$gcc_cv_as != x; then
26829 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26830 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26832 (eval $ac_try) 2>&5
26833 ac_status=$?
26834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26835 test $ac_status = 0; }; }
26836 then
26837 if test x$gcc_cv_ld != x \
26838 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26839 gcc_cv_as_ix86_tlsgdplt=yes
26840 fi
26841 rm -f conftest
26842 else
26843 echo "configure: failed program was" >&5
26844 cat conftest.s >&5
26845 fi
26846 rm -f conftest.o conftest.s
26847 fi
26848 fi
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26850 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26851 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26852
26853 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26854
26855 fi
26856
26857
26858 conftest_s='
26859 .section .tdata,"aw'$tls_section_flag'",@progbits
26860 tls_ld:
26861 .section .text,"ax",@progbits
26862 call tls_ld@tlsldmplt'
26863
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26865 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26866 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26867 $as_echo_n "(cached) " >&6
26868 else
26869 gcc_cv_as_ix86_tlsldmplt=no
26870 if test x$gcc_cv_as != x; then
26871 $as_echo "$conftest_s" > conftest.s
26872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26874 (eval $ac_try) 2>&5
26875 ac_status=$?
26876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26877 test $ac_status = 0; }; }
26878 then
26879 if test x$gcc_cv_ld != x \
26880 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26881 gcc_cv_as_ix86_tlsldmplt=yes
26882 fi
26883 rm -f conftest
26884 else
26885 echo "configure: failed program was" >&5
26886 cat conftest.s >&5
26887 fi
26888 rm -f conftest.o conftest.s
26889 fi
26890 fi
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26892 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26893
26894
26895
26896 cat >>confdefs.h <<_ACEOF
26897 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26898 _ACEOF
26899
26900
26901 conftest_s='
26902 .section .text,"ax",@progbits
26903 .globl _start
26904 .type _start, @function
26905 _start:
26906 leal value@tlsldm(%ebx), %eax
26907 call ___tls_get_addr@plt
26908
26909 .section .tdata,"aw'$tls_section_flag'",@progbits
26910 .type value, @object
26911 value:'
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26913 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26914 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26915 $as_echo_n "(cached) " >&6
26916 else
26917 gcc_cv_as_ix86_tlsldm=no
26918 if test x$gcc_cv_as != x; then
26919 $as_echo "$conftest_s" > conftest.s
26920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26922 (eval $ac_try) 2>&5
26923 ac_status=$?
26924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26925 test $ac_status = 0; }; }
26926 then
26927 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26928 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26929 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26930 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26931 gcc_cv_as_ix86_tlsldm=yes
26932 fi
26933 fi
26934 rm -f conftest
26935 else
26936 echo "configure: failed program was" >&5
26937 cat conftest.s >&5
26938 fi
26939 rm -f conftest.o conftest.s
26940 fi
26941 fi
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26943 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26944
26945
26946
26947 cat >>confdefs.h <<_ACEOF
26948 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26949 _ACEOF
26950
26951
26952 conftest_s='
26953 .data
26954 bar:
26955 .byte 1
26956 .text
26957 .global _start
26958 _start:
26959 cmpl $0, bar@GOT
26960 jmp *_start@GOT'
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26962 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26963 if ${gcc_cv_as_ix86_got32x+:} false; then :
26964 $as_echo_n "(cached) " >&6
26965 else
26966 gcc_cv_as_ix86_got32x=no
26967 if test x$gcc_cv_as != x; then
26968 $as_echo "$conftest_s" > conftest.s
26969 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26971 (eval $ac_try) 2>&5
26972 ac_status=$?
26973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26974 test $ac_status = 0; }; }
26975 then
26976 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26977 && test x$gcc_cv_readelf != x \
26978 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26979 | grep R_386_GOT32X > /dev/null 2>&1 \
26980 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26981 if $gcc_cv_objdump -dw conftest 2>&1 \
26982 | grep 0xffffff > /dev/null 2>&1; then
26983 gcc_cv_as_ix86_got32x=no
26984 else
26985 gcc_cv_as_ix86_got32x=yes
26986 fi
26987 fi
26988 rm -f conftest
26989 else
26990 echo "configure: failed program was" >&5
26991 cat conftest.s >&5
26992 fi
26993 rm -f conftest.o conftest.s
26994 fi
26995 fi
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26997 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26998
26999
27000
27001 cat >>confdefs.h <<_ACEOF
27002 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27003 _ACEOF
27004
27005
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27007 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27008 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27009 $as_echo_n "(cached) " >&6
27010 else
27011 gcc_cv_as_ix86_gotoff_in_data=no
27012 if test $in_tree_gas = yes; then
27013 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27014 then gcc_cv_as_ix86_gotoff_in_data=yes
27015 fi
27016 elif test x$gcc_cv_as != x; then
27017 $as_echo ' .text
27018 .L0:
27019 nop
27020 .data
27021 .long .L0@GOTOFF' > conftest.s
27022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27024 (eval $ac_try) 2>&5
27025 ac_status=$?
27026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27027 test $ac_status = 0; }; }
27028 then
27029 gcc_cv_as_ix86_gotoff_in_data=yes
27030 else
27031 echo "configure: failed program was" >&5
27032 cat conftest.s >&5
27033 fi
27034 rm -f conftest.o conftest.s
27035 fi
27036 fi
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27038 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27039
27040
27041
27042 cat >>confdefs.h <<_ACEOF
27043 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27044 _ACEOF
27045
27046
27047 conftest_s='
27048 .section .text,"ax",@progbits
27049 .globl _start
27050 .type _start, @function
27051 _start:
27052 leal ld@tlsldm(%ecx), %eax
27053 call *___tls_get_addr@GOT(%ecx)
27054 leal gd@tlsgd(%ecx), %eax
27055 call *___tls_get_addr@GOT(%ecx)
27056
27057 .section .tdata,"aw'$tls_section_flag'",@progbits
27058 .type ld, @object
27059 ld:
27060 .byte 0
27061 .globl gd
27062 .type gd, @object
27063 gd:
27064 .byte 0'
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27066 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27067 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27068 $as_echo_n "(cached) " >&6
27069 else
27070 gcc_cv_as_ix86_tls_get_addr_via_got=no
27071 if test x$gcc_cv_as != x; then
27072 $as_echo "$conftest_s" > conftest.s
27073 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27075 (eval $ac_try) 2>&5
27076 ac_status=$?
27077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27078 test $ac_status = 0; }; }
27079 then
27080 if test x$gcc_cv_ld != x \
27081 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27082 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27083 fi
27084 rm -f conftest
27085 else
27086 echo "configure: failed program was" >&5
27087 cat conftest.s >&5
27088 fi
27089 rm -f conftest.o conftest.s
27090 fi
27091 fi
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27093 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27094
27095
27096
27097 cat >>confdefs.h <<_ACEOF
27098 #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`
27099 _ACEOF
27100
27101 ;;
27102
27103 ia64*-*-*)
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27105 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27106 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27107 $as_echo_n "(cached) " >&6
27108 else
27109 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27110 if test $in_tree_gas = yes; then
27111 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27112 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27113 fi
27114 elif test x$gcc_cv_as != x; then
27115 $as_echo ' .text
27116 addl r15 = @ltoffx(x#), gp
27117 ;;
27118 ld8.mov r16 = [r15], x#
27119 ' > conftest.s
27120 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27122 (eval $ac_try) 2>&5
27123 ac_status=$?
27124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27125 test $ac_status = 0; }; }
27126 then
27127 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27128 else
27129 echo "configure: failed program was" >&5
27130 cat conftest.s >&5
27131 fi
27132 rm -f conftest.o conftest.s
27133 fi
27134 fi
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27136 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27137 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27138
27139 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27140
27141 fi
27142
27143
27144 ;;
27145
27146 powerpc*-*-*)
27147
27148 case $target in
27149 *-*-darwin*)
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27151 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27152 if ${gcc_cv_as_machine_directive+:} false; then :
27153 $as_echo_n "(cached) " >&6
27154 else
27155 gcc_cv_as_machine_directive=no
27156 if test x$gcc_cv_as != x; then
27157 $as_echo ' .machine ppc7400' > conftest.s
27158 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27160 (eval $ac_try) 2>&5
27161 ac_status=$?
27162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27163 test $ac_status = 0; }; }
27164 then
27165 gcc_cv_as_machine_directive=yes
27166 else
27167 echo "configure: failed program was" >&5
27168 cat conftest.s >&5
27169 fi
27170 rm -f conftest.o conftest.s
27171 fi
27172 fi
27173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27174 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27175
27176
27177 if test x$gcc_cv_as_machine_directive != xyes; then
27178 echo "*** This target requires an assembler supporting \".machine\"" >&2
27179 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27180 test x$build = x$target && exit 1
27181 fi
27182 ;;
27183 esac
27184
27185 case $target in
27186 *-*-aix*) conftest_s=' .machine "pwr5"
27187 .csect .text[PR]
27188 mfcr 3,128';;
27189 *-*-darwin*) conftest_s=' .text
27190 mfcr r3,128';;
27191 *) conftest_s=' .machine power4
27192 .text
27193 mfcr 3,128';;
27194 esac
27195
27196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27197 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27198 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27199 $as_echo_n "(cached) " >&6
27200 else
27201 gcc_cv_as_powerpc_mfcrf=no
27202 if test $in_tree_gas = yes; then
27203 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27204 then gcc_cv_as_powerpc_mfcrf=yes
27205 fi
27206 elif test x$gcc_cv_as != x; then
27207 $as_echo "$conftest_s" > conftest.s
27208 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27210 (eval $ac_try) 2>&5
27211 ac_status=$?
27212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27213 test $ac_status = 0; }; }
27214 then
27215 gcc_cv_as_powerpc_mfcrf=yes
27216 else
27217 echo "configure: failed program was" >&5
27218 cat conftest.s >&5
27219 fi
27220 rm -f conftest.o conftest.s
27221 fi
27222 fi
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27224 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27225 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27226
27227 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27228
27229 fi
27230
27231
27232 case $target in
27233 *-*-aix*) conftest_s=' .csect .text[PR]
27234 LCF..0:
27235 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27236 *-*-darwin*)
27237 conftest_s=' .text
27238 LCF0:
27239 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27240 *) conftest_s=' .text
27241 .LCF0:
27242 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27243 esac
27244
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27246 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27247 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27248 $as_echo_n "(cached) " >&6
27249 else
27250 gcc_cv_as_powerpc_rel16=no
27251 if test $in_tree_gas = yes; then
27252 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27253 then gcc_cv_as_powerpc_rel16=yes
27254 fi
27255 elif test x$gcc_cv_as != x; then
27256 $as_echo "$conftest_s" > conftest.s
27257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27259 (eval $ac_try) 2>&5
27260 ac_status=$?
27261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27262 test $ac_status = 0; }; }
27263 then
27264 gcc_cv_as_powerpc_rel16=yes
27265 else
27266 echo "configure: failed program was" >&5
27267 cat conftest.s >&5
27268 fi
27269 rm -f conftest.o conftest.s
27270 fi
27271 fi
27272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27273 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27274 if test $gcc_cv_as_powerpc_rel16 = yes; then
27275
27276 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27277
27278 fi
27279
27280
27281 case $target in
27282 *-*-aix*) conftest_s=' .machine "pwr7"
27283 .csect .text[PR]
27284 lxvd2x 1,2,3';;
27285 *) conftest_s=' .machine power7
27286 .text
27287 lxvd2x 1,2,3';;
27288 esac
27289
27290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27291 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27292 if ${gcc_cv_as_powerpc_vsx+:} false; then :
27293 $as_echo_n "(cached) " >&6
27294 else
27295 gcc_cv_as_powerpc_vsx=no
27296 if test $in_tree_gas = yes; then
27297 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27298 then gcc_cv_as_powerpc_vsx=yes
27299 fi
27300 elif test x$gcc_cv_as != x; then
27301 $as_echo "$conftest_s" > conftest.s
27302 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27304 (eval $ac_try) 2>&5
27305 ac_status=$?
27306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27307 test $ac_status = 0; }; }
27308 then
27309 gcc_cv_as_powerpc_vsx=yes
27310 else
27311 echo "configure: failed program was" >&5
27312 cat conftest.s >&5
27313 fi
27314 rm -f conftest.o conftest.s
27315 fi
27316 fi
27317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27318 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27319 if test $gcc_cv_as_powerpc_vsx = yes; then
27320
27321 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27322
27323 fi
27324
27325
27326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27327 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27328 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27329 $as_echo_n "(cached) " >&6
27330 else
27331 gcc_cv_as_powerpc_gnu_attribute=no
27332 if test $in_tree_gas = yes; then
27333 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27334 then gcc_cv_as_powerpc_gnu_attribute=yes
27335 fi
27336 elif test x$gcc_cv_as != x; then
27337 $as_echo '.gnu_attribute 4,1' > conftest.s
27338 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27340 (eval $ac_try) 2>&5
27341 ac_status=$?
27342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27343 test $ac_status = 0; }; }
27344 then
27345 gcc_cv_as_powerpc_gnu_attribute=yes
27346 else
27347 echo "configure: failed program was" >&5
27348 cat conftest.s >&5
27349 fi
27350 rm -f conftest.o conftest.s
27351 fi
27352 fi
27353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27354 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27355 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27356
27357 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27358
27359 fi
27360
27361
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27363 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27364 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27365 $as_echo_n "(cached) " >&6
27366 else
27367 gcc_cv_as_powerpc_entry_markers=no
27368 if test $in_tree_gas = yes; then
27369 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27370 then gcc_cv_as_powerpc_entry_markers=yes
27371 fi
27372 elif test x$gcc_cv_as != x; then
27373 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27374 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27376 (eval $ac_try) 2>&5
27377 ac_status=$?
27378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27379 test $ac_status = 0; }; }
27380 then
27381 gcc_cv_as_powerpc_entry_markers=yes
27382 else
27383 echo "configure: failed program was" >&5
27384 cat conftest.s >&5
27385 fi
27386 rm -f conftest.o conftest.s
27387 fi
27388 fi
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27390 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27391 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27392
27393 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27394
27395 fi
27396
27397
27398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27399 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27400 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27401 $as_echo_n "(cached) " >&6
27402 else
27403 gcc_cv_as_powerpc_pltseq_markers=no
27404 if test $in_tree_gas = yes; then
27405 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27406 then gcc_cv_as_powerpc_pltseq_markers=yes
27407 fi
27408 elif test x$gcc_cv_as != x; then
27409 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27410 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27412 (eval $ac_try) 2>&5
27413 ac_status=$?
27414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27415 test $ac_status = 0; }; }
27416 then
27417 gcc_cv_as_powerpc_pltseq_markers=yes
27418 else
27419 echo "configure: failed program was" >&5
27420 cat conftest.s >&5
27421 fi
27422 rm -f conftest.o conftest.s
27423 fi
27424 fi
27425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27426 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27427 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27428
27429 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27430
27431 fi
27432
27433
27434 case $target in
27435 *-*-aix*)
27436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27437 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27438 if ${gcc_cv_as_aix_ref+:} false; then :
27439 $as_echo_n "(cached) " >&6
27440 else
27441 gcc_cv_as_aix_ref=no
27442 if test $in_tree_gas = yes; then
27443 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27444 then gcc_cv_as_aix_ref=yes
27445 fi
27446 elif test x$gcc_cv_as != x; then
27447 $as_echo ' .csect stuff[rw]
27448 stuff:
27449 .long 1
27450 .extern sym
27451 .ref sym
27452 ' > conftest.s
27453 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27455 (eval $ac_try) 2>&5
27456 ac_status=$?
27457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27458 test $ac_status = 0; }; }
27459 then
27460 gcc_cv_as_aix_ref=yes
27461 else
27462 echo "configure: failed program was" >&5
27463 cat conftest.s >&5
27464 fi
27465 rm -f conftest.o conftest.s
27466 fi
27467 fi
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27469 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27470 if test $gcc_cv_as_aix_ref = yes; then
27471
27472 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27473
27474 fi
27475
27476
27477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27478 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27479 if ${gcc_cv_as_aix_dwloc+:} false; then :
27480 $as_echo_n "(cached) " >&6
27481 else
27482 gcc_cv_as_aix_dwloc=no
27483 if test $in_tree_gas = yes; then
27484 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27485 then gcc_cv_as_aix_dwloc=yes
27486 fi
27487 elif test x$gcc_cv_as != x; then
27488 $as_echo ' .dwsect 0xA0000
27489 Lframe..0:
27490 .vbyte 4,Lframe..0
27491 ' > conftest.s
27492 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27494 (eval $ac_try) 2>&5
27495 ac_status=$?
27496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27497 test $ac_status = 0; }; }
27498 then
27499 gcc_cv_as_aix_dwloc=yes
27500 else
27501 echo "configure: failed program was" >&5
27502 cat conftest.s >&5
27503 fi
27504 rm -f conftest.o conftest.s
27505 fi
27506 fi
27507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27508 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27509 if test $gcc_cv_as_aix_dwloc = yes; then
27510
27511 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27512
27513 fi
27514
27515 ;;
27516 esac
27517 ;;
27518
27519 mips*-*-*)
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27521 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27522 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27523 $as_echo_n "(cached) " >&6
27524 else
27525 gcc_cv_as_mips_explicit_relocs=no
27526 if test $in_tree_gas = yes; then
27527 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27528 then gcc_cv_as_mips_explicit_relocs=yes
27529 fi
27530 elif test x$gcc_cv_as != x; then
27531 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27532 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27534 (eval $ac_try) 2>&5
27535 ac_status=$?
27536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27537 test $ac_status = 0; }; }
27538 then
27539 gcc_cv_as_mips_explicit_relocs=yes
27540 else
27541 echo "configure: failed program was" >&5
27542 cat conftest.s >&5
27543 fi
27544 rm -f conftest.o conftest.s
27545 fi
27546 fi
27547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27548 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27549 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27550 if test x$target_cpu_default = x
27551 then target_cpu_default=MASK_EXPLICIT_RELOCS
27552 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27553 fi
27554 fi
27555
27556
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27558 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27559 if ${gcc_cv_as_mips_no_shared+:} false; then :
27560 $as_echo_n "(cached) " >&6
27561 else
27562 gcc_cv_as_mips_no_shared=no
27563 if test $in_tree_gas = yes; then
27564 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27565 then gcc_cv_as_mips_no_shared=yes
27566 fi
27567 elif test x$gcc_cv_as != x; then
27568 $as_echo 'nop' > conftest.s
27569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27571 (eval $ac_try) 2>&5
27572 ac_status=$?
27573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27574 test $ac_status = 0; }; }
27575 then
27576 gcc_cv_as_mips_no_shared=yes
27577 else
27578 echo "configure: failed program was" >&5
27579 cat conftest.s >&5
27580 fi
27581 rm -f conftest.o conftest.s
27582 fi
27583 fi
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27585 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27586 if test $gcc_cv_as_mips_no_shared = yes; then
27587
27588 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27589
27590 fi
27591
27592
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27594 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27595 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27596 $as_echo_n "(cached) " >&6
27597 else
27598 gcc_cv_as_mips_gnu_attribute=no
27599 if test $in_tree_gas = yes; then
27600 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27601 then gcc_cv_as_mips_gnu_attribute=yes
27602 fi
27603 elif test x$gcc_cv_as != x; then
27604 $as_echo '.gnu_attribute 4,1' > conftest.s
27605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27607 (eval $ac_try) 2>&5
27608 ac_status=$?
27609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27610 test $ac_status = 0; }; }
27611 then
27612 gcc_cv_as_mips_gnu_attribute=yes
27613 else
27614 echo "configure: failed program was" >&5
27615 cat conftest.s >&5
27616 fi
27617 rm -f conftest.o conftest.s
27618 fi
27619 fi
27620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27621 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27622 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27623
27624 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27625
27626 fi
27627
27628
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27630 $as_echo_n "checking assembler for .module support... " >&6; }
27631 if ${gcc_cv_as_mips_dot_module+:} false; then :
27632 $as_echo_n "(cached) " >&6
27633 else
27634 gcc_cv_as_mips_dot_module=no
27635 if test x$gcc_cv_as != x; then
27636 $as_echo '.module mips2
27637 .module fp=xx' > conftest.s
27638 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27640 (eval $ac_try) 2>&5
27641 ac_status=$?
27642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27643 test $ac_status = 0; }; }
27644 then
27645 gcc_cv_as_mips_dot_module=yes
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_mips_dot_module" >&5
27654 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27655 if test $gcc_cv_as_mips_dot_module = yes; then
27656
27657 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27658
27659 fi
27660
27661 if test x$gcc_cv_as_mips_dot_module = xno \
27662 && test x$with_fp_32 != x; then
27663 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27664 fi
27665
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27667 $as_echo_n "checking assembler for .micromips support... " >&6; }
27668 if ${gcc_cv_as_micromips_support+:} false; then :
27669 $as_echo_n "(cached) " >&6
27670 else
27671 gcc_cv_as_micromips_support=no
27672 if test x$gcc_cv_as != x; then
27673 $as_echo '.set micromips' > conftest.s
27674 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27676 (eval $ac_try) 2>&5
27677 ac_status=$?
27678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27679 test $ac_status = 0; }; }
27680 then
27681 gcc_cv_as_micromips_support=yes
27682 else
27683 echo "configure: failed program was" >&5
27684 cat conftest.s >&5
27685 fi
27686 rm -f conftest.o conftest.s
27687 fi
27688 fi
27689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27690 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27691 if test $gcc_cv_as_micromips_support = yes; then
27692
27693 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27694
27695 fi
27696
27697
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27699 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27700 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27701 $as_echo_n "(cached) " >&6
27702 else
27703 gcc_cv_as_mips_dtprelword=no
27704 if test $in_tree_gas = yes; then
27705 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27706 then gcc_cv_as_mips_dtprelword=yes
27707 fi
27708 elif test x$gcc_cv_as != x; then
27709 $as_echo '.section .tdata,"awT",@progbits
27710 x:
27711 .word 2
27712 .text
27713 .dtprelword x+0x8000' > conftest.s
27714 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27716 (eval $ac_try) 2>&5
27717 ac_status=$?
27718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27719 test $ac_status = 0; }; }
27720 then
27721 gcc_cv_as_mips_dtprelword=yes
27722 else
27723 echo "configure: failed program was" >&5
27724 cat conftest.s >&5
27725 fi
27726 rm -f conftest.o conftest.s
27727 fi
27728 fi
27729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27730 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27731 if test $gcc_cv_as_mips_dtprelword = yes; then
27732
27733 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27734
27735 fi
27736
27737
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27739 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27740 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27741 $as_echo_n "(cached) " >&6
27742 else
27743 gcc_cv_as_mips_dspr1_mult=no
27744 if test x$gcc_cv_as != x; then
27745 $as_echo ' .set mips32r2
27746 .set nodspr2
27747 .set dsp
27748 madd $ac3,$4,$5
27749 maddu $ac3,$4,$5
27750 msub $ac3,$4,$5
27751 msubu $ac3,$4,$5
27752 mult $ac3,$4,$5
27753 multu $ac3,$4,$5' > conftest.s
27754 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27756 (eval $ac_try) 2>&5
27757 ac_status=$?
27758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27759 test $ac_status = 0; }; }
27760 then
27761 gcc_cv_as_mips_dspr1_mult=yes
27762 else
27763 echo "configure: failed program was" >&5
27764 cat conftest.s >&5
27765 fi
27766 rm -f conftest.o conftest.s
27767 fi
27768 fi
27769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27770 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27771 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27772
27773 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27774
27775 fi
27776
27777
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27779 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27780 gcc_cv_as_ld_jalr_reloc=no
27781 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27782 if test $in_tree_ld = yes ; then
27783 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 \
27784 && test $in_tree_ld_is_elf = yes; then
27785 gcc_cv_as_ld_jalr_reloc=yes
27786 fi
27787 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27788 echo ' .ent x' > conftest.s
27789 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27790 echo ' lw $25,%call16(y)($28)' >> conftest.s
27791 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27792 echo '1: jalr $25' >> conftest.s
27793 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27794 echo '1: jalr $25' >> conftest.s
27795 echo ' .end x' >> conftest.s
27796 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27797 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27798 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27799 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27800 gcc_cv_as_ld_jalr_reloc=yes
27801 fi
27802 fi
27803 rm -f conftest.*
27804 fi
27805 fi
27806 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27807 if test x$target_cpu_default = x; then
27808 target_cpu_default=MASK_RELAX_PIC_CALLS
27809 else
27810 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27811 fi
27812 fi
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27814 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27815
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27817 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27818 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27819 $as_echo_n "(cached) " >&6
27820 else
27821 gcc_cv_ld_mips_personality_relaxation=no
27822 if test $in_tree_ld = yes ; then
27823 if test "$gcc_cv_gld_major_version" -eq 2 \
27824 -a "$gcc_cv_gld_minor_version" -ge 21 \
27825 -o "$gcc_cv_gld_major_version" -gt 2; then
27826 gcc_cv_ld_mips_personality_relaxation=yes
27827 fi
27828 elif test x$gcc_cv_as != x \
27829 -a x$gcc_cv_ld != x \
27830 -a x$gcc_cv_readelf != x ; then
27831 cat > conftest.s <<EOF
27832 .cfi_startproc
27833 .cfi_personality 0x80,indirect_ptr
27834 .ent test
27835 test:
27836 nop
27837 .end test
27838 .cfi_endproc
27839
27840 .section .data,"aw",@progbits
27841 indirect_ptr:
27842 .dc.a personality
27843 EOF
27844 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27845 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27846 if $gcc_cv_readelf -d conftest 2>&1 \
27847 | grep TEXTREL > /dev/null 2>&1; then
27848 :
27849 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27850 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27851 :
27852 else
27853 gcc_cv_ld_mips_personality_relaxation=yes
27854 fi
27855 fi
27856 fi
27857 rm -f conftest.s conftest.o conftest
27858 fi
27859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27860 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27861 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27862
27863 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27864
27865 fi
27866
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27868 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27869 if ${gcc_cv_as_mips_nan+:} false; then :
27870 $as_echo_n "(cached) " >&6
27871 else
27872 gcc_cv_as_mips_nan=no
27873 if test x$gcc_cv_as != x; then
27874 $as_echo '' > conftest.s
27875 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27877 (eval $ac_try) 2>&5
27878 ac_status=$?
27879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27880 test $ac_status = 0; }; }
27881 then
27882 gcc_cv_as_mips_nan=yes
27883 else
27884 echo "configure: failed program was" >&5
27885 cat conftest.s >&5
27886 fi
27887 rm -f conftest.o conftest.s
27888 fi
27889 fi
27890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27891 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27892 if test $gcc_cv_as_mips_nan = yes; then
27893
27894 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27895
27896 fi
27897
27898 if test x$gcc_cv_as_mips_nan = xno \
27899 && test x$with_nan != x; then
27900 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27901 fi
27902 ;;
27903 msp430-*-*)
27904 # Earlier GAS versions generically support .gnu_attribute, but the
27905 # msp430 assembler will not do anything with it.
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27907 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27908 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
27909 $as_echo_n "(cached) " >&6
27910 else
27911 gcc_cv_as_msp430_gnu_attribute=no
27912 if test $in_tree_gas = yes; then
27913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27914 then gcc_cv_as_msp430_gnu_attribute=yes
27915 fi
27916 elif test x$gcc_cv_as != x; then
27917 $as_echo '.gnu_attribute 4,1' > conftest.s
27918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27920 (eval $ac_try) 2>&5
27921 ac_status=$?
27922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27923 test $ac_status = 0; }; }
27924 then
27925 gcc_cv_as_msp430_gnu_attribute=yes
27926 else
27927 echo "configure: failed program was" >&5
27928 cat conftest.s >&5
27929 fi
27930 rm -f conftest.o conftest.s
27931 fi
27932 fi
27933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
27934 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27935 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27936
27937 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27938
27939 fi
27940
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27942 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27943 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
27944 $as_echo_n "(cached) " >&6
27945 else
27946 gcc_cv_as_msp430_mspabi_attribute=no
27947 if test $in_tree_gas = yes; then
27948 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27949 then gcc_cv_as_msp430_mspabi_attribute=yes
27950 fi
27951 elif test x$gcc_cv_as != x; then
27952 $as_echo '.mspabi_attribute 4,1' > conftest.s
27953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27955 (eval $ac_try) 2>&5
27956 ac_status=$?
27957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27958 test $ac_status = 0; }; }
27959 then
27960 gcc_cv_as_msp430_mspabi_attribute=yes
27961 else
27962 echo "configure: failed program was" >&5
27963 cat conftest.s >&5
27964 fi
27965 rm -f conftest.o conftest.s
27966 fi
27967 fi
27968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
27969 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
27970 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
27971
27972 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
27973
27974 fi
27975
27976 if test x$enable_newlib_nano_formatted_io = xyes; then
27977
27978 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
27979
27980 fi
27981 ;;
27982 nios2-*-*)
27983 # Versions 2.33 and earlier lacked support for the %gotoff relocation
27984 # syntax that is documented in the ABI specification.
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
27986 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
27987 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
27988 $as_echo_n "(cached) " >&6
27989 else
27990 gcc_cv_as_nios2_gotoff_relocation=no
27991 if test x$gcc_cv_as != x; then
27992 $as_echo ' .extern foo
27993 .data
27994 .long %gotoff(foo)' > conftest.s
27995 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27997 (eval $ac_try) 2>&5
27998 ac_status=$?
27999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28000 test $ac_status = 0; }; }
28001 then
28002 gcc_cv_as_nios2_gotoff_relocation=yes
28003 else
28004 echo "configure: failed program was" >&5
28005 cat conftest.s >&5
28006 fi
28007 rm -f conftest.o conftest.s
28008 fi
28009 fi
28010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28011 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28012 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28013
28014 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28015
28016 fi
28017
28018 ;;
28019 riscv*-*-*)
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28021 $as_echo_n "checking assembler for .attribute support... " >&6; }
28022 if ${gcc_cv_as_riscv_attribute+:} false; then :
28023 $as_echo_n "(cached) " >&6
28024 else
28025 gcc_cv_as_riscv_attribute=no
28026 if test $in_tree_gas = yes; then
28027 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
28028 then gcc_cv_as_riscv_attribute=yes
28029 fi
28030 elif test x$gcc_cv_as != x; then
28031 $as_echo '.attribute stack_align,4' > conftest.s
28032 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28034 (eval $ac_try) 2>&5
28035 ac_status=$?
28036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28037 test $ac_status = 0; }; }
28038 then
28039 gcc_cv_as_riscv_attribute=yes
28040 else
28041 echo "configure: failed program was" >&5
28042 cat conftest.s >&5
28043 fi
28044 rm -f conftest.o conftest.s
28045 fi
28046 fi
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28048 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28049 if test $gcc_cv_as_riscv_attribute = yes; then
28050
28051 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28052
28053 fi
28054
28055 ;;
28056 s390*-*-*)
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28058 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28059 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28060 $as_echo_n "(cached) " >&6
28061 else
28062 gcc_cv_as_s390_gnu_attribute=no
28063 if test $in_tree_gas = yes; then
28064 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28065 then gcc_cv_as_s390_gnu_attribute=yes
28066 fi
28067 elif test x$gcc_cv_as != x; then
28068 $as_echo '.gnu_attribute 8,1' > conftest.s
28069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28071 (eval $ac_try) 2>&5
28072 ac_status=$?
28073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28074 test $ac_status = 0; }; }
28075 then
28076 gcc_cv_as_s390_gnu_attribute=yes
28077 else
28078 echo "configure: failed program was" >&5
28079 cat conftest.s >&5
28080 fi
28081 rm -f conftest.o conftest.s
28082 fi
28083 fi
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28085 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28086 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28087
28088 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28089
28090 fi
28091
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28093 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28094 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28095 $as_echo_n "(cached) " >&6
28096 else
28097 gcc_cv_as_s390_machine_machinemode=no
28098 if test $in_tree_gas = yes; then
28099 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28100 then gcc_cv_as_s390_machine_machinemode=yes
28101 fi
28102 elif test x$gcc_cv_as != x; then
28103 $as_echo ' .machinemode push
28104 .machinemode pop
28105 .machine push
28106 .machine pop' > conftest.s
28107 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28109 (eval $ac_try) 2>&5
28110 ac_status=$?
28111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28112 test $ac_status = 0; }; }
28113 then
28114 gcc_cv_as_s390_machine_machinemode=yes
28115 else
28116 echo "configure: failed program was" >&5
28117 cat conftest.s >&5
28118 fi
28119 rm -f conftest.o conftest.s
28120 fi
28121 fi
28122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28123 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28124 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28125
28126 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28127
28128 fi
28129
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28131 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28132 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28133 $as_echo_n "(cached) " >&6
28134 else
28135 gcc_cv_as_s390_architecture_modifiers=no
28136 if test $in_tree_gas = yes; then
28137 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28138 then gcc_cv_as_s390_architecture_modifiers=yes
28139 fi
28140 elif test x$gcc_cv_as != x; then
28141 $as_echo ' .machine z13+vx ' > conftest.s
28142 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28144 (eval $ac_try) 2>&5
28145 ac_status=$?
28146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28147 test $ac_status = 0; }; }
28148 then
28149 gcc_cv_as_s390_architecture_modifiers=yes
28150 else
28151 echo "configure: failed program was" >&5
28152 cat conftest.s >&5
28153 fi
28154 rm -f conftest.o conftest.s
28155 fi
28156 fi
28157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28158 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28159 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28160
28161 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28162
28163 fi
28164
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28166 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28167 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28168 $as_echo_n "(cached) " >&6
28169 else
28170 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28171 if test $in_tree_gas = yes; then
28172 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28173 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28174 fi
28175 elif test x$gcc_cv_as != x; then
28176 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28179 (eval $ac_try) 2>&5
28180 ac_status=$?
28181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28182 test $ac_status = 0; }; }
28183 then
28184 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28185 else
28186 echo "configure: failed program was" >&5
28187 cat conftest.s >&5
28188 fi
28189 rm -f conftest.o conftest.s
28190 fi
28191 fi
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28193 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28194 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28195
28196 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28197
28198 fi
28199
28200
28201 ;;
28202 esac
28203
28204 # Mips and HP-UX need the GNU assembler.
28205 # Linux on IA64 might be able to use the Intel assembler.
28206
28207 case "$target" in
28208 mips*-*-* | *-*-hpux* )
28209 if test x$gas_flag = xyes \
28210 || test x"$host" != x"$build" \
28211 || test ! -x "$gcc_cv_as" \
28212 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28213 :
28214 else
28215 echo "*** This configuration requires the GNU assembler" >&2
28216 exit 1
28217 fi
28218 ;;
28219 esac
28220
28221 # ??? Not all targets support dwarf2 debug_line, even within a version
28222 # of gas. Moreover, we need to emit a valid instruction to trigger any
28223 # info to the output file. So, as supported targets are added to gas 2.11,
28224 # add some instruction here to (also) show we expect this might work.
28225 # ??? Once 2.11 is released, probably need to add first known working
28226 # version to the per-target configury.
28227 case "$cpu_type" in
28228 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28229 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28230 | tilegx | tilepro | visium | xstormy16 | xtensa)
28231 insn="nop"
28232 ;;
28233 ia64 | s390)
28234 insn="nop 0"
28235 ;;
28236 mmix)
28237 insn="swym 0"
28238 ;;
28239 esac
28240 if test x"$insn" != x; then
28241 conftest_s="\
28242 .file 1 \"conftest.s\"
28243 .loc 1 3 0
28244 $insn"
28245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28246 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28247 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
28248 $as_echo_n "(cached) " >&6
28249 else
28250 gcc_cv_as_dwarf2_debug_line=no
28251 if test $in_tree_gas = yes; then
28252 if test $in_tree_gas_is_elf = yes \
28253 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28254 then gcc_cv_as_dwarf2_debug_line=yes
28255 fi
28256 elif test x$gcc_cv_as != x; then
28257 $as_echo "$conftest_s" > conftest.s
28258 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28260 (eval $ac_try) 2>&5
28261 ac_status=$?
28262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28263 test $ac_status = 0; }; }
28264 then
28265 if test x$gcc_cv_objdump != x \
28266 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
28267 | grep debug_line > /dev/null 2>&1; then
28268 gcc_cv_as_dwarf2_debug_line=yes
28269 elif test x$gcc_cv_otool != x \
28270 && $gcc_cv_otool -l conftest.o 2> /dev/null \
28271 | grep debug_line > /dev/null 2>&1; then
28272 gcc_cv_as_dwarf2_debug_line=yes
28273 fi
28274 else
28275 echo "configure: failed program was" >&5
28276 cat conftest.s >&5
28277 fi
28278 rm -f conftest.o conftest.s
28279 fi
28280 fi
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28282 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28283
28284
28285
28286 # The .debug_line file table must be in the exact order that
28287 # we specified the files, since these indices are also used
28288 # by DW_AT_decl_file. Approximate this test by testing if
28289 # the assembler bitches if the same index is assigned twice.
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28291 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28292 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
28293 $as_echo_n "(cached) " >&6
28294 else
28295 gcc_cv_as_dwarf2_file_buggy=no
28296 if test x$gcc_cv_as != x; then
28297 $as_echo ' .file 1 "foo.s"
28298 .file 1 "bar.s"' > conftest.s
28299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28301 (eval $ac_try) 2>&5
28302 ac_status=$?
28303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28304 test $ac_status = 0; }; }
28305 then
28306 gcc_cv_as_dwarf2_file_buggy=yes
28307 else
28308 echo "configure: failed program was" >&5
28309 cat conftest.s >&5
28310 fi
28311 rm -f conftest.o conftest.s
28312 fi
28313 fi
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28315 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28316
28317
28318
28319 if test $gcc_cv_as_dwarf2_debug_line = yes \
28320 && test $gcc_cv_as_dwarf2_file_buggy = no; then
28321
28322 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28323
28324
28325 if test $gcc_cv_as_leb128 = yes; then
28326 conftest_s="\
28327 .file 1 \"conftest.s\"
28328 .loc 1 3 0 view .LVU1
28329 $insn
28330 .data
28331 .uleb128 .LVU1
28332 .uleb128 .LVU1
28333 "
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28335 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28336 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
28337 $as_echo_n "(cached) " >&6
28338 else
28339 gcc_cv_as_dwarf2_debug_view=no
28340 if test $in_tree_gas = yes; then
28341 if test $in_tree_gas_is_elf = yes \
28342 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28343 then gcc_cv_as_dwarf2_debug_view=yes
28344 fi
28345 elif test x$gcc_cv_as != x; then
28346 $as_echo "$conftest_s" > conftest.s
28347 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28349 (eval $ac_try) 2>&5
28350 ac_status=$?
28351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28352 test $ac_status = 0; }; }
28353 then
28354 gcc_cv_as_dwarf2_debug_view=yes
28355 else
28356 echo "configure: failed program was" >&5
28357 cat conftest.s >&5
28358 fi
28359 rm -f conftest.o conftest.s
28360 fi
28361 fi
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28363 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28364 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28365
28366 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28367
28368 fi
28369
28370 fi
28371 fi
28372
28373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28374 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28375 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
28376 $as_echo_n "(cached) " >&6
28377 else
28378 gcc_cv_as_gdwarf2_flag=no
28379 if test $in_tree_gas = yes; then
28380 if test $in_tree_gas_is_elf = yes \
28381 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28382 then gcc_cv_as_gdwarf2_flag=yes
28383 fi
28384 elif test x$gcc_cv_as != x; then
28385 $as_echo "$insn" > conftest.s
28386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28388 (eval $ac_try) 2>&5
28389 ac_status=$?
28390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28391 test $ac_status = 0; }; }
28392 then
28393 gcc_cv_as_gdwarf2_flag=yes
28394 else
28395 echo "configure: failed program was" >&5
28396 cat conftest.s >&5
28397 fi
28398 rm -f conftest.o conftest.s
28399 fi
28400 fi
28401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28402 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28403 if test $gcc_cv_as_gdwarf2_flag = yes; then
28404
28405 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28406
28407 fi
28408
28409
28410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28411 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28412 if ${gcc_cv_as_gstabs_flag+:} false; then :
28413 $as_echo_n "(cached) " >&6
28414 else
28415 gcc_cv_as_gstabs_flag=no
28416 if test $in_tree_gas = yes; then
28417 if test $in_tree_gas_is_elf = yes \
28418 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28419 then gcc_cv_as_gstabs_flag=yes
28420 fi
28421 elif test x$gcc_cv_as != x; then
28422 $as_echo "$insn" > conftest.s
28423 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28425 (eval $ac_try) 2>&5
28426 ac_status=$?
28427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28428 test $ac_status = 0; }; }
28429 then
28430 gcc_cv_as_gstabs_flag=yes
28431 else
28432 echo "configure: failed program was" >&5
28433 cat conftest.s >&5
28434 fi
28435 rm -f conftest.o conftest.s
28436 fi
28437 fi
28438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28439 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28440 if test $gcc_cv_as_gstabs_flag = yes; then
28441
28442 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28443
28444 fi
28445
28446
28447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28448 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28449 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28450 $as_echo_n "(cached) " >&6
28451 else
28452 gcc_cv_as_debug_prefix_map_flag=no
28453 if test $in_tree_gas = yes; then
28454 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28455 then gcc_cv_as_debug_prefix_map_flag=yes
28456 fi
28457 elif test x$gcc_cv_as != x; then
28458 $as_echo "$insn" > conftest.s
28459 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28461 (eval $ac_try) 2>&5
28462 ac_status=$?
28463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28464 test $ac_status = 0; }; }
28465 then
28466 gcc_cv_as_debug_prefix_map_flag=yes
28467 else
28468 echo "configure: failed program was" >&5
28469 cat conftest.s >&5
28470 fi
28471 rm -f conftest.o conftest.s
28472 fi
28473 fi
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28475 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28476 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28477
28478 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28479
28480 fi
28481
28482 fi
28483
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28485 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28486 if ${gcc_cv_as_compress_debug+:} false; then :
28487 $as_echo_n "(cached) " >&6
28488 else
28489 gcc_cv_as_compress_debug=no
28490 if test x$gcc_cv_as != x; then
28491 $as_echo '' > conftest.s
28492 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28494 (eval $ac_try) 2>&5
28495 ac_status=$?
28496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28497 test $ac_status = 0; }; }
28498 then
28499 # gas compiled without zlib cannot compress debug sections and warns
28500 # about it, but still exits successfully. So check for this, too.
28501 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28502 then
28503 gcc_cv_as_compress_debug=0
28504 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28505 # defaulting to the ELF gABI format.
28506 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28507 then
28508 gcc_cv_as_compress_debug=2
28509 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28510 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28511 # Before binutils 2.26, gas only supported --compress-debug-options and
28512 # emitted the traditional GNU format.
28513 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28514 then
28515 gcc_cv_as_compress_debug=1
28516 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28517 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28518 else
28519 gcc_cv_as_compress_debug=0
28520 fi
28521 else
28522 echo "configure: failed program was" >&5
28523 cat conftest.s >&5
28524 fi
28525 rm -f conftest.o conftest.s
28526 fi
28527 fi
28528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28529 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28530
28531
28532
28533 cat >>confdefs.h <<_ACEOF
28534 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28535 _ACEOF
28536
28537
28538 cat >>confdefs.h <<_ACEOF
28539 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28540 _ACEOF
28541
28542
28543 cat >>confdefs.h <<_ACEOF
28544 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28545 _ACEOF
28546
28547
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28549 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28550 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
28551 $as_echo_n "(cached) " >&6
28552 else
28553 gcc_cv_as_lcomm_with_alignment=no
28554 if test x$gcc_cv_as != x; then
28555 $as_echo '.lcomm bar,4,16' > 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_lcomm_with_alignment=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_lcomm_with_alignment" >&5
28572 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28573 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28574
28575 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28576
28577 fi
28578
28579
28580 if test x$with_sysroot = x && test x$host = x$target \
28581 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28582 && test "$prefix" != "NONE"; then
28583
28584 cat >>confdefs.h <<_ACEOF
28585 #define PREFIX_INCLUDE_DIR "$prefix/include"
28586 _ACEOF
28587
28588 fi
28589
28590 # Determine the version of glibc, if any, used on the target.
28591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28592 $as_echo_n "checking for target glibc version... " >&6; }
28593
28594 # Check whether --with-glibc-version was given.
28595 if test "${with_glibc_version+set}" = set; then :
28596 withval=$with_glibc_version;
28597 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28598 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28599 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28600 else
28601 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28602 fi
28603 else
28604
28605 glibc_version_major=0
28606 glibc_version_minor=0
28607 if test -f $target_header_dir/features.h \
28608 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28609 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28610 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28611 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28612 fi
28613 fi
28614
28615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28616 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28617
28618 cat >>confdefs.h <<_ACEOF
28619 #define TARGET_GLIBC_MAJOR $glibc_version_major
28620 _ACEOF
28621
28622
28623 cat >>confdefs.h <<_ACEOF
28624 #define TARGET_GLIBC_MINOR $glibc_version_minor
28625 _ACEOF
28626
28627
28628 # Check whether --enable-gnu-unique-object was given.
28629 if test "${enable_gnu_unique_object+set}" = set; then :
28630 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28631 yes | no) ;;
28632 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28633 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28634 esac
28635 else
28636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28637 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28638 if ${gcc_cv_as_gnu_unique_object+:} false; then :
28639 $as_echo_n "(cached) " >&6
28640 else
28641 gcc_cv_as_gnu_unique_object=no
28642 if test $in_tree_gas = yes; then
28643 if test $in_tree_gas_is_elf = yes \
28644 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28645 then gcc_cv_as_gnu_unique_object=yes
28646 fi
28647 elif test x$gcc_cv_as != x; then
28648 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28649 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28651 (eval $ac_try) 2>&5
28652 ac_status=$?
28653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28654 test $ac_status = 0; }; }
28655 then
28656 gcc_cv_as_gnu_unique_object=yes
28657 else
28658 echo "configure: failed program was" >&5
28659 cat conftest.s >&5
28660 fi
28661 rm -f conftest.o conftest.s
28662 fi
28663 fi
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28665 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28666 if test $gcc_cv_as_gnu_unique_object = yes; then
28667 # We need to unquote above to to use the definition from config.gcc.
28668 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28669
28670 if test $glibc_version_major -gt 2 \
28671 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28672 enable_gnu_unique_object=yes
28673 fi
28674
28675 fi
28676
28677 fi
28678
28679 if test x$enable_gnu_unique_object = xyes; then
28680
28681 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28682
28683 fi
28684
28685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28686 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28687 if ${gcc_cv_as_line_zero+:} false; then :
28688 $as_echo_n "(cached) " >&6
28689 else
28690 gcc_cv_as_line_zero=no
28691 if test $in_tree_gas = yes; then
28692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28693 then gcc_cv_as_line_zero=yes
28694 fi
28695 elif test "x$gcc_cv_as" != x; then
28696 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28697 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28699 (eval $ac_try) 2>&5
28700 ac_status=$?
28701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28702 test $ac_status = 0; }; } &&
28703 test "x`cat conftest.out`" = x
28704 then
28705 gcc_cv_as_line_zero=yes
28706 else
28707 echo "configure: failed program was" >&5
28708 cat conftest.s >&5
28709 echo "configure: error output was" >&5
28710 cat conftest.out >&5
28711 fi
28712 rm -f conftest.o conftest.s conftest.out
28713 fi
28714 fi
28715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28716 $as_echo "$gcc_cv_as_line_zero" >&6; }
28717 if test "x$gcc_cv_as_line_zero" = xyes; then
28718
28719 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28720
28721 fi
28722
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28724 $as_echo_n "checking support for thin archives... " >&6; }
28725 thin_archive_support=no
28726 echo 'int main (void) { return 0; }' > conftest.c
28727 if ($AR --version | sed 1q | grep "GNU ar" \
28728 && $CC $CFLAGS -c conftest.c \
28729 && $AR rcT conftest.a conftest.o \
28730 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28731 thin_archive_support=yes
28732 fi
28733 rm -f conftest.c conftest.o conftest.a conftest
28734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28735 $as_echo "$thin_archive_support" >&6; }
28736
28737
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28739 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28740 gcc_cv_ld_eh_frame_hdr=no
28741 if test $in_tree_ld = yes ; then
28742 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 \
28743 && test $in_tree_ld_is_elf = yes; then
28744 gcc_cv_ld_eh_frame_hdr=yes
28745 fi
28746 elif test x$gcc_cv_ld != x; then
28747 if echo "$ld_ver" | grep GNU > /dev/null; then
28748 # Check if linker supports --eh-frame-hdr option
28749 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28750 gcc_cv_ld_eh_frame_hdr=yes
28751 fi
28752 else
28753 case "$target" in
28754 *-*-solaris2*)
28755 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28756 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28757 gcc_cv_ld_eh_frame_hdr=yes
28758 fi
28759 ;;
28760 esac
28761 fi
28762 fi
28763
28764 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28765
28766 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28767
28768 fi
28769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28770 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28771
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28773 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28774 gcc_cv_ld_eh_frame_ciev3=no
28775 if test $in_tree_ld = yes ; then
28776 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 \
28777 && test $in_tree_ld_is_elf = yes; then
28778 gcc_cv_ld_eh_frame_ciev3=yes
28779 fi
28780 elif test x$gcc_cv_ld != x; then
28781 if echo "$ld_ver" | grep GNU > /dev/null; then
28782 gcc_cv_ld_eh_frame_ciev3=yes
28783 if test 0"$ld_date" -lt 20040513; then
28784 if test -n "$ld_date"; then
28785 # If there was date string, but was earlier than 2004-05-13, fail
28786 gcc_cv_ld_eh_frame_ciev3=no
28787 elif test "$ld_vers_major" -lt 2; then
28788 gcc_cv_ld_eh_frame_ciev3=no
28789 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28790 gcc_cv_ld_eh_frame_ciev3=no
28791 fi
28792 fi
28793 else
28794 case "$target" in
28795 *-*-solaris2*)
28796 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28797 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28798 gcc_cv_ld_eh_frame_ciev3=yes
28799 fi
28800 ;;
28801 esac
28802 fi
28803 fi
28804
28805 cat >>confdefs.h <<_ACEOF
28806 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28807 _ACEOF
28808
28809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28810 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28811
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28813 $as_echo_n "checking linker position independent executable support... " >&6; }
28814 gcc_cv_ld_pie=no
28815 if test $in_tree_ld = yes ; then
28816 case "$target" in
28817 # Full PIE support on Solaris was only introduced in gld 2.26.
28818 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28819 *) gcc_gld_pie_min_version=15 ;;
28820 esac
28821 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 \
28822 && test $in_tree_ld_is_elf = yes; then
28823 gcc_cv_ld_pie=yes
28824 fi
28825 elif test x$gcc_cv_ld != x; then
28826 # Check if linker supports -pie option
28827 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28828 gcc_cv_ld_pie=yes
28829 case "$target" in
28830 *-*-solaris2*)
28831 if echo "$ld_ver" | grep GNU > /dev/null \
28832 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28833 gcc_cv_ld_pie=no
28834 fi
28835 ;;
28836 esac
28837 else
28838 case "$target" in
28839 *-*-solaris2.1[1-9]*)
28840 # Solaris 11.3 added PIE support.
28841 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28842 gcc_cv_ld_pie=yes
28843 fi
28844 ;;
28845 esac
28846 fi
28847 fi
28848 if test x"$gcc_cv_ld_pie" = xyes; then
28849
28850 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28851
28852 fi
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28854 $as_echo "$gcc_cv_ld_pie" >&6; }
28855
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28857 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28858 gcc_cv_ld_pie_copyreloc=no
28859 if test $gcc_cv_ld_pie = yes ; then
28860 if test $in_tree_ld = yes ; then
28861 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
28862 gcc_cv_ld_pie_copyreloc=yes
28863 fi
28864 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28865 # Check if linker supports -pie option with copy reloc
28866 case "$target" in
28867 i?86-*-linux* | x86_64-*-linux*)
28868 cat > conftest1.s <<EOF
28869 .globl a_glob
28870 .data
28871 .type a_glob, @object
28872 .size a_glob, 4
28873 a_glob:
28874 .long 2
28875 EOF
28876 cat > conftest2.s <<EOF
28877 .text
28878 .globl main
28879 .type main, @function
28880 main:
28881 movl %eax, a_glob(%rip)
28882 .size main, .-main
28883 .globl ptr
28884 .section .data.rel,"aw",@progbits
28885 .type ptr, @object
28886 ptr:
28887 .quad a_glob
28888 EOF
28889 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28890 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28891 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28892 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28893 gcc_cv_ld_pie_copyreloc=yes
28894 fi
28895 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28896 ;;
28897 esac
28898 fi
28899 fi
28900
28901 cat >>confdefs.h <<_ACEOF
28902 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28903 _ACEOF
28904
28905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28906 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28907
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28909 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28910 gcc_cv_ld_eh_gc_sections=no
28911 if test $in_tree_ld = yes ; then
28912 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 \
28913 && test $in_tree_ld_is_elf = yes; then
28914 gcc_cv_ld_eh_gc_sections=yes
28915 fi
28916 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28917 cat > conftest.s <<EOF
28918 .section .text
28919 .globl _start
28920 .type _start, @function
28921 _start:
28922 .long foo
28923 .size _start, .-_start
28924 .section .text.foo,"ax",@progbits
28925 .type foo, @function
28926 foo:
28927 .long 0
28928 .size foo, .-foo
28929 .section .gcc_except_table.foo,"a",@progbits
28930 .L0:
28931 .long 0
28932 .section .eh_frame,"a",@progbits
28933 .long .L0
28934 EOF
28935 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28936 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28937 | grep "gc-sections option ignored" > /dev/null; then
28938 gcc_cv_ld_eh_gc_sections=no
28939 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28940 | grep gcc_except_table > /dev/null; then
28941 gcc_cv_ld_eh_gc_sections=yes
28942 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28943 if test x$gcc_cv_as_comdat_group != xyes; then
28944 gcc_cv_ld_eh_gc_sections=no
28945 cat > conftest.s <<EOF
28946 .section .text
28947 .globl _start
28948 .type _start, @function
28949 _start:
28950 .long foo
28951 .size _start, .-_start
28952 .section .gnu.linkonce.t.foo,"ax",@progbits
28953 .type foo, @function
28954 foo:
28955 .long 0
28956 .size foo, .-foo
28957 .section .gcc_except_table.foo,"a",@progbits
28958 .L0:
28959 .long 0
28960 .section .eh_frame,"a",@progbits
28961 .long .L0
28962 EOF
28963 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28964 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28965 | grep "gc-sections option ignored" > /dev/null; then
28966 gcc_cv_ld_eh_gc_sections=no
28967 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28968 | grep gcc_except_table > /dev/null; then
28969 gcc_cv_ld_eh_gc_sections=yes
28970 fi
28971 fi
28972 fi
28973 fi
28974 fi
28975 rm -f conftest.s conftest.o conftest
28976 fi
28977 case "$target" in
28978 hppa*-*-linux*)
28979 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28980 gcc_cv_ld_eh_gc_sections=no
28981 ;;
28982 esac
28983 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28984
28985 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28986
28987 fi
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28989 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28990
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28992 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28993 gcc_cv_ld_eh_gc_sections_bug=no
28994 if test $in_tree_ld = yes ; then
28995 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 \
28996 && test $in_tree_ld_is_elf = yes; then
28997 gcc_cv_ld_eh_gc_sections_bug=yes
28998 fi
28999 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
29000 gcc_cv_ld_eh_gc_sections_bug=yes
29001 cat > conftest.s <<EOF
29002 .section .text
29003 .globl _start
29004 .type _start, @function
29005 _start:
29006 .long foo
29007 .size _start, .-_start
29008 .section .text.startup.foo,"ax",@progbits
29009 .type foo, @function
29010 foo:
29011 .long 0
29012 .size foo, .-foo
29013 .section .gcc_except_table.foo,"a",@progbits
29014 .L0:
29015 .long 0
29016 .section .eh_frame,"a",@progbits
29017 .long .L0
29018 EOF
29019 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29020 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29021 | grep "gc-sections option ignored" > /dev/null; then
29022 :
29023 elif $gcc_cv_objdump -h conftest 2> /dev/null \
29024 | grep gcc_except_table > /dev/null; then
29025 gcc_cv_ld_eh_gc_sections_bug=no
29026 fi
29027 fi
29028 rm -f conftest.s conftest.o conftest
29029 fi
29030 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
29031
29032 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
29033
29034 fi
29035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
29036 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
29037
29038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
29039 $as_echo_n "checking linker for compressed debug sections... " >&6; }
29040 # gold/gld support compressed debug sections since binutils 2.19/2.21
29041 # In binutils 2.26, gld gained support for the ELF gABI format.
29042 if test $in_tree_ld = yes ; then
29043 gcc_cv_ld_compress_debug=0
29044 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 \
29045 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
29046 gcc_cv_ld_compress_debug=2
29047 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29048 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 \
29049 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
29050 gcc_cv_ld_compress_debug=3
29051 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29052 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 \
29053 && test $in_tree_ld_is_elf = yes; then
29054 gcc_cv_ld_compress_debug=1
29055 fi
29056 elif echo "$ld_ver" | grep GNU > /dev/null; then
29057 if test "$ld_vers_major" -lt 2 \
29058 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
29059 gcc_cv_ld_compress_debug=0
29060 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29061 gcc_cv_ld_compress_debug=1
29062 else
29063 gcc_cv_ld_compress_debug=3
29064 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29065 fi
29066 if test $ld_is_gold = yes; then
29067 gcc_cv_ld_compress_debug=2
29068 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29069 fi
29070 else
29071 case "${target}" in
29072 *-*-solaris2*)
29073 # Introduced in Solaris 11.2.
29074 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
29075 gcc_cv_ld_compress_debug=3
29076 gcc_cv_ld_compress_debug_option="-z compress-sections"
29077 else
29078 gcc_cv_ld_compress_debug=0
29079 fi
29080 ;;
29081 *)
29082 # Assume linkers other than GNU ld don't support compessed debug
29083 # sections.
29084 gcc_cv_ld_compress_debug=0
29085 ;;
29086 esac
29087 fi
29088
29089 cat >>confdefs.h <<_ACEOF
29090 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
29091 _ACEOF
29092
29093
29094 cat >>confdefs.h <<_ACEOF
29095 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
29096 _ACEOF
29097
29098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
29099 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
29100
29101 if test x"$ld64_flag" = x"yes"; then
29102
29103 # Set defaults for possibly untestable items.
29104 gcc_cv_ld64_export_dynamic=0
29105
29106 if test "$build" = "$host"; then
29107 darwin_try_test=1
29108 else
29109 darwin_try_test=0
29110 fi
29111
29112 # On Darwin, because of FAT library support, it is often possible to execute
29113 # exes from compatible archs even when the host differs from the build system.
29114 case "$build","$host" in
29115 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
29116 darwin_try_test=1;;
29117 *) ;;
29118 esac
29119
29120 # If the configurer specified a minimum ld64 version to be supported, then use
29121 # that to determine feature support.
29122 if test x"${gcc_cv_ld64_version}" != x; then
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
29124 $as_echo_n "checking ld64 specified version... " >&6; }
29125 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
29126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
29127 $as_echo "$gcc_cv_ld64_major" >&6; }
29128 if test "$gcc_cv_ld64_major" -ge 236; then
29129 gcc_cv_ld64_export_dynamic=1
29130 fi
29131 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
29132 # If the version was not specified, try to find it.
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
29134 $as_echo_n "checking linker version... " >&6; }
29135 if test x"${gcc_cv_ld64_version}" = x; then
29136 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29137 fi
29138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29139 $as_echo "$gcc_cv_ld64_version" >&6; }
29140
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29142 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
29143 gcc_cv_ld64_export_dynamic=1
29144 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
29145 gcc_cv_ld64_export_dynamic=0
29146 fi
29147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29148 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29149 fi
29150
29151 if test x"${gcc_cv_ld64_version}" != x; then
29152
29153 cat >>confdefs.h <<_ACEOF
29154 #define LD64_VERSION "${gcc_cv_ld64_version}"
29155 _ACEOF
29156
29157 fi
29158
29159
29160 cat >>confdefs.h <<_ACEOF
29161 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29162 _ACEOF
29163
29164 fi
29165
29166 # --------
29167 # UNSORTED
29168 # --------
29169
29170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29171 $as_echo_n "checking linker --as-needed support... " >&6; }
29172 if ${gcc_cv_ld_as_needed+:} false; then :
29173 $as_echo_n "(cached) " >&6
29174 else
29175 gcc_cv_ld_as_needed=no
29176 gcc_cv_ld_as_needed_option='--as-needed'
29177 gcc_cv_ld_no_as_needed_option='--no-as-needed'
29178 if test $in_tree_ld = yes ; then
29179 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 \
29180 && test $in_tree_ld_is_elf = yes; then
29181 gcc_cv_ld_as_needed=yes
29182 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29183 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29184 gcc_cv_ld_no_as_needed_option='--pop-state'
29185 fi
29186 fi
29187 elif test x$gcc_cv_ld != x; then
29188 # Check if linker supports --as-needed and --no-as-needed options
29189 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
29190 gcc_cv_ld_as_needed=yes
29191 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
29192 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
29193 && echo "$ld_ver" | grep GNU > /dev/null \
29194 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29195 # Use these options only when both ld.bfd and ld.gold support
29196 # --push-state/--pop-state, which unfortunately wasn't added
29197 # at the same time.
29198 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29199 gcc_cv_ld_no_as_needed_option='--pop-state'
29200 fi
29201 fi
29202 case "$target:$gnu_ld" in
29203 *-*-solaris2*:no)
29204 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
29205 # forms.
29206 gcc_cv_ld_as_needed=yes
29207 gcc_cv_ld_as_needed_option="-z ignore"
29208 gcc_cv_ld_no_as_needed_option="-z record"
29209 ;;
29210 esac
29211 fi
29212 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29213 # dl_iterate_phdr, i.e. since Solaris 11.
29214 case "$target" in
29215 *-*-solaris2.1[1-9]*)
29216 case "$target" in
29217 i?86-*-* | x86_64-*-*)
29218 if echo "$ld_ver" | grep GNU > /dev/null; then
29219 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29220 gcc_cv_ld_as_needed=no
29221 fi
29222 ;;
29223 esac
29224 ;;
29225 *-*-solaris2*)
29226 gcc_cv_ld_as_needed=no
29227 ;;
29228 esac
29229
29230 fi
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29232 $as_echo "$gcc_cv_ld_as_needed" >&6; }
29233 if test x"$gcc_cv_ld_as_needed" = xyes; then
29234
29235 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29236
29237
29238 cat >>confdefs.h <<_ACEOF
29239 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29240 _ACEOF
29241
29242
29243 cat >>confdefs.h <<_ACEOF
29244 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29245 _ACEOF
29246
29247 fi
29248
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29250 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29251 saved_LDFLAGS="$LDFLAGS"
29252 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
29253 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29255 /* end confdefs.h. */
29256 int main(void) {return 0;}
29257 _ACEOF
29258 if ac_fn_cxx_try_link "$LINENO"; then :
29259 gcc_cv_ld_clearcap=yes; break
29260 else
29261 gcc_cv_ld_clearcap=no
29262 fi
29263 rm -f core conftest.err conftest.$ac_objext \
29264 conftest$ac_exeext conftest.$ac_ext
29265 done
29266 LDFLAGS="$saved_LDFLAGS"
29267 if test "x$gcc_cv_ld_clearcap" = xyes; then
29268
29269 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29270
29271 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29272
29273 fi
29274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29275 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29276
29277 case "$target" in
29278 powerpc*-*-*)
29279 case "$target" in
29280 *le-*-linux*)
29281 emul_name="-melf32lppc"
29282 ;;
29283 *)
29284 emul_name="-melf32ppc"
29285 ;;
29286 esac
29287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29288 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29289 if ${gcc_cv_ld_ppc_attr+:} false; then :
29290 $as_echo_n "(cached) " >&6
29291 else
29292 gcc_cv_ld_ppc_attr=no
29293 if test x"$ld_is_gold" = xyes; then
29294 gcc_cv_ld_ppc_attr=yes
29295 elif test $in_tree_ld = yes ; then
29296 if test "$gcc_cv_gld_major_version" -eq 2 \
29297 -a "$gcc_cv_gld_minor_version" -ge 28 \
29298 -o "$gcc_cv_gld_major_version" -gt 2; then
29299 gcc_cv_ld_ppc_attr=yes
29300 fi
29301 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29302 # check that merging the long double .gnu_attribute doesn't warn
29303 cat > conftest1.s <<EOF
29304 .gnu_attribute 4,1
29305 EOF
29306 cat > conftest2.s <<EOF
29307 .gnu_attribute 4,9
29308 EOF
29309 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29310 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29311 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
29312 && test ! -s conftest.err; then
29313 gcc_cv_ld_ppc_attr=yes
29314 fi
29315 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29316 fi
29317
29318 fi
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29320 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29321 if test x$gcc_cv_ld_ppc_attr = xyes; then
29322
29323 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29324
29325 fi
29326 ;;
29327 esac
29328
29329 case "$target:$tm_file" in
29330 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
29331 case "$target" in
29332 *le-*-linux*)
29333 emul_name="-melf64lppc"
29334 ;;
29335 *-*-linux*)
29336 emul_name="-melf64ppc"
29337 ;;
29338 *-*-freebsd*)
29339 emul_name="-melf64ppc_fbsd"
29340 ;;
29341 esac
29342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29343 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29344 if ${gcc_cv_ld_no_dot_syms+:} false; then :
29345 $as_echo_n "(cached) " >&6
29346 else
29347 gcc_cv_ld_no_dot_syms=no
29348 if test x"$ld_is_gold" = xyes; then
29349 gcc_cv_ld_no_dot_syms=yes
29350 elif test $in_tree_ld = yes ; then
29351 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
29352 gcc_cv_ld_no_dot_syms=yes
29353 fi
29354 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29355 cat > conftest1.s <<EOF
29356 .text
29357 bl .foo
29358 EOF
29359 cat > conftest2.s <<EOF
29360 .section ".opd","aw"
29361 .align 3
29362 .globl foo
29363 .type foo,@function
29364 foo:
29365 .quad .LEfoo,.TOC.@tocbase,0
29366 .text
29367 .LEfoo:
29368 blr
29369 .size foo,.-.LEfoo
29370 EOF
29371 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29372 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29373 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
29374 gcc_cv_ld_no_dot_syms=yes
29375 fi
29376 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29377 fi
29378
29379 fi
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29381 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29382 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
29383
29384 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29385
29386 fi
29387
29388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29389 $as_echo_n "checking linker large toc support... " >&6; }
29390 if ${gcc_cv_ld_large_toc+:} false; then :
29391 $as_echo_n "(cached) " >&6
29392 else
29393 gcc_cv_ld_large_toc=no
29394 if test x"$ld_is_gold" = xyes; then
29395 gcc_cv_ld_large_toc=yes
29396 elif test $in_tree_ld = yes ; then
29397 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
29398 gcc_cv_ld_large_toc=yes
29399 fi
29400 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29401 cat > conftest.s <<EOF
29402 .section ".tbss","awT",@nobits
29403 .align 3
29404 ie0: .space 8
29405 .global _start
29406 .text
29407 _start:
29408 addis 9,13,ie0@got@tprel@ha
29409 ld 9,ie0@got@tprel@l(9)
29410 EOF
29411 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29412 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
29413 gcc_cv_ld_large_toc=yes
29414 fi
29415 rm -f conftest conftest.o conftest.s
29416 fi
29417
29418 fi
29419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29420 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29421 if test x"$gcc_cv_ld_large_toc" = xyes; then
29422
29423 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29424
29425 fi
29426
29427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29428 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29429 if ${gcc_cv_ld_toc_align+:} false; then :
29430 $as_echo_n "(cached) " >&6
29431 else
29432 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29433 cat > conftest.s <<EOF
29434 .global _start
29435 .text
29436 _start:
29437 addis 9,2,x@got@ha
29438 .section .data.rel.ro,"aw",@progbits
29439 .p2align 16
29440 .space 32768
29441 x: .quad .TOC.
29442 EOF
29443 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29444 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29445 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)) }'`
29446 fi
29447 rm -f conftest conftest.o conftest.s
29448 fi
29449
29450 fi
29451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29452 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29453 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29454
29455 cat >>confdefs.h <<_ACEOF
29456 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29457 _ACEOF
29458
29459 fi
29460 ;;
29461 esac
29462
29463 case "$target" in
29464 *-*-aix*)
29465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29466 $as_echo_n "checking linker large toc support... " >&6; }
29467 if ${gcc_cv_ld_large_toc+:} false; then :
29468 $as_echo_n "(cached) " >&6
29469 else
29470 gcc_cv_ld_large_toc=no
29471 if test x$gcc_cv_as != x ; then
29472 cat > conftest.s <<EOF
29473 .toc
29474 LC..1:
29475 .tc a[TC],a[RW]
29476 .extern a[RW]
29477 .csect .text[PR]
29478 .largetoctest:
29479 addis 9,LC..1@u(2)
29480 ld 3,LC..1@l(9)
29481 EOF
29482 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29483 gcc_cv_ld_large_toc=yes
29484 fi
29485 rm -f conftest conftest.o conftest.s
29486 fi
29487
29488 fi
29489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29490 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29491 if test x"$gcc_cv_ld_large_toc" = xyes; then
29492
29493 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29494
29495 fi
29496 ;;
29497 esac
29498
29499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29500 $as_echo_n "checking linker --build-id support... " >&6; }
29501 if ${gcc_cv_ld_buildid+:} false; then :
29502 $as_echo_n "(cached) " >&6
29503 else
29504 gcc_cv_ld_buildid=no
29505 if test $in_tree_ld = yes ; then
29506 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29507 "$gcc_cv_gld_minor_version" -ge 18 -o \
29508 "$gcc_cv_gld_major_version" -gt 2 \
29509 && test $in_tree_ld_is_elf = yes; then
29510 gcc_cv_ld_buildid=yes
29511 fi
29512 elif test x$gcc_cv_ld != x; then
29513 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29514 gcc_cv_ld_buildid=yes
29515 fi
29516 fi
29517 fi
29518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29519 $as_echo "$gcc_cv_ld_buildid" >&6; }
29520 if test x"$gcc_cv_ld_buildid" = xyes; then
29521
29522 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29523
29524 fi
29525
29526 # Check whether --enable-linker-build-id was given.
29527 if test "${enable_linker_build_id+set}" = set; then :
29528 enableval=$enable_linker_build_id;
29529 else
29530 enable_linker_build_id=no
29531 fi
29532
29533
29534 if test x"$enable_linker_build_id" = xyes; then
29535 if test x"$gcc_cv_ld_buildid" = xyes; then
29536
29537 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29538
29539 else
29540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29541 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29542 fi
29543 fi
29544
29545 # In binutils 2.21, GNU ld gained support for new emulations fully
29546 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29548 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29549 if ${gcc_cv_ld_sol2_emulation+:} false; then :
29550 $as_echo_n "(cached) " >&6
29551 else
29552 gcc_cv_ld_sol2_emulation=no
29553 if test $in_tree_ld = yes ; then
29554 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29555 "$gcc_cv_gld_minor_version" -ge 21 -o \
29556 "$gcc_cv_gld_major_version" -gt 2 \
29557 && test $in_tree_ld_is_elf = yes; then
29558 gcc_cv_ld_sol2_emulation=yes
29559 fi
29560 elif test x$gcc_cv_ld != x; then
29561 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29562 grep _sol2 > /dev/null; then
29563 gcc_cv_ld_sol2_emulation=yes
29564 fi
29565 fi
29566 fi
29567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29568 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29569 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29570
29571 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29572
29573 fi
29574
29575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29576 $as_echo_n "checking linker --sysroot support... " >&6; }
29577 if ${gcc_cv_ld_sysroot+:} false; then :
29578 $as_echo_n "(cached) " >&6
29579 else
29580 gcc_cv_ld_sysroot=no
29581 if test $in_tree_ld = yes ; then
29582 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
29583 gcc_cv_ld_sysroot=yes
29584 fi
29585 elif test x$gcc_cv_ld != x; then
29586 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29587 gcc_cv_ld_sysroot=yes
29588 fi
29589 fi
29590 fi
29591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29592 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29593 if test x"$gcc_cv_ld_sysroot" = xyes; then
29594
29595 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29596
29597 fi
29598
29599 case $target in
29600 *-*-solaris2*)
29601 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29603 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29604 if ${gcc_cv_solaris_crts+:} false; then :
29605 $as_echo_n "(cached) " >&6
29606 else
29607 gcc_cv_solaris_crts=no
29608 if test x$host != x$target; then
29609 if test "x$with_sysroot" = xyes; then
29610 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29611 else
29612 target_sysroot="${with_sysroot}"
29613 fi
29614 fi
29615 target_libdir="$target_sysroot/usr/lib"
29616 # At the time they were added, gcrt1.o became a symlink for backwards
29617 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29618 case $target in
29619 i?86-*-solaris2* | x86_64-*-solaris2*)
29620 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29621 ;;
29622 sparc*-*-solaris2*)
29623 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29624 ;;
29625 esac
29626 fi
29627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29628 $as_echo "$gcc_cv_solaris_crts" >&6; }
29629 ;;
29630 esac
29631 if test x$gcc_cv_solaris_crts = xyes; then
29632
29633 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29634
29635 fi
29636
29637 # Check whether --enable-libssp was given.
29638 if test "${enable_libssp+set}" = set; then :
29639 enableval=$enable_libssp; case "${enableval}" in
29640 yes|no)
29641 ;;
29642 *)
29643 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
29644 ;;
29645 esac
29646 fi
29647
29648
29649 # Test for stack protector support in target C library.
29650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29651 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29652 if ${gcc_cv_libc_provides_ssp+:} false; then :
29653 $as_echo_n "(cached) " >&6
29654 else
29655 gcc_cv_libc_provides_ssp=no
29656 if test "x$enable_libssp" = "xno"; then
29657 gcc_cv_libc_provides_ssp=yes
29658 elif test "x$enable_libssp" = "xyes"; then
29659 gcc_cv_libc_provides_ssp=no
29660 else
29661 case "$target" in
29662 *-*-musl*)
29663 # All versions of musl provide stack protector
29664 gcc_cv_libc_provides_ssp=yes;;
29665 *-*-linux* | *-*-kfreebsd*-gnu)
29666 # glibc 2.4 and later provides __stack_chk_fail and
29667 # either __stack_chk_guard, or TLS access to stack guard canary.
29668
29669 if test $glibc_version_major -gt 2 \
29670 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29671 gcc_cv_libc_provides_ssp=yes
29672 else
29673
29674 if test -f $target_header_dir/features.h \
29675 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29676 $target_header_dir/features.h > /dev/null; then
29677 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29678 $target_header_dir/features.h > /dev/null && \
29679 test -f $target_header_dir/bits/uClibc_config.h && \
29680 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29681 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29682 gcc_cv_libc_provides_ssp=yes
29683 fi
29684 # all versions of Bionic support stack protector
29685 elif test -f $target_header_dir/sys/cdefs.h \
29686 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29687 $target_header_dir/sys/cdefs.h > /dev/null; then
29688 gcc_cv_libc_provides_ssp=yes
29689 fi
29690 fi
29691 ;;
29692 *-*-gnu*)
29693 # Avoid complicated tests (see
29694 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29695 # simply assert that glibc does provide this, which is true for all
29696 # realistically usable GNU/Hurd configurations.
29697 # All supported versions of musl provide it as well
29698 gcc_cv_libc_provides_ssp=yes;;
29699 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29700 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29701 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29702 gcc_cv_libc_provides_ssp=yes
29703 else
29704 echo "no __stack_chk_fail on this target"
29705 fi
29706
29707 ;;
29708 *) gcc_cv_libc_provides_ssp=no ;;
29709 esac
29710 fi
29711 fi
29712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29713 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29714
29715 if test x$gcc_cv_libc_provides_ssp = xyes; then
29716
29717 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29718
29719 fi
29720
29721 # Check whether --enable-default-ssp was given.
29722 # Check whether --enable-default-ssp was given.
29723 if test "${enable_default_ssp+set}" = set; then :
29724 enableval=$enable_default_ssp;
29725 if test x$gcc_cv_libc_provides_ssp = xyes; then
29726 case "$target" in
29727 ia64*-*-*) enable_default_ssp=no ;;
29728 *) enable_default_ssp=$enableval ;;
29729 esac
29730 else
29731 enable_default_ssp=no
29732 fi
29733 else
29734 enable_default_ssp=no
29735 fi
29736
29737 if test x$enable_default_ssp = xyes ; then
29738
29739 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29740
29741 fi
29742
29743
29744 # Test for <sys/sdt.h> on the target.
29745
29746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29747 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29748 have_sys_sdt_h=no
29749 if test -f $target_header_dir/sys/sdt.h; then
29750 have_sys_sdt_h=yes
29751
29752 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29753
29754 fi
29755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29756 $as_echo "$have_sys_sdt_h" >&6; }
29757
29758 # Check if TFmode long double should be used by default or not.
29759 # Some glibc targets used DFmode long double, but with glibc 2.4
29760 # and later they can use TFmode.
29761 case "$target" in
29762 powerpc*-*-linux* | \
29763 sparc*-*-linux* | \
29764 s390*-*-linux* | \
29765 alpha*-*-linux*)
29766
29767 # Check whether --with-long-double-128 was given.
29768 if test "${with_long_double_128+set}" = set; then :
29769 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29770 else
29771
29772 case "$target" in
29773 s390*-*-linux-musl*)
29774 gcc_cv_target_ldbl128=yes
29775 ;;
29776 powerpc*-*-linux-musl*)
29777 gcc_cv_target_ldbl128=no
29778 ;;
29779 *)
29780
29781 if test $glibc_version_major -gt 2 \
29782 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29783 gcc_cv_target_ldbl128=yes
29784 else
29785
29786 gcc_cv_target_ldbl128=no
29787 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29788 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29789 && gcc_cv_target_ldbl128=yes
29790
29791 fi
29792
29793 ;;
29794 esac
29795
29796 fi
29797
29798 ;;
29799 esac
29800 if test x$gcc_cv_target_ldbl128 = xyes; then
29801
29802 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29803
29804 fi
29805
29806 # Check if TFmode long double target should use the IBM extended double or IEEE
29807 # 128-bit floating point formats if long doubles are 128-bits long. The long
29808 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29809 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29810 # libgcc.
29811
29812 # Check whether --with-long-double-format was given.
29813 if test "${with_long_double_format+set}" = set; then :
29814 withval=$with_long_double_format;
29815 case "$target:$with_long_double_format" in
29816 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29817 :
29818 ;;
29819 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29820 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29821 case "$with_cpu" in
29822 power7 | power8 | power9 | power1*)
29823 :
29824 ;;
29825 *)
29826 as_fn_error $? "Configuration option --with-long-double-format is only \
29827 supported if the default cpu is power7 or newer" "$LINENO" 5
29828 with_long_double_format=""
29829 ;;
29830 esac
29831 ;;
29832 xpowerpc64*-*-linux*:*)
29833 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29834 with_long_double_format=""
29835 ;;
29836 *)
29837 as_fn_error $? "Configure option --with-long-double-format is only supported \
29838 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29839 with_long_double_format=""
29840 ;;
29841 esac
29842 fi
29843
29844
29845 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29846 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29847 gcc_cv_libc_provides_hwcap_in_tcb=no
29848 case "$target" in
29849 powerpc*-*-linux*)
29850
29851 if test $glibc_version_major -gt 2 \
29852 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29853 gcc_cv_libc_provides_hwcap_in_tcb=yes
29854 fi
29855 ;;
29856 esac
29857 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29858
29859 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29860
29861 fi
29862
29863 # Check if the target LIBC handles PT_GNU_STACK.
29864 gcc_cv_libc_gnustack=unknown
29865 case "$target" in
29866 mips*-*-linux*)
29867
29868 if test $glibc_version_major -gt 2 \
29869 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
29870 gcc_cv_libc_gnustack=yes
29871 fi
29872 ;;
29873 esac
29874 if test x$gcc_cv_libc_gnustack = xyes; then
29875
29876 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
29877
29878 fi
29879
29880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29881 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29882 gcc_cv_target_dl_iterate_phdr=unknown
29883 case "$target" in
29884 *-*-solaris2*)
29885 # <link.h> needs both a dl_iterate_phdr declaration and support for
29886 # compilation with largefile support.
29887 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29888 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29889 gcc_cv_target_dl_iterate_phdr=yes
29890 else
29891 gcc_cv_target_dl_iterate_phdr=no
29892 fi
29893 ;;
29894 *-*-dragonfly* | *-*-freebsd*)
29895 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29896 gcc_cv_target_dl_iterate_phdr=yes
29897 else
29898 gcc_cv_target_dl_iterate_phdr=no
29899 fi
29900 ;;
29901 *-linux-musl*)
29902 gcc_cv_target_dl_iterate_phdr=yes
29903 ;;
29904 esac
29905
29906 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29907
29908 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29909
29910 fi
29911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29912 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29913
29914 # We no longer support different GC mechanisms. Emit an error if
29915 # the user configures with --with-gc.
29916
29917 # Check whether --with-gc was given.
29918 if test "${with_gc+set}" = set; then :
29919 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29920 fi
29921
29922
29923 # Libraries to use on the host. This will normally be set by the top
29924 # level Makefile. Here we simply capture the value for our Makefile.
29925 if test -z "${HOST_LIBS+set}"; then
29926 HOST_LIBS=
29927 fi
29928
29929
29930 # Use the system's zlib library.
29931
29932 # Use the system's zlib library.
29933 zlibdir="-L\$(top_builddir)/../zlib"
29934 zlibinc="-I\$(top_srcdir)/../zlib"
29935
29936 # Check whether --with-system-zlib was given.
29937 if test "${with_system_zlib+set}" = set; then :
29938 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29939 zlibdir=
29940 zlibinc=
29941 fi
29942
29943 fi
29944
29945
29946
29947
29948
29949
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29951 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29952 # Check whether --enable-maintainer-mode was given.
29953 if test "${enable_maintainer_mode+set}" = set; then :
29954 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29955 else
29956 maintainer_mode=no
29957 fi
29958
29959
29960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29961 $as_echo "$maintainer_mode" >&6; }
29962
29963 if test "$maintainer_mode" = "yes"; then
29964 MAINT=''
29965 else
29966 MAINT='#'
29967 fi
29968
29969
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29971 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29972 # Check whether --enable-link-mutex was given.
29973 if test "${enable_link_mutex+set}" = set; then :
29974 enableval=$enable_link_mutex; do_link_mutex=$enableval
29975 else
29976 do_link_mutex=no
29977 fi
29978
29979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29980 $as_echo "$do_link_mutex" >&6; }
29981
29982 if test "$do_link_mutex" = "yes"; then
29983 DO_LINK_MUTEX=true
29984 else
29985 DO_LINK_MUTEX=false
29986 fi
29987
29988
29989 # --------------
29990 # Language hooks
29991 # --------------
29992
29993 # Make empty files to contain the specs and options for each language.
29994 # Then add #include lines to for a compiler that has specs and/or options.
29995
29996 subdirs=
29997 lang_opt_files=
29998 lang_specs_files=
29999 lang_tree_files=
30000 # These (without "all_") are set in each config-lang.in.
30001 # `language' must be a single word so is spelled singularly.
30002 all_languages=
30003 all_compilers=
30004 all_outputs='Makefile'
30005 # List of language configure and makefile fragments.
30006 all_lang_configurefrags=
30007 all_lang_makefrags=
30008 # Additional files for gengtype
30009 all_gtfiles="$target_gtfiles"
30010
30011 # These are the languages that are set in --enable-languages,
30012 # and are available in the GCC tree.
30013 all_selected_languages=
30014
30015 # Add the language fragments.
30016 # Languages are added via two mechanisms. Some information must be
30017 # recorded in makefile variables, these are defined in config-lang.in.
30018 # We accumulate them and plug them into the main Makefile.
30019 # The other mechanism is a set of hooks for each of the main targets
30020 # like `clean', `install', etc.
30021
30022 language_hooks="Make-hooks"
30023
30024 for lang in ${srcdir}/*/config-lang.in
30025 do
30026 test "$lang" = "${srcdir}/*/config-lang.in" && continue
30027
30028 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
30029 if test "x$lang_alias" = x
30030 then
30031 echo "$lang doesn't set \$language." 1>&2
30032 exit 1
30033 fi
30034 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
30035 subdirs="$subdirs $subdir"
30036
30037 # $gcc_subdir is where the gcc integration files are to be found
30038 # for a language, both for internal compiler purposes (compiler
30039 # sources implementing front-end to GCC tree converters), and for
30040 # build infrastructure purposes (Make-lang.in, etc.)
30041 #
30042 # This will be <subdir> (relative to $srcdir) if a line like
30043 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
30044 # is found in <langdir>/config-lang.in, and will remain <langdir>
30045 # otherwise.
30046 #
30047 # Except for the language alias (fetched above), the regular
30048 # "config-lang.in" contents are always retrieved from $gcc_subdir,
30049 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
30050 # only this and the language alias.
30051
30052 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
30053 if [ "$gcc_subdir" = "" ]; then
30054 gcc_subdir="$subdir"
30055 fi
30056
30057 case ",$enable_languages," in
30058 *,$lang_alias,*)
30059 all_selected_languages="$all_selected_languages $lang_alias"
30060 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
30061 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
30062 fi
30063 ;;
30064 esac
30065
30066 language=
30067 boot_language=
30068 compilers=
30069 outputs=
30070 gtfiles=
30071 subdir_requires=
30072 . ${srcdir}/$gcc_subdir/config-lang.in
30073 if test "x$language" = x
30074 then
30075 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
30076 exit 1
30077 fi
30078
30079 ok=:
30080 case ",$enable_languages," in
30081 *,$lang_alias,*) ;;
30082 *)
30083 for i in $subdir_requires; do
30084 test -f "${srcdir}/$i/config-lang.in" && continue
30085 ok=false
30086 break
30087 done
30088 ;;
30089 esac
30090 $ok || continue
30091
30092 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
30093 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
30094 if test -f $srcdir/$gcc_subdir/lang.opt; then
30095 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
30096 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
30097 fi
30098 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
30099 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
30100 fi
30101 all_languages="$all_languages $language"
30102 all_compilers="$all_compilers $compilers"
30103 all_outputs="$all_outputs $outputs"
30104 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
30105 case ",$enable_languages," in
30106 *,lto,*)
30107
30108 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
30109
30110 enable_lto=yes
30111
30112 ;;
30113 *) ;;
30114 esac
30115 done
30116
30117 check_languages=
30118 for language in $all_selected_languages
30119 do
30120 check_languages="$check_languages check-$language"
30121 done
30122
30123 selftest_languages=
30124 for language in $all_selected_languages
30125 do
30126 selftest_languages="$selftest_languages selftest-$language"
30127 done
30128
30129 # We link each language in with a set of hooks, reached indirectly via
30130 # lang.${target}. Only do so for selected languages.
30131
30132 rm -f Make-hooks
30133 touch Make-hooks
30134 target_list="all.cross start.encap rest.encap tags \
30135 install-common install-man install-info install-pdf install-html dvi \
30136 pdf html uninstall info man srcextra srcman srcinfo \
30137 mostlyclean clean distclean maintainer-clean install-plugin"
30138
30139 for t in $target_list
30140 do
30141 x=
30142 for lang in $all_selected_languages
30143 do
30144 x="$x $lang.$t"
30145 done
30146 echo "lang.$t: $x" >> Make-hooks
30147 done
30148
30149 # --------
30150 # Option include files
30151 # --------
30152
30153 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
30154 option_includes="option-includes.mk"
30155
30156
30157 # --------
30158 # UNSORTED
30159 # --------
30160
30161 # Create .gdbinit.
30162
30163 echo "dir ." > .gdbinit
30164 echo "dir ${srcdir}" >> .gdbinit
30165 if test x$gdb_needs_out_file_path = xyes
30166 then
30167 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30168 fi
30169 if test "x$subdirs" != x; then
30170 for s in $subdirs
30171 do
30172 echo "dir ${srcdir}/$s" >> .gdbinit
30173 done
30174 fi
30175 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30176 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30177
30178 # Put a breakpoint on __asan_report_error to help with debugging buffer
30179 # overflow.
30180 case "$CFLAGS" in
30181 *-fsanitize=address*)
30182 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30183 ;;
30184 esac
30185
30186 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30187
30188
30189
30190 # Find a directory in which to install a shared libgcc.
30191
30192 # Check whether --enable-version-specific-runtime-libs was given.
30193 if test "${enable_version_specific_runtime_libs+set}" = set; then :
30194 enableval=$enable_version_specific_runtime_libs;
30195 fi
30196
30197
30198 # Substitute configuration variables
30199
30200
30201
30202
30203
30204
30205
30206
30207
30208
30209
30210
30211
30212
30213
30214
30215
30216
30217
30218
30219
30220
30221
30222
30223
30224
30225
30226
30227
30228
30229
30230
30231
30232
30233
30234
30235
30236
30237
30238
30239
30240
30241
30242
30243
30244
30245
30246
30247
30248
30249
30250
30251
30252
30253
30254
30255
30256
30257
30258
30259
30260
30261
30262
30263
30264
30265
30266 # Echo link setup.
30267 if test x${build} = x${host} ; then
30268 if test x${host} = x${target} ; then
30269 echo "Links are now set up to build a native compiler for ${target}." 1>&2
30270 else
30271 echo "Links are now set up to build a cross-compiler" 1>&2
30272 echo " from ${host} to ${target}." 1>&2
30273 fi
30274 else
30275 if test x${host} = x${target} ; then
30276 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30277 echo " for ${target}." 1>&2
30278 else
30279 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30280 echo " from ${host} to ${target}." 1>&2
30281 fi
30282 fi
30283
30284
30285
30286
30287
30288
30289 if test "x${ISLLIBS}" != "x" ; then
30290
30291 $as_echo "#define HAVE_isl 1" >>confdefs.h
30292
30293 fi
30294
30295 # Check for plugin support
30296 # Check whether --enable-plugin was given.
30297 if test "${enable_plugin+set}" = set; then :
30298 enableval=$enable_plugin; enable_plugin=$enableval
30299 else
30300 enable_plugin=yes; default_plugin=yes
30301 fi
30302
30303
30304 pluginlibs=
30305 plugin_check=yes
30306
30307 case "${host}" in
30308 *-*-mingw*)
30309 # Since plugin support under MinGW is not as straightforward as on
30310 # other platforms (e.g., we have to link import library, etc), we
30311 # only enable it if explicitly requested.
30312 if test x"$default_plugin" = x"yes"; then
30313 enable_plugin=no
30314 elif test x"$enable_plugin" = x"yes"; then
30315 # Use make's target variable to derive import library name.
30316 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30317 plugin_check=no
30318 fi
30319 ;;
30320 *-*-darwin*)
30321 if test x$build = x$host; then
30322 export_sym_check="nm${exeext} -g"
30323 elif test x$host = x$target; then
30324 export_sym_check="$gcc_cv_nm -g"
30325 else
30326 export_sym_check=
30327 fi
30328 ;;
30329 *)
30330 if test x$build = x$host; then
30331 export_sym_check="objdump${exeext} -T"
30332 elif test x$host = x$target; then
30333 export_sym_check="$gcc_cv_objdump -T"
30334 else
30335 export_sym_check=
30336 fi
30337 ;;
30338 esac
30339
30340 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
30341
30342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30343 $as_echo_n "checking for exported symbols... " >&6; }
30344 if test "x$export_sym_check" != x; then
30345 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30346 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30347 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30348 : # No need to use a flag
30349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30350 $as_echo "yes" >&6; }
30351 else
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30353 $as_echo "yes" >&6; }
30354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30355 $as_echo_n "checking for -rdynamic... " >&6; }
30356 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30357 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30358 plugin_rdynamic=yes
30359 pluginlibs="-rdynamic"
30360 else
30361 plugin_rdynamic=no
30362 enable_plugin=no
30363 fi
30364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30365 $as_echo "$plugin_rdynamic" >&6; }
30366 fi
30367 else
30368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30369 $as_echo "unable to check" >&6; }
30370 fi
30371
30372 # Check -ldl
30373 saved_LIBS="$LIBS"
30374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30375 $as_echo_n "checking for library containing dlopen... " >&6; }
30376 if ${ac_cv_search_dlopen+:} false; then :
30377 $as_echo_n "(cached) " >&6
30378 else
30379 ac_func_search_save_LIBS=$LIBS
30380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30381 /* end confdefs.h. */
30382
30383 /* Override any GCC internal prototype to avoid an error.
30384 Use char because int might match the return type of a GCC
30385 builtin and then its argument prototype would still apply. */
30386 #ifdef __cplusplus
30387 extern "C"
30388 #endif
30389 char dlopen ();
30390 int
30391 main ()
30392 {
30393 return dlopen ();
30394 ;
30395 return 0;
30396 }
30397 _ACEOF
30398 for ac_lib in '' dl; do
30399 if test -z "$ac_lib"; then
30400 ac_res="none required"
30401 else
30402 ac_res=-l$ac_lib
30403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30404 fi
30405 if ac_fn_cxx_try_link "$LINENO"; then :
30406 ac_cv_search_dlopen=$ac_res
30407 fi
30408 rm -f core conftest.err conftest.$ac_objext \
30409 conftest$ac_exeext
30410 if ${ac_cv_search_dlopen+:} false; then :
30411 break
30412 fi
30413 done
30414 if ${ac_cv_search_dlopen+:} false; then :
30415
30416 else
30417 ac_cv_search_dlopen=no
30418 fi
30419 rm conftest.$ac_ext
30420 LIBS=$ac_func_search_save_LIBS
30421 fi
30422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30423 $as_echo "$ac_cv_search_dlopen" >&6; }
30424 ac_res=$ac_cv_search_dlopen
30425 if test "$ac_res" != no; then :
30426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30427
30428 fi
30429
30430 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
30431 pluginlibs="$pluginlibs -ldl"
30432 fi
30433 LIBS="$saved_LIBS"
30434
30435 # Check that we can build shared objects with -fPIC -shared
30436 saved_LDFLAGS="$LDFLAGS"
30437 saved_CFLAGS="$CFLAGS"
30438 case "${host}" in
30439 *-*-darwin*)
30440 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30441 CFLAGS="$CFLAGS -fPIC"
30442 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
30443 ;;
30444 *)
30445 CFLAGS="$CFLAGS -fPIC"
30446 LDFLAGS="$LDFLAGS -fPIC -shared"
30447 ;;
30448 esac
30449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30450 $as_echo_n "checking for -fPIC -shared... " >&6; }
30451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30452 /* end confdefs.h. */
30453 extern int X;
30454 int
30455 main ()
30456 {
30457 return X == 0;
30458 ;
30459 return 0;
30460 }
30461 _ACEOF
30462 if ac_fn_cxx_try_link "$LINENO"; then :
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30464 $as_echo "yes" >&6; }; have_pic_shared=yes
30465 else
30466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30467 $as_echo "no" >&6; }; have_pic_shared=no
30468 fi
30469 rm -f core conftest.err conftest.$ac_objext \
30470 conftest$ac_exeext conftest.$ac_ext
30471 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30472 pluginlibs=
30473 enable_plugin=no
30474 fi
30475 LDFLAGS="$saved_LDFLAGS"
30476 CFLAGS="$saved_CFLAGS"
30477
30478 # If plugin support had been requested but not available, fail.
30479 if test x"$enable_plugin" = x"no" ; then
30480 if test x"$default_plugin" != x"yes"; then
30481 as_fn_error $? "
30482 Building GCC with plugin support requires a host that supports
30483 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30484 fi
30485 fi
30486 fi
30487
30488
30489
30490 if test x"$enable_plugin" = x"yes"; then
30491
30492 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30493
30494 fi
30495
30496
30497 # Enable --enable-host-shared
30498 # Check whether --enable-host-shared was given.
30499 if test "${enable_host_shared+set}" = set; then :
30500 enableval=$enable_host_shared; PICFLAG=-fPIC
30501 else
30502 PICFLAG=
30503 fi
30504
30505
30506
30507
30508
30509 # Check whether --enable-libquadmath-support was given.
30510 if test "${enable_libquadmath_support+set}" = set; then :
30511 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30512 else
30513 ENABLE_LIBQUADMATH_SUPPORT=yes
30514 fi
30515
30516 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30517
30518 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30519
30520 fi
30521
30522
30523 # Specify what hash style to use by default.
30524
30525 # Check whether --with-linker-hash-style was given.
30526 if test "${with_linker_hash_style+set}" = set; then :
30527 withval=$with_linker_hash_style; case x"$withval" in
30528 xsysv)
30529 LINKER_HASH_STYLE=sysv
30530 ;;
30531 xgnu)
30532 LINKER_HASH_STYLE=gnu
30533 ;;
30534 xboth)
30535 LINKER_HASH_STYLE=both
30536 ;;
30537 *)
30538 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30539 ;;
30540 esac
30541 else
30542 LINKER_HASH_STYLE=''
30543 fi
30544
30545 if test x"${LINKER_HASH_STYLE}" != x; then
30546
30547 cat >>confdefs.h <<_ACEOF
30548 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30549 _ACEOF
30550
30551 fi
30552
30553 # Specify what should be the default of -fdiagnostics-color option.
30554
30555 # Check whether --with-diagnostics-color was given.
30556 if test "${with_diagnostics_color+set}" = set; then :
30557 withval=$with_diagnostics_color; case x"$withval" in
30558 xnever)
30559 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30560 ;;
30561 xauto)
30562 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30563 ;;
30564 xauto-if-env)
30565 DIAGNOSTICS_COLOR_DEFAULT=-1
30566 ;;
30567 xalways)
30568 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30569 ;;
30570 *)
30571 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30572 ;;
30573 esac
30574 else
30575 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30576 fi
30577
30578
30579 cat >>confdefs.h <<_ACEOF
30580 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30581 _ACEOF
30582
30583
30584 # Specify what should be the default of -fdiagnostics-urls option.
30585
30586 # Check whether --with-diagnostics-urls was given.
30587 if test "${with_diagnostics_urls+set}" = set; then :
30588 withval=$with_diagnostics_urls; case x"$withval" in
30589 xnever)
30590 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
30591 ;;
30592 xauto)
30593 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
30594 ;;
30595 xauto-if-env)
30596 DIAGNOSTICS_URLS_DEFAULT=-1
30597 ;;
30598 xalways)
30599 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
30600 ;;
30601 *)
30602 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
30603 ;;
30604 esac
30605 else
30606 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
30607 fi
30608
30609
30610 cat >>confdefs.h <<_ACEOF
30611 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
30612 _ACEOF
30613
30614
30615 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30616 # of jit/jit-playback.c.
30617 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30618 echo "gcc_driver_version: ${gcc_driver_version}"
30619 cat > gcc-driver-name.h <<EOF
30620 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30621 EOF
30622
30623 # Check whether --enable-default-pie was given.
30624 # Check whether --enable-default-pie was given.
30625 if test "${enable_default_pie+set}" = set; then :
30626 enableval=$enable_default_pie; enable_default_pie=$enableval
30627 else
30628 enable_default_pie=no
30629 fi
30630
30631 if test x$enable_default_pie = xyes ; then
30632
30633 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30634
30635 fi
30636
30637
30638 # Check if -fno-PIE works.
30639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30640 $as_echo_n "checking for -fno-PIE option... " >&6; }
30641 if ${gcc_cv_c_no_fpie+:} false; then :
30642 $as_echo_n "(cached) " >&6
30643 else
30644 saved_CXXFLAGS="$CXXFLAGS"
30645 CXXFLAGS="$CXXFLAGS -fno-PIE"
30646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30647 /* end confdefs.h. */
30648 int main(void) {return 0;}
30649 _ACEOF
30650 if ac_fn_cxx_try_compile "$LINENO"; then :
30651 gcc_cv_c_no_fpie=yes
30652 else
30653 gcc_cv_c_no_fpie=no
30654 fi
30655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30656 CXXFLAGS="$saved_CXXFLAGS"
30657 fi
30658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30659 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30660 if test "$gcc_cv_c_no_fpie" = "yes"; then
30661 NO_PIE_CFLAGS="-fno-PIE"
30662 fi
30663
30664
30665 # Check if -no-pie works.
30666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30667 $as_echo_n "checking for -no-pie option... " >&6; }
30668 if ${gcc_cv_no_pie+:} false; then :
30669 $as_echo_n "(cached) " >&6
30670 else
30671 saved_LDFLAGS="$LDFLAGS"
30672 LDFLAGS="$LDFLAGS -no-pie"
30673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30674 /* end confdefs.h. */
30675 int main(void) {return 0;}
30676 _ACEOF
30677 if ac_fn_cxx_try_link "$LINENO"; then :
30678 gcc_cv_no_pie=yes
30679 else
30680 gcc_cv_no_pie=no
30681 fi
30682 rm -f core conftest.err conftest.$ac_objext \
30683 conftest$ac_exeext conftest.$ac_ext
30684 LDFLAGS="$saved_LDFLAGS"
30685 fi
30686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30687 $as_echo "$gcc_cv_no_pie" >&6; }
30688 if test "$gcc_cv_no_pie" = "yes"; then
30689 NO_PIE_FLAG="-no-pie"
30690 fi
30691
30692
30693 # Check linker supports '-z bndplt'
30694 ld_bndplt_support=no
30695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30696 $as_echo_n "checking linker -z bndplt option... " >&6; }
30697 if test x"$ld_is_gold" = xno; then
30698 if test $in_tree_ld = yes ; then
30699 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
30700 ld_bndplt_support=yes
30701 fi
30702 elif test x$gcc_cv_ld != x; then
30703 # Check if linker supports -a bndplt option
30704 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30705 ld_bndplt_support=yes
30706 fi
30707 fi
30708 fi
30709 if test x"$ld_bndplt_support" = xyes; then
30710
30711 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30712
30713 fi
30714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30715 $as_echo "$ld_bndplt_support" >&6; }
30716
30717 # Check linker supports '--push-state'/'--pop-state'
30718 ld_pushpopstate_support=no
30719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30720 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30721 if test x"$ld_is_gold" = xno; then
30722 if test $in_tree_ld = yes ; then
30723 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
30724 ld_pushpopstate_support=yes
30725 fi
30726 elif test x$gcc_cv_ld != x; then
30727 # Check if linker supports --push-state/--pop-state options
30728 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30729 ld_pushpopstate_support=yes
30730 fi
30731 fi
30732 fi
30733 if test x"$ld_pushpopstate_support" = xyes; then
30734
30735 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30736
30737 fi
30738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30739 $as_echo "$ld_pushpopstate_support" >&6; }
30740
30741 # Configure the subdirectories
30742 # AC_CONFIG_SUBDIRS($subdirs)
30743
30744 # Create the Makefile
30745 # and configure language subdirectories
30746 ac_config_files="$ac_config_files $all_outputs"
30747
30748
30749 ac_config_commands="$ac_config_commands default"
30750
30751 cat >confcache <<\_ACEOF
30752 # This file is a shell script that caches the results of configure
30753 # tests run on this system so they can be shared between configure
30754 # scripts and configure runs, see configure's option --config-cache.
30755 # It is not useful on other systems. If it contains results you don't
30756 # want to keep, you may remove or edit it.
30757 #
30758 # config.status only pays attention to the cache file if you give it
30759 # the --recheck option to rerun configure.
30760 #
30761 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30762 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30763 # following values.
30764
30765 _ACEOF
30766
30767 # The following way of writing the cache mishandles newlines in values,
30768 # but we know of no workaround that is simple, portable, and efficient.
30769 # So, we kill variables containing newlines.
30770 # Ultrix sh set writes to stderr and can't be redirected directly,
30771 # and sets the high bit in the cache file unless we assign to the vars.
30772 (
30773 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30774 eval ac_val=\$$ac_var
30775 case $ac_val in #(
30776 *${as_nl}*)
30777 case $ac_var in #(
30778 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30779 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30780 esac
30781 case $ac_var in #(
30782 _ | IFS | as_nl) ;; #(
30783 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30784 *) { eval $ac_var=; unset $ac_var;} ;;
30785 esac ;;
30786 esac
30787 done
30788
30789 (set) 2>&1 |
30790 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30791 *${as_nl}ac_space=\ *)
30792 # `set' does not quote correctly, so add quotes: double-quote
30793 # substitution turns \\\\ into \\, and sed turns \\ into \.
30794 sed -n \
30795 "s/'/'\\\\''/g;
30796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30797 ;; #(
30798 *)
30799 # `set' quotes correctly as required by POSIX, so do not add quotes.
30800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30801 ;;
30802 esac |
30803 sort
30804 ) |
30805 sed '
30806 /^ac_cv_env_/b end
30807 t clear
30808 :clear
30809 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30810 t end
30811 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30812 :end' >>confcache
30813 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30814 if test -w "$cache_file"; then
30815 if test "x$cache_file" != "x/dev/null"; then
30816 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30817 $as_echo "$as_me: updating cache $cache_file" >&6;}
30818 if test ! -f "$cache_file" || test -h "$cache_file"; then
30819 cat confcache >"$cache_file"
30820 else
30821 case $cache_file in #(
30822 */* | ?:*)
30823 mv -f confcache "$cache_file"$$ &&
30824 mv -f "$cache_file"$$ "$cache_file" ;; #(
30825 *)
30826 mv -f confcache "$cache_file" ;;
30827 esac
30828 fi
30829 fi
30830 else
30831 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30832 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30833 fi
30834 fi
30835 rm -f confcache
30836
30837 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30838 # Let make expand exec_prefix.
30839 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30840
30841 DEFS=-DHAVE_CONFIG_H
30842
30843 ac_libobjs=
30844 ac_ltlibobjs=
30845 U=
30846 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30847 # 1. Remove the extension, and $U if already installed.
30848 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30849 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30850 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30851 # will be set to the directory where LIBOBJS objects are built.
30852 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30853 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30854 done
30855 LIBOBJS=$ac_libobjs
30856
30857 LTLIBOBJS=$ac_ltlibobjs
30858
30859
30860
30861
30862 : "${CONFIG_STATUS=./config.status}"
30863 ac_write_fail=0
30864 ac_clean_files_save=$ac_clean_files
30865 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30866 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30867 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30868 as_write_fail=0
30869 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30870 #! $SHELL
30871 # Generated by $as_me.
30872 # Run this file to recreate the current configuration.
30873 # Compiler output produced by configure, useful for debugging
30874 # configure, is in config.log if it exists.
30875
30876 debug=false
30877 ac_cs_recheck=false
30878 ac_cs_silent=false
30879
30880 SHELL=\${CONFIG_SHELL-$SHELL}
30881 export SHELL
30882 _ASEOF
30883 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30884 ## -------------------- ##
30885 ## M4sh Initialization. ##
30886 ## -------------------- ##
30887
30888 # Be more Bourne compatible
30889 DUALCASE=1; export DUALCASE # for MKS sh
30890 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30891 emulate sh
30892 NULLCMD=:
30893 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30894 # is contrary to our usage. Disable this feature.
30895 alias -g '${1+"$@"}'='"$@"'
30896 setopt NO_GLOB_SUBST
30897 else
30898 case `(set -o) 2>/dev/null` in #(
30899 *posix*) :
30900 set -o posix ;; #(
30901 *) :
30902 ;;
30903 esac
30904 fi
30905
30906
30907 as_nl='
30908 '
30909 export as_nl
30910 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30911 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30912 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30913 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30914 # Prefer a ksh shell builtin over an external printf program on Solaris,
30915 # but without wasting forks for bash or zsh.
30916 if test -z "$BASH_VERSION$ZSH_VERSION" \
30917 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30918 as_echo='print -r --'
30919 as_echo_n='print -rn --'
30920 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30921 as_echo='printf %s\n'
30922 as_echo_n='printf %s'
30923 else
30924 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30925 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30926 as_echo_n='/usr/ucb/echo -n'
30927 else
30928 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30929 as_echo_n_body='eval
30930 arg=$1;
30931 case $arg in #(
30932 *"$as_nl"*)
30933 expr "X$arg" : "X\\(.*\\)$as_nl";
30934 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30935 esac;
30936 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30937 '
30938 export as_echo_n_body
30939 as_echo_n='sh -c $as_echo_n_body as_echo'
30940 fi
30941 export as_echo_body
30942 as_echo='sh -c $as_echo_body as_echo'
30943 fi
30944
30945 # The user is always right.
30946 if test "${PATH_SEPARATOR+set}" != set; then
30947 PATH_SEPARATOR=:
30948 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30949 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30950 PATH_SEPARATOR=';'
30951 }
30952 fi
30953
30954
30955 # IFS
30956 # We need space, tab and new line, in precisely that order. Quoting is
30957 # there to prevent editors from complaining about space-tab.
30958 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30959 # splitting by setting IFS to empty value.)
30960 IFS=" "" $as_nl"
30961
30962 # Find who we are. Look in the path if we contain no directory separator.
30963 as_myself=
30964 case $0 in #((
30965 *[\\/]* ) as_myself=$0 ;;
30966 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30967 for as_dir in $PATH
30968 do
30969 IFS=$as_save_IFS
30970 test -z "$as_dir" && as_dir=.
30971 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30972 done
30973 IFS=$as_save_IFS
30974
30975 ;;
30976 esac
30977 # We did not find ourselves, most probably we were run as `sh COMMAND'
30978 # in which case we are not to be found in the path.
30979 if test "x$as_myself" = x; then
30980 as_myself=$0
30981 fi
30982 if test ! -f "$as_myself"; then
30983 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30984 exit 1
30985 fi
30986
30987 # Unset variables that we do not need and which cause bugs (e.g. in
30988 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30989 # suppresses any "Segmentation fault" message there. '((' could
30990 # trigger a bug in pdksh 5.2.14.
30991 for as_var in BASH_ENV ENV MAIL MAILPATH
30992 do eval test x\${$as_var+set} = xset \
30993 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30994 done
30995 PS1='$ '
30996 PS2='> '
30997 PS4='+ '
30998
30999 # NLS nuisances.
31000 LC_ALL=C
31001 export LC_ALL
31002 LANGUAGE=C
31003 export LANGUAGE
31004
31005 # CDPATH.
31006 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31007
31008
31009 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31010 # ----------------------------------------
31011 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31012 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31013 # script with STATUS, using 1 if that was 0.
31014 as_fn_error ()
31015 {
31016 as_status=$1; test $as_status -eq 0 && as_status=1
31017 if test "$4"; then
31018 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31019 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31020 fi
31021 $as_echo "$as_me: error: $2" >&2
31022 as_fn_exit $as_status
31023 } # as_fn_error
31024
31025
31026 # as_fn_set_status STATUS
31027 # -----------------------
31028 # Set $? to STATUS, without forking.
31029 as_fn_set_status ()
31030 {
31031 return $1
31032 } # as_fn_set_status
31033
31034 # as_fn_exit STATUS
31035 # -----------------
31036 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31037 as_fn_exit ()
31038 {
31039 set +e
31040 as_fn_set_status $1
31041 exit $1
31042 } # as_fn_exit
31043
31044 # as_fn_unset VAR
31045 # ---------------
31046 # Portably unset VAR.
31047 as_fn_unset ()
31048 {
31049 { eval $1=; unset $1;}
31050 }
31051 as_unset=as_fn_unset
31052 # as_fn_append VAR VALUE
31053 # ----------------------
31054 # Append the text in VALUE to the end of the definition contained in VAR. Take
31055 # advantage of any shell optimizations that allow amortized linear growth over
31056 # repeated appends, instead of the typical quadratic growth present in naive
31057 # implementations.
31058 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31059 eval 'as_fn_append ()
31060 {
31061 eval $1+=\$2
31062 }'
31063 else
31064 as_fn_append ()
31065 {
31066 eval $1=\$$1\$2
31067 }
31068 fi # as_fn_append
31069
31070 # as_fn_arith ARG...
31071 # ------------------
31072 # Perform arithmetic evaluation on the ARGs, and store the result in the
31073 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31074 # must be portable across $(()) and expr.
31075 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31076 eval 'as_fn_arith ()
31077 {
31078 as_val=$(( $* ))
31079 }'
31080 else
31081 as_fn_arith ()
31082 {
31083 as_val=`expr "$@" || test $? -eq 1`
31084 }
31085 fi # as_fn_arith
31086
31087
31088 if expr a : '\(a\)' >/dev/null 2>&1 &&
31089 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31090 as_expr=expr
31091 else
31092 as_expr=false
31093 fi
31094
31095 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31096 as_basename=basename
31097 else
31098 as_basename=false
31099 fi
31100
31101 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31102 as_dirname=dirname
31103 else
31104 as_dirname=false
31105 fi
31106
31107 as_me=`$as_basename -- "$0" ||
31108 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31109 X"$0" : 'X\(//\)$' \| \
31110 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31111 $as_echo X/"$0" |
31112 sed '/^.*\/\([^/][^/]*\)\/*$/{
31113 s//\1/
31114 q
31115 }
31116 /^X\/\(\/\/\)$/{
31117 s//\1/
31118 q
31119 }
31120 /^X\/\(\/\).*/{
31121 s//\1/
31122 q
31123 }
31124 s/.*/./; q'`
31125
31126 # Avoid depending upon Character Ranges.
31127 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31128 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31129 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31130 as_cr_digits='0123456789'
31131 as_cr_alnum=$as_cr_Letters$as_cr_digits
31132
31133 ECHO_C= ECHO_N= ECHO_T=
31134 case `echo -n x` in #(((((
31135 -n*)
31136 case `echo 'xy\c'` in
31137 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31138 xy) ECHO_C='\c';;
31139 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31140 ECHO_T=' ';;
31141 esac;;
31142 *)
31143 ECHO_N='-n';;
31144 esac
31145
31146 rm -f conf$$ conf$$.exe conf$$.file
31147 if test -d conf$$.dir; then
31148 rm -f conf$$.dir/conf$$.file
31149 else
31150 rm -f conf$$.dir
31151 mkdir conf$$.dir 2>/dev/null
31152 fi
31153 if (echo >conf$$.file) 2>/dev/null; then
31154 if ln -s conf$$.file conf$$ 2>/dev/null; then
31155 as_ln_s='ln -s'
31156 # ... but there are two gotchas:
31157 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31158 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31159 # In both cases, we have to default to `cp -pR'.
31160 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31161 as_ln_s='cp -pR'
31162 elif ln conf$$.file conf$$ 2>/dev/null; then
31163 as_ln_s=ln
31164 else
31165 as_ln_s='cp -pR'
31166 fi
31167 else
31168 as_ln_s='cp -pR'
31169 fi
31170 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31171 rmdir conf$$.dir 2>/dev/null
31172
31173
31174 # as_fn_mkdir_p
31175 # -------------
31176 # Create "$as_dir" as a directory, including parents if necessary.
31177 as_fn_mkdir_p ()
31178 {
31179
31180 case $as_dir in #(
31181 -*) as_dir=./$as_dir;;
31182 esac
31183 test -d "$as_dir" || eval $as_mkdir_p || {
31184 as_dirs=
31185 while :; do
31186 case $as_dir in #(
31187 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31188 *) as_qdir=$as_dir;;
31189 esac
31190 as_dirs="'$as_qdir' $as_dirs"
31191 as_dir=`$as_dirname -- "$as_dir" ||
31192 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31193 X"$as_dir" : 'X\(//\)[^/]' \| \
31194 X"$as_dir" : 'X\(//\)$' \| \
31195 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31196 $as_echo X"$as_dir" |
31197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31198 s//\1/
31199 q
31200 }
31201 /^X\(\/\/\)[^/].*/{
31202 s//\1/
31203 q
31204 }
31205 /^X\(\/\/\)$/{
31206 s//\1/
31207 q
31208 }
31209 /^X\(\/\).*/{
31210 s//\1/
31211 q
31212 }
31213 s/.*/./; q'`
31214 test -d "$as_dir" && break
31215 done
31216 test -z "$as_dirs" || eval "mkdir $as_dirs"
31217 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31218
31219
31220 } # as_fn_mkdir_p
31221 if mkdir -p . 2>/dev/null; then
31222 as_mkdir_p='mkdir -p "$as_dir"'
31223 else
31224 test -d ./-p && rmdir ./-p
31225 as_mkdir_p=false
31226 fi
31227
31228
31229 # as_fn_executable_p FILE
31230 # -----------------------
31231 # Test if FILE is an executable regular file.
31232 as_fn_executable_p ()
31233 {
31234 test -f "$1" && test -x "$1"
31235 } # as_fn_executable_p
31236 as_test_x='test -x'
31237 as_executable_p=as_fn_executable_p
31238
31239 # Sed expression to map a string onto a valid CPP name.
31240 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31241
31242 # Sed expression to map a string onto a valid variable name.
31243 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31244
31245
31246 exec 6>&1
31247 ## ----------------------------------- ##
31248 ## Main body of $CONFIG_STATUS script. ##
31249 ## ----------------------------------- ##
31250 _ASEOF
31251 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31252
31253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31254 # Save the log message, to keep $0 and so on meaningful, and to
31255 # report actual input values of CONFIG_FILES etc. instead of their
31256 # values after options handling.
31257 ac_log="
31258 This file was extended by $as_me, which was
31259 generated by GNU Autoconf 2.69. Invocation command line was
31260
31261 CONFIG_FILES = $CONFIG_FILES
31262 CONFIG_HEADERS = $CONFIG_HEADERS
31263 CONFIG_LINKS = $CONFIG_LINKS
31264 CONFIG_COMMANDS = $CONFIG_COMMANDS
31265 $ $0 $@
31266
31267 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31268 "
31269
31270 _ACEOF
31271
31272 case $ac_config_files in *"
31273 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31274 esac
31275
31276 case $ac_config_headers in *"
31277 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31278 esac
31279
31280
31281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31282 # Files that config.status was made for.
31283 config_files="$ac_config_files"
31284 config_headers="$ac_config_headers"
31285 config_links="$ac_config_links"
31286 config_commands="$ac_config_commands"
31287
31288 _ACEOF
31289
31290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31291 ac_cs_usage="\
31292 \`$as_me' instantiates files and other configuration actions
31293 from templates according to the current configuration. Unless the files
31294 and actions are specified as TAGs, all are instantiated by default.
31295
31296 Usage: $0 [OPTION]... [TAG]...
31297
31298 -h, --help print this help, then exit
31299 -V, --version print version number and configuration settings, then exit
31300 --config print configuration, then exit
31301 -q, --quiet, --silent
31302 do not print progress messages
31303 -d, --debug don't remove temporary files
31304 --recheck update $as_me by reconfiguring in the same conditions
31305 --file=FILE[:TEMPLATE]
31306 instantiate the configuration file FILE
31307 --header=FILE[:TEMPLATE]
31308 instantiate the configuration header FILE
31309
31310 Configuration files:
31311 $config_files
31312
31313 Configuration headers:
31314 $config_headers
31315
31316 Configuration links:
31317 $config_links
31318
31319 Configuration commands:
31320 $config_commands
31321
31322 Report bugs to the package provider."
31323
31324 _ACEOF
31325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31326 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31327 ac_cs_version="\\
31328 config.status
31329 configured by $0, generated by GNU Autoconf 2.69,
31330 with options \\"\$ac_cs_config\\"
31331
31332 Copyright (C) 2012 Free Software Foundation, Inc.
31333 This config.status script is free software; the Free Software Foundation
31334 gives unlimited permission to copy, distribute and modify it."
31335
31336 ac_pwd='$ac_pwd'
31337 srcdir='$srcdir'
31338 AWK='$AWK'
31339 test -n "\$AWK" || AWK=awk
31340 _ACEOF
31341
31342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31343 # The default lists apply if the user does not specify any file.
31344 ac_need_defaults=:
31345 while test $# != 0
31346 do
31347 case $1 in
31348 --*=?*)
31349 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31350 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31351 ac_shift=:
31352 ;;
31353 --*=)
31354 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31355 ac_optarg=
31356 ac_shift=:
31357 ;;
31358 *)
31359 ac_option=$1
31360 ac_optarg=$2
31361 ac_shift=shift
31362 ;;
31363 esac
31364
31365 case $ac_option in
31366 # Handling of the options.
31367 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31368 ac_cs_recheck=: ;;
31369 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31370 $as_echo "$ac_cs_version"; exit ;;
31371 --config | --confi | --conf | --con | --co | --c )
31372 $as_echo "$ac_cs_config"; exit ;;
31373 --debug | --debu | --deb | --de | --d | -d )
31374 debug=: ;;
31375 --file | --fil | --fi | --f )
31376 $ac_shift
31377 case $ac_optarg in
31378 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31379 '') as_fn_error $? "missing file argument" ;;
31380 esac
31381 as_fn_append CONFIG_FILES " '$ac_optarg'"
31382 ac_need_defaults=false;;
31383 --header | --heade | --head | --hea )
31384 $ac_shift
31385 case $ac_optarg in
31386 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31387 esac
31388 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31389 ac_need_defaults=false;;
31390 --he | --h)
31391 # Conflict between --help and --header
31392 as_fn_error $? "ambiguous option: \`$1'
31393 Try \`$0 --help' for more information.";;
31394 --help | --hel | -h )
31395 $as_echo "$ac_cs_usage"; exit ;;
31396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31397 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31398 ac_cs_silent=: ;;
31399
31400 # This is an error.
31401 -*) as_fn_error $? "unrecognized option: \`$1'
31402 Try \`$0 --help' for more information." ;;
31403
31404 *) as_fn_append ac_config_targets " $1"
31405 ac_need_defaults=false ;;
31406
31407 esac
31408 shift
31409 done
31410
31411 ac_configure_extra_args=
31412
31413 if $ac_cs_silent; then
31414 exec 6>/dev/null
31415 ac_configure_extra_args="$ac_configure_extra_args --silent"
31416 fi
31417
31418 _ACEOF
31419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31420 if \$ac_cs_recheck; then
31421 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31422 shift
31423 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31424 CONFIG_SHELL='$SHELL'
31425 export CONFIG_SHELL
31426 exec "\$@"
31427 fi
31428
31429 _ACEOF
31430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31431 exec 5>>config.log
31432 {
31433 echo
31434 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31435 ## Running $as_me. ##
31436 _ASBOX
31437 $as_echo "$ac_log"
31438 } >&5
31439
31440 _ACEOF
31441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31442 #
31443 # INIT-COMMANDS
31444 #
31445 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31446 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31447 subdirs='$subdirs'
31448
31449 _ACEOF
31450
31451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31452
31453 # Handling of arguments.
31454 for ac_config_target in $ac_config_targets
31455 do
31456 case $ac_config_target in
31457 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
31458 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
31459 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
31460 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
31461 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31462 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
31463 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31464 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
31465 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31466
31467 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31468 esac
31469 done
31470
31471
31472 # If the user did not use the arguments to specify the items to instantiate,
31473 # then the envvar interface is used. Set only those that are not.
31474 # We use the long form for the default assignment because of an extremely
31475 # bizarre bug on SunOS 4.1.3.
31476 if $ac_need_defaults; then
31477 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31478 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31479 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31480 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31481 fi
31482
31483 # Have a temporary directory for convenience. Make it in the build tree
31484 # simply because there is no reason against having it here, and in addition,
31485 # creating and moving files from /tmp can sometimes cause problems.
31486 # Hook for its removal unless debugging.
31487 # Note that there is a small window in which the directory will not be cleaned:
31488 # after its creation but before its name has been assigned to `$tmp'.
31489 $debug ||
31490 {
31491 tmp= ac_tmp=
31492 trap 'exit_status=$?
31493 : "${ac_tmp:=$tmp}"
31494 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31495 ' 0
31496 trap 'as_fn_exit 1' 1 2 13 15
31497 }
31498 # Create a (secure) tmp directory for tmp files.
31499
31500 {
31501 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31502 test -d "$tmp"
31503 } ||
31504 {
31505 tmp=./conf$$-$RANDOM
31506 (umask 077 && mkdir "$tmp")
31507 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31508 ac_tmp=$tmp
31509
31510 # Set up the scripts for CONFIG_FILES section.
31511 # No need to generate them if there are no CONFIG_FILES.
31512 # This happens for instance with `./config.status config.h'.
31513 if test -n "$CONFIG_FILES"; then
31514
31515 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31516 ac_cs_awk_getline=:
31517 ac_cs_awk_pipe_init=
31518 ac_cs_awk_read_file='
31519 while ((getline aline < (F[key])) > 0)
31520 print(aline)
31521 close(F[key])'
31522 ac_cs_awk_pipe_fini=
31523 else
31524 ac_cs_awk_getline=false
31525 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31526 ac_cs_awk_read_file='
31527 print "|#_!!_#|"
31528 print "cat " F[key] " &&"
31529 '$ac_cs_awk_pipe_init
31530 # The final `:' finishes the AND list.
31531 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31532 fi
31533 ac_cr=`echo X | tr X '\015'`
31534 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31535 # But we know of no other shell where ac_cr would be empty at this
31536 # point, so we can use a bashism as a fallback.
31537 if test "x$ac_cr" = x; then
31538 eval ac_cr=\$\'\\r\'
31539 fi
31540 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31541 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31542 ac_cs_awk_cr='\\r'
31543 else
31544 ac_cs_awk_cr=$ac_cr
31545 fi
31546
31547 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31548 _ACEOF
31549
31550 # Create commands to substitute file output variables.
31551 {
31552 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31553 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31554 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31555 echo "_ACAWK" &&
31556 echo "_ACEOF"
31557 } >conf$$files.sh &&
31558 . ./conf$$files.sh ||
31559 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31560 rm -f conf$$files.sh
31561
31562 {
31563 echo "cat >conf$$subs.awk <<_ACEOF" &&
31564 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31565 echo "_ACEOF"
31566 } >conf$$subs.sh ||
31567 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31568 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31569 ac_delim='%!_!# '
31570 for ac_last_try in false false false false false :; do
31571 . ./conf$$subs.sh ||
31572 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31573
31574 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31575 if test $ac_delim_n = $ac_delim_num; then
31576 break
31577 elif $ac_last_try; then
31578 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31579 else
31580 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31581 fi
31582 done
31583 rm -f conf$$subs.sh
31584
31585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31586 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31587 _ACEOF
31588 sed -n '
31589 h
31590 s/^/S["/; s/!.*/"]=/
31591 p
31592 g
31593 s/^[^!]*!//
31594 :repl
31595 t repl
31596 s/'"$ac_delim"'$//
31597 t delim
31598 :nl
31599 h
31600 s/\(.\{148\}\)..*/\1/
31601 t more1
31602 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31603 p
31604 n
31605 b repl
31606 :more1
31607 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31608 p
31609 g
31610 s/.\{148\}//
31611 t nl
31612 :delim
31613 h
31614 s/\(.\{148\}\)..*/\1/
31615 t more2
31616 s/["\\]/\\&/g; s/^/"/; s/$/"/
31617 p
31618 b
31619 :more2
31620 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31621 p
31622 g
31623 s/.\{148\}//
31624 t delim
31625 ' <conf$$subs.awk | sed '
31626 /^[^""]/{
31627 N
31628 s/\n//
31629 }
31630 ' >>$CONFIG_STATUS || ac_write_fail=1
31631 rm -f conf$$subs.awk
31632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31633 _ACAWK
31634 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31635 for (key in S) S_is_set[key] = 1
31636 FS = "\a"
31637 \$ac_cs_awk_pipe_init
31638 }
31639 {
31640 line = $ 0
31641 nfields = split(line, field, "@")
31642 substed = 0
31643 len = length(field[1])
31644 for (i = 2; i < nfields; i++) {
31645 key = field[i]
31646 keylen = length(key)
31647 if (S_is_set[key]) {
31648 value = S[key]
31649 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31650 len += length(value) + length(field[++i])
31651 substed = 1
31652 } else
31653 len += 1 + keylen
31654 }
31655 if (nfields == 3 && !substed) {
31656 key = field[2]
31657 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31658 \$ac_cs_awk_read_file
31659 next
31660 }
31661 }
31662 print line
31663 }
31664 \$ac_cs_awk_pipe_fini
31665 _ACAWK
31666 _ACEOF
31667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31668 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31669 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31670 else
31671 cat
31672 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31673 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31674 _ACEOF
31675
31676 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31677 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31678 # trailing colons and then remove the whole line if VPATH becomes empty
31679 # (actually we leave an empty line to preserve line numbers).
31680 if test "x$srcdir" = x.; then
31681 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31682 h
31683 s///
31684 s/^/:/
31685 s/[ ]*$/:/
31686 s/:\$(srcdir):/:/g
31687 s/:\${srcdir}:/:/g
31688 s/:@srcdir@:/:/g
31689 s/^:*//
31690 s/:*$//
31691 x
31692 s/\(=[ ]*\).*/\1/
31693 G
31694 s/\n//
31695 s/^[^=]*=[ ]*$//
31696 }'
31697 fi
31698
31699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31700 fi # test -n "$CONFIG_FILES"
31701
31702 # Set up the scripts for CONFIG_HEADERS section.
31703 # No need to generate them if there are no CONFIG_HEADERS.
31704 # This happens for instance with `./config.status Makefile'.
31705 if test -n "$CONFIG_HEADERS"; then
31706 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31707 BEGIN {
31708 _ACEOF
31709
31710 # Transform confdefs.h into an awk script `defines.awk', embedded as
31711 # here-document in config.status, that substitutes the proper values into
31712 # config.h.in to produce config.h.
31713
31714 # Create a delimiter string that does not exist in confdefs.h, to ease
31715 # handling of long lines.
31716 ac_delim='%!_!# '
31717 for ac_last_try in false false :; do
31718 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31719 if test -z "$ac_tt"; then
31720 break
31721 elif $ac_last_try; then
31722 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31723 else
31724 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31725 fi
31726 done
31727
31728 # For the awk script, D is an array of macro values keyed by name,
31729 # likewise P contains macro parameters if any. Preserve backslash
31730 # newline sequences.
31731
31732 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31733 sed -n '
31734 s/.\{148\}/&'"$ac_delim"'/g
31735 t rset
31736 :rset
31737 s/^[ ]*#[ ]*define[ ][ ]*/ /
31738 t def
31739 d
31740 :def
31741 s/\\$//
31742 t bsnl
31743 s/["\\]/\\&/g
31744 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31745 D["\1"]=" \3"/p
31746 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31747 d
31748 :bsnl
31749 s/["\\]/\\&/g
31750 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31751 D["\1"]=" \3\\\\\\n"\\/p
31752 t cont
31753 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31754 t cont
31755 d
31756 :cont
31757 n
31758 s/.\{148\}/&'"$ac_delim"'/g
31759 t clear
31760 :clear
31761 s/\\$//
31762 t bsnlc
31763 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31764 d
31765 :bsnlc
31766 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31767 b cont
31768 ' <confdefs.h | sed '
31769 s/'"$ac_delim"'/"\\\
31770 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31771
31772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31773 for (key in D) D_is_set[key] = 1
31774 FS = "\a"
31775 }
31776 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31777 line = \$ 0
31778 split(line, arg, " ")
31779 if (arg[1] == "#") {
31780 defundef = arg[2]
31781 mac1 = arg[3]
31782 } else {
31783 defundef = substr(arg[1], 2)
31784 mac1 = arg[2]
31785 }
31786 split(mac1, mac2, "(") #)
31787 macro = mac2[1]
31788 prefix = substr(line, 1, index(line, defundef) - 1)
31789 if (D_is_set[macro]) {
31790 # Preserve the white space surrounding the "#".
31791 print prefix "define", macro P[macro] D[macro]
31792 next
31793 } else {
31794 # Replace #undef with comments. This is necessary, for example,
31795 # in the case of _POSIX_SOURCE, which is predefined and required
31796 # on some systems where configure will not decide to define it.
31797 if (defundef == "undef") {
31798 print "/*", prefix defundef, macro, "*/"
31799 next
31800 }
31801 }
31802 }
31803 { print }
31804 _ACAWK
31805 _ACEOF
31806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31807 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31808 fi # test -n "$CONFIG_HEADERS"
31809
31810
31811 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31812 shift
31813 for ac_tag
31814 do
31815 case $ac_tag in
31816 :[FHLC]) ac_mode=$ac_tag; continue;;
31817 esac
31818 case $ac_mode$ac_tag in
31819 :[FHL]*:*);;
31820 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31821 :[FH]-) ac_tag=-:-;;
31822 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31823 esac
31824 ac_save_IFS=$IFS
31825 IFS=:
31826 set x $ac_tag
31827 IFS=$ac_save_IFS
31828 shift
31829 ac_file=$1
31830 shift
31831
31832 case $ac_mode in
31833 :L) ac_source=$1;;
31834 :[FH])
31835 ac_file_inputs=
31836 for ac_f
31837 do
31838 case $ac_f in
31839 -) ac_f="$ac_tmp/stdin";;
31840 *) # Look for the file first in the build tree, then in the source tree
31841 # (if the path is not absolute). The absolute path cannot be DOS-style,
31842 # because $ac_f cannot contain `:'.
31843 test -f "$ac_f" ||
31844 case $ac_f in
31845 [\\/$]*) false;;
31846 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31847 esac ||
31848 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31849 esac
31850 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31851 as_fn_append ac_file_inputs " '$ac_f'"
31852 done
31853
31854 # Let's still pretend it is `configure' which instantiates (i.e., don't
31855 # use $as_me), people would be surprised to read:
31856 # /* config.h. Generated by config.status. */
31857 configure_input='Generated from '`
31858 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31859 `' by configure.'
31860 if test x"$ac_file" != x-; then
31861 configure_input="$ac_file. $configure_input"
31862 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31863 $as_echo "$as_me: creating $ac_file" >&6;}
31864 fi
31865 # Neutralize special characters interpreted by sed in replacement strings.
31866 case $configure_input in #(
31867 *\&* | *\|* | *\\* )
31868 ac_sed_conf_input=`$as_echo "$configure_input" |
31869 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31870 *) ac_sed_conf_input=$configure_input;;
31871 esac
31872
31873 case $ac_tag in
31874 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31875 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31876 esac
31877 ;;
31878 esac
31879
31880 ac_dir=`$as_dirname -- "$ac_file" ||
31881 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31882 X"$ac_file" : 'X\(//\)[^/]' \| \
31883 X"$ac_file" : 'X\(//\)$' \| \
31884 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31885 $as_echo X"$ac_file" |
31886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31887 s//\1/
31888 q
31889 }
31890 /^X\(\/\/\)[^/].*/{
31891 s//\1/
31892 q
31893 }
31894 /^X\(\/\/\)$/{
31895 s//\1/
31896 q
31897 }
31898 /^X\(\/\).*/{
31899 s//\1/
31900 q
31901 }
31902 s/.*/./; q'`
31903 as_dir="$ac_dir"; as_fn_mkdir_p
31904 ac_builddir=.
31905
31906 case "$ac_dir" in
31907 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31908 *)
31909 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31910 # A ".." for each directory in $ac_dir_suffix.
31911 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31912 case $ac_top_builddir_sub in
31913 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31914 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31915 esac ;;
31916 esac
31917 ac_abs_top_builddir=$ac_pwd
31918 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31919 # for backward compatibility:
31920 ac_top_builddir=$ac_top_build_prefix
31921
31922 case $srcdir in
31923 .) # We are building in place.
31924 ac_srcdir=.
31925 ac_top_srcdir=$ac_top_builddir_sub
31926 ac_abs_top_srcdir=$ac_pwd ;;
31927 [\\/]* | ?:[\\/]* ) # Absolute name.
31928 ac_srcdir=$srcdir$ac_dir_suffix;
31929 ac_top_srcdir=$srcdir
31930 ac_abs_top_srcdir=$srcdir ;;
31931 *) # Relative name.
31932 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31933 ac_top_srcdir=$ac_top_build_prefix$srcdir
31934 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31935 esac
31936 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31937
31938
31939 case $ac_mode in
31940 :F)
31941 #
31942 # CONFIG_FILE
31943 #
31944
31945 _ACEOF
31946
31947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31948 # If the template does not know about datarootdir, expand it.
31949 # FIXME: This hack should be removed a few years after 2.60.
31950 ac_datarootdir_hack=; ac_datarootdir_seen=
31951 ac_sed_dataroot='
31952 /datarootdir/ {
31953 p
31954 q
31955 }
31956 /@datadir@/p
31957 /@docdir@/p
31958 /@infodir@/p
31959 /@localedir@/p
31960 /@mandir@/p'
31961 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31962 *datarootdir*) ac_datarootdir_seen=yes;;
31963 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31965 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31966 _ACEOF
31967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31968 ac_datarootdir_hack='
31969 s&@datadir@&$datadir&g
31970 s&@docdir@&$docdir&g
31971 s&@infodir@&$infodir&g
31972 s&@localedir@&$localedir&g
31973 s&@mandir@&$mandir&g
31974 s&\\\${datarootdir}&$datarootdir&g' ;;
31975 esac
31976 _ACEOF
31977
31978 # Neutralize VPATH when `$srcdir' = `.'.
31979 # Shell code in configure.ac might set extrasub.
31980 # FIXME: do we really want to maintain this feature?
31981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31982 ac_sed_extra="$ac_vpsub
31983 $extrasub
31984 _ACEOF
31985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31986 :t
31987 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31988 s|@configure_input@|$ac_sed_conf_input|;t t
31989 s&@top_builddir@&$ac_top_builddir_sub&;t t
31990 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31991 s&@srcdir@&$ac_srcdir&;t t
31992 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31993 s&@top_srcdir@&$ac_top_srcdir&;t t
31994 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31995 s&@builddir@&$ac_builddir&;t t
31996 s&@abs_builddir@&$ac_abs_builddir&;t t
31997 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31998 $ac_datarootdir_hack
31999 "
32000 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32001 if $ac_cs_awk_getline; then
32002 $AWK -f "$ac_tmp/subs.awk"
32003 else
32004 $AWK -f "$ac_tmp/subs.awk" | $SHELL
32005 fi \
32006 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32007
32008 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32009 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32010 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32011 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32013 which seems to be undefined. Please make sure it is defined" >&5
32014 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32015 which seems to be undefined. Please make sure it is defined" >&2;}
32016
32017 rm -f "$ac_tmp/stdin"
32018 case $ac_file in
32019 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32020 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32021 esac \
32022 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32023 ;;
32024 :H)
32025 #
32026 # CONFIG_HEADER
32027 #
32028 if test x"$ac_file" != x-; then
32029 {
32030 $as_echo "/* $configure_input */" \
32031 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32032 } >"$ac_tmp/config.h" \
32033 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32034 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32035 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32036 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32037 else
32038 rm -f "$ac_file"
32039 mv "$ac_tmp/config.h" "$ac_file" \
32040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32041 fi
32042 else
32043 $as_echo "/* $configure_input */" \
32044 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32045 || as_fn_error $? "could not create -" "$LINENO" 5
32046 fi
32047 ;;
32048 :L)
32049 #
32050 # CONFIG_LINK
32051 #
32052
32053 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
32054 :
32055 else
32056 # Prefer the file from the source tree if names are identical.
32057 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32058 ac_source=$srcdir/$ac_source
32059 fi
32060
32061 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32062 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32063
32064 if test ! -r "$ac_source"; then
32065 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32066 fi
32067 rm -f "$ac_file"
32068
32069 # Try a relative symlink, then a hard link, then a copy.
32070 case $ac_source in
32071 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32072 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32073 esac
32074 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32075 ln "$ac_source" "$ac_file" 2>/dev/null ||
32076 cp -p "$ac_source" "$ac_file" ||
32077 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32078 fi
32079 ;;
32080 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32081 $as_echo "$as_me: executing $ac_file commands" >&6;}
32082 ;;
32083 esac
32084
32085
32086 case $ac_file$ac_mode in
32087 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
32088 "gccdepdir":C)
32089 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
32090 for lang in $subdirs c-family common analyzer
32091 do
32092 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
32093 done ;;
32094 "as":F) chmod +x as ;;
32095 "collect-ld":F) chmod +x collect-ld ;;
32096 "nm":F) chmod +x nm ;;
32097 "default":C)
32098 case ${CONFIG_HEADERS} in
32099 *auto-host.h:config.in*)
32100 echo > cstamp-h ;;
32101 esac
32102 # Make sure all the subdirs exist.
32103 for d in $subdirs doc build common c-family
32104 do
32105 test -d $d || mkdir $d
32106 done
32107 ;;
32108
32109 esac
32110 done # for ac_tag
32111
32112
32113 as_fn_exit 0
32114 _ACEOF
32115 ac_clean_files=$ac_clean_files_save
32116
32117 test $ac_write_fail = 0 ||
32118 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32119
32120
32121 # configure is writing to config.log, and then calls config.status.
32122 # config.status does its own redirection, appending to config.log.
32123 # Unfortunately, on DOS this fails, as config.log is still kept open
32124 # by configure, so config.status won't be able to write to it; its
32125 # output is simply discarded. So we exec the FD to /dev/null,
32126 # effectively closing config.log, so it can be properly (re)opened and
32127 # appended to by config.status. When coming back to configure, we
32128 # need to make the FD available again.
32129 if test "$no_create" != yes; then
32130 ac_cs_success=:
32131 ac_config_status_args=
32132 test "$silent" = yes &&
32133 ac_config_status_args="$ac_config_status_args --quiet"
32134 exec 5>/dev/null
32135 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32136 exec 5>>config.log
32137 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32138 # would make configure fail if this is the last instruction.
32139 $ac_cs_success || as_fn_exit 1
32140 fi
32141 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32143 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32144 fi
32145
32146